/* =========================================================
   Aurora GSM V2 — Main Stylesheet
   نظام تصميم Soft UI: ظلال ناعمة، زوايا دائرية سخية، تدرّجات هادئة
   لوحة ألوان متعددة ومتناسقة + وضع داكن/فاتح كامل
   ========================================================= */

:root {
    /* ---- لوحة الألوان الأساسية (متعددة ومتناسقة) ---- */
    --color-primary: #1565FF;        /* أزرق الإشارة — اللون الأساسي */
    --color-primary-hover: #0D47D9;
    --color-accent: #16C784;         /* أخضر النعناع — نجاح/ثانوي */
    --color-warm: #FFB703;           /* كهرماني — تنبيه/تمييز */
    --color-violet: #7C6FF0;         /* بنفسجي — تنويع/مميزات */
    --color-danger: #E5484D;

    /* ---- الوضع الفاتح (افتراضي) ----
       سمة Soft UI: الخلفية والبطاقة من نفس عائلة اللون، والعمق بييجي من الظل المزدوج
       القوي والواضح، مش من تباين الألوان */
    --color-bg: #E3E9F4;
    --color-bg-alt: #DCE4F1;
    --color-card: #F0F4FA;
    --color-text: #5B6579;
    --color-title: #1A2436;
    --color-border: rgba(29, 41, 57, 0.05);
    --color-input-bg: #E3E9F4;
    --color-dark: #0B1220;
    --color-dark-2: #10192E;

    /* الظل المزدوج (Neumorphic) — قوي وواضح للعين مباشرة:
       غامق مشبّع من جهة + توهج أبيض شبه كامل من الجهة المقابلة */
    --shadow-dark: rgba(145, 161, 191, 0.75);
    --shadow-light: rgba(255, 255, 255, 0.95);

    --shadow-sm: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
    --shadow-md: 13px 13px 28px var(--shadow-dark), -11px -11px 26px var(--shadow-light);
    --shadow-lg: 22px 22px 46px var(--shadow-dark), -18px -18px 40px var(--shadow-light);

    /* الظل الغائر (Pressed/Inset) — للعناصر اللي لازم تبان "مضغوطة جوّه" السطح مثل الإدخالات */
    --shadow-inset: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    --shadow-inset-sm: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);

    /* الخطوط */
    --font-ar: 'IBM Plex Sans Arabic', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* الانحناءات — سخية (سمة أساسية في Soft UI) */
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;

    /* الانتقالات */
    --transition: all 0.25s ease;

    color-scheme: light;
}

/* ---- الوضع الداكن ---- */
[data-theme="dark"] {
    --color-bg: #0E1524;
    --color-bg-alt: #121B2E;
    --color-card: #121B2E;
    --color-text: rgba(255, 255, 255, 0.62);
    --color-title: #F5F7FB;
    --color-border: rgba(255, 255, 255, 0.07);
    --color-input-bg: #0E1524;

    /* في الداكن: الظل الغامق حقيقي وأقوى، والتوهج الفاتح خفيف (مفيش سطح لامع في الضلمة) */
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --shadow-light: rgba(255, 255, 255, 0.05);

    --shadow-sm: 6px 6px 14px var(--shadow-dark), -6px -6px 14px var(--shadow-light);
    --shadow-md: 13px 13px 28px var(--shadow-dark), -11px -11px 26px var(--shadow-light);
    --shadow-lg: 22px 22px 46px var(--shadow-dark), -18px -18px 40px var(--shadow-light);
    --shadow-inset: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
    --shadow-inset-sm: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);

    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ar), var(--font-en);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
