/* ==========================================================================
   Creston Fundly Design System
   Premium digital banking & investment platform
   Dark / Light theming · Gold + navy · Cormorant Garamond / Inter / JetBrains Mono
   ========================================================================== */

:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

    --primary: #0F1623;
    --primary-light: #1A2640;
    --primary-soft: #22395C;

    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dim: rgba(201, 168, 76, 0.15);

    --accent: #C9A84C;
    --accent-strong: #E8C97A;
    --accent-soft: rgba(201, 168, 76, 0.15);
    --accent-gold: #E8C97A;
    --gold-soft: rgba(201, 168, 76, 0.15);
    --silver: #CBD5E1;

    --success: #4CAF6E;
    --success-soft: rgba(76, 175, 110, 0.14);
    --info: #5B8DEF;
    --info-soft: rgba(91, 141, 239, 0.15);
    --warning: #E5A94D;
    --warning-soft: rgba(229, 169, 77, 0.16);
    --danger: #E5484D;
    --danger-soft: rgba(229, 72, 77, 0.15);

    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
    --card-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    --glow: 0 0 60px rgba(201, 168, 76, 0.12);

    --transition: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t: 0.35s;

    --sidebar-width: 268px;
    --topbar-height: 72px;
}

/* ------------------------------ Dark theme (default) ------------------- */
[data-theme='dark'] {
    color-scheme: dark;
    --bg: #080C14;
    --bg-deep: #04070E;
    --bg-2: #0F1623;
    --bg-3: #1A2640;
    --bg-grad: radial-gradient(1200px 600px at 15% -10%, rgba(26, 38, 64, 0.55), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(201, 168, 76, 0.10), transparent 55%);
    --surface: rgba(255, 255, 255, 0.045);
    --surface-solid: #111B2E;
    --surface-2: #182236;
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(201, 168, 76, 0.14);
    --border-soft: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: #F0EDE6;
    --text-secondary: #A8B4C4;
    --text-muted: #5A6A80;
    --table-alt: rgba(255, 255, 255, 0.025);
    --input-bg: rgba(255, 255, 255, 0.06);
    --glass-blur: 22px;
}

/* ------------------------------ Light theme ---------------------------- */
[data-theme='light'] {
    color-scheme: light;
    --bg: #F5F3EE;
    --bg-deep: #ECEAE3;
    --bg-2: #ECEAE3;
    --bg-3: #E2DDD4;
    --bg-grad: radial-gradient(1100px 600px at 12% -12%, rgba(140, 110, 40, 0.10), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(184, 148, 58, 0.10), transparent 55%);
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #FFFFFF;
    --surface-2: #F8F6F1;
    --surface-hover: #FFFFFF;
    --border: rgba(140, 110, 40, 0.18);
    --border-soft: rgba(0, 0, 0, 0.07);
    --border-strong: rgba(0, 0, 0, 0.14);
    --text-primary: #1A1A2E;
    --text-secondary: #4A5060;
    --text-muted: #8A8E9A;
    --table-alt: rgba(0, 0, 0, 0.02);
    --input-bg: rgba(255, 255, 255, 0.95);
    --glass-blur: 18px;
}

/* ------------------------------ Reset & base --------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    background-image: var(--bg-grad);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

.theme-anim * { transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.18;
    color: var(--text-primary);
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--accent-soft); color: var(--text-primary); }

.mono, .amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; opacity: 0.6; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ------------------------------ Layout -------------------------------- */
.layout { display: flex; min-height: 100vh; }

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

.main { padding: 28px 34px 60px; flex: 1; max-width: 1440px; width: 100%; }

.layout.sidebar-collapsed .main-content { margin-left: 88px; }

.layout.no-sidebar .main-content { margin-left: 0; }
.layout.no-sidebar .topbar { padding-left: 22px; }
.layout.no-sidebar .topbar [data-sidebar-toggle] { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: 2rem; }
.page-sub { color: var(--text-secondary); font-size: 0.94rem; margin-top: 4px; }

/* ------------------------------ Sidebar ------------------------------- */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: width var(--transition), transform var(--transition);
}

.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    min-height: var(--topbar-height);
}

.brand-mark {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid; place-items: center;
    color: #080C14;
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.25rem;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 500; font-size: 1.28rem; letter-spacing: 0.08em;
    white-space: nowrap; color: var(--text-primary); text-transform: uppercase;
}
.brand-name em { font-style: normal; color: var(--gold); }
.brand-tag { font-size: 0.66rem; color: var(--text-muted); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; font-family: var(--font-mono); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 14px 20px; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }

.nav-group { margin-bottom: 8px; }
.nav-group-label {
    font-family: var(--font-mono);
    font-size: 0.62rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted); padding: 8px 14px 6px; white-space: nowrap;
}

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: 12px;
    color: var(--text-secondary); font-weight: 500; font-size: 0.92rem;
    margin-bottom: 2px; position: relative;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.nav-item .nav-ico { width: 20px; text-align: center; flex-shrink: 0; font-size: 1.05rem; line-height: 1; }
.nav-item:hover { background: var(--surface-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-soft); color: var(--gold); font-weight: 600; }
.nav-item.active::before {
    content: ''; position: absolute; left: -14px; top: 20%; height: 60%; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--gold);
}

.sidebar-collapsed .nav-item span.nav-label,
.sidebar-collapsed .nav-group-label,
.sidebar-collapsed .brand-name,
.sidebar-collapsed .brand-tag { display: none; }
.sidebar-collapsed .nav-item { justify-content: center; }
.sidebar-collapsed .nav-item.active::before { left: -14px; }

.sidebar-foot { padding: 14px; border-top: 1px solid var(--border); }

.sidebar-overlay {
    position: fixed; inset: 0; background: rgba(4, 7, 14, 0.6);
    backdrop-filter: blur(3px); z-index: 55; opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
}
.sidebar-overlay.show { opacity: 1; pointer-events: auto; }

