/* ==========================================================================
   إيرادات ومصروفات وجدولة الاشتراكات للطلاب بروماكس
   Modern EdTech & Finance Pro Max UI | Author: Ahmed Elshemy (https://elshemy.me)
   ========================================================================== */

:root {
    --bg-primary: #040816;
    --bg-secondary: #081229;
    --bg-tertiary: #0d1d3d;
    --bg-card: rgba(12, 24, 50, 0.82);
    --bg-card-hover: rgba(18, 34, 68, 0.95);
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-glass-hover: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-glass-hover: rgba(14, 165, 233, 0.45);

    --accent-cyan: #0ea5e9;
    --accent-cyan-light: #38bdf8;
    --accent-emerald: #10b981;
    --accent-emerald-light: #34d399;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-rose: #f43f5e;

    --grad-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --grad-primary-hover: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-gold: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --grad-gold-hover: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --grad-text: linear-gradient(135deg, #ffffff 18%, #38bdf8 56%, #34d399 100%);

    --text-white: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.72);
    --glow-cyan: 0 0 32px rgba(14, 165, 233, 0.28);
    --glow-gold: 0 0 32px rgba(245, 158, 11, 0.25);

    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1260px;
}

/* ==========================================================================
   1. Base, Reset & Accessibility
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-x: hidden;
}

body {
    font-family: 'Almarai', 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(circle at 16% 16%, rgba(14, 165, 233, 0.1) 0%, transparent 42%),
        radial-gradient(circle at 86% 38%, rgba(16, 185, 129, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 48% 86%, rgba(245, 158, 11, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.38;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent-cyan-light);
    outline-offset: 3px;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 92px 0;
    position: relative;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.appear {
    opacity: 1;
    transform: translateY(0);
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.16;
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    width: 460px;
    height: 460px;
    background: var(--accent-cyan);
    top: -120px;
    right: -120px;
}

.glow-2 {
    width: 420px;
    height: 420px;
    background: var(--accent-emerald);
    top: 42%;
    left: -140px;
}

.glow-3 {
    width: 440px;
    height: 440px;
    background: var(--accent-gold);
    bottom: -140px;
    right: 25%;
}

/* ==========================================================================
   2. Progress Bar & Responsive Sticky Navigation
   ========================================================================== */
#progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan-light), var(--accent-emerald-light));
    z-index: 1200;
    transition: width 0.1s linear;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px clamp(14px, 2.8vw, 38px);
    background: rgba(4, 8, 22, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px clamp(14px, 2.8vw, 38px);
    background: rgba(4, 8, 22, 0.94);
    border-bottom-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: clamp(0.9rem, 1.25vw, 1.12rem);
    color: var(--text-white);
    min-width: 0;
    flex-shrink: 1;
}

.navbar-brand > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(14, 165, 233, 0.45);
    background: #0f172a;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.15vw, 18px);
}

.nav-links a {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    padding: 6px 2px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
}

.nav-links a.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan-light);
    transition: var(--transition);
}

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

.nav-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px !important;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: var(--accent-emerald-light) !important;
    font-size: 0.84rem !important;
}

.nav-hub-link:hover {
    background: rgba(16, 185, 129, 0.22);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--grad-emerald);
    color: var(--text-white);
    font-weight: 800;
    font-size: 0.88rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.45);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-size: 1.15rem;
    cursor: pointer;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(4px);
    z-index: 1030;
}

.nav-backdrop.show {
    display: block;
}

