/* =========================================================
   PAK TRADING DESIGN SYSTEM — MY TEAM & REFERRALS STYLES
   ========================================================= */

/* Sprite Icons System (ugx-team-icons.png - 400% 100% Exact Sample Vector Locations) */
.ut-icon {
  display: block;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  background-image: url('../ugx-team-icons.png');
  background-size: 400% 100%;
  background-repeat: no-repeat;
}
.ut-icon-0 { background-position: 0 50% !important; }
.ut-icon-1 { background-position: 33.3333% 50% !important; }
.ut-icon-2 { background-position: 66.6667% 50% !important; }
.ut-icon-3 { background-position: 100% 50% !important; }

.ut-team {
  max-width: 1100px;
  margin: 0 auto;
}

.ut-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: linear-gradient(145deg, #ffffff, #fff0db);
  border: 1px solid var(--line-color);
  border-radius: 26px;
  padding: 22px;
  margin: 4px 0 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.ut-eyebrow {
  font-size: 11px;
  font-weight: 900;
  color: var(--orange-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.ut-hero h1 {
  margin: 5px 0 0;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--ink);
}

.ut-hero h1 em {
  color: var(--orange-primary);
  font-style: normal;
}

.ut-hero h2 {
  margin: 4px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.ut-hero p {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ut-hero img {
  width: 145px;
  height: 120px;
  object-fit: contain;
}

/* Sample Summary Statistics Grid (ut-stats) */
.ut-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.ut-stats article {
  background: linear-gradient(135deg, #ffffff, #fafafb);
  border: 1px solid var(--line-color);
  border-radius: 20px;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(73, 53, 33, 0.05);
  min-width: 0;
}

.ut-stats article > div {
  min-width: 0;
  flex: 1;
}

.ut-stats span.title {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 700;
}

.ut-stats strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.8px;
  color: var(--ink);
}

.ut-stats small {
  display: block;
  font-size: 9.5px;
  line-height: 1.4;
  color: #526379;
  margin-top: 4px;
}

/* Sample Invite Box (ut-invite) */
.ut-invite {
  background: linear-gradient(135deg, #fff8ef, #ffffff);
  border: 1px solid #fed7aa;
  border-radius: 22px;
  padding: 18px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 15px rgba(255, 138, 0, 0.08);
}

.ut-invite .ut-link-wrap {
  flex: 1;
  min-width: 0;
}

.ut-invite label {
  font-size: 11px;
  font-weight: 800;
  color: var(--orange-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.ut-invite .ut-link {
  display: flex;
  gap: 6px;
}

.ut-invite .ut-link input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-color);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
}

.ut-invite .ut-link button {
  border: 0;
  border-radius: 12px;
  background: var(--orange-primary);
  color: #ffffff;
  font-weight: 900;
  padding: 0 16px;
  cursor: pointer;
}

.ut-button {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-secondary));
  color: #ffffff;
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ut-button small {
  display: block;
  font-size: 10px;
  opacity: 0.9;
}

.ut-level-intro {
  margin: 24px 0 12px 0;
}

.ut-level-intro h2 {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}

.ut-level-intro p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

/* Sample Level Cards Grid System (100% Exact Sample Match) */
.ut-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.ut-level {
  --ut-accent: #ed6200;
  --ut-bright: #ffb60b;
  --ut-wash: #fff1e4;
  border: 1px solid #ffc078;
  border-radius: 23px;
  background: linear-gradient(160deg, var(--ut-wash), #ffffff 70%);
  overflow: hidden;
  box-shadow: 0 9px 25px rgba(119, 90, 26, 0.08);
  min-width: 0;
}

.ut-color-1 {
  --ut-accent: #0062f3;
  --ut-bright: #04ceff;
  --ut-wash: #e8f4ff;
  border-color: #8bd4ff;
}

.ut-color-2 {
  --ut-accent: #832ae9;
  --ut-bright: #c278ff;
  --ut-wash: #f5ebff;
  border-color: #d3b0fa;
}

.ut-level > header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 95px;
  padding: 17px;
  color: #ffffff;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.26), transparent 48%), linear-gradient(140deg, var(--ut-bright), var(--ut-accent));
  position: relative;
}

.ut-level-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 48px;
  height: 52px;
  padding: 0 7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 2px 9px rgba(255,255,255,0.6), 0 4px 9px rgba(0,0,0,0.12);
  font-size: 27px;
  font-weight: 800;
  background: rgba(255,255,255,0.11);
}

.ut-level header h3 {
  font-size: 22px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
  font-weight: 900;
}

.ut-level header p {
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}

.ut-level header > i {
  margin-left: auto;
  font-size: 34px;
  color: rgba(255,255,255,0.85);
  font-style: normal;
}

.ut-level-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 6px;
}

.ut-level-stats > div {
  background: rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 12px 4px;
  text-align: center;
  min-width: 0;
}

.ut-level-stats span {
  font-size: 9px;
  display: block;
  line-height: 1.5;
  margin-bottom: 7px;
  color: var(--muted);
  font-weight: 700;
}

.ut-level-stats strong {
  font-size: 16px;
  font-weight: 800;
  display: block;
  letter-spacing: -0.65px;
  color: var(--ink);
}

.ut-level-stats > div:first-child strong {
  font-size: 23px;
}

.ut-level-body {
  padding: 7px 12px 15px;
}

.ut-rate-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px;
  margin-bottom: 13px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: linear-gradient(120deg, #ffffff, var(--ut-wash));
  color: var(--ut-accent);
}

.ut-rate-highlight > span {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ut-rate-highlight i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--ut-accent);
  color: #ffffff;
  font-size: 13px;
  font-style: normal;
}

.ut-rate-highlight > strong {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.7px;
  text-align: right;
  color: var(--ut-accent);
}

.ut-search {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #dae3ed;
  padding: 10px 12px;
  margin-bottom: 11px;
  font-size: 13px;
  color: #526983;
}

.ut-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #243a54;
  outline: none;
}

