/* ===== CSS Variables & Design Tokens ===== */
:root {
    /* Primary Palette - Electric Blue to Violet */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;

    /* Accent - Cyan / Teal */
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;

    /* Semantic */
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;

    /* Dark Surface Palette */
    --surface-50: #f8fafc;
    --surface-100: #f1f5f9;
    --surface-800: #1e293b;
    --surface-850: #172032;
    --surface-900: #0f172a;
    --surface-950: #080e1e;

    /* Glass */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-bg-light: rgba(30, 41, 59, 0.55);
    --glass-border: rgba(99, 102, 241, 0.18);
    --glass-border-light: rgba(255, 255, 255, 0.06);

    /* Typography */
    --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-en: 'Inter', 'Segoe UI', system-ui, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .45);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, .25);
    --shadow-glow-accent: 0 0 30px rgba(6, 182, 212, .2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(.4, 0, .2, 1);
    --transition-base: 0.35s cubic-bezier(.4, 0, .2, 1);
    --transition-spring: 0.5s cubic-bezier(.175, .885, .32, 1.275);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    line-height: 1.7;
    color: var(--surface-100);
    background: var(--surface-950);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated mesh gradient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, .15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(6, 182, 212, .12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(168, 85, 247, .08) 0%, transparent 60%);
    animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.1) translate(-3%, 2%);
    }

    100% {
        transform: scale(1) translate(2%, -2%);
    }
}

/* Dot-grid overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-950);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-500), var(--accent-500));
    border-radius: var(--radius-full);
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo h2 {
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* ── Centered nav links ── */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    /* flex layout prevents overlap */
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    margin: 0 8px;
}

/* ── Nav overlap fix: flex-based spacing ── */
.nav-actions {
    gap: 6px !important;
    flex-shrink: 0;
}

.nav-actions .btn-dashboard,
.nav-actions .btn-admin,
.nav-actions .btn-logout,
.nav-actions .btn-login,
.nav-actions .btn-register {
    padding: 7px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
}

.nav-actions .btn-language {
    padding: 6px 12px !important;
    font-size: 12px !important;
    flex-shrink: 0;
}



.nav-links a {
    color: rgba(255, 255, 255, .7);
    font-weight: 500;
    font-size: 12.5px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(99, 102, 241, .12);
}

.nav-links a.active {
    color: #fff;
    background: rgba(99, 102, 241, .18);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-400), var(--accent-400));
    border-radius: 2px;
}

/* ── Right-side actions (lang toggle + auth buttons) ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nav Buttons */
.btn-login,
.btn-register,
.btn-dashboard,
.btn-install,
.btn-logout {
    padding: 8px 20px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: var(--transition-base) !important;
}

.btn-login {
    border: 1.5px solid var(--primary-400) !important;
    color: var(--primary-400) !important;
    background: transparent !important;
}

.btn-login:hover {
    background: var(--primary-400) !important;
    color: var(--surface-950) !important;
    box-shadow: var(--shadow-glow) !important;
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600)) !important;
    color: #fff !important;
    border: none !important;
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500)) !important;
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-1px) !important;
}

.btn-dashboard {
    background: linear-gradient(135deg, var(--primary-500), #6366f1) !important;
    color: #fff !important;
    border: none !important;
    padding: 9px 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 12px rgba(99, 102, 241, .25) !important;
}

.btn-dashboard:hover {
    background: linear-gradient(135deg, var(--primary-400), #818cf8) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, .4) !important;
    transform: translateY(-2px) !important;
}

.btn-logout {
    border: 1.5px solid var(--danger-400) !important;
    color: var(--danger-400) !important;
    background: transparent !important;
}

.btn-logout:hover {
    background: var(--danger-400) !important;
    color: #fff !important;
}

.btn-language {
    padding: 6px 14px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .8);
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-en), var(--font-ar);
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}

.btn-language svg {
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
    border-radius: 2px;
}

.btn-language:hover {
    background: rgba(99, 102, 241, .18);
    border-color: var(--primary-400);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, .2);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, .8);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
}

/* RTL/LTR Support */
/* Default is LTR (English). dir="rtl" on <html> natively reverses flex layout. */

[dir="rtl"] {
    text-align: right;
}

[dir="ltr"] {
    text-align: left;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 120px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(99, 102, 241, .2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 30% 80%, rgba(6, 182, 212, .12) 0%, transparent 50%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 30%, var(--primary-200) 70%, var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, .7);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: #fff;
    padding: 16px 42px;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 17px;
    transition: var(--transition-spring);
    box-shadow: 0 4px 20px rgba(99, 102, 241, .4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-500), var(--primary-400));
    opacity: 0;
    transition: var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(99, 102, 241, .5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* ===== Floating Orbs (Hero Decoration) ===== */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .3;
    animation: orbFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.hero-orb--1 {
    width: 300px;
    height: 300px;
    background: var(--primary-500);
    top: -80px;
    right: -60px;
}

.hero-orb--2 {
    width: 200px;
    height: 200px;
    background: var(--accent-500);
    bottom: -50px;
    left: -40px;
    animation-delay: 3s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.15);
    }
}

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    position: relative;
}

.features h2,
.section-title {
    text-align: center;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 40%, var(--primary-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, .5);
    font-size: 16px;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--accent-400));
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(99, 102, 241, .3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(99, 102, 241, .15), rgba(6, 182, 212, .1));
    border-radius: var(--radius-md);
    border: 1px solid rgba(99, 102, 241, .2);
    transition: var(--transition-base);
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(-3deg);
    border-color: var(--primary-400);
    box-shadow: 0 0 20px rgba(99, 102, 241, .2);
}

