/* ProlificMining.com Premium Design System Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #060b13;
    --bg-card: rgba(13, 23, 42, 0.7);
    --bg-card-hover: rgba(21, 37, 68, 0.85);
    --bg-header: rgba(6, 11, 19, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    
    /* Brand Colors */
    --primary: #3b82f6; /* Premium Blue */
    --primary-grad: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --accent: #10b981; /* Emerald Green */
    --accent-grad: linear-gradient(135deg, #047857 0%, #10b981 100%);
    --danger: #ef4444; /* Alert Red */
    --danger-grad: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    --warning: #f59e0b; /* Amber Gold */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Layout Tokens */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-header: rgba(241, 245, 249, 0.85);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(59, 130, 246, 0.6);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

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

/* Common Components */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-grad);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-success {
    background: var(--accent-grad);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

/* Landing Page Specifics */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #60a5fa 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-weight: 400;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul li a:hover {
    color: var(--primary);
}

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

.mobile-nav-actions {
    display: none;
}


/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

nav ul li a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 24px 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dark overlay on top of slides so text remains highly readable */
.hero-background-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 11, 19, 0.85) 0%, rgba(6, 11, 19, 0.65) 50%, rgba(6, 11, 19, 0.9) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.hero-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-slider-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

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

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--accent);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Market Ticker */
.ticker-wrap {
    width: 100%;
    background: rgba(13, 23, 42, 0.5);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 8px 0;
}

