/* =========================================================================
   INVESTBEAST DEEP GLOW DARK SYSTEM THEME ROOT CONFIGURATIONS
   ========================================================================= */

:root {
    /* Color Palette Hierarchy */
    --bg-dark-base: #0B0E14;     /* Deep Obsidian Space Background */
    --bg-dark-card: #161A22;     /* Matte Frosted Charcoal for Cards */
    --bg-dark-input: #1F242F;    /* Lighter Slate for Fields/Sliders */
    
    --accent-primary: #02C076;   /* Crypto Neon Green (Bullish Growth) */
    --accent-secondary: #00F0FF; /* Electric Trust Cyan (Calculations) */
    --accent-gradient: linear-gradient(135deg, #02C076, #00F0FF);
    
    --text-primary: #FFFFFF;     /* Pure Crisp White text */
    --text-muted: #848E9C;       /* Binance-style slate text for labels */
    --border-color: rgba(255, 255, 255, 0.07); /* Microscopic razor border */
    
    --font-main: 'Inter', sans-serif;
}

/* Structural Engine Resets & Anti-Overflow Locks */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important; /* Defends layout against horizontal shift leaks */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(2, 192, 118, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.04) 0%, transparent 40%);
}

/* Fluid Component Grid Wrappers */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* =========================================================================
   UNIVERSAL UI UTILITIES & BUTTONS
   ========================================================================= */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bold-highlight { color: var(--accent-secondary); font-weight: 700; }

.btn-primary {
    background: var(--accent-gradient);
    color: #000000;
    font-weight: 700;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(2, 192, 118, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

/* =========================================================================
   BASE HEADER NAVIGATION BAR MODULES
   ========================================================================= */
.main-header {
    background-color: rgba(22, 26, 34, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-brand .accent-icon {
    color: var(--accent-secondary);
}

.navbar {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.mobile-menu-toggle {
    display: none; /* Auto-hidden on core desktop viewports */
}

/* =========================================================================
   1. HERO VIEWPORT COMPONENTS
   ========================================================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
}

.badge-status {
    background: rgba(2, 192, 118, 0.1);
    border: 1px solid rgba(2, 192, 118, 0.2);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 25px 0;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

.hero-metrics {
    display: flex;
    gap: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 35px;
}

.metric-item h3 { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); }
.metric-item p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;}

/* Cyber Chart Visualization Card */
.crypto-chart-card {
    background: linear-gradient(145deg, #161A22, #0E1118);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    position: relative;
    width: 100%;
}

.crypto-chart-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.card-header-flex { display: flex; justify-content: space-between; align-items: center; }
.asset-profile { display: flex; align-items: center; gap: 14px; }
.crypto-logo-btc { color: #F7931A; font-size: 2.5rem; filter: drop-shadow(0 0 8px rgba(247,147,26,0.3)); }
.asset-profile h4 { font-size: 1.1rem; font-weight: 600; }
.trend-badge { padding: 6px 12px; border-radius: 8px; font-weight: 700; font-size: 0.85rem; }
.positive-change { background-color: rgba(2,192,118,0.15); color: var(--accent-primary); border: 1px solid rgba(2,192,118,0.1); }

.chart-container-box {
    margin-top: 35px;
    background-color: rgba(11, 14, 20, 0.6);
    border-radius: 14px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.simulated-chart-wave {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100%;
    width: 100%;
}

.simulated-chart-wave::before {
    content: '';
    position: absolute;
    bottom: 40px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
    box-shadow: 0 0 12px var(--accent-secondary);
}

/* =========================================================================
   2. TRADING PROFIT CALCULATOR BOARD
   ========================================================================= */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; letter-spacing: -0.5px; }
.section-desc { color: var(--text-muted); font-size: 1.1rem; }

.calculator-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    width: 100%;
}

.calc-inputs-panel { padding: 50px; border-right: 1px solid var(--border-color); }
.calc-results-panel { padding: 50px; background: linear-gradient(180deg, rgba(31,36,47,0.2) 0%, rgba(11,14,20,0.4) 100%); display: flex; flex-direction: column; justify-content: center; }

.form-group-range label { font-size: 1rem; color: var(--text-primary); display: flex; justify-content: space-between; }
.custom-range-slider {
    width: 100%; margin-top: 20px; -webkit-appearance: none; appearance: none;
    height: 6px; background: var(--bg-dark-base); border-radius: 10px; outline: none;
}
.custom-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent-secondary); cursor: pointer; box-shadow: 0 0 10px var(--accent-secondary);
}

.form-group-select { margin-top: 40px; }
.custom-select-input {
    width: 100%; background-color: var(--bg-dark-input); border: 1px solid var(--border-color);
    padding: 16px; border-radius: 12px; color: var(--text-primary); font-size: 1rem; outline: none; margin-top: 15px;
    cursor: pointer; transition: border 0.2s ease;
}
.custom-select-input:focus { border-color: var(--accent-primary); }

.results-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 35px; }
.result-box { background-color: var(--bg-dark-base); padding: 25px; border-radius: 16px; border: 1px solid var(--border-color); }
.result-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 8px; }
.result-value font-size: 2.2rem; font-weight: 800; margin: 0; }

.results-meta-row {
    border-top: 1px solid var(--border-color); padding-top: 25px; margin-bottom: 35px;
    font-size: 0.95rem; color: var(--text-muted); display: flex; justify-content: space-between;
}
.results-meta-row strong { color: var(--text-primary); }
.btn-full-width { text-decoration: none; display: block; text-align: center; padding: 16px; border-radius: 12px; width: 100%; }

/* =========================================================================
   3. PREMIUM INVESTMENT SPECS MATRIX CARDS
   ========================================================================= */
/* 1. FORCE 4 COLUMNS AND REDUCE THE GAP */
.plans-matrix-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    width: 100%; 
}

