/* ============================================================
   eatSmartly — Shared Stylesheet
   All pages include this single file.
   ============================================================ */

:root {
    --primary-color: #0b7a61;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --accent: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ── Header & Navigation ───────────────────────────────── */
header {
    background-color: var(--white);
    padding: 12px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

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

nav a.active-page {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(11, 122, 97, 0.3);
}

.btn:hover {
    background-color: #085e4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 122, 97, 0.4);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-accent {
    background-color: var(--accent);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-accent:hover {
    background-color: #c0392b;
}

/* ── Read More Toggle ──────────────────────────────────── */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: #085e4a;
}

.read-more-btn .rm-arrow {
    display: inline-block;
    font-style: normal;
    transition: transform 0.3s ease;
    line-height: 1;
}

.read-more-btn.expanded .rm-arrow {
    transform: rotate(180deg);
}

.feature-extra {
    display: none;
    overflow: hidden;
}

.feature-extra.expanded {
    display: block;
}

/* ── Layout ────────────────────────────────────────────── */
section {
    padding: 60px 20px;
    text-align: center;
}

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

h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* ── Hero (home) ───────────────────────────────────────── */
#hero {
    background: linear-gradient(135deg, #0b7a61 0%, #0a5c4a 60%, #084a3c 100%);
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Floating food icons */
.hero-food-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero-food-icons span {
    position: absolute;
    opacity: 0.10;
    animation: float-food 8s ease-in-out infinite;
    user-select: none;
}

@keyframes float-food {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-18px) rotate(8deg);
    }

    66% {
        transform: translateY(10px) rotate(-6deg);
    }
}

#hero h1 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

#hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.hero-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background: var(--white);
    padding: 10px;
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ── Page Hero (inner pages) ───────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0b7a61 0%, #0a5c4a 100%);
    padding: 35px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: 42px;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

/* ── Algeria Badge ─────────────────────────────────────── */
#algeria-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    text-align: center;
}

.badge-content {
    max-width: 900px;
    margin: 0 auto;
}

.badge-content h2 {
    color: var(--primary-color);
    font-size: 32px;
    margin-bottom: 20px;
}

.badge-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ── Feature Detail Sections ───────────────────────────── */
.feature-detail {
    /* padding: 100px 20px; */
    overflow: hidden;
    background-color: var(--secondary-color);
}

.feature-detail.alt {
    background-color: var(--white);
}

.feature-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr auto 2fr;
    gap: 50px;
    align-items: center;
}

/* Flip column order for alternating sections */
.feature-detail.alt .feature-detail-content {
    direction: ltr;
}

.feature-text {
    text-align: right;
}

.feature-text h2 {
    font-size: 33px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: right;
}

.feature-text p {
    font-size: 17px;
    line-height: 2;
    color: #555;
    margin-bottom: 26px;
    text-align: right;
    padding-right: 16px;
    border-right: 3px solid transparent;
}

.feature-text p:first-of-type {
    font-size: 17px;
    color: #3a3a3a;
    font-weight: 500;
    /* border-right-color: var(--primary-color); */
}

.feature-text ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.feature-text ul li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 17px;
    color: #666;
    text-align: right;
    position: relative;
    padding-right: 30px;
}

.feature-text ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ── Feature Image Slider ─────────────────────────────── */
.feature-single-image {
    border-radius: 18px;
    overflow: hidden;
}

.feature-single-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
}

.feature-image-slider {
    position: relative;
    border-radius: 18px;
    background: transparent;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}

.feature-image-slider:active {
    cursor: grabbing;
}

/* Viewport clips the sliding track */
.slider-viewport {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow:
        0 0 0 3px var(--primary-color),
        0 20px 55px rgba(11, 122, 97, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.10); */
}

.slider-track {
    display: flex;
    direction: ltr;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-track .slide {
    flex: 0 0 100%;
    max-width: 100%;
    background: #fff;
}

.slider-track .slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Dots sit below the viewport, inside the gradient frame */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 0;
}

