/* Core Design System Tokens */
:root {
    --bg-base: #0b0f19;
    --bg-surface: rgba(17, 24, 39, 0.6);
    --bg-surface-solid: #111827;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    --border-color-glow: rgba(16, 185, 129, 0.25);
    
    /* Groww Accents */
    --color-primary: #00d09c; /* Groww Green */
    --color-primary-glow: rgba(0, 208, 156, 0.15);
    --color-primary-hover: #00b889;
    
    --color-ai: #06b6d4; /* AI Cyan */
    --color-ai-glow: rgba(6, 182, 212, 0.15);
    
    /* Market Status */
    --color-success: #00d09c;
    --color-success-bg: rgba(0, 208, 156, 0.08);
    --color-danger: #eb5b3c;
    --color-danger-bg: rgba(235, 91, 60, 0.08);
    
    /* Typography colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Fonts */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-base: #f4f6fa;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-solid: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(0, 0, 0, 0.15);
    --border-color-glow: rgba(0, 208, 156, 0.2);
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #8c93a3;
    
    --color-primary-glow: rgba(0, 208, 156, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Ambient Blur */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow-bg::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 208, 156, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(100px);
}
.glow-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 45%;
    height: 45%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(120px);
}

[data-theme="light"] .glow-bg::before {
    background: radial-gradient(circle, rgba(0, 208, 156, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Account Blocked Overlay Screen */
.blocked-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.95);
    backdrop-filter: blur(25px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blocked-card {
    background: var(--bg-surface-solid);
    border: 2px solid var(--color-danger);
    box-shadow: 0 0 30px rgba(235, 91, 60, 0.15);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.blocked-icon {
    width: 60px;
    height: 60px;
    color: var(--color-danger);
    filter: drop-shadow(0 0 10px rgba(235, 91, 60, 0.3));
}
.blocked-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}
.blocked-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.blocked-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Auth Modal Styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 19, 0.8);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.auth-overlay.active {
    display: flex;
}
.auth-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}
.auth-header p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.auth-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 8px;
}
.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.auth-tab.active {
    background: var(--color-primary);
    color: #fff;
}
.phone-input-wrap {
    display: flex;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    align-items: center;
}
.phone-input-wrap .prefix {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 8px;
    border-right: 1px solid var(--border-color);
    padding-right: 8px;
}
.phone-input-wrap input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    flex: 1;
}
.otp-verification-box {
    margin-top: 14px;
    border-top: 1px dashed var(--border-color);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.two-factor-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.two-factor-checkbox-wrap input[type="checkbox"] { accent-color: var(--color-primary); }

.auth-divider {
    text-align: center;
    position: relative;
    margin: 8px 0;
}
.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}
.auth-divider span {
    background: var(--bg-surface-solid);
    padding: 0 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    font-weight: 700;
}
.btn-social {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.85rem;
}
.btn-social:hover {
    background: rgba(100, 116, 139, 0.1);
}
.social-img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.btn-bio {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid var(--color-ai);
    color: var(--color-ai);
}
.btn-bio:hover {
    background: var(--color-ai-glow);
}
.bio-icon {
    width: 18px;
    height: 18px;
}
.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Ticker Bar */
.ticker-wrap {
    width: 100%;
    background: #090d16;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 6px 0;
    overflow: hidden;
    height: 34px;
}
[data-theme="light"] .ticker-wrap {
    background: #ffffff;
    border-bottom-color: rgba(0,0,0,0.05);
}
.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 45s linear infinite;
}
.ticker:hover {
    animation-play-state: paused;
}
.ticker__item {
    display: inline-block;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.ticker__item span.price {
    margin-left: 0.4rem;
    padding: 1px 4px;
    border-radius: 3px;
}
.ticker__item span.price.up { color: var(--color-success); background: var(--color-success-bg); }
.ticker__item span.price.down { color: var(--color-danger); background: var(--color-danger-bg); }

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Top Navigation Bar */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    background: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    max-width: 800px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-ai));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff;
}
.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}
.logo-text span {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    font-weight: 700;
    display: block;
}
.search-bar-wrap {
    position: relative;
    flex: 1;
    max-width: 420px;
}
.search-bar-wrap input {
    width: 100%;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 8px 16px 8px 38px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}
.search-bar-wrap input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 208, 156, 0.15);
    background: var(--bg-surface-solid);
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

/* Search Dropdown suggestions list */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    z-index: 500;
    max-height: 250px;
    overflow-y: auto;
    padding: 8px;
}
.suggestion-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.suggestion-item:hover {
    background: rgba(100, 116, 139, 0.1);
}
.suggestion-item .left {
    display: flex;
    flex-direction: column;
}
.suggestion-item .sym { font-weight: 700; font-size: 0.8rem; color: var(--text-primary); }
.suggestion-item .name { font-size: 0.65rem; color: var(--text-muted); }
.suggestion-item .price { font-weight: 700; font-size: 0.8rem; align-self: center; }

/* Header Action buttons, bells, dark mode triggers */
.header-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-action-btn {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.header-action-btn:hover {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-primary);
}
.notifications-center-wrap {
    position: relative;
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-danger);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-surface-solid);
}
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    z-index: 500;
    overflow: hidden;
}
.noti-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0,0,0,0.02);
}
.noti-header button {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    cursor: pointer;
}
.noti-body {
    max-height: 220px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.noti-item {
    background: rgba(100, 116, 139, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-secondary);
}
.noti-item .time {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.empty-noti {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Wallet/Balance Block */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.wallet-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(100, 116, 139, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 14px;
}
.wallet-icon {
    color: var(--color-primary);
    width: 18px;
    height: 18px;
}
.balance-details {
    display: flex;
    flex-direction: column;
}
.balance-details .label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
}
.balance-details .value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.btn-add-money {
    background: var(--color-primary-glow);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}
.btn-add-money:hover {
    background: var(--color-primary);
    color: #fff;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-indicator.online {
    background-color: var(--color-primary);
    box-shadow: 0 0 6px var(--color-primary);
}
.profile-details-text {
    display: flex;
    flex-direction: column;
}
.profile-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}
.profile-kyc-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    width: fit-content;
}
.profile-kyc-badge.status-verified {
    background: var(--color-success-bg);
    color: var(--color-success);
}
.profile-kyc-badge.status-pending {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}
.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    object-fit: cover;
}

