:root {
    --primary: #1B4332;
    --primary-light: #2D6A4F;
    --primary-dark: #0B1A14;
    --accent: #C9A227;
    --accent-light: #C9A227;
    --accent-dark: #A8881F;
    --bg: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-dark: #0B1A14;
    --bg-dark-card: #0E1D17;
    --text: #2C3E50;
    --text-light: #6C757D;
    --text-muted: #ADB5BD;
    --border: #E9ECEF;
    --border-light: #F1F3F5;
    --success: #28A745;
    --warning: #F0AD4E;
    --danger: #DC3545;
    --info: #17A2B8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease;
}

/* ===== LIGHT THEME ===== */
html[data-theme="light"] {
    --bg: #f7f6f3;
    --bg-dark: #f7f6f3;
    --bg-dark-card: #FFFFFF;
    --primary: #1B4332;
    --accent: #B8962E;
}
html[data-theme="light"] .sidebar {
    background: #fff;
    border-left: 1px solid #E9ECEF;
}
html[data-theme="light"] .sidebar-brand { border-bottom-color: #E9ECEF; }
html[data-theme="light"] .sidebar-brand span { color: #999; }
html[data-theme="light"] .nav-section-title { color: #aaa; }
html[data-theme="light"] .nav-link { color: #555; }
html[data-theme="light"] .nav-link:hover { background: rgba(0,0,0,0.04); color: #222; }
html[data-theme="light"] .nav-link.active { background: rgba(196,162,84,0.1); color: var(--accent); }
html[data-theme="light"] .sidebar-footer { border-top-color: #E9ECEF; }
html[data-theme="light"] .sidebar-user-name { color: #222; }
html[data-theme="light"] .sidebar-user-role { color: #999; }
html[data-theme="light"] .nav-link[style*="color: rgba(255,255,255,0.4)"] { color: #aaa !important; }

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    font-family: inherit;
}
.theme-toggle:hover {
    border-color: rgba(196,162,84,0.3);
    color: #C9A227;
    background: rgba(196,162,84,0.06);
}
html[data-theme="light"] .theme-toggle {
    border-color: #ddd;
    color: #666;
    background: #f5f5f5;
}
html[data-theme="light"] .theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
/* Light theme lang switcher */
html[data-theme="light"] .lang-toggle {
    border-color: #ddd;
    color: #555;
    background: #f5f5f5;
}
html[data-theme="light"] .lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
html[data-theme="light"] .lang-menu {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
html[data-theme="light"] .lang-option { color: #555; }
html[data-theme="light"] .lang-option:hover { background: #f5f5f5; color: #222; }
html[data-theme="light"] .lang-option.active { background: rgba(196,162,84,0.1); color: var(--accent); }

/* Light theme - Hero split: light background */
html[data-theme="light"] .hero { background: #f7f6f3 !important; }
html[data-theme="light"] .hero a[style*="border: 1px solid rgba(255,255,255"] { border-color: rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.8) !important; background: rgba(255,255,255,0.05) !important; }
html[data-theme="light"] .hero-stats-grid { background: rgba(14,29,23,0.6) !important; backdrop-filter: blur(16px) !important; border-color: rgba(196,162,84,0.1) !important; }
html[data-theme="light"] .hero-stats-grid span[style*="color: #C9A227"],
html[data-theme="light"] .hero-stats-grid div[style*="color: #C9A227"] { color: #C9A227 !important; }
html[data-theme="light"] .hero-stats-grid div[style*="color: rgba(255,255,255"] { color: rgba(255,255,255,0.45) !important; }
html[data-theme="light"] .hero-stats-grid span[style*="color: rgba(255,255,255"] { color: rgba(255,255,255,0.3) !important; }
html[data-theme="light"] .hero-stats-grid div[style*="background: linear-gradient(180deg, transparent, rgba(196"] { background: linear-gradient(180deg, transparent, rgba(196,162,84,0.15), transparent) !important; }

/* Light Landing sections */
html[data-theme="light"] section[style*="background: #0E1D17"],
html[data-theme="light"] section[style*="background: #0B1A14"] {
    background: #FAFBFC !important;
    color: #222 !important;
}
html[data-theme="light"] .hero-stats-grid {
    background: #fff !important;
    border-color: #e0e0e0 !important;
    backdrop-filter: none !important;
}
html[data-theme="light"] .hero-stats-grid [data-i18n*="stat"][style*="color: #C9A227"] { color: #C9A227 !important; }
html[data-theme="light"] .hero-stats-grid [style*="color: rgba(255,255,255"] { color: rgba(255,255,255,0.55) !important; }
html[data-theme="light"] .hero-stats-grid [style*="background: linear-gradient(180deg, transparent, rgba(196"] { background: linear-gradient(180deg, transparent, rgba(196,162,84,0.15), transparent) !important; }

/* Light Sectors */
html[data-theme="light"] .sector-card {
    background: #fff !important;
    border-color: #e8e8e8 !important;
}
html[data-theme="light"] .sector-card h3 { color: #222 !important; }
html[data-theme="light"] .sector-card p { color: #888 !important; }
html[data-theme="light"] .sector-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important; border-color: #B8962E !important; }

/* Light section headings */
html[data-theme="light"] section h2 { color: #1B4332 !important; }
html[data-theme="light"] section h2 span[style*="color: #C9A227"] { color: #B8962E !important; }
html[data-theme="light"] section p[style*="color: rgba(255,255,255"] { color: #888 !important; }
html[data-theme="light"] section span[style*="color: #C9A227"] { color: #B8962E !important; }
html[data-theme="light"] section div[style*="color: #C9A227"] { color: #B8962E !important; }

/* Light Steps */
html[data-theme="light"] .steps-grid > div,
html[data-theme="light"] section div[style*="background: #0E1D17"][style*="border"] {
    background: #fff !important;
    border-color: #e8e8e8 !important;
}
html[data-theme="light"] .steps-grid h4 { color: #222 !important; }
html[data-theme="light"] .steps-grid p { color: #888 !important; }

/* Light Footer */
html[data-theme="light"] footer { background: #f0f0f0 !important; color: #888 !important; border-top-color: #e0e0e0 !important; }

/* Light Header - keep dark on landing */
/* Light header handled by body.light-mode .landing-header above */

/* Light Badge */
html[data-theme="light"] .hero div[style*="border: 1px solid rgba(196,162,84"] {
    background: rgba(27,67,50,0.06) !important;
    border-color: rgba(27,67,50,0.15) !important;
}

/* Light - hero stats stay dark/gold */
body.light-mode .hero-stats-grid div[style*="font-weight: 800"] { color: #C9A227 !important; }
body.light-mode .hero-stats-grid div[style*="color: rgba(255,255,255,0.45)"],
body.light-mode .hero-stats-grid div[style*="color: rgba(255,255,255,0.55)"],
body.light-mode .hero-stats-grid div[style*="color: rgba(255,255,255,0.3)"] { color: rgba(255,255,255,0.55) !important; }
body.light-mode .hero-stats-grid span[style*="font-weight: 800"] { color: #C9A227 !important; }
body.light-mode .hero-stats-grid span[style*="color: rgba(255,255,255"] { color: rgba(255,255,255,0.55) !important; }
body.light-mode .hero-stats-grid div[style*="background: linear-gradient(180deg"] { background: linear-gradient(180deg, transparent, rgba(196,162,84,0.15), transparent) !important; }

/* Light - section inline overrides */
/* Light - hero */
body.light-mode .hero { background: #f7f6f3 !important; }
body.light-mode .hero > div[style*="radial-gradient"] { display: none !important; }
body.light-mode .hero-img { box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important; }
body.light-mode .hero-heading { color: #1B4332 !important; text-shadow: none !important; }
body.light-mode .hero-heading .gold { color: #B8962E !important; -webkit-text-fill-color: unset !important; }
body.light-mode .hero-subtitle { color: #666 !important; }
body.light-mode .hero-cta-primary { background: #1B4332 !important; color: #fff !important; box-shadow: 0 4px 16px rgba(27,67,50,0.2) !important; }
/* secondary CTA handled above */
body.light-mode .hero-stats-grid { background: transparent !important; border: none !important; box-shadow: none !important; }
body.light-mode .hero div[style*="border-top: 2px solid"],
body.light-mode .hero div[style*="border-bottom: 2px solid"] { border-color: #1B4332 !important; }
body.light-mode .hero span[style*="color: #C9A227"],
body.light-mode .hero span[style*="background: #C9A227"] { color: #B8962E !important; }
body.light-mode .hero div[style*="background: #C9A227"] { background: #1B4332 !important; }
body.light-mode .hero div[style*="border: 1px solid rgba(196,162,84"] { background: rgba(27,67,50,0.05) !important; border-color: rgba(27,67,50,0.12) !important; }

/* ===== LIGHT MODE - ALL SECTIONS ===== */

/* All dark sections → light */
body.light-mode {
    background: #f7f6f3 !important;
}
html[data-theme="light"] body section,
html[data-theme="light"] body footer {
    background: #f7f6f3 !important;
    color: #222 !important;
}
html[data-theme="light"] body section *[style*="background: rgba(14,29,23"],
html[data-theme="light"] body section *[style*="background: rgba(11,26,20"],
html[data-theme="light"] body section *[style*="background: #0B1A14"],
html[data-theme="light"] body section *[style*="background: #0E1D17"] {
    background: transparent !important;
}

/* Section headings */
body.light-mode section:not(.hero) h2 { color: #1B4332 !important; }
body.light-mode section:not(.hero) h2 span { color: #B8962E !important; }
body.light-mode section:not(.hero) p { color: #777 !important; }

/* Badge pills */
body.light-mode section:not(.hero) div[style*="border-radius: 30px"] {
    background: rgba(27,67,50,0.05) !important;
    border-color: rgba(27,67,50,0.12) !important;
}
body.light-mode section:not(.hero) span[style*="color: #C9A227"] { color: #B8962E !important; }
body.light-mode section:not(.hero) span[style*="background: #C9A227"] { background: #1B4332 !important; }
body.light-mode section:not(.hero) div[style*="color: #C9A227"] { color: #B8962E !important; }

/* About section */
body.light-mode .about-section { background: #f7f6f3 !important; padding: 48px 40px !important; }
body.light-mode .about-section h2 { color: #1B4332 !important; }
body.light-mode .about-section p { color: #555 !important; }
body.light-mode .about-section div[style*="background: rgba(255,255,255,0.02)"] { background: transparent !important; border-color: #e0ded8 !important; }
body.light-mode .about-section div[data-i18n*="about_highlight"] { color: #1B4332 !important; }
body.light-mode .about-section div[style*="font-size: 12px; color: rgba(255"] { color: #999 !important; }
body.light-mode .about-section div[style*="background: rgba(196,162,84,0.1)"] { background: rgba(27,67,50,0.06) !important; border-color: rgba(27,67,50,0.1) !important; }
body.light-mode .about-section svg[stroke="#C9A227"] { stroke: #1B4332; }
body.light-mode .about-section div[style*="width: 40px; height: 2px"] { background: #1B4332 !important; }

/* Sector cards */
body.light-mode .sector-card {
    background: #fff !important;
    border-color: #e8e8e8 !important;
}
body.light-mode .sector-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
    border-color: #B8962E !important;
}
body.light-mode .sector-card h3 { color: #1B4332 !important; }
body.light-mode .sector-card p { color: #888 !important; }
body.light-mode .sector-card div[style*="background: linear-gradient(135deg"] {
    background: linear-gradient(135deg, rgba(27,67,50,0.08), rgba(27,67,50,0.02)) !important;
    border-color: rgba(27,67,50,0.1) !important;
}
body.light-mode .sector-card svg[stroke="#C9A227"] { stroke: #1B4332; }

/* Steps timeline */
body.light-mode .steps-timeline div[style*="background: rgba(196,162,84"] {
    background: rgba(27,67,50,0.15) !important;
}
body.light-mode .step-item > div:first-child {
    background: #f7f6f3 !important;
    border-color: #1B4332 !important;
    color: #1B4332 !important;
    box-shadow: 0 0 0 6px #f7f6f3 !important;
}
body.light-mode .step-item > div:first-child svg { stroke: #1B4332; }
body.light-mode .step-item > div:last-child {
    background: #fff !important;
    border-color: #e8e8e8 !important;
}
body.light-mode .step-item h4 { color: #1B4332 !important; }
body.light-mode .step-item p { color: #888 !important; }
body.light-mode .step-item div[style*="color: #C9A227"] { color: #1B4332 !important; }

/* Steps grid (desktop) - number circles */
body.light-mode .steps-grid > div[style*="background: #0E1D17"] {
    background: #fff !important;
    border-color: #e8e8e8 !important;
}
body.light-mode div[style*="background: #C9A227"][style*="border-radius: 50%"] {
    background: #1B4332 !important;
    color: #fff !important;
}

/* Mobile vertical timeline line */
body.light-mode .steps-grid::before {
    background: linear-gradient(180deg, #1B4332, rgba(27,67,50,0.15)) !important;
}

/* Footer */
body.light-mode footer {
    background: #f0f0f0 !important;
    color: #888 !important;
    border-top-color: #e0e0e0 !important;
}

/* Decorative elements - hide in light */
body.light-mode div[style*="background: radial-gradient"],
body.light-mode div[style*="background: linear-gradient(90deg, transparent 5%"] {
    display: none !important;
}

/* Divider lines */
body.light-mode div[style*="background: linear-gradient(90deg, transparent 5%"] {
    background: linear-gradient(90deg, transparent 5%, rgba(0,0,0,0.06) 50%, transparent 95%) !important;
}

/* Light auth pages */
html[data-theme="light"] .auth-sidebar {
    background: #1B4332 !important;
}
html[data-theme="light"] .auth-form-wrap {
    background: #fff !important;
}

/* Light topbar */
html[data-theme="light"] .topbar {
    background: #fff !important;
    border-bottom-color: #e8e8e8 !important;
}

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

body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    direction: rtl;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ===== LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-dark);
    color: #fff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.sidebar-brand span {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.3);
    padding: 0 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
}

.nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-link.active {
    background: rgba(196,162,84,0.12);
    color: var(--accent);
}

.nav-link .icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-link.active .icon { opacity: 1; }

.nav-badge {
    margin-right: auto;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: 280px;
}

.topbar {
    background: #fff;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-title h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.topbar-title p {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-btn {
    position: relative;
    background: none;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.notification-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.notification-dot {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.page-content {
    padding: 32px;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

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

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.primary { background: rgba(27,67,50,0.08); color: var(--primary); }
.stat-icon.accent { background: rgba(196,162,84,0.1); color: var(--accent-dark); }
.stat-icon.success { background: rgba(40,167,69,0.08); color: var(--success); }
.stat-icon.info { background: rgba(23,162,184,0.08); color: var(--info); }
.stat-icon.warning { background: rgba(240,173,78,0.08); color: var(--warning); }

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.card-body { padding: 24px; }

/* ===== TABLES ===== */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: right;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(0,0,0,0.01);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-submitted { background: #E8F4FD; color: #1976D2; }
.status-submitted::before { background: #1976D2; }

.status-processing { background: #FFF3E0; color: #E65100; }
.status-processing::before { background: #E65100; }

.status-initial_approval { background: #E8F5E9; color: #2E7D32; }
.status-initial_approval::before { background: #2E7D32; }

.status-offer { background: #E3F2FD; color: #1565C0; }
.status-offer::before { background: #1565C0; }

.status-contract { background: #FFF8E1; color: #F57F17; }
.status-contract::before { background: #F57F17; }

.status-in_progress { background: #EDE7F6; color: #4527A0; }
.status-in_progress::before { background: #4527A0; }

.status-closed { background: #E8F5E9; color: #2E7D32; }
.status-closed::before { background: #2E7D32; }

.status-rejected { background: #FFEBEE; color: #C62828; }
.status-rejected::before { background: #C62828; }

/* ===== PROGRESS TRACKER ===== */
.progress-tracker {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 24px 0;
    overflow-x: auto;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 90px;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 18px;
    right: calc(-50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: var(--border);
}

.progress-step:last-child::before { display: none; }

.progress-step.completed::before { background: var(--success); }
.progress-step.active::before {
    background: linear-gradient(to left, var(--border) 50%, var(--success) 50%);
}

.progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.progress-step.completed .progress-dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.progress-step.active .progress-dot {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(196,162,84,0.2);
}

.progress-step.rejected .progress-dot {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.progress-label {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    max-width: 80px;
    line-height: 1.4;
}

.progress-step.completed .progress-label { color: var(--success); font-weight: 600; }
.progress-step.active .progress-label { color: var(--accent-dark); font-weight: 600; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-light); color: #fff; }

.btn-accent {
    background: var(--accent);
    color: var(--bg-dark);
}
.btn-accent:hover { background: var(--accent-light); }

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

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #C82333; }

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: #218838; color: #fff; }

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,67,50,0.08);
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* ===== STEPPER ===== */
.form-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 0 20px;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stepper-item + .stepper-item::before {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--border);
    margin: 0 8px;
}

.stepper-item.completed + .stepper-item::before { background: var(--success); }
.stepper-item.active + .stepper-item::before { background: var(--accent); }

.stepper-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.stepper-item.active .stepper-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.stepper-item.completed .stepper-num {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.stepper-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.stepper-item.active .stepper-text { color: var(--accent-dark); }
.stepper-item.completed .stepper-text { color: var(--success); }

/* ===== PACKAGE CARDS ===== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.package-option:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.package-option.selected {
    border-color: var(--accent);
    background: rgba(196,162,84,0.04);
}

.package-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.package-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.package-duration {
    font-size: 13px;
    color: var(--accent-dark);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.package-features {
    list-style: none;
}

.package-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 0 44px 24px 0;
}

.timeline-dot {
    position: absolute;
    right: 8px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    z-index: 1;
}

.timeline-item.status-change .timeline-dot { border-color: var(--info); background: var(--info); }
.timeline-item.assignment .timeline-dot { border-color: var(--accent); background: var(--accent); }

.timeline-content {
    background: var(--bg);
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.timeline-action {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== NOTIFICATION LIST ===== */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.notification-item:hover {
    background: rgba(0,0,0,0.01);
}

.notification-item.unread {
    background: rgba(196,162,84,0.03);
    border-right: 3px solid var(--accent);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg);
}

.notification-body { flex: 1; }

.notification-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-text {
    font-size: 13px;
    color: var(--text-light);
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== DOCUMENTS ===== */
.doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: var(--transition);
}

.doc-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.doc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(27,67,50,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.doc-info { flex: 1; }
.doc-name { font-size: 14px; font-weight: 600; }
.doc-type { font-size: 12px; color: var(--text-muted); }

/* ===== RATING ===== */
.star-rating {
    display: flex;
    gap: 4px;
    direction: ltr;
}

.star-rating .star {
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: var(--border);
    transition: var(--transition);
}

.star-rating .star.active,
.star-rating .star:hover {
    color: var(--accent);
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #C8E6C9; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-warning { background: #FFF8E1; color: #F57F17; border: 1px solid #FFF9C4; }
.alert-info { background: #E3F2FD; color: #1565C0; border: 1px solid #BBDEFB; }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--bg-dark);
}

.auth-sidebar {
    flex: 1;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0E2E1F 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(196,162,84,0.06) 0%, transparent 50%);
}

.auth-sidebar-content {
    position: relative;
    text-align: center;
    max-width: 420px;
}

.auth-sidebar h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.auth-sidebar p {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

.auth-form-wrap {
    width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: #fff;
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-form-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-form-header p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== LANDING PAGE ===== */
.landing-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11,26,20,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
    direction: rtl;
    transition: background 0.3s, border-color 0.3s;
}
body.light-mode .landing-header {
    background: rgba(247,246,243,0.8) !important;
    border-bottom-color: rgba(0,0,0,0.06) !important;
}
body.light-mode .brand-text { color: #0b1a14 !important; }
body.light-mode .lang-bar {
    background: rgba(0,0,0,0.04) !important;
    border-color: rgba(0,0,0,0.08) !important;
}
body.light-mode .lang-code { color: #999 !important; }
body.light-mode .lang-code.active { color: #1B4332 !important; background: rgba(27,67,50,0.1) !important; }
body.light-mode .landing-header .theme-toggle {
    border-color: rgba(0,0,0,0.1) !important;
    color: #666 !important;
}
body.light-mode .login-btn-desktop {
    background: #1B4332 !important;
    color: #fff !important;
}

.landing-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
}

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

.landing-nav a {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
}

.landing-nav a:hover { color: var(--accent); }

.hero {
    padding: 160px 40px 120px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--bg-dark) 0%, #0A2218 40%, #0E2E1F 100%);
    position: relative;
    direction: rtl;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(196,162,84,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(27,67,50,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hero-label {
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 14px;
}

.hero h1 .gold { color: var(--accent); }

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

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

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: relative;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: inherit;
}
.lang-toggle:hover {
    border-color: rgba(196,162,84,0.3);
    color: #C9A227;
    background: rgba(196,162,84,0.06);
}
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    min-width: 150px;
    background: #0E1D17;
    border: 1px solid rgba(196,162,84,0.12);
    border-radius: 12px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}
.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}
.lang-option:hover {
    background: rgba(196,162,84,0.1);
    color: #fff;
}
.lang-option.active {
    background: rgba(196,162,84,0.15);
    color: #C9A227;
    font-weight: 600;
}

/* ===== SECTORS ===== */
.sector-card:hover {
    border-color: rgba(196,162,84,0.2) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(196,162,84,0.08);
}
.sector-card:hover > div:first-child {
    opacity: 1 !important;
}
.sector-card:hover > div:nth-child(2) {
    background: linear-gradient(135deg, rgba(196,162,84,0.2), rgba(196,162,84,0.08)) !important;
    border-color: rgba(196,162,84,0.25) !important;
    transform: scale(1.05);
}

/* ===== HERO ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes kenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-10px, -5px); }
}
/* ===== LANGUAGE CODES ===== */
.lang-code {
    background: none; border: none; cursor: pointer;
    padding: 7px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; font-family: inherit;
    color: rgba(255,255,255,0.35); letter-spacing: 0.5px;
    transition: all 0.2s;
}
.lang-code:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.lang-code.active { color: #C9A227; background: rgba(196,162,84,0.12); }

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(196,162,84,0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 4px rgba(196,162,84,0.3); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.hero .gold {
    color: #C9A227;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
/* ===== TABLET ===== */
/* Mobile menu */
.mobile-menu-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer;
    color: var(--text-light); transition: all 0.2s;
}
.mobile-menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.sidebar-overlay { display: none; }

@media (max-width: 1024px) {
    .mobile-menu-btn { display: flex; }
    .sidebar { display: flex !important; transform: translateX(100%); transition: transform 0.3s ease; z-index: 200; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-right: 0; }
    .packages-grid { grid-template-columns: 1fr; }
    .auth-sidebar { display: none; }
    .auth-mobile-logo { display: block !important; }
    .auth-form-wrap { width: 100%; }
    .sectors-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .steps-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden; }
    .app-layout { flex-direction: column; }
    .main-content { margin-right: 0 !important; width: 100%; min-width: 0; }

    /* Dashboard */
    .page-content { padding: 16px; }
    .topbar { padding: 12px 16px; }
    .topbar-title h1 { font-size: 16px; }
    .topbar-title p { font-size: 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-value { font-size: 24px; }
    .stat-label { font-size: 12px; }
    .stat-icon { width: 36px; height: 36px; }

    /* Cards */
    .card { border-radius: 10px; }
    .card-header { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
    .card-header h3 { font-size: 14px; }
    .card-body { padding: 14px; }

    /* Tables */
    .table-wrap { margin: 0 -14px; }
    .data-table th, .data-table td { padding: 10px 8px; font-size: 12px; white-space: nowrap; }

    /* Notifications */
    .notification-item { padding: 12px 14px; }
    .notification-title { font-size: 13px; }
    .notification-text { font-size: 12px; }
    .notification-time { font-size: 12px; }

    /* Stepper */
    .form-stepper { flex-wrap: wrap; gap: 8px; padding: 0 8px; }
    .stepper-item + .stepper-item::before { display: none; }
    .stepper-num { width: 30px; height: 30px; font-size: 12px; }
    .stepper-text { font-size: 11px; }

    /* Progress Tracker */
    .progress-tracker { gap: 2px; padding: 8px 0; overflow-x: auto; flex-wrap: nowrap; }
    .progress-step { min-width: 44px; }
    .progress-dot { width: 26px; height: 26px; }
    .progress-dot svg { width: 12px; height: 12px; }
    .progress-dot span { font-size: 12px !important; }
    .progress-label { font-size: 11px; max-width: 48px; }
    .progress-step::before { top: 13px; }

    /* Buttons */
    .btn { padding: 8px 16px; font-size: 13px; }
    .btn-sm { padding: 6px 12px; font-size: 12px; }
    .btn-block { width: 100%; }

    /* Forms */
    .form-control, .form-select { font-size: 14px; padding: 10px 12px; }

    /* Grids stack with proper spacing */
    div[style*="grid-template-columns: 2fr 1fr"] { grid-template-columns: 1fr !important; row-gap: 16px !important; }
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"] { grid-template-columns: 1fr !important; row-gap: 4px !important; }
    /* Forms */
    .form-group { margin-bottom: 12px !important; }
    .form-group label { font-size: 13px; margin-bottom: 3px; }
    .form-control, .form-select { padding: 9px 12px !important; font-size: 14px !important; }
    .card-body { padding: 14px !important; }
    /* Package cards */
    .package-option { padding: 16px !important; }

    /* Mobile sidebar overlay */
    .sidebar-overlay.open {
        display: block;
        position: fixed; inset: 0; z-index: 199;
        background: rgba(0,0,0,0.5);
    }

    /* Tables - horizontal scroll hint */
    .table-wrap { margin: 0 -14px; position: relative; }
    .table-wrap::after {
        content: ''; position: absolute; top: 0; left: 0;
        width: 30px; height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.06));
        pointer-events: none;
    }
    .data-table th, .data-table td { padding: 10px 8px; font-size: 12px; white-space: nowrap; }

    /* ---- Landing Header Mobile ---- */
    .landing-header-inner {
        padding: 10px 16px;
        flex-wrap: nowrap;
        gap: 0;
    }
    .landing-brand { font-size: 16px; font-weight: 700; flex-shrink: 0; gap: 6px !important; }
    .landing-brand img { height: 30px !important; }
    .landing-brand .brand-text { font-size: 16px !important; }
    .landing-nav { gap: 4px !important; margin-right: auto; }
    .login-btn-desktop { display: none !important; }
    .lang-bar {
        gap: 1px !important;
        padding: 2px !important;
        border-radius: 6px !important;
    }
    .lang-code { padding: 4px 5px !important; font-size: 11px !important; }
    .landing-nav .theme-toggle { width: 28px !important; height: 28px !important; }
    .landing-nav .theme-toggle svg { width: 13px !important; height: 13px !important; }

    /* ---- Hero Split Layout ---- */
    .hero { min-height: auto !important; }
    .hero > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        padding: 110px 20px 40px !important;
        gap: 32px !important;
    }
    .hero h1 { font-size: 26px !important; line-height: 1.5 !important; }
    .hero div[style*="width: 50px"] { width: 40px !important; }
    .hero p[style*="font-size: 17px"] { font-size: 15px !important; }
    .hero div[style*="display: flex; gap: 14px"] { flex-direction: column; width: 100%; }
    .hero div[style*="display: flex; gap: 14px"] a { text-align: center; justify-content: center; width: 100%; }
    /* Image */
    .hero div[style*="border-radius: 24px"] { border-radius: 16px !important; }
    .hero div[style*="border-radius: 24px"] img { height: 260px !important; }
    .hero div[style*="position: absolute; top: -8px"],
    .hero div[style*="position: absolute; bottom: -8px"] { display: none; }
    /* Stats */
    .hero-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .hero-stats-grid div[style*="font-size: 28px"] { font-size: 22px !important; }
    .hero-stats-grid div[style*="font-size: 12px"] { font-size: 11px !important; }

    /* ---- Sections ---- */
    section[style*="padding: 90px 40px"],
    section[style*="padding: 80px 40px"] { padding: 48px 20px !important; }
    section h2[style*="font-size: 38px"],
    section h2[style*="font-size: 36px"] { font-size: 24px !important; line-height: 1.4 !important; }
    section p[style*="max-width: 550px"],
    section p[style*="max-width: 600px"] { font-size: 14px !important; }
    section div[style*="margin-bottom: 64px"] { margin-bottom: 40px !important; }

    /* ---- About Section ---- */
    .about-section h2 { font-size: 24px !important; }
    .about-section p { font-size: 14px !important; }
    .about-highlights { grid-template-columns: 1fr !important; gap: 8px !important; }

    /* ---- Sectors ---- */
    .sectors-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .sector-card {
        padding: 20px 14px !important;
        border-radius: 14px !important;
        text-align: center !important;
    }
    /* Hide decorative top line */
    .sector-card > div:first-child { display: none; }
    /* Icon box */
    .sector-card > div[style*="width: 68px"] {
        width: 48px !important; height: 48px !important;
        margin: 0 auto 12px !important;
        border-radius: 12px !important;
    }
    .sector-card > div[style*="width: 68px"] svg { width: 22px !important; height: 22px !important; }
    .sector-card h3 { font-size: 13px !important; margin-bottom: 4px !important; }
    .sector-card p { font-size: 11px !important; margin: 0 !important; line-height: 1.4 !important; }

    /* ---- Steps ---- */
    /* Steps - Vertical Timeline Mobile */
    .steps-timeline { padding: 0 !important; }
    .steps-timeline > div[style*="position: absolute"] { display: none !important; }
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        position: relative;
        padding-right: 32px !important;
    }
    /* Vertical connecting line */
    .steps-grid::before {
        content: '';
        position: absolute;
        right: 27px;
        top: 28px;
        bottom: 28px;
        width: 2px;
        background: linear-gradient(180deg, #C9A227, rgba(196,162,84,0.15));
    }
    .step-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 16px !important;
        text-align: right !important;
        padding: 0 0 24px 0 !important;
    }
    .step-item:last-child { padding-bottom: 0 !important; }
    /* Circle */
    .step-item > div:first-child {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        margin: 0 !important;
        font-size: 16px !important;
        order: -1;
        position: relative;
        z-index: 2;
        box-shadow: 0 0 0 4px #0B1A14 !important;
    }
    /* Card */
    .step-item > div:last-child {
        flex: 1;
        background: rgba(14,29,23,0.8) !important;
        border: 1px solid rgba(196,162,84,0.08);
        border-radius: 12px !important;
        padding: 16px !important;
    }
    .step-item > div:last-child > div:first-child { display: none; }
    .step-item h4 { font-size: 15px !important; margin-bottom: 4px !important; }
    .step-item p { font-size: 12px !important; line-height: 1.5 !important; }

    /* ---- Auth ---- */
    .auth-form-wrap { padding: 28px 20px; }
    .auth-form-header h2 { font-size: 20px; }
    .auth-form-header div[style*="display: flex"] { flex-wrap: wrap; }

    /* ---- Footer ---- */
    footer { padding: 20px 16px !important; font-size: 12px !important; }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 380px) {
    .hero h1 { font-size: 22px !important; }
    .hero-content { padding: 90px 16px 0 !important; }
    .hero-stats-grid div[style*="font-size: 32px"],
    .hero-stats-grid span[style*="font-size: 32px"] { font-size: 18px !important; }
    .stats-grid { grid-template-columns: 1fr !important; }
    .landing-brand { font-size: 16px; }
    .landing-nav a[data-i18n="login"] { padding: 6px 12px !important; font-size: 11px !important; }
}

/* ===== HERO CTA SECONDARY ===== */
.hero-cta-secondary {
    border: 1.5px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.75) !important;
    background: transparent !important;
}
body.light-mode .hero-cta-secondary {
    border-color: #1B4332 !important;
    color: #1B4332 !important;
    background: transparent !important;
}

/* ===== HERO STATS ===== */
.stat-unit {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.7;
}
/* ===== HERO STATS COLORS ===== */
.stats-title { color: rgba(255,255,255,0.5); }
.stat-val { color: #C9A227; }
.stat-lbl { color: rgba(255,255,255,0.55); }
.hero-stats-wrap { border-color: rgba(255,255,255,0.06); }
body.light-mode .stats-title { color: #999; }
body.light-mode .stat-val { color: #1B4332; }
body.light-mode .stat-lbl { color: #666; }
body.light-mode .hero-stats-wrap { border-color: #e0e0e0; }

/* ===== LOGO THEME SWITCH ===== */
.logo-dark { display: block !important; }
.logo-light { display: none !important; }
body.light-mode .logo-dark { display: none !important; }
body.light-mode .logo-light { display: block !important; }
body.light-mode .brand-text { color: #0b1a14 !important; }
body.light-mode .sidebar-brand div[style*="color: #C9A227"] { color: #1B4332 !important; }

/* ===== HERO SPLIT LAYOUT ===== */
.hero-split {
    max-width: 1140px !important;
    padding: 110px 36px 56px !important;
    gap: 40px !important;
}
.hero-split .hero-heading {
    font-size: 30px !important;
    line-height: 1.5 !important;
}
.hero-split .hero-subtitle {
    font-size: 14px !important;
}
.hero-split .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}
.hero-split .hero-stats-grid div[data-i18n*="stat"][data-i18n*="_val"] {
    font-size: 20px !important;
}

/* ===== LIGHT THEME - HERO SPLIT ===== */
body.light-mode .hero { background: #f7f6f3 !important; }
body.light-mode .hero-heading { color: #1B4332 !important; }
body.light-mode .hero-heading .gold { color: #B8962E !important; }
body.light-mode .hero-subtitle { color: #666 !important; }
body.light-mode .hero-cta-primary { background: #1B4332 !important; color: #fff !important; }
/* secondary CTA handled above */
body.light-mode .hero div[data-i18n="why_madinah"] { color: #999 !important; }
body.light-mode .hero-stats-grid div[style*="font-weight: 800"] { color: #1B4332 !important; }
body.light-mode .hero-stats-grid div[style*="rgba(255,255,255,0.35)"] { color: #999 !important; }

/* ===== HERO SPLIT RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr !important;
        padding: 100px 20px 40px !important;
        gap: 28px !important;
    }
    .hero-split h1 { font-size: 24px !important; }
    .hero-split img { height: 260px !important; }
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 4px !important;
        background: rgba(255,255,255,0.03);
        border-radius: 12px;
        padding: 12px 8px;
    }
    .hero-stats-grid .stat-val { font-size: 16px !important; }
    .hero-stats-grid .stat-lbl { font-size: 11px !important; }
    .hero-stats-grid .stat-unit { font-size: 11px !important; }
    .hero-stats-grid > div { text-align: center !important; padding: 8px 4px; }
    .hero-split div[style*="position: absolute; top: -6px"],
    .hero-split div[style*="position: absolute; bottom: -6px"] { display: none; }
}