/* ==========================================================================
   3. Section Header & Buttons
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 52px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent-cyan-light);
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    font-size: clamp(0.96rem, 1.35vw, 1.08rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    min-height: 46px;
}

.btn-lg {
    padding: 15px 28px;
    font-size: 1.02rem;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--grad-emerald);
    color: var(--text-white);
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.32);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.48);
}

.btn-gold {
    background: var(--grad-gold);
    color: var(--text-white);
    box-shadow: 0 10px 26px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
    background: var(--grad-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.45);
}

.btn-outline {
    background: var(--surface-glass);
    color: var(--text-white);
    border-color: var(--border-glass);
}

.btn-outline:hover {
    background: var(--surface-glass-hover);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    padding-top: 122px;
    padding-bottom: 84px;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

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

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--accent-cyan-light);
}

.breadcrumb-list .sep {
    font-size: 0.72rem;
    opacity: 0.5;
}

.breadcrumb-list .current {
    color: var(--accent-gold-light);
    font-weight: 700;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.34);
    color: var(--accent-cyan-light);
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-emerald-light);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-content h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.95rem);
    line-height: 1.32;
    margin-bottom: 18px;
}

.hero-desc {
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 630px;
}

.hero-desc strong {
    color: var(--text-white);
}

.hero-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
}

.quick-chip i {
    color: var(--accent-cyan-light);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-mockup-wrapper {
    position: relative;
    padding: 18px 0;
}

.mockup-frame {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 50px rgba(14, 165, 233, 0.18);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-bar .dot.red { background: #ef4444; }
.mockup-bar .dot.yellow { background: #f59e0b; }
.mockup-bar .dot.green { background: #10b981; }

.mockup-title {
    margin-right: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    background: rgba(8, 18, 41, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-card);
}

.badge-top-right {
    top: -4px;
    right: -12px;
}

.badge-bottom-left {
    bottom: -4px;
    left: -12px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.badge-icon.gold {
    background: rgba(245, 158, 11, 0.18);
    color: var(--accent-gold-light);
}

.badge-icon.emerald {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald-light);
}

.floating-badge strong {
    display: block;
    font-size: 0.87rem;
    color: var(--text-white);
}

.floating-badge span {
    display: block;
    font-size: 0.77rem;
    color: var(--text-muted);
}

/* ==========================================================================
   5. Trust Metrics & Value Pillars
   ========================================================================== */
.metrics-section {
    padding: 36px 0 60px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: var(--accent-cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.metric-number {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--text-white);
}

.metric-label {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.workflow-section {
    background: linear-gradient(180deg, rgba(8, 18, 41, 0.55) 0%, rgba(4, 8, 22, 0.95) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.workflow-step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
}

.workflow-step:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: var(--shadow-card);
}

.step-num {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.06);
}

.step-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: var(--accent-emerald-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.workflow-step h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.workflow-step p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. Filterable Core 9 Modules Section
   ========================================================================== */
.features-filters,
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.feature-filter-btn,
.gallery-filter-btn {
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.feature-filter-btn:hover,
.gallery-filter-btn:hover {
    color: var(--text-white);
    border-color: rgba(14, 165, 233, 0.4);
}

.feature-filter-btn.active,
.gallery-filter-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 22px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card.hidden {
    display: none;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-emerald), transparent);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-num {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.06);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(14, 165, 233, 0.28);
    color: var(--accent-cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tags span {
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-emerald-light);
}

/* ==========================================================================
   7. Interactive System Explorer & Schedule Simulator
   ========================================================================== */
.explorer-section {
    background: linear-gradient(180deg, rgba(8, 18, 41, 0.45) 0%, rgba(13, 29, 61, 0.55) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.explorer-tabs-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.explorer-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
}

.explorer-tab-btn i {
    font-size: 1.05rem;
    color: var(--accent-cyan-light);
}

.explorer-tab-btn:hover {
    color: var(--text-white);
    border-color: rgba(14, 165, 233, 0.38);
}

.explorer-tab-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.3);
}

.explorer-tab-btn.active i {
    color: var(--text-white);
}

.explorer-content-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 38px);
    box-shadow: var(--shadow-lg);
}

.explorer-tab-panel {
    display: none;
}

.explorer-tab-panel.active {
    display: block;
    animation: fadeSlideIn 0.35s ease;
}

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

.explorer-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 32px;
    align-items: center;
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: var(--accent-gold-light);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.explorer-text h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    margin-bottom: 12px;
}

.explorer-text > p {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 20px;
}

