/* ========== CLINIC PAGE SCOPED STYLES ========== */

/* HERO */
.clinic-hero {
    padding: 110px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.clinic-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--accent-primary) 18%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.clinic-hero h1 {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 22px;
}

.clinic-hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 740px;
    margin: 0 auto 38px;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-primary-hero {
    background: var(--grad-blue);
    color: #fff;
    padding: 16px 44px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 17px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-primary) 40%, transparent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--accent-primary) 52%, transparent);
}

.btn-secondary-hero {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 16px 44px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-card);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, border-color 0.3s;
}

.btn-secondary-hero:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* STATS */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    min-width: 140px;
}

.stat-badge .stat-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

.stat-badge .stat-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* SECTION TITLES */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 12px;
}

/* SECTION LOGOS */
.sector-hero-logo {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50%;
    object-fit: contain;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    /* إعطاء بروز خفيف وعصري */
    margin: 0 auto 20px auto;
    display: block;
    padding: 5px;
    /* مساحة بيضاء لحماية أطراف اللوجو */
}

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

.section-tag {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 38%, transparent);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* FEATURES TABS */
.features-section {
    padding: 80px 0;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 40px;
    max-width: 1000px;
}

.tab-btn {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    padding: 12px 26px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

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

.tab-btn.active {
    background: var(--grad-blue);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-primary) 38%, transparent);
}

.tab-btn.backup-tab.active {
    background: linear-gradient(135deg, #E53935 0%, #b71c1c 100%);
    border-color: #E53935;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.35);
}

.tab-btn.backup-tab {
    border-color: #E53935;
    color: #E53935;
}

.tabs-content {
    position: relative;
    min-height: 320px;
}

.tab-panel {
    display: none;
    animation: fadePanel 0.35s ease;
}

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

@media (max-width: 860px) {
    .tab-panel.active {
        grid-template-columns: 1fr;
    }
}

@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    color: var(--accent);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.panel-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 28px;
    transition: transform 0.4s ease;
}

.panel-visual:hover img {
    transform: scale(1.03);
}

.panel-visual.document-view {
    height: 520px;
    background: #f8fafc;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-visual.document-view img {
    object-fit: contain;
    width: auto;
    max-width: 90%;
    height: auto;
    max-height: 94%;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-radius: 4px;
    /* Real paper usually has sharp or slightly soft corners */
    padding: 0;
    transition: transform 0.3s ease;
}

.panel-visual.document-view:hover img {
    transform: scale(1.02) translateY(-5px);
}

.panel-visual.backup-visual {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.panel-body h3 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 14px;
}

.panel-body p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 22px;
    font-size: 16px;
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 18px;
}

.badge-blue {
    background: color-mix(in srgb, var(--accent-primary) 20%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 38%, transparent);
}

.badge-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.5;
}

.feature-list li i {
    color: var(--accent-green);
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-list.backup-list li i {
    color: #10b981;
}

/* ============================================
   CLINIC HERO SECTION
   ============================================ */
.clinic-hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.clinic-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, color-mix(in srgb, var(--accent-primary) 20%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in srgb, var(--accent-primary) 16%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 38%, transparent);
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.clinic-hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 22px;
}

.clinic-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 580px;
    margin-bottom: 36px;
}

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

.btn-primary-hero {
    background: var(--grad-blue);
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 17px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-primary) 45%, transparent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--accent-primary) 56%, transparent);
}

.btn-secondary-hero {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-secondary-hero:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px;
    padding: 14px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}

.stat-num {
    font-size: 26px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.1;
}

.stat-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 4px;
}

/* Hero Screenshot */
.hero-visual {
    margin-top: 52px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--border);
    position: relative;
    max-height: 520px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(to bottom, transparent 65%, var(--bg-body) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-visual img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    max-height: 520px;
}

.hero-visual:hover {
    transform: translateY(-6px);
    box-shadow:
    0 40px 100px color-mix(in srgb, var(--accent-primary) 26%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent-primary) 46%, transparent);
}