/* ------------------------------ Topbar --------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    height: var(--topbar-height);
    display: flex; align-items: center; gap: 14px;
    padding: 0 34px;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.topbar .page-title { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }

.topbar-spacer { flex: 1; }

.topbar-search { position: relative; display: none; align-items: center; }
.topbar-search input {
    background: var(--input-bg); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: 99px;
    padding: 9px 16px 9px 40px; font-size: 0.86rem; width: 260px;
}
.topbar-search .icon { position: absolute; left: 14px; color: var(--text-muted); font-size: 0.85rem; }

.icon-btn {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer; font-size: 1.1rem; line-height: 1;
    transition: all var(--transition); position: relative;
}
.icon-btn:hover { color: var(--gold); background: var(--surface-hover); border-color: var(--gold); transform: translateY(-1px); }
.icon-btn .dot {
    position: absolute; top: 8px; right: 9px; width: 9px; height: 9px;
    background: var(--danger); border-radius: 50%; border: 2px solid var(--bg);
}

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    background: var(--surface-solid); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow-lg);
    min-width: 300px; padding: 8px; z-index: 70;
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
    transition: all var(--transition);
}
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }

.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; cursor: default; }
.notif-item:hover { background: var(--surface-hover); }
.notif-item.unread { background: var(--accent-soft); }
.notif-badge { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.notif-badge.INFO { background: var(--info); }
.notif-badge.SUCCESS { background: var(--success); }
.notif-badge.WARNING { background: var(--warning); }
.notif-badge.ALERT { background: var(--danger); }
.notif-item h4 { font-size: 0.88rem; margin: 0 0 2px; }
.notif-item p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }
.notif-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

.user-chip { display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 14px; cursor: pointer; }
.user-chip:hover { background: var(--surface-hover); }
.avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #080C14; display: grid; place-items: center;
    font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
}
.avatar.sm { width: 30px; height: 30px; font-size: 0.7rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.user-meta { line-height: 1.2; }
.user-meta .u-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.user-meta .u-role { font-size: 0.74rem; color: var(--text-muted); white-space: nowrap; }

.menu-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; }
.menu-link:hover { background: var(--surface-hover); color: var(--text-primary); }
.menu-link.danger { color: var(--danger); }
.menu-link.danger:hover { background: var(--danger-soft); }

/* ------------------------------ Buttons -------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--radius);
    font-family: inherit; font-size: 0.92rem; font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid transparent; cursor: pointer;
    transition: all var(--t) var(--ease);
    text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
    user-select: none;
}
.btn::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255, 255, 255, 0.07);
    opacity: 0; transition: opacity 0.25s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn.loading { opacity: 0.6; pointer-events: none; }
.btn .spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.loading .spinner { display: inline-block; }

.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #080C14; font-weight: 600; box-shadow: 0 0 30px rgba(201, 168, 76, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(232, 201, 122, 0.4); color: #080C14; }

.btn-dark { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #F0EDE6; }
.btn-dark:hover { transform: translateY(-2px); color: #F0EDE6; box-shadow: var(--shadow); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--accent-soft); transform: translateY(-2px); }

.btn-ghost { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(201, 168, 76, 0.22); transform: translateY(-2px); color: var(--gold); }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #080C14; font-weight: 600; box-shadow: 0 0 30px rgba(201, 168, 76, 0.25); }
.btn-gold:hover { transform: translateY(-2px); color: #080C14; box-shadow: 0 0 50px rgba(232, 201, 122, 0.4); }

.btn-danger { background: linear-gradient(135deg, #F87171, var(--danger)); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 0.82rem; border-radius: 9px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-ico { width: 38px; height: 38px; padding: 0; }

.btn-group { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------ Cards ---------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow);
    padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card.flat:hover { transform: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); font-family: var(--font-mono); }
.card-title span { color: var(--text-muted); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

.stat-card { position: relative; overflow: hidden; padding: 22px; }
.stat-card::after {
    content: ''; position: absolute; right: -28px; top: -28px; width: 130px; height: 130px;
    border-radius: 50%; background: var(--stat-glow, var(--accent-soft)); filter: blur(2px);
}
.stat-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.06em; }
.stat-value { font-family: var(--font-mono); font-size: 1.85rem; font-weight: 500; letter-spacing: -0.02em; margin: 6px 0; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.stat-foot { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.trend-up { color: var(--success); font-weight: 700; }
.trend-down { color: var(--danger); font-weight: 700; }
.stat-ico { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: var(--accent-soft); color: var(--gold); border: 1px solid var(--border); }

/* ------------------------------ Hero / balance ------------------------ */
.balance-card {
    background: linear-gradient(135deg, #1A2640 0%, #0F1623 55%, #111B2E 100%);
    color: #F0EDE6; border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: var(--radius-xl); padding: 30px; position: relative; overflow: hidden;
    box-shadow: var(--card-shadow);
}
.balance-card::before {
    content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.28), transparent 70%);
}
.balance-card::after {
    content: ''; position: absolute; right: 90px; bottom: -90px; width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.14), transparent 70%);
}
.balance-label { font-size: 0.82rem; color: rgba(240, 237, 230, 0.65); letter-spacing: 0.08em; font-family: var(--font-mono); text-transform: uppercase; }
.balance-value { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.02em; margin: 8px 0 4px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.balance-value .cur { font-size: 1.5rem; color: var(--gold-light); }
.balance-sub { color: rgba(240, 237, 230, 0.6); font-size: 0.86rem; position: relative; z-index: 1; }
.balance-actions { display: flex; gap: 12px; margin-top: 22px; position: relative; z-index: 1; flex-wrap: wrap; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.quick-action {
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    padding: 16px 8px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.76rem; font-weight: 600;
    transition: all var(--transition); cursor: pointer;
}
.quick-action:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-action .qa-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--accent-soft); color: var(--gold); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }

.balance-status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; position: relative; z-index: 1; white-space: nowrap; }
.status-pill.frozen { background: rgba(147, 197, 253, 0.16); color: #93c5fd; border: 1px solid rgba(147, 197, 253, 0.4); }
.status-pill.frozen i { font-size: 0.85rem; }

.balance-card.is-frozen { filter: grayscale(0.9) contrast(0.92); opacity: 0.9; }
.balance-card.is-frozen .balance-label,
.balance-card.is-frozen .balance-sub { color: rgba(240, 237, 230, 0.45); }
.balance-card.is-frozen .balance-value { color: rgba(240, 237, 230, 0.6); }
.balance-card.is-frozen .balance-value .cur { color: rgba(240, 237, 230, 0.5); }
.quick-actions.is-frozen .quick-action { pointer-events: none; opacity: 0.55; filter: grayscale(0.9); }
.btn.disabled, a.disabled { pointer-events: none; opacity: 0.5; filter: grayscale(0.85); text-decoration: none; }

.alert-frozen { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--danger-soft); border: 1px solid var(--danger-soft); color: var(--danger); font-size: 0.88rem; line-height: 1.55; margin-bottom: 18px; }
.alert-frozen i { font-size: 1.2rem; margin-top: 2px; }

/* --------------------------- Frozen / ice ------------------------------ */
.ice-veil {
    position: fixed; inset: 0; pointer-events: none; z-index: 9998;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(186, 230, 253, 0.16), transparent 55%),
        linear-gradient(115deg, rgba(125, 211, 252, 0.05), transparent 40%, rgba(125, 211, 252, 0.07) 60%, transparent 100%);
    backdrop-filter: saturate(0.72) brightness(1.05) contrast(0.97);
    -webkit-backdrop-filter: saturate(0.72) brightness(1.05) contrast(0.97);
}
.ice-veil::after {
    content: ''; position: absolute; inset: 0; mix-blend-mode: screen;
    background:
        linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.10) 34%, transparent 48%),
        radial-gradient(circle at 12% 88%, rgba(165, 220, 255, 0.14), transparent 42%),
        radial-gradient(circle at 88% 12%, rgba(165, 220, 255, 0.14), transparent 42%);
    animation: iceSheen 9s ease-in-out infinite;
}
@keyframes iceSheen {
    0%, 100% { opacity: 0.35; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(2.5%); }
}
body.account-frozen .sidebar {
    background:
        linear-gradient(180deg, rgba(165, 220, 255, 0.06), transparent 45%),
        color-mix(in srgb, var(--surface-solid) 92%, #bae6fd);
}
body.account-frozen .sidebar-brand,
body.account-frozen .sidebar-foot { border-color: rgba(147, 197, 253, 0.35); }
body.account-frozen .brand-name,
body.account-frozen .brand-tag { color: rgba(240, 247, 255, 0.75); }
body.account-frozen .nav-item { color: rgba(226, 240, 255, 0.7); }
body.account-frozen .nav-item:hover,
body.account-frozen .nav-item.active { color: #dbeafe; background: rgba(147, 197, 253, 0.14); }
body.account-frozen .frozen-chip { display: inline-flex; }
.frozen-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 3px 10px; border-radius: 100px; background: linear-gradient(135deg, rgba(147, 197, 253, 0.18), rgba(125, 211, 252, 0.1)); border: 1px solid rgba(147, 197, 253, 0.35); color: #93c5fd; font-size: 0.68rem; font-family: var(--font-mono); letter-spacing: 0.06em; vertical-align: middle; }

.frozen-hero {
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(147, 197, 253, 0.12), transparent 55%),
        var(--surface-solid);
    border: 1px solid rgba(147, 197, 253, 0.3);
}
.frozen-hero .frozen-ico {
    width: 76px; height: 76px; margin: 0 auto;
    border-radius: 24px; display: grid; place-items: center;
    font-size: 2rem; color: #bfdbfe;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.2), rgba(125, 211, 252, 0.08));
    border: 1px solid rgba(147, 197, 253, 0.35);
    box-shadow: 0 0 0 10px rgba(147, 197, 253, 0.06);
}

/* ------------------------------ Forms ---------------------------------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; }
.form-label .req { color: var(--danger); }

.form-control {
    width: 100%; padding: 13px 16px; min-height: 48px;
    background: var(--input-bg); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: 12px;
    font-family: inherit; font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface-solid); }
.form-control.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.form-control.is-valid { border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-group textarea,
.form-group select {
    width: 100%; padding: 13px 16px; min-height: 48px;
    background: var(--input-bg); border: 1px solid var(--border);
    color: var(--text-primary); border-radius: 12px;
    font-family: inherit; font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface-solid);
}
.form-group select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-group select option { background: var(--surface-solid); color: var(--text-primary); }
.form-group input.is-invalid, .form-group input.is-valid { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.form-group input.is-valid { border-color: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.form-group input[disabled], .form-group textarea[disabled], .form-group select[disabled] { opacity: 0.6; cursor: not-allowed; }

textarea.form-control { min-height: 110px; resize: vertical; }

select.form-control { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.form-control option { background: var(--surface-solid); color: var(--text-primary); }

.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 6px; display: flex; gap: 5px; align-items: center; }
.form-success { font-size: 0.78rem; color: var(--success); margin-top: 6px; }

.strength-meter { display: flex; gap: 6px; margin-top: 9px; }
.strength-meter .bar { height: 5px; flex: 1; border-radius: 99px; background: var(--border); transition: background 0.3s ease; }
.strength-meter .bar.filled-weak { background: var(--danger); }
.strength-meter .bar.filled-fair { background: var(--warning); }
.strength-meter .bar.filled-good { background: var(--info); }
.strength-meter .bar.filled-strong { background: var(--success); }
.strength-label { font-size: 0.74rem; margin-top: 5px; color: var(--text-muted); }

.checklist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.78rem; color: var(--text-muted); display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; }
.checklist li { display: flex; gap: 6px; align-items: center; }
.checklist li i { font-size: 0.9rem; line-height: 1; color: var(--text-muted); }
.checklist li.ok { color: var(--success); }
.checklist li.ok i { color: var(--success); }

/* OTP input */
.otp-input { display: flex; gap: 12px; justify-content: center; margin: 22px 0 8px; }
.otp-input input {
    width: 54px; height: 62px; text-align: center; font-size: 1.6rem; font-weight: 600;
    border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border);
    color: var(--text-primary); font-family: var(--font-mono);
}
.otp-input input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.otp-timer { text-align: center; font-size: 0.86rem; color: var(--text-secondary); }
.otp-timer strong { color: var(--gold); }