/* 2. REDUCE CARD PADDING */
.plan-card {
    background-color: var(--bg-dark-card); 
    border: 1px solid var(--border-color);
    border-radius: 20px; 
    padding: 30px 15px; /* Shrunk from 45px 30px */
    position: relative; 
    transition: all 0.3s ease;
}
.plan-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(255,255,255,0.15); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.5); 
}

.featured-card {
    border: 1px solid var(--accent-primary);
    background: linear-gradient(180deg, #161A22 0%, rgba(2,192,118,0.03) 100%);
}

.popular-ribbon {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent-gradient); color: #000000; 
    font-size: 0.70rem; /* Shrunk */
    font-weight: 800;
    padding: 5px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap;
}

/* 3. SHRINK FONTS AND MARGINS SLIGHTLY */
.tier-name { 
    font-size: 1.3rem; /* Shrunk from 1.5rem */
    font-weight: 700; margin-bottom: 20px; text-align: center; letter-spacing: -0.5px;
}
.roi-badge-wrap { 
    text-align: center; margin-bottom: 25px; padding: 15px; 
    background-color: rgba(11,14,20,0.6); border-radius: 14px; border: 1px solid var(--border-color); 
}
.roi-rate-num { 
    font-size: 2rem; /* Shrunk from 2.6rem */
    font-weight: 800; color: var(--accent-primary); display: block; line-height: 1; 
}
.roi-rate-label { 
    font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 5px; display: block; 
}

.plan-specs-list { list-style: none; margin-bottom: 30px; }
.plan-specs-list li { 
    font-size: 0.85rem; /* Shrunk from 0.95rem */
    color: var(--text-muted); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; 
}
.plan-specs-list li i { color: var(--accent-primary); font-size: 0.85rem; }
.plan-specs-list li strong { color: var(--text-primary); }

