/* 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 { 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; }

.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;
  }
}

@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;
  }
}