body.lang-en { font-family: var(--font-en), var(--font-ar); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

h1, h2, h3, h4 {
    color: var(--color-title);
    font-weight: 700;
    line-height: 1.3;
}

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

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #3D7FFF);
    color: #fff;
    box-shadow: 0 10px 24px -6px rgba(21, 101, 255, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -6px rgba(21, 101, 255, 0.48);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px -4px rgba(21, 101, 255, 0.5);
}

.btn-outline {
    background: var(--color-card);
    color: var(--color-primary);
    border: none;
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
    color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline:active {
    transform: translateY(0);
    box-shadow: var(--shadow-inset-sm);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-card);
    background: color-mix(in srgb, var(--color-card) 85%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--color-title);
    flex-shrink: 0;
}
.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-weight: 800;
}
.logo-mark-img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav a {
    display: block;
    position: relative;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    transition: color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
    z-index: 1;
}
.main-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}
.main-nav a:hover {
    color: var(--color-primary);
    transform: translateY(-2px);
}
.main-nav a:hover::before { opacity: 1; transform: scale(1); }
.main-nav a.active {
    color: #fff;
}
.main-nav a.active::before {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 6px 16px -4px rgba(21, 101, 255, 0.45);
}
.main-nav a.active:hover { transform: translateY(-2px); color: #fff; }

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

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-title);
    transition: var(--transition);
}
.icon-btn:hover { background: rgba(21, 101, 255, 0.08); color: var(--color-primary); }

.lang-switch-btn {
    width: auto;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: var(--font-en);
    border: 1.5px solid var(--color-border);
    letter-spacing: 0.4px;
}

.lang-switch .icon-btn {
    width: auto;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--color-border);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}
.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-title);
    border-radius: 2px;
    transition: var(--transition);
}

.search-bar {
    max-height: 0;
    overflow: hidden;
    background: var(--color-card);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.search-bar.open {
    max-height: 90px;
    border-bottom: 1px solid var(--color-border);
}
.search-bar .container { padding: 18px 24px; }
.search-bar input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 12px 20px;
    outline: none;
    font-size: 14px;
}
.search-bar input:focus { border-color: var(--color-primary); }

/* ============ Hero Slider ============ */
.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; position: relative; }

.hero-content {
    max-width: 720px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.badge-accent {
    background: rgba(22, 199, 132, 0.18);
    color: #58f0b6;
    border: 1px solid rgba(22, 199, 132, 0.4);
}

.hero-slide h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 20px;
}
.hero-slide h1 span { color: #7FB2FF; }

.hero-slide p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    max-width: 560px;
    margin-bottom: 32px;
}

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

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}
.hero-dots span.active { background: #fff; width: 24px; border-radius: 4px; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: var(--transition);
}
.hero-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

/* ============ Sections General ============ */
.section { padding: 84px 0; }

