/* Bitzen Core Premium Design System - Glassmorphism & Purple Fintech Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-base: #08070d;
    --bg-canvas: #0c0a13;
    --bg-surface: #12101c;
    --bg-surface-elevated: #1b172a;
    --card-bg: rgba(20, 18, 30, 0.55);
    --card-border: rgba(139, 92, 246, 0.08);
    --card-border-glow: rgba(139, 92, 246, 0.2);
    --border: rgba(139, 92, 246, 0.06);
    --border-hover: rgba(139, 92, 246, 0.15);
    --glass: rgba(20, 18, 30, 0.65);
    
    --primary: #8b5cf6;      /* Electric Purple */
    --primary-glow: rgba(139, 92, 246, 0.35);
    --secondary: #ec4899;    /* Electric Pink / Magenta */
    --accent: #f59e0b;       /* Gold/Amber */
    --success: #10b981;      /* Emerald Green */
    --danger: #ef4444;       /* Rose Red */
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --text-primary: #f8fafc;  /* Ice White */
    --text-secondary: #94a3b8;/* Slate Muted */
    --text-muted: #64748b;    /* Dark Muted */
    
    /* Effects */
    --glass-blur: blur(16px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* Light Mode Theme Overrides */
body.light-theme {
    --bg-base: #f8fafc;        /* slate-50 */
    --bg-canvas: #ffffff;
    --bg-surface: #f1f5f9;
    --bg-surface-elevated: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(139, 92, 246, 0.08);
    --border: rgba(139, 92, 246, 0.08);
    --border-hover: rgba(139, 92, 246, 0.18);
    --glass: rgba(255, 255, 255, 0.7);
    --text-primary: #0f172a;    /* slate-900 */
    --text-secondary: #475569;  /* slate-600 */
    --text-muted: #94a3b8;      /* slate-400 */
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.light-theme {
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(203, 213, 225, 0.2) 0px, transparent 70%) !important;
}

body.light-theme .form-control {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 92, 246, 0.12);
    color: #0f172a;
}
body.light-theme .form-control:focus {
    background: #ffffff;
}

body.light-theme .custom-table th {
    background: rgba(241, 245, 249, 0.9);
    color: #475569;
}
body.light-theme .custom-table tr:hover td {
    background: rgba(15, 23, 42, 0.02);
}

body.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.85);
    border-right-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .sidebar-menu-item.active a,
body.light-theme .sidebar-menu-item a:hover {
    background: rgba(139, 92, 246, 0.05);
}
body.light-theme .sidebar-user {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15,23,42,0.04);
}
body.light-theme .topbar {
    background: rgba(255, 255, 255, 0.6);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .address-copy-widget {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(15, 23, 42, 0.08);
}
body.light-theme .toast {
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 10px 40px rgba(15,23,42,0.15);
}

/* Global Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(15, 10, 25, 0.3) 0px, transparent 70%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Base Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}
a:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Premium Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Card Component */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    z-index: 1;
}
.glass-card.hoverable:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.08);
}

/* Header Text / Glowing Text */
.glow-text {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    outline: none;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5), 0 0 15px rgba(236, 72, 153, 0.2);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}
.btn-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #d97706) 100%;
    color: #020617;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

/* Elegant Dynamic Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition-smooth);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 10px rgba(139, 92, 246, 0.1);
    background: rgba(15, 23, 42, 0.85);
}
.form-control::placeholder {
    color: var(--text-muted);
}
.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Custom Table Components */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.custom-table th {
    background: rgba(20, 18, 30, 0.6);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}
.custom-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-size: 13.5px;
    transition: var(--transition-smooth);
}
.custom-table tr {
    transition: var(--transition-smooth);
}
.custom-table tr:hover td {
    background: rgba(139, 92, 246, 0.02);
}

/* Badge System */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.badge-active, .badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-inactive, .badge-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Interactive Notifications / Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}
.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
}
.toast.toast-error {
    border-color: var(--danger);
}
.toast.toast-success {
    border-color: var(--success);
}

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