/* Searchable chip input */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: var(--accent-soft); color: var(--gold); border-radius: 99px; font-size: 0.8rem; font-weight: 600; }
.chip button { background: none; border: none; color: inherit; cursor: pointer; font-size: 0.9rem; padding: 0; }

/* ------------------------------ Tables --------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--surface); }
.table thead th {
    position: sticky; top: 0; z-index: 2;
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    text-align: left; padding: 14px 18px; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
    font-family: var(--font-mono);
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:nth-child(even) { background: var(--table-alt); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--transition); }
.table tbody tr:hover { background: var(--surface-hover); }
.table .t-primary { font-weight: 600; }
.table .t-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ------------------------------ Badges & pills ------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; font-family: var(--font-mono); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-neutral { background: var(--surface-hover); color: var(--text-secondary); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-plain::before { display: none; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; }

/* ------------------------------ Alerts & toasts ------------------------ */
.alert {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 18px; border-radius: 14px; margin-bottom: 18px;
    font-size: 0.88rem; border: 1px solid;
    animation: slideDown 0.4s ease;
}
.alert-success { background: var(--success-soft); border-color: rgba(76, 175, 110, 0.3); color: var(--success); }
.alert-info { background: var(--info-soft); border-color: rgba(91, 141, 239, 0.3); color: var(--info); }
.alert-warning { background: var(--warning-soft); border-color: rgba(229, 169, 77, 0.3); color: var(--warning); }
.alert-danger { background: var(--danger-soft); border-color: rgba(229, 72, 77, 0.3); color: var(--danger); }
.alert .alert-ico { font-size: 1.15rem; line-height: 1.4; }
.alert .alert-body strong { display: block; margin-bottom: 2px; }
.alert .alert-body { flex: 1; }

.toast-stack {
    position: fixed; top: 20px; right: 20px; z-index: 200;
    display: flex; flex-direction: column; gap: 12px; pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 320px; max-width: 400px;
    background: var(--surface-solid); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 15px 18px; display: flex; gap: 13px; align-items: flex-start;
    animation: toastIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden;
}
.toast::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.toast-success::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-info::before { background: var(--info); }
.toast-warning::before { background: var(--warning); }
.toast .toast-ico { font-size: 1.2rem; margin-top: 1px; line-height: 1; color: var(--gold); }
.toast h4 { font-size: 0.9rem; margin: 0 0 3px; }
.toast p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }
.toast .toast-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; padding: 2px; }
.toast.hide { animation: toastOut 0.4s ease forwards; }

/* ------------------------------ Modals --------------------------------- */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(4, 7, 14, 0.65);
    backdrop-filter: blur(5px); z-index: 150;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
    width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    background: var(--surface-solid); border: 1px solid var(--border);
    border-radius: 22px; box-shadow: var(--shadow-lg);
    transform: translateY(18px) scale(0.97); transition: transform var(--transition);
}
.modal-backdrop.show .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.modal-head h3 { margin: 0; }
.modal-close { background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1rem; transition: all var(--transition); line-height: 1; }
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-body { padding: 20px 26px 26px; }
.modal-body p { color: var(--text-secondary); font-size: 0.9rem; }

/* ------------------------------ Charts --------------------------------- */
.chart-box { position: relative; height: 300px; width: 100%; }
.chart-box.sm { height: 220px; }
.chart-box.lg { height: 360px; }

/* ------------------------------ Skeleton ------------------------------- */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--surface-hover) 50%, var(--surface) 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
    border-radius: 10px;
}
.sk-text { height: 14px; margin: 8px 0; }
.sk-title { height: 22px; width: 60%; margin-bottom: 14px; }
.sk-card { height: 160px; }

/* ------------------------------ Empty state ---------------------------- */
.empty {
    text-align: center; padding: 48px 24px; color: var(--text-secondary);
}
.empty-ico {
    width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px;
    background: var(--accent-soft); border: 1px solid var(--border);
    display: grid; place-items: center; font-size: 1.8rem; color: var(--gold); line-height: 1;
}
.empty h3 { color: var(--text-primary); margin-bottom: 6px; }
.empty p { font-size: 0.9rem; max-width: 380px; margin: 0 auto 18px; }

/* ------------------------------ Auth pages ----------------------------- */
.auth-body {
    min-height: 100vh; display: grid; place-items: center;
    padding: 24px; position: relative;
}
.auth-glow {
    position: fixed; width: 520px; height: 520px; border-radius: 50%;
    filter: blur(140px); opacity: 0.35; pointer-events: none; z-index: 0;
}
.auth-glow.g1 { top: -140px; left: -120px; background: #1A2640; }
.auth-glow.g2 { bottom: -160px; right: -120px; background: rgba(201, 168, 76, 0.5); }

.auth-shell { width: 100%; max-width: 460px; position: relative; z-index: 1; animation: fadeUp 0.6s ease; }
.auth-shell.wide { max-width: 540px; }

.auth-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 42px 40px 36px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-lg);
}
.auth-title { font-size: 1.75rem; margin: 0 0 22px; padding-bottom: 16px; position: relative; letter-spacing: -0.01em; }
.auth-title::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px;
    border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.auth-sub { color: var(--text-secondary); font-size: 0.92rem; margin: -10px 0 26px; }