.feature-card h3 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Versions Section ===== */
.versions {
    padding: 100px 0;
    position: relative;
}

.versions::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99, 102, 241, .08) 0%, transparent 70%);
    pointer-events: none;
}

.versions h2 {
    text-align: center;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #fff 40%, var(--primary-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.version-item {
    background: var(--glass-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 24px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
    transition: var(--transition-spring);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
}

.version-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-400);
    box-shadow: var(--shadow-glow);
    color: #fff;
}

@media (max-width: 768px) {
    .version-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .version-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Install Section ===== */
.install-section {
    padding: 50px 0;
    min-height: calc(100vh - 200px);
}

.install-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    padding: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    overflow: hidden;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Install Header */
.install-header {
    text-align: center;
    padding: 36px 40px 28px;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(6,182,212,.08));
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.install-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(99,102,241,.3);
}

.install-header h1 {
    color: #fff;
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 700;
}

.install-header .subtitle {
    color: rgba(255,255,255,.45);
    margin-bottom: 0;
    font-size: 14px;
}

/* ===== Forms ===== */
.install-form,
.auth-form,
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 40px 36px;
}

/* Form Steps */
.form-step {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.form-step:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-step-action {
    border-bottom: none;
}

.form-step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 15px;
    color: rgba(255,255,255,.8);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99,102,241,.25);
}

/* Form Row (side by side) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .form-row { grid-template-columns: 1fr; }
    .install-form, .auth-form, .contact-form { padding: 24px 20px 28px; }
    .install-header { padding: 28px 20px 22px; }
}

.field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    font-size: 13px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    font-size: 13px;
}

.form-group label svg {
    opacity: .5;
    flex-shrink: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-ar);
    transition: all .25s ease;
    background: rgba(15,23,42,.5);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,.25);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15), 0 0 20px rgba(99,102,241,.08);
    background: rgba(15,23,42,.75);
}

.form-group input:disabled,
.form-group input:read-only {
    background: rgba(255,255,255,.04);
    cursor: not-allowed;
    color: rgba(255,255,255,.35);
    border-color: rgba(255,255,255,.05);
}

.form-group select option {
    background: var(--surface-900);
    color: #fff;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.35);
    font-size: 12px;
}

/* ── Password input with action buttons (eye + key) ── */
.input-with-actions {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-actions input {
    flex: 1;
    padding-inline-end: 80px;
}
.input-with-actions--single input {
    padding-inline-end: 40px;
}
.input-action-btn {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
    top: 50%;
    transform: translateY(-50%);
}
.input-action-btn:hover { color: var(--primary-400, #818cf8); }
#togglePassword  { inset-inline-end: 40px; }
#generatePassword { inset-inline-end: 8px; color: #f59e0b; }
#generatePassword:hover { color: #fbbf24; }
.input-with-actions--single #togglePassword { inset-inline-end: 8px; }

/* ── Phone input with country code ── */
.phone-input-group {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.04);
    transition: border-color .2s;
}
.phone-input-group:focus-within {
    border-color: var(--primary-400, #818cf8);
}
.country-code-select {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    flex-shrink: 0;
    padding: 12px 4px;
    background: rgba(255,255,255,.06);
    border: none;
    border-inline-end: 1px solid rgba(255,255,255,.08);
    border-radius: 0;
    color: var(--text-color, #fff);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    direction: ltr;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Override .form-group generic styles inside phone group */
.form-group .phone-input-group select,
.form-group .phone-input-group input {
    width: auto;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.form-group .phone-input-group select {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    flex-shrink: 0;
    padding: 12px 4px;
    background: rgba(255,255,255,.06);
    border-inline-end: 1px solid rgba(255,255,255,.08);
    font-size: 13px;
    text-align: center;
    direction: ltr;
}
.form-group .phone-input-group input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-color, #fff);
    direction: ltr;
}
.country-code-select option {
    background: var(--surface-900, #1a1a2e);
    color: #fff;
    direction: ltr;
}
.phone-input-group input[type="tel"] {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-color, #fff);
    font-size: 15px;
    outline: none;
    direction: ltr;
}
.phone-input-group input[type="tel"]::placeholder {
    color: rgba(255,255,255,.25);
}

/* Optional badge */
.optional-badge {
    font-size: .8em;
    font-weight: 400;
    opacity: .55;
}

/* Input with icon (password toggle) */
.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 48px;
}

[dir="rtl"] .input-with-icon input,
.input-with-icon input {
    padding-inline-end: 48px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,.35);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .2s;
}

[dir="rtl"] .toggle-password {
    left: auto;
    right: auto;
}

.toggle-password:hover {
    color: var(--primary-400);
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding-left: 40px;
    cursor: pointer;
}

[dir="rtl"] .select-wrapper select {
    padding-left: 16px;
    padding-right: 16px;
}

.select-arrow {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255,255,255,.35);
}

[dir="rtl"] .select-arrow {
    left: auto;
    right: 14px;
}

/* Pill Option Buttons */
.pill-options {
    display: flex;
    gap: 10px;
}

.pill-option {
    flex: 1;
    cursor: pointer;
    display: block;
}

.pill-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(15,23,42,.4);
    color: rgba(255,255,255,.55);
    font-size: 13.5px;
    font-weight: 600;
    transition: all .2s ease;
    text-align: center;
    white-space: nowrap;
}

.pill-option input[type="radio"]:checked + .pill-btn {
    border-color: var(--primary-400);
    background: var(--primary-400);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99,102,241,.35);
}

.pill-option:hover .pill-btn {
    border-color: rgba(99,102,241,.35);
    color: rgba(255,255,255,.8);
}

@media (max-width: 520px) {
    .pill-options { flex-direction: column; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 22px 16px 20px; }
    .price { font-size: 36px; }
}

/* Provider Radio Cards (legacy - kept for compatibility) */
.provider-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(15,23,42,.4);
    transition: all .3s ease;
    min-height: 90px;
    text-align: center;
    position: relative;
}

