/* Unity Money - shared styles */
:root {
  --um-primary: #1e3a8a;
  --um-accent:  #f59e0b;
  --um-bg:      #f3f4f6;
  --um-card:    #ffffff;
  --um-text:    #1f2937;
  --um-muted:   #6b7280;
  --um-success: #16a34a;
  --um-danger:  #dc2626;
  --um-border:  #e5e7eb;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--um-bg);
  color: var(--um-text);
  overflow-x: hidden;
}
a { color: var(--um-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---------- Public landing page ---------- */
.landing-page {
  min-height: 100vh;
  color: #e5fdf8;
  background:
    radial-gradient(circle at 10% 10%, rgba(20,184,166,.24), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(59,130,246,.18), transparent 28%),
    linear-gradient(135deg, #031b1a 0%, #052e2b 48%, #0f172a 100%);
}
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 22px;
}
.landing-brand,
.login-logo {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(204,251,241,.26);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}
.landing-brand img { width: 190px; height: auto; }
.landing-nav nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.landing-nav a { color: #ccfbf1; font-weight: 700; }
.landing-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 42px;
  align-items: center;
}
.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -0.05em;
  color: #fff;
}
.hero-copy p {
  max-width: 680px;
  color: #a7f3d0;
  font-size: 18px;
  line-height: 1.7;
}
.eyebrow {
  color: #5eead4;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}
.landing-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  color: #052e2b !important;
  background: linear-gradient(135deg, #5eead4, #22c55e);
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(20,184,166,.25);
}
.landing-btn.small { padding: 9px 15px; }
.landing-btn.ghost {
  color: #ccfbf1 !important;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(204,251,241,.22);
  box-shadow: none;
}
.hero-panel {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  padding: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(94,234,212,.25), transparent 30%),
    rgba(255,255,255,.08);
  border: 1px solid rgba(204,251,241,.18);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.orbit-card {
  position: absolute;
  width: 190px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: #064e3b;
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}
.orbit-card.main { width: 250px; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.orbit-card:nth-child(2) { left: 20px; top: 40px; }
.orbit-card:nth-child(3) { right: 22px; bottom: 42px; }
.orbit-card span { display:block; color:#0f766e; font-weight:800; text-transform:uppercase; font-size:12px; }
.orbit-card strong { display:block; font-size:42px; color:#0f766e; margin: 8px 0; }
.orbit-card small { color:#475569; font-weight:700; }
.landing-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 22px;
}
.section-heading { text-align:center; max-width:780px; margin:0 auto 28px; }
.section-heading span { color:#5eead4; font-weight:900; text-transform:uppercase; letter-spacing:.12em; font-size:12px; }
.section-heading h2, .landing-section h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  margin: 10px 0;
}
.section-heading p, .landing-section p { color:#a7f3d0; line-height:1.7; }
.landing-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.landing-card, .feature-list div, .step-row div {
  border: 1px solid rgba(204,251,241,.16);
  background: rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.12);
}
.landing-card b, .feature-list b, .step-row b { display:block; color:#fff; font-size:18px; margin-bottom:8px; }
.landing-card p, .feature-list span, .step-row p { color:#a7f3d0; margin:0; line-height:1.6; }
.landing-section.split {
  display:grid;
  grid-template-columns: minmax(0,.9fr) minmax(320px,1.1fr);
  gap:32px;
  align-items:center;
}
.feature-list { display:grid; gap:14px; }
.step-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; }
.step-row span { color:#5eead4; font-weight:900; font-size:28px; }
.landing-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 22px 34px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  color:#99f6e4;
  border-top:1px solid rgba(204,251,241,.14);
}
.landing-footer a { color:#ccfbf1; font-weight:800; }

/* ---------- One-page project profile ---------- */
.profile-page {
  padding: 28px 14px;
}
.profile-sheet {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(204,251,241,.18);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 12%, rgba(94,234,212,.18), transparent 30%),
    rgba(255,255,255,.08);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.profile-head {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(204,251,241,.16);
}
.profile-head h1 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.profile-head p,
.profile-quote span,
.profile-card p,
.profile-band p,
.profile-steps p {
  color: #a7f3d0;
  line-height: 1.65;
}
.profile-quote {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(20,184,166,.24), rgba(15,23,42,.20));
  border: 1px solid rgba(204,251,241,.18);
}
.profile-quote b {
  color: #fff;
  font-size: 22px;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.profile-card {
  padding: 20px;
  border: 1px solid rgba(204,251,241,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.08);
}
.profile-card span {
  color: #5eead4;
  font-size: 26px;
  font-weight: 900;
}
.profile-card h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 18px;
}
.profile-card p {
  margin: 0;
  font-size: 14px;
}
.profile-band {
  display: grid;
  grid-template-columns: minmax(0,1fr) 190px;
  gap: 24px;
  align-items: center;
  margin: 22px 0;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #064e3b, #0f766e 58%, #14b8a6);
  box-shadow: 0 18px 44px rgba(20,184,166,.16);
}
.profile-band h2,
.profile-steps h2 {
  color: #fff;
  margin: 8px 0;
}
.profile-stat {
  text-align: center;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: #064e3b;
}
.profile-stat strong {
  display: block;
  font-size: 46px;
  line-height: 1;
}
.profile-stat small {
  color: #0f766e;
  font-weight: 800;
}
.profile-steps {
  margin-top: 20px;
}
.profile-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(204,251,241,.16);
}
.profile-footer b,
.profile-footer span {
  display: block;
}
.profile-footer b {
  color: #fff;
  font-size: 20px;
}
.profile-footer span {
  color: #99f6e4;
}
.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Auth pages ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.auth-card h1 {
  margin: 0 0 4px;
  font-size: 28px;
  color: var(--um-primary);
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.auth-logo img {
  width: 210px;
  max-width: 100%;
  height: auto;
}
.auth-card p.tag { margin: 0 0 24px; color: var(--um-muted); }
.login-landing {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(20,184,166,.24), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(59,130,246,.18), transparent 28%),
    linear-gradient(135deg, #031b1a 0%, #052e2b 48%, #0f172a 100%);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 36px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 22px;
}
.login-intro {
  color: #ccfbf1;
}
.login-logo img {
  width: 210px;
  height: auto;
}
.login-logo { margin-bottom: 34px; }
.login-intro h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -0.05em;
}
.login-intro p {
  max-width: 640px;
  color: #a7f3d0;
  font-size: 17px;
  line-height: 1.7;
}
.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 28px 0;
}
.login-feature-grid div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(204,251,241,.16);
}
.login-feature-grid b {
  display: block;
  color: #5eead4;
  font-size: 26px;
  line-height: 1;
}
.login-feature-grid span {
  display: block;
  margin-top: 6px;
  color: #ccfbf1;
  font-weight: 700;
  font-size: 13px;
}
.login-card {
  max-width: none;
  border: 1px solid rgba(204,251,241,.20);
  box-shadow: 0 28px 70px rgba(0,0,0,.30);
}
.login-card h2 {
  margin: 0 0 4px;
  color: #064e3b;
  font-size: 28px;
  text-align: center;
}
.register-shell {
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1fr);
  align-items: start;
}
.register-card {
  max-width: none;
}
.field input.mono-input {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--um-bg);
  cursor: text;
  user-select: all;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--um-muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--um-border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--um-text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--um-primary);
}
.field .code-input {
  display: flex;
  align-items: stretch;
}
.field .code-input span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--um-border);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: var(--um-bg);
  color: var(--um-muted);
  font-weight: 700;
}
.field .code-input input {
  border-radius: 0 8px 8px 0;
}
.field .hint { font-size: 12px; color: var(--um-muted); margin-top: 4px; }
.field .ref-name {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--um-success);
  font-weight: 600;
}
.field .ref-error { color: var(--um-danger); font-weight: 600; }