.explorer-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.explorer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.explorer-list i {
    color: var(--accent-emerald-light);
    font-size: 1.1rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.explorer-list strong {
    display: block;
    color: var(--text-white);
    font-size: 0.96rem;
}

.explorer-list span {
    color: var(--text-muted);
    font-size: 0.89rem;
}

.explorer-media {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.explorer-media img {
    width: 100%;
    height: auto;
}

.media-caption {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: rgba(15, 23, 42, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-caption i {
    color: var(--accent-gold-light);
}

/* Interactive Schedule Simulator Box */
.sched-sim-box {
    background: rgba(4, 8, 22, 0.72);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.sched-sim-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent-cyan-light);
}

.sched-pct-badge {
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald-light);
    font-size: 0.82rem;
}

.sched-sim-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.sched-sim-inputs label {
    display: block;
    font-size: 0.77rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 700;
}

.sched-sim-inputs input {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
}

.sched-progress-track {
    width: 100%;
    height: 9px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.sched-progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--grad-emerald);
    transition: width 0.25s ease;
}

.sched-sim-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.sched-sim-footer strong { color: var(--text-white); }
.sched-sim-footer strong.warn { color: var(--accent-gold-light); }
.sched-sim-footer strong.ok { color: var(--accent-emerald-light); }

/* ==========================================================================
   8. Interactive Calculator Section
   ========================================================================== */
.calc-wrapper {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 38px);
    box-shadow: var(--shadow-lg);
}

.calc-currency-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.calc-currency-bar span {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-muted);
}

.currency-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.currency-btn {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-light);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.currency-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--text-white);
}

.calc-group {
    margin-bottom: 18px;
}

.calc-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.calc-label-row label i {
    color: var(--accent-cyan-light);
    margin-left: 5px;
}

.calc-val-badge {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(14, 165, 233, 0.14);
    color: var(--accent-cyan-light);
    font-size: 0.82rem;
    font-weight: 800;
}

.calc-input-row {
    display: flex;
    align-items: center;
    background: rgba(4, 8, 22, 0.72);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
}

.calc-input-row input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 7px 0;
    outline: none;
}

.calc-suffix {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.calc-slider {
    width: 100%;
    margin-top: 10px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

.calc-results {
    background: rgba(4, 8, 22, 0.65);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.calc-res-header {
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.04rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-res-header i {
    color: var(--accent-gold-light);
}

.calc-res-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.calc-res-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 15px;
}

.calc-res-item.highlight {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.35);
}

.res-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.res-value {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: clamp(1.12rem, 1.8vw, 1.38rem);
    color: var(--text-white);
}

.res-value.gold { color: var(--accent-gold-light); }
.res-value.cyan { color: var(--accent-cyan-light); }
.res-value.emerald { color: var(--accent-emerald-light); }

.res-sub {
    display: block;
    font-size: 0.76rem;
    color: var(--text-dim);
    margin-top: 3px;
}

.calc-summary-text {
    font-size: 0.9rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--accent-cyan);
}

.calc-summary-text strong {
    color: var(--accent-gold-light);
}

/* ==========================================================================
   9. Benefits, Comparison & Target Sectors
   ========================================================================== */
.benefits-section {
    background: linear-gradient(180deg, rgba(8, 18, 41, 0.5) 0%, rgba(4, 8, 22, 0.95) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.benefit-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: var(--shadow-card);
}

.benefit-num {
    position: absolute;
    top: 18px;
    left: 20px;
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.06);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: var(--accent-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.benefit-card h3 {
    font-size: 1.06rem;
    margin-bottom: 8px;
}

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

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

.comp-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-glass);
}

.comp-card.before {
    border-color: rgba(244, 63, 94, 0.28);
}

.comp-card.after {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.comp-header i {
    font-size: 1.5rem;
}

.comp-card.before .comp-header i { color: var(--accent-rose); }
.comp-card.after .comp-header i { color: var(--accent-emerald-light); }

.comp-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--text-light);
}

.comp-card.before .comp-list i { color: var(--accent-rose); margin-top: 5px; }
.comp-card.after .comp-list i { color: var(--accent-emerald-light); margin-top: 5px; }

.sectors-title {
    text-align: center;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    margin-bottom: 26px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.sector-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.45);
}