/* ============ نماذج الإدخال العامة في الموقع (form-group) ============
   هذا الكلاس مُستخدم في نافذة الطلب وصفحة التواصل، وكان بدون أي تصميم خالص قبل كده */
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-title);
}
.form-group label .optional { font-weight: 400; color: #9AA4B2; font-size: 12px; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-title);
    background: var(--color-input-bg);
    box-shadow: var(--shadow-inset-sm);
    transition: var(--transition);
    width: 100%;
}
.form-group select { cursor: pointer; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9099AA; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--color-input-bg);
    box-shadow: var(--shadow-inset-sm), 0 0 0 3px rgba(21, 101, 255, 0.18);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 44px;
    gap: 20px;
}
.section-head.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.eyebrow-light { color: #7FB2FF; }

.section-head h2 { font-size: 32px; }
.text-light { color: #fff; }

.link-more {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
}
.link-more:hover { color: var(--color-primary-hover); }

/* ============ Grid ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ============ Card ============ */
.card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

/* ---- Offers ---- */
.offer-card { position: relative; }
.offer-tag {
    display: inline-block;
    background: rgba(22, 199, 132, 0.14);
    color: #0E9A63;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.offer-card h3 { font-size: 17px; margin-bottom: 8px; }
.offer-card p { font-size: 14px; margin-bottom: 16px; }
.offer-price { font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--color-title); }
.offer-price s { font-size: 14px; font-weight: 500; color: #9AA4B2; margin-inline-start: 6px; }

/* ---- Tool card: image + multi-tier pricing ---- */
.tool-card { display: flex; flex-direction: column; }
.tool-card-image {
    width: 100%;
    height: 130px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #F3F6FC, #EAF1FF);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
}
[data-theme="dark"] .tool-card-image {
    background: linear-gradient(135deg, #16223F, #121B2E);
}
.tool-card-image img {
    max-width: 78%;
    max-height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(21, 101, 255, 0.12));
}
.tool-card-image-fallback { font-size: 38px; opacity: 0.5; }

.tool-website-link {
    font-size: 12.5px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-weight: 600;
    transition: var(--transition);
}
.tool-website-link:hover { gap: 7px; }

.tool-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.tool-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: var(--color-bg);
    transition: var(--transition);
}
.tool-tier-row + .tool-tier-row { border-top: 1px solid var(--color-border); }
.tool-tier-row.featured {
    background: linear-gradient(90deg, rgba(21, 101, 255, 0.07), rgba(22, 199, 132, 0.05));
}
.tool-tier-duration { font-size: 13px; font-weight: 600; color: var(--color-text); }
.tool-tier-price {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 14.5px;
    background: linear-gradient(90deg, var(--color-primary), #16C784);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: tierPriceShimmer 3.5s ease-in-out infinite;
}
.tool-tier-price .price-sep { -webkit-text-fill-color: var(--color-text); opacity: 0.5; }
@keyframes tierPriceShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
.tool-tier-price-single {
    background: linear-gradient(90deg, var(--color-primary), #16C784);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: tierPriceShimmer 3.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .tool-tier-price, .tool-tier-price-single { animation: none; }
}

/* ============ بلوكات الصفحة الرئيسية القابلة للتخصيص ============ */

/* CTA */
.home-cta-box {
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
}
.home-cta-box h2 { color: #fff; font-size: 28px; margin-bottom: 12px; }
.home-cta-box p { color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 24px; max-width: 560px; margin-inline: auto; }
.home-cta-box .btn-primary { background: #fff; color: var(--color-primary); }
.home-cta-box .btn-primary:hover { background: rgba(255,255,255,.9); }

/* Stats */
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.home-stat-item { display: flex; flex-direction: column; gap: 6px; }
.home-stat-number { font-family: var(--font-en); font-size: 36px; font-weight: 800; background: linear-gradient(90deg, var(--color-primary), #16C784); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.home-stat-label { font-size: 14px; color: var(--color-text); font-weight: 600; }

/* Features (ليه تختارنا) */
.home-feature-card { text-align: center; }
.home-feature-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    border-radius: 16px;
    margin: 0 auto 16px;
}
.home-feature-card:nth-child(3n+2) .home-feature-icon { color: var(--color-accent); }
.home-feature-card:nth-child(3n+3) .home-feature-icon { color: var(--color-violet); }
.home-feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.home-feature-card p { font-size: 13.5px; color: var(--color-text); }

/* Testimonials */
.home-testimonial-card { }
.home-testimonial-stars { font-size: 14px; margin-bottom: 12px; }
.home-testimonial-text { font-size: 14.5px; color: var(--color-text); line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.home-testimonial-author { display: flex; flex-direction: column; gap: 2px; }
.home-testimonial-author strong { font-size: 14px; color: var(--color-title); }
.home-testimonial-author span { font-size: 12.5px; color: #9AA4B2; }

/* FAQ */
.home-faq-list { display: flex; flex-direction: column; gap: 10px; }
.home-faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}
.home-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-title);
    list-style: none;
    position: relative;
    padding-inline-end: 24px;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
    content: '+';
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    font-size: 18px;
    color: var(--color-primary);
    transition: var(--transition);
}
.home-faq-item[open] summary::after { content: '−'; }
.home-faq-item p { font-size: 14px; color: var(--color-text); margin-top: 12px; line-height: 1.7; }

/* Rich text + image */
.home-richtext-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.home-richtext-grid.image-left { direction: rtl; }
.home-richtext-grid.image-left .home-richtext-image { order: 2; }
[dir="ltr"] .home-richtext-grid.image-left { direction: ltr; }
.home-richtext-image img { width: 100%; border-radius: var(--radius-md); object-fit: cover; box-shadow: var(--shadow-md); }
.home-richtext-content h2 { font-size: 26px; margin-bottom: 14px; }
.home-richtext-content p { font-size: 15px; color: var(--color-text); line-height: 1.8; margin-bottom: 20px; white-space: pre-wrap; }

@media (max-width: 900px) {
    .home-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .home-richtext-grid { grid-template-columns: 1fr; }
    .home-richtext-grid.image-left .home-richtext-image { order: 0; }
}
@media (max-width: 560px) {
    .home-cta-box { padding: 36px 22px; }
    .home-cta-box h2 { font-size: 22px; }
}

/* ---- Service detail page ---- */
.service-detail-card { padding: 0; overflow: hidden; }
.service-detail-image { width: 100%; height: 280px; object-fit: cover; display: block; }
.service-how-it-works { background: var(--color-bg); border-radius: var(--radius-md); padding: 22px; margin-bottom: 28px; }
.service-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-step { text-align: center; }
.service-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #16C784);
    color: #fff; font-weight: 800; font-size: 13px; margin-bottom: 8px;
}
.service-step p { font-size: 13px; color: var(--color-text); line-height: 1.6; }
.service-detail-cta {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    padding-top: 24px; border-top: 1px solid var(--color-border);
}
@media (max-width: 640px) {
    .service-steps { grid-template-columns: 1fr; gap: 10px; }
    .service-detail-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---- صفحة القسم المقفول (تسجيل مطلوب / متوقف مؤقتًا) ---- */
.section-locked-page { padding-top: 60px; padding-bottom: 60px; }
.section-locked-card {
    text-align: center;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
}
.section-locked-icon {
    width: 76px; height: 76px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    border-radius: 50%;
    margin: 0 auto 22px;
}
.section-locked-card h1 { font-size: 22px; margin-bottom: 12px; }
.section-locked-card p { font-size: 14.5px; color: var(--color-text); line-height: 1.8; margin-bottom: 28px; }
.section-locked-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* حالة: تسجيل مطلوب — هوية زرقاء/براند، تحفيزية */
.section-locked-card.is-login-required { border-top: 4px solid var(--color-primary); }
.section-locked-card.is-login-required .section-locked-icon {
    background: linear-gradient(135deg, rgba(21,101,255,.12), rgba(22,199,132,.1));
}

/* حالة: متوقف مؤقتًا — هوية برتقالية/تحذيرية هادئة */
.section-locked-card.is-disabled { border-top: 4px solid #FFB703; }
.section-locked-card.is-disabled .section-locked-icon {
    background: linear-gradient(135deg, rgba(255,183,3,.15), rgba(255,107,53,.1));
}

/* ---- Brands ---- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.brand-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 26px 16px;
    text-align: center;
    font-weight: 700;
    color: var(--color-title);
    transition: var(--transition);
}
.brand-item:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

/* ---- Services ---- */
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; }

/* ---- Redesigned service card (image header + structured body) ---- */
.service-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.service-card:hover { transform: translateY(-8px); }
.service-card-link { display: block; color: inherit; }
.service-card-link:hover { color: inherit; }

/* تمييز اسم الخدمة/الأداة (بطاقات + صفحة التفاصيل + النافذة المنبثقة) */
.service-name-highlight {
    color: var(--color-title);
    position: relative;
    display: inline-block;
}
.service-name-highlight::after {
    content: '';
    position: absolute;
    bottom: -3px;
    inset-inline-start: 0;
    width: 32px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), #16C784);
}

.service-card-media {
    position: relative;
    width: 100%;
    height: 168px;
    overflow: hidden;
    background: var(--color-bg);
}
.service-card-media .service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.service-card:hover .service-card-media .service-card-image { transform: scale(1.07); }

.service-card-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: rgba(11, 18, 32, 0.65);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

.service-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}
.service-card-body .service-icon { margin-bottom: 16px; }
.service-card-body h3 { font-size: 17px; }
.service-card-body p {
    flex: 1;
    color: var(--color-text);
    line-height: 1.65;
}
.service-delivery { font-size: 12.5px; color: var(--color-accent); font-weight: 600; margin-top: 8px; }

.service-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}
.service-card-footer .service-price { margin-top: 0; }
.service-card-footer .order-request-btn { margin-top: 0; }

/* ---- Tools (dark) ---- */
.tools-dark {
    background: linear-gradient(180deg, var(--color-dark), var(--color-dark-2));
}
.tools-grid { grid-template-columns: repeat(5, 1fr); }
.tool-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
}
.tool-chip:hover {
    background: rgba(21, 101, 255, 0.2);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}
.tools-cta { text-align: center; margin-top: 40px; }

/* ---- IMEI ---- */
.imei-section {
    background: linear-gradient(135deg, rgba(21,101,255,0.06), rgba(22,199,132,0.06));
}
.imei-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.imei-text { max-width: 480px; }
.imei-text h2 { font-size: 28px; margin: 8px 0 12px; }

.imei-form {
    display: flex;
    gap: 10px;
    background: var(--color-card);
    padding: 8px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 300px;
    max-width: 480px;
}
.imei-form input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 999px;
}

/* ---- Solutions ---- */
.solution-date {
    display: inline-block;
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 10px;
}
.solution-card h3 { font-size: 16px; }

/* ---- Stats ---- */
.stats-section { padding: 60px 0; }
.stats-grid { text-align: center; }
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-inline-start: 1px solid var(--color-border);
    padding: 0 12px;
}
.stat-item:first-child { border-inline-start: none; }
.stat-number {
    font-family: var(--font-en);
    font-size: 34px;
    font-weight: 800;
    color: var(--color-primary);
}
.stat-label { font-size: 14px; color: var(--color-text); }