/* Features Section */
.features-section {
    padding: 80px 0 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    margin-bottom: 14px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

.tabs-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Responsive clinic */
@media (max-width: 768px) {
    .clinic-hero {
        padding: 100px 0 40px;
    }

    .clinic-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-badge {
        padding: 10px 16px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .hero-cta-group a {
        text-align: center;
        justify-content: center;
    }

    .panel-visual {
        height: 220px;
    }
}

/* ============================================
   WORKFLOW SHOWCASE SECTION
   ============================================ */
.workflow-section {
    padding: 80px 0 90px;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent-primary) 8%, transparent) 50%, transparent 100%);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 52px;
}

@media (max-width: 900px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}

.workflow-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.workflow-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--accent-primary) 24%, transparent);
}

.workflow-step-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--grad-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-primary) 46%, transparent);
}

.workflow-img-wrap {
    height: 200px;
    overflow: hidden;
    background: var(--bg-lighter);
}

.workflow-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
    display: block;
}

.workflow-card:hover .workflow-img-wrap img {
    transform: scale(1.04);
}

.workflow-card h4 {
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--text-primary);
    padding: 18px 20px 0;
}

.workflow-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 20px 22px;
    margin: 0;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison-section {
    padding: 80px 0 90px;
}

.comparison-table-wrap {
    overflow-x: auto;
    margin-top: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.comparison-table thead tr {
    background: var(--bg-card);
}

.comparison-table th {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 900;
    text-align: right;
    border-bottom: 2px solid var(--border);
}

.comp-feature-col {
    width: 30%;
}

.comp-traditional-col,
.comp-maximizo-col {
    width: 35%;
}

.comp-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 900;
}

.comp-header-badge.traditional {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.comp-header-badge.maximizo {
    background: color-mix(in srgb, var(--accent-primary) 16%, transparent);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent-primary) 38%, transparent);
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-card);
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:nth-child(even):hover {
    background: var(--bg-card);
}

.comp-feature {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.comp-feature i {
    color: var(--accent);
    margin-left: 10px;
    width: 18px;
}

.comp-bad,
.comp-good {
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 700;
    vertical-align: middle;
}

.comp-bad {
    color: #ef4444;
}

.comp-bad i {
    margin-left: 8px;
    font-size: 13px;
}

.comp-good {
    color: var(--accent-green);
}

.comp-good i {
    margin-left: 8px;
    font-size: 13px;
}


/* --- NEON & VIBRANT SYSTEM OVERRIDES --- */
body#custom-page .premium-mesh-bg::before {
    background: radial-gradient(circle at 70% 30%, rgba(136, 19, 55, 0.15) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%) !important;
}

/* 5. ABOUT FLAVOR (Visionary, Trust, Indigo-tinted) */
:root:not(.dark-mode) body#about-page {
    --bg-body: #f5f3ff;
    --bg-lighter: #ede9fe;
    --border: #ddd6fe;
}

.dark-mode body#about-page {
    --bg-body: #0b0914;
    --bg-card: #120f1c;
    --bg-lighter: #1a1625;
    --border: #2e2640;
}

body#about-page .premium-mesh-bg::before {
    background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%) !important;
}

#custom-page {
    --accent: var(--accent-primary);
    --accent-glow: rgba(136, 19, 55, 0.3);
    --shadow-neon: 0 0 25px rgba(136, 19, 55, 0.4);
}

#about-page {
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --shadow-neon: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* Clinic: Deep Blue to Vibrant Cyan */
#clinic-page .top-nav {
    border-bottom: 1px solid var(--border);
    background: var(--bg-nav);
    /* ده المتغير الذكي اللي بيقلب مع المود */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#clinic-page {
    --accent: #4364F7;
    --accent-glow: rgba(67, 100, 247, 0.3);
    --shadow-neon: 0 0 25px rgba(67, 100, 247, 0.4);
}

