/* ==========================================================================
   NEXUS Algo Trading - Mobile-First Web Application Design System
   Strict Palette: #0F0E47, #272757, #505081, #8686AC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --bg-deep: #0F0E47;
    --bg-surface: #272757;
    --card-bg: #505081;
    --card-bg-alpha: rgba(80, 80, 129, 0.45);
    --card-border: rgba(134, 134, 172, 0.3);
    --card-border-glow: rgba(155, 156, 255, 0.4);
    
    --text-primary: #FFFFFF;
    --text-muted: #8686AC;
    --text-highlight: #A5A6F6;
    --border-subtle: #8686AC;
    
    --accent-purple: #706BF8;
    --accent-glow: #9B9CFF;
    --accent-cyan: #5DE0E6;
    --accent-success: #00F5A0;
    --accent-warning: #FFD166;
    --accent-danger: #FF6B8B;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 10px 30px rgba(15, 14, 71, 0.6);
    --shadow-glow: 0 0 25px rgba(112, 107, 248, 0.35);
    --shadow-emerald: 0 0 20px rgba(0, 245, 160, 0.25);
    
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(112, 107, 248, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(93, 224, 230, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-subtle);
}

/* Mobile Application Container */
.app-viewport-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    background-color: var(--bg-deep);
}

.mobile-shell {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: rgba(22, 22, 58, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 84px; /* Space for bottom nav */
    border-left: 1px solid rgba(134, 134, 172, 0.2);
    border-right: 1px solid rgba(134, 134, 172, 0.2);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
    .mobile-shell {
        border-left: none;
        border-right: none;
        box-shadow: none;
    }
}

/* Mobile App Header */
.app-header {
    background: rgba(15, 14, 71, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(134, 134, 172, 0.25);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #706BF8 0%, #272757 100%);
    border: 1px solid var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 0 16px rgba(112, 107, 248, 0.4);
}
.brand-name {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #FFFFFF 0%, #A5A6F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.network-badge {
    background: rgba(0, 245, 160, 0.12);
    border: 1px solid rgba(0, 245, 160, 0.4);
    color: var(--accent-success);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* User Header Stats */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg-alpha);
    border: 1px solid var(--border-subtle);
    padding: 4px 10px 4px 6px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: var(--transition-fast);
}
.user-avatar-btn:hover {
    border-color: var(--accent-glow);
    background: rgba(80, 80, 129, 0.7);
}
.avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), #272757);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* Bottom Navigation Bar (Mobile App Core) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(15, 14, 71, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(134, 134, 172, 0.25);
    border-left: 1px solid rgba(134, 134, 172, 0.2);
    border-right: 1px solid rgba(134, 134, 172, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 8px 10px 14px;
    z-index: 100;
}

@media (max-width: 480px) {
    .bottom-nav {
        left: 0;
        transform: none;
        border-left: none;
        border-right: none;
    }
}
.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 14px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
}
.nav-tab-item .nav-icon {
    font-size: 20px;
    transition: transform var(--transition-fast);
}
.nav-tab-item:hover {
    color: var(--text-highlight);
}
.nav-tab-item.active {
    color: #FFFFFF;
    background: rgba(112, 107, 248, 0.22);
}
.nav-tab-item.active .nav-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}
.nav-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 14px;
    height: 3px;
    background: var(--accent-success);
    border-radius: 3px;
    box-shadow: 0 0 6px var(--accent-success);
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--card-bg-alpha);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.glass-card:hover {
    border-color: var(--card-border-glow);
}
.glass-card.highlight {
    border-color: var(--accent-purple);
    box-shadow: var(--shadow-glow);
}
.glass-card.highlight-gold {
    border-color: var(--accent-warning);
    box-shadow: 0 0 25px rgba(255, 209, 102, 0.25);
}

/* Typography & Layout */
.app-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.section-title span.badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-highlight);
    background: rgba(80, 80, 129, 0.5);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Wallet Card (High-Impact Hero) */