/* ---- Partners ---- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.partner-item {
    background: var(--color-card);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    padding: 22px 12px;
    text-align: center;
    color: #9AA4B2;
    font-size: 13px;
    font-weight: 600;
}

/* ============ Placeholder pages ============ */
.placeholder-box {
    background: var(--color-card);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: 60px 24px;
    text-align: center;
    color: var(--color-text);
}

/* ============ Images: logos & service pictures ============ */
.brand-logo {
    max-width: 100%;
    max-height: 32px;
    object-fit: contain;
}
.company-filter-chip { display: inline-flex; align-items: center; gap: 8px; }
.company-filter-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.company-filter-count { font-size: 11px; opacity: 0.7; font-family: var(--font-en); }

/* شريط فلتر الشركات (صفحة الخدمات العامة) — منظّم ومتناسق عبر كل المتصفحات */
.company-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}
.company-filter-bar .btn { flex: 0 0 auto; }

/* بحث فوري لصفحة الخدمات */
.services-search-box {
    max-width: 420px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
}
.services-search-box svg { position: absolute; inset-inline-start: 16px; color: #9AA4B2; pointer-events: none; }
.services-search-box input {
    width: 100%;
    padding: 12px 16px 12px 16px;
    padding-inline-start: 44px;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--color-input-bg);
}
.services-search-box input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.1); }