#clinic-page .clinic-hero {
    background: var(--bg-body) ;
    color: var(--text-primary) ;
    border-top: none;
}

#clinic-page .clinic-hero p {
    color: var(--text-secondary);
}

/* Restaurant: Digital Emerald */
#restaurant-view {
    --accent: #38ef7d;
    --accent-glow: rgba(56, 239, 125, 0.3);
    --shadow-neon: 0 0 25px rgba(56, 239, 125, 0.4);
}

#restaurant-view .muscle-card:hover,
#restaurant-page .muscle-card:hover {
    border-color: #38ef7d;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 239, 125, 0.3);
}

/* Hotel: Royal Gold & Luxury Black */
#hotel-page .top-nav {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

#hotel-page {
    --accent: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --shadow-neon: 0 0 25px rgba(212, 175, 55, 0.4);
}

#hotel-page .muscle-card:hover {
    border-color: var(--accent);
}

/* Global Gold Theme for Hotel Cards */
#hotel-page .muscle-card .muscle-badge-top,
#hotel-page .muscle-card>i {
    color: var(--accent);
}

#hotel-page .hotel-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 2px solid var(--accent);
}

/* Float Animation for Hotel Logo */
.hotel-logo-float {
    animation: float 6s ease-in-out infinite;
}


/* --- THEME TOGGLE BUTTON --- */
.theme-toggle-btn {
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    background: linear-gradient(145deg, var(--bg-glass), var(--bg-lighter));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.theme-toggle-btn:hover {
    background: var(--accent) ;
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px var(--accent-glow);
    border-color: transparent;
}

    .theme-toggle-btn i {
        transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .theme-toggle-btn:hover i {
        transform: rotate(360deg) scale(1.15);
    }

    .theme-toggle-btn:active {
        transform: scale(0.9);
    }

.theme-control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mobile-theme-control {
    position: relative;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    min-width: 170px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(155deg, var(--bg-card), var(--bg-lighter));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.25s ease, visibility 0.2s ease;
    z-index: 10020;
}

.theme-control.is-open .theme-menu,
.mobile-theme-control.is-open .theme-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.theme-menu-option {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-menu-option:hover {
    background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
    color: var(--text-primary);
}

.theme-menu-option.active {
    background: color-mix(in srgb, var(--accent-primary) 20%, transparent);
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--accent-primary) 55%, transparent);
}

.theme-mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-lighter);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
}

/* --- NEW PREMIUM LANGUAGE TOGGLE --- */
.premium-lang-btn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-lighter);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 95px;
    height: 46px;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.premium-lang-btn:hover {
    border-color: var(--accent);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px var(--accent-glow);
    }

    .premium-lang-btn:active {
        transform: scale(0.92);
}

.premium-lang-btn span:not(.lang-slider) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    z-index: 2;
    color: var(--text-secondary);
        transition: color 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    }

    html[dir="rtl"] .lang-text-ar {
        color: #fff !important;
        transform: scale(1.15);
    }
    html[dir="rtl"] .lang-text-en {
        transform: scale(0.9);
        opacity: 0.6;
    }

    html[dir="ltr"] .lang-text-en {
        color: #fff !important;
        transform: scale(1.15);
    }
    html[dir="ltr"] .lang-text-ar {
        transform: scale(0.9);
        opacity: 0.6;
}

.lang-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: calc(50% - 4px);
    background: var(--accent);
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px var(--accent-glow);
}

html[dir="rtl"] .lang-slider {
    transform: translateX(0);
    right: 4px;
}

html[dir="ltr"] .lang-slider {
    transform: translateX(0);
    left: 4px;
}

/* Active text colors */
html[dir="rtl"] .lang-text-ar {
    color: #fff !important;
}

html[dir="ltr"] .lang-text-en {
    color: #fff !important;
}

