/* MuskVest Capital — leafy green design system */
:root {
  --primary: #2f7d32;
  --primary-dark: #1f5720;
  --primary-hover: #276a29;
  --primary-soft: #e6f2e6;
  --primary-tint: #f4faf4;
  --success: #16a34a;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #0ea5e9;
  --fg: #0f1a12;
  --muted: #647063;
  --border: #e6ebe7;
  --border-2: #d9e0da;
  --card: #ffffff;
  --card-2: #f7faf7;
  --bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15,26,18,0.05);
  --shadow: 0 2px 8px rgba(15,26,18,0.06), 0 1px 2px rgba(15,26,18,0.04);
  --shadow-lg: 0 20px 50px -20px rgba(15,26,18,0.18);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
h1,h2,h3,h4 { font-family: inherit; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 12px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack > * + * { margin-top: 10px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: transparent; color: var(--fg); font: inherit; font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .18s ease; white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border-2); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--card-2); color: var(--fg); }
.btn-sm { padding: 7px 12px; font-size: .82rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- cards --- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.card-dashed { border-style: dashed; text-align: center; padding: 40px; color: var(--muted); background: var(--card-2); }

/* --- forms --- */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 6px; color: var(--fg); }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2);
  background: #fff; font: inherit; color: var(--fg); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; }
input[type=checkbox] { width: auto; }