/* Check indicator */
.radio-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    color: transparent;
}

[dir="rtl"] .radio-check {
    right: auto;
    left: 8px;
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-check {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: var(--primary-400);
    background: rgba(99,102,241,.08);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

.radio-card:hover .radio-card-content {
    border-color: rgba(99,102,241,.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.provider-icon {
    width: 72px;
    height: 30px;
    margin-bottom: 6px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(.65);
    transition: filter .2s;
}

.radio-card input[type="radio"]:checked + .radio-card-content .provider-icon {
    filter: brightness(0) invert(1) opacity(.9);
}

.type-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.provider-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    margin-bottom: 2px;
}

.radio-card-content small {
    color: rgba(255,255,255,.35);
    font-size: 10px;
    line-height: 1.3;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-500);
    border-radius: 4px;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    color: rgba(255,255,255,.6);
    font-size: 13px;
}

.checkbox-group label a {
    color: var(--primary-400);
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    font-family: var(--font-ar);
    position: relative;
    overflow: hidden;
}

.btn-submit-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-500));
    opacity: 0;
    transition: opacity .3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99,102,241,.35);
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit span {
    position: relative;
    z-index: 1;
}

/* ===== Progress Bar ===== */
.progress-section {
    margin-top: 30px;
    padding: 24px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, .08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-400));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: var(--radius-full);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#progressText {
    text-align: center;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
    font-size: 14px;
}

/* ===== Result Section ===== */
.result-section {
    margin-top: 30px;
}

.result-message {
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
}

.result-message.success {
    background: rgba(34, 197, 94, .12);
    color: var(--success-400);
    border: 1px solid rgba(34, 197, 94, .25);
}

.result-message.error {
    background: rgba(239, 68, 68, .12);
    color: var(--danger-400);
    border: 1px solid rgba(239, 68, 68, .25);
}

.warning-box {
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 15px 0;
    color: var(--warning-400);
    font-weight: 600;
}

.success-box {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 15px 0;
    color: var(--success-400);
    font-weight: 600;
}

/* ===== Instructions ===== */
.instructions {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.instructions h3 {
    color: #fff;
    margin-bottom: 20px;
}

.instructions ol {
    padding-left: 20px;
    color: rgba(255, 255, 255, .7);
}

[dir="rtl"] .instructions ol {
    padding-left: 0;
    padding-right: 20px;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* ===== Auth Section ===== */
.auth-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--accent-400));
}

.auth-card h1 {
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
    font-size: 26px;
}

.auth-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
}

.auth-message.success {
    background: rgba(34, 197, 94, .12);
    color: var(--success-400);
    border: 1px solid rgba(34, 197, 94, .2);
}

.auth-message.error {
    background: rgba(239, 68, 68, .12);
    color: var(--danger-400);
    border: 1px solid rgba(239, 68, 68, .2);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, .5);
}

.auth-links a {
    color: var(--primary-400);
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-links a:hover {
    color: var(--accent-400);
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 100px 0;
}

.pricing-section h1 {
    text-align: center;
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 40%, var(--primary-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-section .subtitle {
    text-align: center;
    font-size: 17px;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px 24px 28px;
    transition: var(--transition-spring);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-400), transparent);
    opacity: 0;
    transition: var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(99, 102, 241, .25);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.popular {
    border: 2px solid var(--primary-400);
    box-shadow: var(--shadow-glow);
    padding-top: 44px;
}

.pricing-card.popular::before {
    opacity: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-400), var(--accent-400));
}

.popular-badge {
    position: absolute;
    top: -1px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: white;
    padding: 6px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .3px;
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.plan-header h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.plan-provider {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-400);
    margin-bottom: 10px;
    letter-spacing: .5px;
}

.price {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 4px;
}

.price .currency {
    font-size: 20px;
    vertical-align: super;
}

.price .period {
    font-size: 14px;
    color: rgba(255, 255, 255, .4);
    -webkit-text-fill-color: rgba(255, 255, 255, .4);
    font-weight: 500;
}

.features-list {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    line-height: 1.4;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Server type dropdown inside pricing card */
.server-type-li {
    padding: 8px 0 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
}
.server-type-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.server-type-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    letter-spacing: .3px;
}
.server-type-inline .server-type-label {
    display: inline;
    margin-bottom: 0;
}
.server-type-select {
    flex: 1;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, .25);
    background: rgba(99, 102, 241, .08);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    appearance: auto;
}
.server-type-select:hover {
    background: rgba(99, 102, 241, .12);
    border-color: rgba(99, 102, 241, .4);
}
.server-type-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
    background: rgba(99, 102, 241, .12);
}
.server-type-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 8px;
}

.pricing-qty-li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 12px !important;
    margin: 10px 0 12px;
    border: 1px solid rgba(99, 102, 241, .18) !important;
    border-radius: 12px;
    background: rgba(99, 102, 241, .06);
}

.pricing-qty-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
}

.pricing-qty-controls {
    justify-self: center;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(15, 23, 42, .26);
}

.pricing-qty-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .06);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.pricing-qty-btn:hover {
    background: rgba(99, 102, 241, .2);
}

.pricing-qty-input {
    width: 44px;
    height: 34px;
    border: none;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    appearance: textfield;
    -moz-appearance: textfield;
}

