:root {
  --gold:    #E8C547;
  --gold-lt: #FFD96A;
  --gold-dk: #C9A82A;
  --black:   #181820;
  --card:    #22222E;
  --card2:   #2A2A38;
  --border:  #3A3A50;
  --text:    #FFFFFF;
  --muted:   #C0C0D0;
  --green:   #2ECC71;
  --red:     #E74C3C;
  --blue:    #3498DB;
  --sidebar-w: 260px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: var(--black); color: var(--text); line-height: 1.6; overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; border: none; transition: all .2s; white-space: nowrap; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dk)); color: #000; }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-lt), var(--gold)); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,197,71,.35); color: #000; }
.btn-outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: var(--green); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-google { background: #fff; color: #333; border: 1.5px solid #ddd; gap: 10px; }
.btn-google:hover { background: #f5f5f5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); color: #333; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.card-glass { background: rgba(34,34,46,.75); backdrop-filter: blur(12px); border: 1px solid rgba(232,197,71,.18); border-radius: 14px; padding: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.stat-card .label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.stat-card .value { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat-card .sub { font-size: .75rem; color: var(--muted); margin-top: 6px; }
.stat-card.gold-border { border-color: rgba(232,197,71,.35); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .04em; }
.form-control { width: 100%; background: var(--card2); border: 1.5px solid var(--border); color: var(--text); border-radius: 9px; padding: 12px 14px; font-size: .9rem; outline: none; transition: border-color .2s; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,197,71,.15); }
.form-control::placeholder { color: #666; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23E8C547' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.input-icon { position: relative; }
.input-icon .form-control { padding-left: 42px; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1rem; pointer-events: none; }

/* ── Badges ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.badge-gold    { background: rgba(232,197,71,.18); color: var(--gold); }
.badge-green   { background: rgba(46,204,113,.15); color: var(--green); }
.badge-red     { background: rgba(231,76,60,.15);  color: var(--red); }
.badge-blue    { background: rgba(52,152,219,.15); color: var(--blue); }
.badge-muted   { background: rgba(192,192,208,.1); color: var(--muted); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
table th { padding: 11px 14px; font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); text-align: left; }
table td { padding: 13px 14px; border-bottom: 1px solid rgba(58,58,80,.6); vertical-align: middle; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: rgba(255,255,255,.03); }

/* ── Alerts ── */
.alert { padding: 13px 16px; border-radius: 9px; margin-bottom: 18px; font-size: .875rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); color: #5be89a; }
.alert-error   { background: rgba(231,76,60,.12);  border: 1px solid rgba(231,76,60,.3);  color: #f07070; }
.alert-info    { background: rgba(52,152,219,.12); border: 1px solid rgba(52,152,219,.3); color: #70b8f0; }
.alert-warning { background: rgba(232,197,71,.12); border: 1px solid rgba(232,197,71,.3); color: var(--gold); }

/* ════════════════════════════════
   LANDING PAGE
════════════════════════════════ */
.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 300; padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(24,24,32,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topnav-brand { font-size: 1.2rem; font-weight: 800; color: var(--gold); letter-spacing: .05em; flex-shrink: 0; }
.topnav-links { display: flex; gap: 30px; }
.topnav-links a { color: var(--muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
.topnav-links a:hover { color: var(--gold); }
.topnav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 100px 40px 60px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,197,71,.15) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 80% 60%, rgba(232,197,71,.08) 0%, transparent 50%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,197,71,.12); border: 1px solid rgba(232,197,71,.25); color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .12em; padding: 6px 16px; border-radius: 99px; margin-bottom: 24px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.hero h1 span { background: linear-gradient(135deg, var(--gold), var(--gold-lt)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 520px; margin: 20px 0 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hero-stat { background: rgba(34,34,46,.85); border: 1px solid rgba(232,197,71,.18); border-radius: 12px; padding: 18px; }
.hero-stat .val { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.hero-stat .lbl { font-size: .72rem; color: var(--muted); margin-top: 4px; }

.section { padding: 90px 40px; max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .15em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.section-sub { color: var(--muted); max-width: 560px; line-height: 1.7; }

.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; }
.adv-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 28px; transition: all .3s; }
.adv-card:hover { border-color: rgba(232,197,71,.35); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.adv-icon { width: 48px; height: 48px; background: rgba(232,197,71,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.3rem; margin-bottom: 16px; }
.adv-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.adv-card p { font-size: .83rem; color: var(--muted); line-height: 1.6; }

/* Plan cards — updated with earnings display */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.plan-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; text-align: center; transition: all .3s; position: relative; overflow: hidden; }
.plan-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-lt)); opacity: 0; transition: opacity .3s; }
.plan-card:hover, .plan-card.featured { border-color: rgba(232,197,71,.45); box-shadow: 0 8px 36px rgba(232,197,71,.12); }
.plan-card:hover::before, .plan-card.featured::before { opacity: 1; }
.plan-badge { position: absolute; top: 16px; right: 16px; background: var(--gold); color: #000; font-size: .65rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; letter-spacing: .06em; text-transform: uppercase; }
.plan-type { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.plan-rate { font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; }
.plan-rate sup { font-size: 1.2rem; vertical-align: super; }
.plan-name { font-size: 1rem; font-weight: 700; margin: 10px 0 14px; }
.plan-earn { background: rgba(232,197,71,.08); border: 1px solid rgba(232,197,71,.2); border-radius: 10px; padding: 12px; margin-bottom: 16px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.plan-earn .earn-val { color: var(--gold); font-weight: 800; font-size: .9rem; }
.plan-details { font-size: .8rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.plan-details span { display: flex; align-items: center; justify-content: center; gap: 6px; }

.calc-box { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.calc-result { background: var(--card2); border: 1px solid rgba(232,197,71,.25); border-radius: 14px; padding: 24px; }
.calc-result-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.calc-result-row:last-child { border-bottom: none; font-size: 1rem; font-weight: 700; color: var(--gold); }
.calc-result-row .lbl { color: var(--muted); }

/* ════════════════════════════════
   APP LAYOUT
════════════════════════════════ */
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh; background: rgba(22,22,30,.99); border-right: 1px solid var(--border); z-index: 200; display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.4,0,.2,1); overflow: hidden; }
.sidebar-logo { padding: 28px 24px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sidebar-logo-name { font-size: 1.1rem; font-weight: 900; color: var(--gold); letter-spacing: .06em; }
.sidebar-logo-sub { font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; overflow-x: hidden; }
.nav-section { font-size: .65rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); padding: 12px 12px 6px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--muted); font-size: .875rem; font-weight: 500; transition: all .2s; margin-bottom: 2px; cursor: pointer; text-decoration: none; }
.nav-item:hover { background: rgba(232,197,71,.08); color: var(--text); }
.nav-item.active { background: rgba(232,197,71,.14); color: var(--gold); border-left: 3px solid var(--gold); padding-left: 11px; }
.nav-item .icon { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--red); color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; }
.sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--gold-dk)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: #000; flex-shrink: 0; }
.sidebar-user-name { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .7rem; color: var(--muted); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 199; }
.sidebar-overlay.active { display: block; }

.main-wrap { margin-left: var(--sidebar-w); min-height: 100vh; width: calc(100% - var(--sidebar-w)); }
.topbar { height: 64px; background: rgba(22,22,30,.97); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.topbar-title { font-size: 1rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.notif-btn { position: relative; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; transition: color .2s; }
.notif-btn:hover { color: var(--gold); background: rgba(232,197,71,.1); }
.notif-btn .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid var(--black); }
.page-content { padding: 28px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.4rem; font-weight: 800; }
.page-header p { color: var(--muted); font-size: .875rem; margin-top: 4px; }

.hamburger { display: none; background: rgba(232,197,71,.08); border: 1px solid rgba(232,197,71,.2); color: var(--gold); font-size: 1.1rem; cursor: pointer; padding: 8px 10px; border-radius: 8px; transition: all .2s; }
.hamburger:hover { background: rgba(232,197,71,.15); }

/* ── Stats grid ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Progress ── */
.progress-bar { background: var(--border); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dk), var(--gold)); border-radius: 99px; }

/* ── Gold divider ── */
.gold-line { height: 2px; background: linear-gradient(90deg, var(--gold), transparent); border: none; margin: 24px 0; }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(232,197,71,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth page ── */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left { background: radial-gradient(ellipse 100% 80% at 30% 50%, rgba(232,197,71,.18) 0%, transparent 60%), var(--card); display: flex; align-items: center; justify-content: center; padding: 60px; border-right: 1px solid var(--border); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 60px 40px; overflow-y: auto; }
.auth-box { width: 100%; max-width: 400px; }
.auth-logo { font-size: 1.3rem; font-weight: 900; color: var(--gold); letter-spacing: .06em; margin-bottom: 6px; }
.auth-tagline { font-size: .8rem; color: var(--muted); margin-bottom: 32px; }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-sub { font-size: .83rem; color: var(--muted); margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* ── Investment plan selector ── */
.plan-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.plan-opt { background: var(--card2); border: 2px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: all .2s; text-align: center; }
.plan-opt:hover { border-color: rgba(232,197,71,.45); }
.plan-opt.selected { border-color: var(--gold); background: rgba(232,197,71,.1); }
.plan-opt .rate { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.plan-opt .name { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ── Instant badge ── */
.instant-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(46,204,113,.15); border: 1px solid rgba(46,204,113,.3); color: var(--green); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,.6); }
  .main-wrap { margin-left: 0; width: 100%; }
  .hamburger { display: flex; align-items: center; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-box { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topnav { padding: 0 16px; }
  .topnav-links { display: none; }
  .hero { padding: 90px 16px 50px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 16px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 14px; }
  .topbar { padding: 0 14px; }
  .calc-box { padding: 22px 16px; }
  .card { padding: 18px 14px; }
  .auth-right { padding: 30px 16px; }
  table { font-size: .78rem; }
  table th, table td { padding: 10px 8px; }
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ════════════════════════════════
   DASHBOARD APP — shared
════════════════════════════════ */

/* Page welcome banner */
.page-welcome { margin-bottom: 32px; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.page-welcome-left h1 { font-size: 1.6rem; font-weight: 900; margin-bottom: 4px; }
.page-welcome-left p { color: var(--muted); font-size: .875rem; }
.page-date { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* XL stat cards */
.stat-xl-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-xl { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; transition: border-color .2s; }
.stat-xl:hover { border-color: rgba(232,197,71,.3); }
.stat-xl::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent-color, var(--border)); border-radius: 16px 16px 0 0; }
.stat-xl.accent-gold { --accent-color: linear-gradient(90deg,var(--gold),var(--gold-lt)); }
.stat-xl.accent-green { --accent-color: var(--green); }
.stat-xl.accent-blue  { --accent-color: var(--blue); }
.stat-xl.accent-muted { --accent-color: var(--border); }
.stat-xl-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.stat-xl-label i { font-size: .85rem; }
.stat-xl-value { font-size: 1.8rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.stat-xl-sub { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.stat-xl-sub.up   { color: var(--green); }
.stat-xl-sub.down { color: var(--red); }

/* Quick action tiles */
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 32px; }
.action-tile { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; text-align: center; cursor: pointer; transition: all .2s; text-decoration: none; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.action-tile:hover { border-color: rgba(232,197,71,.4); background: rgba(232,197,71,.05); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); color: var(--text); }
.action-tile-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.action-tile-icon.gold  { background: rgba(232,197,71,.15); color: var(--gold); }
.action-tile-icon.green { background: rgba(46,204,113,.12); color: var(--green); }
.action-tile-icon.blue  { background: rgba(52,152,219,.12); color: var(--blue); }
.action-tile-icon.red   { background: rgba(231,76,60,.12);  color: var(--red); }
.action-tile-label { font-size: .82rem; font-weight: 700; }
.action-tile-sub   { font-size: .72rem; color: var(--muted); margin-top: -4px; }

/* Section header */
.section-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-hd h3 { font-size: 1rem; font-weight: 800; }
.section-hd .section-hd-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* Content grid */
.content-grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.content-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* Investment card (compact list) */
.inv-item { background: var(--card2); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; transition: border-color .2s; }
.inv-item:last-child { margin-bottom: 0; }
.inv-item:hover { border-color: rgba(232,197,71,.25); }
.inv-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.inv-item-name { font-weight: 700; font-size: .9rem; }
.inv-item-date { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.inv-item-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.inv-item-stat { }
.inv-item-stat .k { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.inv-item-stat .v { font-size: .88rem; font-weight: 700; }

/* Plan choice cards */
.plan-choose-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 22px; }
.plan-choose { background: var(--card2); border: 2px solid var(--border); border-radius: 14px; padding: 18px; cursor: pointer; transition: all .2s; position: relative; }
.plan-choose:hover { border-color: rgba(232,197,71,.4); }
.plan-choose.active { border-color: var(--gold); background: rgba(232,197,71,.08); }
.plan-choose-rate { font-size: 1.8rem; font-weight: 900; color: var(--gold); line-height: 1; }
.plan-choose-name { font-size: .8rem; font-weight: 700; margin: 6px 0 2px; }
.plan-choose-meta { font-size: .72rem; color: var(--muted); }
.plan-choose-check { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #000; display: none; align-items: center; justify-content: center; font-size: .65rem; font-weight: 900; }
.plan-choose.active .plan-choose-check { display: flex; }

/* Balance hero */
.balance-hero { background: linear-gradient(135deg, var(--card) 0%, rgba(232,197,71,.06) 100%); border: 1px solid rgba(232,197,71,.25); border-radius: 18px; padding: 28px 32px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.balance-hero-amount { font-size: 2.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.balance-hero-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.balance-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* Tx row */
.tx-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(58,58,80,.5); }
.tx-row:last-child { border-bottom: none; }
.tx-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.tx-info { flex: 1; min-width: 0; }
.tx-info-title { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-info-sub   { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.tx-amount { text-align: right; flex-shrink: 0; }
.tx-amount .v { font-size: .95rem; font-weight: 800; }
.tx-amount .s { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* Profile avatar */
.profile-avatar-xl { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg,var(--gold),var(--gold-dk)); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 2.2rem; color: #000; margin: 0 auto 16px; border: 3px solid rgba(232,197,71,.3); }

/* Info row */
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(58,58,80,.5); font-size: .85rem; }
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--muted); }
.info-row .v { font-weight: 600; }

/* Notif item */
.notif-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(58,58,80,.5); }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.notif-body { flex: 1; }
.notif-title { font-weight: 700; font-size: .875rem; margin-bottom: 4px; }
.notif-msg   { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.notif-time  { font-size: .7rem; color: #555; margin-top: 5px; }

/* Empty state */
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state i { font-size: 2.5rem; opacity: .18; display: block; margin-bottom: 14px; }
.empty-state p { color: var(--muted); font-size: .875rem; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1024px) {
  .stat-xl-grid { grid-template-columns: repeat(2,1fr); }
  .quick-actions { grid-template-columns: repeat(4,1fr); }
  .content-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stat-xl-grid { grid-template-columns: repeat(2,1fr); }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
  .plan-choose-grid { grid-template-columns: 1fr; }
  .balance-hero { padding: 20px; }
  .balance-hero-amount { font-size: 2rem; }
}
/* ═══════════════════════════════════════════════
   BANKING TERMINAL CSS — MALABORA MMF
   Replaces card-grid system with fintech layouts
═══════════════════════════════════════════════ */

/* ─── Ticker bar ─── */
.ticker-bar{background:rgba(18,18,28,.98);border-bottom:1px solid rgba(232,197,71,.12);padding:0;overflow:hidden;height:34px;display:flex;align-items:center}
.ticker-inner{display:flex;gap:0;animation:ticker 28s linear infinite;white-space:nowrap}
.ticker-item{padding:0 32px;font-size:.72rem;font-weight:700;letter-spacing:.06em;display:flex;align-items:center;gap:8px;border-right:1px solid rgba(255,255,255,.06);color:var(--muted)}
.ticker-item .rate{color:var(--gold)}
.ticker-item .up{color:var(--green)}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ─── Wealth hero ─── */
.wealth-hero{padding:28px 0 22px;border-bottom:1px solid rgba(58,58,80,.5);margin-bottom:0}
.wealth-hero-inner{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:20px}
.wealth-greeting{font-size:.78rem;color:var(--muted);margin-bottom:6px;letter-spacing:.04em}
.wealth-amount{font-size:2.8rem;font-weight:900;letter-spacing:-.03em;line-height:1;color:var(--text)}
.wealth-amount span{color:var(--gold)}
.wealth-change{display:inline-flex;align-items:center;gap:5px;background:rgba(46,204,113,.1);border:1px solid rgba(46,204,113,.2);color:var(--green);font-size:.75rem;font-weight:700;padding:4px 10px;border-radius:99px;margin-top:8px}
.wealth-meta{display:flex;gap:28px;flex-wrap:wrap}
.wealth-meta-item{text-align:right}
.wealth-meta-item .k{font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin-bottom:4px}
.wealth-meta-item .v{font-size:1.1rem;font-weight:800}

/* ─── Summary strip (banking row, not cards) ─── */
.summary-strip{display:flex;background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:24px}
.summary-strip-item{flex:1;padding:18px 20px;border-right:1px solid var(--border);position:relative}
.summary-strip-item:last-child{border-right:none}
.summary-strip-item .k{font-size:.68rem;font-weight:700;letter-spacing:.1em;color:var(--muted);text-transform:uppercase;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.summary-strip-item .v{font-size:1.35rem;font-weight:900;line-height:1}
.summary-strip-item .s{font-size:.72rem;color:var(--muted);margin-top:5px}
.summary-strip-item.highlight{background:rgba(232,197,71,.04)}
.summary-strip-item.highlight .v{color:var(--gold)}

/* ─── Dashboard workspace grid ─── */
.workspace-grid{display:grid;grid-template-columns:1fr 340px;gap:20px;align-items:start}
.workspace-main{display:flex;flex-direction:column;gap:20px}
.workspace-side{display:flex;flex-direction:column;gap:16px}

/* ─── Panel (replaces cards for workspace) ─── */
.panel{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.panel-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}
.panel-head h3{font-size:.88rem;font-weight:800;letter-spacing:.02em}
.panel-head .panel-sub{font-size:.72rem;color:var(--muted);margin-top:2px}
.panel-body{padding:0 20px}
.panel-body.padded{padding:20px}
.panel-body.p0{padding:0}
.panel-footer{padding:14px 20px;border-top:1px solid var(--border);display:flex;gap:8px}

/* ─── Activity feed / Timeline ─── */
.activity-feed{list-style:none;padding:0 20px;margin:0}
.activity-item{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid rgba(58,58,80,.4);align-items:flex-start}
.activity-item:last-child{border-bottom:none}
.activity-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px}
.activity-dot.green{background:var(--green);box-shadow:0 0 6px rgba(46,204,113,.4)}
.activity-dot.gold{background:var(--gold);box-shadow:0 0 6px rgba(232,197,71,.4)}
.activity-dot.blue{background:var(--blue);box-shadow:0 0 6px rgba(52,152,219,.3)}
.activity-dot.red{background:var(--red)}
.activity-dot.muted{background:#555}
.activity-text{flex:1;font-size:.82rem;line-height:1.4}
.activity-text strong{color:var(--text)}
.activity-time{font-size:.68rem;color:#555;flex-shrink:0;padding-top:3px}

/* ─── Timeline (notifications style) ─── */
.timeline-day{font-size:.68rem;font-weight:800;letter-spacing:.14em;color:var(--muted);text-transform:uppercase;padding:12px 20px 8px;border-bottom:1px solid rgba(58,58,80,.3);background:rgba(20,20,30,.5)}
.timeline-item{display:flex;gap:14px;padding:16px 20px;border-bottom:1px solid rgba(58,58,80,.35);align-items:flex-start;transition:background .15s}
.timeline-item:last-child{border-bottom:none}
.timeline-item:hover{background:rgba(255,255,255,.02)}
.timeline-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:.9rem;flex-shrink:0}
.timeline-body{flex:1;min-width:0}
.timeline-title{font-size:.875rem;font-weight:700;margin-bottom:3px}
.timeline-msg{font-size:.8rem;color:var(--muted);line-height:1.5}
.timeline-time{font-size:.68rem;color:#555;margin-top:4px;display:flex;align-items:center;gap:5px}
.timeline-badge{flex-shrink:0;align-self:center}

/* ─── Ledger table ─── */
.ledger{width:100%;border-collapse:collapse;font-size:.82rem}
.ledger thead th{font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:12px 16px;border-bottom:2px solid rgba(232,197,71,.15);text-align:left;white-space:nowrap;position:sticky;top:0;background:var(--card);z-index:1}
.ledger thead th.right{text-align:right}
.ledger tbody tr{border-bottom:1px solid rgba(58,58,80,.35);transition:background .12s}
.ledger tbody tr:last-child{border-bottom:none}
.ledger tbody tr:hover{background:rgba(255,255,255,.025)}
.ledger td{padding:12px 16px;vertical-align:middle;white-space:nowrap}
.ledger td.right{text-align:right}
.ledger td.credit{color:var(--green);font-weight:700}
.ledger td.debit{color:var(--red);font-weight:700}
.ledger td.mono{font-family:monospace;font-size:.78rem;color:var(--muted)}
.ledger td.muted{color:var(--muted);font-size:.78rem}
.ledger td.bold{font-weight:800}
.ledger-wrap{overflow-x:auto;max-height:420px;overflow-y:auto}
.ledger-empty{text-align:center;padding:50px 20px;color:var(--muted);font-size:.875rem}
.ledger-empty i{font-size:2rem;opacity:.15;display:block;margin-bottom:12px}

/* ─── Type chip ─── */
.chip{display:inline-flex;align-items:center;gap:5px;font-size:.68rem;font-weight:700;padding:3px 9px;border-radius:5px;letter-spacing:.04em;text-transform:uppercase}
.chip-green{background:rgba(46,204,113,.12);color:var(--green);border:1px solid rgba(46,204,113,.2)}
.chip-gold{background:rgba(232,197,71,.12);color:var(--gold);border:1px solid rgba(232,197,71,.2)}
.chip-blue{background:rgba(52,152,219,.12);color:var(--blue);border:1px solid rgba(52,152,219,.2)}
.chip-red{background:rgba(231,76,60,.12);color:var(--red);border:1px solid rgba(231,76,60,.2)}
.chip-muted{background:rgba(200,200,200,.07);color:var(--muted);border:1px solid rgba(200,200,200,.1)}

/* ─── Chart container ─── */
.chart-container{position:relative;padding:20px}
.chart-container canvas{max-height:220px}

/* ─── Quick actions (compact) ─── */
.quick-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px}
.quick-btn{display:flex;align-items:center;gap:10px;background:var(--card2);border:1px solid var(--border);border-radius:10px;padding:11px 13px;font-size:.8rem;font-weight:700;color:var(--text);text-decoration:none;transition:all .18s}
.quick-btn:hover{border-color:rgba(232,197,71,.35);color:var(--text)}
.quick-btn .qi{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:.85rem;flex-shrink:0}

/* ─── Rates panel ─── */
.rates-panel{padding:0}
.rates-row{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;border-bottom:1px solid rgba(58,58,80,.4)}
.rates-row:last-child{border-bottom:none}
.rates-plan{font-size:.82rem;font-weight:700}
.rates-dur{font-size:.7rem;color:var(--muted);margin-top:2px}
.rates-val{font-size:1.25rem;font-weight:900;color:var(--gold)}
.rates-val sup{font-size:.65rem}

/* ─── Withdraw summary panel ─── */
.w-summary{padding:0}
.w-summary-row{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid rgba(58,58,80,.4)}
.w-summary-row:last-child{border-bottom:none}
.w-summary-row .k{font-size:.78rem;color:var(--muted)}
.w-summary-row .v{font-size:1rem;font-weight:800}
.w-summary-row.feature .v{color:var(--gold)}

/* ─── Form page grid ─── */
.form-grid{display:grid;grid-template-columns:380px 1fr;gap:20px;align-items:start;margin-bottom:24px}
.form-stack{display:flex;flex-direction:column;gap:16px}

/* ─── Profile sections ─── */
.profile-hero{display:flex;align-items:center;gap:24px;padding:28px;background:linear-gradient(135deg,var(--card) 0%,rgba(232,197,71,.04) 100%);border:1px solid rgba(232,197,71,.15);border-radius:14px;margin-bottom:20px;flex-wrap:wrap}
.profile-avatar{width:76px;height:76px;border-radius:50%;background:linear-gradient(135deg,var(--gold),#b8960c);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:900;color:#000;flex-shrink:0;border:3px solid rgba(232,197,71,.25)}
.profile-info h2{font-size:1.25rem;font-weight:900}
.profile-info p{color:var(--muted);font-size:.82rem;margin-top:3px}
.profile-stats{margin-left:auto;display:flex;gap:24px;flex-wrap:wrap}
.profile-stat .v{font-size:1.3rem;font-weight:900;text-align:center}
.profile-stat .k{font-size:.68rem;color:var(--muted);text-align:center;margin-top:2px;letter-spacing:.06em;text-transform:uppercase}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.profile-section{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.profile-section-head{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px}
.profile-section-head h3{font-size:.88rem;font-weight:800}
.profile-section-head .icon{width:32px;height:32px;border-radius:8px;background:rgba(232,197,71,.1);color:var(--gold);display:flex;align-items:center;justify-content:center;font-size:.85rem}
.profile-section-body{padding:20px}
.info-kv{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid rgba(58,58,80,.4);font-size:.84rem}
.info-kv:last-child{border-bottom:none}
.info-kv .k{color:var(--muted)}
.info-kv .v{font-weight:600}

/* ─── Invest page ─── */
.invest-grid{display:grid;grid-template-columns:1fr 320px;gap:20px;align-items:start}
.plan-row{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px}
.plan-btn{background:var(--card2);border:2px solid var(--border);border-radius:12px;padding:14px 16px;cursor:pointer;transition:all .18s;text-align:left}
.plan-btn:hover{border-color:rgba(232,197,71,.35)}
.plan-btn.sel{border-color:var(--gold);background:rgba(232,197,71,.07)}
.plan-btn .pb-rate{font-size:1.6rem;font-weight:900;color:var(--gold);line-height:1}
.plan-btn .pb-name{font-size:.75rem;font-weight:700;margin:5px 0 2px}
.plan-btn .pb-meta{font-size:.68rem;color:var(--muted)}
.plan-btn .pb-check{float:right;color:var(--gold);font-size:.85rem;display:none}
.plan-btn.sel .pb-check{display:inline}

/* ─── Profit preview ─── */
.profit-preview{background:rgba(232,197,71,.05);border:1px solid rgba(232,197,71,.18);border-radius:10px;padding:16px;margin-bottom:16px}
.pp-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid rgba(58,58,80,.4);font-size:.82rem}
.pp-row:last-child{border-bottom:none}
.pp-row .k{color:var(--muted)}
.pp-row.highlight .v{color:var(--gold);font-size:1.05rem;font-weight:900}

/* ─── Filter tabs ─── */
.filter-tabs{display:flex;gap:0;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:4px;margin-bottom:16px;flex-wrap:wrap}
.filter-tab{padding:7px 16px;border-radius:7px;font-size:.78rem;font-weight:700;color:var(--muted);cursor:pointer;transition:all .15s;text-decoration:none;white-space:nowrap}
.filter-tab:hover{color:var(--text)}
.filter-tab.active{background:var(--gold);color:#000}
.filter-tab .cnt{font-size:.65rem;opacity:.7;margin-left:4px}

/* ─── Export bar ─── */
.export-bar{display:flex;align-items:center;gap:8px;padding:10px 16px;background:var(--card);border:1px solid var(--border);border-radius:10px;margin-bottom:12px}
.export-bar span{font-size:.75rem;color:var(--muted);flex:1}
.export-btn{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:700;padding:5px 12px;border:1px solid var(--border);border-radius:6px;color:var(--muted);background:none;cursor:pointer;transition:all .15s}
.export-btn:hover{border-color:rgba(232,197,71,.3);color:var(--text)}

/* ─── Responsive ─── */
@media(max-width:1100px){.workspace-grid{grid-template-columns:1fr}.workspace-side{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:860px){.form-grid{grid-template-columns:1fr}.invest-grid{grid-template-columns:1fr}.profile-grid{grid-template-columns:1fr}.workspace-side{grid-template-columns:1fr}.summary-strip{flex-wrap:wrap}.summary-strip-item{min-width:50%}}
@media(max-width:600px){.summary-strip-item{min-width:100%;border-right:none;border-bottom:1px solid var(--border)}.plan-row{grid-template-columns:1fr 1fr}.wealth-amount{font-size:2rem}.wealth-meta{flex-wrap:wrap;gap:16px}}

/* ═══ FULL-WIDTH GRID OVERRIDES ═══ */
.workspace-grid{grid-template-columns:1.6fr 1fr}
.form-grid{grid-template-columns:1fr 1fr}
.invest-grid{grid-template-columns:1.2fr 1fr}
.workspace-main,.workspace-side{width:100%}

/* Page inner padding — tighter so panels reach edges */
.page-content{padding:20px}
.page-content > div[style*="padding:0 28px"]{padding:0 0 24px!important}

/* Panels stretch to full column width */
.panel{width:100%;box-sizing:border-box}
.profile-section{width:100%;box-sizing:border-box}

/* Summary strip always fills full width */
.summary-strip{width:100%;box-sizing:border-box}

/* Workspace side becomes 2-col on medium screens instead of stacking */
@media(min-width:1101px){
  .workspace-side{display:flex;flex-direction:column;gap:16px}
}
@media(max-width:1100px){
  .workspace-grid{grid-template-columns:1fr}
  .workspace-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}
}
@media(max-width:860px){
  .form-grid{grid-template-columns:1fr}
  .invest-grid{grid-template-columns:1fr}
  .profile-grid{grid-template-columns:1fr}
  .workspace-side{grid-template-columns:1fr}
}