/* شارة "الأكثر طلبًا" */
.service-featured-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: linear-gradient(135deg, #FF6B35, #FFB703);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.35);
}
.service-featured-badge-inline { position: static; display: inline-block; }

/* سعر متحرك بتدرّج لوني (نفس لغة تصميم الأدوات) */
.service-price-animated {
    background: linear-gradient(90deg, var(--color-primary), #16C784);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tierPriceShimmer 3.5s ease-in-out infinite;
}
.service-price-animated .price-sep { -webkit-text-fill-color: var(--color-text); opacity: 0.5; }
@media (prefers-reduced-motion: reduce) {
    .service-price-animated { animation: none; }
}

/* ============ Dual currency price ============ */
.service-price {
    margin-top: 14px;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 16px;
    color: var(--color-title);
}
.price-sep {
    color: #C4CBD6;
    font-weight: 400;
    margin: 0 4px;
}

/* ============ Scroll-reveal animation ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ IMEI Check Page ============ */
.imei-check-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.imei-check-card select,
.imei-check-card input[type="text"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: var(--color-input-bg);
}
.imei-check-card select:focus,
.imei-check-card input[type="text"]:focus {
    border-color: var(--color-primary);
    background: var(--color-card);
}
.imei-submit-btn {
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.imei-submit-btn.loading .imei-btn-text::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-inline-start: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: imeiSpin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes imeiSpin { to { transform: rotate(360deg); } }

.imei-result-box {
    margin-top: 24px;
    padding: 22px;
    border-radius: var(--radius-md);
    animation: imeiResultIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes imeiResultIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.imei-result-box.success { background: rgba(22, 199, 132, 0.07); border: 1px solid rgba(22, 199, 132, 0.25); }
.imei-result-box.error { background: rgba(217, 45, 32, 0.06); border: 1px solid rgba(217, 45, 32, 0.2); }
.imei-result-icon { font-size: 28px; margin-bottom: 8px; }
.imei-result-box h4 { font-size: 16px; margin-bottom: 10px; }
.imei-result-box p { font-size: 14px; color: var(--color-text); }

.imei-result-table { display: flex; flex-direction: column; gap: 8px; }
.imei-result-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(11, 18, 32, 0.08);
}
.imei-result-row span:first-child { color: var(--color-text); text-transform: capitalize; }
.imei-result-row span:last-child { color: var(--color-title); font-weight: 600; word-break: break-word; text-align: left; }

.imei-result-raw {
    background: rgba(11, 18, 32, 0.04);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 12.5px;
    white-space: pre-wrap;
    word-break: break-word;
    direction: ltr;
    text-align: left;
    max-height: 240px;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .imei-check-card { padding: 24px 20px; }
}
/* ============ Order Request Modal ============ */
/* ============ Currency Selection Modal (نافذة اختيار العملة) ============ */
.currency-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}
.currency-modal-overlay.open { opacity: 1; visibility: visible; }
.currency-modal-overlay.closing .currency-modal { transform: scale(0.9); opacity: 0; }

.currency-modal {
    position: relative;
    background: var(--color-card);
    border-radius: 28px;
    padding: 44px 36px 36px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 40px 90px rgba(8, 12, 24, 0.4);
    transform: scale(0.75) rotate(-3deg);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    overflow: hidden;
}
.currency-modal-overlay.open .currency-modal { transform: scale(1) rotate(0deg); opacity: 1; }

.currency-modal-glow {
    position: absolute;
    top: -80px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 101, 255, 0.22), transparent 70%);
    animation: currencyGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes currencyGlowPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
    50% { transform: translateX(-50%) scale(1.25); opacity: 0.5; }
}