/* Alert Boxes */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}
.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* Responsive Input Group Component */
.input-group-responsive {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.input-group-responsive .form-control {
    flex-grow: 1;
}
.input-group-responsive .btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 10px;
}

/* Landing Page Responsive Layout */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.mobile-nav-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    z-index: 110;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.mobile-nav-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .mobile-nav-toggle-btn {
        display: block;
    }
    header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(12, 10, 19, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--card-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 40px;
        z-index: 100;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    }
    header nav.open {
        right: 0;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.calculator-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

/* Summary Banner */
.summary-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.summary-text-block h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.summary-text-block p {
    color: var(--text-secondary);
}
.summary-total-glow {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.summary-total-glow span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-shadow: none;
    font-weight: 400;
}
@media (max-width: 768px) {
    .summary-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    .summary-total-glow {
        align-items: flex-start;
        font-size: 1.8rem;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.feature-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.feature-pill-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.feature-pill-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.feature-pill-highlight {
    color: var(--primary);
}
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Quick Select Row */
.quick-select-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}
.btn-quick {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}
.btn-quick:hover, .btn-quick.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--text-primary);
}
@media (max-width: 480px) {
    .quick-select-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Results Display */
.results-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.result-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.result-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}
.result-card.highlight .result-card-value {
    color: var(--success);
}
.result-card.danger .result-card-value {
    color: var(--danger);
}
@media (max-width: 480px) {
    .results-display {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Tree Builder Layout */
.tree-builder-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}
.tree-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.tree-node-input {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: var(--transition-smooth);
}
.tree-node-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Unlocks Tracker */
.unlock-progress-container {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-surface-elevated);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.5s ease-out;
}
.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Level Income List */
.level-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.level-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.5fr 1fr;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}
.level-row.locked {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.01);
}
.level-row.unlocked {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.02);
}
.level-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}
.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.unlocked {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.status-badge.locked {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.level-percentage {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    padding-right: 1.5rem;
}
.level-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.level-income-val {
    font-weight: 800;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}
.level-row.unlocked .level-income-val {
    color: var(--success);
}
@media (max-width: 600px) {
    .level-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 1rem;
        align-items: center;
    }
    .level-name {
        grid-column: 1 / 2;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .status-badge {
        grid-column: 2 / 3;
        justify-self: end;
    }
    .level-percentage {
        grid-column: 1 / 2;
        text-align: left;
        padding-right: 0;
        font-size: 12px;
    }
    .level-income-val {
        grid-column: 2 / 3;
        text-align: right;
        font-size: 14px;
        justify-self: end;
    }
}

/* Info FAQ Boxes */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.info-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}
.info-box h3 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
}
.info-box ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.info-box li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.info-box li svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Footer Section */
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}
footer a {
    color: var(--primary);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Utilities */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dot Grid Background Overlay */
.grid-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(139, 92, 246, 0.04) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -1;
}

/* Premium Timeline Layout */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}
.timeline-dot {
    position: absolute;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3.5px solid var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
    z-index: 10;
}
.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
}
.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
}
.timeline-content {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}
.timeline-content:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}
.timeline-step {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
@media (max-width: 768px) {
    .timeline-track {
        left: 20px;
        transform: none;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 45px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-dot {
        left: 11px !important;
    }
}

/* Premium FAQ Accordions */
.accordion-container {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.accordion-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
}
.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}
.accordion-header i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: var(--primary);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(139, 92, 246, 0.01);
}
.accordion-content-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Card Inline Padding Overrides & Visual Spacing on Mobile */
@media (max-width: 600px) {
    .glass-card {
        border-radius: 14px;
    }
    /* Select cards with style attributes defining 24px padding and scale down */
    .glass-card[style*="padding: 24px"], 
    .glass-card[style*="padding:24px"] {
        padding: 16px !important;
    }
    .tree-builder-card {
        padding: 12px !important;
    }
}