.auth-sub:empty { display: none; }
.auth-alt { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-muted); font-size: 0.78rem; }
.auth-alt::before, .auth-alt::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.security-note { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 0.76rem; color: var(--text-muted); margin-top: 18px; }

.theme-switch .icon-btn { background: var(--surface); }

/* ==========================================================================
   LANDING / PUBLIC HOMEPAGE
   ========================================================================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.pad { padding: 108px 0; }

.display { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; line-height: 1.0; color: var(--text-primary); }
.display.xl { font-size: clamp(3.6rem, 7vw, 7.2rem); }
.display.lg { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.display.md { font-size: clamp(2rem, 4vw, 3.4rem); }
em.gold { font-style: italic; color: var(--gold); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 400;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); opacity: 0.7; }

.sec-body { font-size: 1rem; color: var(--text-secondary); line-height: 1.72; }

.h-rule { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--border-soft) 30%, var(--border-soft) 70%, transparent); margin: 0; border: none; }

/* ---------- Landing nav ---------- */
nav.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    padding: 16px 0;
    display: flex; align-items: center;
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
    background: transparent;
}
nav.landing-nav.stuck {
    background: rgba(8, 12, 20, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border-soft);
}
[data-theme='light'] nav.landing-nav.stuck { background: rgba(245, 243, 238, 0.92); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
    color: #080C14; letter-spacing: -0.05em;
}
.logo-wordmark { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: 0.12em; color: var(--text-primary); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 0.85rem; font-weight: 400; color: var(--text-secondary); transition: color var(--t); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width var(--t); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; line-height: 1; color: var(--text-secondary);
    transition: all var(--t); cursor: pointer; background: none;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
    display: none;
    position: fixed; inset: 0;
    background: var(--bg-2);
    z-index: 199;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 40px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-drawer.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-drawer a { font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: var(--text-secondary); letter-spacing: 0.04em; transition: color 0.3s; }
.mobile-drawer a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
#hero {
    min-height: 100vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 100px 0 80px;
}
.hero-mesh { position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201, 168, 76, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(26, 38, 64, 0.8) 0%, transparent 70%); }
[data-theme='light'] .hero-mesh { background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(154, 122, 40, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(200, 196, 186, 0.5) 0%, transparent 70%); }

.hero-grid-bg { position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(var(--border-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%); }

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

.hero-title { margin-bottom: 24px; animation: riseIn 0.7s var(--ease) 0.12s both; }
.hero-sub { font-size: 1.08rem; color: var(--text-secondary); max-width: 460px; line-height: 1.72; margin-bottom: 40px; animation: riseIn 0.7s var(--ease) 0.24s both; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; animation: riseIn 0.7s var(--ease) 0.36s both; }

/* 3D card */
.hero-right { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; animation: riseIn 0.8s var(--ease) 0.4s both; }
.card-scene { perspective: 1200px; width: 380px; height: 240px; cursor: pointer; }
.card-3d { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s var(--ease); transform: rotateX(12deg) rotateY(-20deg); }
.card-scene:hover .card-3d { transform: rotateX(0deg) rotateY(0deg); }

.card-face { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.card-front { background: linear-gradient(135deg, #1A2640 0%, #0F1623 50%, #1a1f2e 100%); border: 1px solid rgba(201, 168, 76, 0.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(201, 168, 76, 0.08); padding: 28px 32px; display: flex; flex-direction: column; justify-content: space-between; }
.card-back { background: linear-gradient(135deg, #0D1520, #1a2035); border: 1px solid rgba(201, 168, 76, 0.2); transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.card-back-stripe { width: 100%; height: 44px; background: rgba(0, 0, 0, 0.6); }
.card-back-cvv { background: rgba(255, 255, 255, 0.1); border-radius: 6px; padding: 8px 16px; font-family: var(--font-mono); font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); align-self: flex-end; margin-right: 28px; }
.card-back-logo { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.3); text-transform: uppercase; }

.card-chip { width: 44px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #C9A84C, #E8C97A); position: relative; overflow: hidden; }
.card-chip::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(0, 0, 0, 0.2); }
.card-chip::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(0, 0, 0, 0.2); }
.card-top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.card-brand { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.15em; font-weight: 500; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; }
.card-network { display: flex; }
.card-circle { width: 28px; height: 28px; border-radius: 50%; opacity: 0.85; }
.cc1 { background: #E04040; margin-right: -10px; }
.cc2 { background: #F0A040; }

.card-number { font-family: var(--font-mono); font-size: 1rem; letter-spacing: 0.25em; color: rgba(255, 255, 255, 0.85); word-spacing: 8px; }
.card-bottom-row { display: flex; justify-content: space-between; align-items: flex-end; }
.card-holder-label { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; margin-bottom: 4px; }
.card-holder-name { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; }
.card-expiry { text-align: right; }
.card-expiry-label { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em; color: rgba(255, 255, 255, 0.4); text-transform: uppercase; margin-bottom: 4px; }
.card-expiry-val { font-family: var(--font-mono); font-size: 0.8rem; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.1em; }

@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Features ---------- */
section#features { background: var(--bg-2); position: relative; overflow: hidden; }
section#features::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-soft) 40%, var(--border-soft) 60%, transparent); }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); overflow: hidden; margin-top: 64px; }
.feat-card { background: var(--surface); padding: 40px 32px; transition: background var(--t), transform var(--t); position: relative; overflow: hidden; cursor: default; }
.feat-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity var(--t); }
.feat-card:hover { background: var(--surface-2); }
.feat-card:hover::after { opacity: 1; }
.feat-icon { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 28px; background: var(--gold-dim); color: var(--gold); line-height: 1; transition: box-shadow var(--t), transform var(--t); }
.feat-card:hover .feat-icon { box-shadow: 0 0 24px rgba(201, 168, 76, 0.25); transform: scale(1.05); }
.feat-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--text-primary); margin-bottom: 10px; letter-spacing: 0.02em; }
.feat-body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.68; }

/* ---------- How it works ---------- */
section#how { position: relative; overflow: hidden; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 64px; }

.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border-soft); position: relative; cursor: default; }
.step:last-child { border-bottom: none; }
.step-indicator { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding-top: 4px; }
.step-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; transition: background var(--t), box-shadow var(--t); position: relative; z-index: 1; }
.step:hover .step-dot { background: var(--gold); box-shadow: 0 0 16px rgba(201, 168, 76, 0.5); }
.step-line { width: 1px; flex: 1; background: linear-gradient(to bottom, var(--border-soft), transparent); margin-top: 8px; }
.step:last-child .step-line { display: none; }
.step-content { flex: 1; }
.step-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text-primary); margin-bottom: 8px; transition: color var(--t); }
.step:hover .step-title { color: var(--gold); }
.step-body { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.68; }

.how-visual { display: flex; justify-content: center; position: relative; }
.phone-wrap { width: 260px; background: var(--bg-3); border: 1px solid var(--border-soft); border-radius: 36px; padding: 10px; box-shadow: var(--card-shadow), var(--glow); position: relative; }
.phone-screen { background: var(--surface); border-radius: 28px; overflow: hidden; min-height: 480px; display: flex; flex-direction: column; }
.phone-topbar { display: flex; justify-content: center; padding: 12px; }
.phone-notch { width: 72px; height: 8px; background: var(--bg); border-radius: 10px; }
.phone-hero-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.phone-content { padding: 16px 14px; flex: 1; }
.phone-greeting { font-size: 0.6rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.08em; margin-bottom: 4px; }
.phone-empty { padding: 14px 12px; background: var(--surface-2); border: 1px dashed var(--border-soft); border-radius: 10px; text-align: center; }
.phone-empty-title { font-size: 0.62rem; color: var(--text-primary); font-family: var(--font-mono); letter-spacing: 0.05em; margin-bottom: 3px; }
.phone-empty-sub { font-size: 0.55rem; color: var(--text-muted); }
.phone-balance-card { background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.phone-bal-label { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 4px; }
.phone-bal-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--text-primary); }
.phone-bal-gold { color: var(--gold); }
.phone-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.qa { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.5rem; color: var(--text-secondary); font-family: var(--font-mono); letter-spacing: 0.05em; transition: border-color var(--t); }
.qa:hover { border-color: var(--gold); }
.qa-icon { font-size: 1rem; line-height: 1; }