.currency-modal-icon {
    font-size: 52px;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    animation: currencyIconSpin 7s linear infinite;
}
@keyframes currencyIconSpin {
    0%, 92%, 100% { transform: rotate(0deg); }
    95% { transform: rotate(-12deg); }
    97% { transform: rotate(10deg); }
}

.currency-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-title);
    margin-bottom: 4px;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: currencyFadeUp 0.5s ease 0.15s forwards;
}
.currency-modal-title-en {
    display: block;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 4px;
}

.currency-modal-desc {
    font-size: 13.5px;
    color: var(--color-text);
    line-height: 1.8;
    margin: 16px 0 26px;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: currencyFadeUp 0.5s ease 0.25s forwards;
}
.currency-modal-desc-en {
    display: block;
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--color-text);
    opacity: 0.75;
    margin-top: 6px;
    line-height: 1.6;
}

.currency-modal-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}
.currency-modal-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--color-bg);
    border: 2px solid transparent;
    text-align: start;
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: translateY(14px);
    animation: currencyFadeUp 0.5s ease forwards;
}
.currency-modal-btn-iraq { animation-delay: 0.35s; }
.currency-modal-btn-world { animation-delay: 0.45s; }
.currency-modal-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-card);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.currency-modal-btn:active { transform: translateY(0) scale(0.98); }
.currency-modal-flag {
    font-size: 30px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.currency-modal-btn:hover .currency-modal-flag { transform: scale(1.15) rotate(-6deg); }
.currency-modal-btn-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-title);
}
.currency-modal-btn-text em {
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}
.currency-modal-btn-text small {
    font-family: var(--font-en);
    font-size: 11px;
    color: var(--color-text);
    opacity: 0.7;
}