@media (max-width: 480px) {
    .accordion-header {
        padding: 1rem 1.15rem;
        font-size: 0.95rem;
    }
    .accordion-content-inner {
        padding: 0 1.15rem 1.15rem 1.15rem;
        font-size: 0.88rem;
    }
}

/* Hero Section Responsiveness overrides */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.25 !important;
    }
    .hero-desc {
        font-size: 100% !important;
        padding: 0 10px;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
}

/* Premium Investment Input Group Styling */
.investment-input-wrapper {
    position: relative;
    width: 100%;
}
.investment-input-wrapper .currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    pointer-events: none;
    z-index: 5;
}
.investment-number-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 20px 14px 44px; /* Left-padded to accommodate currency symbol */
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
    outline: none;
}
.investment-number-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 10px rgba(139, 92, 246, 0.1);
    background: rgba(15, 23, 42, 0.85);
}

/* Hide default browser up/down number spin buttons */
.investment-number-input::-webkit-outer-spin-button,
.investment-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.investment-number-input[type=number] {
    -moz-appearance: textfield;
}

/* Responsive Table Mobile Card Layout Override */
@media (max-width: 768px) {
    .custom-table {
        display: block !important;
        width: 100% !important;
    }
    .custom-table thead {
        display: none !important;
    }
    .custom-table tbody {
        display: block !important;
        width: 100% !important;
    }
    .custom-table tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: 16px !important;
        border: 1px solid var(--card-border) !important;
        background: rgba(20, 18, 30, 0.3) !important;
        border-radius: 12px !important;
        padding: 8px !important;
        box-sizing: border-box !important;
    }
    body.light-theme .custom-table tr {
        background: rgba(255, 255, 255, 0.5) !important;
        border-color: rgba(139, 92, 246, 0.08) !important;
    }
    .custom-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02) !important;
        padding: 10px 12px !important;
        text-align: right !important;
        font-size: 13px !important;
        box-sizing: border-box !important;
        min-height: 40px !important;
        word-break: break-all !important;
    }
    body.light-theme .custom-table td {
        border-bottom-color: rgba(15, 23, 42, 0.04) !important;
    }
    .custom-table td:last-child {
        border-bottom: none !important;
    }
    .custom-table td::before {
        content: attr(data-label) !important;
        font-weight: 700 !important;
        color: var(--text-secondary) !important;
        text-transform: uppercase !important;
        font-size: 10px !important;
        text-align: left !important;
        margin-right: 15px !important;
        letter-spacing: 0.03em !important;
        flex-shrink: 0 !important;
    }
}

/* Stats Grid Responsive scaling */
@media (max-width: 600px) {
    .grid-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }
    .stat-card {
        padding: 14px 12px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .stat-card .stat-icon {
        align-self: flex-end !important;
        margin-top: -15px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 15px !important;
    }
    .stat-value {
        font-size: 16px !important;
    }
    .stat-label {
        font-size: 9px !important;
        margin-bottom: 4px !important;
    }
}

@media (max-width: 480px) {
    .grid-stats {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .stat-card {
        padding: 16px 20px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .stat-card .stat-icon {
        align-self: center !important;
        margin-top: 0 !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
    .stat-value {
        font-size: 18px !important;
    }
    .stat-label {
        font-size: 10px !important;
        margin-bottom: 6px !important;
    }
}

/* Responsive Copy / Info Rows */
.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 10px;
    gap: 10px;
}
body.light-theme .payment-row {
    background: rgba(15, 23, 42, 0.01);
    border-color: rgba(15, 23, 42, 0.04);
}
@media (max-width: 480px) {
    .payment-row {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
        padding: 12px;
    }
    .payment-row div {
        text-align: center;
        width: 100%;
    }
    .payment-row strong {
        display: block;
        word-break: break-all;
        margin-top: 4px;
    }
    .payment-row button {
        width: 100%;
        margin-top: 5px;
    }
}