/* Manual slider controls: prev/next arrows + dots */
.slider-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    align-self: center;
}

.slider-prev,
.slider-next {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
    padding: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background: #095f4c;
    transform: scale(1.1);
}

.slider-prev:focus-visible,
.slider-next:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    border: 2px solid #0b7a61;
    padding: 0;
    outline: none;
}

.slider-dot.active {
    background: #0b7a61;
    transform: scale(1.35);
    border-color: #fff;
}

.slider-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

/* ── Slider image click cursor ──────────────────────────── */
.feature-detail .slide img {
    cursor: zoom-in;
}

/* ── Image Lightbox ─────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
    animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 50px rgba(0, 0, 0, 0.6);
    cursor: default;
    animation: lightboxZoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: fixed;
    top: 16px;
    left: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: background 0.2s, transform 0.15s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* ── Demo Access Modal ────────────────────────────────────── */
.demo-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.demo-modal-overlay.active {
    display: flex;
    animation: lightboxFadeIn 0.22s ease;
}

.demo-modal {
    background: #fff;
    border-radius: 18px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
    animation: lightboxZoomIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 36px 32px 28px;
}

.demo-modal-close {
    position: absolute;
    top: 14px;
    left: 16px;
    background: #f1f1f1;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s, color 0.2s;
}

.demo-modal-close:hover {
    background: #e74c3c;
    color: #fff;
}

.demo-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.demo-modal-header h2 {
    font-size: 1.55rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.demo-modal-header p {
    color: #666;
    font-size: 0.97rem;
}

.demo-steps {
    background: #f0faf6;
    border-right: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.95rem;
    color: #2d6a4f;
    line-height: 1.9;
}

.demo-steps strong {
    color: var(--primary-color);
}

.demo-roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

@media (max-width: 500px) {
    .demo-roles-grid {
        grid-template-columns: 1fr;
    }
    .demo-modal {
        padding: 28px 18px 22px;
    }
}

.demo-role-card {
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-role-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(11, 122, 97, 0.1);
}

.demo-role-card .role-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-role-card .role-desc {
    font-size: 0.83rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.demo-cred-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.demo-cred-row .cred-label {
    color: #888;
    min-width: 48px;
}

.demo-cred-row .cred-val {
    background: #f4f4f4;
    border-radius: 5px;
    padding: 2px 10px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #222;
    letter-spacing: 0.04em;
    direction: ltr;
    display: inline-block;
}

.demo-modal-doc-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.demo-modal-doc-note a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

.demo-modal-footer {
    text-align: center;
}

.demo-modal-footer .btn {
    font-size: 1.05rem;
    padding: 13px 36px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ── Features — VS Code "Code with extensions" style ──────── */
#features {
    background: #f5f7fa;
    padding: 35px 20px;
}

.ext-layout {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 60px;
    align-items: center;
}

/* Intro panel */
.ext-intro h2 {
    color: var(--text-color);
    font-size: 32px;
    line-height: 1.35;
    margin-bottom: 18px;
}

.ext-intro>p {
    color: #555;
    font-size: 15px;
    line-height: 1.85;
    margin-bottom: 28px;
}

.ext-more-link {
    display: block;
    margin-top: 16px;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.ext-more-link:hover {
    color: var(--primary-color);
}

/* Cards grid */
.ext-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ext-card {
    background: #ffffff;
    border: 1px solid #e4e8ed;
    border-radius: 12px;
    padding: 20px 18px;
    transition: background 0.2s, border-color 0.25s, transform 0.2s;
    cursor: default;
}

.ext-card:hover {
    background: #f0faf6;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11, 122, 97, 0.1);
}

.ext-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}

.ext-card strong {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
    line-height: 1.4;
}

.ext-card p {
    color: #777;
    font-size: 12.5px;
    line-height: 1.65;
    margin: 0;
}

/* ── UI Gallery ────────────────────────────────────────── */
#ui-gallery {
    background-color: var(--white);
    padding: 80px 20px;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #085e4a;
}

.gallery-item {
    flex: 0 0 auto;
    width: 600px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 20px;
    text-align: center;
    background: var(--white);
}

.gallery-caption h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.gallery-caption p {
    color: #666;
    font-size: 14px;
}

/* ── CTA Banner ────────────────────────────────────────── */
#cta-banner {
    background: linear-gradient(120deg, #e8f5e9 0%, #d0f0e8 40%, #dce8f7 100%);
    padding: 70px 40px;
    border-top: 1px solid rgba(11, 122, 97, 0.1);
    border-bottom: 1px solid rgba(11, 122, 97, 0.1);
}

.cta-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner-text {
    flex: 1;
    min-width: 280px;
    text-align: right;
}

.cta-banner-text h2 {
    font-size: 34px;
    font-weight: 800;
    color: #1a2a3a;
    margin-bottom: 0;
    line-height: 1.3;
}

.cta-banner-side {
    text-align: center;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-banner-side p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.cta-banner-side .cta-details {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
}

/* ── Pricing ───────────────────────────────────────────── */
#pricing {
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-content: center;
}

.pricing-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 40px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.price {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 20px 0;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: right;
    padding: 0 20px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #555;
}

/* ── Video ─────────────────────────────────────────────── */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ── Contact ───────────────────────────────────────────── */
#contact {
    background: linear-gradient(160deg, #f0faf6 0%, #ffffff 60%);
}

.contact-subtitle {
    margin-bottom: 44px;
    color: #666;
    font-size: 17px;
}

/* Two-column layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 36px;
    align-items: start;
}

/* ── Channels panel ── */
.contact-channels {
    background: #fff;
    border-radius: 20px;
    padding: 32px 26px;
    border: 1px solid #ddf0e8;
    box-shadow: 0 8px 32px rgba(11,122,97,0.08);
}

.channels-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.channels-header h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
}