.ticker {
    display: flex;
    width: max-content;
    animation: tickerLoop 30s linear infinite;
    gap: 40px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ticker-item .change {
    font-weight: 600;
}

.ticker-item .change.up {
    color: var(--accent);
}

.ticker-item .change.down {
    color: var(--danger);
}

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

/* Section Common */
.section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: left;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Plans Table / Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.plan-card {
    position: relative;
    overflow: hidden;
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 4px 35px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-tier {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.plan-features li svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Calculator Section */
.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group, .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label, .form-group label, .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-group input, .input-group select, .input-group textarea,
.form-group input, .form-group select, .form-group textarea,
.form-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
.form-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* Disabled and Read-Only states */
.input-group input:disabled, .input-group input[disabled],
.form-group input:disabled, .form-group input[disabled],
.form-field:disabled, .form-field[disabled] {
    background: rgba(255, 255, 255, 0.01) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

/* Select dropdown options style to prevent color issues */
.input-group select option, .form-group select option, .form-field option {
    background: #0d172a;
    color: #f8fafc;
}

/* Light Mode Overrides for Inputs & Form Fields */
[data-theme="light"] .input-group input,
[data-theme="light"] .input-group select,
[data-theme="light"] .input-group textarea,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-field {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

[data-theme="light"] .input-group input:focus,
[data-theme="light"] .input-group select:focus,
[data-theme="light"] .input-group textarea:focus,
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .input-group input:disabled,
[data-theme="light"] .form-group input:disabled,
[data-theme="light"] .form-field:disabled,
[data-theme="light"] .form-field[disabled] {
    background: #e2e8f0 !important;
    color: #64748b !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .input-group select option,
[data-theme="light"] .form-group select option,
[data-theme="light"] .form-field option {
    background: #ffffff;
    color: #0f172a;
}

.calc-result h4 {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.calc-result .value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 24px;
}

/* FAQ Accordion */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(13, 23, 42, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer styling */
footer {
    background: #04080e;
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 20px 0;
    max-width: 280px;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links ul a:hover {
    color: var(--primary);
}

.footer-disclosure {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: justify;
}

/* Dashboard UI Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
    width: 260px;
    background: rgba(13, 23, 42, 0.95);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-logo {
    padding: 0 24px 30px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    font-weight: 500;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
}

.sidebar-menu li.active a, .sidebar-menu li a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.08);
}

.sidebar-menu li.active a {
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-footer {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-badge-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
}

.user-badge-mini img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.dashboard-main {
    flex-grow: 1;
    margin-left: 260px;
    padding: 30px 40px;
    max-width: calc(100vw - 260px);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Dashboard Home UI Grid */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card .val {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.stat-card .trend {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend.up { color: var(--accent); }
.trend.down { color: var(--danger); }

/* Grid Dashboard Layouts */
.dash-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Watchlist & Widget Tables */
.activity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.activity-table th, .activity-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.activity-table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.activity-table td {
    font-size: 0.9rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
}

.status-badge.completed, .status-badge.approved, .status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.failed, .status-badge.rejected {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Trading View Widget Area */
.trading-center-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    height: calc(100vh - 160px);
}

.chart-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-container {
    flex-grow: 1;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.order-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Buy / Sell Trading Tab Form */
.trade-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.trade-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.trade-tab.buy.active {
    background: var(--accent-grad);
    color: white;
}

.trade-tab.sell.active {
    background: var(--danger-grad);
    color: white;
}

/* Legacy form-field wrapper support */
.form-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* Wallet deposit forms */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.payment-method-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.01);
}

.payment-method-card:hover, .payment-method-card.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.payment-method-card svg {
    margin-bottom: 12px;
    color: var(--primary);
}

.payment-method-card h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.payment-method-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal {
    width: 100%;
    max-width: 500px;
    background: #090f1d;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 24px;
}

.modal-close {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

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

/* User Account Settings & KYC upload */
.kyc-upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.01);
}

.kyc-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .calc-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .dash-content-grid {
        grid-template-columns: 1fr;
    }
    .stat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trading-center-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .chart-panel {
        height: 450px;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    /* ========== LANDING PAGE NAV ========== */
    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 11, 19, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 16px 24px 28px;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    #nav-menu.active {
        display: block;
    }

    #nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        list-style: none;
        margin-bottom: 16px;
    }

    #nav-menu ul li a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
        font-weight: 500;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-secondary);
        transition: var(--transition);
    }

    #nav-menu ul li:last-child a {
        border-bottom: none;
    }

    #nav-menu ul li a:hover,
    #nav-menu ul li a.active {
        color: var(--primary);
        padding-left: 8px;
    }

    /* Mobile CTA buttons inside menu */
    #nav-menu .mobile-nav-actions {
        display: flex;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }

    #nav-menu .mobile-nav-actions a {
        flex: 1;
        text-align: center;
        padding: 10px 16px;
        border-radius: var(--radius-md);
        font-weight: 600;
        font-size: 0.9rem;
        font-family: 'Outfit', sans-serif;
    }

    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hamburger → X animation */
    .mobile-toggle span {
        transform-origin: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* ========== DASHBOARD SIDEBAR ========== */
    .sidebar {
        transform: translateX(-100%);
        overflow-y: auto;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .dashboard-main {
        margin-left: 0;
        max-width: 100vw;
        padding: 16px 14px 80px;
    }

    /* ========== DASHBOARD HEADER ========== */
    .dash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    .dash-header > div:first-child h1 {
        font-size: 1.35rem !important;
    }
    .dash-header > div:last-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ========== STAT CARDS ========== */
    .stat-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* ========== PAYMENT GRID ========== */
    .payment-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    /* ========== FEATURES / SECTORS GRID ========== */
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    .sectors-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ========== WALLET GRIDS ========== */
    .wallet-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .wallet-forms-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* ========== REFERRALS GRID ========== */
    .ref-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }

    /* ========== INVESTMENTS GRID ========== */
    .investments-plans-grid {
        grid-template-columns: 1fr !important;
    }

    /* ========== TRADING VIEW (SELF-TRADING) ========== */
    .trading-center-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 14px;
    }
    .chart-panel {
        height: 340px;
        min-height: 300px;
        margin-bottom: 0;
    }
    .order-panel {
        gap: 12px;
    }

    /* ========== TABLE OVERFLOW ========== */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .activity-table {
        min-width: 500px;
    }

    /* ========== MODAL ========== */
    .modal {
        max-width: 95vw;
        margin: 0 12px;
    }

    /* ========== FOOTER ========== */
    .footer-container {
        grid-template-columns: 1fr;
    }

    /* ========== LANDING HERO ========== */
    .hero-section {
        padding: 130px 20px 60px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .stat-item h3 {
        font-size: 1.4rem;
    }
    .section {
        padding: 60px 20px;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* ========== GLASS CARD PADDING ========== */
    .glass-card {
        padding: 18px 16px;
    }

    /* ========== ADMIN DASHBOARD GRIDS ========== */
    .admin-stat-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    /* ========== VERY SMALL SCREENS ========== */
    .stat-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .sectors-grid {
        grid-template-columns: 1fr !important;
    }
    .ref-stats-grid {
        grid-template-columns: 1fr !important;
    }
    .admin-stat-grid {
        grid-template-columns: 1fr !important;
    }
    .payment-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-main {
        padding: 12px 10px 80px;
    }
    .glass-card {
        padding: 14px 12px;
        border-radius: 14px;
    }
    .dash-header > div:first-child h1 {
        font-size: 1.2rem !important;
    }
    .stat-card .val,
    .stat-card__value {
        font-size: 1.5rem !important;
    }
    /* Mobile hamburger for dashboard sidebar */
    .dash-mobile-toggle {
        display: flex !important;
    }
}