.pricing-qty-input::-webkit-inner-spin-button,
.pricing-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pricing-qty-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, .66);
    margin-top: 2px;
}

.pricing-qty-unit-value {
    color: #e2e8f0;
    font-weight: 700;
}

.pricing-qty-discount-badge {
    color: #93c5fd;
    font-weight: 700;
    margin-inline-start: 4px;
}

[data-theme="light"] .server-type-select {
    background: rgba(99, 102, 241, .06);
    border-color: rgba(99, 102, 241, .2);
    color: #1e293b;
}
[data-theme="light"] .server-type-label {
    color: #64748b;
}
[data-theme="light"] .server-type-li {
    border-bottom-color: rgba(0, 0, 0, .06) !important;
}
[data-theme="light"] .pricing-qty-li {
    border-color: rgba(99, 102, 241, .2) !important;
    background: rgba(99, 102, 241, .04);
}
[data-theme="light"] .server-type-select:hover {
    background: rgba(99, 102, 241, .1);
    border-color: rgba(99, 102, 241, .35);
}
[data-theme="light"] .pricing-qty-label {
    color: #64748b;
}
[data-theme="light"] .pricing-qty-controls {
    border-color: #e2e8f0;
    background: #fff;
}
[data-theme="light"] .pricing-qty-btn {
    background: #f8fafc;
    color: #334155;
}
[data-theme="light"] .pricing-qty-btn:hover {
    background: rgba(99, 102, 241, .1);
}
[data-theme="light"] .pricing-qty-input {
    color: #334155;
}
[data-theme="light"] .pricing-qty-note {
    color: #64748b;
}
[data-theme="light"] .pricing-qty-unit-value {
    color: #334155;
}
[data-theme="light"] .pricing-qty-discount-badge {
    color: #2563eb;
}
[data-theme="light"] .server-type-select option {
    background: #fff;
    color: #1e293b;
}

.providers-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.provider-badges {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.provider-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    font-family: var(--font-en);
}

.provider-badge.ovh {
    background: rgba(0, 100, 210, .15);
    color: #4da3ff;
    border: 1px solid rgba(0, 100, 210, .25);
}

.provider-badge.hetzner {
    background: rgba(213, 36, 38, .15);
    color: #ef6b6b;
    border: 1px solid rgba(213, 36, 38, .25);
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-spring);
    text-align: center;
    font-family: var(--font-ar);
    text-decoration: none;
    letter-spacing: .3px;
    margin-top: auto;
}

.btn-plan:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, .35);
}

.btn-plan:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-popular {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600)) !important;
    color: #fff !important;
    border: none !important;
}

.btn-popular:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--accent-500)) !important;
    box-shadow: 0 6px 24px rgba(99, 102, 241, .4) !important;
}

.plan-select-group {
    margin: 10px 0;
}

.plan-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(15,23,42,.5);
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-family: var(--font-ar);
    cursor: pointer;
    transition: border-color .2s;
    -webkit-appearance: none;
    appearance: none;
}

.plan-select:focus {
    outline: none;
    border-color: var(--primary-400);
}

.plan-select.select-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .2);
}

.select-error-msg {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

/* ===== FAQ Section ===== */
.faq-section {
    margin-top: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 44px;
    border-radius: var(--radius-xl);
}

.faq-section h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
    font-size: 28px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.faq-item {
    padding: 22px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.faq-item:hover {
    background: rgba(99, 102, 241, .08);
    border-color: rgba(99, 102, 241, .2);
}

.faq-item h4 {
    color: var(--primary-400);
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-item p {
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 80px 0;
}

.contact-section h1,
.contact-header h1 {
    text-align: center;
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 40%, var(--primary-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    margin-top: 50px;
}

.contact-form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-xl);
}

.contact-form-card h2,
.contact-form-card h3 {
    color: #fff;
    margin-bottom: 28px;
    font-size: 22px;
}

.contact-info-card,
.contact-info {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-xl);
}

.contact-info-card h2,
.contact-info-card h3,
.contact-info h3 {
    color: #fff;
    margin-bottom: 28px;
    font-size: 22px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.info-item:hover {
    background: rgba(99, 102, 241, .08);
}

.info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.info-content h4 {
    color: var(--primary-400);
    margin-bottom: 4px;
    font-size: 14px;
}

.info-content p {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
}

.social-links {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.social-links h3,
.social-links h4 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 16px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-icon {
    color: rgba(255, 255, 255, .5);
    transition: var(--transition-fast);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.social-icon:hover {
    color: var(--primary-400);
    background: rgba(99, 102, 241, .1);
}

.contact-message {
    margin-top: 20px;
    padding: 14px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 14px;
}

.contact-message.success {
    background: rgba(34, 197, 94, .12);
    color: var(--success-400);
    border: 1px solid rgba(34, 197, 94, .2);
}

.contact-message.error {
    background: rgba(239, 68, 68, .12);
    color: var(--danger-400);
    border: 1px solid rgba(239, 68, 68, .2);
}

/* FAQ Quick Section in Contact */
.faq-quick {
    margin-top: 50px;
    text-align: center;
    background: var(--glass-bg-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius-xl);
}

.faq-quick h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
}

.faq-quick p {
    color: rgba(255, 255, 255, .5);
    margin-bottom: 24px;
}

.btn-faq {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-spring);
    font-family: var(--font-ar);
}

.btn-faq:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== Footer ===== */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, .5);
    padding: 28px 0;
    text-align: center;
    margin-top: 0;
    font-size: 14px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll reveal utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 12px 20px;
        gap: 8px;
        transform: none;
        position: static;
    }

    /* Wrap both in a mobile dropdown */
    .navbar .container {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-actions {
        order: 4;
    }

    /* Show both when hamburger toggled */
    .nav-links.active,
    .nav-actions.active {
        display: flex;
    }

    .nav-links a,
    .nav-actions a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .nav-actions .btn-language {
        align-self: center;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .install-card {
        padding: 28px 20px;
    }

    .faq-section {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .provider-options {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 24px 16px;
    }

    .install-card {
        padding: 20px 14px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .field-label {
        font-size: 12px;
    }

    .pricing-qty-li {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* ===== FAQ Page Styles ===== */
.faq-section-page {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: clamp(32px, 4vw, 42px);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 40%, var(--primary-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-search-wrap {
    max-width: 900px;
    margin: 0 auto 28px;
}

.faq-search-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: #fff;
    outline: none;
    transition: var(--transition-fast);
    font-size: 14px;
}

.faq-search-input:focus {
    border-color: rgba(99, 102, 241, .45);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .16);
}

.faq-search-input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-category-btn {
    padding: 10px 26px;
    border: 1.5px solid rgba(99, 102, 241, .3);
    background: rgba(99, 102, 241, .08);
    color: var(--primary-400);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: var(--font-ar);
}

.faq-category-btn:hover {
    background: var(--primary-500);
    color: #fff;
    border-color: var(--primary-500);
    transform: translateY(-2px);
}

.faq-category-btn.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border-color: transparent;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* FAQ Accordion Items on FAQ Page */
.faq-section-page .faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-section-page .faq-item:hover {
    border-color: rgba(99, 102, 241, .25);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 5px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(99, 102, 241, .06);
}

.faq-question h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.3;
    color: #fff;
    flex: 1;
    font-weight: 600;
}

.faq-toggle {
    font-size: 16px;
    font-weight: 300;
    color: var(--primary-400);
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 14px 10px 14px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
    font-size: 13px;
}

.faq-empty {
    margin: 24px 0 0;
    text-align: center;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.faq-contact h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #fff;
}

.faq-contact p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, .5);
}

.btn-contact {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-spring);
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, .35);
}