.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.25);
    animation: pulse-dot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(37,211,102,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(37,211,102,0.10); }
}

.channels-sub {
    color: #999;
    font-size: 13px;
    margin-bottom: 26px;
}

/* ── Shared button shell ── */
.contact-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    margin-bottom: 16px;
    transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
    font-family: 'Tajawal', sans-serif;
    position: relative;
    overflow: hidden;
}

.contact-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.12);
    opacity: 0;
    transition: opacity 0.2s;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.01);
}

.contact-btn:hover::after {
    opacity: 1;
}

/* Icon badge */
.contact-icon-ring {
    position: relative;
    flex-shrink: 0;
}

.contact-icon-ring::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    animation: ring-pulse 2.4s ease-out infinite;
}

@keyframes ring-pulse {
    0%   { transform: scale(0.9); opacity: 0.7; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}

.contact-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.email-icon-wrap {
    background: rgba(255,255,255,0.18);
}

/* Button body text */
.contact-btn-body {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 2px;
}

.contact-btn-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-btn-label {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.contact-badge {
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.28);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.4);
}

.contact-btn-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    direction: ltr;
    text-align: left;
    letter-spacing: 0.3px;
}

.contact-btn-cta {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* ── WhatsApp button ── */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c5e 100%);
    box-shadow: 0 8px 28px rgba(37,211,102,0.38);
}

.whatsapp-btn:hover {
    box-shadow: 0 12px 36px rgba(37,211,102,0.5);
}

/* ── Email button ── */
.email-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #064d3c 100%);
    box-shadow: 0 8px 28px rgba(11,122,97,0.28);
}

.email-btn:hover {
    box-shadow: 0 12px 36px rgba(11,122,97,0.40);
}