/* --- EASTER EGG: HEATING UP EFFECT --- */
@keyframes heat-shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    20% {
        transform: translate(-2px, 0px) rotate(2deg);
    }

    40% {
        transform: translate(1px, -2px) rotate(-1deg);
    }

    60% {
        transform: translate(-2px, 2px) rotate(0deg);
    }

    80% {
        transform: translate(2px, -1px) rotate(2deg);
    }

    100% {
        transform: translate(-1px, 1px) rotate(-2deg);
    }
}

.theme-heating-1 {
    border-color: #fca5a5 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4) !important;
    animation: heat-shake 0.4s infinite !important;
}

.theme-heating-2 {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.15) !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.6) !important;
    animation: heat-shake 0.2s infinite !important;
}

.theme-heating-3 {
    border-color: #b91c1c !important;
    background: rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.9) !important;
    animation: heat-shake 0.1s infinite !important;
}

/* --- AUTOMATION SECTIONS (Utility Classes) --- */
.automation-section {
    margin-top: 60px;
    background: linear-gradient(135deg, #26A5E4 0%, #1C7CB0 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: 0 20px 40px rgba(38, 165, 228, 0.2);
}

.automation-info {
    flex: 1;
    min-width: 300px;
}

.automation-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.automation-desc {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
}

.automation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.automation-item {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.automation-icon {
    margin-top: 4px;
    opacity: 0.9;
    flex-shrink: 0;
}

.automation-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 800;
}

.light-mode .theme-toggle-btn {
    background: #fff;
    border-color: #dee2e6;
    color: #f59e0b;
    /* Sun color */
}

/* --- SECTOR HERO BADGE --- */
.sector-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    /* مسافة فوق اللوجو */
    border: 2px solid;
    background-color: rgba(255, 255, 255, 0.05);
    /* خلفية شفافة جداً */
}

[dir="rtl"] .sector-hero-badge {
    font-family: var(--font-sans);
    /* تأكد من استخدام الخط العربي */
}

/* --- SECTOR SPECIFIC THEMES (STRICT OVERRIDES) --- */

/* =========================================
   🎨 SECTOR FLAVORS & VIBES (PRO MAX VIBE)
   ========================================= */

/* 1. RESTAURANT FLAVOR (Warm, Appetizing) */
:root:not(.dark-mode) body#restaurant-page {
    --bg-body: #fcf1ed;
    --bg-lighter: #f9e2d9;
    --border: #f2cebf;
}

.dark-mode body#restaurant-page {
    --bg-body: #0d0a0a;
    --bg-card: #141010;
    --bg-lighter: #1c1515;
    --border: #2a1f1f;
}

body#restaurant-page .premium-mesh-bg::before {
    background: radial-gradient(circle at 70% 30%, rgba(229, 57, 53, 0.15) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%) !important;
}

/* 2. HOTEL FLAVOR (Luxury, Gold-tinted) */
:root:not(.dark-mode) body#hotel-page {
    --bg-body: #f4f0e6;
    --bg-lighter: #ece4d1;
    --border: #e0d4bc;
    /* زوايا حادة قليلاً لإعطاء طابع فندقي كلاسيكي فاخر */
    --radius-lg: 16px;
    --radius-xl: 24px;
}

.dark-mode body#hotel-page {
    --bg-body: #0d0b09;
    --bg-card: #14110e;
    --bg-lighter: #1c1813;
    --border: #2a231d;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body#hotel-page .premium-mesh-bg::before {
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(184, 134, 11, 0.1) 0%, transparent 50%) !important;
}

/* 3. CLINIC FLAVOR (Sterile, Clean, Trustworthy) */
:root:not(.dark-mode) body#clinic-page {
    --bg-body: #e9f0f7;
    --bg-lighter: #dae6f2;
    --border: #c8dcf0;
}

.dark-mode body#clinic-page {
    --bg-body: #070b11;
    --bg-card: #0b111a;
    --bg-lighter: #121a26;
    --border: #1a2538;
}