/* Responsive FAQ Page */
@media (max-width: 768px) {
    .faq-header h1 {
        font-size: 28px;
    }

    .faq-categories {
        gap: 8px;
    }

    .faq-category-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .faq-question {
        padding: 5px 12px;
    }

    .faq-question h3 {
        font-size: 12px;
        line-height: 1.3;
    }

    .faq-answer {
        padding: 0 12px 10px 12px;
    }
}

/* ===== Stats Section (used on pricing page) ===== */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.stat-item {
    text-align: center;
    padding: 28px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat-item .stat-number {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

/* ===== Trusted Badge ===== */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.trust-badge .badge-icon {
    font-size: 22px;
}

/* ═══════════════════════════════════════════════
   FLOATING THEME TOGGLE (fixed right side)
   ═══════════════════════════════════════════════ */
.floating-theme-toggle {
    position: fixed;
    top: 120px;
    right: 0;
    z-index: 9999;
    width: 45px;
    height: 45px;
    border: none;
    background: var(--glass-bg, rgba(15, 23, 42, .85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    box-shadow: -3px 2px 12px rgba(0, 0, 0, .25);
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-theme-toggle:hover {
    width: 52px;
    background: rgba(99, 102, 241, .85);
    box-shadow: -4px 3px 18px rgba(99, 102, 241, .35);
}

.floating-theme-toggle .theme-icon {
    transition: transform .3s ease;
}

.floating-theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.15);
}

.btn-admin {
    color: var(--warning-400) !important;
    font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════
   LIGHT THEME  [data-theme="light"]
   ═══════════════════════════════════════════════ */
[data-theme="light"] {
    /* Surface / Background */
    --surface-50: #f8fafc;
    --surface-100: #f1f5f9;
    --surface-800: #e2e8f0;
    --surface-850: #cbd5e1;
    --surface-900: #f1f5f9;
    --surface-950: #f8fafc;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-light: rgba(255, 255, 255, 0.60);
    --glass-border: rgba(99, 102, 241, 0.15);
    --glass-border-light: rgba(0, 0, 0, 0.06);

    /* Shadows for light mode */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .12);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, .15);
    --shadow-glow-accent: 0 0 30px rgba(6, 182, 212, .12);
}

/* Body */
[data-theme="light"] body {
    color: #1e293b;
    background: #f8fafc;
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, .08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(6, 182, 212, .06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(168, 85, 247, .04) 0%, transparent 60%);
}

[data-theme="light"] body::after {
    background-image: radial-gradient(circle, rgba(0, 0, 0, .04) 1px, transparent 1px);
}

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* Navbar */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .logo h2 {
    background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .nav-links a,
[data-theme="light"] .nav-actions a {
    color: rgba(30, 41, 59, .7);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-actions a:hover {
    color: var(--primary-600);
    background: rgba(99, 102, 241, .08);
}

[data-theme="light"] .nav-links a.active,
[data-theme="light"] .nav-actions a.active {
    color: var(--primary-600);
    background: rgba(99, 102, 241, .12);
}

[data-theme="light"] .hamburger span {
    background: rgba(30, 41, 59, .8);
}

[data-theme="light"] .nav-links,
[data-theme="light"] .nav-actions {
    background: rgba(255, 255, 255, 0.95);
}

/* Language & Theme buttons */
[data-theme="light"] .btn-language {
    border-color: rgba(0, 0, 0, .15);
    background: rgba(0, 0, 0, .04);
    color: #334155;
}

[data-theme="light"] .btn-language:hover {
    background: rgba(99, 102, 241, .12);
    border-color: var(--primary-500);
    color: var(--primary-600);
}

[data-theme="light"] .floating-theme-toggle {
    background: rgba(255, 255, 255, .9);
    box-shadow: -3px 2px 12px rgba(0, 0, 0, .1);
}

[data-theme="light"] .floating-theme-toggle:hover {
    background: rgba(99, 102, 241, .15);
    box-shadow: -4px 3px 18px rgba(99, 102, 241, .2);
}

/* Hero */
[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #1e293b 30%, var(--primary-600) 70%, var(--accent-600));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .hero p {
    color: #475569;
}

[data-theme="light"] .hero::before {
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(99, 102, 241, .1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 30% 80%, rgba(6, 182, 212, .06) 0%, transparent 50%);
}

/* Trust badges */
[data-theme="light"] .trust-badge {
    color: #64748b;
}

/* Section titles */
[data-theme="light"] .features h2,
[data-theme="light"] .section-title,
[data-theme="light"] .versions h2,
[data-theme="light"] .pricing-section h1,
[data-theme="light"] .contact-section h1,
[data-theme="light"] .contact-header h1,
[data-theme="light"] .faq-header h1,
[data-theme="light"] .faq-header h2,
[data-theme="light"] .dashboard-header h1 {
    background: linear-gradient(135deg, #1e293b 40%, var(--primary-600));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .section-subtitle {
    color: #64748b;
}

/* Feature cards */
[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .feature-card:hover {
    border-color: rgba(99, 102, 241, .3);
    box-shadow: 0 8px 32px rgba(99, 102, 241, .12);
}

[data-theme="light"] .feature-card h3 {
    color: #1e293b;
}

[data-theme="light"] .feature-card p {
    color: #64748b;
}

[data-theme="light"] .feature-card .icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, .1), rgba(6, 182, 212, .06));
    border-color: rgba(99, 102, 241, .15);
}

/* Version items */
[data-theme="light"] .version-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, .08);
    color: #334155;
}

[data-theme="light"] .version-item:hover {
    color: var(--primary-600);
    border-color: var(--primary-400);
    box-shadow: 0 4px 16px rgba(99, 102, 241, .12);
}

/* Stats banner */
[data-theme="light"] .stat-item {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .stat-item .stat-label {
    color: #64748b;
}

/* Auth section */
[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

[data-theme="light"] .auth-card h1 {
    color: #1e293b;
}

[data-theme="light"] .subtitle {
    color: #64748b;
}

/* Forms */
[data-theme="light"] .form-group label {
    color: #334155;
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, .12);
    color: #1e293b;
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group select::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
    background: #fff;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}

[data-theme="light"] .form-group input:disabled,
[data-theme="light"] .form-group input:read-only {
    background: #f1f5f9;
    color: #94a3b8;
}

[data-theme="light"] .form-group small {
    color: #94a3b8;
}

/* Light theme: password action buttons */
[data-theme="light"] .input-action-btn { color: #94a3b8; }
[data-theme="light"] .input-action-btn:hover { color: var(--primary-400); }

/* Light theme: phone input group */
[data-theme="light"] .phone-input-group {
    border-color: #e2e8f0;
    background: #fff;
}
[data-theme="light"] .phone-input-group:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .1);
}
[data-theme="light"] .country-code-select,
[data-theme="light"] .form-group .phone-input-group select {
    background: #f1f5f9;
    border-color: transparent;
    border-inline-end: 1px solid #e2e8f0;
    color: #334155;
}
[data-theme="light"] .country-code-select option {
    background: #fff;
    color: #334155;
}
[data-theme="light"] .phone-input-group input[type="tel"],
[data-theme="light"] .form-group .phone-input-group input {
    color: #334155;
    background: transparent;
}
[data-theme="light"] .phone-input-group input[type="tel"]::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .form-group select option {
    background: #fff;
    color: #1e293b;
}

[data-theme="light"] .checkbox-group label {
    color: #475569;
}

/* Radio cards */
[data-theme="light"] .radio-card-content {
    background: rgba(241, 245, 249, 0.6);
    border-color: rgba(0, 0, 0, .1);
}

[data-theme="light"] .radio-card input[type="radio"]:checked+.radio-card-content {
    background: rgba(99, 102, 241, .06);
    border-color: var(--primary-400);
}

[data-theme="light"] .provider-name {
    color: #334155;
}

[data-theme="light"] .radio-card-content small {
    color: #94a3b8;
}

[data-theme="light"] .provider-icon {
    filter: none;
}

/* Auth links */
[data-theme="light"] .auth-links {
    color: #64748b;
}

/* Pricing */
[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .pricing-card:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, .1);
    border-color: rgba(99, 102, 241, .2);
}

[data-theme="light"] .pricing-card.popular {
    border-color: var(--primary-400);
    box-shadow: 0 8px 32px rgba(99, 102, 241, .15);
}

[data-theme="light"] .plan-header h3 {
    color: #1e293b;
}

[data-theme="light"] .plan-header {
    border-bottom-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .plan-provider {
    color: var(--primary-500);
}

[data-theme="light"] .price .period {
    color: #94a3b8;
    -webkit-text-fill-color: #94a3b8;
}

[data-theme="light"] .features-list li {
    color: #475569;
    border-bottom-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .provider-badge.ovh {
    background: rgba(0, 100, 210, .1);
    color: #0064d2;
    border-color: rgba(0, 100, 210, .2);
}

[data-theme="light"] .provider-badge.hetzner {
    background: rgba(213, 36, 38, .1);
    color: #d52426;
    border-color: rgba(213, 36, 38, .2);
}

[data-theme="light"] .btn-plan {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, .25);
}

[data-theme="light"] .btn-plan:hover {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}

[data-theme="light"] .plan-select {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, .1);
    color: #1e293b;
}

[data-theme="light"] .plan-select:focus {
    border-color: var(--primary-400);
    background: #fff;
}

/* FAQ */
[data-theme="light"] .faq-section {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .faq-section h2 {
    color: #1e293b;
}

[data-theme="light"] .faq-item {
    background: rgba(241, 245, 249, 0.6);
    border-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .faq-item:hover {
    background: rgba(99, 102, 241, .04);
    border-color: rgba(99, 102, 241, .15);
}

[data-theme="light"] .faq-item h4 {
    color: var(--primary-600);
}

[data-theme="light"] .faq-item p {
    color: #64748b;
}

/* FAQ Page */
[data-theme="light"] .faq-section-page .faq-item {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .faq-question h3 {
    color: #1e293b;
}

[data-theme="light"] .faq-question:hover {
    background: rgba(99, 102, 241, .04);
}

[data-theme="light"] .faq-answer p {
    color: #64748b;
}

[data-theme="light"] .faq-category-btn {
    border-color: rgba(99, 102, 241, .2);
    background: rgba(99, 102, 241, .05);
    color: #475569;
}

[data-theme="light"] .faq-category-btn:hover {
    background: var(--primary-500);
    color: #fff;
    border-color: var(--primary-500);
}

[data-theme="light"] .faq-category-btn.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border-color: transparent;
}

[data-theme="light"] .faq-contact {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .faq-contact h3 {
    color: #1e293b;
}

[data-theme="light"] .faq-contact p {
    color: #64748b;
}

/* Contact */
[data-theme="light"] .contact-form-card,
[data-theme="light"] .contact-info-card,
[data-theme="light"] .contact-info {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .contact-form-card h2,
[data-theme="light"] .contact-form-card h3,
[data-theme="light"] .contact-info-card h2,
[data-theme="light"] .contact-info-card h3,
[data-theme="light"] .contact-info h3 {
    color: #1e293b;
}

[data-theme="light"] .info-item:hover {
    background: rgba(99, 102, 241, .04);
}

[data-theme="light"] .info-content h4 {
    color: var(--primary-600);
}

[data-theme="light"] .info-content p {
    color: #64748b;
}

[data-theme="light"] .social-links {
    border-top-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .social-links h3,
[data-theme="light"] .social-links h4 {
    color: #1e293b;
}

[data-theme="light"] .social-icon {
    color: #64748b;
}

[data-theme="light"] .social-icon:hover {
    color: var(--primary-600);
    background: rgba(99, 102, 241, .06);
}

[data-theme="light"] .faq-quick {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .faq-quick h3 {
    color: #1e293b;
}

[data-theme="light"] .faq-quick p {
    color: #64748b;
}

/* Install section */
[data-theme="light"] .install-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
}

[data-theme="light"] .install-card h1 {
    color: #1e293b;
}

[data-theme="light"] .instructions {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .instructions h3 {
    color: #1e293b;
}

[data-theme="light"] .instructions ol {
    color: #475569;
}

/* Progress */
[data-theme="light"] .progress-section {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, .08);
}

[data-theme="light"] .progress-bar {
    background: rgba(0, 0, 0, .06);
}

[data-theme="light"] #progressText {
    color: #64748b;
}

/* Result / Warning / Success boxes */
[data-theme="light"] .warning-box {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .2);
}

[data-theme="light"] .success-box {
    background: rgba(34, 197, 94, .08);
    border-color: rgba(34, 197, 94, .2);
}

/* Footer */
[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.85);
    border-top-color: rgba(0, 0, 0, .06);
    color: #64748b;
}

/* Install page - field labels & pill buttons light theme */
[data-theme="light"] .field-label {
    color: #334155;
}

[data-theme="light"] .pill-btn {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, .1);
    color: #475569;
}

[data-theme="light"] .pill-option input[type="radio"]:checked + .pill-btn {
    background: var(--primary-400);
    border-color: var(--primary-400);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, .3);
}

[data-theme="light"] .pill-option:hover .pill-btn {
    border-color: rgba(99, 102, 241, .3);
    color: #334155;
}

[data-theme="light"] .install-header {
    background: rgba(241, 245, 249, 0.6);
    border-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .install-header h1 {
    color: #1e293b;
}

[data-theme="light"] .install-header p {
    color: #64748b;
}

[data-theme="light"] .select-wrapper select {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, .12);
    color: #1e293b;
}

[data-theme="light"] .input-with-icon input {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, .12);
    color: #1e293b;
}