/* ── Facebook page button ── */
.facebook-page-btn {
    background: linear-gradient(135deg, #1877f2 0%, #0d5abf 100%);
    box-shadow: 0 8px 28px rgba(24,119,242,0.30);
}

.facebook-page-btn:hover {
    box-shadow: 0 12px 36px rgba(24,119,242,0.44);
}

.facebook-page-icon-wrap {
    background: rgba(255,255,255,0.18);
}

/* ── Availability note ── */
.contact-availability {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 6px;
    color: #888;
    font-size: 15px;
    padding: 10px 14px;
    background: #f6faf8;
    border-radius: 10px;
}

/* ── Developer credit ── */
.dev-credit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f0f7f4;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid #d8eee6;
}

.dev-credit-text {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

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

.social-links {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s, box-shadow 0.18s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.linkedin-link {
    background: #0077b5;
    color: #fff;
}

.facebook-link {
    background: #1877f2;
    color: #fff;
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25d366;
    flex-shrink: 0;
}

/* ── Form panel ── */
.contact-form-wrap {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    border: 1px solid #e4ebe9;
}

.contact-form-wrap h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 24px;
}

form {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

input,
textarea {
    padding: 14px 16px;
    border: 1.5px solid #e0e8e4;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Tajawal', sans-serif;
    background: #f9fbfa;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11,122,97,0.10);
}

input.input-error,
textarea.input-error {
    border-color: #e53935 !important;
    background: #fff8f8 !important;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.10) !important;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-error {
    color: #e53935;
    font-size: 12px;
    min-height: 16px;
    text-align: right;
    padding-right: 4px;
}

textarea {
    resize: vertical;
    height: 140px;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
    background-color: #1a2a3a;
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    font-size: 14px;
    opacity: 0.85;
}

/* ── Scenarios Page ────────────────────────────────────── */
.scenarios-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.scenario-block {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    padding: 40px;
    margin-bottom: 40px;
    text-align: right;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
    border-right: 5px solid var(--primary-color);
    transition: box-shadow 0.3s;
}

.scenario-block:hover {
    box-shadow: 0 8px 30px rgba(11, 122, 97, 0.12);
}

.scenario-icon {
    font-size: 64px;
    line-height: 1;
    text-align: center;
}

.scenario-number {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary-color);
    background: #e8f5e9;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.scenario-body h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.scenario-body>p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
}

.scenario-body ul {
    list-style: none;
    padding: 0;
}

.scenario-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #555;
    position: relative;
    padding-right: 25px;
}

.scenario-body ul li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.scenario-body ul li:last-child {
    border-bottom: none;
}

.scenario-ideal {
    margin-top: 18px;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.scenario-ideal strong {
    color: var(--primary-color);
}

/* ── Scenario Header Row ───────────────────────────────── */
.scenario-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* ── License Badge ─────────────────────────────────────── */
.license-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.4px;
}

.license-badge.regular {
    background: #e3f2fd;
    color: #1565c0;
}

.license-badge.extended {
    background: #fff3e0;
    color: #e65100;
}

/* ── Extended License block accent ─────────────────────── */
.scenario-block-extended {
    border-right-color: #ff9800;
}

/* ── Scenario Diagram Image ─────────────────────────────── */
.scenario-diagram {
    margin: 24px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    grid-column: 1 / -1;
}

.scenario-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Workflow Section ───────────────────────────────────── */
.workflow-section {
    margin: 24px 0 20px;
    direction: rtl;
    text-align: right;
}

.workflow-section h4,
.tech-requirements h4,
.key-points-box h4,
.important-notes h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid currentColor;
    letter-spacing: 0.3px;
}

.workflow-section h4 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
}

.workflow-step {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 22px;
}

.workflow-step:last-child {
    padding-bottom: 0;
}

.workflow-step:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 19px;
    top: 38px;
    bottom: 0;
    width: 2px;
    background: #e0f2e9;
}

.step-circle {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    flex: 1;
    padding-top: 6px;
}

.step-content strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 6px;
}

.step-content ul {
    list-style: disc;
    padding-right: 18px;
    padding-left: 0;
    margin: 6px 0 0;
}