.btn-tier-action { 
    display: block; text-align: center; text-decoration: none; 
    padding: 12px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; /* Shrunk padding and font */
    transition: all 0.2s ease; 
}
.btn-tier-outline { border: 1px solid var(--border-color); color: var(--text-primary); background-color: rgba(255,255,255,0.01); }
.btn-tier-outline:hover { background-color: var(--text-primary); color: #000000; }
.btn-tier-featured { background: var(--accent-gradient); color: #000000; box-shadow: 0 4px 15px rgba(2,192,118,0.2); }

/* 4. RESPONSIVE DESIGN (CRITICAL) */
/* Since you forced 4 columns, you MUST tell it to stack on smaller screens */
@media (max-width: 1100px) {
    .plans-matrix-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .plans-matrix-grid { grid-template-columns: 1fr; }
}
/* =========================================================================
   4. ACCORDION PANELS SYSTEM
   ========================================================================= */
.max-width-md { max-width: 850px; margin: 0 auto; width: 100%; }
.accordion-group { display: flex; flex-direction: column; gap: 16px; }
.accordion-item { background-color: var(--bg-dark-card); border: 1px solid var(--border-color); border-radius: 14px; transition: all 0.2s ease; overflow: hidden; }
.accordion-trigger {
    width: 100%; background: none; border: none; padding: 24px; text-align: left;
    color: var(--text-primary); font-size: 1.15rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; outline: none;
}
.accordion-trigger i { color: var(--text-muted); transition: transform 0.2s ease; }
.accordion-trigger.active i { color: var(--accent-primary); }
.accordion-panel { max-height: 0; overflow: hidden; padding: 0 24px; transition: all 0.3s ease-out; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.accordion-panel p { padding-bottom: 24px; }

/* =========================================================================
   5. MASTER INSTITUTIONAL FOOTER MODULES
   ========================================================================= */
.main-footer {
    background-color: var(--bg-dark-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px 0;
    margin-top: auto;
    width: 100%;
}

.footer-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.footer-column .footer-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.brand-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 15px 0;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--accent-secondary);
}

.footer-legal-notice {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: justify;
}

.footer-bottom-copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 100%;
}

.copyright-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.legal-policy-anchors a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
}

.legal-policy-anchors a:hover {
    color: var(--text-primary);
}

/* =========================================================================
   6. DASHBOARD INTERNAL WORKSPACE GRID STRUCTURE
   ========================================================================= */
.dashboard-workspace-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background-color: var(--bg-dark-base);
    width: 100%;
}