/* Sub Navigation Bar (Groww style tabs) */
.sub-nav-bar {
    background: rgba(100, 116, 139, 0.02);
    border-bottom: 1px solid var(--border-color);
}
.sub-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    padding: 0 32px;
}
.nav-tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition-smooth);
}
.nav-tab-btn i {
    width: 16px;
    height: 16px;
}
.nav-tab-btn:hover {
    color: var(--text-primary);
}
.nav-tab-btn.active {
    color: var(--color-primary);
}
.nav-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    box-shadow: 0 -2px 10px var(--color-primary-glow);
}

/* Card Styling */
.card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}
.card:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-header h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* Tab Layout Displays */
.content-container {
    flex: 1;
    padding: 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* STOCKS TAB GRID */
.stocks-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.stocks-main-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.stocks-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Market Indices */
.indices-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.index-card {
    background: rgba(100, 116, 139, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.index-card:hover {
    background: rgba(100, 116, 139, 0.03);
    border-color: var(--border-color-hover);
}
.index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.index-header .name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}
.index-header .price-change {
    font-size: 0.75rem;
    font-weight: 700;
}
.index-header .price-change.up { color: var(--color-success); }
.index-header .price-change.down { color: var(--color-danger); }
.index-card .price {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}
.index-sparkline {
    width: 100%;
    height: 40px;
}

/* Sections header titles */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.section-title-row h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Stocks in News grid */
.news-stocks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.news-stock-card {
    background: rgba(100, 116, 139, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.news-stock-card:hover {
    background: rgba(100, 116, 139, 0.04);
    border-color: var(--border-color-glow);
    transform: translateY(-2px);
}
.news-stock-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(100, 116, 139, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.news-stock-card.active {
    border-color: var(--color-primary);
    background: rgba(0, 208, 156, 0.04);
}
.news-stock-sym {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.news-stock-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}
.news-stock-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.news-stock-price {
    font-size: 0.85rem;
    font-weight: 700;
}
.news-stock-pct {
    font-size: 0.75rem;
    font-weight: 700;
}
.news-stock-pct.up { color: var(--color-success); }
.news-stock-pct.down { color: var(--color-danger); }

/* Gainers / Losers tab toggling */
.gain-loss-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 6px;
}
.gain-loss-toggle .toggle-btn {
    border: none;
    background: transparent;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.gain-loss-toggle .toggle-btn.active {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-primary);
}
.gainer-loser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Stock Details & Interactive Chart */
.stock-details-card {
    padding: 24px;
}
.stock-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.stock-badge {
    background: var(--color-primary-glow);
    color: var(--color-primary);
    border: 1px solid rgba(0, 208, 156, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 6px;
    display: inline-block;
}
.stock-detail-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-val {
    font-size: 1.7rem;
    font-weight: 800;
    font-family: var(--font-heading);
}
.price-diff {
    font-size: 0.9rem;
    font-weight: 600;
}
.price-diff.positive { color: var(--color-success); }
.price-diff.negative { color: var(--color-danger); }

.chart-timeframe-selector {
    display: flex;
    background: rgba(0,0,0,0.03);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.tf-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.tf-btn:hover { color: var(--text-primary); }
.tf-btn.active {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-primary);
}
.detail-chart-wrapper {
    width: 100%;
    height: 300px;
    margin-bottom: 24px;
}

/* Key Stats Grids */
.key-stats-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.key-stats-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.stat-item .value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Order Placement Ticket Card */
.order-ticket-card {
    border-color: rgba(0, 208, 156, 0.15);
}
.order-ticket-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}
.action-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}
.order-toggle {
    display: flex;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    padding: 2px;
    border-radius: 8px;
}
.order-toggle .toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.order-toggle .toggle-btn.buy.active {
    background: var(--color-success);
    color: #fff;
}
.order-toggle .toggle-btn.sell.active {
    background: var(--color-danger);
    color: #fff;
}
.order-ticket-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.input-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-row label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.input-row input, .input-row select {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
}
.input-row input:focus, .input-row select:focus {
    border-color: var(--color-primary);
}
.pricing-calculator {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,0.02);
    padding: 10px;
    border-radius: 8px;
}
.calc-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.calc-line.total-line {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}
.btn-execute-trade {
    width: 100%;
    border: none;
    outline: none;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 11px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-primary-glow);
    transition: var(--transition-smooth);
}
.btn-execute-trade:hover {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 14px rgba(0, 208, 156, 0.35);
}

/* Sidebar Watchlist */
.watchlist-sidebar-card .card-header .add-icon {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    cursor: pointer;
}
.watchlist-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}
.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(100, 116, 139, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.watchlist-item:hover {
    background: rgba(100, 116, 139, 0.035);
    border-color: rgba(100, 116, 139, 0.05);
}
.watchlist-item.active {
    border-color: var(--color-primary-glow);
    background: rgba(0, 208, 156, 0.04);
}
.watchlist-item .sym { font-weight: 700; font-size: 0.8rem; }
.watchlist-item .pricing { display: flex; flex-direction: column; align-items: flex-end; }
.watchlist-item .price { font-size: 0.8rem; font-weight: 700; }
.watchlist-item .change { font-size: 0.7rem; font-weight: 700; }
.watchlist-item .change.up { color: var(--color-success); }
.watchlist-item .change.down { color: var(--color-danger); }

/* AI Signal Sidebar */
.color-ai { color: var(--color-ai) !important; }
.ai-signal-sidebar-card {
    border-color: rgba(6, 182, 212, 0.15);
}
.ai-signal-sidebar-card .badge {
    background: var(--color-ai-glow);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-ai);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.signal-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.signal-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
}
.signal-badge.buy {
    color: var(--color-success);
    background: var(--color-success-bg);
    border: 1px solid var(--color-success);
}
.signal-badge.sell {
    color: var(--color-danger);
    background: var(--color-danger-bg);
    border: 1px solid var(--color-danger);
}
.signal-body p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* MUTUAL FUNDS TAB GRID */
.funds-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.funds-main-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.funds-sidebar-col {
    display: flex;
    flex-direction: column;
}
.funds-container-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.fund-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}
.fund-card:hover {
    border-color: var(--border-color-hover);
    background: rgba(100, 116, 139, 0.02);
}
.fund-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1.2;
}
.logo-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
}
.logo-circle.font-1 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.logo-circle.font-2 { background: linear-gradient(135deg, #f97316, #e11d48); }
.logo-circle.font-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.fund-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fund-name { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.fund-tag { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

.fund-card-body {
    display: flex;
    gap: 32px;
    flex: 1;
}
.metric {
    display: flex;
    flex-direction: column;
}
.metric .val { font-size: 1rem; font-weight: 800; color: var(--color-primary); }
.metric .lbl { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

.fund-actions {
    display: flex;
    gap: 8px;
}
.btn-invest {
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-invest:hover {
    background: var(--color-primary-glow);
    box-shadow: 0 0 10px var(--color-primary-glow);
}
.btn-compare-add {
    background: rgba(100, 116, 139, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-compare-add:hover {
    background: rgba(100, 116, 139, 0.08);
    color: var(--text-primary);
}

/* Comparison Matrix block styles */
.comparison-matrix-card {
    border-color: rgba(6, 182, 212, 0.1);
}
.comparison-table-wrap {
    overflow-x: auto;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}
.comparison-table th, .comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
    font-weight: 700;
    color: var(--text-primary);
}
.comparison-table tbody td {
    color: var(--text-secondary);
}
.comparison-table tbody td strong {
    color: var(--text-primary);
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* SIP Calculator styling */
.sip-calculator-card {
    border-color: rgba(255,255,255,0.06);
}
.sip-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sip-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sip-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.sip-label-row .val-display {
    font-weight: 700;
    color: var(--color-primary);
}
.sip-input-group input[type="range"] {
    width: 100%;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.sip-results-box {
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.res-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.res-row .bold { font-weight: 700; color: var(--text-primary); }
.res-row.total-line { font-size: 0.85rem; font-weight: 800; color: var(--text-primary); }

/* OTHER PRODUCTS LAYOUT */
.products-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.products-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.products-sidebar-col {
    display: flex;
    flex-direction: column;
}
.products-sub-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.prod-sub-btn {
    background: rgba(100, 116, 139, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.prod-sub-btn:hover { color: var(--text-primary); }
.prod-sub-btn.active {
    background: var(--color-primary-glow);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.product-panel {
    display: none;
}
.product-panel.active {
    display: block;
}

/* Digital Gold rate styles */
.gold-badge-status {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.gold-price-summary {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.gold-price-summary .val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}
.gold-price-summary .change-pct { font-size: 0.8rem; font-weight: 700; }
.gold-price-summary .change-pct.positive { color: var(--color-success); }
.sparkline-wrap-gold {
    height: 100px;
    width: 100%;
}

/* FD rate cards */
.fd-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}
.fd-rates-table th, .fd-rates-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}
.fd-rates-table th { color: var(--text-muted); font-weight: 600; }
.fd-rates-table tr.active { background: rgba(0, 208, 156, 0.04); }
.fd-rates-table tr.active td { color: var(--color-primary); font-weight: 700; }
.calc-divider { height: 1px; background: var(--border-color); margin: 12px 0; }

/* Bonds tables */
.bonds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}
.bonds-table th, .bonds-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
}
.bonds-table th { color: var(--text-muted); }
.bonds-table td { color: var(--text-secondary); }
.bonds-table tbody tr:hover { background: rgba(100, 116, 139, 0.01); }

/* KYC & PROFILE PANEL LAYOUTS */
.kyc-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.kyc-profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.profile-details-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.detail-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.detail-row .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.profile-input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-smooth);
}
.profile-input:focus { border-color: var(--color-primary); }

/* Security 2FA slider switch styling */
.security-toggles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}
.security-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(100, 116, 139, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 14px;
}
.security-toggle-item .text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding-right: 14px;
}
.security-toggle-item .text strong { font-size: 0.8rem; color: var(--text-primary); }
.security-toggle-item .text span { font-size: 0.65rem; color: var(--text-muted); }

/* Switch slider */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(100, 116, 139, 0.15);
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:focus + .slider {
  box-shadow: 0 0 1px var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(22px);
}

.bank-item {
    display: flex;
    align-items: center;
    background: rgba(100, 116, 139, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    gap: 12px;
}
.bank-icon { color: var(--color-primary); width: 22px; height: 22px; }
.bank-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bank-meta .bank-name { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); }
.bank-meta .acc-num { font-size: 0.65rem; color: var(--text-secondary); }
.bank-badge-primary {
    background: var(--color-success-bg);
    color: var(--color-success);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* KYC verifier stepper views */
.kyc-flow-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.step-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.upload-dropzone {
    background: rgba(0,0,0,0.02);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}
.upload-dropzone:hover {
    border-color: var(--color-primary);
    background: rgba(0, 208, 156, 0.02);
}
.upload-icon {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    opacity: 0.8;
}
.upload-dropzone .primary-text { font-size: 0.8rem; font-weight: 700; color: var(--text-primary); }
.upload-dropzone .secondary-text { font-size: 0.65rem; color: var(--text-muted); }

.uploaded-files-list {
    background: rgba(100, 116, 139, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
}
.uploaded-files-list .file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
}
.uploaded-files-list .file-icon { color: var(--color-primary); width: 14px; height: 14px; }
.uploaded-files-list .file-name { flex: 1; color: var(--text-secondary); }
.uploaded-files-list .success-icon { color: var(--color-success); width: 14px; height: 14px; }

/* Video KYC scan widgets */
.video-kyc-chamber {
    width: 100%;
    height: 240px;
    background: #000;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}
.camera-lens-emulation {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.face-scanner-bounding-box {
    position: absolute;
    width: 150px;
    height: 180px;
    border: 2px dashed var(--color-ai);
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}
.scanner-laser-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-ai);
    box-shadow: 0 0 8px var(--color-ai);
    z-index: 6;
    top: 0;
    animation: scannerLaser 3s linear infinite;
    display: none;
}
@keyframes scannerLaser {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}
.video-overlay-text {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: var(--color-ai);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.05em;
}
.simulated-camera-feed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}
.sim-user-avatar { width: 36px; height: 36px; opacity: 0.4; }
.video-controls-row {
    display: flex;
    gap: 10px;
}
.video-controls-row button { flex: 1; }

/* TAB 6: AI CLIENT FINDER */
.client-grid-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
}
.client-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.client-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.btn-ai {
    background: linear-gradient(135deg, var(--color-primary), var(--color-ai));
    color: #fff;
    font-size: 0.85rem;
    width: 100%;
    padding: 11px;
    box-shadow: 0 4px 12px rgba(0, 208, 156, 0.2);
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-ai:hover {
    box-shadow: 0 4px 18px rgba(0, 208, 156, 0.35);
}
.finder-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}
.form-group select {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    outline: none;
}

/* AI console log box */
.console-box {
    background: #040810;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 12px;
    font-family: monospace;
    font-size: 0.75rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    height: 250px;
}
[data-theme="light"] .console-box {
    background: #f8fafc;
    border-color: rgba(6, 182, 212, 0.2);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.05);
}
.console-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}
.console-header .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.console-header .dot.crimson { background: #ef4444; }
.console-header .dot.yellow { background: #eab308; }
.console-header .dot.green { background: #22c55e; }
.console-title {
    color: var(--text-muted);
    font-size: 0.65rem;
    margin-left: 6px;
    font-weight: 700;
}
.console-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.log-line { line-height: 1.4; }
.log-line.system { color: #06b6d4; }
.log-line.info { color: var(--text-muted); }
.log-line.search { color: #f59e0b; }
.log-line.match { color: #10b981; }
.log-line.email { color: #8b5cf6; }

/* Leads & CRM workspaces */
.leads-email-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}
.table-container {
    overflow-y: auto;
    max-height: 200px;
}
.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.8rem;
}
.leads-table th {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
}
.leads-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
}
.leads-table tbody tr {
    cursor: pointer;
    transition: var(--transition-smooth);
}
.leads-table tbody tr:hover { background: rgba(100, 116, 139, 0.05); }
.leads-table tbody tr.selected { background: rgba(0, 208, 156, 0.05); }

.leads-table .score-badge {
    font-size: 0.7rem;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 700;
}
.leads-table .score-badge.high { background: var(--color-success-bg); color: var(--color-success); }
.leads-table .score-badge.mid { background: rgba(245, 158, 11, 0.08); color: #f59e0b; }

.empty-state {
    text-align: center;
    padding: 30px !important;
    color: var(--text-muted);
}
.empty-icon {
    width: 28px;
    height: 28px;
    opacity: 0.3;
    margin-bottom: 8px;
}

/* Email writer */
.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    transition: var(--transition-smooth);
    border-radius: 8px;
}
.btn-outline:hover:not(:disabled) {
    background: var(--color-primary-glow);
}
.btn-outline:disabled {
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}
.email-body-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 200px;
}
.meta-info {
    background: rgba(0,0,0,0.02);
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.meta-line { display: flex; font-size: 0.75rem; gap: 8px; }
.meta-line .lbl { color: var(--text-muted); width: 45px; }
.meta-line .val { color: var(--text-primary); font-weight: 600; }
.email-body-content textarea {
    flex: 1;
    width: 100%;
    background: rgba(0,0,0,0.01);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    line-height: 1.4;
    resize: none;
    outline: none;
}

/* Kanban CRM board */
.kanban-crm-card { margin-top: 10px; }
.total-rev { font-size: 0.8rem; color: var(--text-secondary); }
.total-rev strong { color: var(--color-primary); }
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.kanban-col {
    background: rgba(100, 116, 139, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
}
.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.col-header.text-green { color: var(--color-success); border-bottom-color: var(--color-success-bg); }
.col-header .count {
    background: rgba(100, 116, 139, 0.05);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.65rem;
}
.kanban-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
    max-height: 180px;
}
.kanban-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    cursor: grab;
    transition: var(--transition-smooth);
}
.kanban-card:hover {
    border-color: var(--border-color-hover);
}
.kanban-card-title { font-weight: 700; font-size: 0.75rem; color: var(--text-primary); margin-bottom: 2px; }
.kanban-card-desc { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 6px; }
.kanban-card-footer { display: flex; justify-content: space-between; font-size: 0.65rem; font-weight: 700; }
.kanban-card-aum { color: var(--text-secondary); }
.kanban-card-badge { color: var(--color-primary); }

/* SUPPORT HUB LAYOUT */
.support-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}
.support-main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.support-sidebar-col {
    display: flex;
    flex-direction: column;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}
.faq-item {
    background: rgba(100, 116, 139, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question i { width: 14px; height: 14px; transition: var(--transition-smooth); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 16px;
    height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-answer p { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.45; padding-bottom: 12px; }

/* Support Ticket Form */
.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}
.ticket-form textarea {
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.4;
    min-height: 80px;
    outline: none;
    resize: none;
}
.ticket-form textarea:focus { border-color: var(--color-primary); }

/* Live Chatbot styling */
.chatbot-card {
    border-color: rgba(6, 182, 212, 0.15);
    display: flex;
    flex-direction: column;
    height: 400px;
}
.bot-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-ai));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bot-meta { display: flex; flex-direction: column; }
.bot-meta strong { font-size: 0.8rem; color: var(--text-primary); }
.bot-meta span { font-size: 0.6rem; color: var(--color-primary); }

.chat-conversation-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.chat-bubble {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    line-height: 1.4;
}
.chat-bubble.bot {
    background: rgba(100, 116, 139, 0.05);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}
.chat-bubble.user {
    background: var(--color-primary-glow);
    border: 1px solid rgba(0,208,156,0.2);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}
.chat-input-row {
    display: flex;
    gap: 8px;
    padding-top: 10px;
}
.chat-input-row input {
    flex: 1;
    background: rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
}
.chat-input-row input:focus { border-color: var(--color-primary); }
.btn-chat-send {
    background: var(--color-primary);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.btn-chat-send:hover { background: var(--color-primary-hover); }
.btn-chat-send i { width: 14px; height: 14px; }

/* ADMIN HUB DASHBOARD LAYOUT */
.admin-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.admin-stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(100, 116, 139, 0.02);
}
.admin-stat-box .label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; }
.admin-stat-box .value { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }

.admin-queues-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 20px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}
.admin-table th, .admin-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}
.admin-table th { color: var(--text-muted); font-weight: 600; }
.admin-table td { color: var(--text-secondary); }
.admin-table tbody tr:hover { background: rgba(100, 116, 139, 0.05); }
.admin-table .action-row-buttons {
    display: flex;
    gap: 6px;
}
.btn-approve { background: var(--color-success-bg); color: var(--color-success); border: 1px solid var(--color-success); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.btn-reject { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid var(--color-danger); font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; cursor: pointer; }

/* Payments Methods selector popup */
.payment-card {
    max-width: 440px;
}
.payment-method-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0;
}
.pay-method-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(100, 116, 139, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.pay-method-option:hover { background: rgba(100, 116, 139, 0.035); }
.pay-method-option.active {
    border-color: var(--color-primary);
    background: rgba(0,208,156,0.03);
}
.pay-method-option input[type="radio"] { accent-color: var(--color-primary); }
.pay-method-option i { width: 18px; height: 18px; color: var(--color-primary); }
.option-details { display: flex; flex-direction: column; gap: 2px; }
.option-details strong { font-size: 0.8rem; color: var(--text-primary); }
.option-details span { font-size: 0.65rem; color: var(--text-muted); }

/* History modal specs */
.history-modal-card {
    max-width: 720px;
}
.tx-history-list-wrapper {
    max-height: 350px;
    overflow-y: auto;
}

/* Toast styling */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--color-primary);
    box-shadow: 0 4px 16px rgba(0, 208, 156, 0.15);
    border-radius: 8px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateY(120px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
}
.toast.show {
    transform: translateY(0);
}
.toast-icon { color: var(--color-primary); width: 18px; height: 18px; }
.toast-content { display: flex; flex-direction: column; }
.toast-title { font-weight: 700; font-size: 0.8rem; color: var(--text-primary); }
.toast-desc { font-size: 0.7rem; color: var(--text-secondary); }

/* Demat Statement buttons alignments */
.holdings-buttons-row {
    display: flex;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .stocks-grid-layout { grid-template-columns: 1fr; }
    .funds-grid-layout { grid-template-columns: 1fr; }
    .products-grid-layout { grid-template-columns: 1fr; }
    .kyc-grid-layout { grid-template-columns: 1fr; }
    .client-grid-layout { grid-template-columns: 1fr; }
    .support-grid-layout { grid-template-columns: 1fr; }
    .holdings-detail-row { grid-template-columns: 1fr; }
    .portfolio-stats-grid { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   NOVIX.AI LANDING PAGE STYLING
   ========================================================================== */
#landing-wrapper {
    width: 100%;
    min-height: 100%;
    background: linear-gradient(135deg, #090b11 0%, #0d121f 50%, #172554 100%);
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow-x: hidden;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 11, 17, 0.6);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-logo-area {
    display: flex;
    align-items: center;
}

.landing-logo-area img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.landing-logo-area h1 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0;
    color: white;
}

.landing-logo-area span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #60a5fa;
    text-transform: uppercase;
    font-weight: 700;
}

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

.landing-nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.landing-nav-links a:hover {
    color: #60a5fa;
}

.landing-nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-landing-login {
    background: transparent;
    border: none;
    color: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    transition: color 0.3s;
}

.btn-landing-login:hover {
    color: #60a5fa;
}

.premium-glowing-btn {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.premium-glowing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

/* Hero Section */
.landing-hero-section {
    padding: 60px 8%;
    min-height: auto;
    display: flex;
    align-items: center;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Card (matching mockup) */
.hero-glass-card {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    letter-spacing: 2px;
    color: #93c5fd;
    font-weight: bold;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.italic-gradient-text {
    font-style: italic;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
}

.solid-blue-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
    transition: all 0.3s;
}

.solid-blue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
}

.outline-glass-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.outline-glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Right Laptop Mockup */
.hero-right {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-img-frame {
    position: relative;
    width: 100%;
    max-width: 580px;
    border-radius: 20px;
    overflow: visible;
}

.hero-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: floatAnimation 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.glow-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

/* Features Grid */
.landing-features-section {
    padding: 100px 8%;
    background: rgba(9, 11, 17, 0.5);
}

.section-title-area {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-area h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: white;
}

.section-title-area p {
    color: #94a3b8;
    font-size: 16px;
}

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

.feature-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(30, 41, 59, 0.4);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon.mint-color { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.feature-icon.pink-color { color: #ec4899; background: rgba(236, 72, 153, 0.1); }
.feature-icon.blue-color { color: #3b82f6; background: rgba(59, 130, 246, 0.1); }

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.5;
    font-size: 14px;
}

/* Stats Section */
.landing-stats-section {
    padding: 60px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.2);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    color: #60a5fa;
}

.stat-label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* Pricing Section */
.landing-pricing-section {
    padding: 100px 8%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.premium-card {
    background: rgba(23, 37, 84, 0.3);
    border: 2px solid #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.premium-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #3b82f6;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: white;
}

.pricing-card .price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    color: white;
}

.pricing-card .price span {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #cbd5e1;
}

.check-icon {
    width: 16px;
    height: 16px;
    color: #10b981;
}

.pricing-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.active-pricing-btn {
    background: #3b82f6;
    border: none;
}

.active-pricing-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Footer */
.landing-footer {
    padding: 40px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #090b11;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-bottom .disclaimer {
    color: #475569;
    font-size: 11px;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left {
        align-items: center;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 32px;
    }
}

/* Running Ticker */
.landing-ticker-wrap {
    width: 100%;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.landing-ticker-track {
    display: inline-block;
    animation: tickerLoop 30s linear infinite;
}

.landing-ticker-track span {
    display: inline-block;
    padding-right: 48px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}

.landing-ticker-track strong.val-up {
    color: #10b981;
}

.landing-ticker-track strong.val-down {
    color: #ef4444;
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* FAQ Section */
.landing-faq-section {
    padding: 100px 8%;
    background: rgba(15, 23, 42, 0.3);
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #f8fafc;
    user-select: none;
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 28px;
    background: rgba(15, 23, 42, 0.15);
}

.faq-answer p {
    padding-bottom: 22px;
    color: #94a3b8;
    line-height: 1.6;
    font-size: 14.5px;
}

.faq-item.active {
    border-color: rgba(96, 165, 250, 0.2);
    background: rgba(30, 41, 59, 0.4);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #60a5fa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    transition: max-height 0.3s ease-in-out;
}

/* Legal Modal Overlay Styles */
.legal-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 17, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legal-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.legal-modal-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.btn-close-legal {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-legal:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    color: #cbd5e1;
    line-height: 1.6;
}

.legal-modal-body h3 {
    font-size: 15px;
    font-weight: 600;
    color: #60a5fa;
    margin-top: 18px;
    margin-bottom: 8px;
}

.legal-modal-body p {
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 16px;
}

/* Mid-Page Promo CTA Section */
.landing-promo-section {
    padding: 80px 8%;
    background: linear-gradient(135deg, #090b11 0%, #05070c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.promo-left {
    display: flex;
    flex-direction: column;
}

.promo-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #f8fafc;
    letter-spacing: -1px;
}

.highlight-text-white {
    font-style: italic;
    font-weight: 800;
    color: white;
}

.italic-highlight-blue {
    font-style: italic;
    font-weight: 800;
    color: #60a5fa;
}

.promo-desc {
    color: #94a3b8;
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

.btn-landing-workwithus {
    background: #0066cc;
    align-self: flex-start;
}

.promo-right {
    display: flex;
    justify-content: center;
    position: relative;
}

.promo-img-frame {
    position: relative;
    width: 100%;
    max-width: 580px;
}

.promo-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: floatAnimation2 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes floatAnimation2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.glow-sphere-pink {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .landing-promo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .promo-left {
        align-items: center;
    }
    .btn-landing-workwithus {
        align-self: center;
    }
}

/* Logo Lightbox Modal */
.logo-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 17, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.logo-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.logo-lightbox-img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(96, 165, 250, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.logo-lightbox-overlay.active .logo-lightbox-img {
    transform: scale(1);
}

/* Learn More Modal Overlay */
.learnmore-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 11, 17, 0.95);
    backdrop-filter: blur(16px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.learnmore-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.learnmore-modal-card {
    background: linear-gradient(135deg, #0f172a 0%, #0d1324 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 90%;
    max-width: 1000px;
    height: 85%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
}

.learnmore-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.learnmore-modal-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-close-learnmore {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-learnmore:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.learnmore-modal-body {
    padding: 32px 48px;
    overflow-y: auto;
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 15px;
}

.learnmore-section-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.learnmore-hero-text h3 {
    font-size: 28px;
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.learnmore-hero-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

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

.learnmore-grid-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
}

.learnmore-grid-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 8px;
}

.learnmore-grid-card p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.learnmore-tech-banner {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin: 40px 0;
}

.learnmore-tech-banner h3 {
    margin-bottom: 12px;
    color: white;
    font-size: 20px;
}

.learnmore-body-text h3 {
    font-size: 20px;
    color: white;
    margin-top: 32px;
    margin-bottom: 12px;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
}

.learnmore-body-text p {
    color: #94a3b8;
    margin-bottom: 20px;
}


/* ==========================================================================
   ADVANCED MOBILE & RESPONSIVE DESIGN ENGINE (NOVIX.AI TRADE)
   ========================================================================== */

/* Global Anti-Overflow */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

/* Tablet & Mobile Screens (max-width: 900px) */
@media (max-width: 900px) {
    /* Landing Header */
    .landing-header {
        padding: 12px 20px;
    }
    
    .landing-nav-links {
        display: none; /* Hide top text nav links on mobile for clean header */
    }

    .landing-logo-area img {
        width: 32px;
        height: 32px;
    }

    .landing-logo-area h1 {
        font-size: 18px;
    }

    .premium-glowing-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Landing Hero */
    .landing-hero-section {
        padding: 40px 5%;
        min-height: auto;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .hero-glass-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 34px !important;
        line-height: 1.15;
    }

    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .solid-blue-btn, .outline-glass-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Features Section */
    .landing-features-section {
        padding: 60px 5%;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    /* Promo Section */
    .landing-promo-section {
        padding: 60px 5%;
    }

    .landing-promo-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    .promo-title {
        font-size: 30px !important;
    }

    .promo-desc {
        font-size: 14px;
        max-width: 100%;
    }

    /* Trust Stats */
    .landing-stats-section {
        padding: 40px 5%;
    }

    .stats-grid {
        flex-direction: column;
        gap: 24px;
    }

    .stat-number {
        font-size: 32px;
    }

    /* Pricing Section */
    .landing-pricing-section {
        padding: 60px 5%;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    /* FAQ Accordion */
    .landing-faq-section {
        padding: 60px 5%;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 14.5px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-answer p {
        padding-bottom: 16px;
        font-size: 13.5px;
    }

    /* Footer */
    .landing-footer {
        padding: 30px 5%;
    }

    /* Modals Responsive */
    .learnmore-modal-card {
        width: 95%;
        height: 90%;
        border-radius: 20px;
    }

    .learnmore-modal-header {
        padding: 16px 20px;
    }

    .learnmore-modal-header h2 {
        font-size: 18px;
    }

    .learnmore-modal-body {
        padding: 20px 16px;
        font-size: 14px;
    }

    .learnmore-section-hero {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .learnmore-hero-text h3 {
        font-size: 22px;
    }

    .learnmore-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .legal-modal-card {
        width: 95%;
        max-height: 85%;
        border-radius: 16px;
    }

    .legal-modal-header {
        padding: 16px 20px;
    }

    .legal-modal-body {
        padding: 16px 20px;
    }
}

/* Smartphone Screens (max-width: 600px) */
@media (max-width: 600px) {
    /* Main Dashboard Header */
    .main-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .global-search-container {
        width: 100%;
        max-width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .wallet-badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .user-profile {
        margin-left: 0;
    }

    .profile-details-text {
        display: none; /* Hide text name on tiny phone screens, keep avatar and status dot */
    }

    /* Horizontal Tab Bar Smooth Touch Scroll */
    .sub-nav-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px 12px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .sub-nav-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .nav-tab-btn {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Dashboard Layout Grids */
    .tab-content {
        padding: 16px 12px;
    }

    .grid-2-col, .grid-3-col, .grid-4-col,
    .support-grid-layout, .admin-grid-layout, .admin-stats-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .card {
        padding: 16px !important;
        border-radius: 16px !important;
    }

    /* Tables Mobile Scroll */
    .table-container, .option-chain-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px; /* Ensures table headers don't squish unreadably */
    }

    /* Ticker Track */
    .landing-ticker-track span {
        padding-right: 20px;
        font-size: 11.5px;
    }

    .hero-badge {
        font-size: 11px;
        letter-spacing: 1px;
    }
}


/* ==========================================================================
   MOBILE TRADING DASHBOARD & OPTION CHAIN SPECIFIC OVERRIDES (< 900px)
   (Preserves landing page design 100% while making stock charts & option chain 100% mobile-fitted)
   ========================================================================== */

@media (max-width: 900px) {
    /* 1. Stocks Tab Main Layout */
    .stocks-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .stocks-sidebar-col {
        width: 100% !important;
    }

    /* 2. Top Indices Cards Grid (Nifty 50, Sensex, Bank Nifty) */
    .indices-container {
        grid-template-columns: 1fr !important; /* 1 card per row on mobile */
        gap: 12px !important;
    }

    .index-card {
        padding: 12px 16px !important;
    }

    /* 3. News & Gainers/Losers Grids */
    .news-stocks-grid, .gainer-loser-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 clean columns on tablet/mobile */
        gap: 10px !important;
    }

    /* 4. Chart & Stock Detail Header */
    .stock-detail-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .chart-timeframe-selector {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .chart-timeframe-selector .tf-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 6px 0 !important;
    }

    .detail-chart-wrapper {
        height: 240px !important; /* Fixed touch height for mobile chart canvas */
    }

    /* 5. Key Stats Grid */
    .key-stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* 6. Option Chain & Index Modal Responsive */
    #index-detail-modal .index-modal-card {
        width: 95% !important;
        max-width: 100% !important;
        margin: 10px !important;
        padding: 16px !important;
    }

    .opt-chain-cell {
        padding: 12px 6px !important;
        font-size: 13.5px !important;
        border-radius: 6px !important;
    }

    /* 7. Watchlist & Order Ticket Cards */
    .order-ticket-card {
        padding: 16px !important;
    }

    .order-ticket-header {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
}

@media (max-width: 500px) {
    /* For smaller smartphone screens (< 500px) */
    .news-stocks-grid, .gainer-loser-grid {
        grid-template-columns: 1fr !important; /* 1 column full width on small phones */
    }

    .price-row {
        flex-wrap: wrap !important;
    }
}


/* ==========================================================================
   EXACT MOBILE SCREENSHOT FIX ENGINE (DASHBOARD & STOCKS TERMINAL)
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Root & Container Width Safety */
    .content-container {
        padding: 12px 10px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* 2. Main Top Header Bar (Search & Balance) */
    .main-header {
        padding: 12px 10px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .header-left {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .global-search-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-actions {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .wallet-badge {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }

    /* 3. Horizontal Touch Scroll for Indices Cards (Nifty 50, Sensex, Bank Nifty) */
    .indices-container {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .indices-container::-webkit-scrollbar {
        display: none !important;
    }

    .index-card {
        flex: 0 0 82% !important; /* Shows 1 full card + preview of next card */
        scroll-snap-align: start !important;
        min-width: 0 !important;
    }

    /* 4. Horizontal Touch Scroll for Stocks in News & Gainers/Losers */
    .news-stocks-grid, .gainer-loser-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding-bottom: 8px !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .news-stocks-grid::-webkit-scrollbar, .gainer-loser-grid::-webkit-scrollbar {
        display: none !important;
    }

    .news-stock-card, .gainer-loser-card {
        flex: 0 0 75% !important;
        scroll-snap-align: start !important;
        min-width: 0 !important;
    }

    /* 5. Interactive Chart Header & Canvas */
    .stock-detail-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .chart-timeframe-selector {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        background: rgba(255, 255, 255, 0.03) !important;
        padding: 4px !important;
        border-radius: 8px !important;
    }

    .chart-timeframe-selector .tf-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 6px 0 !important;
        font-size: 12px !important;
    }

    .detail-chart-wrapper {
        width: 100% !important;
        height: 220px !important; /* Clean touch height for mobile chart */
        margin-bottom: 16px !important;
    }

    /* 6. Key Stats Section Fix (2 Equal Columns) */
    .key-stats-section {
        width: 100% !important;
        padding-top: 16px !important;
    }

    .key-stats-section .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 equal mobile columns */
        gap: 10px !important;
        width: 100% !important;
    }

    .stat-item {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 8px 10px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }

    .stat-item .label {
        font-size: 11px !important;
    }

    .stat-item .value {
        font-size: 12.5px !important;
        font-weight: 700 !important;
    }

    /* 7. Order Ticket Card & Buy/Sell Toggle Buttons Fix */
    .order-ticket-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .order-ticket-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .order-toggle {
        width: 100% !important;
        display: flex !important;
    }

    .order-toggle .toggle-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px 0 !important;
    }

    .btn-execute-trade {
        width: 100% !important;
        white-space: normal !important;
        padding: 12px !important;
        font-size: 14px !important;
        word-break: break-word !important;
    }
}


/* ==========================================================================
   MOBILE TABS VISIBILITY & ALL-OPTIONS 2-ROW GRID ENGINE (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Make Sub-Nav Container Wrap All Tabs in 2 Clean Rows so NO TAB is hidden */
    .sub-nav-bar {
        padding: 8px 6px !important;
        background: rgba(15, 23, 42, 0.7) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .sub-nav-container {
        padding: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important; /* All 8 tabs (Portfolio, Support, KYC, etc.) wrap into 2 rows */
        justify-content: flex-start !important;
        gap: 6px !important;
        max-width: 100% !important;
    }

    .nav-tab-btn {
        flex: 1 1 auto !important; /* Flexibly fits across mobile screen */
        padding: 8px 10px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .nav-tab-btn.active {
        background: rgba(0, 208, 156, 0.12) !important;
        border-color: rgba(0, 208, 156, 0.3) !important;
        color: #00d09c !important;
    }

    .nav-tab-btn i {
        width: 14px !important;
        height: 14px !important;
    }
}


/* ==========================================================================
   LANDING PAGE MOBILE & DESKTOP-MODE ADAPTIVE ENGINE (UP TO 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    /* 1. Hero Section Fill & Stack Fix */
    .landing-hero-section {
        padding: 40px 4% !important;
        min-height: auto !important; /* Removes huge black empty vertical space */
        display: block !important;
        width: 100% !important;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr !important; /* Stacks Glass Card and Laptop Image for full width */
        gap: 32px !important;
        width: 100% !important;
    }

    .hero-glass-card {
        padding: 32px 24px !important;
        border-radius: 24px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-title {
        font-size: 40px !important;
        line-height: 1.15 !important;
    }

    .hero-desc {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .hero-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .hero-img-frame {
        max-width: 100% !important;
        width: 100% !important;
    }

    .hero-mockup-img {
        width: 100% !important;
        height: auto !important;
        border-radius: 16px !important;
    }

    /* 2. Canva Promo Banner Fill & Stack Fix */
    .landing-promo-section {
        padding: 40px 4% !important;
        width: 100% !important;
    }

    .landing-promo-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        width: 100% !important;
    }

    .promo-title {
        font-size: 34px !important;
        line-height: 1.2 !important;
    }

    .promo-desc {
        font-size: 14.5px !important;
        max-width: 100% !important;
    }

    .promo-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .promo-img-frame {
        max-width: 100% !important;
        width: 100% !important;
    }

    .promo-mockup-img {
        width: 100% !important;
        height: auto !important;
        border-radius: 16px !important;
    }

    /* 3. Features & Pricing Grid Alignment */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}


/* ==========================================================================
   MOBILE CHART CANVAS & GRAPH DISPLAY ENGINE
   ========================================================================== */

.detail-chart-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 240px !important;
    min-height: 200px !important;
    display: block !important;
    overflow: hidden !important;
}

#live-stock-chart {
    width: 100% !important;
    height: 100% !important;
    min-height: 200px !important;
    display: block !important;
}



/* GUARANTEED VISIBILITY CONTROLS FOR LANDING VS DASHBOARD */
body.logged-in #landing-wrapper {
    display: none !important;
}
body.logged-in #dashboard-wrapper {
    display: block !important;
}
body.logged-in #auth-modal {
    display: none !important;
}

body:not(.logged-in) #dashboard-wrapper {
    display: none !important;
}