.currency-modal-footnote {
    font-size: 11.5px;
    color: var(--color-text);
    opacity: 0.7;
    margin-top: 22px;
    position: relative;
}

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

@media (max-width: 480px) {
    .currency-modal { padding: 32px 22px 26px; border-radius: 22px; }
    .currency-modal-icon { font-size: 42px; }
    .currency-modal-title { font-size: 19px; }
}


.order-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}
.order-modal-overlay.open { opacity: 1; visibility: visible; }

.order-modal {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 460px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 70px rgba(11, 18, 32, 0.3);
    transform: translateY(30px) scale(0.94);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.order-modal-overlay.open .order-modal { transform: translateY(0) scale(1); opacity: 1; }
.order-modal::before {
    content: '';
    position: absolute;
    top: 0; inset-inline-start: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), #16C784, var(--color-primary));
    background-size: 200% auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: modalAccentFlow 3s linear infinite;
}
@keyframes modalAccentFlow {
    to { background-position: 200% center; }
}

.order-modal-close {
    position: absolute;
    top: 20px;
    inset-inline-end: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.order-modal-close:hover { background: rgba(217, 45, 32, 0.1); color: #D92D20; transform: rotate(90deg); }

.order-modal-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    animation: orderContentIn 0.45s ease 0.02s backwards;
}

.order-modal h3.order-modal-title-highlight {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 8px;
    padding-inline-end: 30px;
    color: var(--color-title);
    position: relative;
    display: inline-block;
    animation: orderContentIn 0.45s ease 0.08s backwards;
}
.order-modal h3.order-modal-title-highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    inset-inline-start: 0;
    width: 42px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), #16C784);
}
.order-modal-price {
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 22px;
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary), #16C784);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 22px;
    animation: orderContentIn 0.45s ease 0.14s backwards;
}
@keyframes orderContentIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-modal-section p { font-size: 14px; margin-bottom: 12px; }
.order-modal-note { font-size: 13px; color: var(--color-text); margin-top: 14px; }
.order-modal-note a { color: var(--color-primary); font-weight: 600; }

.order-tier-select-group { margin-bottom: 18px; }
.order-tier-options { display: flex; flex-wrap: wrap; gap: 8px; }
.order-tier-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background: var(--color-input-bg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}
.order-tier-pill input { width: auto; margin: 0; accent-color: var(--color-primary); }
.order-tier-pill-duration { font-weight: 600; color: var(--color-title); }
.order-tier-pill-price { font-weight: 800; font-family: var(--font-en); color: var(--color-primary); }
.order-tier-pill:hover { border-color: var(--color-primary); }
.order-tier-pill.selected {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(21, 101, 255, 0.08), rgba(22, 199, 132, 0.06));
    box-shadow: 0 0 0 3px rgba(21, 101, 255, 0.08);
}

.order-modal-form { display: flex; flex-direction: column; }
.order-modal-form .auth-submit { margin-top: 6px; }