.wallet-hero-card {
    background: linear-gradient(135deg, rgba(39, 39, 87, 0.9) 0%, rgba(80, 80, 129, 0.7) 100%);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-xl);
    padding: 22px;
    position: relative;
    box-shadow: 0 15px 35px rgba(15, 14, 71, 0.8), 0 0 25px rgba(112, 107, 248, 0.25);
}
.wallet-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(112, 107, 248, 0.3) 0%, transparent 70%);
    pointer-events: none;
}
.wallet-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wallet-balance-amount {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 8px 0 16px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.wallet-currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-success);
}
.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #706BF8 0%, #4D46E5 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(112, 107, 248, 0.4);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(112, 107, 248, 0.6);
}
.btn-success {
    background: linear-gradient(135deg, #00F5A0 0%, #00C880 100%);
    color: #0F0E47;
    box-shadow: 0 4px 15px rgba(0, 245, 160, 0.3);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 245, 160, 0.5);
}
.btn-outline {
    background: rgba(80, 80, 129, 0.3);
    border: 1px solid var(--border-subtle);
    color: var(--text-highlight);
}
.btn-outline:hover {
    background: rgba(80, 80, 129, 0.6);
    border-color: var(--accent-glow);
    color: #fff;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* Quick Metrics Grid */
.metrics-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.metric-box {
    background: rgba(80, 80, 129, 0.35);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.metric-box .metric-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.metric-box .metric-val {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}
.metric-box .metric-sub {
    font-size: 11px;
    color: var(--accent-success);
    font-weight: 600;
}

/* 3X Capping Progress Bar */
.capping-card {
    background: rgba(39, 39, 87, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.capping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.capping-progress-bg {
    width: 100%;
    height: 12px;
    background: rgba(15, 14, 71, 0.8);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid rgba(134, 134, 172, 0.3);
    position: relative;
    margin-bottom: 10px;
}
.capping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #706BF8 0%, #00F5A0 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.5);
    transition: width 0.6s ease;
}
.capping-splits {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}
.split-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.split-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-working { background: var(--accent-purple); }
.dot-non-working { background: var(--accent-success); }

/* 50/50 Leg Balance Gauge */
.leg-balance-card {
    background: rgba(39, 39, 87, 0.75);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.leg-compare-bar {
    width: 100%;
    height: 14px;
    background: var(--bg-deep);
    border-radius: var(--radius-full);
    display: flex;
    overflow: hidden;
    margin: 12px 0;
    border: 1px solid rgba(134, 134, 172, 0.3);
}
.leg-fill-main {
    background: var(--accent-purple);
    box-shadow: 0 0 8px rgba(112, 107, 248, 0.5);
    transition: width 0.4s ease;
}
.leg-fill-other {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(93, 224, 230, 0.5);
    transition: width 0.4s ease;
}

/* Package Tiers Cards */
.package-card {
    background: rgba(80, 80, 129, 0.35);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all var(--transition-fast);
    position: relative;
}
.package-card.active-user-tier {
    border-color: var(--accent-success);
    background: rgba(0, 245, 160, 0.08);
}
.package-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.package-badge-tier {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    letter-spacing: 0.5px;
}
.package-roi-highlight {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-success);
}

/* Forms & Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-highlight);
    display: flex;
    justify-content: space-between;
}
.form-control {
    background: rgba(15, 14, 71, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 12px rgba(112, 107, 248, 0.3);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 14, 71, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
}
.modal-overlay.active {
    display: flex;
}
.modal-dialog {
    background: #272757;
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-shadow: var(--shadow-glow);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Tables & Lists */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.custom-table th {
    background: rgba(15, 14, 71, 0.6);
    color: var(--text-highlight);
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    border-bottom: 1px solid var(--card-border);
}
.custom-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(134, 134, 172, 0.15);
    color: #fff;
}
.badge-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}
.badge-status.completed, .badge-status.active {
    background: rgba(0, 245, 160, 0.15);
    color: var(--accent-success);
    border: 1px solid rgba(0, 245, 160, 0.3);
}
.badge-status.pending {
    background: rgba(255, 209, 102, 0.15);
    color: var(--accent-warning);
    border: 1px solid rgba(255, 209, 102, 0.3);
}
.badge-status.rejected, .badge-status.blocked {
    background: rgba(255, 107, 139, 0.15);
    color: var(--accent-danger);
    border: 1px solid rgba(255, 107, 139, 0.3);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success {
    background: rgba(0, 245, 160, 0.15);
    border: 1px solid var(--accent-success);
    color: var(--accent-success);
}
.alert-error {
    background: rgba(255, 107, 139, 0.15);
    border: 1px solid var(--accent-danger);
    color: #ffb4c3;
}

/* Genealogy Tree Styles */
.tree-container {
    padding: 20px 10px;
    overflow-x: auto;
    text-align: center;
}
.tree-node-card {
    display: inline-block;
    background: rgba(80, 80, 129, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 170px;
    margin: 8px;
    text-align: center;
    transition: transform var(--transition-fast);
}
.tree-node-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-glow);
}

/* ===================================================
   MOBILE APP MENU & PROFILE STYLES
   =================================================== */
.menu-hero-card {
    background: linear-gradient(135deg, rgba(112, 107, 248, 0.25) 0%, rgba(39, 39, 87, 0.8) 100%);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.menu-hero-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 245, 160, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.menu-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.menu-avatar-wrap {
    position: relative;
}
.menu-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), #272757);
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 16px rgba(93, 224, 230, 0.35);
}
.menu-user-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.menu-user-email {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Mobile App Sub-Menu List */
.menu-list-card {
    background: rgba(22, 22, 58, 0.85);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}
.menu-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(134, 134, 172, 0.12);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    user-select: none;
    text-decoration: none;
    color: inherit;
}
.menu-list-item:last-child {
    border-bottom: none;
}
.menu-list-item:hover, .menu-list-item:active {
    background: rgba(112, 107, 248, 0.18);
}
.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.menu-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.menu-item-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.menu-item-arrow {
    color: var(--text-muted);
    font-size: 13px;
    transition: transform var(--transition-fast);
}
.menu-list-item:hover .menu-item-arrow {
    color: var(--accent-cyan);
    transform: translateX(3px);
}