[data-theme="light"] .toggle-password {
    color: #64748b;
}

/* ═══ Mobile responsive for light theme ═══ */
@media (max-width: 768px) {
    [data-theme="light"] .nav-links,
    [data-theme="light"] .nav-actions {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: rgba(0, 0, 0, .08);
    }
}

/* ═══════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════ */

.checkout-section {
    min-height: 70vh;
    padding: 60px 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.checkout-card {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    backdrop-filter: blur(16px);
}

.checkout-icon {
    margin-bottom: 16px;
    color: var(--primary-400);
}

.checkout-icon.success-icon {
    margin-bottom: 20px;
}

.checkout-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-family: var(--font-ar);
}

.checkout-subtitle {
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
    margin-bottom: 28px;
    font-family: var(--font-ar);
}

.checkout-subtitle strong {
    color: var(--primary-400);
}

/* Order Summary */
.checkout-summary {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
    text-align: right;
}

.checkout-summary.paid {
    border-color: rgba(34, 197, 94, .2);
    background: rgba(34, 197, 94, .04);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: 14px;
    font-family: var(--font-ar);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span {
    color: rgba(255, 255, 255, .5);
}

.summary-row strong {
    color: rgba(255, 255, 255, .9);
    font-weight: 600;
}

.summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 14px;
    margin-top: 4px;
}