.step-content ul li {
    font-size: 14px;
    color: #555;
    padding: 2px 0;
    border-bottom: none;
    padding-right: 0;
    line-height: 1.6;
}

.step-content ul li::before {
    content: none;
}

/* ── Key Points Box ─────────────────────────────────────── */
.key-points-box {
    margin: 20px 0;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 12px;
    padding: 18px 22px;
    direction: rtl;
    text-align: right;
    border-right: 4px solid var(--primary-color);
}

.key-points-box h4 {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.key-points-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-points-box ul li {
    padding: 5px 22px 5px 0;
    font-size: 14px;
    color: #444;
    border-bottom: none;
    position: relative;
    line-height: 1.6;
}

.key-points-box ul li::before {
    content: '✦';
    position: absolute;
    right: 0;
    top: 7px;
    color: var(--primary-color);
    font-size: 9px;
}

/* ── Technical Requirements (Scenario 4) ───────────────── */
.tech-requirements {
    margin: 22px 0;
    direction: rtl;
    text-align: right;
}

.tech-requirements h4 {
    color: #e65100;
    border-bottom-color: #ff9800;
}

.tech-req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.tech-req-item {
    background: #fff8f0;
    border-radius: 10px;
    padding: 16px;
    border-top: 3px solid #ff9800;
}

.tech-req-item h5 {
    font-size: 13px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 8px;
}

.tech-req-item ul {
    list-style: disc;
    padding-right: 16px;
    padding-left: 0;
    margin: 0;
}

.tech-req-item ul li {
    font-size: 12px;
    color: #666;
    padding: 2px 0;
    border-bottom: none;
    padding-right: 0;
    line-height: 1.5;
}

.tech-req-item ul li::before {
    content: none;
}

/* ── Important Notes Box (Scenario 4) ──────────────────── */
.important-notes {
    margin: 20px 0;
    padding: 18px 22px;
    background: #fff3e0;
    border-radius: 10px;
    border-right: 4px solid #ff9800;
    direction: rtl;
    text-align: right;
}

.important-notes h4 {
    color: #e65100;
    border-bottom-color: #ff9800;
}

.important-notes ul {
    list-style: disc;
    padding-right: 18px;
    padding-left: 0;
    margin: 0;
}

.important-notes ul li {
    font-size: 13px;
    color: #555;
    padding: 3px 0;
    border-bottom: none;
    padding-right: 0;
    line-height: 1.6;
}

.important-notes ul li::before {
    content: none;
}

/* ── Premium Banner (Scenario 4) ───────────────────────── */
.premium-banner {
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e65100, #ff9800);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

/* ── Documentation Page ────────────────────────────────── */
#documentation {
    background-color: var(--secondary-color);
    padding: 0;
}

.doc-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
    text-align: right;
}

.doc-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.doc-sidebar h3 {
    color: var(--primary-color);
    font-size: 17px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.doc-sidebar ul {
    list-style: none;
    padding: 0;
}

.doc-sidebar ul li a {
    display: block;
    padding: 9px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.2s, padding-right 0.2s;
}

.doc-sidebar ul li a:hover {
    color: var(--primary-color);
    padding-right: 6px;
}

.doc-content {
    text-align: right;
}

.doc-section {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h2 {
    color: var(--primary-color);
    font-size: 26px;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color);
    padding-right: 15px;
    text-align: right;
}

.doc-section h3 {
    font-size: 19px;
    color: #333;
    margin: 25px 0 12px;
}

.doc-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.doc-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.doc-section ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #555;
    position: relative;
    padding-right: 22px;
}

.doc-section ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.doc-tip {
    background: #e8f5e9;
    border-right: 4px solid var(--primary-color);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
    font-size: 15px;
    color: #2d6a4f;
    line-height: 1.7;
}

.doc-warning {
    background: #fff3e0;
    border-right: 4px solid #ff9800;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 18px 0;
    font-size: 15px;
    color: #7c4c00;
    line-height: 1.7;
}