body#clinic-page .premium-mesh-bg::before {
    background: radial-gradient(circle at 70% 30%, rgba(38, 165, 228, 0.15) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%) !important;
}

/* 4. CUSTOM FLAVOR (Deep, Executive, Tech-focused) */
:root:not(.dark-mode) body#custom-page {
    --bg-body: #ebedf2;
    --bg-lighter: #dfe3eb;
    --border: #d0d6e2;
}

.dark-mode body#custom-page {
    --bg-body: #09090b;
    --bg-card: #0f1115;
    --bg-lighter: #16181d;
    --border: #1f2229;
}

body#custom-page .premium-mesh-bg::before {
    background: radial-gradient(circle at 70% 30%, rgba(136, 19, 55, 0.15) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%) !important;
}

/* 5. ABOUT FLAVOR (Visionary, Trust, Indigo-tinted) */
:root:not(.dark-mode) body#about-page {
    --bg-body: #f5f3ff;
    --bg-lighter: #ede9fe;
    --border: #ddd6fe;
}

.dark-mode body#about-page {
    --bg-body: #0b0914;
    --bg-card: #120f1c;
    --bg-lighter: #1a1625;
    --border: #2e2640;
}

body#about-page .premium-mesh-bg::before {
    background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%) !important;
}

#custom-page {
    --accent: var(--accent-primary);
    --accent-glow: rgba(136, 19, 55, 0.3);
    --shadow-neon: 0 0 25px rgba(136, 19, 55, 0.4);
}

#clinic-page {
    --accent: var(--accent-clinic);
    --accent-glow: var(--clinic-glow);
    --shadow-neon: 0 0 25px var(--clinic-glow);
}

#restaurant-page {
    --accent: var(--accent-restaurant) !important;
    --accent-glow: var(--restaurant-glow) !important;
    --shadow-neon: 0 0 25px var(--restaurant-glow) !important;
}

#about-page {
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --shadow-neon: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* تظبيط ألوان أزرار وباقات المطاعم بالأحمر ودرجاته */
#restaurant-page .lite-badge,
#restaurant-page .btn-lite {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
}

#restaurant-page .plus-badge,
#restaurant-page .btn-plus {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
}

#restaurant-page .ultimate-badge,
#restaurant-page .btn-ultimate {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
    filter: brightness(0.85);
    /* Slightly darker for distinction */
}

/* =========================================
   إصلاح الـ Highlight (الحدود والتوهج) لكروت المطاعم
   ========================================= */
#restaurant-page .muscle-card {
    border-color: rgba(229, 57, 53, 0.2) !important;
    /* حدود حمراء خفيفة في الوضع العادي */
}

#restaurant-page .muscle-card:hover {
    border-color: #E53935 !important;
    /* أحمر ناري صريح عند الوقوف بالماوس */
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.15) !important;
    /* توهج أحمر بدل الأخضر */
}

#hotel-page {
    --accent: #D4AF37;
    /* ذهبي للفنادق */
    --accent-glow: rgba(212, 175, 55, 0.4);
    --shadow-neon: 0 0 25px rgba(212, 175, 55, 0.4);
}

/* تعديل لون الباقات في صفحة الفنادق لتماشي الهوية الذهبية */
#hotel-page .lite-badge,
#hotel-page .btn-lite {
    background: #64748b !important;
    color: white !important;
    border-color: #64748b !important;
}

#hotel-page .plus-badge,
#hotel-page .btn-plus {
    background: #D4AF37 !important;
    color: white !important;
    border-color: #D4AF37 !important;
}

#hotel-page .ultimate-badge,
#hotel-page .btn-ultimate {
    background: #1e293b !important;
    color: white !important;
    border-color: #1e293b !important;
}

/* --- LEAD GENERATION FORM --- */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 50px;
    align-items: center;
    text-align: right;
    max-width: 1100px;
    margin: 0 auto;
}

