/* ═══════════════════════════════════════════════════════════════════════════
   StakeBrick Design System v2
   Modern · Premium · Glassmorphism · Refined motion
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --navy-950: #020617;
    --navy-900: #0a1628;
    --navy-800: #0f1d32;
    --navy-700: #162d4a;
    --navy-600: #1e3a5f;
    --navy-500: #2a4d78;
    --navy-400: #3d6a9e;
    --navy-300: #5a8dc4;

    --gold-600: #b8941f;
    --gold-500: #c9a84c;
    --gold-400: #d4b95e;
    --gold-300: #e0ca7a;
    --gold-200: #ecdba0;
    --gold-100: #faf3e0;

    --white: #ffffff;
    --gray-25: #fcfcfd;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --green-500: #10b981;
    --green-400: #34d399;
    --red-500: #ef4444;
    --red-400: #f87171;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.15);

    --glass-bg: rgba(255,255,255,.72);
    --glass-border: rgba(255,255,255,.2);
    --glass-blur: blur(20px);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.topbar {
    background: rgba(10,22,40,.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand {
    color: var(--gold-500);
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon { font-size: 1.2rem; }

.nav-links { display: flex; gap: 2px; }

.nav-links a {
    color: var(--gray-400);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 500;
    letter-spacing: .3px;
    transition: all .2s ease;
}

.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.08); }
.nav-links a.nav-admin { color: var(--gold-500); }

/* Nav dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
    user-select: none;
}

.nav-caret {
    font-size: .6em;
    margin-left: 2px;
    opacity: .6;
    vertical-align: 1px;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--navy-800);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    padding: 10px 0 6px;
    z-index: 200;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 18px;
    color: var(--gray-300);
    font-size: .83rem;
    font-weight: 400;
    letter-spacing: .2px;
    border-radius: 0;
    transition: all .15s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,.06);
    color: var(--white);
}

.nav-dropdown-divider {
    height: 1px;
    margin: 4px 12px;
    background: rgba(255,255,255,.08);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: .84rem;
}

.nav-balance {
    color: var(--gold-400);
    font-weight: 700;
    font-family: var(--mono);
    font-size: .88rem;
}

.nav-user { color: var(--gray-300); font-weight: 500; }

.nav-logout {
    color: var(--gray-500);
    font-size: .78rem;
    transition: color .2s;
}
.nav-logout:hover { color: var(--gray-300); }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    transition: background .3s, backdrop-filter .3s;
}

.landing-nav.scrolled {
    background: rgba(10,22,40,.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.landing-nav .brand { font-size: .85rem; }

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav-links a {
    color: rgba(255,255,255,.7);
    padding: 8px 18px;
    font-size: .84rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all .2s;
}

.landing-nav-links a:hover { color: white; background: rgba(255,255,255,.08); }
.landing-nav-links .btn-nav { background: var(--gold-500); color: var(--navy-950); font-weight: 600; }
.landing-nav-links .btn-nav:hover { background: var(--gold-400); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--navy-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: .25;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,.4) 0%, rgba(2,6,23,.85) 60%, var(--navy-950) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    padding: 0 32px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,.12);
    border: 1px solid rgba(201,168,76,.25);
    color: var(--gold-400);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -.02em;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold-400);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    display: block;
}

.hero-stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Sections */
.landing-section {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-dark {
    background: var(--navy-950);
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.section-dark .section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-dark .section-title { color: var(--white); }

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.section-dark .section-desc { color: rgba(255,255,255,.5); }

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy-950);
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.step-card p {
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Featured Properties (landing) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    transition: transform .25s ease, border-color .25s ease;
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,168,76,.3);
}

.featured-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(2,6,23,.7) 100%);
}

.featured-card-body {
    padding: 24px;
}

.featured-card-body h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 4px;
}

.featured-loc {
    font-size: .82rem;
    color: rgba(255,255,255,.4);
    margin-bottom: 16px;
}

.featured-stats {
    display: flex;
    gap: 20px;
}

.featured-stats div { display: flex; flex-direction: column; }

.featured-stats small {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.35);
}

.featured-stats strong {
    font-family: var(--mono);
    font-size: .95rem;
    color: var(--gold-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT LISTING PAGES — Light-theme featured cards
   ═══════════════════════════════════════════════════════════════════════════ */

.prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

.main-content .featured-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}

.main-content .featured-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
}

.main-content .featured-card-body h3 {
    color: #0a1628;
    color: var(--navy-900);
    font-weight: 700;
    font-size: 1.2rem;
}

.main-content .featured-loc {
    color: #6b7280;
    color: var(--gray-500);
}

.main-content .featured-stats small {
    color: #6b7280;
    color: var(--gray-500);
}

.main-content .featured-stats strong {
    color: #0a1628;
    color: var(--navy-900);
}

.main-content .avail-text {
    color: #6b7280;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FUND DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.fund-hero {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

.fund-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px 28px;
}

.fund-hero-badge {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: rgba(201,168,76,.9);
    color: var(--navy-950);
}

.fund-metrics-row {
    display: flex;
    gap: 0;
    margin: 24px 0 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.fund-metric {
    flex: 1;
    padding: 20px 24px;
    text-align: center;
    border-right: 1px solid var(--gray-100);
}

.fund-metric:last-child { border-right: none; }

.fund-metric-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.fund-metric-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy-900);
    font-family: var(--mono);
}

.fund-metric-value.highlight {
    color: var(--gold-500);
}

.fund-strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fund-strat-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fund-strat-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.fund-strat-item strong {
    display: block;
    font-size: .88rem;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.fund-strat-item p {
    font-size: .82rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0;
}

.fund-progress-bar {
    height: 10px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 10px;
}

.fund-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    border-radius: 100px;
    transition: width .6s ease;
}

.fund-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.fund-progress-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.fund-ps-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.fund-ps-value {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
    font-family: var(--mono);
}

.fund-manager-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.fund-manager-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fund-manager-info strong {
    display: block;
    font-size: .95rem;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.fund-manager-info p {
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.fund-docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fund-doc-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
}

.fund-doc-item:hover {
    border-color: var(--gold-400);
    box-shadow: var(--shadow-xs);
}

.fund-doc-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.fund-doc-item strong {
    display: block;
    font-size: .85rem;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.fund-doc-item p {
    font-size: .78rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .fund-metrics-row { flex-wrap: wrap; }
    .fund-metric { flex: 1 1 33%; border-bottom: 1px solid var(--gray-100); }
    .fund-strategy-grid { grid-template-columns: 1fr; }
    .fund-docs-grid { grid-template-columns: 1fr; }
    .fund-progress-stats { grid-template-columns: repeat(2, 1fr); }
    .fund-hero { height: 200px; }
}

/* Trust Bar */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.trust-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.trust-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.trust-card p {
    font-size: .82rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* CTA Band */
.cta-band {
    background: var(--navy-950);
    padding: 80px 40px;
    text-align: center;
}

.cta-band h2 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-band p {
    color: rgba(255,255,255,.5);
    font-size: 1rem;
    margin-bottom: 32px;
}

/* Footer */
.landing-footer {
    background: var(--navy-950);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 32px 40px;
    text-align: center;
    color: rgba(255,255,255,.3);
    font-size: .78rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS (global)
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    letter-spacing: .2px;
    transition: all .2s ease;
    font-family: var(--sans);
}

.btn-primary {
    background: var(--navy-900);
    color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); }

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
    font-weight: 700;
}
.btn-gold:hover { background: var(--gold-400); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--navy-900); color: var(--navy-900); }

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
}
.btn-outline-light:hover { border-color: rgba(255,255,255,.5); color: var(--white); }