.sector-card i {
    font-size: 2rem;
    color: var(--accent-cyan-light);
    margin-bottom: 14px;
}

.sector-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

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

/* ==========================================================================
   10. Gallery & Lightbox
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 24px;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-card);
}

.gallery-img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #020617;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.82) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 14px;
    opacity: 0.9;
}

.zoom-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.gallery-cat-badge {
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-gold-light);
}

.gallery-caption {
    padding: 18px 20px;
}

.gallery-caption h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.gallery-caption p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px 72px;
}

.lightbox.active {
    display: flex;
}

.lightbox-body {
    max-width: 1120px;
    width: 100%;
    text-align: center;
}

.lightbox-body img {
    max-height: 76vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-lg);
}

.lightbox-caption {
    margin-top: 14px;
    font-size: 0.98rem;
    color: var(--text-light);
}

.lightbox-counter {
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--accent-cyan-light);
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
}

.lightbox-nav.prev { right: 20px; }
.lightbox-nav.next { left: 20px; }

.lightbox-nav:hover,
.lightbox-close:hover {
    background: var(--accent-cyan);
    border-color: transparent;
}

/* ==========================================================================
   11. Video Presentation Section
   ========================================================================== */
.video-section {
    background: linear-gradient(180deg, rgba(8, 18, 41, 0.5) 0%, rgba(4, 8, 22, 0.95) 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.video-wrapper {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #020617;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-facade {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #020617;
    display: block;
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.68);
    transition: transform 0.45s ease, filter 0.35s ease;
}

.video-facade:hover img {
    transform: scale(1.03);
    filter: brightness(0.82);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 0 12px rgba(14, 165, 233, 0.25), var(--shadow-lg);
    transition: var(--transition);
}

.video-facade:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-facade-label {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(2, 6, 23, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.video-facade-label i {
    color: #ef4444;
}

.video-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.v-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    font-size: 0.9rem;
    font-weight: 700;
}

.v-item i {
    color: var(--accent-emerald-light);
}

/* ==========================================================================
   12. Packages & FAQ
   ========================================================================== */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.package-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
}

.package-card.featured {
    border-color: rgba(245, 158, 11, 0.55);
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.11) 0%, var(--bg-card) 55%);
    box-shadow: var(--glow-gold);
}

.package-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--grad-gold);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.package-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: rgba(14, 165, 233, 0.14);
    color: var(--accent-cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.package-card.featured .package-icon {
    background: rgba(245, 158, 11, 0.16);
    color: var(--accent-gold-light);
}

.package-card h3 {
    font-size: 1.24rem;
    margin-bottom: 8px;
}

.package-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.package-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.package-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.91rem;
    color: var(--text-light);
}

.package-list i {
    color: var(--accent-emerald-light);
    margin-top: 5px;
    flex-shrink: 0;
}

.faq-list {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-card.active {
    border-color: rgba(14, 165, 233, 0.45);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.03rem;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-card.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent-cyan-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-card.active .faq-answer {
    max-height: 360px;
}

.faq-answer p {
    padding: 0 24px 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ==========================================================================
   13. Final CTA, Related Solutions & Footer
   ========================================================================== */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14) 0%, rgba(12, 24, 50, 0.95) 55%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid rgba(14, 165, 233, 0.34);
    border-radius: var(--radius-xl);
    padding: clamp(34px, 5vw, 64px) clamp(20px, 4vw, 48px);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: clamp(1.6rem, 3.1vw, 2.4rem);
    margin-bottom: 14px;
}

.cta-box p {
    max-width: 680px;
    margin: 0 auto 28px;
    color: var(--text-muted);
    font-size: 1.04rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.related-solutions-section {
    padding: 76px 0;
    background: linear-gradient(180deg, rgba(8, 14, 29, 0.98) 0%, #020617 100%);
    border-top: 1px solid var(--border-glass);
}

.related-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.related-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald-light);
    font-size: 0.86rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.related-header h2 {
    font-size: clamp(1.5rem, 2.7vw, 2.05rem);
    margin-bottom: 10px;
}

.related-header p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 24px;
    margin-bottom: 34px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: var(--shadow-card);
}

.related-card-img {
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background: #020617;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.related-card:hover .related-card-img img {
    transform: scale(1.05);
}

.related-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-badge {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: rgba(14, 165, 233, 0.14);
    color: var(--accent-cyan-light);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.related-card-content h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.related-card-content p {
    font-size: 0.89rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-grow: 1;
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan-light);
    font-weight: 800;
    font-size: 0.88rem;
}

.hub-action {
    text-align: center;
}

.site-footer {
    background: #020617;
    border-top: 1px solid var(--border-glass);
    padding: 42px 0 34px;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-brand i {
    color: var(--accent-cyan-light);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 18px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent-cyan-light);
}

.footer-copy {
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-copy a {
    color: var(--accent-cyan-light);
    font-weight: 800;
}

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-cyan);
    border-color: transparent;
}