@media(max-width: 992px) {
    .split-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

.lead-form-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    text-align: right;
}

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

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

.form-input {
    width: 100%;
    padding: 15px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    background: var(--bg-card);
}

.btn-submit-lead {
    width: 100%;
    padding: 16px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    margin-top: 10px;
}

.btn-submit-lead:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Ensuring hero themes are driven by variables */
#hotel-page .hotel-hero,
#clinic-page .clinic-hero,
#restaurant-page .restaurant-hero {
    background: var(--bg-body);
    border-bottom: 2px solid var(--accent);
    color: var(--text-primary);
    padding-top: 120px;
}

#hotel-page .hotel-hero p,
#clinic-page .clinic-hero p,
#restaurant-page .restaurant-hero p {
    color: var(--text-secondary);
}

.hero-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
    display: block;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

/* =========================================
   تنسيق نص قسم الأتمتة في الرئيسية (Hub)
   ========================================= */


/* =========================================
   إرجاع لون كارت المطاعم للأحمر في الرئيسية (Hub)
   ========================================= */
/* الكارت الخاص بالمطاعم ترتيبه التاني في الكود */
.sector-card:nth-child(2) {
    --accent: var(--accent-restaurant) !important;
    border-color: var(--restaurant-glow) !important;
}

.sector-card:nth-child(2):hover {
    box-shadow: 0 0 30px var(--restaurant-glow) !important;
    border-color: var(--accent) !important;
}

.sector-card:nth-child(2) .card-header {
    background-color: var(--accent) !important;
}

.sector-card:nth-child(2) i,
.sector-card:nth-child(2) .icon-wrapper {
    color: var(--accent) !important;
}

/* زرار الكارت في الـ Hub */
.sector-card:nth-child(2) a.btn,
.sector-card:nth-child(2) button {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}

.sector-card:nth-child(2) a.btn:hover,
.sector-card:nth-child(2) button:hover {
    filter: brightness(0.9);
}

/* --- AUTOMATION SECTIONS (Utility Classes) --- */
.automation-section {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--text-primary);
    /* إجبار النص الأساسي يقرا لون ذكي */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.automation-info {
    flex: 1;
    min-width: 300px;
}

.automation-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-primary);
    /* عنوان ذكي */
    display: flex;
    align-items: center;
    gap: 12px;
}

.automation-desc {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-secondary);
    /* وصف بلون رمادي شيك */
}

.automation-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.automation-item {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-primary);
    /* نصوص القائمة ذكية */
}

.automation-icon {
    margin-top: 4px;
    opacity: 0.9;
    flex-shrink: 0;
}


/* --- PREMIUM MODERN SAAS UPGRADES --- */

:root {
    --transition-premium: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease, border-color 0.6s ease, background-color 0.6s ease, color 0.6s ease;
}

.clinic-icon-box {
    width: 80px;
    height: 80px;
    background: var(--accent-glow);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: var(--transition-smooth);
    border: 2px solid var(--accent);
}

.clinic-icon-box img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--accent));
}

.clinic-icon-box::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50% !important;
    background: var(--accent-glow);
    filter: blur(10px);
    opacity: 0.5;
}

.workflow-card:hover .clinic-icon-box {
    transform: scale(1.1);
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.workflow-card h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.workflow-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card:hover .clinic-icon-box {
    transform: translateY(-12px) rotate(8deg);
    border-radius: 50%;
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 20px 40px var(--accent-glow);
}

.feature-card:hover .clinic-icon-box img {
    transform: scale(1.1);
}

.card-bg-icon {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    opacity: 0.03;
    pointer-events: none;
    transition: var(--transition-premium);
    filter: grayscale(1) brightness(1.2);
    z-index: 0;
}

.feature-card:hover .card-bg-icon {
    transform: scale(1.6) rotate(-15deg);
    opacity: 0.08;
}

/* Floating Icon Decor */
.icon-decor {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
    filter: drop-shadow(0 10px 20px var(--accent-glow));
    /* السطرين دول اللي هيقصوا الأيقونات الطايرة ويخلوها دواير */
    border-radius: 50%;
    object-fit: cover;
}

.icon-decor-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.icon-decor-2 {
    bottom: 15%;
    left: 8%;
    animation-delay: 2s;
}

/* Smart Visuals: Hero & Workflow */
.hero-visual {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
    transition: var(--transition-premium);
}

.hero-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-body), transparent);
    pointer-events: none;
    opacity: 0.8;
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
    transition: var(--transition-premium);
}