.btn-full { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: .95rem; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: .8rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 32px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.page-header h1 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--navy-900);
}

.page-subtitle {
    color: var(--gray-500);
    font-size: .9rem;
    width: 100%;
}

.back-link {
    color: var(--gray-500);
    font-size: .84rem;
    width: 100%;
    margin-bottom: -4px;
    transition: color .2s;
}
.back-link:hover { color: var(--navy-900); }

.header-actions { display: flex; gap: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .2s ease;
}

.stat-card:hover { box-shadow: var(--shadow); }

.stat-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy-900);
    font-family: var(--mono);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.card-header h3 {
    font-size: .92rem;
    font-weight: 700;
    color: var(--navy-800);
    letter-spacing: .2px;
}

.card-body { padding: 24px; }
.card-chart .card-body { padding: 16px 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════════════════════════════════════ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
}

@media (max-width: 1024px) {
    .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DATA TABLES
   ═══════════════════════════════════════════════════════════════════════════ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

.data-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--gray-50); }

.mono { font-family: var(--mono); font-size: .82rem; }
.positive { color: var(--green-500); font-weight: 600; }
.negative { color: var(--red-500); font-weight: 600; }
.notes-cell { color: var(--gray-400); font-style: italic; font-size: .82rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════════════ */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.badge-buy, .badge-active, .badge-create { background: #dcfce7; color: #166534; }
.badge-sell, .badge-withdrawal, .badge-delete, .badge-suspended { background: #fee2e2; color: #991b1b; }
.badge-dividend, .badge-payout { background: #fef3c7; color: #92400e; }
.badge-deposit { background: #dbeafe; color: #1e40af; }
.badge-lead { background: #e0e7ff; color: #3730a3; }
.badge-valuation_change, .badge-update { background: #f3e8ff; color: #6b21a8; }
.badge-residential { background: #ecfdf5; color: #065f46; }
.badge-commercial { background: #eff6ff; color: #1e40af; }
.badge-mixed { background: #fef3c7; color: #92400e; }
.badge-sold_out { background: var(--gray-200); color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════════════ */

.form-group {
    margin-bottom: 18px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .93rem;
    font-family: var(--sans);
    color: var(--gray-700);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--gray-400);
    font-size: .78rem;
}

.form-row { display: flex; gap: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MARKETPLACE — PROPERTY CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .25s ease, box-shadow .25s ease;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.property-card-img {
    height: 240px;
    background: var(--navy-800);
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,.4));
}

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
}

.property-badge.residential { background: rgba(5,59,46,.85); color: #86efac; }
.property-badge.commercial { background: rgba(30,64,175,.85); color: #93c5fd; }
.property-badge.mixed { background: rgba(146,64,14,.85); color: #fde68a; }
.property-badge.sold-out { background: rgba(0,0,0,.7); color: var(--white); }

.property-yield-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: .82rem;
    font-weight: 800;
    font-family: var(--mono);
    background: rgba(201,168,76,.9);
    color: var(--navy-950);
    backdrop-filter: blur(8px);
}

.property-card-body { padding: 24px; }

.property-card-body h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a1628;
    color: var(--navy-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.property-location {
    color: #6b7280;
    color: var(--gray-500);
    font-size: .86rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
}

.prop-stat-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #6b7280;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.prop-stat-value {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #0a1628;
    color: var(--navy-900);
    font-family: var(--mono);
}

.property-availability { margin-bottom: 20px; }

.progress-bar {
    height: 4px;
    background: var(--gray-100);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    border-radius: 2px;
    transition: width .5s ease;
}

.avail-text {
    font-size: .76rem;
    color: #6b7280;
    color: var(--gray-500);
}

.property-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.property-highlight {
    font-size: .82rem;
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.property-highlight::before {
    content: '✓';
    color: var(--gold-500);
    font-weight: 700;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROPERTY DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero Banner */
.prop-hero {
    position: relative;
    height: 480px;
    overflow: hidden;
    margin: -36px -32px 32px;
}

.prop-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prop-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(2,6,23,.85) 100%);
}

.prop-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.prop-hero-content h1 {
    font-family: var(--serif);
    font-size: 2.4rem;
    color: var(--white);
    margin-bottom: 8px;
}

.prop-hero-address {
    color: rgba(255,255,255,.6);
    font-size: .95rem;
    margin-bottom: 20px;
}

.prop-hero-stats {
    display: flex;
    gap: 40px;
}

.prop-hero-stat { text-align: left; }

.prop-hero-stat-value {
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-400);
}

.prop-hero-stat-label {
    font-size: .72rem;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
    letter-spacing: .8px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.gallery-item {
    height: 140px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity .2s;
    position: relative;
}

.gallery-item:hover { opacity: .85; }

/* Video / Tour Tabs */
.media-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.media-tab {
    padding: 10px 20px;
    font-size: .84rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    color: var(--gray-500);
    transition: all .2s;
}

.media-tab:hover { border-color: var(--navy-600); color: var(--navy-900); }
.media-tab.active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.media-frame {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    border: none;
    background: var(--gray-100);
}

.media-panel { display: none; }
.media-panel.active { display: block; }

/* Financial Breakdown */
.fin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.fin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.fin-item:last-child { border-bottom: none; }

.fin-label { color: var(--gray-500); font-size: .88rem; }
.fin-value { font-family: var(--mono); font-weight: 600; color: var(--navy-900); }

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.amenity-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .84rem;
    font-weight: 500;
    color: var(--gray-700);
}

.amenity-tag::before {
    content: '◆';
    color: var(--gold-500);
    font-size: .6rem;
}

/* Highlights list */
.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: .9rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.highlight-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-100);
    color: var(--gold-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    margin-top: 2px;
}

/* Trade Card — no sticky to prevent overlap */
.trade-card {
    border: 2px solid var(--navy-800);
}

.trade-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.trade-stats div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trade-stats span { color: var(--gray-500); font-size: .86rem; }
.trade-stats strong { font-family: var(--mono); color: var(--navy-900); }

.trade-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    margin-bottom: 14px;
    border-top: 1px solid var(--gray-100);
}

.trade-cost span { color: var(--gray-500); font-size: .86rem; }
.trade-cost strong { font-size: 1.15rem; color: var(--navy-900); font-family: var(--mono); }

.trade-msg {
    text-align: center;
    font-size: .84rem;
    margin-top: 10px;
    min-height: 20px;
}

.trade-separator {
    text-align: center;
    color: var(--gray-400);
    font-size: .78rem;
    margin: 10px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DETAIL META
   ═══════════════════════════════════════════════════════════════════════════ */

.detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.detail-meta div { display: flex; flex-direction: column; gap: 2px; }
.detail-meta span { font-size: .72rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }
.detail-meta strong { font-family: var(--mono); color: var(--navy-900); }

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.55);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 440px;
    max-width: 90vw;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 { font-size: 1.05rem; color: var(--navy-900); font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gray-400);
    line-height: 1;
    transition: color .2s;
}
.modal-close:hover { color: var(--gray-700); }

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLASH / PAGINATION / EMPTY
   ═══════════════════════════════════════════════════════════════════════════ */

.flash-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px 0;
}

.flash {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    font-size: .84rem;
    color: var(--gray-500);
}

.empty-state { color: var(--gray-400); font-size: .9rem; padding: 20px 0; }

.empty-state-large {
    text-align: center;
    padding: 100px 24px;
}

.empty-state-large .brand-icon.large {
    font-size: 3.5rem;
    color: var(--gold-500);
    display: block;
    margin-bottom: 20px;
}

.empty-state-large h2 { color: var(--navy-900); margin-bottom: 8px; font-family: var(--serif); }
.empty-state-large p { color: var(--gray-400); }

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-body {
    background: var(--navy-950);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.auth-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(2,6,23,.88);
    backdrop-filter: blur(2px);
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 24px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 36px;
    box-shadow: var(--shadow-xl);
}

.auth-brand {
    text-align: center;
    margin-bottom: 36px;
}

.auth-brand .brand-icon {
    font-size: 2.2rem;
    color: var(--gold-500);
    display: block;
    margin-bottom: 14px;
}

.auth-brand h1 {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--navy-900);
    font-weight: 800;
}

.auth-subtitle {
    color: var(--gray-400);
    font-size: .84rem;
    margin-top: 6px;
}

.auth-form { margin-top: 8px; }

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: .86rem;
    color: var(--gray-500);
}

.auth-footer a { color: var(--gold-500); font-weight: 600; }

.auth-legal {
    text-align: center;
    font-size: .73rem;
    color: rgba(255,255,255,.3);
    margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN BACKOFFICE
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-body { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 250px;
    background: var(--navy-950);
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
}

.admin-brand {
    color: var(--gold-500);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: 3px;
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.admin-nav::-webkit-scrollbar { width: 5px; }
.admin-nav::-webkit-scrollbar-track { background: transparent; }
.admin-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
.admin-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }

.admin-nav a {
    color: var(--gray-400);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: .86rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all .15s;
}

.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.admin-nav a.active { color: var(--white); background: rgba(255,255,255,.08); }

.admin-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-sidebar-footer a {
    color: var(--gray-500);
    font-size: .8rem;
    transition: color .2s;
}
.admin-sidebar-footer a:hover { color: var(--gray-300); }

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 36px;
}

.admin-form { max-width: 100%; }

.user-summary div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.user-summary span { color: var(--gray-500); font-size: .84rem; }
.user-summary strong { font-family: var(--mono); }

/* ═══════════════════════════════════════════════════════════════════════════
   LEAFLET / CHARTS
   ═══════════════════════════════════════════════════════════════════════════ */

.leaflet-popup-content-wrapper {
    border-radius: var(--radius-sm) !important;
    font-family: var(--sans) !important;
    font-size: .84rem !important;
    box-shadow: var(--shadow-md) !important;
}

canvas { max-height: 300px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   CARD HEADER ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-sub {
    font-size: .76rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD V2 — Welcome Banner + Stat Cards
   ═══════════════════════════════════════════════════════════════════════════ */

.welcome-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    padding: 32px 36px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.welcome-greeting {
    font-size: .82rem;
    color: var(--gold-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 4px;
}

.welcome-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.welcome-sub {
    font-size: .88rem;
    color: rgba(255,255,255,.5);
}

.welcome-banner .header-actions { flex-shrink: 0; }

.welcome-banner .btn-outline {
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.8);
}

.welcome-banner .btn-outline:hover {
    border-color: rgba(255,255,255,.5);
    color: var(--white);
}

.stat-grid-v2 {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card-v2 {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .2s, transform .2s;
}

.stat-card-v2:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-hero-card {
    background: var(--navy-900);
    border-color: var(--navy-700);
}

.stat-hero-card .stat-label-v2 { color: var(--gold-400); }
.stat-hero-card .stat-value-v2 { color: var(--white); }
.stat-hero-card .stat-trend { color: rgba(255,255,255,.4); }

.stat-icon-bg {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: rgba(201,168,76,.08);
    font-weight: 900;
    line-height: 1;
}

.stat-label-v2 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    display: block;
    margin-bottom: 8px;
}

.stat-value-v2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
    font-family: var(--mono);
    display: block;
    margin-bottom: 6px;
}

.stat-trend {
    font-size: .76rem;
    color: var(--gray-400);
    display: block;
}

.stat-trend.positive { color: var(--green-500); }
.stat-trend.negative { color: var(--red-500); }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — LOGOS BAR
   ═══════════════════════════════════════════════════════════════════════════ */

.logos-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 28px 40px;
    text-align: center;
}

.logos-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.logo-text {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-300);
    letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — SECTION HELPERS
   ═══════════════════════════════════════════════════════════════════════════ */

.section-center { text-align: center; margin-bottom: 48px; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

.bg-subtle { background: var(--gray-50); }

.step-detail {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
    font-size: .76rem;
    color: var(--gray-400);
    letter-spacing: .3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — DUE DILIGENCE
   ═══════════════════════════════════════════════════════════════════════════ */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.checklist { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }

.check-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-100);
    color: var(--gold-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    margin-top: 2px;
}

.check-item strong {
    display: block;
    font-size: .92rem;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.check-item p {
    font-size: .84rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.due-diligence-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.dd-header {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.dd-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.dd-row span {
    font-size: .86rem;
    color: var(--gray-600);
    width: 160px;
    flex-shrink: 0;
}

.dd-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.dd-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    border-radius: 4px;
}

.dd-row strong {
    font-family: var(--mono);
    font-size: .9rem;
    color: var(--navy-900);
    width: 36px;
    text-align: right;
}

.dd-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    font-size: .88rem;
    color: var(--green-500);
}

.dd-footer strong { color: var(--green-500); }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — FEATURED CARDS ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.featured-type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: rgba(0,0,0,.55);
    color: var(--white);
    backdrop-filter: blur(8px);
}

.featured-progress { margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — TRACK RECORD
   ═══════════════════════════════════════════════════════════════════════════ */

.track-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.track-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.track-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.track-value {
    display: block;
    font-family: var(--mono);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.track-label {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.track-sub {
    display: block;
    font-size: .78rem;
    color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — TRUST V2 (6-grid)
   ═══════════════════════════════════════════════════════════════════════════ */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trust-card {
    text-align: left;
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: transform .2s, box-shadow .2s;
}

.trust-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trust-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gold-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.trust-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.trust-card p {
    font-size: .84rem;
    color: var(--gray-500);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — TEAM
   ═══════════════════════════════════════════════════════════════════════════ */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 14px;
    letter-spacing: 1px;
}

.team-card h4 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.team-role {
    display: block;
    font-size: .78rem;
    color: var(--gold-500);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-card p {
    font-size: .82rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.testimonial-stars {
    color: var(--gold-500);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card p {
    font-size: .92rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201,168,76,.15);
    color: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
}

.testimonial-author strong {
    display: block;
    color: var(--white);
    font-size: .88rem;
}

.testimonial-author span {
    font-size: .76rem;
    color: rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — FAQ
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
}

.faq-item summary {
    padding: 20px 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--gray-400);
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform .2s;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--gold-500);
}

.faq-item p {
    padding: 0 0 20px;
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — CTA BAND V2
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-band {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-700) 100%);
    padding: 100px 40px;
    text-align: center;
}

.cta-inner { max-width: 640px; margin: 0 auto; }

.cta-band h2 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 16px;
}

.cta-band p {
    color: rgba(255,255,255,.55);
    font-size: 1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-note {
    display: block;
    margin-top: 16px;
    font-size: .78rem;
    color: rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — FOOTER V2
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-footer {
    background: var(--navy-950);
    padding: 0;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 40px;
}

.footer-col p {
    font-size: .84rem;
    color: rgba(255,255,255,.35);
    line-height: 1.6;
    margin-top: 12px;
}

.footer-col h5 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.5);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: .84rem;
    color: rgba(255,255,255,.35);
    margin-bottom: 8px;
    transition: color .2s;
}

.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px;
}

.footer-bottom p {
    font-size: .73rem;
    color: rgba(255,255,255,.2);
    line-height: 1.7;
}

.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — PILLARS (What We Do)
   ═══════════════════════════════════════════════════════════════════════════ */

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pillar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pillar-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.pillar-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--gold-100);
    color: var(--gold-600);
    margin-bottom: 14px;
}

.pillar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: .88rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — BIG STATEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.big-statement {
    margin-top: 48px;
}

.big-statement-inner {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border-radius: var(--radius-xl);
    padding: 48px 56px;
    position: relative;
}

.big-quote {
    font-family: var(--serif);
    font-size: 6rem;
    color: var(--gold-500);
    opacity: .3;
    position: absolute;
    top: 12px;
    left: 36px;
    line-height: 1;
}

.big-statement-inner p {
    font-size: 1.2rem;
    color: rgba(255,255,255,.8);
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

.big-statement-inner strong {
    color: var(--gold-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — INCOME CALCULATOR
   ═══════════════════════════════════════════════════════════════════════════ */

.calc-grid {
    max-width: 560px;
    margin: 0 auto;
}

.calc-card {
    background: var(--white);
    border: 2px solid var(--navy-900);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
}

.calc-header {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.calc-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.calc-btn {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--mono);
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all .2s;
}

.calc-btn:hover { border-color: var(--navy-500); color: var(--navy-900); }

.calc-btn.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--gold-400);
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}

.calc-row:last-child { border-bottom: none; }

.calc-row span { font-size: .9rem; color: var(--gray-600); }

.calc-row strong {
    font-family: var(--mono);
    font-size: 1.05rem;
    color: var(--navy-900);
}

.calc-highlight {
    background: var(--gold-100);
    margin: 8px -16px -4px;
    padding: 16px 16px !important;
    border-radius: var(--radius-sm);
    border-bottom: none !important;
}

.calc-highlight strong {
    font-size: 1.2rem;
    color: var(--gold-600);
}

.calc-note {
    font-size: .76rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — FEATURED YIELD BADGE
   ═══════════════════════════════════════════════════════════════════════════ */

.featured-yield-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: .8rem;
    font-weight: 800;
    font-family: var(--mono);
    background: rgba(201,168,76,.92);
    color: var(--navy-950);
    backdrop-filter: blur(8px);
}

.section-title em {
    font-style: normal;
    color: var(--gold-500);
}

.section-dark .section-title em {
    color: var(--gold-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — New Stat Row
   ═══════════════════════════════════════════════════════════════════════════ */

.dash-stat-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.dash-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    transition: transform .2s, box-shadow .2s;
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dash-stat-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dash-stat-hero .dash-stat-label,
.dash-stat-hero .dash-stat-sub { color: rgba(255,255,255,.5); }
.dash-stat-hero .dash-stat-value { color: var(--gold-400); }

.dash-stat-icon {
    font-size: 2rem;
    color: var(--gold-500);
    opacity: .4;
}

.dash-stat-content { display: flex; flex-direction: column; }

.dash-stat-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.dash-stat-value {
    font-family: var(--mono);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.2;
}

.dash-stat-sub {
    font-size: .76rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Quick Actions
   ═══════════════════════════════════════════════════════════════════════════ */

.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: .84rem;
    font-weight: 600;
    color: var(--navy-900);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    font-family: var(--sans);
}

.quick-action-btn:hover {
    border-color: var(--gold-500);
    background: var(--gold-100);
    color: var(--navy-900);
}

.qa-icon { font-size: 1.05rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Tier Widget
   ═══════════════════════════════════════════════════════════════════════════ */
.tier-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2f4a 50%, #0d1b2a 100%);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 28px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
}
.tier-widget::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
    pointer-events: none;
}
.tier-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10,22,40,.4);
}
.tier-widget-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.tier-widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.tier-widget-icon svg { width: 100%; height: 100%; }
.tier-widget-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 16px;
    border: 2px solid rgba(0,196,140,.4);
    animation: twPulse 2.5s ease-in-out infinite;
}
@keyframes twPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .3; transform: scale(1.12); }
}
.tier-widget-label {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.tier-widget-sub {
    font-size: .76rem;
    opacity: .55;
}
.tier-widget-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: 420px;
}
.tier-widget-progress {
    flex: 1;
}
.tier-widget-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    opacity: .6;
    margin-bottom: 6px;
}
.tier-widget-amount { color: #c9a84c; opacity: 1; font-weight: 600; }
.tier-widget-bar {
    height: 6px;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    overflow: hidden;
}
.tier-widget-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #00c48c, #00e5a0);
    transition: width 1s ease;
    position: relative;
}
.tier-widget-bar-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0; width: 12px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
    border-radius: 6px;
    animation: twShimmer 2s ease-in-out infinite;
}
@keyframes twShimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
.tier-widget-cta {
    background: rgba(0,196,140,.15);
    color: #00c48c;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s;
}
.tier-widget:hover .tier-widget-cta {
    background: #00c48c;
    color: white;
}
.tier-widget-max {
    font-size: .85rem;
    color: #c9a84c;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tier-widget {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px 20px;
    }
    .tier-widget-right {
        max-width: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Activity Feed & Request Items
   ═══════════════════════════════════════════════════════════════════════════ */

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon { font-size: 1.2rem; }

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.activity-desc {
    font-size: .85rem;
    color: var(--navy-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    font-size: .75rem;
    color: var(--gray-400);
}

.activity-amount {
    font-family: var(--mono);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}

.request-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.request-item:last-child { border-bottom: none; }

.request-icon { font-size: 1.2rem; }

.request-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.request-type {
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy-900);
}

.request-date {
    font-size: .75rem;
    color: var(--gray-400);
}

.request-status {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 100px;
}

.status-warning { background: #fef3c7; color: #b45309; }
.status-success { background: #d1fae5; color: #065f46; }
.status-danger { background: #fee2e2; color: #991b1b; }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Toast Notifications
   ═══════════════════════════════════════════════════════════════════════════ */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { background: var(--red-500); }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD — Modal Notice
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-notice {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #fef3c7;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.modal-notice-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.modal-notice p {
    font-size: .82rem;
    color: #92400e;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROPERTY — Lightbox
   ═══════════════════════════════════════════════════════════════════════════ */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s;
    z-index: 2;
    line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}

.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    font-family: var(--mono);
}

.gallery-item {
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.hero-photo-count {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px);
    color: white;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}

.hero-photo-count:hover { background: rgba(0,0,0,.8); }

.prop-hero { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════════
   PROPERTY — Income Simulator
   ═══════════════════════════════════════════════════════════════════════════ */

.prop-calc {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prop-calc-input label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.prop-calc-input input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    outline: none;
}

.prop-calc-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-500);
    border: 3px solid var(--navy-900);
    cursor: pointer;
}

.prop-calc-shares-display {
    text-align: center;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-900);
}

.prop-calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.prop-calc-item {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.prop-calc-item span {
    font-size: .75rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.prop-calc-item strong {
    font-family: var(--mono);
    font-size: 1.05rem;
    color: var(--navy-900);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN — Enhanced Stats, Alerts, Layout
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.admin-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
}

.admin-stat-card.admin-stat-primary {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    border: none;
}

.admin-stat-card.admin-stat-primary .admin-stat-label { color: rgba(255,255,255,.5); }
.admin-stat-card.admin-stat-primary .admin-stat-value { color: var(--gold-400); }
.admin-stat-card.admin-stat-primary .admin-stat-sub { color: rgba(255,255,255,.4); }

.admin-stat-card.admin-stat-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.admin-stat-label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.admin-stat-value {
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.2;
}

.admin-stat-sub {
    font-size: .74rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.warning-text { color: #f59e0b !important; }

.admin-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.admin-alert-icon { font-size: 1.3rem; }

.admin-alert-content {
    flex: 1;
    font-size: .88rem;
    color: #92400e;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.admin-nav-icon { font-size: .9rem; }

.admin-badge {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 800;
    background: #ef4444;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN — Filter Bar
   ═══════════════════════════════════════════════════════════════════════════ */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-right: 4px;
}

.filter-btn {
    padding: 5px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xs);
    font-size: .8rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all .2s;
}

.filter-btn:hover { border-color: var(--navy-500); color: var(--navy-900); }

.filter-btn.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN — Status Pills, Action Buttons, Request Row
   ═══════════════════════════════════════════════════════════════════════════ */

.status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.status-pending { background: #fef3c7; color: #b45309; }
.status-approved { background: #d1fae5; color: #065f46; }
.status-rejected { background: #fee2e2; color: #991b1b; }

.action-buttons { display: flex; gap: 6px; }

.btn-success {
    background: #10b981;
    color: white;
    border: none;
}

.btn-success:hover { background: #059669; }

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
}

.btn-danger:hover { background: #dc2626; }

.request-row-pending { background: #fffbeb; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE (updated)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-stats { gap: 32px; }
    .steps-grid, .featured-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .trust-grid, .track-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 40px; }
    .property-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .fin-grid { grid-template-columns: 1fr; }
    .prop-hero { height: 360px; margin: -20px -16px 24px; }
    .prop-hero-content { padding: 24px; }
    .prop-hero-content h1 { font-size: 1.8rem; }
    .stat-grid-v2 { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .big-statement-inner { padding: 36px 28px; }
    .big-quote { font-size: 4rem; top: 6px; left: 20px; }
    .calc-amounts { flex-wrap: wrap; }
    .calc-btn { flex: 1 1 45%; }
    .dash-stat-row { grid-template-columns: 1fr 1fr 1fr; }
    .quick-actions { flex-wrap: wrap; }
    .admin-two-col { grid-template-columns: 1fr; }
    .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .landing-nav { padding: 16px 20px; }
    .landing-nav-links a:not(.btn-nav) { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .landing-section { padding: 60px 20px; }
    .section-title { font-size: 1.8rem; }
    .main-content { padding: 20px 16px; }
    .form-row { flex-direction: column; gap: 0; }
    .prop-hero-stats { flex-wrap: wrap; gap: 16px; }
    .property-grid { grid-template-columns: 1fr; }
    .stat-grid-v2 { grid-template-columns: 1fr; }
    .welcome-banner { flex-direction: column; text-align: center; padding: 24px; }
    .welcome-banner .header-actions { justify-content: center; }
    .trust-grid, .track-grid, .team-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .big-statement-inner { padding: 28px 22px; }
    .big-statement-inner p { font-size: 1rem; }
    .big-quote { font-size: 3rem; }
    .calc-amounts { flex-direction: column; }
    .calc-btn { flex: none; }
    .logos-row { gap: 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .dash-stat-row { grid-template-columns: 1fr; }
    .quick-actions { flex-direction: column; }
    .quick-actions .quick-action-btn { justify-content: center; }
    .prop-calc-results { grid-template-columns: 1fr; }
    .admin-two-col { grid-template-columns: 1fr; }
    .admin-stat-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar { flex-direction: column; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 2rem; }
    .settings-grid { grid-template-columns: 1fr; }
    .kyc-form-container { max-width: 100%; }
    .notif-page-item { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOPBAR — Notification Bell & KYC Badge
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--gray-400);
    transition: all .2s;
}

.nav-notif-btn:hover { background: var(--gray-100); color: var(--navy-900); }

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 100px;
    font-size: .65rem;
    font-weight: 800;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-kyc-badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    background: #fef3c7;
    color: #b45309;
    text-decoration: none;
    transition: background .2s;
}

.nav-kyc-badge:hover { background: #fde68a; }

.nav-user-link {
    color: var(--gray-600);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-user-link:hover { color: var(--navy-900); }

/* ═══════════════════════════════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.settings-form .form-group { margin-bottom: 16px; }

.settings-form small {
    display: block;
    font-size: .76rem;
    color: var(--gray-400);
    margin-top: 4px;
}

/* Toggle Switches */
.toggle-group { display: flex; flex-direction: column; gap: 0; }

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

.toggle-row:last-child { border-bottom: none; }

.toggle-info { flex: 1; }

.toggle-info strong {
    display: block;
    font-size: .88rem;
    color: var(--navy-900);
    margin-bottom: 2px;
}

.toggle-info span {
    font-size: .78rem;
    color: var(--gray-400);
}

.toggle-input {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--gray-300);
    border-radius: 12px;
    transition: background .2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
    transition: transform .2s;
}

.toggle-input:checked + .toggle-switch {
    background: var(--gold-500);
}

.toggle-input:checked + .toggle-switch::after {
    transform: translateX(20px);
}

/* KYC Status Badges */
.kyc-status-display { text-align: center; padding: 8px 0; }

.kyc-status-display p { font-size: .88rem; color: var(--gray-500); margin-top: 10px; line-height: 1.6; }

.kyc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: .88rem;
    font-weight: 700;
}

.kyc-approved { background: #d1fae5; color: #065f46; }
.kyc-pending { background: #fef3c7; color: #b45309; }
.kyc-rejected { background: #fee2e2; color: #991b1b; }
.kyc-not-started { background: var(--gray-100); color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════════════════════
   NOTIFICATIONS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.notif-page-list { max-width: 800px; }

.notif-page-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: background .15s;
}

.notif-unread {
    background: #fffbeb;
    border-color: #fde68a;
}

.notif-page-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.notif-page-content { flex: 1; }

.notif-page-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 3px;
}

.notif-page-message {
    font-size: .84rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 4px;
}

.notif-page-time {
    font-size: .74rem;
    color: var(--gray-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   KYC FORM
   ═══════════════════════════════════════════════════════════════════════════ */

.kyc-form-container { max-width: 800px; }

.kyc-form .card { margin-bottom: 16px; }

.kyc-form .card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kyc-step-indicator {
    flex-shrink: 0;
}

.kyc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-400);
    font-size: .82rem;
    font-weight: 800;
}

.kyc-review-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
    text-align: left;
}

.kyc-summary-item {
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.kyc-summary-item span {
    display: block;
    font-size: .72rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.kyc-summary-item strong {
    font-size: .9rem;
    color: var(--navy-900);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ROLE BADGES & AGENT TAGS
   ═══════════════════════════════════════════════════════════════════════════ */

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.role-super_admin { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }
.role-manager { background: #dbeafe; color: #1e40af; }
.role-agent { background: #e0e7ff; color: #4338ca; }
.role-lead { background: #fef3c7; color: #b45309; }
.role-client { background: #d1fae5; color: #065f46; }
.role-staff { background: var(--gray-100); color: var(--gray-600); }

.agent-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 600;
    background: #e0e7ff;
    color: #4338ca;
}

.admin-role-tag {
    display: block;
    text-align: center;
    padding: 4px 12px;
    margin: -8px 16px 12px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    background: rgba(201,168,76,.12);
    color: var(--gold-500);
}

.admin-nav-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 12px 16px;
}
.admin-nav-section {
    display: block;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255,255,255,.3);
    padding: 16px 20px 6px;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CALL LOG FORM
   ═══════════════════════════════════════════════════════════════════════════ */

.call-log-form { margin-bottom: 4px; }

.call-log-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.select-sm {
    padding: 6px 10px;
    font-size: .82rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy-900);
}

.input-sm {
    padding: 6px 10px;
    font-size: .82rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy-900);
}

.input-sm:focus, .select-sm:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201,168,76,.1);
}

.inline-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* Call outcome pills */
.status-no_answer { background: var(--gray-100); color: var(--gray-600); }
.status-callback { background: #fef3c7; color: #b45309; }
.status-interested { background: #dbeafe; color: #1e40af; }
.status-not_interested { background: #fee2e2; color: #991b1b; }
.status-converted { background: #d1fae5; color: #065f46; }

/* ═══════════════════════════════════════════════════════════════════════════
   MEDIA MANAGEMENT (Property Edit)
   ═══════════════════════════════════════════════════════════════════════════ */

.edit-prop-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    align-items: start;
}

.media-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.media-gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
}

.media-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity .2s;
}

.media-gallery-item:hover .media-gallery-overlay { opacity: 1; }

.media-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.9);
    color: var(--navy-900);
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.media-btn:hover { background: white; }
.media-btn-danger:hover { background: #fee2e2; color: #dc2626; }

.media-add-form {
    border-top: 1px solid var(--gray-100);
    padding-top: 16px;
    margin-top: 16px;
}

.media-add-form h4 {
    font-size: .82rem;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.media-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.media-video-preview {
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .edit-prop-layout { grid-template-columns: 1fr; }
    .call-log-row { flex-direction: column; align-items: stretch; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   SECONDARY MARKET — Order Book, Place Order, Trades
   ══════════════════════════════════════════════════════════════════════════════ */

.section-divider {
    text-align: center;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 4px;
}
.section-subtitle {
    color: var(--gray-400);
    font-size: .88rem;
}

.market-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 20px;
}

.market-card .card-body {
    max-height: 500px;
    overflow-y: auto;
}

.ob-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 !important;
}

.ob-section {
    flex: 1;
}

.ob-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 6px 16px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ob-head-bid {
    background: rgba(16, 185, 129, .08);
    color: #059669;
}

.ob-head-ask {
    background: rgba(239, 68, 68, .08);
    color: #dc2626;
}

.ob-rows {
    max-height: 200px;
    overflow-y: auto;
}

.ob-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 5px 16px;
    font-size: .82rem;
    position: relative;
    transition: background .15s;
}

.ob-row:hover {
    background: var(--gray-50);
}

.ob-bid::before,
.ob-ask::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: var(--depth);
    opacity: 0.06;
    pointer-events: none;
}

.ob-bid::before {
    right: 0;
    background: #10b981;
}

.ob-ask::before {
    right: 0;
    background: #ef4444;
}

.ob-bid .ob-price { color: #059669; font-weight: 600; }
.ob-ask .ob-price { color: #dc2626; font-weight: 600; }
.ob-shares { text-align: center; }
.ob-total { text-align: right; color: var(--gray-500); font-size: .78rem; }

.ob-mine {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .6rem;
    font-weight: 800;
    color: var(--gold-500);
    background: rgba(201, 168, 76, .12);
    padding: 1px 5px;
    border-radius: 4px;
}

.ob-subhead {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.my-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: .82rem;
}

.my-order-done {
    opacity: .55;
}

.my-order-side {
    font-size: .68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.my-order-bid {
    background: rgba(16, 185, 129, .12);
    color: #059669;
}

.my-order-ask {
    background: rgba(239, 68, 68, .12);
    color: #dc2626;
}

.market-trades-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 8px 16px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    border-bottom: 1px solid var(--gray-100);
}

.market-trade-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 8px 16px;
    font-size: .82rem;
    border-bottom: 1px solid var(--gray-50);
    transition: background .15s;
}

.market-trade-item:hover {
    background: var(--gray-50);
}

.mono {
    font-family: 'SF Mono', 'Cascadia Code', monospace;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    background: var(--gray-50);
    color: var(--navy-900);
    transition: border-color .2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .15);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}


/* ══════════════════════════════════════════════════════════════════════════════
   DOCUMENTS PAGE
   ══════════════════════════════════════════════════════════════════════════════ */

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 20px 24px;
    transition: border-color .2s, box-shadow .2s;
}

.doc-item:hover {
    border-color: var(--gold-500);
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}

.doc-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.doc-info {
    flex: 1;
}

.doc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.doc-meta {
    font-size: .82rem;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.doc-id {
    font-size: .72rem;
    color: var(--gray-400);
    font-family: 'SF Mono', monospace;
}

.empty-state-large {
    text-align: center;
    color: var(--gray-400);
}

.empty-state-large h2 {
    font-size: 1.3rem;
    color: var(--navy-900);
    margin: 12px 0 6px;
}

.empty-state-large p {
    font-size: .9rem;
    max-width: 420px;
    margin: 0 auto;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-900);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    display: none;
}

.toast-error {
    background: #dc2626;
}

@media (max-width: 900px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

.text-muted { color: var(--gray-500); }
.text-gold { color: var(--gold-500); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: .82rem; }
.text-xs { font-size: .72rem; }
.text-lg { font-size: 1.15rem; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

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

@media (max-width: 1024px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-family: var(--sans);
    color: var(--gray-700);
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--navy-500);
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-default { background: var(--gray-100); color: var(--gray-600); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURE PAGE HERO BANNER
   ═══════════════════════════════════════════════════════════════════════════ */

.feature-hero {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    border-radius: var(--radius-xl);
    padding: 48px 48px 40px;
    margin-bottom: 32px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(201,168,76,.06);
    pointer-events: none;
}

.feature-hero .section-eyebrow {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-400);
    margin-bottom: 12px;
}

.feature-hero h1 {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 8px;
}

.feature-hero p {
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 560px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REFERRAL PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.referral-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 4px 4px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.referral-link-box input {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--navy-900);
    outline: none;
}

.referral-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.referral-stat {
    text-align: center;
    padding: 20px;
}

.referral-stat .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-900);
    font-family: var(--mono);
    display: block;
}

.referral-stat .stat-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STEP INDICATOR (How it works mini)
   ═══════════════════════════════════════════════════════════════════════════ */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-500);
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 auto 16px;
}

.step-block {
    text-align: center;
    padding: 28px 20px;
}

.step-block h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.step-block p {
    font-size: .84rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXIT WINDOWS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.ew-status-banner {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    background: var(--white);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-xs);
}

.ew-status-banner.ew-active {
    border-left: 4px solid var(--green-500);
}

.ew-status-banner.ew-upcoming {
    border-left: 4px solid var(--gold-500);
}

.ew-stats-row {
    display: flex;
    gap: 32px;
}

.ew-stat { text-align: center; }

.ew-stat-value {
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-900);
    display: block;
}

.ew-stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.listing-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: border-color .2s, box-shadow .2s;
}

.listing-card:hover {
    border-color: var(--gold-500);
    box-shadow: var(--shadow-xs);
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTO-INVEST THEME CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.theme-card {
    cursor: pointer;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s, transform .2s;
    box-shadow: var(--shadow-xs);
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-card.selected,
.theme-card[style*="var(--gold-500)"] {
    border-color: var(--gold-500);
    background: #fffbf0;
}

.theme-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.theme-card p {
    font-size: .84rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.ai-status-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    padding: 28px;
    margin-top: 20px;
    box-shadow: var(--shadow-xs);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAKEONE PROPERTY CARDS
   ═══════════════════════════════════════════════════════════════════════════ */

.so-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.so-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.so-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.so-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,.25));
}

.so-type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    backdrop-filter: blur(8px);
}

.so-type-badge.off-plan {
    background: rgba(201,168,76,.9);
    color: var(--navy-950);
}

.so-type-badge.ready {
    background: rgba(16,185,129,.9);
    color: var(--white);
}

.so-card-body {
    padding: 20px 24px 24px;
}

.so-card-body h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 4px;
}

.so-location {
    font-size: .84rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.so-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.so-stat {
    display: flex;
    flex-direction: column;
}

.so-stat-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.so-stat-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
    font-family: var(--mono);
}

.so-meta {
    font-size: .78rem;
    color: var(--gray-400);
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAKEONE DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.so-detail-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.so-detail-hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.so-gallery-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.so-gallery-strip img {
    height: 80px;
    width: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s;
}

.so-gallery-strip img:hover { opacity: 1; }

.so-price-card {
    background: var(--white);
    border: 2px solid var(--navy-800);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.so-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.so-price-main {
    font-family: var(--mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy-900);
}

.so-return {
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-500);
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.payment-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
}

.payment-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: .88rem;
}

.payment-table td:last-child {
    font-family: var(--mono);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG / CONTENT HUB
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-card-body {
    padding: 20px 24px 24px;
}

.blog-card-body h3 {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.4;
    margin: 8px 0 6px;
}

.blog-card-body p {
    font-size: .84rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

.blog-meta {
    font-size: .75rem;
    color: var(--gray-400);
    margin-top: 12px;
}

.blog-body {
    line-height: 1.85;
    font-size: .95rem;
    color: var(--gray-700);
}

.blog-body h2 {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--navy-900);
    margin: 32px 0 12px;
}

.blog-body p { margin-bottom: 16px; }

/* ═══════════════════════════════════════════════════════════════════════════
   GLOSSARY
   ═══════════════════════════════════════════════════════════════════════════ */

.glossary-search {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.glossary-search form {
    flex: 1;
    min-width: 260px;
}

.glossary-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.glossary-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    transition: border-color .2s;
}

.glossary-card:hover { border-color: var(--gold-300); }

.glossary-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.glossary-card p {
    font-size: .86rem;
    color: var(--gray-600);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRANSFORMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.transform-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-xs);
}

.transform-card h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--navy-900);
    margin-bottom: 20px;
}

.transform-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.transform-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
}

.transform-img-after {
    border-color: var(--gold-500);
}

.transform-stats {
    display: flex;
    gap: 40px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.transform-stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: block;
    margin-bottom: 2px;
}

.transform-stat-value {
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
}

/* ═══════════════════════════════════════════════════════════════════════════
   VISA / PROGRAM PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

.visa-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.visa-hero h1 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--navy-900);
    line-height: 1.25;
    margin-bottom: 12px;
}

.visa-hero p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.visa-stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}

.visa-stat-value {
    font-family: var(--mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy-900);
    display: block;
}

.visa-stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
    display: block;
}

.benefit-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.benefit-card h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.benefit-card p {
    font-size: .84rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-container { max-width: 800px; margin: 0 auto; }

.legal-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

.legal-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 12px;
}

.legal-card p {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.75;
}

.legal-link-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: var(--shadow-xs);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.legal-link-card:hover {
    border-color: var(--gold-500);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.legal-link-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.legal-link-card p {
    font-size: .84rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INVESTOR REPORT
   ═══════════════════════════════════════════════════════════════════════════ */

.report-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.report-hero h1 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.report-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.report-stat {
    text-align: center;
    padding: 28px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: transform .2s, box-shadow .2s;
}

.report-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.report-stat-value {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-900);
    display: block;
}

.report-stat-label {
    font-size: .72rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
    display: block;
}

@media (max-width: 768px) {
    .report-stat-grid { grid-template-columns: 1fr 1fr; }
    .referral-stat-grid { grid-template-columns: 1fr; }
    .ew-stats-row { flex-wrap: wrap; gap: 16px; }
    .so-stats { grid-template-columns: 1fr; }
    .transform-stats { flex-wrap: wrap; gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN MODAL SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn .2s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.admin-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    width: 90%;
    max-width: 480px;
    animation: modalSlideIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes modalSlideIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--gray-100);
}
.admin-modal-header h3 { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--navy-900); }
.admin-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.admin-modal-close:hover { color: var(--gray-700); }