.dashboard-sidebar {
    background-color: var(--bg-dark-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1010;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand-wrapper {
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-close-toggle {
    display: none;
    background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer;
}

.sidebar-profile-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.03) 100%);
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-wrap {
    width: 46px; height: 46px; background-color: var(--bg-dark-input);
    border: 1px solid var(--border-color); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; position: relative;
    color: var(--accent-secondary); font-size: 1.2rem;
}

.status-online-dot {
    position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px;
    background-color: var(--accent-primary); border: 2px solid var(--bg-dark-card); border-radius: 50%;
}

.profile-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.profile-tier-badge { font-size: 0.75rem; color: var(--accent-primary); display: flex; align-items: center; gap: 4px; margin-top: 3px;}

.sidebar-navigation-menu {
    padding: 20px 16px;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-group-label {
    display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted); padding-left: 12px; margin-bottom: 12px;
}

.menu-links-list { list-style: none; margin-bottom: 30px; }
.menu-links-list li { margin-bottom: 6px; }

.menu-links-list a {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    color: var(--text-muted); text-decoration: none; border-radius: 10px;
    font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease;
}

.menu-links-list a:hover {
    color: var(--text-primary); background-color: rgba(255,255,255,0.03);
}

.menu-links-list li.active-link a {
    color: #000000;
    background: var(--accent-gradient);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(2, 192, 118, 0.15);
}

.menu-links-list li.active-link a .menu-icon {
    color: #000000;
}

.menu-icon { font-size: 1.1rem; color: var(--text-muted); transition: color 0.2s ease; }

.sidebar-footer-action { padding: 20px 16px; border-top: 1px solid var(--border-color); }
.btn-sidebar-logout {
    display: flex; align-items: center; gap: 14px; padding: 10px 16px; width: 100%;
    color: #EF4444; text-decoration: none; font-size: 0.95rem; font-weight: 600;
    border-radius: 10px; background-color: rgba(239, 68, 68, 0.05); transition: all 0.2s ease;
}
.btn-sidebar-logout:hover { background-color: #EF4444; color: #FFFFFF; }

.sidebar-hamburger-trigger {
    display: none; position: fixed; bottom: 25px; right: 25px;
    width: 54px; height: 54px; border-radius: 50%; background: var(--accent-gradient);
    color: #000000; border: none; font-size: 1.3rem; box-shadow: 0 8px 24px rgba(2, 192, 118, 0.4);
    cursor: pointer; z-index: 1000; align-items: center; justify-content: center;
}

/* =========================================================================
   7. LIVE CRYPTO TICKER & PREMIUM TABLES
   ========================================================================= */
.ticker-wrap {
    width: 100%;
    background-color: #0E1118; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    padding: 14px 0;
    display: flex;
    align-items: center;
}

.ticker-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 60px;
    padding-left: 100%;
    animation: marquee-infinite-scroll 25s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    flex-shrink: 0;
}

.coin-name { color: #848E9C; font-size: 0.8rem; }
.coin-price { font-family: monospace; color: #FFFFFF; }
.text-btc { color: #F7931A; }
.text-eth { color: #627EEA; }
.text-sol { color: #14F195; }
.text-bnb { color: #F3BA2F; }
.ticker-change-up { color: #02C076; font-size: 0.8rem; }
.ticker-change-down { color: #EF4444; font-size: 0.8rem; }

@keyframes marquee-infinite-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.market-table-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    width: 100%;
}

.market-table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.custom-search-wrapper { position: relative; max-width: 350px; width: 100%; }
.custom-search-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.95rem; }
.market-search-input {
    width: 100%; background-color: var(--bg-dark-input); border: 1px solid var(--border-color);
    padding: 14px 16px 14px 45px; border-radius: 12px; color: var(--text-primary);
    font-size: 0.95rem; outline: none; transition: border 0.2s ease;
}
.market-search-input:focus { border-color: var(--accent-secondary); }

.table-responsive-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.invest-market-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 600px; }
.invest-market-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.invest-market-table td { padding: 20px; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; vertical-align: middle; }
.market-row-item { transition: background-color 0.2s ease; }
.market-row-item:hover { background-color: rgba(255,255,255,0.02); }

.asset-identity-cell { display: flex; align-items: center; gap: 14px; }
.asset-table-icon { font-size: 1.6rem; width: 24px; text-align: center; }
.asset-full-name { display: block; font-weight: 600; color: var(--text-primary); }
.asset-ticker-symbol { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.bold-figures { font-family: monospace; font-size: 1.05rem; font-weight: 600; }
.text-success { color: var(--accent-primary) !important; }
.text-danger { color: #EF4444 !important; }

.btn-table-trade {
    display: inline-block; text-decoration: none; padding: 8px 18px; border-radius: 8px;
    background-color: rgba(2, 192, 118, 0.1); color: var(--accent-primary);
    font-weight: 600; font-size: 0.85rem; border: 1px solid rgba(2, 192, 118, 0.2);
    transition: all 0.2s ease;
}
.btn-table-trade:hover { background-color: var(--accent-primary); color: #000000; }

.live-price-readout-strip { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: auto; }
.simulated-wave-bars { display: flex; align-items: flex-end; gap: 6px; width: 100%; height: 100px; }
.bar-node { flex-grow: 1; background: linear-gradient(180deg, var(--accent-primary) 0%, transparent 100%); border-radius: 4px 4px 0 0; opacity: 0.7; }

/* =========================================================================
   8. GLASSMORPHIC FLOATING NOTIFICATION PANELS
   ========================================================================= */
#ib-toast-master-container {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 99999;
    max-width: 380px;
    width: calc(100% - 60px);
}

.ib-toast-node {
    background: rgba(22, 26, 34, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transform: translate3d(120%, 0, 0);
    animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.ib-toast-node.toast-exit-active { transform: translate3d(120%, 0, 0); opacity: 0; }
.toast-internal-flex { display: flex; align-items: center; gap: 14px; }
.toast-status-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-type-success { border-left: 4px solid var(--accent-primary); }
.toast-type-error { border-left: 4px solid #EF4444; }
.toast-type-warning { border-left: 4px solid #F59E0B; }
.toast-type-info { border-left: 4px solid var(--accent-secondary); }
.toast-message-content { color: var(--text-primary); font-size: 0.9rem; font-weight: 500; line-height: 1.4; flex-grow: 1; margin: 0; }
.toast-close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 4px; display: flex; align-items: center; }
.toast-close-btn:hover { color: var(--text-primary); }
.toast-progress-bar { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2)); animation: toast-timer-drain linear forwards; }
.toast-type-success .toast-progress-bar { background: var(--accent-primary); }
.toast-type-error .toast-progress-bar { background: #EF4444; }

@keyframes toast-slide-in { 0% { transform: translate3d(120%,0,0); } 100% { transform: translate3d(0,0,0); } }

/* =========================================================================
   =========================================================================
   9. LIQUID RESPONSIVE BREAKPOINT OVERRIDES (NO BOOTSTRAP)
   =========================================================================
   ========================================================================= */

/* Tablets & Medium Viewports (992px and below) */
@media (max-width: 992px) {
    .section-container { padding: 60px 20px; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding-top: 20px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1.1rem; max-width: 600px; }
    .hero-actions { justify-content: center; width: 100%; }

    .calculator-card-grid { grid-template-columns: 1fr; }
    .calc-inputs-panel { border-right: none; border-bottom: 1px solid var(--border-color); padding: 35px 20px; }
    .calc-results-panel { padding: 35px 20px; }
    
    /* Dashboard Workspace Layout Flattening */
    .dashboard-workspace-wrapper { grid-template-columns: 1fr; }
    .dashboard-sidebar {
        position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
        box-shadow: 20px 0 40px rgba(0,0,0,0.6);
        z-index: 2000;
    }
    .dashboard-sidebar.sidebar-mobile-visible { left: 0; }
    .sidebar-close-toggle { display: block; }
    .sidebar-hamburger-trigger { display: flex; }
}

/* Smart Phones & Hamburger Navigation Breakpoint (768px and below) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 4px 8px;
        z-index: 1200;
    }

    /* Transform navigation into a clean absolute right-hand panel */
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(22, 26, 34, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        padding: 40px 20px;
    }

    .navbar.mobile-active {
        right: 0; 
    }

    .auth-actions { gap: 10px; }
    .log-in-link { display: none; } /* Hides duplicate actions on small mobile layout targets */
    .btn-primary { padding: 10px 16px !important; font-size: 0.85rem !important; }

    /* Footer structural compression */
    .footer-grid-container { grid-template-columns: 1fr; gap: 30px; }
    .copyright-content-wrapper { flex-direction: column; text-align: center; gap: 12px; }
    .legal-policy-anchors a { margin: 0 10px; }
}

/* Ultra Compact Views (576px and below) */
@media (max-width: 576px) {
    .section-container { padding: 50px 16px; }
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; gap: 12px; width: 100%; }
    .btn-large { width: 100%; justify-content: center; }
    .hero-metrics { flex-wrap: wrap; gap: 25px; justify-content: center; }
    .metric-item { text-align: center; min-width: 120px; }
    
    .market-table-controls { flex-direction: column; align-items: flex-start; }
    .custom-search-wrapper { max-width: 100%; }
    
    .results-subgrid { grid-template-columns: 1fr; gap: 15px; }
    .result-box { padding: 18px; }
    .result-value { font-size: 1.8rem; }
    .results-meta-row { flex-direction: column; gap: 8px; text-align: center; }
    .accordion-trigger { font-size: 1rem; padding: 18px; }
}

/* =========================================================================
   ABOUT INTERFACE UTILITY ADAPTATIONS
   ========================================================================= */

.about-hero-section {
    background-image: radial-gradient(circle at 50% -20%, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
    padding-top: 60px;
}

/* Fix spacing for the milestone list columns on tight smartphone displays */
@media (max-width: 768px) {
    .about-statement-section .calculator-card-grid {
        grid-template-columns: 1fr !important;
    }
    
    .about-statement-section .calc-inputs-panel {
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 35px 20px !important;
    }
    
    .about-statement-section .calc-results-panel {
        padding: 35px 20px !important;
    }
    
    .cta-section .section-container div {
        padding: 40px 20px !important;
    }
    
    .cta-section h2 {
        font-size: 1.8rem !important;
    }
}




/* =========================================================================
   SECURE AUTHENTICATION SYSTEM FORM LAYOUT CARDS
   ========================================================================= */

.auth-page-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 30%, rgba(2, 192, 118, 0.04) 0%, transparent 50%);
}

.auth-card-container {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 460px;
    width: 100%;
    padding: 45px 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.auth-card-header { text-align: center; margin-bottom: 35px; }
.auth-card-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.auth-card-subtitle { font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }

.auth-form-matrix { display: flex; flex-direction: column; gap: 22px; }
.auth-input-group { display: flex; flex-direction: column; gap: 8px; }
.auth-input-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

.auth-field-relative-wrap { position: relative; width: 100%; }
.auth-field-inner-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.95rem; pointer-events: none;
}

.auth-input-field {
    width: 100%; background-color: var(--bg-dark-input); border: 1px solid var(--border-color);
    padding: 14px 16px 14px 45px; border-radius: 12px; color: var(--text-primary);
    font-size: 0.95rem; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-input-field:focus { border-color: var(--accent-secondary); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.05); }

/* Custom Semantic Checkbox Layout */
.auth-checkbox-row { margin: 5px 0; }
.custom-checkbox-container {
    display: flex; position: relative; padding-left: 30px; cursor: pointer;
    font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); user-select: none;
}
.custom-checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.checkbox-checkmark-box {
    position: absolute; top: 2px; left: 0; height: 18px; width: 18px;
    background-color: var(--bg-dark-input); border: 1px solid var(--border-color); border-radius: 6px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.custom-checkbox-container:hover input ~ .checkbox-checkmark-box { border-color: var(--text-muted); }
.custom-checkbox-container input:checked ~ .checkbox-checkmark-box { background: var(--accent-gradient); border-color: transparent; }

.checkbox-checkmark-box::after {
    content: ""; position: absolute; display: none;
    left: 6px; top: 3px; width: 4px; height: 8px;
    border: solid #000000; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.custom-checkbox-container input:checked ~ .checkbox-checkmark-box::after { display: block; }

.auth-submit-btn { padding: 14px 0; font-size: 1rem; font-weight: 700; border-radius: 12px; margin-top: 10px; cursor: pointer;}
.auth-card-footer { text-align: center; margin-top: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; font-size: 0.85rem; color: var(--text-muted); }
.auth-footer-link { color: var(--accent-primary); text-decoration: none; font-weight: 600; transition: text-decoration 0.2s ease; }
.auth-footer-link:hover { text-decoration: underline; }

/* Responsive Adaptability Rules */
@media (max-width: 576px) {
    .auth-card-container { padding: 35px 20px; border: none; background-color: transparent; box-shadow: none; }
}

/* =========================================
   PREMIUM STYLED KYC OVERHAUL
   ========================================= */

/* Constrain width so it looks compact instead of stretching completely across the display */
.kyc-container-box {
    max-width: 900px;
    margin: 0 auto 30px auto;
    background-color: #11141a;
    border: 1px solid #1e232d;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.kyc-header {
    margin-bottom: 25px;
}
.kyc-header .card-icon-header i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 10px;
}
.kyc-header .card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 5px 0;
}
.kyc-header .card-subtitle {
    color: #848e9c;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Modern Glassmorphism Alert Box */
.kyc-status-banner-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(246, 70, 93, 0.06);
    border: 1px solid rgba(246, 70, 93, 0.2);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 30px;
}
.banner-icon-left i {
    font-size: 1.6rem;
    color: #f6465d;
}
.banner-text-right h4 {
    margin: 0 0 4px 0;
    color: #f6465d;
    font-size: 0.95rem;
    font-weight: 700;
}
.banner-text-right p {
    margin: 0;
    color: #848e9c;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Section Separators */
.form-section-divider {
    border-bottom: 1px solid #1e232d;
    padding-bottom: 8px;
    margin: 25px 0 20px 0;
}
.form-section-divider span {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Precise Input Grid Structure */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.full-width-input {
    margin-bottom: 25px;
}

.input-group label {
    font-size: 0.85rem;
    color: #848e9c;
    font-weight: 500;
}

/* Interactive Input States */
.crypto-form input[type="text"],
.crypto-form input[type="date"],
.crypto-form select {
    background-color: #1e232d;
    border: 1px solid #2b3139;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
.crypto-form input:focus,
.crypto-form select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* Completely Custom Clickable File Upload Cards */
.custom-upload-card {
    background-color: #1e232d;
    border: 1px dashed #475266;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.custom-upload-card:hover {
    border-color: #3b82f6;
    background-color: #242b37;
}
.upload-main-icon {
    font-size: 2.2rem;
    color: #475266;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.custom-upload-card:hover .upload-main-icon {
    color: #3b82f6;
}
.upload-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.upload-hint {
    color: #848e9c;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

/* Completely hides the browser default ugly file button text input */
.hidden-file-input {
    display: none !important;
}

/* Elegant replacement file indicator button */
.custom-upload-btn {
    background-color: #2b3139;
    color: #eaeded;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}
.custom-upload-card:hover .custom-upload-btn {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Submit Action Button styling */
.btn-submit-kyc {
    width: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s;
    margin-top: 10px;
}
.btn-submit-kyc:hover {
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Responsive adjustment rules */
@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .kyc-container-box {
        padding: 20px;
    }
}
/* =========================================
   NOTIFICATIONS STYLES
   ========================================= */
/* Updated Professional Notification Styling */
.notification-ledger { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    max-width: 800px;
    margin: 20px auto;
}

.notify-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #0f172a; /* Deeper midnight tone */
    border: 1px solid #1e293b;
    padding: 24px;
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.notify-item:hover {
    border-color: #334155;
}

.unread-alert { 
    border-left: 4px solid #ef4444; 
    background: linear-gradient(90deg, #161a24 0%, #0f172a 100%);
}

.notify-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Icon Variations */
.security-icon { background: #450a0a; color: #f87171; }
.success-icon { background: #064e3b; color: #34d399; }
.system-icon { background: #1e3a8a; color: #60a5fa; }

.notify-content { flex-grow: 1; }

.notify-content h4 { 
    color: #f8fafc; 
    margin: 0 0 6px 0; 
    font-size: 1.05rem; 
    font-weight: 600; 
    letter-spacing: -0.01em;
}

.notify-content p { 
    color: #94a3b8; 
    margin: 0 0 12px 0; 
    font-size: 0.92rem; 
    line-height: 1.6; 
}

.notify-time { 
    color: #475569; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
}











