.hero-visual:hover img {
    transform: scale(1.02);
}

.workflow-img-wrap {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: var(--bg-lighter);
    transition: var(--transition-premium);
    position: relative;
}

.workflow-card:hover .workflow-img-wrap {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* Module Grid Premium Fix */
.module-item {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px !important;
    border-radius: 32px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: var(--transition-premium) !important;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.module-item:hover {
    transform: translateY(-12px) scale(1.06);
    border-color: var(--accent) !important;
    box-shadow: 0 25px 50px var(--accent-glow) !important;
    background: var(--bg-card) !important;
}

.module-item .clinic-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    margin-bottom: 18px;
}

.module-item h4 {
    transition: var(--transition-premium);
    color: var(--text-secondary);
}

.module-item:hover h4 {
    color: var(--accent);
    transform: scale(1.05);
}

/* Dashboard Widget Style Icons */
.dash-icon-mini {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: var(--accent-glow);
    border-radius: 8px;
    margin-left: 10px;
}

/* Premium Component Utilities */
.btn-wa-premium {
    background: #fff !important;
    color: #25D366 !important;
    margin-top: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-premium);
}

.btn-wa-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.2);
}

.decor-circle-glow {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    padding: 45px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.05);
    transition: var(--transition-premium);
}

.automation-section:hover .decor-circle-glow {
    transform: rotate(15deg) scale(1.05);
    border-color: var(--accent);
}

.lead-form-card h3 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.lead-form-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}


/* --- SMART SAAS POLISH: BROWSER FRAMES & GLOBAL LOGO FIX --- */
.browser-frame {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 12px 12px 24px 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-premium);
    margin-bottom: 30px;
}

.browser-header {
    background: var(--bg-lighter);
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    direction: ltr !important;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0.8;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.browser-body {
    position: relative;
    overflow: hidden;
    background: #000;
}

.browser-body img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Global Logo Fix Override */
.logo-area img,
.hero-circle,
.hero-logo,
.sector-hero-logo,
.price-logo-circle,
.footer-brand img {
    background-color: transparent !important;
    background: transparent !important;
}

.price-logo-circle img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

/* Red Tie-in for Restaurants */
.restaurant-card .sector-strap,
.restaurant-card .btn-enter-hub {
    background: var(--accent-red) !important;
}

.restaurant-card:hover {
    border-color: var(--accent-red) !important;
    box-shadow: 0 30px 60px rgba(229, 57, 53, 0.3) !important;
}


/* =========================================
   تخصيص بانر تيلجرام في صفحة العيادات (أزرق متدرج)
   ========================================= */
#clinic-page .automation-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--info) 100%);
    border: none;
    box-shadow: 0 15px 35px var(--clinic-glow);
}

/* إجبار كل النصوص والأيقونات داخل البانر تكون بيضاء */
#clinic-page .automation-title,
#clinic-page .automation-desc,
#clinic-page .automation-item,
#clinic-page .automation-icon,
#clinic-page .automation-list span {
    color: #ffffff;
}

/* تظبيط زرار الواتساب عشان ينور على الخلفية الزرقا */
#clinic-page .btn-wa-premium {
    background: #ffffff;
    color: #25D366;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#clinic-page .btn-wa-premium i {
    color: #25D366;
}