.ut-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 67px;
  align-items: center;
  gap: 7px;
  background: linear-gradient(130deg, var(--ut-bright), var(--ut-accent));
  padding: 11px 9px;
  border-radius: 9px;
  color: #ffffff;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 600;
}

.ut-columns > span:nth-child(2) { text-align: right; }
.ut-columns > span:last-child { text-align: center; }

.ut-no-members {
  text-align: center;
  padding: 30px 10px;
  color: #718093;
  font-size: 12px;
}

.ut-list-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  color: #61728a;
  font-size: 10px;
}

.pt-team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f0e5da;
  padding: 12px 4px;
}

.pt-team-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0db;
  color: var(--orange-secondary);
  font-weight: 900;
  font-size: 14px;
}

.pt-team-person { flex: 1; min-width: 0; }
.pt-team-person b { font-size: 13px; display: block; color: var(--ink); }
.pt-team-person small { font-size: 10.5px; color: var(--muted); display: block; }
.pt-team-money { text-align: right; }
.pt-team-money b { font-size: 12px; color: var(--green-accent); }
.pt-team-money small { font-size: 9px; color: var(--muted); }

/* Sample Banner Promo Card & Footer */
.ut-banner {
  background: linear-gradient(135deg, #162238, #1e293b);
  border-radius: 26px;
  padding: 24px;
  margin: 24px 0 18px 0;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ut-banner h2 {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

.ut-banner h2 em {
  color: var(--orange-primary);
  font-style: normal;
}

.ut-banner p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 8px 0 16px 0;
}

.ut-banner a {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-secondary));
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 77, 0, 0.25);
}

.ut-banner img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.ut-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-top: 1px solid var(--line-color);
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}

.ut-footer b {
  color: var(--orange-secondary);
}

@media (max-width: 760px) {
  .ut-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ut-levels {
    grid-template-columns: minmax(0, 1fr);
  }
}