/* --- pills / badges --- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--card-2); color: var(--fg); border: 1px solid var(--border); }
.pill-ok { background: #e6f6ec; color: #14532d; border-color: #b8e0c4; }
.pill-warn { background: #fff4e0; color: #78430c; border-color: #f5d99b; }
.pill-danger { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.pill-info { background: #e0f2fe; color: #0c4a6e; border-color: #bae6fd; }
.pill-primary { background: var(--primary-soft); color: var(--primary-dark); border-color: #c5e0c6; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.risk-low { background:#e6f6ec; color:#14532d; }
.risk-medium { background:#fff4e0; color:#78430c; }
.risk-high { background:#fee2e2; color:#7f1d1d; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-soft); color: var(--primary-dark); padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.live-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(1.3);} }

/* --- flash --- */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .9rem; border: 1px solid; }
.flash-success { background: #e6f6ec; color: #14532d; border-color: #b8e0c4; }
.flash-error { background: #fee2e2; color: #7f1d1d; border-color: #fecaca; }
.flash-info { background: #e0f2fe; color: #0c4a6e; border-color: #bae6fd; }

/* --- table --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 18px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--card-2); color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: var(--primary-tint); }

/* --- grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2c { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 900px){ .grid-2, .grid-3, .grid-2c { grid-template-columns: 1fr; } }

/* --- Page loader --- */
#page-loader { position: fixed; inset: 0; z-index: 9999; background: #fff; display: flex; align-items: center; justify-content: center; transition: opacity .35s ease, visibility .35s ease; }
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-stage { display:flex; flex-direction:column; align-items:center; gap:16px; }
.pl-spin { position: relative; width: 64px; height: 64px; }
.pl-spin svg { width:64px; height:64px; animation: pl-rot 1s linear infinite; }
.pl-spin svg circle { stroke: var(--primary); stroke-dasharray: 90 60; stroke-linecap: round; }
.pl-badge { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color: var(--primary); }
.pl-badge .ico { width: 22px; height: 22px; }
@keyframes pl-rot { to { transform: rotate(360deg); } }
.pl-title { font-weight: 700; font-size: .95rem; color: var(--fg); }
.pl-sub { color: var(--muted); font-size: .8rem; }
#route-loader { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 200% 100%; transform: translateY(-100%); transition: transform .2s; z-index: 9998; }
#route-loader.active { transform: translateY(0); animation: rl-slide 1.2s ease-in-out infinite; }
@keyframes rl-slide { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* --- Public site header --- */
.site-header { background: rgba(255,255,255,0.94); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); font-size: 1.05rem; }
.brand:hover { color: var(--fg); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff; }
.brand-mark .ico { width: 18px; height: 18px; stroke: #fff; }
.main-nav { display: flex; align-items: center; gap: 6px; flex: 1; margin-left: 12px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--fg); }
.main-nav a:hover { background: var(--card-2); color: var(--primary-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; background: transparent; border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--fg); }
@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--border); }
  .menu-open .main-nav { display: flex; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn { padding: 6px 10px; font-size: .78rem; }
}

/* --- Public hero --- */
.hero { padding: 60px 0 40px; background: linear-gradient(180deg, var(--primary-tint), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-soft); display: inline-block; padding: 5px 12px; border-radius: 999px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.trust-item .ico { color: var(--primary); }
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.hero-visual-card { position: absolute; bottom: -20px; left: -20px; background: #fff; padding: 16px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 220px; border: 1px solid var(--border); }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: 24px; } .hero-visual-card { position: static; margin-top: 12px; } }
@media (max-width: 640px) { .hero { padding: 40px 0 30px; } .hero-grid { gap: 16px; } .hero-cta { flex-direction: column; } .hero-cta .btn { width: 100%; } .trust-row { flex-direction: column; gap: 12px; } .hero-visual img { aspect-ratio: 1; } }

/* --- Sections --- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-head .eyebrow { margin-bottom: 12px; }

/* --- Stat strip --- */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 30px; background: var(--card-2); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.stat-tile { text-align: center; }
.stat-tile .v { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary-dark); }
.stat-tile .l { color: var(--muted); font-size: .82rem; }
@media (max-width: 720px){ .stat-strip { grid-template-columns: repeat(2,1fr); padding: 20px; } }
@media (max-width: 480px) { .stat-strip { grid-template-columns: 1fr; padding: 16px; } .stat-tile .v { font-size: 1.5rem; } }

/* --- Feature cards --- */
.feature-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card img { aspect-ratio: 16/10; object-fit: cover; }
.feature-card .body { padding: 20px; }

/* --- Plan cards --- */
.plan-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plan-card dl > div { display: flex; flex-direction: column; }
.plan-card dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.plan-card dd { margin: 0; font-weight: 600; font-size: .95rem; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.plan-return { font-size: 2rem; font-weight: 800; color: var(--primary-dark); margin: 16px 0 8px; letter-spacing: -0.02em; line-height: 1.05; }
.plan-return small { display: block; font-size: .74rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* --- Testimonials (LIGHT card, dark text — fixes prior contrast issue) --- */
.testi-card { background: #fff; color: var(--fg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.testi-card p { color: var(--fg); font-style: italic; line-height: 1.65; margin: 0; font-size: .95rem; }
.testi-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; }

/* --- CTA --- */
.cta-section { background: linear-gradient(135deg, var(--primary-soft), #fff); padding: 60px 0; }

/* --- Footer --- */
.site-footer { background: #0f1a12; color: #d5dcd6; padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer a { display: block; padding: 4px 0; color: #a5b3a9; font-size: .88rem; }
.site-footer a:hover { color: #fff; }
.site-footer .copy { border-top: 1px solid #1f2a22; margin-top: 30px; padding-top: 20px; text-align: center; font-size: .82rem; color: #7d8b83; }
@media (max-width: 780px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* --- Page header (interior pages) --- */
.page-header { background: linear-gradient(180deg, var(--primary-tint), #fff); padding: 60px 0 30px; border-bottom: 1px solid var(--border); }
.page-header h1 { margin: 12px 0 8px; }
@media (max-width: 640px) { .page-header { padding: 40px 0 20px; } .page-header h1 { font-size: clamp(1.5rem, 5vw, 2.15rem); } }

/* --- Animations --- */
.animate-in { animation: fadeUp .55s ease both; }
.animate-in-delay-1 { animation: fadeUp .55s ease both .08s; }
.animate-in-delay-2 { animation: fadeUp .55s ease both .16s; }
.animate-in-delay-3 { animation: fadeUp .55s ease both .24s; }
.animate-in-delay-4 { animation: fadeUp .55s ease both .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: translateY(0);} }

/* ============ AUTHENTICATED APP SHELL ============ */
.app-shell { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; background: var(--card-2); }
.app-side { background: #fff; border-right: 1px solid var(--border); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-side .brand { padding: 6px 10px 20px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.app-side nav { display: flex; flex-direction: column; gap: 2px; }
.app-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; font-weight: 500; color: var(--fg); }
.app-side nav a:hover { background: var(--card-2); }
.app-side nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.app-side nav a.active .ico { color: var(--primary); }
.app-side nav a .ico { color: var(--muted); }
.admin-link { margin-top: 8px; padding-top: 12px !important; border-top: 1px dashed var(--border); color: var(--primary-dark) !important; }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 10; }
.app-topbar h1 { margin: 0; font-size: 1.4rem; }
.app-user { display: flex; align-items: center; gap: 16px; }
.app-content { padding: 28px; max-width: 1400px; width: 100%; margin: 0 auto; flex: 1; }
@media (max-width: 900px){
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-content { padding: 16px; padding-bottom: 90px; }
  .app-topbar { padding: 12px 16px; }
  .app-topbar h1 { font-size: 1.1rem; }
}

/* Bottom nav (mobile) */
.app-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); padding: 8px 6px; z-index: 20; }
.app-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font-size: .68rem; color: var(--muted); font-weight: 500; }
.app-bottom-nav a.active { color: var(--primary); }
.app-bottom-nav a .ico { width: 20px; height: 20px; }
@media (max-width: 900px){ .app-bottom-nav { display: flex; } }

.app-drawer { position: fixed; inset: 0; background: rgba(15,26,18,.35); z-index: 30; opacity: 0; visibility: hidden; transition: opacity .2s; }
.app-drawer.open { opacity: 1; visibility: visible; }
.app-drawer-panel { position: absolute; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 8px 16px 24px; transform: translateY(100%); transition: transform .25s; }
.app-drawer.open .app-drawer-panel { transform: translateY(0); }
.app-drawer .grip { width: 42px; height: 4px; background: var(--border-2); border-radius: 999px; margin: 8px auto 12px; }
.app-drawer a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--fg); font-weight: 500; }

/* --- Metric cards --- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px){ .metric-grid { grid-template-columns: 1fr 1fr; } }
.metric { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; overflow: hidden; }
.metric .lbl { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.metric .lbl .ico { color: var(--primary); width: 16px; height: 16px; }
.metric .val { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; line-height: 1.1; }
.metric .delta { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.metric .delta.up { color: var(--success); font-weight: 600; }
.metric.accent { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: transparent; }
.metric.accent .lbl, .metric.accent .delta { color: rgba(255,255,255,0.85); }
.metric.accent .lbl .ico { color: #fff; }
.metric-spark { position: absolute; bottom: 0; right: 0; width: 80px !important; height: 30px !important; opacity: .8; }

/* --- Chart wrap --- */
.chart-wrap { position: relative; height: 300px; }

/* --- Investment items --- */
.inv-item { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.inv-item:last-child { border-bottom: 0; }
.inv-item .name { font-weight: 600; }
.inv-item .num { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-profit { color: var(--success); font-weight: 600; font-size: .82rem; font-variant-numeric: tabular-nums; }
.live-value { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--primary-dark); }
.progress-track { height: 6px; background: var(--card-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #4caf50); border-radius: 3px; transition: width .35s ease; }

/* --- Activity list --- */
.act-list { display: flex; flex-direction: column; gap: 4px; }
.act-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 10px 0; align-items: center; border-bottom: 1px solid var(--border); }
.act-item:last-child { border-bottom: 0; }
.act-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; }
.act-icon.up { background: #e6f6ec; color: #14532d; }
.act-icon.dn { background: #fee2e2; color: #7f1d1d; }
.act-icon.wa { background: #fff4e0; color: #78430c; }
.act-body strong { display: block; text-transform: capitalize; font-size: .9rem; }
.act-body .meta { color: var(--muted); font-size: .74rem; display: flex; align-items: center; gap: 8px; }
.act-amount { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: .88rem; }

/* --- Coin tabs (deposit/withdraw) --- */
.coin-tabs { display: flex; gap: 8px; }
.coin-tab { padding: 10px 20px; border-radius: 10px; background: #fff; border: 1px solid var(--border-2); font-weight: 600; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.coin-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow); }
.qr-box { display: flex; justify-content: center; padding: 20px; background: var(--card-2); border-radius: 12px; margin-top: 16px; }
.qr-box img { border-radius: 8px; background: #fff; padding: 8px; }
.copy-row { display: flex; align-items: center; gap: 10px; background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.copy-row .val { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: .82rem; word-break: break-all; }

/* --- Tabs --- */
.tabs { display: inline-flex; gap: 4px; background: var(--card-2); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.tabs button { padding: 6px 14px; border-radius: 8px; border: none; background: transparent; color: var(--muted); font-weight: 600; font-size: .82rem; cursor: pointer; }
.tabs button.active { background: #fff; color: var(--fg); box-shadow: var(--shadow-sm); }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab-link { padding: 10px 16px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: .9rem; }
.tab-link.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-link:hover { color: var(--fg); }

/* --- Chat thread (support) --- */
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-height: 500px; overflow-y: auto; padding: 4px; }
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.chat-bubble.you { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.staff { align-self: flex-start; background: var(--card-2); color: var(--fg); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-meta { font-size: .68rem; opacity: .7; margin-top: 4px; }

.ticket-list { list-style: none; margin: 0; padding: 0; }
.ticket-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.ticket-list li:last-child { border-bottom: 0; }

/* Google Translate overrides */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
font { background: transparent !important; box-shadow: none !important; }

/* =========================================================
   v6 additions — landing polish, auth split, mobile, reveal
   ========================================================= */

.wrap.narrow { max-width: 780px; }
.section.alt-bg { background: var(--card-2); }
.rounded-img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-split.reverse > *:first-child { order: 1; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr; gap: 28px; }
  .about-split.reverse > *:first-child { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--fg); }
.check-list li svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 900px){ .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .grid-4 { grid-template-columns: 1fr; } }

.step-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.step-num { width:36px;height:36px;border-radius:50%;background:var(--primary-soft);color:var(--primary-dark);display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:12px;font-size:.95rem;}

.faq-list details { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq-list summary { cursor:pointer; font-weight:600; color:var(--fg); list-style: none; }
.faq-list summary::-webkit-details-marker { display:none; }
.faq-list summary::after { content: '+'; float:right; color: var(--primary); font-weight:700; font-size:1.2rem; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin-top: 10px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* Modal (demo video) */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position:absolute; inset:0; background: rgba(15,26,18,0.7); }
.modal-panel { position: relative; background:#fff; border-radius: var(--radius-lg); padding: 20px; width: min(880px, 100%); box-shadow: var(--shadow-lg); }
.modal-close { position:absolute; top:8px; right:12px; background:transparent; border:none; font-size:1.6rem; cursor:pointer; color: var(--muted); }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background:#000; }
.video-wrap iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* Hero image portrait tweaks */
.hero-visual img { aspect-ratio: 4/5; max-height: 560px; object-position: center top; }
@media (max-width: 900px){ .hero-visual img { aspect-ratio: 4/3; max-height: none; } }

/* =========================================================
   Auth split-screen
   ========================================================= */
body.auth-body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: #f7faf7; }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-trust { background: linear-gradient(160deg, var(--primary-soft), #fff 70%); padding: 40px 48px; display: flex; flex-direction: column; }
.auth-trust-inner { margin: auto 0; max-width: 460px; }
.auth-brand { display:flex; align-items:center; gap:10px; color: var(--fg); font-weight:800; font-size: 1.05rem; }
.auth-brand .brand-mark { width:34px;height:34px;border-radius:9px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center; }
.auth-chart { margin-top: 28px; background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow-sm); }
.auth-chart svg { width: 100%; height: 130px; display:block; }

.auth-main { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 720px; }
.auth-title { font-size: 1.6rem; margin-bottom: 4px; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-trust { padding: 24px 20px; }
  .auth-trust-inner { max-width: none; margin: 12px 0 0; }
  .auth-trust h2 { font-size: 1.35rem; }
  .auth-chart { display: none; }
  .auth-main { padding: 24px 16px 40px; }
  .auth-card { padding: 22px 18px; }
}

/* Fields */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"],
.auth-card input[type="date"],
.auth-card input[type="file"],
.auth-card select,
.field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
.field select {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-2); background:#fff; color: var(--fg);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,125,50,0.15);
}
.input-with-toggle { position: relative; }
.pw-toggle { position:absolute; right: 10px; top: 50%; transform: translateY(-50%); background:transparent; border:none; color: var(--primary-dark); font-weight:600; font-size:.8rem; cursor:pointer; padding: 4px 8px; }

.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-2 .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px){ .grid-2 { grid-template-columns: 1fr; } .grid-2 .span-2 { grid-column: auto; } }

.inline-check { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--fg); cursor: pointer; }
.inline-check input { width: 16px; height: 16px; accent-color: var(--primary); }

.wrap-sm { flex-wrap: wrap; }
.link-primary { color: var(--primary-dark); font-weight: 600; }
.link-primary:hover { color: var(--primary); text-decoration: underline; }
.link-underline { text-decoration: underline; }
.xs { font-size: .72rem; }

.btn-block { width: 100%; }
.btn-lg { height: 48px; padding: 0 22px; font-size: .95rem; }

/* Step progress */
.step-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.step-progress .step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.step-progress .step .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); color: var(--muted); border: 1px solid var(--border-2); display:flex; align-items:center; justify-content:center; font-weight: 700; font-size:.85rem; }
.step-progress .step .lbl { font-size:.72rem; color: var(--muted); font-weight:600; text-align:center; }
.step-progress .step.active .dot, .step-progress .step.done .dot { background: var(--primary); color:#fff; border-color: var(--primary); }
.step-progress .step.active .lbl, .step-progress .step.done .lbl { color: var(--primary-dark); }
@media (max-width: 480px){ .step-progress .lbl { display: none; } }

/* Mobile navigation improvements */
@media (max-width: 900px){
  .hero { padding: 32px 0 24px; }
  .hero-grid { gap: 24px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .cta-section { padding: 40px 0; }
  .stat-tile .v { font-size: 1.3rem; }
  .site-header .wrap.nav { padding: 10px 16px; }
  .brand span { font-size: .95rem; }
}
@media (max-width: 520px){
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .btn-lg { height: 44px; padding: 0 16px; font-size: .9rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .trust-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat-strip { padding: 18px; gap: 10px; }
  .nav-cta .btn-outline { display: none; }
}

/* Admin KYC cards */
.kyc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.kyc-card { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.kyc-card .docs { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.kyc-card .docs a { padding: 6px 10px; border-radius: 8px; background: var(--card-2); color: var(--primary-dark); font-size:.78rem; font-weight:600; border:1px solid var(--border); }

/* ============================================================
   Premium landing enhancements — 3D orbit hero, perf snapshot
   ============================================================ */
.hero-visual { position: relative; }
.hero-visual .hero-portrait {
  position: relative; z-index: 3;
  width: 100%; max-width: 460px; margin: 0 auto; display: block;
  border-radius: 24px; object-fit: cover; aspect-ratio: 4/5;
  box-shadow: 0 30px 80px -30px rgba(47,125,50,.35), 0 10px 30px -10px rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,.6);
}
.orb-stage {
  position: absolute; inset: -6% -6% -6% -6%; z-index: 1;
  pointer-events: none; overflow: hidden; border-radius: 28px;
}
.orb-glow {
  position:absolute; inset:0;
  background:
    radial-gradient(60% 55% at 75% 30%, rgba(47,125,50,.22), transparent 70%),
    radial-gradient(50% 45% at 20% 80%, rgba(120,200,140,.25), transparent 70%),
    linear-gradient(180deg, #f6fbf6 0%, #ffffff 100%);
}
.orb-ring {
  position: absolute; left: 50%; top: 50%;
  border: 1px dashed rgba(47,125,50,.35);
  border-radius: 50%; transform-origin: center;
  animation: orbSpin 24s linear infinite;
}
.orb-ring.r1 { width: 78%; height: 78%; margin: -39% 0 0 -39%; }
.orb-ring.r2 { width: 96%; height: 96%; margin: -48% 0 0 -48%; animation-duration: 40s; animation-direction: reverse; border-color: rgba(47,125,50,.22); }
.orb-ring.r3 { width: 110%; height: 110%; margin: -55% 0 0 -55%; animation-duration: 60s; border-color: rgba(47,125,50,.15); border-style: solid; }
.orb-sphere {
  position: absolute; right: 6%; top: 8%; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a9e6b2, #2f7d32 55%, #1c4d1f 100%);
  box-shadow: 0 20px 40px -12px rgba(47,125,50,.45), inset -6px -8px 20px rgba(0,0,0,.25);
  animation: orbFloat 6s ease-in-out infinite;
  z-index: 2;
}
.orb-sphere .orb-shine {
  position:absolute; top:10%; left:14%; width:34%; height:24%; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.7), transparent 70%);
  filter: blur(2px);
}
.orb-dot { position:absolute; width:8px; height:8px; border-radius:50%; background:#2f7d32; box-shadow:0 0 12px rgba(47,125,50,.6); z-index:2; }
.orb-dot.d1 { top:18%; left:10%; animation: orbFloat 5s ease-in-out infinite; }
.orb-dot.d2 { bottom:22%; right:14%; animation: orbFloat 7s ease-in-out infinite reverse; }
.orb-dot.d3 { top:60%; left:6%; width:6px; height:6px; opacity:.7; animation: orbFloat 8s ease-in-out infinite; }
.hero-mini-card {
  position: absolute; left: -8px; bottom: 12%; z-index: 4;
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:10px 14px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.15); min-width: 150px;
}
.hero-mini-card .v { font-weight: 800; font-size: 1.1rem; color: var(--fg); margin-top:2px; }
.hero-mini-card .mini-spark { height: 34px !important; margin-top:4px; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce){
  .orb-ring, .orb-sphere, .orb-dot { animation: none !important; }
}
@media (max-width: 900px){
  .orb-sphere { width: 64px; height: 64px; right: 4%; top: 6%; }
  .hero-mini-card { position: static; margin: 12px auto 0; }
}

/* Performance snapshot */
.perf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.perf-chart .chart-wrap { height: 280px; }
.perf-side { display: grid; gap: 14px; }
.spark-card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:14px 16px; box-shadow: var(--shadow-sm); }
.spark-card canvas { height: 60px !important; margin-top: 6px; }
.spark-card .pos { color: var(--success); font-weight: 700; }
.perf-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perf-metric { background:#fff; border:1px solid var(--border); border-radius:14px; padding:18px; text-align:center; box-shadow: var(--shadow-sm); }
.perf-metric .v { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.perf-metric .l { font-size:.78rem; color: var(--muted); margin-top:4px; font-weight:600; letter-spacing:.02em; text-transform: uppercase; }
@media (max-width: 900px){
  .perf-grid { grid-template-columns: 1fr; }
  .perf-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .perf-metrics { grid-template-columns: 1fr; }
  .perf-chart .chart-wrap { height: 220px; }
  .perf-metric { padding: 14px; }
  .perf-metric .v { font-size: 1.35rem; }
}

/* Dashboard cockpit band */
.cockpit-band {
  background: linear-gradient(135deg, #1c4d1f 0%, #2f7d32 55%, #4ea653 100%);
  color: #fff; border-radius: 18px; padding: 18px 22px; margin-bottom: 16px;
  box-shadow: 0 20px 40px -20px rgba(47,125,50,.5);
}
.cockpit-band .cb-row {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto;
  gap: 22px; align-items: center;
}
.cockpit-band .cb-eyebrow { font-size:.72rem; text-transform: uppercase; letter-spacing:.08em; opacity:.85; }
.cockpit-band .cb-name { font-size: 1.15rem; font-weight: 700; }
.cockpit-band .cb-stat .l { font-size:.72rem; text-transform: uppercase; letter-spacing:.06em; opacity:.85; }
.cockpit-band .cb-stat .v { font-size: 1.35rem; font-weight: 800; margin-top: 2px; }
.cockpit-band .cb-actions { display:flex; gap: 8px; }
.cockpit-band .cb-actions .btn-primary { background:#fff; color: var(--primary-dark); border-color:#fff; }
.cockpit-band .cb-actions .btn-primary:hover { background:#eefaee; }
.cockpit-band .cb-actions .btn-outline { border-color: rgba(255,255,255,.6); color:#fff; background: transparent; }
.cockpit-band .cb-actions .btn-outline:hover { background: rgba(255,255,255,.12); }
@media (max-width: 900px){
  .cockpit-band .cb-row { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .cockpit-band .cb-actions { grid-column: 1 / -1; }
  .cockpit-band .cb-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  .cockpit-band { padding: 14px 16px; margin-bottom: 12px; }
  .cockpit-band .cb-row { grid-template-columns: 1fr; row-gap: 12px; }
  .cockpit-band .cb-name { font-size: 1rem; }
  .cockpit-band .cb-stat .v { font-size: 1.15rem; }
}

/* Extra mobile polish */
@media (max-width: 640px){
  .grid-2c, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric .val { font-size: 1.15rem; }
  .chart-wrap { height: 220px; }
  .about-split, .about-split.reverse { grid-template-columns: 1fr; }
  table { font-size: .85rem; }
}

/* ==========================================================================
   MISSION CONTROL v2 — premium dashboard + admin cockpit (white / leafy green)
   ========================================================================== */

:root{
  --shadow-cockpit: 0 1px 2px rgba(16,32,20,.04), 0 8px 24px -12px rgba(16,32,20,.16);
  --shadow-hover: 0 2px 4px rgba(16,32,20,.05), 0 18px 40px -18px rgba(16,32,20,.28);
}

/* ---------- App shell refinements ---------- */
.app-shell{ position: relative; }
.app-side{ z-index: 40; }
.app-side::before{
  content:""; position:absolute; inset:auto -60px -60px -60px; height:220px;
  background: radial-gradient(circle at 30% 100%, rgba(47,125,50,.10), transparent 70%);
  pointer-events:none;
}
.app-side .nav-label{
  font-size:.66rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted);
  font-weight:700; padding:14px 12px 6px;
}
.app-side nav a{ position:relative; transition: background .18s ease, color .18s ease, transform .18s ease; }
.app-side nav a:hover{ transform: translateX(2px); }
.app-side nav a.active::before{
  content:""; position:absolute; left:-14px; top:8px; bottom:8px; width:3px;
  border-radius:0 3px 3px 0; background: var(--primary);
}
.side-orbit{
  margin:14px 10px 6px; padding:14px; border-radius:14px; position:relative; overflow:hidden;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color:#fff;
}
.side-orbit .t{ font-size:.8rem; font-weight:700; }
.side-orbit .s{ font-size:.7rem; opacity:.85; margin-top:2px; line-height:1.4; }
.side-orbit .btn{ margin-top:10px; background:#fff; color:var(--primary-dark); border-color:#fff; width:100%; justify-content:center; }
.side-orbit::after{
  content:""; position:absolute; width:120px; height:120px; right:-45px; top:-45px;
  border-radius:50%; border:1px solid rgba(255,255,255,.35);
}

/* ---------- Top bar ---------- */
.app-topbar{ gap:14px; }
.tb-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.tb-title{ min-width:0; }
.tb-title h1{ margin:0; font-size:1.25rem; letter-spacing:-.02em; }
.tb-title .crumb{ font-size:.72rem; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-weight:600; }
.tb-right{ display:flex; align-items:center; gap:10px; margin-left:auto; }
.tb-menu{
  display:none; width:38px; height:38px; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--fg); cursor:pointer;
}
.tb-search{ position:relative; }
.tb-search input{
  height:38px; width:230px; padding:0 12px 0 34px; border-radius:999px; font-size:.85rem;
  border:1px solid var(--border); background: var(--card-2);
}
.tb-search input:focus{ background:#fff; }
.tb-search .ico{ position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--muted); width:16px; height:16px; }
.tb-icon-btn{
  position:relative; width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--border); border-radius:50%; background:#fff; color:var(--fg); cursor:pointer;
}
.tb-icon-btn:hover{ background: var(--card-2); }
.tb-icon-btn .dot{
  position:absolute; top:7px; right:8px; width:7px; height:7px; border-radius:50%;
  background: var(--primary); box-shadow:0 0 0 2px #fff;
}
.dd{ position:relative; }
.dd-panel{
  position:absolute; right:0; top:calc(100% + 10px); width:290px; background:#fff;
  border:1px solid var(--border); border-radius:14px; box-shadow: var(--shadow-hover);
  padding:8px; z-index:60; opacity:0; visibility:hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dd.open .dd-panel{ opacity:1; visibility:visible; transform: translateY(0); }
.dd-panel h4{ margin:6px 10px 8px; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.dd-panel a, .dd-panel .dd-item{
  display:flex; gap:10px; align-items:flex-start; padding:9px 10px; border-radius:10px;
  color:var(--fg); font-size:.84rem;
}
.dd-panel a:hover{ background: var(--card-2); }
.dd-panel .meta{ display:block; font-size:.72rem; color:var(--muted); margin-top:2px; }
.dd-panel .sep{ height:1px; background:var(--border); margin:6px 4px; }
.tb-avatar{
  display:flex; align-items:center; gap:9px; padding:4px 8px 4px 4px; border-radius:999px;
  border:1px solid var(--border); background:#fff; cursor:pointer;
}
.tb-avatar .av{
  width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark)); color:#fff; font-weight:700; font-size:.8rem;
}
.tb-avatar .who{ line-height:1.15; text-align:left; max-width:130px; }
.tb-avatar .who b{ display:block; font-size:.8rem; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tb-avatar .who span{ font-size:.7rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }

/* ---------- Metric cards v2 ---------- */
.metric-grid.cols-6{ grid-template-columns: repeat(6, minmax(0,1fr)); }
.metric{ box-shadow: var(--shadow-cockpit); transition: transform .2s ease, box-shadow .2s ease; }
.metric:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.metric .val{ font-size: 1.55rem; }
.metric.accent{ box-shadow: 0 18px 36px -20px rgba(31,87,32,.75); }
.metric .trend{
  display:inline-flex; align-items:center; gap:4px; margin-top:8px; font-size:.74rem; font-weight:700;
  padding:3px 8px; border-radius:999px; background: var(--primary-soft); color: var(--primary-dark);
}
.metric .trend.dn{ background:#fdeaea; color: var(--danger); }
.metric .trend.flat{ background: var(--card-2); color: var(--muted); }
.metric.accent .trend{ background: rgba(255,255,255,.18); color:#fff; }
.metric .spark{ display:block; width:100%; height:34px; margin-top:10px; overflow:visible; }
.metric-spark{ display:none; }

/* ---------- Section / card toolbars ---------- */
.card{ box-shadow: var(--shadow-cockpit); }
.card-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.card-head h3{ margin:0; font-size:1.02rem; }
.card-head p{ margin:2px 0 0; }
.chip-row{ display:flex; gap:6px; flex-wrap:wrap; }
.chip{
  border:1px solid var(--border); background:#fff; border-radius:999px; padding:5px 12px;
  font-size:.76rem; font-weight:600; color:var(--muted); cursor:pointer; transition: all .16s ease;
}
.chip:hover{ border-color: var(--primary); color: var(--primary-dark); }
.chip.active{ background: var(--primary); border-color: var(--primary); color:#fff; }

/* ---------- Quick actions ---------- */
.qa-grid{ display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:12px; }
.qa{
  display:flex; flex-direction:column; gap:8px; align-items:flex-start; padding:16px;
  background:#fff; border:1px solid var(--border); border-radius:14px; color:var(--fg);
  box-shadow: var(--shadow-cockpit); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.qa:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.qa .qi{
  width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background: var(--primary-soft); color: var(--primary-dark);
}
.qa strong{ font-size:.9rem; }
.qa span{ font-size:.74rem; color: var(--muted); }
.qa.primary{ background: linear-gradient(140deg, var(--primary), var(--primary-dark)); border-color:transparent; color:#fff; }
.qa.primary .qi{ background: rgba(255,255,255,.18); color:#fff; }
.qa.primary span{ color: rgba(255,255,255,.85); }

/* ---------- Insight mini cards ---------- */
.insight-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap:12px; }
.insight{
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:14px 16px;
  box-shadow: var(--shadow-cockpit); position:relative; overflow:hidden;
}
.insight .l{ font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:700; }
.insight .v{ font-size:1.05rem; font-weight:700; margin-top:6px; }
.insight .s{ font-size:.74rem; color:var(--muted); margin-top:2px; }
.insight::after{
  content:""; position:absolute; right:-30px; bottom:-30px; width:90px; height:90px; border-radius:50%;
  border:1px solid var(--primary-soft);
}

/* ---------- Coin / allocation cards ---------- */
.coin-row{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--border); }
.coin-row:last-child{ border-bottom:0; }
.coin-badge{
  width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background: var(--primary-soft); color: var(--primary-dark); font-weight:800; font-size:.78rem; flex:0 0 auto;
}
.coin-row .cn{ flex:1; min-width:0; }
.coin-row .cn b{ font-size:.87rem; }
.coin-row .cn .bar{ height:5px; border-radius:999px; background:var(--card-2); margin-top:6px; overflow:hidden; }
.coin-row .cn .bar i{ display:block; height:100%; border-radius:999px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.coin-row .cv{ text-align:right; font-size:.85rem; font-weight:700; }
.coin-row .cv span{ display:block; font-size:.72rem; font-weight:500; color:var(--muted); }

/* ---------- Tables: premium + mobile card mode ---------- */
.table-wrap{ background:#fff; border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-cockpit); overflow:hidden; }
.table-wrap .table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table-wrap table{ min-width:640px; }
.table-wrap thead th{
  font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted);
  background: var(--card-2); white-space:nowrap;
}
.table-wrap tbody tr{ transition: background .15s ease; }
.table-wrap tbody tr:hover{ background: var(--primary-tint); }
.table-toolbar{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding:14px 16px; border-bottom:1px solid var(--border);
}
.table-toolbar input, .table-toolbar select{ height:38px; font-size:.85rem; }
.table-toolbar .grow{ flex:1; min-width:170px; }

@media (max-width: 760px){
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap th, .table-wrap td, .table-wrap tr{ display:block; }
  .table-wrap table{ min-width:0; }
  .table-wrap thead{ position:absolute; left:-9999px; }
  .table-wrap tbody tr{
    border:1px solid var(--border); border-radius:14px; margin:12px; padding:6px 4px; background:#fff;
  }
  .table-wrap tbody td{
    display:flex; justify-content:space-between; align-items:center; gap:14px; text-align:right !important;
    border:0; border-bottom:1px dashed var(--border); padding:9px 12px; font-size:.85rem;
  }
  .table-wrap tbody td:last-child{ border-bottom:0; }
  .table-wrap tbody td::before{
    content: attr(data-label); text-align:left; font-size:.7rem; text-transform:uppercase; letter-spacing:.05em;
    color: var(--muted); font-weight:700; flex:0 0 40%;
  }
  .table-wrap tbody td > *{ margin-left:auto; }
}

/* ---------- Tabs nav (admin) ---------- */
.tabs-nav{ display:flex; gap:6px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; margin-bottom:18px; scrollbar-width:none; }
.tabs-nav::-webkit-scrollbar{ display:none; }
.tabs-nav .tab-link{
  white-space:nowrap; padding:8px 14px; border-radius:999px; font-size:.84rem; font-weight:600;
  color: var(--muted); border:1px solid var(--border); background:#fff;
}
.tabs-nav .tab-link.active{ background: var(--primary); border-color: var(--primary); color:#fff; }

/* ---------- Pending actions ---------- */
.pending-list{ display:flex; flex-direction:column; gap:10px; }
.pending-item{
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:12px;
  border:1px solid var(--border); background:#fff;
}
.pending-item .pi{
  width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  background: var(--primary-soft); color: var(--primary-dark); flex:0 0 auto;
}
.pending-item.warn .pi{ background:#fdf3e3; color: var(--warn); }
.pending-item.danger .pi{ background:#fdeaea; color: var(--danger); }
.pending-item .pb{ flex:1; min-width:0; }
.pending-item .pb b{ font-size:.87rem; display:block; }
.pending-item .pb span{ font-size:.74rem; color: var(--muted); }
.pending-item .pc{ font-size:1.15rem; font-weight:800; }

/* ---------- Orbit deco band ---------- */
.orbit-band{ position:relative; overflow:hidden; }
.orbit-band::before, .orbit-band::after{
  content:""; position:absolute; border-radius:50%; border:1px solid rgba(255,255,255,.22); pointer-events:none;
}
.orbit-band::before{ width:320px; height:320px; right:-90px; top:-140px; }
.orbit-band::after{ width:200px; height:200px; right:20px; bottom:-120px; }

/* ---------- Reveal on scroll (cockpit) ---------- */
.rv{ opacity:0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.rv.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .rv{ opacity:1; transform:none; transition:none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px){
  .metric-grid.cols-6{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .qa-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1024px){
  .app-shell{ grid-template-columns: 1fr; }
  .app-side{
    position: fixed; top:0; left:0; bottom:0; width:270px; transform: translateX(-100%);
    transition: transform .26s ease; box-shadow: 0 0 40px rgba(15,26,18,.18); display:flex;
    z-index: 50; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  body.side-open .app-side{ transform: translateX(0); }
  .side-backdrop{
    position: fixed; inset:0; background: rgba(15,26,18,.4); z-index:35; opacity:0; visibility:hidden;
    transition: opacity .2s;
  }
  body.side-open .side-backdrop{ opacity:1; visibility:visible; }
  .tb-menu{ display:flex; }
}
@media (max-width: 640px) {
  .app-side { width: 100%; max-width: 85vw; }
  .app-content { padding: 12px; }
}
@media (max-width: 900px){
  .app-side{ display:flex; }
  .metric-grid, .metric-grid.cols-6{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .qa-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tb-search{ display:none; }
  .tb-avatar .who{ display:none; }
  .app-content{ padding:14px; padding-bottom:96px; }
  .card{ padding:16px; }
  .chart-wrap{ height:240px; }
}
@media (max-width: 560px){
  .metric-grid, .metric-grid.cols-6{ grid-template-columns: 1fr 1fr; gap:10px; }
  .metric{ padding:14px; }
  .metric .val{ font-size:1.25rem; }
  .qa-grid{ grid-template-columns: 1fr 1fr; }
  .qa{ padding:13px; gap: 6px; }
  .qa strong { font-size: 0.85rem; }
  .tb-title h1{ font-size:1.02rem; }
  .cockpit-band{ padding:16px !important; }
  .insight-grid{ grid-template-columns: 1fr 1fr; }
  .chart-wrap{ height:210px; }
  .tb-search input { width: 100%; max-width: 160px; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 400px){
  .qa-grid{ grid-template-columns: 1fr; }
  .insight-grid{ grid-template-columns: 1fr; }
  .btn-lg { padding: 12px 18px; font-size: 0.95rem; }
  .btn-sm { padding: 6px 10px; font-size: 0.78rem; }
  h1 { font-size: clamp(1.25rem, 4vw, 2rem); }
  h2 { font-size: clamp(1.1rem, 3vw, 1.75rem); }
  .wrap { padding: 0 16px; }
}

.card > .table-wrap, .card .table-wrap{ border:0; box-shadow:none; border-radius:0; }
@media (max-width: 760px){ .card > .table-wrap tbody tr, .card .table-wrap tbody tr{ margin:12px 0; } }


/* ============ MOBILE-FIRST ENHANCEMENTS ============ */

/* Touch-friendly spacing and sizing */
@media (max-width: 768px) {
  .btn { padding: 12px 16px; min-height: 44px; }
  .btn-lg { padding: 14px 20px; min-height: 48px; }
  .btn-sm { padding: 8px 12px; min-height: 40px; }
  input, select, textarea { min-height: 44px; font-size: 16px; padding: 12px; }
  .field { margin-bottom: 16px; }
}

/* Improved navigation menu responsiveness */
@media (max-width: 980px) {
  .main-nav { gap: 0; padding: 8px 0; }
  .main-nav a { padding: 12px 16px; width: 100%; text-align: left; border-radius: 0; }
  .main-nav a:hover { background: var(--primary-soft); }
  .nav { padding: 12px 0; }
}

/* Hero section mobile improvements */
@media (max-width: 768px) {
  .hero { padding: 40px 0 24px; }
  .hero-grid { gap: 20px; }
  .eyebrow { font-size: 0.7rem; padding: 4px 10px; }
  h1 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  .lead { font-size: 1rem; }
}

/* Section padding optimization */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-head { max-width: 100%; }
}

/* Grid optimization for mobile */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { gap: 12px; }
  .grid-2c { gap: 12px; }
}

/* Card improvements */
@media (max-width: 768px) {
  .card { padding: 16px; border-radius: 12px; }
  .card-hover { transform: none; }
  .card-hover:hover { transform: none; box-shadow: var(--shadow); }
}

/* Feature card mobile */
@media (max-width: 768px) {
  .feature-card img { aspect-ratio: 16/12; }
  .feature-card .body { padding: 16px; }
}

/* Plan card mobile */
@media (max-width: 768px) {
  .plan-card { padding: 18px; }
  .plan-card dl { grid-template-columns: 1fr; gap: 6px; }
  .plan-return { font-size: 1.75rem; }
}

/* Testimonial card mobile */
@media (max-width: 768px) {
  .testi-card { padding: 18px; }
  .testi-card p { font-size: 0.9rem; }
}

/* FAQ mobile */
@media (max-width: 768px) {
  .faq-list details { margin-bottom: 8px; }
  details summary { padding: 12px; font-size: 0.95rem; }
}

/* Footer mobile */
@media (max-width: 780px) {
  .site-footer { padding: 40px 0 20px; }
  .footer-grid { gap: 20px; }
  .site-footer h4 { font-size: 0.78rem; margin-bottom: 10px; }
  .site-footer a { font-size: 0.82rem; padding: 3px 0; }
  .site-footer .copy { margin-top: 20px; padding-top: 15px; font-size: 0.78rem; }
}

/* Header mobile improvements */
@media (max-width: 640px) {
  .site-header { padding: 0; }
  .nav { padding: 10px 0; gap: 12px; }
  .brand { font-size: 0.95rem; }
  .brand-mark { width: 32px; height: 32px; }
  .main-nav a { font-size: 0.82rem; }
  .nav-cta .btn { padding: 8px 12px; font-size: 0.75rem; }
}

/* Improved table responsiveness */
@media (max-width: 768px) {
  .table-wrap { border-radius: 10px; }
  .table-wrap table { font-size: 0.82rem; }
  .table-toolbar { padding: 12px; gap: 8px; }
  .table-toolbar input, .table-toolbar select { height: 36px; font-size: 0.82rem; }
}

/* Form improvements */
@media (max-width: 768px) {
  .field label { font-size: 0.78rem; margin-bottom: 6px; }
  input[type=checkbox], input[type=radio] { width: auto; margin-right: 6px; }
}

/* Modal and overlay improvements */
@media (max-width: 768px) {
  #demo-modal { padding: 16px; }
  #demo-frame { min-height: 280px; }
}

/* Pill and badge mobile */
@media (max-width: 640px) {
  .pill { font-size: 0.7rem; padding: 3px 8px; }
  .live-badge { font-size: 0.65rem; padding: 3px 8px; }
}

/* Stat tile mobile */
@media (max-width: 640px) {
  .stat-tile .v { font-size: 1.35rem; }
  .stat-tile .l { font-size: 0.75rem; }
}

/* Reveal animation mobile */
@media (prefers-reduced-motion: reduce) {
  .reveal, .animate-in, .rv { animation: none !important; opacity: 1; transform: none; }
}

/* Prevent horizontal scroll on small screens */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; }
  .wrap { max-width: 100%; }
  img { max-width: 100%; height: auto; }
}

/* Improved spacing consistency */
@media (max-width: 640px) {
  .mt-2 { margin-top: 6px; }
  .mt-4 { margin-top: 12px; }
  .mt-6 { margin-top: 16px; }
  .mb-2 { margin-bottom: 6px; }
  .mb-4 { margin-bottom: 12px; }
}

/* Text sizing improvements */
@media (max-width: 640px) {
  body { font-size: 14px; line-height: 1.5; }
  .small { font-size: 0.78rem; }
  .xs { font-size: 0.7rem; }
  h3 { font-size: 1rem; }
  h4 { font-size: 0.95rem; }
}

/* Button group mobile */
@media (max-width: 640px) {
  .hero-cta { gap: 8px; }
  .hero-cta .btn { font-size: 0.9rem; }
}

/* Ensure proper viewport */
@media (max-width: 480px) {
  .wrap { padding: 0 14px; }
  .section { padding: 40px 0; }
  .hero { padding: 32px 0 20px; }
}

/* Very small screens */
@media (max-width: 360px) {
  .wrap { padding: 0 12px; }
  .btn { padding: 10px 12px; font-size: 0.85rem; }
  .card { padding: 14px; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
}


/* ============ 3D HERO SECTION ============ */
.hero-3d {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf4 100%);
}

.hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  min-height: 600px;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 20px;
}

.hero-overlay > div {
  max-width: 600px;
}

/* Desktop feature card improvements */
@media (min-width: 1025px) {
  .feature-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border);
  }
  .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15,26,18,0.15);
    border-color: var(--primary);
  }
  .feature-card img {
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  .feature-card:hover img {
    transform: scale(1.05);
  }
}

/* PC/Desktop optimizations */
@media (min-width: 1441px) {
  .wrap { max-width: 1400px; padding: 0 40px; }
  .section { padding: 80px 0; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .hero-3d { min-height: 120vh; }
  .hero-overlay { padding: 80px 40px; gap: 60px; }
  .hero-overlay > div { max-width: 700px; }
  .grid-3 { gap: 30px; }
  .grid-2c { gap: 40px; }
  .feature-card { padding: 30px; }
  .card { padding: 30px; }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .wrap { max-width: 1200px; padding: 0 30px; }
  .section { padding: 70px 0; }
  .hero-3d { min-height: 100vh; }
  .hero-overlay { padding: 70px 30px; gap: 50px; }
}

@media (max-width: 1024px) {
  .hero-3d {
    min-height: 90vh;
  }
  .hero-overlay {
    padding: 50px 20px;
  }
}

@media (max-width: 768px) {
  .hero-3d {
    min-height: 80vh;
  }
  .hero-overlay {
    padding: 40px 16px;
    gap: 24px;
  }
  .hero-overlay > div {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-3d {
    min-height: 70vh;
  }
  .hero-overlay {
    padding: 30px 14px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }
}


/* ============ 3D CANVAS CONTAINERS ============ */
.canvas-3d-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4faf4 0%, #e8f5e9 100%);
  box-shadow: 0 10px 30px rgba(15, 26, 18, 0.1);
}

.canvas-3d-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Feature card with 3D canvas */
.feature-card .canvas-3d-container {
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
}

/* About section 3D canvas */
.about-split .canvas-3d-container {
  aspect-ratio: 16 / 10;
  min-height: 400px;
}

/* Responsive 3D containers */
@media (max-width: 768px) {
  .canvas-3d-container {
    aspect-ratio: 16 / 12;
    min-height: 300px;
  }
  .about-split .canvas-3d-container {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .canvas-3d-container {
    aspect-ratio: 4 / 3;
    min-height: 240px;
    border-radius: 8px;
  }
}

/* Desktop enhancements */
@media (min-width: 1025px) {
  .canvas-3d-container {
    transition: box-shadow 0.3s ease;
  }
  .feature-card:hover .canvas-3d-container {
    box-shadow: 0 20px 50px rgba(47, 125, 50, 0.2);
  }
}


/* ============ STATIC HERO IMAGE BACKGROUND + POLISH ============ */
.hero-3d {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.82) 42%, rgba(244,250,244,0.50) 100%),
    url('img/rocket-launch-hero.jpg') center right/cover no-repeat;
}
.hero-image-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-image-backdrop::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 72% 35%, rgba(47,125,50,0.18), transparent 48%),
    linear-gradient(180deg, transparent 0%, rgba(244,250,244,0.72) 100%);
  pointer-events: none;
}
.premium-scene-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card-2);
}
.feature-card .premium-scene-img {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

/* ============ DESKTOP / PC RESPONSIVE POLISH ============ */
@media (min-width: 1025px) {
  .app-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .app-topbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    min-height: 76px;
    padding: 14px 28px;
  }
  .tb-left, .tb-right { min-width: 0; }
  .tb-right { justify-content: end; }
  .tb-search input { width: min(38vw, 480px); }
  .dd { flex: 0 0 auto; }
  .dd-panel { position: absolute; max-height: calc(100vh - 110px); overflow: auto; }
  .app-content { max-width: none; padding: 28px 32px 40px; }
  .hero-overlay { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
  .hero-overlay h1 { font-size: 3rem; line-height: 1.08; }
  .perf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
  .grid-2c { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap: 24px; }
  .dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr); gap: 24px; align-items: start; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .chart-wrap { height: 320px; }
  .metric-grid.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qa-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cockpit-band { padding: 24px 28px; }
  .cb-row { grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(130px, .75fr)) auto; }
}
@media (min-width: 1441px) {
  .app-shell { grid-template-columns: 280px minmax(0, 1fr); }
  .app-content { padding-left: 40px; padding-right: 40px; }
  .dashboard-main-grid { grid-template-columns: minmax(0, 1.7fr) minmax(380px, .8fr); gap: 28px; }
  .metric-grid.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart-wrap { height: 380px; }
}

/* Dashboard desktop organization */
.dash-action-card { padding: 18px; }
.dash-action-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.dash-action-head h3 { margin:0; }
.dash-action-head p { margin:2px 0 0; }
.dashboard-main-grid { display:grid; grid-template-columns: 1fr; gap:16px; }
.cb-row { display:grid; grid-template-columns: 1fr; gap:18px; align-items:center; }
.cb-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-start; }
@media (min-width: 720px) and (max-width: 1024px) {
  .cb-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-actions { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .app-topbar { display:grid; grid-template-columns: minmax(0, 1fr) auto; align-items:center; }
  .tb-left { min-width:0; }
  .tb-right { min-width:0; }
  .dd-panel { position:absolute; right:0; }
}

@media (max-width: 640px) {
  .hero-3d {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(244,250,244,0.82) 100%),
      url('img/rocket-launch-hero.jpg') center/cover no-repeat;
  }
  .premium-scene-img { aspect-ratio: 4 / 3; }
  .dash-action-card { padding: 14px; }
}

@media (min-width: 1025px) {
  .cockpit-band .cb-row {
    grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(130px, .75fr)) auto;
    gap: 22px;
  }
  .cockpit-band .cb-actions { justify-content: flex-end; flex-wrap: nowrap; }
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr);
    gap: 24px;
    align-items: start;
  }
}

@media (min-width: 1441px) {
  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(380px, .8fr);
    gap: 28px;
  }
}

/* Dashboard live bar chart card */
.live-bar-card {
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  position: relative;
}
.live-bar-card .tv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eef2ef;
  background: linear-gradient(135deg, #f8fbf8 0%, #ffffff 100%);
}
.live-bar-card .tv-header h3 { margin: 0; font-size: 1rem; }
.live-bar-card .tv-header .live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(47,125,50,0.10); color: #2f7d32;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
}
.live-bar-card .tv-header .live-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #2f7d32; box-shadow: 0 0 0 0 rgba(47,125,50,0.6);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(47,125,50,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(47,125,50,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,125,50,0); }
}
.live-bar-card .tv-body { height: 360px; }

@media (max-width: 640px) {
  .live-bar-card { min-height: 340px; }
  .live-bar-card .tv-body { height: 280px; }
}

/* Ecosystem Logo Styling */
.eco-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 8px;
}
.eco-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}
.ecosystem-card:hover .eco-icon {
  background: var(--primary);
}
.ecosystem-card:hover .eco-logo {
  filter: brightness(0) invert(1);
}
