/* assets/css/style.css */
:root {
    --bg-dark-base: #0B0E14;
    --bg-dark-card: #161A22;
    --bg-dark-input: #1F242F;
    --text-primary: #FFFFFF;
    --text-muted: #848E9C;
    --accent-primary: #02C076;   /* Growth Green */
    --accent-secondary: #00CCFF; /* Tech Cyan */
    --border-color: #2B313F;
    --font-main: 'Inter', sans-serif; /* Setup global font parameter */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main); /* Forces form controls and inputs to use Inter */
}

body {
    background-color: var(--bg-dark-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Makes fonts render sharper */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Live Top Marquee Ticker --- */
.top-ticker-bar {
    width: 100%;
    background-color: #05070A; /* Ultra-dark backdrop to make colors pop */
    border-bottom: 1px solid var(--border-color);
    overflow: hidden; /* Hides the text that goes off-screen */
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.ticker-track {
    display: inline-flex;
    gap: 40px; /* Spacing between each coin */
    /* This animation plays infinitely, moving smoothly to the left */
    animation: scrollTicker 30s linear infinite;
}

/* Optional: Pauses the scrolling if a user hovers their mouse over it to read */
.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-symbol {
    color: var(--text-muted);
    font-weight: 700;
}

/* Reusing your green/red trend colors */
.trend-up {
    color: var(--accent-primary);
}

.trend-down {
    color: #FF4A5A;
}

/* The CSS Engine that drives the movement */
@keyframes scrollTicker {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        /* Shifts exactly 50% left, allowing the duplicated set to loop perfectly */
        transform: translateX(-50%); 
    }
}



/* --- Navigation Header Styling --- */
.main-header {
    background-color: var(--bg-dark-card);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-secondary);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.btn-signup {
    background-color: var(--accent-primary);
    color: #000000;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-links a.btn-signup:hover {
    opacity: 0.9;
}

/* --- Calculator Custom Layout Styles --- */
/* /* --- Hero Section Layout --- */
.hero-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 split */
    gap: 60px; /* Space between text and calculator */
    align-items: center;
}

/* Left Column Styling */
.hero-badge {
    display: inline-block;
    background-color: rgba(2, 192, 118, 0.1);
    color: var(--accent-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(2, 192, 118, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
}

.text-gradient {
    /* Recreates the blue-to-purple text effect */
    background: linear-gradient(90deg, #4da2ff, #a87ffb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 90%;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    background: linear-gradient(90deg, #4da2ff, #a87ffb);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid var(--border-color);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--bg-dark-card);
}

/* Mini Ticker */
.mini-ticker {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mini-ticker-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    width: 60px;
    line-height: 1.3;
}

.mini-ticker-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    font-size: 0.85rem;
}

.mini-coin span {
    color: var(--text-muted);
}

/* Right Column Calculator Tweaks */
.hero-calculator {
    width: 100%;
}

.calc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.calc-header h3 {
    margin: 0;
}

.calc-results-inline {
    margin-top: 24px;
    margin-bottom: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

/* Calculator Container */
.calculator-box {
    background: #111827; /* Darker than body */
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: #9ca3af; font-size: 0.9rem; }

/* Stylish Input & Select */
input, select {
    width: 100%;
    padding: 12px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

/* Result Cards */
.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #1f2937;
}

.text-green { color: #10b981; font-weight: 700; }

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.result-label {
    color: var(--text-muted);
}

.result-value {
    font-weight: 600;
}

.btn-invest-green {
    width: 100%;
    background-color: var(--accent-primary); /* Green color */
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr; /* Stacks them on mobile */
    }
} 

/* --- Footer Area --- */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Live Market Feed Elements --- */
.market-box {
    margin-bottom: 60px;
}
.market-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.market-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.market-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}
.ticker-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.crypto-row {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.crypto-row:hover, .crypto-row.active {
    border-color: var(--accent-secondary);
    transform: translateX(4px);
}
.coin-symbol {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}
.coin-name {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.coin-metrics {
    text-align: right;
}
.coin-price {
    display: block;
    font-weight: 600;
}
.coin-change {
    font-size: 0.85rem;
    font-weight: 500;
}
/* Positive/Negative trend formatting utility classes */
.trend-up { color: var(--accent-primary); }
.trend-down { color: #FF4A5A; }

/* Chart Area Container */
.chart-display {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.chart-top-bar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.canvas-container {
    position: relative;
    flex-grow: 1;
    width: 100%;
    height: 300px;
}

/* --- Live Notification Toasts --- */
.live-alert-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    max-width: 360px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* Handles hidden off-screen state */
.live-alert-toast.hidden {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.alert-avatar {
    background-color: rgba(2, 192, 118, 0.15);
    color: var(--accent-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-content p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.4;
}

.alert-user-info {
    color: var(--text-primary);
    font-weight: 600;
}

.alert-action-text {
    color: var(--text-muted);
}

.alert-action-text span {
    color: var(--accent-primary);
    font-weight: 600;
}

.alert-timestamp {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================================
   AUTHENTICATION PAGES (Register & Login)
   ========================================= */

/* 1. Full Screen Blue Gradient Background */
.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, #1e3a8a 0%, #0b0f19 80%);
    color: #ffffff;
}

/* 2. Container to stop it from stretching full width */
.auth-wrapper {
    width: 100%;
    max-width: 480px; /* This is the magic number that makes it a clean, centered box */
    padding: 20px;
    box-sizing: border-box;
}

/* 3. Header Branding */
.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Purple/Blue tint for the Bitcoin logo */
.auth-logo i {
    color: #a855f7; 
}

.auth-brand-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-top: 10px;
}

/* 4. The Main Dark Form Card */
.auth-card {
    background: #1e293b; /* Sleek dark slate color */
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-card h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-subtitle {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 0;
    margin-bottom: 25px;
}

/* 5. Form Layout & Inputs */
.form-row {
    display: flex;
    gap: 15px;
}

.half-width {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    background: #0f172a; /* Darker inside the input */
    border: 1px solid #334155;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* Focus state so it highlights blue when clicking inside */
.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* 6. Password Icons */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper input {
    padding-right: 45px; /* Leave space for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #cbd5e1;
}

/* 7. Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #8b5cf6;
}

.terms-checkbox label {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0;
    line-height: 1.5;
}

.terms-checkbox a {
    color: #60a5fa;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* 8. The Gradient Submit Button */
.btn-auth-submit {
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-auth-submit:hover {
    opacity: 0.9;
}

.btn-auth-submit:active {
    transform: scale(0.98);
}

/* 9. Footer Text Links */
.auth-footer-text {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.auth-footer-text a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
}

/* 7. Terms Checkbox (Fixed Alignment) */
.terms-checkbox {
    display: flex;
    flex-direction: row !important;
    align-items: center !important; /* Centers the box and text vertically */
    justify-content: flex-start; /* Forces everything to the left edge */
    gap: 10px;
    margin-bottom: 25px;
}

/* Stop the checkbox itself from inheriting full-width or auto-margins */
.terms-checkbox input[type="checkbox"] {
    width: 16px !important; 
    height: 16px !important;
    margin: 0 !important; 
    display: inline-block !important;
    accent-color: #8b5cf6;
    cursor: pointer;
    flex-shrink: 0; /* Prevents the box from shrinking if text wraps */
}

/* Override the global label rules so it doesn't force a line break */
.terms-checkbox label {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important; /* Removes the bottom margin meant for text inputs */
    font-size: 0.85rem;
    font-weight: 400 !important; /* Makes the text normal weight, not bold */
    color: #cbd5e1;
    line-height: 1.5;
    cursor: pointer;
}

/* --- Login Page Specific Utilities --- */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Remove bottom margin from the checkbox wrapper since the parent container handles it */
.login-options .terms-checkbox {
    margin-bottom: 0; 
}

.forgot-link {
    font-size: 0.85rem;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.terms-checkbox a {
    color: #60a5fa;
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

/* =========================================
   USER DASHBOARD - TOP NAV VISION
   ========================================= */

/* Use the exact same gradient background as auth pages */
.dash-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, #1e3a8a 0%, #0b0f19 80%);
    color: #ffffff;
}

.text-muted { color: #9ca3af; }

/* --- Header --- */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: transparent; /* Seamless blend */
}

.dash-brand a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
}

.user-greeting { color: #cbd5e1; }
.last-updated { color: #64748b; }

.nav-icons {
    display: flex;
    gap: 15px;
}

.nav-icons a {
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-icons a:hover { color: #ffffff; }

/* --- Main Layout --- */
.dash-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 40px;
}

/* Welcome Section */
.dash-welcome { margin-bottom: 30px; }
.dash-welcome h1 { margin: 0; font-size: 2rem; font-weight: 600; }
.dash-welcome p { margin: 5px 0 15px 0; color: #cbd5e1; font-size: 1rem; }

.kyc-badge {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* --- The Grid --- */
.dash-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Portfolio takes 2/3, Actions takes 1/3 */
    gap: 20px;
    margin-bottom: 25px;
}

/* Cards */
.dash-card {
    background: rgba(15, 23, 42, 0.7); /* Dark semi-transparent */
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.dash-card h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }

/* Portfolio Details */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.portfolio-header p { margin: 5px 0 0 0; font-size: 0.85rem; color: #9ca3af; }

.portfolio-balance { margin-bottom: 30px; }
.huge-balance { font-size: 2.5rem !important; margin: 0 0 5px 0 !important; font-weight: 700 !important; }
.active-status { font-size: 0.85rem; color: #10b981; }
.active-status span { color: #cbd5e1; margin-left: 5px; }

/* 6-Coin Grid Inside Portfolio */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.coin-box {
    background: rgba(30, 41, 59, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.coin-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.live-tag { color: #10b981; }
.coin-price { font-size: 1.1rem; font-weight: 600; margin-bottom: 3px; }
.coin-amount { font-size: 0.75rem; color: #64748b; }

/* Quick Actions Button Stack */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.btn-action {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s;
}

.btn-action:hover { opacity: 0.9; }

.btn-green { background: #10b981; }
.btn-red { background: #ef4444; }
.btn-dark { background: #0f172a; border: 1px solid #334155; }

/* Tabs below Grid */
.dash-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    padding-bottom: 10px;
}

.dash-tabs .tab {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
}

.dash-tabs .active {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 6px;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .dash-main-grid { grid-template-columns: 1fr; }
    .coin-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-header { flex-direction: column; gap: 15px; }
}

/* =========================================
   MODALS & POP-UPS
   ========================================= */

/* The dark background overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 15, 25, 0.85); /* Deep dark semi-transparent */
    backdrop-filter: blur(5px);
    z-index: 1000;
    
    /* Flexbox used to center the card */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Hidden by default, animated in via JS */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Class added by JavaScript to show the modal */
.show-modal {
    opacity: 1;
    visibility: visible;
}

/* The actual popup box */
.modal-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(-20px); /* Start slightly high */
    transition: transform 0.3s ease;
}

.show-modal .modal-card {
    transform: translateY(0); /* Drop into place */
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #334155;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.close-modal {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #ef4444; /* Turn red on hover */
}

/* Modal Body */
.modal-body {
    padding: 25px;
}

/* Form Select Dropdown (Matches existing inputs) */
.form-input-select {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none; /* Removes default browser arrow */
    cursor: pointer;
}

.form-input-select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Mock Address Box */
.crypto-address-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px dashed #3b82f6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    color: #93c5fd;
}

.crypto-address-box i {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.crypto-address-box p {
    margin: 0;
    font-size: 0.85rem;
}

.text-white { color: #ffffff !important; }

/* Invest Modal Plan Details Box */
.plan-details-box {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    padding: 15px;
}
.font-weight-bold { font-weight: 600; }


/* Deposit Screen Specifics */
.deposit-card {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 12px;
    max-width: 600px;
}

.instruction-text { color: var(--text-muted); margin: 12px 0 24px 0; }

.wallet-box {
    background-color: var(--bg-dark-input);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    margin-bottom: 24px;
}

.wallet-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.wallet-address {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    word-break: break-all;
}

.warning-text {
    color: #FF4A5A;
    font-size: 0.9rem;
    background-color: rgba(255, 74, 90, 0.1);
    padding: 12px;
    border-radius: 6px;
}

/* --- Trust & Certification Section --- */
.trust-section {
    margin-top: 100px;
    margin-bottom: 100px;
}

.text-center {
    text-align: center;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.trust-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6; /* Subtle blue glow on hover */
    box-shadow: 0 10px 30px -15px rgba(59, 130, 246, 0.2);
}

/* Icon Badge Wrapper */
.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1); /* Very subtle transparent blue background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

/* Icon Customizations */
.icon-wrapper i {
    font-size: 1.5rem;
    color: #3b82f6; /* Sleek financial blue icon color */
}

.trust-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.trust-card p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
}

/* Mobile Responsive Layout Changes */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: 1fr; /* Stacks cards cleanly on tablets and mobile phones */
    }
}

/* --- Platform Performance Statistics --- */
.stats-section {
    margin-top: 40px;
    margin-bottom: 100px;
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Clean 4-column breakdown */
    gap: 20px;
    background: #111827; /* Dark container card background matching the calculator */
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 40px 90px;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Square Icon Badges matching the image layout */
.stat-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1); /* Subtle premium blue tint */
    border-radius: 10px; /* Squircle design */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.stat-card:hover .stat-icon-box {
    background: rgba(59, 130, 246, 0.2); /* Deepens slightly on hover */
}

.stat-icon-box i {
    font-size: 1.2rem;
    color: #3b82f6; /* Bright financial interactive blue */
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.95rem;
    color: #9ca3af; /* Clean desaturated gray text */
    font-weight: 500;
    margin: 0;
}

/* Mobile Responsive Adapters */
@media (max-width: 992px) {
    .stats-wrapper {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
        gap: 40px 20px;
    }
}

@media (max-width: 576px) {
    .stats-wrapper {
        grid-template-columns: 1fr; /* Stacks vertically into a neat row on phones */
        padding: 40px 15px;
    }
}

/* --- Optimized Investment Plans --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Marginally reduced gap for layout tightness */
    margin-top: 40px;
    align-items: stretch;
}

.plan-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 22px 20px; /* Reduced vertical padding significantly (from 35px) */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth hardware-accelerated transition */
}

/* --- New Interactive Hover Effects --- */
.plan-card:hover {
    transform: translateY(-6px); /* Moves card smoothly upward */
    border-color: #4b5563; /* Brightens the standard card border */
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6);
}

/* Specific interactive glow for the Popular (Blue) Tier */
.plan-card.popular:hover {
    border-color: #3b82f6;
    box-shadow: 0 15px 30px -12px rgba(59, 130, 246, 0.3); /* Premium soft blue glow */
}

/* Specific interactive glow for the VIP (Purple) Tier */
.plan-card.vip-highlight:hover {
    border-color: #a87ffb;
    box-shadow: 0 15px 30px -12px rgba(168, 127, 251, 0.3); /* Premium soft purple glow */
}

/* --- Tightened Inner Element Spacing --- */
.plan-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #1f2937;
    color: #9ca3af;
    padding: 3px 8px;
    border-radius: 20px;
}

.plan-icon {
    font-size: 1.6rem; /* Slightly smaller icon footprint */
    color: #3b82f6;
    margin: 10px 0 5px 0; /* Compact margins */
}

.plan-card h3 {
    font-size: 1.2rem; /* Reduced typography footprint */
    color: #ffffff;
    margin-bottom: 8px;
}

.plan-rate {
    font-size: 1.8rem; /* Made the rate font tight and crisp */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px; /* Decreased bottom space */
}

.plan-rate span {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Tightened Features List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0; /* Reduced list isolation gap */
    text-align: left;
}

.plan-features li {
    font-size: 0.85rem; /* Highly readable compact typography */
    color: #cbd5e1;
    margin-bottom: 10px; /* Reduced row padding */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Compact CTA Button adjustment */
.btn-plan {
    display: block;
    width: 100%;
    background: #1f2937;
    color: #ffffff;
    padding: 10px; /* Reduced internal button height */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: auto;
}

.btn-plan:active {
    transform: scale(0.98); /* Tactile press feedback click effect */
}

/* --- How It Works Section --- */
.process-section {
    margin-top: 80px;
    margin-bottom: 100px;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 horizontal steps */
    gap: 20px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

/* Container to handle overlapping badge placement */
.icon-badge-container {
    position: relative;
    margin-bottom: 25px;
}

/* Circular Blue Icon Box */
.process-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1); /* Transparent blue matching your stats section */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.process-step:hover .process-icon-box {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.process-icon-box i {
    font-size: 1.4rem;
    color: #3b82f6; /* Premium interactive blue */
}

/* Small Step Index Badge (Top-Right position) */
.step-number {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Process Typography */
.process-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Breakpoints for Smaller Displays */
@media (max-width: 992px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr); /* 2x2 Layout on Tablets */
        gap: 50px 30px;
    }
}

@media (max-width: 576px) {
    .process-timeline {
        grid-template-columns: 1fr; /* Single column layout stack for Mobile Phones */
        gap: 45px;
    }
}

/* --- Why Choose Invest Beast Section --- */
.why-section {
    margin-top: 80px;
    margin-bottom: 100px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 clean structural columns */
    gap: 25px;
    margin-top: 50px;
}

.why-card {
    background: #111827; /* Dark card color mirroring the platform theme */
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 30px 24px;
    text-align: left; /* Clean corporate left-alignment layout */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Subtle upward lift hover effect with an elevated border color */
.why-card:hover {
    transform: translateY(-5px);
    border-color: #374151;
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

/* Rounded square background wrapper for vector icons */
.why-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1); /* Transparent interactive blue tint */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.why-card:hover .why-icon-box {
    background: rgba(59, 130, 246, 0.18); /* Deepens slightly on card hover */
}

.why-icon-box i {
    font-size: 1.25rem;
    color: #3b82f6; /* Bright brand-consistent blue color */
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.55;
    margin: 0;
}

/* Update or append these classes to match the image alignment */
.text-center-box {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.why-card .why-icon-box {
    margin-left: auto;
    margin-right: auto; /* Centers the icon container block exactly */
}

.why-card p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
    max-width: 280px; /* Prevents text from stretching too wide, maintaining the image's layout */
    margin: 0 auto;
}

/* Responsive Layout Adaptation Breaks */
@media (max-width: 992px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens/tablets */
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr; /* Stacks to 1 simple single column for smartphones */
    }
}

/* --- What Our Investors Say Section --- */
.testimonials-section {
    margin-top: 80px;
    margin-bottom: 120px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 clean horizontal columns */
    gap: 25px;
    margin-top: 50px;
}

.testimonial-card {
    background: #111827; /* Theme matched card color */
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #374151;
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

/* Star Rating System */
.rating-stars {
    color: #f59e0b; /* Deep financial gold color for icons */
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    gap: 4px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 25px;
}

/* Client Identity Row Setup */
.client-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #1f2937;
    padding-top: 20px;
}

.client-avatar {
    width: 42px;
    height: 42px;
    background: rgba(59, 130, 246, 0.1); /* Interactive blue accent circular badge */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-avatar i {
    font-size: 1.1rem;
    color: #3b82f6;
}

.client-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Premium Verified Account Badge */
.verified-badge {
    color: #10b981; /* Institutional emerald green checkmark */
    font-size: 0.85rem;
}

.client-info p {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

/* Responsive Structural Breakpoints */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stacks cards cleanly onto a single list on tablets/mobile devices */
        gap: 20px;
    }
}

/* --- Frequently Asked Questions Accordion --- */
.faq-section {
    margin-top: 80px;
    margin-bottom: 120px;
}

.faq-accordion-container {
    max-width: 800px; /* Constrains accordion width for maximum desktop readability */
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #111827; /* Theme consistent layout card color */
    border: 1px solid #1f2937;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #374151;
}

/* Question Trigger Panel */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    font-family: inherit;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: #3b82f6; /* Switches text color to interactive brand blue on hover */
}

/* Arrow Icon Transition */
.toggle-icon {
    font-size: 0.9rem;
    color: #9ca3af;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Answer Body Containment */
.faq-answer {
    max-height: 0; /* Keeps answer naturally hidden on standard load */
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(17, 24, 39, 0.4);
}

.faq-answer p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
    padding: 0 25px 22px 25px; /* Adds internal padding bottom spacing without disrupting closure bounds */
    margin: 0;
}

/* --- Active State Modifiers (Applied via JavaScript) --- */
.faq-item.active {
    border-color: #1f2937;
    background: #131b2e; /* Light tint modifier change when item is active */
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg); /* Flips chevron icon upside down */
    color: #3b82f6;
}

/* --- Final Call to Action Box --- */
.cta-section {
    margin-top: 60px;
    margin-bottom: 100px;
}

.cta-wrapper {
    background: linear-gradient(135deg, #1e3a8a 0%, #111827 100%); /* Deep financial blue-to-dark gradient mix */
    border: 1px solid rgba(59, 130, 246, 0.3); /* Subtle blue glow accent border */
    border-radius: 16px;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* Action Buttons Grid Layout */
.cta-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Prevents buttons from breaking layout structure */
}

/* Primary Accent Sign-up Button */
.btn-cta-primary {
    background: #3b82f6;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: all 0.2s ease;
}

.btn-cta-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Secondary Ghost View Plan Button */
.btn-cta-secondary {
    background: rgba(31, 41, 55, 0.7);
    color: #ffffff;
    border: 1px solid #374151;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-cta-secondary:hover {
    background: #1f2937;
    border-color: #4b5563;
    transform: translateY(-2px);
}

/* --- Mobile Responsive Adapters --- */
@media (max-width: 992px) {
    .cta-wrapper {
        flex-direction: column; /* Stacks layout items vertically on smaller views */
        text-align: center;
        padding: 40px;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* --- Global Footer Styles --- */
.global-footer {
    width: 100vw !important; /* Forces background color to match the absolute width of the browser screen */
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important; /* Breaks out of any restricted parent layouts */
    margin-right: -50vw !important;
    
    background: #0b0f19; 
    border-top: 1px solid #1f2937;
    padding: 70px 0 0 0; 
    font-family: inherit;
    box-sizing: border-box !important;
}


.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr); /* Brand card gets double layout space */
    gap: 40px;
    padding-bottom: 50px;
}

/* Brand Area Styling */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo span {
    color: #3b82f6;
}

.brand-desc {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}

/* Vector Social Media Badges */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: #ffffff;
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Quick Navigation Link Lists */
.footer-links-col h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    font-size: 0.9rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-col ul li a:hover {
    color: #3b82f6; /* Subtle brand blue color shift on hover links */
}

/* Bottom Legal Strip */
.footer-bottom-bar {
    background: #070a10; /* Darker tone separating copyright strip */
    border-top: 1px solid #1f2937;
    padding: 24px 0;
}

.bottom-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.crypto-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
}

.crypto-warning i {
    color: #f59e0b; /* Amber warning indicator sign badge color */
}

/* --- Mobile Responsive Grid Adaptation Breakpoints --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* Drops to 2x2 blocks for tablets */
        gap: 40px 20px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 simple clean stacked row breakdown for phones */
    }
    
    .bottom-bar-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --- Live Moving Crypto Ticker --- */
.crypto-ticker-banner {
    background: #0f172a; /* Slate 900 background matching the image accents */
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
    padding: 12px 0;
    overflow: hidden; /* Important: Hides the text cutting off at the screen edge */
    width: 100vw;
    display: flex;
    position: relative;
    margin-left: -7vw !important;

}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
    gap: 40px;
    animation: ticker-move 25s linear infinite; /* Infinite loop scroll */
}

/* Individual Coin Display Nodes */
.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

.ticker-symbol {
    color: #9ca3af;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.ticker-price {
    font-family: monospace; /* Keeps numerical shifts steady */
}

/* Green Profit / Red Loss Indicators */
.ticker-up { color: #10b981; }
.ticker-down { color: #ef4444; }

.ticker-loading {
    color: #6b7280;
    font-size: 0.85rem;
    padding-left: 20px;
}

/* Infinite Marquee Keyframes */
@keyframes ticker-move {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); } /* Smooth CSS hardware-accelerated reset */
}

/* =========================================
   TRANSACTION HISTORY TABLE
   ========================================= */

/* Controls above the table */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Responsive Table Wrapper */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.crypto-table th {
    color: #9ca3af;
    font-weight: 500;
    padding: 15px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    white-space: nowrap;
}

.crypto-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    vertical-align: middle;
    color: #cbd5e1;
    white-space: nowrap;
}

/* Hover effect on rows */
.crypto-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.4);
}

/* Specific Cell Styles */
.tx-id {
    font-family: monospace;
    color: #60a5fa;
}

.tx-date {
    font-size: 0.85rem;
}

.tx-asset {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.tx-amount {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Transaction Types */
.tx-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.type-in { color: #10b981; } /* Deposit */
.type-out { color: #ef4444; } /* Withdraw */
.type-invest { color: #a855f7; } /* Invest */

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}

.btn-page {
    background: #0f172a;
    border: 1px solid #334155;
    color: #cbd5e1;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-page:hover:not(:disabled) {
    background: #1e293b;
    border-color: #60a5fa;
    color: #ffffff;
}

.btn-page.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   DEPOSIT STEP 2 & FILE UPLOAD
   ========================================= */

   .hidden-step {
    display: none !important;
}

/* Wallet Address Display */
.wallet-instruction {
    background: #0f172a;
    border: 1px solid #334155;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: #ffffff;
    margin: 0 auto 15px auto;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 4rem;
}

.wallet-address-display {
    font-family: monospace;
    font-size: 1rem;
    color: #10b981;
    background: #0b0f19;
    padding: 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    word-break: break-all;
    border: 1px dashed #334155;
}

/* Custom File Upload Box */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Hides the ugly default browser button */
    cursor: pointer;
    z-index: 10;
}

.upload-ui {
    background: rgba(30, 41, 59, 0.5);
    border: 2px dashed #475569;
    border-radius: 8px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.file-upload-wrapper:hover .upload-ui {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.upload-ui i {
    font-size: 2rem;
    color: #60a5fa;
    margin-bottom: 10px;
}

.upload-ui p {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.upload-ui span {
    font-size: 0.75rem;
    color: #64748b;
}

/* =========================================
   SETTINGS PAGE
   ========================================= */

   .settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

/* Make it stack on smaller screens */
@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.avatar-circle {
    width: 70px;
    height: 70px;
    background: #1e293b;
    border: 2px dashed #475569;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #9ca3af;
}

/* Read-only inputs so users know they can't change certain fields */
.input-readonly {
    background: rgba(15, 23, 42, 0.5) !important;
    color: #64748b !important;
    cursor: not-allowed;
    border-color: rgba(51, 65, 85, 0.5) !important;
}

.security-toggle-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   USER DASHBOARD KYC COMPONENT STYLES
   ========================================= */
   .kyc-wrapper {
    background: #111827; /* Dark panel slate background matching coin boxes */
    border: 1px solid #1f2937;
    border-radius: 16px;
    padding: 40px;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.kyc-header h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.kyc-header p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Status Notifications Layout Block */
.kyc-status-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 35px;
    border: 1px solid transparent;
}

.kyc-status-box i {
    font-size: 1.8rem;
}

.kyc-status-box h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
}

.kyc-status-box p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.85;
}

/* Status Colors Variations */
.status-unverified {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-verified {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Form Fields */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.input-group-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-wrapper label, 
.upload-zone-wrapper label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.input-group-wrapper select,
.input-group-wrapper input {
    background: #0b0f19;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-group-wrapper select:focus,
.input-group-wrapper input:focus {
    border-color: #3b82f6;
}

/* Drag and Drop Upload Zone Box */
.upload-zone-wrapper {
    margin-bottom: 35px;
}

.drop-zone {
    margin-top: 8px;
    border: 2px dashed #334155;
    background: #0b0f19;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.drop-zone:hover, .zone-dragover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.02);
}

.zone-active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.02);
}

.hidden-file-input {
    display: none;
}

.upload-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: block;
}

.main-prompt-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0 0 6px 0;
}

.main-prompt-text span {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: underline;
}

.sub-prompt-text {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.file-preview-indicator {
    display: none;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.form-action-row {
    display: flex;
    justify-content: flex-end;
}

/* =========================================
   KYC RESPONSIVE VIEWPORT QUERIES
   ========================================= */
@media (max-width: 680px) {
    .kyc-wrapper {
        padding: 25px 20px;
    }
    
    .form-row-grid {
        grid-template-columns: 1fr; /* Stack drop boxes down horizontally on small viewports */
        gap: 20px;
    }
    
    .form-action-row button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================= */

/* --- TABLETS & SMALL DESKTOPS (Max Width: 992px) --- */
@media (max-width: 992px) {
    /* Hero Section (Landing Page) */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
        gap: 30px;
    }
    .hero-subtitle {
        margin: 0 auto 30px auto; /* Centers the text */
    }
    .hero-buttons {
        justify-content: center;
    }
    
    /* Shrink the glowing orb */
    .glowing-orb {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
}

/* --- MOBILE PHONES (Max Width: 768px) --- */
@media (max-width: 768px) {
    /* Typography Adjustments */
    .hero-title { 
        font-size: 2.5rem; 
    }
    .dash-welcome h1 { 
        font-size: 1.5rem; 
    }

    /* Navigation Headers */
    .landing-header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .landing-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .dash-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    .dash-user-nav {
        justify-content: center;
        width: 100%;
    }

    /* Layouts & Grids (Force single column) */
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .admin-review-grid {
        grid-template-columns: 1fr;
    }

    /* Modals */
    .modal-box {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    /* Dashboard Chart */
    .dash-chart-container {
        height: 250px; /* Shrink height on mobile */
    }
}

/* --- SMALL MOBILE / NARROW SCREENS (Max Width: 480px) --- */
@media (max-width: 480px) {
    /* Make buttons full width for easier tapping */
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    
    /* Transaction History Table */
    .dash-table th, 
    .dash-table td {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    /* Hide the asset icon in tables on small screens to save space */
    .dash-table td i {
        display: none; 
    }
}

/* =========================================
   RESPONSIVENESS (MOBILE, TABLET, DESKTOP)
   ========================================= */

/* --- HEADER & HAMBURGER MENU DEFAULT (DESKTOP) --- */
.mobile-menu-btn {
    display: none; /* Hide hamburger by default */
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-menu-btn:hover {
    color: #a855f7;
}

/* --- TABLETS & SMALL DESKTOPS (Max Width: 992px) --- */
@media (max-width: 992px) {
    /* Investment Tiers: Convert from 3 columns to 2 columns */
    .investment-tiers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- MOBILE PHONES (Max Width: 768px) --- */
@media (max-width: 768px) {
    
    /* 1. HEADER & HAMBURGER MENU */
    .mobile-menu-btn {
        display: block; /* Show hamburger icon */
    }

    .landing-nav-links {
        /* Hide the links by default on mobile */
        position: absolute;
        top: 70px; /* Pushes it just below the header */
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        border-bottom: 1px solid rgba(51, 65, 85, 0.5);
        
        /* Animation settings */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease-in-out;
    }

    /* This class is toggled via JavaScript to open the menu */
    .landing-nav-links.active-menu {
        max-height: 500px;
        opacity: 1;
        padding-bottom: 40px;
    }

    /* 2. LIVE MARKET DATA */
    /* Convert market data to a 2-column grid on phones */
    .market-data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* 3. INVESTMENT TIERS */
    /* Stack investment tiers into a single column */
    .investment-tiers-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px; /* Adds breathing room on the sides */
    }
}

/* --- SMALL NARROW SCREENS (Max Width: 480px) --- */
@media (max-width: 480px) {
    
    /* LIVE MARKET DATA */
    /* Stack market data cards into a single column for tiny screens */
    .market-data-grid {
        grid-template-columns: 1fr;
    }

    /* Make buttons inside the mobile menu full width */
    .landing-nav-links a {
        width: 80%;
        text-align: center;
    }
}

/* =========================================
   HEADER & NAVIGATION BREAKPOINTS
   ========================================= */

/* Default Desktop Toggle Icon State Hidden */
.mobile-toggle-icon {
    display: none;
    font-size: 1.6rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-toggle-icon:hover {
    color: #3b82f6; /* Accent color matching your brand theme */
}

/* Tablet & Mobile Layout Shifts */
@media (max-width: 768px) {
    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .mobile-toggle-icon {
        display: block; /* Reveal hamburger only on mobile/tablet viewports */
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%; /* Spawns menu immediately below the header box */
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98); /* Thick background overlay */
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(51, 65, 85, 0.4);
        
        /* Drawer animation handlers */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        transition: all 0.35s ease-in-out;
    }

    /* Target state when drawer is active */
    .nav-links.active-mobile-menu {
        max-height: 400px;
        opacity: 1;
        padding: 30px 0;
    }

    /* Style corrections for layout buttons inside mobile drawer */
    .nav-links a {
        width: 80%;
        text-align: center;
        padding: 12px 0;
    }
}

/* =========================================
   FLEXIBLE INVESTMENT TIERS MOBILE FIX
   ========================================= */
   @media (max-width: 768px) {
    
    /* 1. Target the main wrapper/container holding all the tier cards */
    /* We include multiple possible common classes so it catches yours perfectly */
    .tiers-container,
    .tiers-wrapper,
    .plans-grid,
    .investment-tiers-grid,
    section[id="plans"] .container {
        display: flex !important;
        flex-direction: column !important; /* Force cards to stack on top of each other */
        align-items: center !important;
        gap: 25px !important;              /* Adds breathing room between stacked cards */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;        /* Prevents edges from touching phone screen borders */
        box-sizing: border-box !important;
    }

    /* 2. Target the individual plan/tier cards */
    .tier-card,
    .plan-card,
    .pricing-card {
        width: 100% !important;            /* Let card scale down fluidly to mobile width */
        max-width: 360px !important;       /* Prevents card from looking insanely wide on tablets */
        box-sizing: border-box !important;
        margin: 0 auto !important;         /* Perfectly centers the cards */
    }
}

/* =========================================
   UNIVERSAL LIVE MARKET MOBILE STACKING PATCH
   ========================================= */
   @media (max-width: 768px) {
    
    /* 1. Force the parent container holding both the coins and chart to collapse vertically */
    .main-header + div + section, /* Fallback structural selector */
    div[class*="market"], 
    section[id*="market"],
    section[id*="live"] {
        display: block !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. Find any container that forces items side-by-side and smash it into a single column */
    div[class*="market"] .container,
    div[class*="live"] .container,
    section[id*="market"] .container,
    .market-section-container,
    .live-market-data-wrapper {
        display: flex !important;
        flex-direction: column !important; /* Force top-to-bottom layout */
        gap: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Target the Coin boxes layout element */
    div[class*="coin"],
    div[class*="sidebar"],
    div[class*="left"] {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-bottom: 20px !important; /* Forces breathing room before the chart starts */
    }

    /* Ensure the individual coin boxes span 100% width safely */
    div[class*="coin"] > div,
    .coin-card,
    .market-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 4. Target the Chart container layout element and drop it below */
    div[class*="chart"],
    div[class*="right"] {
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
        clear: both !important; /* Prevents desktop floats from hanging around */
    }

    /* Keep the internal canvas or chart component responsive */
    div[class*="chart"] canvas,
    div[class*="chart"] svg,
    div[class*="chart"] iframe,
    .chart-wrapper {
        width: 100% !important;
        height: auto !important;
        min-height: 280px !important; /* Prevents vertical crushing on phones */
    }
}