.order-modal-guest-intro { font-size: 14px; color: var(--color-text); margin-bottom: 18px; line-height: 1.6; }

.order-contact-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.order-contact-btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    transition: var(--transition);
    animation: orderBtnPop 0.4s ease backwards;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.order-contact-btn:nth-child(1) { animation-delay: 0.05s; }
.order-contact-btn:nth-child(2) { animation-delay: 0.12s; }
.order-contact-btn:nth-child(3) { animation-delay: 0.19s; }
@keyframes orderBtnPop {
    from { opacity: 0; transform: translateY(8px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.order-contact-btn:hover { transform: translateY(-4px); box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18); }
.order-contact-btn.whatsapp { background: linear-gradient(135deg, #25D366, #1EBE57); }
.order-contact-btn.telegram { background: linear-gradient(135deg, #34AADF, #1E96D1); }
.order-contact-btn.messenger { background: linear-gradient(135deg, #7B68EE, #5A4BD1); }

.order-message-preview { margin-bottom: 8px; }
.order-message-preview summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
    padding: 4px 0;
    user-select: none;
}
.order-message-preview[open] summary { margin-bottom: 10px; }

.order-message-box textarea {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    font-family: inherit;
    resize: vertical;
    color: var(--color-title);
    background: var(--color-bg);
    margin-bottom: 10px;
}

/* زر "اطلب" داخل بطاقات الخدمات/الأدوات */
.order-request-btn { width: 100%; margin-top: 14px; }

@media (max-width: 480px) {
    .order-modal { padding: 24px 20px; }
    .order-contact-buttons { flex-direction: column; }
}

/* ============ Contact Page ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}
.contact-form-card { padding: 36px; }
.contact-form-card textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}
.contact-info-card { padding: 28px; }
.contact-info-card h3 { font-size: 17px; margin-bottom: 18px; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(21, 101, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-info-list strong { display: block; font-size: 14px; color: var(--color-title); margin-bottom: 2px; }
.contact-info-list span { font-size: 13.5px; color: var(--color-text); }
.contact-info { display: flex; flex-direction: column; gap: 20px; }

/* ============ Solutions Page ============ */
.solution-category-card { text-align: center; }
.solution-category-card .service-icon { margin: 0 auto 18px; }
.solution-category-card h3 { font-size: 17px; margin-bottom: 8px; }

/* ============ Footer ============ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.65);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 70px 0 50px;
}
.footer-brand p { margin: 16px 0 20px; font-size: 14px; line-height: 1.8; }
.site-footer .logo { color: #fff; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    transition: var(--transition);
}
.social-links a:hover { background: var(--color-primary); }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-col p { font-size: 14px; margin-bottom: 14px; }

.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 13px;
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.4); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 20px 0; }
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============ Back to top ============ */
/* ============ شريط التنقل السفلي (شكل تطبيق) — موبايل/تابلت فقط ============ */
.app-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 998;
    background: var(--color-card);
    box-shadow: 0 -10px 30px var(--shadow-dark);
    padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0));
    gap: 4px;
}
.app-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    margin: 0 2px;
    border-radius: 16px;
    color: #9AA4B2;
    font-size: 10.5px;
    font-weight: 600;
    transition: var(--transition);
}
.app-bottom-nav-item svg { transition: var(--transition); }
.app-bottom-nav-item.active {
    color: var(--color-primary);
    background: var(--color-card);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}
.app-bottom-nav-item:active { box-shadow: var(--shadow-inset-sm); transform: scale(0.96); }

@media (max-width: 860px) {
    .app-bottom-nav { display: flex; }
    .menu-toggle { display: none !important; }
    body:not(.admin-body) { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0)); }
    .back-to-top { bottom: calc(70px + env(safe-area-inset-bottom, 0)); }
}

.back-to-top {
    position: fixed;
    bottom: 28px;
    inset-inline-end: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