.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 980;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: var(--grad-emerald);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}

.floating-wa:hover {
    transform: translateY(-3px);
}

.floating-wa i {
    font-size: 1.25rem;
}

/* ==========================================================================
   14. Responsive Breakpoints (1180px, 1120px, 900px, 640px, 380px)
   ========================================================================== */
@media (max-width: 1180px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        background: rgba(8, 18, 41, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(14, 165, 233, 0.28);
        padding: 16px 20px 22px;
        gap: 6px;
        z-index: 1045;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.72);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        font-size: 0.98rem;
        width: 100%;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
    }

    .nav-links a.nav-item:hover,
    .nav-links a.nav-item.active {
        background: rgba(14, 165, 233, 0.14);
        color: var(--accent-cyan-light);
    }

    .nav-links a.nav-item::after {
        display: none;
    }

    .nav-hub-link {
        justify-content: center;
        margin-top: 6px;
        padding: 11px 14px !important;
    }
}

@media (max-width: 1120px) {
    .hero-grid,
    .explorer-panel-grid,
    .calc-wrapper {
        grid-template-columns: 1fr;
    }
    .hero { text-align: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-quick-chips,
    .hero-btns,
    .breadcrumb-list {
        justify-content: center;
    }
    .metrics-grid,
    .workflow-grid,
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
    .explorer-tabs-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .comparison-grid,
    .video-highlights {
        grid-template-columns: 1fr;
    }

    .badge-top-right { right: 8px; }
    .badge-bottom-left { left: 8px; }

    .lightbox { padding: 20px 16px; }
    .lightbox-nav {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 18px;
        transform: none;
    }
    .lightbox-nav.prev { right: 20px; }
    .lightbox-nav.next { left: 20px; }
}

@media (max-width: 640px) {
    section { padding: 64px 0; }
    .container { padding: 0 16px; }
    .hero { padding-top: 94px; padding-bottom: 56px; }

    .navbar {
        padding: 10px 14px;
        gap: 8px;
    }

    .navbar.scrolled {
        padding: 8px 14px;
    }

    .navbar-brand {
        font-size: 0.88rem;
        gap: 8px;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .nav-actions {
        gap: 8px;
    }

    .navbar-cta span { display: none; }
    .navbar-cta {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .floating-badge {
        position: static;
        margin: 10px auto;
        width: fit-content;
    }
    .hero-mockup-wrapper { padding: 0; }

    .metrics-grid,
    .workflow-grid,
    .sectors-grid,
    .calc-res-grid,
    .calc-two-cols,
    .sched-sim-inputs,
    .explorer-tabs-nav {
        grid-template-columns: 1fr;
    }

    .hero-btns .btn,
    .cta-buttons .btn {
        width: 100%;
    }

    .floating-wa span { display: none; }
    .floating-wa {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        right: 16px;
        bottom: 16px;
    }
    .back-to-top {
        left: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
    .video-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .video-facade-label {
        font-size: 0.78rem;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 380px) {
    .navbar {
        padding: 9px 10px;
        gap: 6px;
    }

    .navbar-brand {
        font-size: 0.8rem;
        gap: 6px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .navbar-cta,
    .menu-toggle {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