.admin-modal-body {
    padding: 20px 24px;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--gray-600);
}
.admin-modal-body label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--gray-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN HELP TOOLTIPS
   ═══════════════════════════════════════════════════════════════════════════ */

.help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: .68rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    margin-left: 8px;
    flex-shrink: 0;
}
.help-tip:hover { background: var(--gold-500); color: white; }
.help-tip[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy-900);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.page-subtitle {
    font-size: .86rem;
    line-height: 1.65;
    color: var(--gray-500);
    margin-top: 4px;
    max-width: 700px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE HAMBURGER — APP TOPBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    z-index: 200;
}

.mobile-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: all .3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SIDEBAR — ADMIN
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 200;
    background: var(--navy-800);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: all .3s ease;
}

.admin-sidebar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.admin-sidebar-toggle.active span:nth-child(2) { opacity: 0; }
.admin-sidebar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 40;
}
.admin-sidebar-overlay.open { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   TABLE HORIZONTAL SCROLL (global)
   ═══════════════════════════════════════════════════════════════════════════ */

.card-body:has(.data-table),
.card:has(> .data-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table { min-width: 600px; }

/* ═══════════════════════════════════════════════════════════════════════════
   CHAT LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    min-height: 500px;
}

.chat-conv-list {
    overflow-y: auto;
    max-height: 600px;
}

.chat-messages {
    height: min(450px, 60vh);
    overflow-y: auto;
    padding: 16px;
}

.chat-user-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .mobile-nav-toggle { display: flex; }

    .topbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 0;
    }

    .topbar-inner .brand { flex: 1; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        padding: 12px 0 4px;
        border-top: 1px solid rgba(255,255,255,.08);
        gap: 0;
    }

    .nav-links.mobile-open { display: flex; }

    .nav-links a {
        padding: 12px 16px;
        font-size: .88rem;
        border-radius: 0;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,.03);
        padding: 0 0 0 16px;
        border-radius: 0;
    }

    .nav-dropdown-menu::before { display: none; }

    .nav-right {
        display: none;
        flex-wrap: wrap;
        width: 100%;
        order: 4;
        padding: 8px 0 4px;
        border-top: 1px solid rgba(255,255,255,.08);
        gap: 12px;
        justify-content: flex-start;
    }

    .nav-right.mobile-open { display: flex; }

    .nav-user-link { font-size: .84rem; }

    /* Admin sidebar — off-canvas drawer */
    .admin-sidebar-toggle { display: flex; }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 60;
        width: 260px;
    }

    .admin-sidebar.open { transform: translateX(0); }

    .admin-main {
        margin-left: 0;
        padding: 60px 16px 20px;
    }

    /* Chat responsive */
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-conv-list { max-height: 250px; }

    .chat-messages { height: min(350px, 50vh); }
}