/* ---------- Accounts ---------- */
section#plans { background: var(--bg-2); }
.accounts-header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; flex-wrap: wrap; }
.accounts-sub { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; max-width: 380px; }
.accounts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.account-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 36px 28px; position: relative; overflow: hidden; transition: all var(--t) var(--ease); cursor: default; }
.account-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--gold-dim), transparent 60%); opacity: 0; transition: opacity var(--t); }
.account-card:hover { border-color: var(--border); transform: translateY(-8px); box-shadow: var(--card-shadow), var(--glow); }
.account-card:hover::before { opacity: 1; }
.account-card.featured { background: linear-gradient(135deg, var(--bg-3), var(--surface)); border-color: var(--border); }
.featured-badge { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 100px; background: var(--gold); color: #080C14; font-weight: 600; }
.acc-tier { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.acc-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; color: var(--text-primary); margin-bottom: 6px; }
.acc-rate { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 28px; }
.acc-rate strong { color: var(--gold); font-size: 1rem; }
.acc-perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.acc-perk { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.perk-tick { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.perk-tick i { font-size: 0.75rem; line-height: 1; }

/* ---------- Security ---------- */
section#security { position: relative; overflow: hidden; background: var(--bg-2); }
section#security::before { content: ''; position: absolute; top: -300px; right: -200px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 76, 0.04), transparent 70%); pointer-events: none; }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.sec-image-col { position: relative; }
.sec-img-wrap { border-radius: var(--radius-xl); overflow: hidden; position: relative; box-shadow: var(--card-shadow); }
.sec-img-wrap img { width: 100%; height: 420px; object-fit: cover; display: block; filter: brightness(0.85) saturate(0.8); transition: filter var(--t); }
.sec-img-wrap:hover img { filter: brightness(0.9) saturate(0.9); }
.sec-img-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 12, 20, 0.7)); }
[data-theme='light'] .sec-img-overlay { background: linear-gradient(180deg, transparent 40%, rgba(245, 243, 238, 0.5)); }
.sec-right .display.lg { margin-bottom: 16px; }
.sec-right .sec-body { font-size: 1rem; color: var(--text-secondary); line-height: 1.72; margin-bottom: 36px; max-width: 440px; }
.sec-pillars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.pillar { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); transition: border-color var(--t), transform var(--t); }
.pillar:hover { border-color: var(--border); transform: translateX(6px); }
.pillar-icon { font-size: 1.3rem; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.pillar-title { font-weight: 500; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 4px; }
.pillar-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.55; }

/* ---------- CTA + Footer ---------- */
section#cta-footer { background: var(--bg-2); position: relative; overflow: hidden; }
section#cta-footer::before { content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 76, 0.06), transparent 70%); pointer-events: none; }

.cta-block { text-align: center; padding: 80px 24px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); margin-bottom: 72px; }
.cta-block .display.lg { margin-bottom: 20px; }
.cta-sub { font-size: 1.05rem; color: var(--text-secondary); max-width: 480px; margin: 0 auto 40px; line-height: 1.7; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Hero stats ---------- */
.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--border-soft); border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl); overflow: hidden; max-width: 520px;
    animation: riseIn 0.7s var(--ease) 0.48s both;
}
.hs { background: var(--surface); padding: 18px 20px; }
.hs-value { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-primary); margin-bottom: 4px; }
.hs-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.03em; }
.text-success { color: var(--success, #34D399) !important; }

/* ---------- Phone dashboard ---------- */
.phone-bal-delta { display: flex; align-items: center; gap: 4px; font-size: 0.55rem; color: var(--success, #34D399); margin-top: 3px; }

/* ---------- Feature note ---------- */
.feat-note { margin-top: 12px; font-size: 0.7rem; color: var(--text-muted); line-height: 1.5; font-style: italic; }

/* ---------- Market opportunities ---------- */
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.market-card {
    display: flex; flex-direction: column; gap: 14px;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl);
    padding: 30px 26px; transition: all var(--t) var(--ease); position: relative; overflow: hidden;
}
.market-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, var(--gold-dim), transparent 60%); opacity: 0; transition: opacity var(--t); }
.market-card:hover { transform: translateY(-6px); border-color: var(--border); box-shadow: var(--card-shadow), var(--glow); }
.market-card:hover::after { opacity: 1; }
.market-ico { font-size: 1.4rem; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; line-height: 1; }
.market-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; color: var(--text-primary); }
.market-body { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; flex: 1; }
.market-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 6px; }
.market-tags li { font-size: 0.7rem; color: var(--text-muted); border: 1px solid var(--border-soft); border-radius: 100px; padding: 4px 10px; }
.market-card .btn { position: relative; z-index: 1; margin-top: 4px; }

/* ---------- Risk management ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.risk-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 26px 22px; transition: all var(--t) var(--ease); }
.risk-card:hover { border-color: var(--border); transform: translateY(-5px); box-shadow: var(--card-shadow), var(--glow); }
.risk-ico { font-size: 1.2rem; color: var(--gold); margin-bottom: 14px; }
.risk-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--text-primary); margin-bottom: 8px; }
.risk-body { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.62; }

/* ---------- Why Creston Fundly ---------- */
section#why { background: var(--bg-2); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.why-item { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 24px 22px; transition: border-color var(--t), transform var(--t); }
.why-item:hover { border-color: var(--border); transform: translateX(5px); }
.why-ico { font-size: 1.2rem; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.why-title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 400; color: var(--text-primary); margin-bottom: 5px; }
.why-body { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-grid .sec-body { max-width: 440px; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-ico { font-size: 1.15rem; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--gold-dim); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.ci-value { display: block; font-size: 0.9rem; color: var(--text-primary); text-decoration: none; }
.ci-value:hover { color: var(--gold); }
.contact-form-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); padding: 32px; }

/* ---------- Legal & regulatory ---------- */
.legal-box { max-width: 840px; margin: 0 auto; text-align: center; padding: 40px 0; }
.legal-box .display.md { margin-bottom: 18px; }
.legal-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--text-primary); margin: 28px 0 10px; }
.legal-body { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.1em; color: var(--text-primary); margin-bottom: 4px; text-transform: uppercase; }
.footer-brand-sub { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.25em; color: var(--text-muted); text-transform: uppercase; margin-bottom: 16px; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 240px; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.soc-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border-soft); background: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 1rem; line-height: 1; transition: all var(--t); cursor: pointer; }
.soc-btn:hover { border-color: var(--gold); color: var(--gold); }

.footer-col-title { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-primary); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--t); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.footer-copy { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-muted); transition: color var(--t); }
.footer-legal a:hover { color: var(--gold); }

