/* 
   BUNYAN CONTROL PREMIUM STYLING SHEET 
   Designed with High-End Glassmorphism, Neon Accents, and Smooth Micro-Animations.
*/

/* --- 1. CSS VARIABLES (Design Tokens) --- */
:root {
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Light Theme (Default - Clean Premium) */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-inner: rgba(241, 245, 249, 0.6);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.15);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    /* Neon Colors (Light optimized) */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.08);
    
    --emerald: #10b981; /* Emerald Success */
    --emerald-glow: rgba(16, 185, 129, 0.1);
    
    --amber: #f59e0b; /* Amber Warning */
    --amber-glow: rgba(245, 158, 11, 0.1);
    
    --rose: #ef4444; /* Rose Danger */
    --rose-glow: rgba(239, 68, 68, 0.1);

    --glass-blur: blur(12px);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
}

/* Dark Theme overrides */
[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-inner: rgba(31, 41, 55, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.25);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #6366f1; /* Neon Indigo */
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base Component Settings (Default Light Style) */
.glass-header {
    background: rgba(248, 250, 252, 0.7) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

footer {
    background: rgba(241, 245, 249, 0.95) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.dashboard-mockup {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05) !important;
}

.dashboard-mockup:hover {
    box-shadow: 0 25px 60px rgba(79, 70, 229, 0.08) !important;
    border-color: var(--border-glow) !important;
}

.mockup-header {
    background: rgba(241, 245, 249, 0.7) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.mockup-title {
    color: var(--text-secondary) !important;
}

.mockup-kpi-card {
    background: rgba(248, 250, 252, 0.6) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.mockup-chart-main, 
.mockup-chart-side {
    background: rgba(248, 250, 252, 0.6) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.bar-bg {
    background: rgba(15, 23, 42, 0.06) !important;
}

.svg-chart line {
    stroke: rgba(15, 23, 42, 0.06) !important;
}

.mockup-footer-stats {
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
}

/* Dark Theme specific component overrides */
[data-theme="dark"] .glass-header {
    background: rgba(11, 15, 25, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] footer {
    background: rgba(15, 23, 42, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .dashboard-mockup {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .dashboard-mockup:hover {
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15) !important;
    border-color: var(--border-glow) !important;
}

[data-theme="dark"] .mockup-header {
    background: rgba(30, 41, 59, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .mockup-title {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .mockup-kpi-card {
    background: rgba(30, 41, 59, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .mockup-chart-main, 
[data-theme="dark"] .mockup-chart-side {
    background: rgba(30, 41, 59, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .bar-bg {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .svg-chart line {
    stroke: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .mockup-footer-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* --- Spacious Premium Form Inputs (Standardized & Large) --- */
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="number"], 
input[type="tel"], 
select,
.input-group input, 
.input-group select,
.form-group input, 
.form-group select,
.input-wrapper input,
.input-wrapper select,
.premium-input {
    width: 100%;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px !important; /* spacious padding for modern look */
    color: var(--text-primary) !important;
    font-size: 1rem;
    font-family: var(--font-ar);
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

input[type="text"]::placeholder, 
input[type="email"]::placeholder, 
input[type="password"]::placeholder, 
input[type="number"]::placeholder, 
input[type="tel"]::placeholder, 
.input-group input::placeholder,
.form-group input::placeholder,
.input-wrapper input::placeholder,
.premium-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
input[type="number"]:focus, 
input[type="tel"]:focus, 
select:focus,
.input-group input:focus, 
.input-group select:focus,
.form-group input:focus, 
.form-group select:focus,
.input-wrapper input:focus,
.premium-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow), inset 0 2px 4px rgba(0, 0, 0, 0.01) !important;
    background: var(--bg-card) !important;
}

/* Responsive and dynamic adjustments */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper svg {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    opacity: 0.65;
    pointer-events: none;
    transition: var(--transition);
}

.input-icon-wrapper input {
    padding-right: 48px !important; /* make room for the right-side icon */
}

.input-icon-wrapper input:focus + svg {
    color: var(--primary);
    opacity: 0.9;
}



/* --- 2. GLOBAL RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.font-outfit { font-family: var(--font-en); }
.text-success { color: var(--emerald) !important; }
.text-warning { color: var(--amber) !important; }
.text-danger { color: var(--rose) !important; }
.text-indigo { color: var(--primary) !important; }

/* --- 3. BACKGROUND GLOW EFFECTS --- */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.glow-1 {
    top: -10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--primary);
}

.glow-2 {
    top: 40%;
    left: -5%;
    width: 550px;
    height: 550px;
    background: var(--emerald);
}

.glow-3 {
    bottom: 5%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: var(--primary);
}

/* --- 4. GLASSMORPHISM CORE PANELS --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-panel-inner {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
}

/* --- 5. BUTTONS & BADGES --- */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-glow);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-family: var(--font-ar);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--bg-card-inner);
}

.btn-block {
    width: 100%;
}

/* --- 6. HEADER & NAVIGATION --- */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.accent-text {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition);
}

/* --- 7. HERO SECTION --- */
.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-en);
    margin-bottom: 5px;
}

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

/* --- 8. DASHBOARD UI MOCKUP --- */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-mockup:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
    border-color: var(--border-glow);
}

.mockup-header {
    background: rgba(30, 41, 59, 0.5);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots .red { background: #ef4444; }
.mockup-dots .yellow { background: #f59e0b; }
.mockup-dots .green { background: #10b981; }

.mockup-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mockup-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

.mockup-body {
    padding: 20px;
}

.mockup-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.mockup-kpi-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 12px;
}

.mockup-kpi-card span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.mockup-kpi-card .val {
    font-size: 1.15rem;
    font-weight: 700;
}

.mockup-kpi-card .trend {
    font-size: 0.65rem;
    margin-top: 4px;
    opacity: 0.8;
}

.mockup-kpi-card .trend.up { color: var(--emerald); }
.mockup-kpi-card .trend.down { color: var(--amber); }

.mockup-charts-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 15px;
    margin-bottom: 20px;
}

.mockup-chart-main, .mockup-chart-side {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
}

.mockup-chart-main h4, .mockup-chart-side h4 {
    font-size: 0.8rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

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

.chart-legends {
    display: flex;
    gap: 10px;
    font-size: 0.65rem;
}

.legend {
    display: flex;
    align-items: center;
    gap: 4px;
}

.legend::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.legend.pv::before { background: var(--primary); }
.legend.ev::before { background: var(--emerald); }
.legend.ac::before { background: var(--amber); }

.chart-area-visual {
    height: 120px;
    position: relative;
}

.svg-chart {
    width: 100%;
    height: 100%;
}

.progress-bar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-bar-item .lbl {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.bar-bg {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
}

.bar-fill.red { background: var(--rose); }
.bar-fill.green { background: var(--emerald); }
.bar-fill.yellow { background: var(--amber); }

.mockup-footer-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.mockup-footer-stats .metric {
    display: flex;
    align-items: center;
    gap: 6px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.indicator.green { background: var(--emerald); }
.indicator.red { background: var(--rose); }

/* --- 9. INTERACTIVE CALCULATOR SECTION --- */
.calculator-section {
    padding: 100px 0;
    background: rgba(30, 41, 59, 0.15);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.calc-inputs h3, .calc-outputs h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--primary-glow);
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.input-wrapper input {
    width: 100%;
    padding: 12px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-en);
    outline: none;
    transition: var(--transition);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 5px;
    background: var(--bg-card-inner);
    outline: none;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-val {
    min-width: 70px;
    text-align: left;
    font-family: var(--font-ar);
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.input-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

/* Calc Outputs side */
.calc-outputs {
    background: var(--bg-card-inner);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.output-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loss-card {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.loss-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.loss-card .value {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-en);
    margin-bottom: 8px;
}

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

.output-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.details-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
}

.details-card .lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.details-card .val {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-en);
}

.calc-advice {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.advice-icon {
    font-size: 1.4rem;
}

.advice-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.advice-text strong {
    color: var(--primary);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.animate-pulse {
    animation: pulse 3s infinite ease-in-out;
}

/* --- 10. FEATURES SECTION --- */
.features-section {
    padding: 100px 0;
}

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

.feature-card {
    padding: 35px;
    cursor: pointer;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-glow);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- 11. EVM SIMULATOR SECTION --- */
.evm-section {
    padding: 100px 0;
    background: rgba(30, 41, 59, 0.1);
    border-top: 1px solid var(--border-color);
}

.evm-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.evm-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.evm-info p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.evm-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    background: var(--primary-glow);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-card h4 {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

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

.evm-simulator {
    padding: 40px;
}

.evm-simulator h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.evm-simulator .sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.sim-controls {
    margin-bottom: 30px;
}

.sim-control-group {
    margin-bottom: 20px;
}

.sim-control-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.slider-indigo::-webkit-slider-thumb { background: var(--primary); }
.slider-emerald::-webkit-slider-thumb { background: var(--emerald); }
.slider-amber::-webkit-slider-thumb { background: var(--amber); }

.gauge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.gauge-card {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.gauge-card span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 10px;
}

.gauge-val {
    font-size: 2.2rem;
    font-weight: 800;
}

.gauge-status {
    font-size: 0.75rem;
    margin-top: 8px;
    font-weight: 500;
}

.sim-message {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

/* --- 12. EXECUTIVE REPORTS SECTION --- */
.reports-section {
    padding: 100px 0;
}

.reports-tabs-container {
    padding: 30px;
}

.reports-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 35px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-ar);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tab-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.tab-text ul {
    list-style: none;
}

.tab-text ul li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.tab-text ul li::before {
    content: '✔️';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 0.85rem;
}

.tab-visual {
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
}

/* Document Mockup Inside Reports */
.doc-mockup {
    font-family: var(--font-ar);
}

.doc-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.doc-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.doc-table th, .doc-table td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.doc-table th {
    color: var(--text-secondary);
    font-weight: 500;
}

.doc-table td {
    color: var(--text-primary);
}

/* Exec Charts inside reports */
.exec-card-visual {
    padding: 15px 0;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.exec-bar-chart {
    display: flex;
    justify-content: space-around;
    height: 160px;
    align-items: flex-end;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 60px;
}

.col-val {
    font-size: 0.7rem;
    font-family: var(--font-en);
    font-weight: 700;
}

.col-bar {
    width: 16px;
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.col-bar.green {
    background: var(--emerald);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.col-bar.red {
    background: var(--rose);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
}

.col-lbl {
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Finance Reports Mockup */
.finance-card-visual {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.fin-row strong {
    font-family: var(--font-en);
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
}

/* --- 13. REQUEST DEMO SECTION (CTA) --- */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.c-feat {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form-panel {
    padding: 40px;
}

.contact-form-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.contact-form-panel p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-card-inner);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-ar);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
}

/* --- 14. FOOTER --- */
footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 400px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- 15. RESPONSIVE BREAKPOINTS (Mobile & Tablet) --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .calculator-card {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .evm-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-links {
        display: none; /* Mobile menu toggled by JS later */
    }
    
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .output-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Alert & Confirm Modals & Global Loading Overlay Styles */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--font-ar);
    direction: rtl;
    text-align: center;
    backdrop-filter: blur(15px);
}

.custom-modal-overlay.active .custom-modal-container {
    transform: scale(1);
}

.custom-modal-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    display: inline-block;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.custom-modal-message {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-modal-btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-ar);
}

.custom-modal-btn-confirm {
    background: var(--rose);
    color: white !important;
    border-color: var(--rose);
}
.custom-modal-btn-confirm:hover {
    background: #d32f2f;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.custom-modal-btn-cancel {
    background: var(--bg-card-inner);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.custom-modal-btn-cancel:hover {
    background: var(--border-color);
}

/* Global Loading Spinner styles */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.global-loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-spinner-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(15px);
}

.global-loading-overlay.active .loading-spinner-box {
    transform: scale(1);
}

.spinner-ring {
    width: 55px;
    height: 55px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: var(--font-ar);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.loading-subtext {
    font-family: var(--font-ar);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.logout-btn {
    background: none;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.company-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Header Profile Dropdown Styles */
.user-profile-menu {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.profile-trigger:hover {
    background: var(--bg-card-inner);
    border-color: rgba(99, 102, 241, 0.25);
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #ffffff !important;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[data-theme="dark"] .profile-dropdown {
    background: #111827 !important;
}

.profile-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-ar);
    border: none;
    background: transparent;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

.profile-dropdown .dropdown-item:hover {
    background: var(--bg-card-inner);
    color: var(--primary);
}

.profile-dropdown .dropdown-item.logout-item {
    color: #fca5a5;
}

.profile-dropdown .dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.profile-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.profile-dropdown .badge-new {
    background: var(--primary-glow);
    color: var(--primary);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}

/* --- Global Mobile Responsiveness for All Screens --- */
@media (max-width: 768px) {
    .ce-header-inner {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        text-align: center !important;
    }
    .ce-header-left {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
    }
    .ce-header-right {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .back-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    .alerts-banner {
        padding: 12px 16px !important;
        margin: 15px 0 !important;
    }
    .alerts-banner-header {
        justify-content: center !important;
        text-align: center !important;
    }
    .alert-item.neon-item, .alert-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
    .forecast-grid-2col, .grid-2col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .ce-table th, .ce-table td {
        padding: 8px 6px !important;
        font-size: 0.78rem !important;
    }
    .ce-table th {
        font-size: 0.8rem !important;
    }
    .analysis-card {
        padding: 16px !important;
    }
    .analysis-card h4 {
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .ce-modal-content {
        padding: 16px !important;
    }
    .kpi-bar {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* --- Floating Actions Container --- */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10000;
    transition: all 0.3s ease;
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    padding: 0 !important;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.85) !important;
    border-color: rgba(37, 211, 102, 0.4) !important;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #25d366 !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.phone-btn {
    background: rgba(99, 102, 241, 0.85) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.phone-btn:hover {
    background: #6366f1 !important;
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

.back-to-top-btn {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--border-color);
    color: var(--text-primary);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] .back-to-top-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #0f172a !important;
}

[data-theme="dark"] .back-to-top-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #f3f4f6 !important;
}

.back-to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- LANDING PAGE MOBILE VIEW STYLING CORRECTIONS --- */
@media (max-width: 768px) {
    /* Navbar Corrections */
    .navbar {
        height: 70px !important;
        padding: 0 15px !important;
    }
    
    .nav-links {
        top: 70px !important; /* aligns mobile drop menu exactly below 70px header */
        gap: 15px !important;
        background: var(--bg-main) !important;
        border-bottom: 1.5px solid var(--border-color) !important;
        box-shadow: var(--shadow) !important;
        padding: 25px 20px !important;
    }

    .nav-links a {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        padding: 8px 0 !important;
        width: 100% !important;
    }

    /* Mobile Nav Actions inside drop menu */
    .mobile-nav-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 1.5px solid var(--border-color) !important;
        width: 100% !important;
    }

    .mobile-nav-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-weight: 700 !important;
    }

    /* Hero Section padding */
    .hero-section {
        padding: 110px 0 60px 0 !important;
    }

    .hero-content h1 {
        font-size: 2.1rem !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        text-align: center !important;
        margin-bottom: 25px !important;
    }

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

    .hero-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-stats {
        justify-content: space-around !important;
        gap: 15px !important;
        padding-top: 20px !important;
    }

    .stat-item {
        text-align: center !important;
    }

    .stat-item h3 {
        font-size: 1.5rem !important;
    }

    /* Dashboard Mockup Mobile Optimizations */
    .dashboard-mockup {
        border-radius: 14px !important;
    }

    .mockup-header {
        padding: 10px 14px !important;
    }

    .mockup-title {
        font-size: 0.75rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    .mockup-body {
        padding: 12px !important;
    }

    /* KPI Grid stacks in single column for neat readability on small screens */
    .mockup-kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .mockup-kpi-card {
        padding: 10px 12px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right !important;
    }

    .mockup-kpi-card span {
        margin-bottom: 0 !important;
        font-size: 0.8rem !important;
    }

    .mockup-kpi-card .val {
        font-size: 1.05rem !important;
    }

    .mockup-kpi-card .trend {
        display: none !important; /* hides trend text on mobile to save space */
    }

    /* Chart grid stacks neatly */
    .mockup-charts-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .mockup-chart-main, .mockup-chart-side {
        padding: 12px !important;
    }

    .chart-area-visual {
        height: 100px !important;
    }

    /* Footer metrics wrap nicely */
    .mockup-footer-stats {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: flex-start !important;
        padding-top: 12px !important;
    }

    /* Interactive Calculator mobile adjustments */
    .calculator-section {
        padding: 60px 0 !important;
    }

    .calculator-card {
        padding: 20px 15px !important;
        border-radius: 14px !important;
    }

    .calc-inputs {
        padding: 0 !important;
    }

    .calc-outputs {
        padding: 20px 15px !important;
        border-radius: 12px !important;
    }

    .loss-card {
        padding: 15px !important;
    }

    .loss-card .value {
        font-size: 1.7rem !important;
    }

    .output-details-grid {
        grid-template-columns: 1fr !important; /* Stacks detail metrics cleanly */
        gap: 10px !important;
    }

    .details-card {
        padding: 10px 12px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .details-card .lbl {
        margin-bottom: 0 !important;
    }

    .details-card .val {
        font-size: 1.05rem !important;
    }

    .calc-advice {
        margin-top: 15px !important;
        gap: 8px !important;
    }

    /* EVM simulator padding */
    .evm-section {
        padding: 60px 0 !important;
    }

    .evm-simulator {
        padding: 20px 15px !important;
        border-radius: 14px !important;
    }

    .gauge-grid {
        grid-template-columns: 1fr !important; /* Stacks EVM indicators */
        gap: 12px !important;
    }

    .gauge-card {
        padding: 15px !important;
    }

    .gauge-val {
        font-size: 1.8rem !important;
    }

    /* Executive Reports swipeability */
    .reports-section {
        padding: 60px 0 !important;
    }

    .reports-tabs-container {
        padding: 15px !important;
        border-radius: 14px !important;
    }

    .tab-visual {
        padding: 12px !important;
        border-radius: 10px !important;
        overflow-x: auto !important; /* horizontal swipe for wide report tables */
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }

    .doc-table {
        min-width: 420px !important; /* guarantees swipe works without breaking width layout */
    }

    /* Contact Form CTA mobile optimizations */
    .contact-section {
        padding: 60px 0 !important;
    }

    .contact-container {
        gap: 30px !important;
    }

    .contact-info h2 {
        font-size: 1.7rem !important;
        text-align: center !important;
    }

    .contact-info p {
        font-size: 0.95rem !important;
        text-align: center !important;
    }

    .contact-form-panel {
        padding: 25px 15px !important;
        border-radius: 14px !important;
    }

    .contact-form-panel h3 {
        font-size: 1.15rem !important;
        text-align: center !important;
    }

    .contact-form-panel p {
        text-align: center !important;
    }

    /* Footer Mobile formatting */
    footer {
        padding: 50px 0 20px 0 !important;
    }

    .footer-container {
        gap: 30px !important;
        text-align: center !important;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        margin: 15px auto 0 auto !important;
    }

    .footer-links-grid {
        text-align: center !important;
    }

    /* Floating button sizing on small phones */
    .floating-actions-container {
        bottom: 20px !important;
        left: 20px !important;
        gap: 12px !important;
    }

    .floating-btn {
        width: 48px !important;
        height: 48px !important;
    }

    .floating-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}