.doc-code {
    background: #1a2a3a;
    color: #a8e6cf;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 15px 0;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
}

/* ── Changelog Page ────────────────────────────────────── */
.changelog-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: right;
}

.changelog-entry {
    border-right: 4px solid var(--primary-color);
    padding: 25px 30px;
    margin-bottom: 35px;
    background: var(--white);
    border-radius: 0 14px 14px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.changelog-entry:hover {
    box-shadow: 0 6px 20px rgba(11, 122, 97, 0.12);
}

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

.changelog-version {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
}

.changelog-date {
    font-size: 13px;
    color: #999;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px;
}

.changelog-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.changelog-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.changelog-tag.new {
    background: #e8f5e9;
    color: #2e7d32;
}

.changelog-tag.fix {
    background: #fff3e0;
    color: #e65100;
}

.changelog-tag.improvement {
    background: #e3f2fd;
    color: #1565c0;
}

.changelog-tag.major {
    background: #fce4ec;
    color: #b71c1c;
}

.changelog-entry ul {
    list-style: none;
    padding: 0;
}

.changelog-entry ul li {
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    color: #555;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.changelog-entry ul li:last-child {
    border-bottom: none;
}

/* ── Documentation Page (documentation.html) ───────────── */
body.doc-page {
    background: #f4f6f9;
}

/* Page Hero */
.doc-page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a6b3a 100%);
    color: #fff;
    padding: 50px 30px 38px;
    text-align: center;
}

.doc-page-hero h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.doc-page-hero p {
    font-size: 17px;
    opacity: .85;
    max-width: 580px;
    margin: 0 auto;
}

.doc-hero-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.doc-hero-meta span {
    font-size: 14px;
    opacity: .88;
}

/* Layout */
.doc-layout {
    display: grid;
    grid-template-columns: 295px 1fr;
    min-height: calc(100vh - 200px);
    max-width: 1380px;
    margin: 0 auto;
}

/* Sidebar */
.doc-sidebar {
    background: #fff;
    border-left: 1px solid #e4e7ec;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9f9f9;
}

.sidebar-top {
    padding: 16px 15px 13px;
    border-bottom: 1px solid #e4e7ec;
    background: #fafbfc;
}

.sidebar-top h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 9px;
}

.progress-bar {
    background: #e5e7eb;
    border-radius: 99px;
    height: 5px;
    overflow: hidden;
}

.progress-fill {
    background: var(--primary-color);
    height: 100%;
    width: 0%;
    transition: width .35s;
    border-radius: 99px;
}