/* Sub-Page Topbar with Back Button */
.menu-page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0 14px 0;
    margin-bottom: 6px;
}
.menu-back-btn {
    background: rgba(80, 80, 129, 0.35);
    border: 1px solid var(--border-subtle);
    color: var(--accent-cyan);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}
.menu-back-btn:hover {
    background: rgba(93, 224, 230, 0.2);
    border-color: var(--accent-cyan);
    color: #fff;
    transform: translateX(-2px);
}
.menu-page-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.menu-sub-page {
    animation: menuPageSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes menuPageSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quick Action Tiles in Menu */
.menu-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.menu-quick-tile {
    background: rgba(39, 39, 87, 0.7);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}
.menu-quick-tile:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    background: rgba(80, 80, 129, 0.4);
}
.menu-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Crypto Address Display Box */
.address-display-box {
    background: rgba(15, 14, 71, 0.8);
    border: 1px dashed var(--accent-cyan);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}
.address-mono-text {
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-size: 12px;
    color: #5DE0E6;
    word-break: break-all;
    line-height: 1.4;
}

/* Password Field Wrapper */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrap .form-control {
    padding-right: 44px;
    width: 100%;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}
.password-toggle-btn:hover {
    color: #fff;
}

/* ===================================================
   FAQ ACCORDION & SUPPORT STYLES
   =================================================== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: rgba(15, 14, 71, 0.7);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}
.faq-item.active {
    border-color: var(--accent-glow);
    background: rgba(39, 39, 87, 0.7);
}
.faq-question {
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    user-select: none;
    gap: 10px;
}
.faq-question:hover {
    color: var(--accent-cyan);
}
.faq-chevron {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}
.faq-answer {
    padding: 0 15px 14px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-highlight);
    display: none;
    border-top: 1px solid rgba(134, 134, 172, 0.15);
    padding-top: 12px;
}
.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Support Channel Cards */
.support-channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.support-channel-card {
    background: rgba(15, 14, 71, 0.75);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}
.support-channel-card:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    background: rgba(80, 80, 129, 0.4);
}
.support-channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.support-channel-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.support-channel-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Mobile-App Authentication System (Login, Register & Password Recovery)
   ========================================================================== */