/* ---------- Scroll reveal ---------- */
.js .r { opacity: 0; transform: translateY(32px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.js .r.in { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .08s; }
.rd2 { transition-delay: .16s; }
.rd3 { transition-delay: .24s; }
.rd4 { transition-delay: .32s; }
.rd5 { transition-delay: .40s; }

/* ==========================================================================
   UTILITIES & SHARED SECTIONS
   ========================================================================== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 10px; }
.gap { gap: 18px; }
.gap-lg { gap: 28px; }
.wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.m-0 { margin: 0; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-gold { color: var(--gold); }
.text-sm { font-size: 0.82rem; }
.text-xs { font-size: 0.74rem; }
.text-lg { font-size: 1.1rem; }
.bold { font-weight: 700; }
.center { text-align: center; }
.hide { display: none !important; }

.divider { height: 1px; background: var(--border); margin: 22px 0; border: none; }

.spinner-lg { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 60px auto; }

.tx-in { color: var(--success); }
.tx-out { color: var(--danger); }
.tx-neutral { color: var(--text-secondary); }

.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: 0.5; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.seg a { padding: 7px 16px; border-radius: 9px; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.seg a.active { background: var(--accent-soft); color: var(--gold); }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }

.progress { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1); }

/* Virtual card */
.vcard {
    width: 340px; height: 210px; border-radius: 20px; padding: 24px;
    background: linear-gradient(135deg, #1A2640, #0F1623 70%);
    border: 1px solid rgba(201, 168, 76, 0.3); position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg); color: #F0EDE6;
}
.vcard::before { content: ''; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 76, 0.35), transparent 70%); }
.vcard::after { content: ''; position: absolute; left: -40px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 76, 0.18), transparent 70%); }
.vcard .chip { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #C9A84C, #E8C97A); margin-bottom: 22px; position: relative; z-index: 1; }
.vcard .cnum { font-family: var(--font-mono); font-size: 1.28rem; font-weight: 500; letter-spacing: 0.08em; margin-bottom: 18px; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.vcard .cmeta { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.vcard .cmeta .lbl { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(240, 237, 230, 0.5); }
.vcard .cmeta .val { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600; }

/* Section title (used on investments plans page) */
.section-title { text-align: center; margin-bottom: 12px; }
.section-title h2 { font-size: 2rem; letter-spacing: -0.01em; }
.section-title p { color: var(--text-secondary); max-width: 520px; margin: 8px auto 0; }

/* ------------------------------ Animations ----------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(60px); } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

.page-enter { animation: fadeUp 0.45s ease; }

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 1280px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    .main { padding: 24px 24px 50px; }
}

@media (max-width: 1080px) {
    .grid-3, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .wrap { padding: 0 24px; }
    .pad { padding: 80px 0; }
    nav.landing-nav .nav-links, nav.landing-nav .nav-right .btn { display: none; }
    .nav-right { gap: 8px; }
    .hamburger { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { margin-left: auto; margin-right: auto; }
    .card-scene { width: 320px; height: 202px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .accounts-header { grid-template-columns: 1fr; }
    .accounts-grid { grid-template-columns: 1fr 1fr; }
    .sec-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
    .market-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0 !important; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .topbar { padding: 0 20px; }
}

@media (min-width: 901px) {
    .topbar [data-sidebar-toggle] { display: none; }
}

@media (min-width: 641px) {
    .btn-group-mobile { display: none; }
}

@media (max-width: 640px) {
    .main { padding: 18px 16px 40px; }
    .grid-2, .grid-3, .grid-4, .features-grid { grid-template-columns: 1fr; }
    .btn-group-desktop { display: none; }
    .btn-group-mobile { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
    .balance-value { font-size: 2rem; }
    .toast-stack { left: 16px; right: 16px; }
    .toast { min-width: 0; width: 100%; }
    .auth-card { padding: 30px 24px; }
    .checklist { grid-template-columns: 1fr; }
    .seg { flex-wrap: wrap; }
    .otp-input input { width: 46px; height: 54px; font-size: 1.35rem; }

    .wrap { padding: 0 16px; }
    .pad { padding: 64px 0; }
    .display.xl { font-size: 3rem; }
    .display.lg { font-size: 2.2rem; }
    .display.md { font-size: 1.7rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; max-width: 340px; justify-content: center; }
    .card-scene { width: 100%; max-width: 320px; height: 202px; }
    .features-grid { grid-template-columns: 1fr; }
    .accounts-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .footer-desc { max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .cta-actions { flex-direction: column; align-items: center; }
    .hero-stats { grid-template-columns: 1fr; }
    .market-grid { grid-template-columns: 1fr; }
    .risk-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr; }

    .nav-inner { padding: 0 16px; }
    .logo-mark { width: 30px; height: 30px; font-size: 1rem; }
    .logo-wordmark { font-size: 1.05rem; }
    .theme-toggle { width: 36px; height: 36px; }
    .mobile-drawer a { font-size: 2rem; }
    .hero-sub { font-size: 0.98rem; }
    .hero-actions { margin-bottom: 44px; }
    .sec-img-wrap img { height: 320px; }
    .account-card { padding: 30px 22px; }
    .cta-block { padding: 56px 16px; margin-bottom: 56px; }

    .auth-shell { padding: 0 2px; }
    .auth-card { padding: 32px 22px; }
    .auth-title { font-size: 1.5rem; }
    .form-control { min-height: 46px; font-size: 0.92rem; }

    .topbar { padding: 0 14px; gap: 10px; }
    .stat-value { font-size: 1.7rem; }
    .page-head h1 { font-size: 1.6rem; }
    .page-head { margin-bottom: 20px; }
    .dropdown-menu { max-width: calc(100vw - 24px); }
}

@media (max-width: 560px) {
    .topbar .page-title { display: none; }
    .user-meta { display: none; }
    .user-chip { padding: 4px; }
    .topbar .icon-btn { width: 38px; height: 38px; }
    .balance-card { padding: 24px 20px; }
    .balance-value { font-size: 2.2rem; }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .section-title h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .footer-cols { gap: 28px; }
    .pillar { padding: 14px 16px; }
    .how-grid { gap: 48px; }
    .phone-screen { min-height: 440px; }
    .footer-bottom { padding-top: 20px; }
    .footer-legal { gap: 14px; }
    .risk-grid { grid-template-columns: 1fr; }
    .contact-form-card { padding: 24px 18px; }
}

@media (max-width: 400px) {
    .display.xl { font-size: 2.6rem; }
    .phone-wrap { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------ Wallet QR ------------------------------ */
.wallet-grid { gap: 14px; }
.wallet-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.wallet-row:last-child { border-bottom: none; }
.wallet-qr {
    width: 88px; height: 88px; border-radius: 12px;
    background: #fff; border: 1px solid var(--border); padding: 6px; flex-shrink: 0;
}
.wallet-address { font-family: var(--font-mono); margin: 6px 0 4px; }

.wallet-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 18px; border-radius: 16px;
    background: var(--surface-solid); border: 1px solid var(--border);
    text-align: center;
}
.wallet-card .wallet-qr { width: 140px; height: 140px; }
.wallet-card .wallet-address { max-width: 100%; }

.wallet-qr-lg { width: 120px; height: 120px; }
.wallet-accordion { display: flex; flex-direction: column; gap: 10px; }
.wallet-acc-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-solid); overflow: hidden; }
.wallet-acc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 14px 16px; background: transparent; border: none; cursor: pointer;
    color: var(--text-primary); font: inherit; text-align: left;
}
.wallet-acc-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wallet-acc-chev { color: var(--text-muted); transition: transform .2s ease; }
.wallet-acc-head.open .wallet-acc-chev { transform: rotate(180deg); }
.wallet-acc-body {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 0 16px 16px; border-top: 1px solid var(--border); padding-top: 14px;
}
.wallet-acc-body[hidden] { display: none; }
@media (max-width: 480px) {
    .wallet-acc-body { flex-direction: column; align-items: center; text-align: center; }
}

/* ------------------------------ Investments dashboard ------------------- */
.dash-stats { align-items: stretch; }
.dash-stats .stat-card { display: flex; flex-direction: column; min-height: 158px; }
.dash-stats .stat-ico { position: static; order: -1; margin-bottom: 12px; }
.dash-stats .stat-value { font-size: 1.7rem; margin: 4px 0 auto; }
.dash-stats .stat-foot { margin-top: 10px; }