@media (max-width: 480px) {
    .topbar-inner { padding: 10px 12px; }
    .brand { font-size: .78rem; letter-spacing: 2px; }
    .nav-balance { font-size: .8rem; }
    .admin-main { padding: 56px 10px 16px; }
    .page-header h1 { font-size: 1.4rem; }
    .admin-page-header h1 { font-size: 1.3rem; }
    .card { border-radius: 8px; }
    .data-table { min-width: 500px; font-size: .8rem; }
    .data-table th, .data-table td { padding: 8px 10px; }
}

/* ── Live WebSocket toasts ─────────────────────────────────────────────────── */
.live-toast-stack {
    position: fixed;
    top: 72px;
    right: 16px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.live-toast-stack .live-toast { pointer-events: auto; }

.live-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--navy-900, #0a1628);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 168, 76, 0.25);
    animation: liveToastIn 0.35s ease;
    font-size: 0.86rem;
    line-height: 1.45;
}
.live-toast--gold {
    border-color: rgba(201, 168, 76, 0.55);
    background: linear-gradient(135deg, #0f1f38 0%, #0a1628 100%);
}
.live-toast-msg { flex: 1; min-width: 0; }
.live-toast-link {
    color: var(--gold-400, #d4b86a);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.live-toast-link:hover { text-decoration: underline; }
.live-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.live-toast-close:hover { color: #fff; }
.live-toast-out { opacity: 0; transform: translateX(12px); transition: opacity 0.25s, transform 0.25s; }

@keyframes liveToastIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Property update timeline */
.property-update-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--gray-100, #eee);
    margin-left: 8px;
}
.property-update-item {
    position: relative;
    padding: 0 0 20px 20px;
    margin: 0;
}
.property-update-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-500, #c9a84c);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--gray-200, #e5e7eb);
}
.property-update-type {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-600, #4b5563);
    margin-bottom: 6px;
}
.property-update-type--valuation { background: rgba(201, 168, 76, 0.15); color: #8a7028; }
.property-update-type--occupancy { background: rgba(16, 185, 129, 0.12); color: #047857; }
.property-update-type--maintenance { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.property-update-body strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.property-update-body p { margin: 0 0 8px; font-size: 0.84rem; color: var(--gray-500, #6b7280); }
.property-update-body time { font-size: 0.75rem; color: var(--gray-400, #9ca3af); }