/* International phone input (registration) */
.field-phone .iti { width: 100%; }
.field-phone .iti__tel-input {
  width: 100%;
  padding: 10px 12px 10px 52px;
  border: 1px solid var(--um-border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--um-text);
}
.field-phone .iti__tel-input:focus {
  outline: none;
  border-color: var(--um-primary);
}
.field-phone .iti--separate-dial-code .iti__selected-flag {
  border-radius: 8px 0 0 8px;
  background: var(--um-bg);
  border: 1px solid var(--um-border);
  border-right: 0;
}
.field-phone .iti--separate-dial-code .iti__tel-input {
  padding-left: 96px;
  border-radius: 0 8px 8px 0;
}
.field-phone .iti__country-list {
  z-index: 20;
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.field-phone .phone-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--um-danger);
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--um-primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.btn:hover { background: #1e40af; }
.btn-block { width: 100%; }
.btn-warning { background: var(--um-accent); }
.btn-danger  { background: var(--um-danger); }
.btn-success { background: var(--um-success); }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #dbeafe; color: #1e3a8a; }

/* ---------- Layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: #0f172a;
  color: #cbd5e1;
  flex-shrink: 0;
  padding: 20px 0;
}
.sidebar .brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid #1f2937;
}
.sidebar .brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  width: calc(100% - 28px);
  margin: 0 auto;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(204,251,241,.35);
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}
.sidebar .brand-logo img {
  width: 198px;
  max-width: 100%;
  height: auto;
}
.sidebar .brand-logo span {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sidebar nav a {
  display: block;
  padding: 11px 22px;
  color: #cbd5e1;
  font-size: 14px;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: #1e293b;
  color: #fff;
  text-decoration: none;
}
.main { flex: 1; display: flex; flex-direction: column; }
.topbar {
  background: #fff;
  padding: 12px 24px;
  border-bottom: 1px solid var(--um-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar .user-pill {
  background: var(--um-bg);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.content { padding: 24px; }
.content h2 { margin-top: 0; }

/* ---------- Cards / stats ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card {
  background: var(--um-card);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.card .label { color: var(--um-muted); font-size: 13px; }
.card .value { font-size: 24px; font-weight: 700; margin-top: 4px; color: var(--um-primary); }
.card.success .value { color: var(--um-success); }
.card.danger .value  { color: var(--um-danger); }
.card.accent .value  { color: var(--um-accent); }

/* ---------- Tables ---------- */
.table-wrap {
  background: #fff;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 24px;
}
table.um-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.um-table th, table.um-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--um-border);
}
table.um-table th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--um-muted);
  text-transform: uppercase;
  font-size: 12px;
}
table.um-table tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-pending  { background:#fef3c7; color:#92400e; }
.badge-approved { background:#dcfce7; color:#166534; }
.badge-rejected { background:#fee2e2; color:#991b1b; }
.badge-paid     { background:#dbeafe; color:#1e3a8a; }
.badge-active   { background:#dcfce7; color:#166534; }
.badge-cancelled { background:#e5e7eb; color:#374151; }
.badge-blocked  { background:#fee2e2; color:#991b1b; }

/* ---------- Misc ---------- */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-title {
  font-size: 16px; font-weight: 700; margin: 24px 0 10px;
  color: var(--um-primary);
}
.muted { color: var(--um-muted); font-size: 13px; }
.wallet-box {
  background:#fffbeb; border:1px dashed var(--um-accent);
  padding:12px 14px; border-radius:8px; word-break:break-all;
  font-family: monospace; margin-bottom: 14px;
}
.investment-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(45, 212, 191, 0.34), transparent 30%),
    radial-gradient(circle at 14% 20%, rgba(110, 231, 183, 0.22), transparent 28%),
    linear-gradient(135deg, #042f2e 0%, #0f766e 55%, #14b8a6 100%);
  box-shadow: 0 18px 50px rgba(15, 118, 110, 0.20);
}
.investment-hero h2 { margin: 4px 0 8px; font-size: 28px; }
.investment-hero p { margin: 0; color: #ccfbf1; max-width: 680px; }
.investment-hero .eyebrow {
  color: #99f6e4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-pill {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  font-weight: 700;
}
.package-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:16px;
}
.package-card {
  background:#fff; border:1px solid var(--um-border);
  border-radius:16px; padding:18px; text-align:center;
}
.board-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  text-align: left;
  background:
    radial-gradient(circle at 100% 0%, rgba(153, 246, 228, 0.32), transparent 34%),
    #fff;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.10);
}
.board-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: var(--tier-color, var(--um-primary));
}
.board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.tier-badge, .board-network {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tier-badge {
  color: var(--tier-color, var(--um-primary));
}
.board-network {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.board-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: #064e3b;
}
.board-symbol {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 10px 22px rgba(15,23,42,.14);
}
.board-symbol::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.32);
}
.symbol-bronze { background: linear-gradient(135deg, #92400e, #d97706, #fbbf24); }
.symbol-silver { background: linear-gradient(135deg, #64748b, #cbd5e1, #f8fafc); color: #334155; }
.symbol-gold { background: linear-gradient(135deg, #b45309, #f59e0b, #fde68a); color: #422006; }
.symbol-platinum { background: linear-gradient(135deg, #475569, #e2e8f0, #67e8f9); color: #0f172a; }
.symbol-diamond {
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #e0f2fe, #06b6d4);
  color: #075985;
}
.symbol-diamond::after { border-radius: 7px; }
.symbol-emerald { background: linear-gradient(135deg, #047857, #10b981, #a7f3d0); color: #052e2b; }
.symbol-sapphire { background: linear-gradient(135deg, #1e3a8a, #2563eb, #93c5fd); }
.symbol-ruby { background: linear-gradient(135deg, #7f1d1d, #dc2626, #fca5a5); }
.symbol-crown { background: linear-gradient(135deg, #422006, #f59e0b, #fde68a); color: #422006; }
.symbol-default { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.package-card .amt {
  font-size:32px; font-weight:900; color:var(--tier-color, var(--um-primary));
  margin: 8px 0 2px;
}
.package-card form { margin-top:10px; }
.board-card .btn {
  margin-top: 16px;
  background: var(--tier-color, var(--um-primary));
}
.board-card.locked {
  opacity: 0.58;
  filter: grayscale(0.75);
}
.board-card.locked::after {
  content: "Locked";
  position: absolute;
  top: 54px;
  right: -34px;
  width: 130px;
  padding: 5px 0;
  text-align: center;
  transform: rotate(35deg);
  background: #64748b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.board-card.locked .btn {
  background: #94a3b8;
  cursor: not-allowed;
}
.tier-1 { --tier-color:#0f766e; }
.tier-2 { --tier-color:#059669; }
.tier-3 { --tier-color:#0891b2; }
.tier-4 { --tier-color:#14b8a6; }
.tier-5 { --tier-color:#047857; }
.tier-6 { --tier-color:#0e7490; }
.tier-7 { --tier-color:#115e59; }
.tier-8 { --tier-color:#134e4a; }
.tier-9 { --tier-color:#0f172a; }
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.65);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}
.qr-wrap img {
  width: 190px;
  height: 190px;
  border: 1px solid var(--um-border);
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

/* ---------- Bell ---------- */
.bell {
  position: relative; display: inline-flex;
  align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--um-bg); margin-right: 10px; color: var(--um-text);
  font-size: 18px; text-decoration: none;
}
.bell:hover { background: #e5e7eb; text-decoration: none; }
.bell .dot {
  position: absolute; top: 4px; right: 4px;
  background: var(--um-danger); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px;
  border-radius: 999px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.notif-list .row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-bottom: 1px solid var(--um-border);
}
.notif-list .row:last-child { border-bottom: 0; }
.notif-list .row.unread { background: #eff6ff; }
.notif-list .when { color: var(--um-muted); font-size: 12px; }
.notif-list .title { font-weight: 600; }

/* ---------- Client visual upgrade ---------- */
.client-panel {
  background:
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.22), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(16, 185, 129, 0.18), transparent 30%),
    radial-gradient(circle at 70% 88%, rgba(6, 182, 212, 0.14), transparent 32%),
    linear-gradient(135deg, #ecfeff 0%, #f8fafc 48%, #ecfdf5 100%);
}
.client-panel .sidebar {
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.22), transparent 28%),
    linear-gradient(180deg, #042f2e 0%, #064e3b 52%, #0f172a 100%);
  box-shadow: 8px 0 34px rgba(15, 118, 110, 0.18);
}
.client-panel .sidebar .brand {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.08em;
}
.client-panel .sidebar nav a {
  margin: 5px 12px;
  border-radius: 12px;
  color: #ccfbf1;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.client-panel .sidebar nav a:hover,
.client-panel .sidebar nav a.active {
  background: linear-gradient(135deg, rgba(20,184,166,.34), rgba(16,185,129,.24));
  color: #fff;
  transform: translateX(4px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10);
}
.client-panel .main {
  background: transparent;
}
.client-panel .topbar {
  margin: 16px 18px 0;
  border: 1px solid rgba(153, 246, 228, 0.85);
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(15, 118, 110, 0.10);
}
.client-panel .topbar b {
  font-size: 18px;
  color: #064e3b;
}
.client-panel .content {
  padding: 22px 28px 30px;
}
.client-panel .card,
.client-panel .table-wrap {
  border: 1px solid rgba(153, 246, 228, 0.85);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(15, 118, 110, 0.09);
}
.client-panel .cards {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.client-panel .cards .card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
}
.client-panel .cards .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}
.client-panel .cards .card:nth-child(2)::before { background: linear-gradient(90deg, #059669, #22c55e); }
.client-panel .cards .card:nth-child(3)::before { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.client-panel .cards .card:nth-child(4)::before { background: linear-gradient(90deg, #0f766e, #059669); }
.client-panel .cards .card:nth-child(5)::before { background: linear-gradient(90deg, #0e7490, #14b8a6); }
.client-panel .cards .card:nth-child(6)::before { background: linear-gradient(90deg, #334155, #0f766e); }
.client-panel .card .label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.client-panel .card .value {
  font-size: 30px;
  font-weight: 900;
  color: #0f766e;
}
.client-panel .wallet-box {
  background: linear-gradient(135deg, #ecfeff, #ecfdf5);
  border: 1px dashed rgba(20, 184, 166, 0.58);
  border-radius: 14px;
}
.client-panel table.um-table th {
  background: linear-gradient(135deg, #ecfeff, #f8fafc);
  color: #0f766e;
}
.client-panel table.um-table tbody tr:hover {
  background: #ecfeff;
}
.client-panel .section-title {
  font-size: 18px;
  color: #064e3b;
}
.client-panel .btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.18);
}
.client-panel .btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.client-panel .user-pill {
  background: linear-gradient(135deg, #ecfeff, #ecfdf5);
  border: 1px solid rgba(153, 246, 228, 0.9);
}
.client-panel .bell {
  background: linear-gradient(135deg, #ecfeff, #ecfdf5);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.10);
}
.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}
.share-btn:hover { text-decoration: none; transform: translateY(-1px); }
.share-btn.whatsapp { background: linear-gradient(135deg, #16a34a, #22c55e); }
.share-btn.facebook { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.share-btn.twitter { background: linear-gradient(135deg, #0f172a, #334155); }
.share-btn.telegram { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.share-btn.native { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.share-btn.copy { background: linear-gradient(135deg, #064e3b, #0891b2); }

@media (max-width: 1024px) {
  .landing-hero,
  .landing-section.split,
  .login-shell,
  .register-shell {
    grid-template-columns: 1fr;
  }
  .login-shell,
  .register-shell {
    max-width: 760px;
  }
  .login-intro {
    text-align: center;
  }
  .login-intro h1,
  .login-intro p,
  .login-feature-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .profile-head,
  .profile-band {
    grid-template-columns: 1fr;
  }
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    padding: 10px 0 8px;
  }
  .sidebar .brand {
    padding-bottom: 10px;
    border-bottom: 0;
  }
  .sidebar .brand-logo {
    min-height: 58px;
  }
  .sidebar .brand-logo img {
    width: 184px;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 10px 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar nav a,
  .client-panel .sidebar nav a {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 14px;
    white-space: nowrap;
    border-radius: 999px;
  }
  .client-panel .sidebar nav a:hover,
  .client-panel .sidebar nav a.active {
    transform: none;
  }
  .topbar,
  .client-panel .topbar {
    margin: 10px;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .topbar > div:last-child,
  .client-panel .topbar > div:last-child {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .content,
  .client-panel .content {
    padding: 14px;
  }
  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }
  table.um-table {
    min-width: 720px;
  }
}

@media (max-width: 720px) {
  .row-2 { grid-template-columns: 1fr; }
  .cards,
  .client-panel .cards,
  .package-grid,
  .landing-grid,
  .step-row {
    grid-template-columns: 1fr;
  }
  .landing-nav {
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .landing-brand img {
    width: 170px;
  }
  .landing-nav nav {
    justify-content: center;
    gap: 10px;
  }
  .landing-hero {
    padding-top: 34px;
  }
  .landing-actions {
    justify-content: center;
  }
  .hero-copy {
    text-align: center;
  }
  .login-shell {
    padding: 22px 14px;
  }
  .login-feature-grid { grid-template-columns: 1fr; }
  .login-logo img,
  .auth-logo img {
    width: 180px;
  }
  .auth-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .hero-panel { min-height: 360px; }
  .orbit-card { position: static; width: 100%; margin-bottom: 12px; }
  .orbit-card.main { width: 100%; transform:none; }
  .landing-footer { flex-direction:column; }
  .investment-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .investment-hero h2 {
    font-size: 24px;
  }
  .hero-pill {
    white-space: normal;
  }
  .modal-backdrop {
    align-items: flex-end;
    padding: 10px;
  }
  .modal-card {
    max-width: 100%;
    border-radius: 18px;
    padding: 18px;
  }
  .social-share {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .profile-sheet {
    padding: 18px;
    border-radius: 24px;
  }
  .profile-head,
  .profile-quote,
  .profile-footer {
    text-align: center;
    flex-direction: column;
  }
  .profile-head {
    gap: 18px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-actions {
    justify-content: center;
  }
  .share-btn,
  .btn {
    min-height: 42px;
  }
}

@media (max-width: 480px) {
  .landing-nav,
  .landing-hero,
  .landing-section,
  .landing-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-copy h1,
  .login-intro h1 {
    font-size: 34px;
    letter-spacing: -0.035em;
  }
  .landing-btn,
  .landing-actions .landing-btn {
    width: 100%;
  }
  .login-feature-grid div,
  .landing-card,
  .feature-list div,
  .step-row div {
    padding: 18px;
  }
  .topbar .user-pill,
  .client-panel .user-pill {
    width: 100%;
    border-radius: 14px;
    line-height: 1.5;
  }
  .content h2 {
    font-size: 22px;
  }
  .card {
    padding: 15px;
  }
  .card .value,
  .client-panel .card .value {
    font-size: 24px;
    overflow-wrap: anywhere;
  }
  .package-card {
    padding: 16px;
  }
  .board-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .package-card .amt {
    font-size: 28px;
  }
  .qr-wrap img {
    width: 160px;
    height: 160px;
  }
  .social-share {
    grid-template-columns: 1fr;
  }
}

/* ---------- Client: Direct referral matrix (per package tier) — compact ---------- */
.dr-intro {
  margin-bottom: 14px;
}
.dr-intro .muted {
  font-size: 13px;
}
.dr-matrix {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(165deg, #0a1628 0%, #0f1f3a 42%, #0a1628 100%);
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}
.dr-matrix-bg {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 206, 209, 0.35), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.2), transparent 45%);
  pointer-events: none;
}
.dr-matrix[data-tier="1"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(217, 119, 6, 0.45), transparent 55%),
    radial-gradient(circle at 15% 75%, rgba(251, 191, 36, 0.15), transparent 50%);
}
.dr-matrix[data-tier="2"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(148, 163, 184, 0.4), transparent 55%);
}
.dr-matrix[data-tier="3"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(234, 179, 8, 0.4), transparent 55%);
}
.dr-matrix[data-tier="4"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(20, 184, 166, 0.45), transparent 55%);
}
.dr-matrix[data-tier="5"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(34, 197, 94, 0.4), transparent 55%);
}
.dr-matrix[data-tier="6"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(6, 182, 212, 0.45), transparent 55%);
}
.dr-matrix[data-tier="7"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(124, 58, 237, 0.45), transparent 55%);
}
.dr-matrix[data-tier="8"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(225, 29, 72, 0.4), transparent 55%);
}
.dr-matrix[data-tier="9"] .dr-matrix-bg {
  background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.45), transparent 55%);
}
.dr-matrix-art {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 72px;
  height: 72px;
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(0, 206, 209, 0.3));
  pointer-events: none;
}
.dr-matrix-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dr-matrix-inner {
  position: relative;
  z-index: 1;
  padding: 14px 14px 12px;
  padding-right: 92px;
}
.dr-matrix-head {
  margin-bottom: 10px;
}
.dr-matrix-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fefce8;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}
.dr-matrix-sub {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.dr-matrix-sub .dr-count-active {
  color: #34d399;
  font-weight: 600;
}
.dr-matrix-sub .dr-count-inactive {
  color: #fb923c;
  font-weight: 600;
}
.dr-matrix-sub .dr-count-sep {
  color: #64748b;
  font-weight: 400;
  margin: 0 4px;
}
.dr-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 8px;
}
.dr-you-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}
.dr-you {
  min-width: 72px;
  padding: 7px 16px;
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #1c1917;
  background: linear-gradient(145deg, #fde68a, #d4af37, #b45309);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(254, 243, 199, 0.75);
}
.dr-spine {
  position: relative;
  width: min(300px, 100%);
  height: 36px;
  margin-top: 0;
}
.dr-spine-v {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 18px;
  margin-left: -1px;
  background: linear-gradient(180deg, #d4af37, rgba(212, 175, 55, 0.35));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
}
.dr-spine-h {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 17px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37 15%, #d4af37 85%, transparent);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.35);
}
.dr-level-label {
  margin: 6px 0 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
}
.dr-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  width: 100%;
  max-width: 640px;
}
.dr-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 88px;
  padding-top: 4px;
}
.dr-node-ring {
  position: absolute;
  top: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  z-index: 0;
  background: transparent;
}
.dr-node--active .dr-node-ring {
  background: radial-gradient(circle at 35% 28%, rgba(94, 234, 212, 0.95), #0d9488 55%, #042f2e 100%);
  box-shadow: 0 0 14px rgba(0, 206, 209, 0.45), inset 0 0 0 1px rgba(204, 251, 241, 0.35);
}
.dr-node--inactive .dr-node-ring {
  background: radial-gradient(circle at 35% 30%, rgba(148, 163, 184, 0.75), #475569 55%, #1e293b 100%);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.2), inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}
.dr-node--empty .dr-node-ring {
  background: radial-gradient(circle at 40% 30%, rgba(71, 85, 105, 0.5), #1e293b 70%);
  box-shadow: inset 0 0 0 2px rgba(148, 163, 184, 0.25);
}
.dr-node-amount {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.72rem;
  color: #f0fdfa;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.dr-node-code {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fef9c3;
  letter-spacing: 0.03em;
}
.dr-node-meta {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  font-size: 10px;
  color: #94a3b8;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dr-node--inactive .dr-node-amount {
  font-size: 0.62rem;
  color: #cbd5e1;
  text-shadow: none;
}
.dr-node--inactive .dr-node-code {
  color: #e2e8f0;
}
.dr-node--empty .dr-node-meta {
  color: #64748b;
}
.dr-node--empty .dr-node-amount {
  color: #64748b;
  font-size: 0.95rem;
}
.dr-table-wrap {
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.client-panel .dr-matrix .dr-detail-table th,
.client-panel .dr-matrix .dr-detail-table td,
.um-client-v2 .dr-matrix .dr-detail-table th,
.um-client-v2 .dr-matrix .dr-detail-table td {
  font-size: 11px;
  padding: 6px 8px;
}
.client-panel .dr-matrix .dr-detail-table th,
.um-client-v2 .dr-matrix .dr-detail-table th {
  background: rgba(30, 41, 59, 0.95);
  color: #67e8f9;
}
.client-panel .dr-matrix .dr-detail-table td,
.um-client-v2 .dr-matrix .dr-detail-table td {
  color: #f1f5f9;
  border-color: rgba(71, 85, 105, 0.55);
}
.client-panel .dr-matrix .dr-detail-table tbody tr.dr-tr-active,
.um-client-v2 .dr-matrix .dr-detail-table tbody tr.dr-tr-active {
  background: rgba(16, 185, 129, 0.25);
}
.client-panel .dr-matrix .dr-detail-table tbody tr.dr-tr-inactive,
.um-client-v2 .dr-matrix .dr-detail-table tbody tr.dr-tr-inactive {
  background: rgba(51, 65, 85, 0.4);
}
.client-panel .dr-matrix .dr-detail-table tbody tr.dr-tr-active:hover,
.um-client-v2 .dr-matrix .dr-detail-table tbody tr.dr-tr-active:hover {
  background: rgba(16, 185, 129, 0.35);
}
.client-panel .dr-matrix .dr-detail-table tbody tr.dr-tr-inactive:hover,
.um-client-v2 .dr-matrix .dr-detail-table tbody tr.dr-tr-inactive:hover {
  background: rgba(99, 102, 241, 0.22);
}
.dr-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dr-badge--active {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.dr-badge--inactive {
  background: rgba(251, 146, 60, 0.15);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.35);
}
/* ---------- Direct referral: colorful tier cards + modal ---------- */
.dr-legend-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  font-size: 12px;
  color: var(--um-muted);
}
.dr-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dr-legend-dot--active {
  background: #10b981;
}
.dr-legend-dot--inactive {
  background: #94a3b8;
}
.dr-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.dr-glow-card {
  position: relative;
  border-radius: 22px;
  padding: 3px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dr-glow-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
.dr-glow-card--t1 {
  background: linear-gradient(145deg, #fde68a 0%, #f59e0b 40%, #b45309 100%);
}
.dr-glow-card--t2 {
  background: linear-gradient(145deg, #f1f5f9 0%, #94a3b8 45%, #475569 100%);
}
.dr-glow-card--t3 {
  background: linear-gradient(145deg, #fef9c3 0%, #eab308 42%, #a16207 100%);
}
.dr-glow-card--t4 {
  background: linear-gradient(145deg, #ccfbf1 0%, #2dd4bf 40%, #0f766e 100%);
}
.dr-glow-card--t5 {
  background: linear-gradient(145deg, #bbf7d0 0%, #22c55e 42%, #14532d 100%);
}
.dr-glow-card--t6 {
  background: linear-gradient(145deg, #e0f2fe 0%, #38bdf8 40%, #0369a1 100%);
}
.dr-glow-card--t7 {
  background: linear-gradient(145deg, #ede9fe 0%, #a78bfa 42%, #5b21b6 100%);
}
.dr-glow-card--t8 {
  background: linear-gradient(145deg, #ffe4e6 0%, #fb7185 40%, #9f1239 100%);
}
.dr-glow-card--t9 {
  background: linear-gradient(145deg, #ffedd5 0%, #fb923c 42%, #9a3412 100%);
}
.dr-glow-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0) 62%,
    rgba(255, 255, 255, 0.2) 100%
  );
  pointer-events: none;
  border-radius: 22px;
}
.dr-glow-card-inner {
  position: relative;
  z-index: 1;
  border-radius: 19px;
  padding: 16px 18px 18px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  backdrop-filter: blur(8px);
}
.dr-glow-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dr-glow-tier-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #64748b;
  background: rgba(241, 245, 249, 0.95);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.dr-glow-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff, #f1f5f9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.dr-glow-icon-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.dr-glow-card-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.15;
}
.dr-glow-card-entry {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #334155;
}
.dr-glow-entry-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: 4px;
}
.dr-glow-stats {
  display: flex;
  gap: 10px;
  margin-bottom: auto;
  padding-bottom: 14px;
}
.dr-glow-stat {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.dr-glow-stat--active {
  background: linear-gradient(180deg, rgba(209, 250, 229, 0.9), rgba(167, 243, 208, 0.5));
  border-color: rgba(52, 211, 153, 0.45);
}
.dr-glow-stat--inactive {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.65));
  border-color: rgba(148, 163, 184, 0.4);
}
.dr-glow-stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.dr-glow-stat--active .dr-glow-stat-val {
  color: #047857;
}
.dr-glow-stat--inactive .dr-glow-stat-val {
  color: #475569;
}
.dr-glow-stat-lbl {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.dr-glow-cta {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.2);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.dr-glow-cta:hover {
  filter: brightness(1.08);
  transform: scale(1.01);
}
.dr-glow-cta:focus {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
}
.dr-glow-card--t1 .dr-glow-cta {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}
.dr-glow-card--t2 .dr-glow-cta {
  background: linear-gradient(135deg, #94a3b8, #475569);
}
.dr-glow-card--t3 .dr-glow-cta {
  background: linear-gradient(135deg, #facc15, #ca8a04);
}
.dr-glow-card--t4 .dr-glow-cta {
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
}
.dr-glow-card--t5 .dr-glow-cta {
  background: linear-gradient(135deg, #4ade80, #15803d);
}
.dr-glow-card--t6 .dr-glow-cta {
  background: linear-gradient(135deg, #38bdf8, #0369a1);
}
.dr-glow-card--t7 .dr-glow-cta {
  background: linear-gradient(135deg, #a78bfa, #6d28d9);
}
.dr-glow-card--t8 .dr-glow-cta {
  background: linear-gradient(135deg, #fb7185, #be123c);
}
.dr-glow-card--t9 .dr-glow-cta {
  background: linear-gradient(135deg, #fb923c, #c2410c);
}
@media (max-width: 520px) {
  .dr-card-grid {
    grid-template-columns: 1fr;
  }
}
.dr-modal-backdrop.modal-backdrop {
  z-index: 1200;
}
.dr-modal-card.modal-card {
  position: relative;
  max-width: min(720px, 100%);
  width: 100%;
  padding: 16px 16px 18px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.dr-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dr-modal-close:hover {
  background: rgba(51, 65, 85, 0.95);
  color: #fff;
}
#dr-modal-body {
  padding-top: 8px;
}
.dr-matrix--modal {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .dr-matrix-inner {
    padding: 12px;
    padding-right: 12px;
  }
  .dr-matrix-art {
    position: static;
    margin: 0 auto 12px;
  }
  .dr-matrix {
    text-align: center;
  }
  .dr-matrix-head {
    text-align: center;
  }
}

@media print {
  body.profile-page {
    padding: 0;
    background: #fff !important;
  }
  .profile-sheet {
    max-width: none;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #062f2d !important;
  }
  .profile-actions {
    display: none;
  }
}