.progress-label {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

/* Chapter */
.doc-chapter {
    border-bottom: 1px solid #f3f4f6;
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 13px;
    cursor: pointer;
    background: #fafbfc;
    transition: background .15s;
    user-select: none;
}

.chapter-header:hover {
    background: #f0f9f4;
}

.chapter-icon {
    font-size: 17px;
    flex-shrink: 0;
}

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

.chapter-title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.chapter-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.chapter-arrow {
    font-size: 11px;
    color: #9ca3af;
    transition: transform .25s;
    flex-shrink: 0;
}

.doc-chapter.open .chapter-arrow {
    transform: rotate(180deg);
}

.chapter-lessons {
    display: none;
}

.doc-chapter.open .chapter-lessons {
    display: block;
}

/* Lesson item */
.doc-lesson {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px 9px 9px;
    cursor: pointer;
    transition: background .12s;
    border-right: 3px solid transparent;
    color: #4b5563;
}

.doc-lesson:hover {
    background: #f9fafb;
}

.doc-lesson.active {
    background: #f0fdf4;
    border-right-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.lesson-num {
    font-size: 10px;
    color: #d1d5db;
    width: 17px;
    text-align: center;
    flex-shrink: 0;
}

.lesson-ico {
    font-size: 13px;
    flex-shrink: 0;
}

.lesson-text {
    font-size: 12.5px;
    flex: 1;
    line-height: 1.4;
}

.lesson-dur {
    font-size: 10.5px;
    color: #9ca3af;
    flex-shrink: 0;
    white-space: nowrap;
}

.doc-lesson.active .lesson-num {
    color: var(--primary-color);
}

/* Main */
.doc-main {
    padding: 30px 40px;
    background: #f4f6f9;
}

.doc-section {
    display: none;
}

.doc-section.active {
    display: block;
    animation: sIn .28s ease;
}

@keyframes sIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* Breadcrumb */
.doc-breadcrumb {
    font-size: 12.5px;
    color: #9ca3af;
    margin-bottom: 18px;
}

.doc-breadcrumb b {
    color: #6b7280;
}

/* Video */
.doc-video {
    background: #111827;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 26px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
    cursor: pointer;
}

.doc-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumb {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(160deg, #0f2027, #203a43, #2c5364);
    color: #fff;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, .12);
    border: 2.5px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all .2s;
    backdrop-filter: blur(6px);
}

.doc-video:hover .play-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.video-thumb h3 {
    font-size: 17px;
    text-align: center;
    padding: 0 28px;
    font-weight: 700;
}

.video-thumb p {
    font-size: 12.5px;
    opacity: .5;
}

.video-badge {
    position: absolute;
    top: 13px;
    right: 15px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Section header */
.section-head {
    margin-bottom: 20px;
}

.section-head h2 {
    font-size: 25px;
    color: #111827;
    margin-bottom: 7px;
    line-height: 1.35;
}

.section-head p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.78;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 11px;
}

/* Steps block */
.steps-block {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    margin: 18px 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .06);
}

.steps-block h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
    padding-bottom: 11px;
    border-bottom: 1px solid #f3f4f6;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-list li {
    display: flex;
    gap: 13px;
    padding: 11px 0;
    border-bottom: 1px solid #f9fafb;
    align-items: flex-start;
}

.step-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.snum {
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
}

.sbody {
    flex: 1;
}

.sbody strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 3px;
}

.sbody span {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
}

/* Info boxes */
.ibox {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 15px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 13.5px;
    line-height: 1.72;
}

.ibox-tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.ibox-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.ibox-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.ibox-ico {
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Code */
.doc-code {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 15px 17px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    margin: 13px 0;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin: 18px 0;
}

.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.info-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 9px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card ul li {
    font-size: 12.5px;
    color: #6b7280;
    padding: 3px 0;
}

.info-card ul li::before {
    content: "✔ ";
    color: var(--primary-color);
    font-size: 11px;
}

/* Nav */
.doc-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    gap: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 19px;
    border-radius: 9px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-family: 'Tajawal', sans-serif;
    font-size: 13.5px;
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
}

.nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-btn.primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.nav-btn.primary:hover {
    background: #166534;
}

.nav-btn:disabled {
    opacity: .4;
    pointer-events: none;
}