.inv-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.inv-row:last-child { border-bottom: none; }
.inv-amount { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .dash-stats .stat-card { min-height: 0; padding: 18px 16px; }
    .dash-stats .stat-value { font-size: 1.45rem; }
    .chart-box { height: 240px; }
    .wallet-card { padding: 16px 14px; }
    .wallet-card .wallet-qr { width: 120px; height: 120px; }
    .inv-row { flex-wrap: wrap; gap: 8px; }
    .inv-amount { width: 100%; text-align: left; }
}

@media (max-width: 400px) {
    .dash-stats .stat-value { font-size: 1.25rem; }
    .chart-box { height: 210px; }
}

/* ------------------------------ Referral profile ------------------------ */
.ref-code-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--accent-soft); border: 1px solid var(--border);
    font-size: .82rem; color: var(--text-secondary);
}
.ref-code-chip strong { color: var(--accent); font-family: var(--font-mono); letter-spacing: .12em; }
.profile-panel { min-width: 0; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar.lg { width: 56px; height: 56px; font-size: 1.25rem; }
.profile-fields { margin: 16px 0; }
.pf {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--border);
}
.pf:last-child { border-bottom: none; }
.pf span { color: var(--text-muted); font-size: .82rem; flex-shrink: 0; }
.pf strong { color: var(--text-primary); font-size: .88rem; text-align: right; word-break: break-word; }

/* ------------------------------ Plan catalogue -------------------------- */
/* Category entry cards (plans overview) */
.plan-cat {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 18px;
    padding: 34px; border-radius: 24px;
    background: var(--surface-solid); border: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.plan-cat:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow-lg), var(--glow); }
.plan-cat::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(520px 210px at 18% -10%, var(--gold-dim), transparent 62%);
}
.plan-cat .cat-top { display: flex; align-items: center; gap: 16px; position: relative; }
.plan-cat .cat-ico {
    width: 58px; height: 58px; border-radius: 18px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.6rem; color: var(--gold);
    background: var(--gold-soft); border: 1px solid var(--border);
}
.plan-cat .cat-title { font-family: var(--font-display); font-size: 1.55rem; margin: 0; color: var(--text-primary); }
.plan-cat .cat-sub { font-size: .92rem; color: var(--text-muted); margin: 4px 0 0; }
.plan-cat .cat-from {
    display: inline-flex; align-items: center; gap: 8px; position: relative;
    font-family: var(--font-mono); font-size: .84rem; color: var(--gold);
    background: var(--gold-soft); border: 1px solid var(--border);
    padding: 7px 13px; border-radius: 99px; align-self: flex-start;
}
.plan-cat ul.cat-feats { list-style: none; padding: 0; margin: 2px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; position: relative; }
.plan-cat ul.cat-feats li { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--text-secondary); }
.plan-cat ul.cat-feats i { color: var(--gold); font-size: .92rem; }
.plan-cat .cat-chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.plan-cat .cat-foot { margin-top: auto; position: relative; padding-top: 6px; }
.plan-cat .cat-foot .btn { width: 100%; justify-content: center; }

/* Pricing cards (periodic + flexible) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; }
.plan-card {
    position: relative; display: flex; flex-direction: column;
    border-radius: 22px; overflow: hidden;
    background: var(--surface-solid); border: 1px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.plan-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 1;
    background: linear-gradient(90deg, var(--card-accent, var(--gold)), color-mix(in srgb, var(--card-accent, var(--gold)) 40%, transparent));
}
.plan-card:hover { transform: translateY(-6px); border-color: var(--card-accent, var(--gold)); box-shadow: var(--shadow-lg); }
.plan-card.plan-highlight { border-color: var(--gold); box-shadow: var(--glow); }
.plan-card.plan-highlight::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 22px;
    box-shadow: inset 0 0 0 1px var(--gold);
}
.plan-card .plan-body { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px 16px; flex: 1; }
.plan-card .plan-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-card .plan-name h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; color: var(--text-primary); }
.plan-card .plan-tag {
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--card-accent, var(--gold)); white-space: nowrap;
    border: 1px solid color-mix(in srgb, var(--card-accent, var(--gold)) 55%, transparent);
    background: color-mix(in srgb, var(--card-accent, var(--gold)) 14%, transparent);
    padding: 4px 9px; border-radius: 99px;
}
.plan-card .plan-price { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.plan-card .plan-price small { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.plan-card .plan-return { display: block; font-size: .82rem; color: var(--success); font-weight: 600; margin-top: 3px; font-family: var(--font-mono); }
.plan-card .plan-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-card .plan-meta .pm {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--border-soft);
    font-size: .72rem; color: var(--text-muted); line-height: 1.25; letter-spacing: .04em; text-transform: uppercase;
}
.plan-card .plan-meta .pm i { color: var(--card-accent, var(--gold)); font-size: 1rem; }
.plan-card .plan-meta .pm strong { display: block; color: var(--text-primary); font-weight: 600; font-size: .86rem; letter-spacing: normal; text-transform: none; }
.plan-card .plan-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan-card .plan-benefits li { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; color: var(--text-secondary); }
.plan-card .plan-benefits i { color: var(--card-accent, var(--gold)); margin-top: 2px; font-size: .9rem; }
.plan-card .plan-progress { margin-top: auto; padding-top: 2px; }
.plan-card .pp-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); margin-bottom: 6px; }
.plan-card .pp-track { height: 7px; border-radius: 99px; background: var(--surface-hover); overflow: hidden; }
.plan-card .pp-fill {
    height: 100%; width: 0; border-radius: 99px;
    background: linear-gradient(90deg, var(--card-accent, var(--gold)), var(--gold-light));
    transition: width 1.1s var(--ease);
}
.plan-card:hover .pp-fill { width: var(--pp-width, 0%) !important; }
.plan-card .plan-countdown {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border-top: 1px dashed var(--border); padding-top: 12px;
    font-family: var(--font-mono); font-size: .74rem; color: var(--text-secondary);
}
.plan-card .plan-countdown [data-countdown] { color: var(--text-primary); }
.plan-card .plan-countdown i { color: var(--card-accent, var(--gold)); }
.plan-card .plan-foot { padding: 4px 22px 22px; }
.plan-card .plan-foot .btn { width: 100%; justify-content: center; }

/* Periodic pricing layout */
.plan-grid-pricing { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 1100px; margin: 0 auto; }
.plan-grid-pricing .plan-card.plan-pricing { text-align: center; border-radius: 26px; }
.plan-grid-pricing .plan-card.plan-pricing .plan-name { justify-content: center; }
.plan-grid-pricing .plan-card.plan-pricing .plan-price { font-size: 2.3rem; padding-top: 6px; }
.plan-grid-pricing .plan-card.plan-pricing .plan-price small { display: block; font-size: .8rem; margin-top: 4px; }
.plan-grid-pricing .plan-card.plan-pricing .plan-return {
    display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 99px;
    background: color-mix(in srgb, var(--card-accent, var(--gold)) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-accent, var(--gold)) 40%, transparent);
    color: var(--text-primary);
}
.plan-grid-pricing .plan-card.plan-pricing .plan-meta { grid-template-columns: 1fr 1fr; }
.plan-grid-pricing .plan-card.plan-pricing .plan-benefits { max-width: 320px; margin: 0 auto; }
.plan-grid-pricing .plan-card.plan-pricing .plan-countdown { justify-content: center; }
.plan-grid-pricing .plan-card.plan-pricing .plan-foot { padding-top: 8px; }
.plan-grid-pricing .plan-card.plan-pricing .btn-gold { padding: 13px 18px; font-size: 1rem; }
.plan-grid-pricing .plan-card.plan-pricing.plan-highlight { transform: scale(1.03); }