.summary-row.total span {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}

.total-price {
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 28px;
    text-align: right;
}

.payment-methods h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 14px;
    font-family: var(--font-ar);
}

.payment-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-option {
    flex: 1 1 calc(33% - 10px);
    min-width: 90px;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
    transition: var(--transition-spring);
    font-family: var(--font-ar);
}

.payment-option input[type="radio"]:checked + .payment-btn {
    background: rgba(99, 102, 241, .1);
    border-color: var(--primary-400);
    color: var(--primary-400);
    box-shadow: 0 0 0 1px var(--primary-400);
}

.payment-btn:hover {
    border-color: rgba(99, 102, 241, .3);
    background: rgba(99, 102, 241, .06);
}

/* Checkout Buttons */
.btn-checkout-main {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-spring);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-ar);
    margin-bottom: 12px;
}

.btn-checkout-main:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-checkout-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-checkout-secondary {
    display: block;
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
    text-decoration: none;
    font-family: var(--font-ar);
    transition: color .2s;
}

.btn-checkout-secondary:hover {
    color: var(--primary-400);
}

/* Payment Detail Boxes */
.payment-detail-box {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    font-family: var(--font-ar);
}

.payment-detail-box p {
    margin-bottom: 8px;
}

.crypto-addr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.crypto-addr-row strong {
    color: var(--primary-400);
    font-size: 12px;
    white-space: nowrap;
}