/* ── Hamburger / Mobile Nav ─────────────────────────────── */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 4px;
    z-index: 1100;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .doc-wrapper {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }

    .gallery-item {
        width: 480px;
    }

    .ext-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ext-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-detail-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* ── Header / Nav ─── */
    header {
        padding: 14px 20px;
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    header>.btn {
        display: none;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.32s ease-out;
        z-index: 999;
    }

    nav.open {
        max-height: 380px;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 14px;
    }

    nav a {
        padding: 12px 24px;
        font-size: 15px;
        border-bottom: 1px solid #f3f4f6;
        display: block;
    }

    nav a:hover {
        padding-right: 30px;
    }

    /* ── Hero ─── */
    #hero {
        padding: 80px 20px 60px;
    }

    #hero h1 {
        font-size: 30px;
    }

    #hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* ── Features ─── */
    .ext-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* ── Feature Detail ─── */
    .feature-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-detail.alt .feature-detail-content {
        direction: rtl;
    }

    .feature-detail-content .feature-text {
        order: -1;
    }

    .feature-detail-content .feature-image-slider {
        order: 0;
    }

    .feature-detail-content .slider-controls {
        order: 1;
    }

    .feature-text h2 {
        font-size: 26px;
    }

    .feature-text p {
        font-size: 16px;
    }

    .slider-track .slide img {
        height: 260px;
    }

    .slider-controls {
        flex-direction: row;
    }

    .slider-prev,
    .slider-next {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    /* ── Gallery ─── */
    .gallery-item {
        width: 88vw;
    }

    .gallery-item img {
        height: 260px;
    }

    /* ── CTA Banner ─── */
    #cta-banner {
        padding: 50px 20px;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-text {
        text-align: center;
    }

    .cta-banner-text h2 {
        font-size: 24px;
    }

    /* ── Pricing ─── */
    .pricing-card {
        padding: 30px 16px;
    }

    /* ── Page heroes ─── */
    .page-hero {
        padding: 60px 20px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 15px;
    }

    .doc-page-hero {
        padding: 36px 20px 28px;
    }

    .doc-page-hero h1 {
        font-size: 26px;
    }

    .doc-hero-meta {
        gap: 14px;
    }

    /* ── Section headings ─── */
    h2 {
        font-size: 28px;
        margin-bottom: 36px;
    }

    /* ── Doc page ─── */
    .doc-wrapper {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
    }

    /* ── Scenarios ─── */
    .scenario-block {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }

    .scenario-icon {
        text-align: center;
    }

    .tech-req-grid {
        grid-template-columns: 1fr;
    }

    .workflow-step:not(:last-child)::before {
        right: 19px;
        left: auto;
    }

    /* ── Changelog ─── */
    .changelog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ── Contact ─── */
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-channels,
    .contact-form-wrap {
        padding: 28px 20px;
    }

    /* ── Contact form ─── */
    form {
        padding: 0 4px;
    }
}

@media (max-width: 860px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        position: static;
        height: auto;
        border-left: none;
        border-bottom: 1px solid #e4e7ec;
    }

    .doc-main {
        padding: 20px 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 16px;
    }

    .logo {
        font-size: 22px;
    }

    .logo img {
        height: 40px;
    }

    #hero {
        padding: 70px 16px 50px;
    }

    #hero h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    #hero p {
            font-size: 15px;
            display: none;
    }

    section {
        padding: 25px 16px;
    }

    .page-hero {
        padding: 20px 16px;
    }

    .page-hero h1 {
        font-size: 22px;
        margin-bottom: 0px;
    }

    .page-hero p {
        font-size: 14px;
        display: none;
    }

    .doc-page-hero h1 {
        font-size: 20px;
    }

    .doc-page-hero p {
        font-size: 14px;
    }

    .doc-hero-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 26px;
    }

    .badge-content h2 {
        font-size: 22px;
    }

    .badge-content p {
        font-size: 15px;
    }

    .ext-grid {
        grid-template-columns: 1fr;
    }

    .feature-text h2 {
        font-size: 20px;
    }

    .feature-text p {
        font-size: 14px;
    }

    .feature-text ul li {
        font-size: 14px;
    }

    .price {
        font-size: 30px;
    }

    .scenario-block {
        padding: 18px 14px;
    }

    .scenario-body h3 {
        font-size: 19px;
    }

    .scenario-icon {
        font-size: 48px;
    }

    .gallery-item {
        width: 95vw;
    }

    .gallery-item img {
        height: 200px;
    }

    .gallery-caption h3 {
        font-size: 16px;
    }

    .btn {
        padding: 12px 26px;
        font-size: 14px;
    }

    .cta-banner-text h2 {
        font-size: 20px;
    }

    .doc-main {
        padding: 16px 12px;
    }

    .section-head h2 {
        font-size: 20px;
    }

    .steps-block {
        padding: 16px;
    }

    footer {
        padding: 20px 16px;
    }
}