.auth-app-page {
    padding: 10px 0 30px;
}
.auth-app-shell {
    width: 100%;
    margin: 0 auto;
}
.auth-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(80, 80, 129, 0.35);
    border: 1px solid var(--card-border);
    transition: all 0.2s;
}
.auth-back-link:hover {
    color: #fff;
    background: var(--accent-purple);
    border-color: var(--accent-glow);
}
.auth-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent-success);
    font-weight: 800;
    letter-spacing: 0.5px;
    background: rgba(0, 245, 160, 0.12);
    border: 1px solid rgba(0, 245, 160, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
.auth-app-card {
    background: linear-gradient(180deg, rgba(39, 39, 87, 0.95) 0%, rgba(15, 14, 71, 0.98) 100%);
    backdrop-filter: blur(28px);
    border: 1px solid var(--card-border-glow);
    border-radius: var(--radius-xl);
    padding: 24px 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(112, 107, 248, 0.25);
    position: relative;
    overflow: hidden;
}
.auth-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #706BF8, #00F5A0, #5DE0E6);
}
.auth-app-brand {
    text-align: center;
    margin-bottom: 18px;
}
.auth-brand-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: linear-gradient(135deg, #706BF8, #272757);
    border: 1px solid var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(112, 107, 248, 0.45);
}
.auth-app-title {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.auth-app-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}
.auth-segmented-tabs {
    display: flex;
    background: rgba(15, 14, 71, 0.9);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 20px;
    position: relative;
}
.auth-segment-btn {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.auth-segment-btn.active {
    background: linear-gradient(135deg, #706BF8 0%, #4D46E5 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(112, 107, 248, 0.4);
}
.auth-segment-btn:not(.active):hover {
    color: #FFFFFF;
}
.auth-input-group {
    margin-bottom: 14px;
    position: relative;
}
.auth-input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-highlight);
    margin-bottom: 6px;
}
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
}
.auth-input-field {
    width: 100%;
    background: rgba(15, 14, 71, 0.85);
    border: 1px solid rgba(134, 134, 172, 0.35);
    border-radius: var(--radius-md);
    padding: 12px 42px 12px 38px;
    color: #FFFFFF;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s;
}
.auth-input-field:focus {
    border-color: var(--accent-glow);
    background: rgba(15, 14, 71, 0.98);
    box-shadow: 0 0 16px rgba(112, 107, 248, 0.35);
}
.auth-input-field:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: var(--accent-success);
}
.auth-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.auth-eye-btn:hover {
    color: var(--accent-glow);
}
.auth-submit-btn {
    width: 100%;
    padding: 13px;
    font-size: 14px;
    font-weight: 800;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #00F5A0 0%, #00C880 100%);
    color: #0F0E47;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 245, 160, 0.35);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    font-family: inherit;
}
.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 245, 160, 0.5);
}
.auth-submit-btn.primary {
    background: linear-gradient(135deg, #706BF8 0%, #4D46E5 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 25px rgba(112, 107, 248, 0.4);
}
.auth-submit-btn.primary:hover {
    box-shadow: 0 12px 30px rgba(112, 107, 248, 0.6);
}
.auth-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 12px;
    background: rgba(15, 14, 71, 0.6);
    border-radius: var(--radius-full);
    border: 1px solid rgba(134, 134, 172, 0.15);
}
.auth-switch-link {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}
.auth-switch-link a {
    color: var(--accent-success);
    font-weight: 800;
    text-decoration: none;
    margin-left: 4px;
}
.auth-switch-link a:hover {
    text-decoration: underline;
}
.auth-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .auth-grid-2-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
/* ==========================================================================
   Quantitative Terminal, Corporate Profile & Profit Engine Styles
   ========================================================================== */