.crypto-addr {
    font-size: 11px;
    color: rgba(255, 255, 255, .7);
    background: rgba(0, 0, 0, .2);
    padding: 4px 8px;
    border-radius: 4px;
    word-break: break-all;
    user-select: all;
    direction: ltr;
}

.crypto-note {
    margin-top: 10px;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinRotate .6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes spinRotate {
    to { transform: rotate(360deg); }
}

/* Success card */
.checkout-success-card {
    border-color: rgba(34, 197, 94, .2);
}

.checkout-success-card h2 {
    color: #22c55e;
}

/* Checkout responsive */
@media (max-width: 520px) {
    .checkout-card {
        padding: 28px 18px;
        margin: 0 10px;
    }
    .payment-options {
        flex-direction: column;
    }
    .payment-btn {
        flex-direction: row;
        justify-content: center;
    }
}

/* ═══ Checkout Light Theme ═══ */
[data-theme="light"] .checkout-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, .08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}

[data-theme="light"] .checkout-card h2 {
    color: #1e293b;
}

[data-theme="light"] .checkout-subtitle {
    color: #64748b;
}

[data-theme="light"] .checkout-subtitle strong {
    color: var(--primary-600);
}

[data-theme="light"] .checkout-summary {
    background: rgba(241, 245, 249, 0.6);
    border-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .checkout-summary.paid {
    border-color: rgba(34, 197, 94, .2);
    background: rgba(34, 197, 94, .04);
}

[data-theme="light"] .summary-row {
    border-bottom-color: rgba(0, 0, 0, .06);
}

[data-theme="light"] .summary-row span {
    color: #64748b;
}

[data-theme="light"] .summary-row strong {
    color: #1e293b;
}

[data-theme="light"] .summary-row.total {
    border-top-color: rgba(0, 0, 0, .1);
}

[data-theme="light"] .summary-row.total span {
    color: #334155;
}

[data-theme="light"] .payment-methods h3 {
    color: #64748b;
}

[data-theme="light"] .payment-btn {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, .08);
    color: #475569;
}

[data-theme="light"] .payment-option input[type="radio"]:checked + .payment-btn {
    background: rgba(99, 102, 241, .06);
    border-color: var(--primary-500);
    color: var(--primary-600);
    box-shadow: 0 0 0 1px var(--primary-500);
}

[data-theme="light"] .payment-btn:hover {
    border-color: rgba(99, 102, 241, .2);
    background: rgba(99, 102, 241, .04);
}

[data-theme="light"] .btn-checkout-secondary {
    color: #94a3b8;
}

[data-theme="light"] .btn-checkout-secondary:hover {
    color: var(--primary-600);
}

[data-theme="light"] .checkout-success-card {
    border-color: rgba(34, 197, 94, .2);
}

[data-theme="light"] .checkout-success-card h2 {
    color: #16a34a;
}

[data-theme="light"] .payment-detail-box {
    background: rgba(0, 0, 0, .02);
    border-color: rgba(0, 0, 0, .08);
    color: #64748b;
}

[data-theme="light"] .crypto-addr {
    background: rgba(0, 0, 0, .05);
    color: #334155;
}

[data-theme="light"] .crypto-addr-row strong {
    color: var(--primary-600);
}

[data-theme="light"] .spinner {
    border-color: rgba(0, 0, 0, .15);
    border-top-color: #fff;
}

/* ── Currency Switcher ── */
.currency-switcher-row {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}
.currency-select {
    background: rgba(255,255,255,.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
    outline: none;
    transition: border-color .2s;
}
.currency-select:focus {
    border-color: var(--primary, #646cff);
}
.currency-select option {
    background: #1a1a2e;
    color: #fff;
}
[data-theme="light"] .currency-select {
    background: #f5f5f5;
    color: #1e293b;
    border-color: #d1d5db;
}
[data-theme="light"] .currency-select option {
    background: #fff;
    color: #1e293b;
}