/* ------------------------------ Hero dashboard visual ------------------- */
.hero-visual { position: relative; width: 100%; max-width: 540px; margin: 0 auto; }
.hv-glow {
    position: absolute; inset: -50px -70px; pointer-events: none;
    background: radial-gradient(58% 58% at 50% 32%, var(--gold-dim), transparent 72%);
    filter: blur(6px);
}
.hv-panel {
    position: relative; z-index: 1;
    background: linear-gradient(160deg, var(--surface-solid), var(--surface));
    border: 1px solid var(--border); border-radius: 26px;
    padding: 26px 28px 20px; box-shadow: var(--shadow-lg), var(--glow);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hv-head-left { display: flex; align-items: center; gap: 12px; }
.hv-ico {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.15rem; color: #080C14;
    background: linear-gradient(135deg, #E8C97A, var(--gold));
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.35);
}
.hv-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hv-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
.hv-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
.hv-sub { font-size: 0.72rem; color: var(--text-muted); }
.hv-seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; margin-top: 16px; }
.hv-seg span { font-family: var(--font-mono); font-size: 0.6rem; padding: 4px 10px; border-radius: 999px; color: var(--text-muted); cursor: default; }
.hv-seg span.active { background: var(--gold); color: #080C14; font-weight: 700; }
.hv-chart { margin-top: 16px; }
.hv-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.hv-grid line { stroke: var(--border-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hv-area { fill: url(#hvAreaGrad); }
.hv-line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hv-projected { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.6; }
.hv-dot { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(232, 201, 122, 0.9)); }
.hv-allocation { margin-top: 16px; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.hv-alloc { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.hv-alloc-name { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.hv-alloc-track { height: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.hv-alloc-fill { display: block; height: 100%; border-radius: 999px; }
.fill-stable { background: linear-gradient(90deg, #4A9EFF, #3B7DD8); }
.fill-balanced { background: linear-gradient(90deg, var(--gold), #E8C97A); }
.fill-growth { background: linear-gradient(90deg, #23C08E, #14B8A6); }

.hv-chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px;
    padding: 9px 13px; border-radius: 999px;
    background: var(--surface-solid); border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: hvFloat 5s ease-in-out infinite;
}
.hc-text { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.hc-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 0.85rem; background: var(--accent-soft); color: var(--success); flex-shrink: 0; }
.hc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); margin: 0 3px; flex-shrink: 0; }
.c-deposit { top: 6%; left: -38px; animation-delay: 0.4s; }
.c-roi { top: -26px; right: -18px; animation-delay: 1.2s; }
.c-roi .hc-ico { color: var(--gold); background: var(--gold-soft); }
.c-ticker { bottom: 16%; right: -30px; animation-delay: 2s; }
@keyframes hvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@media (max-width: 640px) {
    .hv-panel { padding: 20px 18px 16px; border-radius: 22px; }
    .hv-ico { width: 36px; height: 36px; font-size: 1rem; }
    .hv-chip { padding: 7px 10px; gap: 7px; }
    .hc-text { font-size: 0.72rem; }
    .c-deposit { left: -6px; top: 4%; }
    .c-roi { right: -6px; top: -18px; }
    .c-ticker { right: -6px; bottom: 12%; }
    .hv-glow { inset: -30px -30px; }
}

@media (prefers-reduced-motion: reduce) {
    .hv-chip { animation: none; }
}

@media (min-width: 981px) {
    .hero-right { margin-top: -15px; }
}

/* ------------------------------ Responsive hardening -------------------- */
html, body { overflow-x: hidden; }
html { scrollbar-gutter: stable; }
.card, .main, .main-content, .sidebar, .grid > * { min-width: 0; }
.card-head { flex-wrap: wrap; }
.vcard { min-width: 0; }
.vcard .cnum { word-break: break-all; }

@media (max-width: 640px) {
    .toolbar { flex-direction: column; align-items: stretch; }
    .toolbar form { width: 100%; flex-wrap: wrap; }
    .toolbar input[type="search"], .toolbar .form-control { min-width: 0 !important; flex: 1 1 100%; }
    .vcard { padding: 22px 18px; }
    .vcard .cnum { font-size: 1.05rem; letter-spacing: 0.04em; }
    .vcard .cmeta { gap: 8px; flex-wrap: wrap; }
    .card-head .seg { margin-left: auto; }
}

@media (max-width: 480px) {
    .profile-head { flex-wrap: wrap; }
    .pf { flex-direction: column; gap: 4px; }
    .pf strong { text-align: left; }
    .page-head { flex-direction: column; align-items: flex-start; }
    .page-head .btn-group, .page-head > .btn { width: 100%; }
    .page-head > .btn { justify-content: center; }
    .dropdown-menu { max-width: calc(100vw - 24px); }
    .plan-cat { padding: 26px 20px; }
    .plan-cat ul.cat-feats { grid-template-columns: 1fr; }
}

/* ------------------------------ Company / static pages ------------------- */
.page-hero { padding-top: 170px; padding-bottom: 70px; }
.page-hero-inner { max-width: 780px; margin: 0 auto; }
.page-title { margin: 18px 0 22px; }
.page-lede { font-size: 1.08rem; color: var(--text-secondary); line-height: 1.75; max-width: 620px; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text .sec-body { max-width: 520px; }
.about-visual { display: grid; gap: 14px; }
.av-card {
    display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    padding: 18px 20px; transition: transform var(--t), border-color var(--t);
}
.av-card:hover { transform: translateY(-3px); border-color: var(--gold-dim); }
.av-ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.2rem; color: var(--gold); background: var(--gold-soft);
}
.av-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); align-self: start; }
.av-title { display: block; font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.av-sub { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

.cta-band {
    background: linear-gradient(160deg, var(--surface-solid), var(--surface));
    border: 1px solid var(--border); border-radius: 26px;
    padding: 52px 40px; box-shadow: var(--shadow-lg), var(--glow);
}

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proc-step {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; padding: 28px 24px; transition: transform var(--t), border-color var(--t);
}
.proc-step:hover { transform: translateY(-4px); border-color: var(--gold-dim); }
.proc-num { position: absolute; top: 20px; right: 22px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); }
.proc-ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.2rem; color: var(--gold); background: var(--gold-soft); margin-bottom: 18px;
}
.proc-title { font-size: 1.05rem; color: var(--text-primary); margin-bottom: 8px; }
.proc-body { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.roles-list { display: grid; gap: 12px; }
.role-row {
    display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 18px 20px; text-decoration: none; transition: transform var(--t), border-color var(--t), background var(--t);
}
.role-row:hover { transform: translateX(4px); border-color: var(--gold-dim); background: var(--surface-solid); }
.role-ico {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.2rem; color: var(--gold); background: var(--gold-soft);
}
.role-title { display: block; font-size: 1.02rem; font-weight: 600; color: var(--text-primary); }
.role-team { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; font-family: var(--font-mono); }
.role-cta { font-size: 1.3rem; color: var(--text-muted); transition: color var(--t), transform var(--t); }
.role-row:hover .role-cta { color: var(--gold); transform: translate(2px, -2px); }
.careers-note { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: 22px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-dim);
    border-radius: 999px; padding: 8px 16px; margin-bottom: 22px;
}

/* ------------------------------ Error pages ------------------------------ */
.err-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; background: var(--bg); }
.err-wrap { max-width: 520px; width: 100%; text-align: center; }
.err-code {
    font-family: var(--font-display); font-size: 6.5rem; line-height: 1; display: block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.err-icon {
    display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
    font-size: 1.35rem; color: var(--gold); background: var(--gold-soft); margin: 18px 0 4px;
}
.err-title { margin: 6px 0 0; }
.err-msg { color: var(--text-secondary); margin: 14px auto 28px; max-width: 400px; line-height: 1.65; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .page-hero { padding-top: 140px; }
    .process-grid { grid-template-columns: 1fr; }
    .cta-band { padding: 38px 22px; }
    .err-code { font-size: 5rem; }
}

/* ------------------------- Brand logo ------------------------- */
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.auth-logo { display: block; width: 62px; height: 62px; object-fit: contain; margin: 0 auto 16px; border-radius: 14px; }