.quant-terminal-box {
    background: #090924;
    border: 1px solid rgba(93, 224, 230, 0.35);
    border-radius: var(--radius-lg);
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 14, 71, 0.9), 0 0 20px rgba(93, 224, 230, 0.15);
}
.quant-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(134, 134, 172, 0.2);
    margin-bottom: 12px;
}
.quant-status-beacon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-success);
    letter-spacing: 0.5px;
}
.quant-beacon-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-success);
    animation: beaconPulse 1.8s infinite;
}
@keyframes beaconPulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--accent-success); }
    100% { transform: scale(0.95); opacity: 0.7; }
}
.quant-node-tag {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(80, 80, 129, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(134, 134, 172, 0.2);
}
.quant-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
    text-align: center;
}
.quant-kpi-item {
    background: rgba(15, 14, 71, 0.7);
    border: 1px solid rgba(134, 134, 172, 0.15);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
}
.quant-kpi-val {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    display: block;
}
.quant-kpi-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.quant-trade-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: hidden;
}
.quant-trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(22, 22, 58, 0.85);
    border: 1px solid rgba(134, 134, 172, 0.15);
    border-left: 3px solid var(--accent-success);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 11px;
    animation: tradeSlideIn 0.35s ease-out;
}
@keyframes tradeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.quant-trade-pair {
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}
.quant-trade-route {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}
.quant-trade-profit {
    text-align: right;
}
.quant-profit-val {
    color: var(--accent-success);
    font-weight: 800;
    font-size: 12px;
}
.quant-trade-ms {
    font-size: 9px;
    color: var(--accent-cyan);
}
.strategy-card {
    background: linear-gradient(135deg, rgba(39, 39, 87, 0.8) 0%, rgba(15, 14, 71, 0.9) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: relative;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.strategy-card:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
}
.strategy-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}
.company-credential-card {
    background: rgba(15, 14, 71, 0.7);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.company-cred-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.step-number-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(93, 224, 230, 0.4);
}

/* ==========================================================================
   Live Global Payouts Ticker & Real-Time Yield Streaming
   ========================================================================== */
.live-payout-ticker-bar {
    display: flex;
    align-items: center;
    background: rgba(10, 9, 36, 0.95);
    border-bottom: 1px solid rgba(0, 245, 160, 0.25);
    height: 32px;
    overflow: hidden;
    position: relative;
    z-index: 90;
    font-size: 11px;
}
.live-payout-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 245, 160, 0.2), rgba(15, 14, 71, 0.8));
    border-right: 1px solid rgba(0, 245, 160, 0.3);
    color: var(--accent-success);
    font-weight: 800;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
    z-index: 2;
}
.live-payout-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: marqueeScroll 180s linear infinite;
    gap: 24px;
    padding-left: 12px;
}
.live-payout-track:hover {
    animation-play-state: paused;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.payout-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
    transition: all 0.3s ease;
}
.payout-ticker-item.payout-ticker-real {
    background: rgba(0, 245, 160, 0.12);
    border: 1px solid rgba(0, 245, 160, 0.4);
    border-radius: 12px;
    padding: 2px 8px;
    box-shadow: 0 0 10px rgba(0, 245, 160, 0.2);
}
@keyframes highlightNewPayout {
    0% { transform: scale(0.9); box-shadow: 0 0 18px #00F5A0; }
    50% { transform: scale(1.08); box-shadow: 0 0 24px #00F5A0; }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 245, 160, 0.2); }
}
.payout-ticker-user {
    color: #fff;
    font-weight: 700;
}
.payout-ticker-amount {
    color: var(--accent-success);
    font-weight: 800;
}
.payout-ticker-type {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(80, 80, 129, 0.3);
    color: var(--accent-cyan);
    border: 1px solid rgba(93, 224, 230, 0.2);
}
.payout-ticker-type.payout-type-real {
    background: rgba(0, 245, 160, 0.22) !important;
    color: #00F5A0 !important;
    border-color: rgba(0, 245, 160, 0.5) !important;
    font-weight: 800;
}

/* Real-Time Yield Streaming Card */
.yield-streamer-card {
    background: linear-gradient(135deg, rgba(22, 22, 65, 0.95) 0%, rgba(10, 9, 45, 0.98) 100%);
    border: 1px solid rgba(0, 245, 160, 0.35);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 245, 160, 0.1);
}
.yield-streamer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan), var(--accent-success));
}
.yield-streamer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.streamer-beacon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.streamer-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.streamer-micro {
    font-size: 14px;
    color: var(--accent-cyan);
    font-weight: 700;
}
.streamer-currency {
    font-size: 12px;
    color: var(--accent-success);
    font-weight: 800;
    margin-left: 4px;
}
.streamer-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(134, 134, 172, 0.2);
}
