/* كمانديلي — واجهة عامة (فاتحة) + لوحة المستخدم (داكنة) */
:root {
    color-scheme: light;

    --blue: #0078c8;
    --blue-dark: #005fa3;
    --blue-light: #e8f4fd;
    --orange: #f58220;
    --orange-dark: #e06d0a;
    --orange-light: #fff4eb;

    --primary: var(--blue);
    --primary-dark: var(--blue-dark);
    --primary-light: var(--blue-light);
    --accent: var(--orange);
    --accent-dark: var(--orange-dark);
    --accent-light: var(--orange-light);

    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;

    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-2: #f0f4f8;
    --card: #ffffff;
    --input-bg: #ffffff;
    --logo-bg: transparent;

    --text: #1a1a2e;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .08);
    --header-h: 72px;
    --sidebar-w: 250px;
}

/* بعد تسجيل الدخول — ثيم داكن مريح */
body.is-logged-in {
    color-scheme: dark;

    --blue: #6aabf0;
    --blue-dark: #5090d8;
    --blue-light: rgba(106, 171, 240, 0.14);
    --orange: #e89545;
    --orange-dark: #d47a2e;
    --orange-light: rgba(232, 149, 69, 0.15);
    --success: #4caf7a;
    --danger: #e07070;
    --warning: #d4a843;

    --bg: #141820;
    --surface: #1c2129;
    --surface-2: #252b36;
    --card: #1c2129;
    --input-bg: #252b36;
    --text: #e8ecf1;
    --text-muted: #9aa3b2;
    --border: #2f3642;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

body.is-logged-in a:hover {
    color: #9ecbf5;
}

body.is-logged-in .alert-error,
body.is-logged-in .alert-danger { background: rgba(224, 112, 112, 0.14); color: #f0a8a8; border: 1px solid rgba(224, 112, 112, 0.28); }
body.is-logged-in .alert-success { background: rgba(76, 175, 122, 0.14); color: #8fd4a8; border: 1px solid rgba(76, 175, 122, 0.28); }
body.is-logged-in .alert-info { background: rgba(106, 171, 240, 0.12); color: #9ecbf5; border: 1px solid rgba(106, 171, 240, 0.25); }
body.is-logged-in .alert-warning { background: rgba(212, 168, 67, 0.14); color: #e8c96a; border: 1px solid rgba(212, 168, 67, 0.28); }

body.is-logged-in .badge-warning { background: rgba(212, 168, 67, 0.18); color: #e8c96a; }
body.is-logged-in .badge-info { background: rgba(106, 171, 240, 0.18); color: #9ecbf5; }
body.is-logged-in .badge-success { background: rgba(76, 175, 122, 0.18); color: #8fd4a8; }
body.is-logged-in .badge-primary { background: rgba(106, 171, 240, 0.18); color: #9ecbf5; }
body.is-logged-in .badge-danger { background: rgba(224, 112, 112, 0.18); color: #f0a8a8; }

body.is-logged-in .site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
}

body.is-logged-in .page-content {
    background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #8ecbf7; }

/* ── Layout shell ── */
.site-body {
    flex: 1;
    display: flex;
    min-height: calc(100vh - var(--header-h));
}

.page-content {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2.5rem;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Overlay ── */
.site-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.site-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}

.site-header__inner {
    max-width: 1140px;
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.header-start {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-middle {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}

.header-end {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: var(--logo-bg);
    padding: .25rem .5rem;
    border-radius: 8px;
}

.site-logo__img {
    height: 42px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.main-nav {
    display: none;
    align-items: center;
    gap: .1rem;
    min-width: 0;
}

.main-nav--header {
    display: none;
}

.main-nav a {
    color: var(--text);
    padding: .4rem .65rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.main-nav a:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.header-action {
    color: var(--text);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.header-action:hover { background: var(--blue-light); color: var(--blue); }

.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.header-actions .btn-sm {
    font-size: .82rem;
    padding: .4rem .75rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.05rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, color .2s;
    align-items: center;
    justify-content: center;
}

.header-action--text {
    width: auto;
    padding: 0 .65rem;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 600;
}

.header-cta { white-space: nowrap; }

.menu-toggle:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--surface);
    z-index: 1060;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .4);
    border-left: 1px solid var(--border);
}

.sidebar.open { transform: translateX(0); }

.sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    min-height: var(--header-h);
    background: var(--surface-2);
}

.sidebar__logo {
    background: var(--logo-bg);
    padding: .3rem .55rem;
    border-radius: 8px;
    display: inline-flex;
}

.sidebar__logo img {
    height: 44px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
}

.sidebar__close {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.sidebar__close:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.sidebar__nav { padding: .5rem 0; overflow-y: auto; flex: 1; }

.sidebar__nav a {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1.15rem;
    color: var(--text);
    font-size: .92rem;
    font-weight: 600;
    transition: background .2s, color .2s;
    border-right: 3px solid transparent;
}

.sidebar__nav a:hover {
    background: var(--blue-light);
    color: var(--blue);
    border-right-color: var(--blue);
}

.sidebar__nav a.is-active {
    background: var(--blue-light);
    color: var(--blue);
    border-right-color: var(--blue);
}

.sidebar__link--accent {
    color: var(--orange) !important;
    margin: .35rem .75rem;
    padding: .7rem 1rem !important;
    background: var(--orange-light);
    border-radius: var(--radius);
    border-right: none !important;
    border: 1px solid rgba(245, 146, 64, .25);
}

.sidebar__link--accent:hover {
    background: var(--orange) !important;
    color: #fff !important;
}

.sidebar__nav a i { width: 20px; text-align: center; color: var(--blue); }
.sidebar__link--accent i { color: inherit; }

/* ── Mobile nav (guests) ── */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    background: var(--surface);
    z-index: 1060;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    min-height: var(--header-h);
    background: var(--surface-2);
}

.mobile-nav__logo {
    height: 44px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    background: var(--logo-bg);
    padding: .25rem .5rem;
    border-radius: 8px;
}

.mobile-nav__close {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.mobile-nav__links {
    padding: .5rem 0;
    overflow-y: auto;
    flex: 1;
}

.mobile-nav__links a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.15rem;
    color: var(--text);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.mobile-nav__links a:hover { background: var(--blue-light); color: var(--blue); }

.mobile-nav__cta {
    margin: .75rem 1rem;
    background: var(--orange) !important;
    color: #fff !important;
    border-radius: var(--radius);
    justify-content: center;
}

/* ── Footer ── */
.site-footer {
    background: var(--surface);
    color: var(--text);
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand { max-width: 260px; }

.footer-logo {
    display: inline-block;
    margin-bottom: .75rem;
    background: var(--logo-bg);
    padding: .5rem .75rem;
    border-radius: var(--radius);
}

.footer-logo img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
}

.footer-tagline {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 1.15rem;
    font-weight: 600;
}

.footer-col h3 {
    color: var(--text);
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .5rem; }

.footer-col a {
    color: var(--text-muted);
    font-size: .88rem;
    transition: color .2s;
}

.footer-col a:hover { color: var(--blue); }

.social-links { display: flex; gap: .6rem; }

.social-links a {
    width: 38px;
    height: 38px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1rem;
    transition: background .2s, transform .15s, border-color .2s;
}

.social-links a:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-2px);
    color: #fff;
}

.payment-tags span {
    background: var(--surface-2);
    color: var(--text-muted);
    padding: .35rem .65rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 1rem 1.25rem;
    background: var(--bg);
}

.footer-bottom p { margin: 0; font-size: .82rem; color: var(--text-muted); }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: .6rem 1.2rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .2s, transform .1s;
}

.btn:active { transform: scale(.98); }

/* أزرق — إجراءات ثانوية */
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

/* برتقالي — إجراءات رئيسية (CTA) */
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #1a1a1a; }

.btn-outline-blue {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}
.btn-outline-blue:hover { background: var(--blue-light); color: var(--blue); }

.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); color: var(--text); }

.btn-sm { padding: .42rem .95rem; font-size: .85rem; border-radius: 8px; }
.btn-block { display: block; width: 100%; }

/* ── Cards ── */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.card-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 .75rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    font-size: .9rem;
}

.form-control {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(94, 179, 240, .2);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: .82rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Auth pages ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h) - 100px);
    padding: 2rem 1rem;
}

.auth-box {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--border);
    text-align: center;
}

.auth-box h2 { text-align: center; margin: 0 0 1.5rem; color: var(--blue); }

.auth-box__logo {
    text-align: center;
    margin-bottom: 1.25rem;
    background: var(--logo-bg);
    padding: .65rem;
    border-radius: var(--radius);
    display: inline-block;
    width: 100%;
}

.auth-box__logo img {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.auth-box form { text-align: right; }

.auth-link { text-align: center; margin-top: 1rem; font-size: .9rem; }

.page-content > h2 {
    color: var(--blue);
    font-size: 1.35rem;
    margin: 0 0 1.25rem;
    font-weight: 700;
}

.quick-actions { margin-bottom: 2rem; }

.card-title i { color: var(--blue); margin-left: .35rem; }

/* ── Alerts ── */
.alert {
    padding: .85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .95rem;
}

.alert-error, .alert-danger { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-info { background: #cff4fc; color: #055160; border: 1px solid #b6effb; }
.alert-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; }

.badge-warning { background: #fff3cd; color: #664d03; }
.badge-info { background: #cff4fc; color: #055160; }
.badge-success { background: #d1e7dd; color: #0f5132; }
.badge-primary { background: #cfe2ff; color: #084298; }
.badge-danger { background: #f8d7da; color: #842029; }
.badge-secondary { background: var(--surface-2); color: var(--text-muted); }

.badge {
    display: inline-block;
    padding: .25rem .6rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 600;
}

/* ── Order cards ── */
.order-card { border-right: 4px solid var(--orange); }
.order-card .order-meta { font-size: .88rem; color: var(--text-muted); }
.order-card .order-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.order-details-hidden { display: none; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.order-details-hidden.show { display: block; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.feature-item i { font-size: 2rem; color: var(--blue); margin-bottom: .75rem; }
.feature-item h3 { color: var(--blue); font-size: 1rem; margin: 0 0 .4rem; }
.hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hero__logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-bottom: 1.25rem;
    background: var(--logo-bg);
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
}

.hero h1 {
    font-size: 1.85rem;
    margin: 0 0 .65rem;
    color: var(--blue);
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
}

.hero .btn-accent {
    font-size: 1.05rem;
    padding: .85rem 2.25rem;
    border-radius: var(--radius);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
}

.feature-item h3 { color: var(--blue); font-size: 1rem; margin: 0 0 .4rem; }

/* ── Hero ── */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.step-dot {
    padding: .4rem .8rem;
    border-radius: 20px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

.step-dot.active { background: var(--orange); color: #fff; }
.step-dot.done { background: var(--blue); color: #fff; }

.form-step { display: none; }
.form-step.active { display: block; }

.step-buttons { display: flex; gap: .75rem; margin-top: 1rem; }

.image-preview { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.image-preview img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }

/* ── Filter bar ── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.filter-bar a {
    padding: .4rem .85rem;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text-muted);
}

.filter-bar a.active, .filter-bar a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ── Admin ── */
.admin-body { background: var(--bg); }

.admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--surface);
    padding: 1rem 0;
    z-index: 1001;
    transition: transform .3s;
    border-left: 1px solid var(--border);
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.25rem;
    color: var(--text-muted);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: var(--blue-light);
    color: var(--blue);
}

.admin-brand {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}

.admin-content {
    margin-right: var(--sidebar-w);
    padding: 1.5rem;
    min-height: 100vh;
}

.admin-page-title { font-size: 1.5rem; margin: 0 0 1.25rem; }

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.admin-inline-form {
    display: inline;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { color: var(--text-muted); font-size: .9rem; }

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table th, table td {
    padding: .75rem 1rem;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

table th { background: var(--surface-2); font-weight: 600; color: var(--text); }

table td { color: var(--text); }

.pagination a, .pagination span {
    padding: .4rem .75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: .88rem;
    background: var(--card);
    color: var(--text-muted);
}

.pagination a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

.payment-summary { background: var(--surface-2); padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--border); }
.payment-summary p { color: var(--text); margin: .35rem 0; }

.pagination {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ── Payment ── */
.payment-box { max-width: 480px; margin: 0 auto; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .header-action--text span { display: none; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; }

    .site-header__inner { padding: 0 .85rem; gap: .4rem; }

    .header-cta span,
    .header-action--text span { display: none; }
    .header-cta { padding: .4rem .65rem; }

    .page-content { padding: 1.25rem 1rem 2rem; }

    .site-footer__inner {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 1.5rem;
        gap: 1.5rem;
    }

    .hero { padding: 2rem 1rem; }
    .hero h1 { font-size: 1.45rem; }
    .hero p { font-size: .95rem; }

    .step-buttons { flex-direction: column; }
    .step-buttons .btn { width: 100%; }

    .cards-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }

    .admin-sidebar { transform: translateX(100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-right: 0; padding: 1rem; }
    .admin-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 1.25rem;
        left: 1.25rem;
        z-index: 1002;
        background: var(--primary);
        border: none;
        color: #fff;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        box-shadow: var(--shadow);
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .filter-bar { gap: .35rem; }
    .filter-bar a { font-size: .78rem; padding: .35rem .65rem; }
}

@media (min-width: 993px) {
    .mobile-nav { display: none; }
}

@media (min-width: 769px) {
    .admin-menu-toggle { display: none; }
}

/* ── واجهة الزوار — احترافية بسيطة ── */
body.public-site {
    --pub-bg: #f4f6f9;
    --pub-surface: #ffffff;
    --pub-border: #dde3ea;
    --pub-heading: #1a2b42;
    --pub-text: #334155;
    --pub-muted: #64748b;
    --pub-accent: #0066b3;
    --pub-accent-dark: #004d8c;
    --pub-accent-soft: #eef4fb;

    background: var(--pub-bg);
    --bg: var(--pub-bg);
}

body.public-site .site-header {
    background: var(--pub-surface);
    border-bottom: 1px solid var(--pub-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

body.public-site .site-header .main-nav a {
    color: var(--pub-text);
    font-size: .88rem;
}

body.public-site .site-header .main-nav a:hover {
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
}

body.public-site .site-header .menu-toggle {
    background: var(--pub-bg);
    border-color: var(--pub-border);
    color: var(--pub-heading);
}

body.public-site .site-header .menu-toggle:hover {
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
    border-color: var(--pub-accent);
}

body.public-site .site-header .btn-outline-blue {
    border-color: var(--pub-accent);
    color: var(--pub-accent);
}

body.public-site .site-header .btn-outline-blue:hover {
    background: var(--pub-accent-soft);
    color: var(--pub-accent-dark);
}

body.public-site .site-logo,
body.public-site .sidebar__logo {
    background: transparent;
    padding: .25rem .5rem;
}

body.public-site .sidebar {
    background: var(--pub-surface);
    border-left: 1px solid var(--pub-border);
    box-shadow: -4px 0 20px rgba(15, 23, 42, .06);
}

body.public-site .sidebar__head {
    background: var(--pub-bg);
    border-bottom-color: var(--pub-border);
}

body.public-site .sidebar__close {
    background: var(--pub-bg);
    border-color: var(--pub-border);
    color: var(--pub-text);
}

body.public-site .sidebar__nav a {
    color: var(--pub-text);
    font-size: .9rem;
}

body.public-site .sidebar__nav a:hover {
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
}

body.public-site .sidebar__nav a i {
    color: var(--pub-accent);
}

body.public-site .sidebar__auth {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border-top: 1px solid var(--pub-border);
    margin-top: auto;
}

body.public-site .page-content {
    background: transparent;
}

body.public-site .page-content > .card {
    border: 1px solid var(--pub-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

body.public-site .page-content > h2 {
    color: var(--pub-heading);
    font-size: 1.25rem;
}

body.classic-guest .auth-page {
    min-height: calc(100vh - var(--classic-header-h) - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

body.app-shell .auth-page {
    min-height: calc(100vh - var(--shell-header-h, 56px) - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

body.public-site .auth-box {
    border: 1px solid var(--pub-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, .07);
    border-radius: 12px;
}

body.public-site .auth-box h2 {
    color: var(--pub-heading);
    font-size: 1.2rem;
}

body.public-site .mobile-nav {
    background: var(--pub-surface);
    border-left: 1px solid var(--pub-border);
}

body.public-site .mobile-nav__head {
    background: var(--pub-bg);
    border-bottom: 1px solid var(--pub-border);
}

body.public-site .mobile-nav__links a {
    color: var(--pub-text);
    font-size: .92rem;
}

body.public-site .mobile-nav__links a:hover {
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
}

/* ── الهيدر الأزرق — صفحات الزوار ── */
body.public-site.public-top-header .site-header,
body.public-site .site-header--public {
    background: #007bff;
    border-bottom: none;
    box-shadow: none;
}

body.public-top-header .site-logo--text {
    background: none;
    padding: 0;
}

body.public-top-header .site-logo__text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .02em;
}

body.public-site.public-top-header .site-header .menu-toggle,
body.public-site .site-header--public .menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.15rem;
}

body.public-site.public-top-header .site-header .menu-toggle:hover,
body.public-site .site-header--public .menu-toggle:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.header-icon-link--light {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .3rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .4rem;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .2s;
}

.header-icon-link--light i {
    font-size: 1rem;
    color: #fff;
}

.header-icon-link--light:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

body.public-top-header .header-middle {
    justify-content: center;
}

@media (max-width: 992px) {
    .header-icon-link--light span {
        display: none;
    }

    .header-icon-link--light {
        padding: .35rem;
        min-width: 36px;
        justify-content: center;
    }

    body.public-top-header .header-btn-login,
    body.public-site .site-header--public .header-btn-login,
    body.public-site:not(.page-register) .header-btn-login {
        display: none;
    }
}

@media (min-width: 993px) {
    body.public-top-header .header-middle {
        justify-content: flex-start;
        gap: 1.5rem;
    }

    body.public-top-header .site-logo--text {
        justify-content: flex-start;
    }

    .header-icon-link--light span {
        display: inline;
    }
}

/* ── صفحة أسعار الشحن ── */
.shipping-page {
    max-width: 520px;
    margin: 0 auto;
}

.shipping-page--standalone {
    padding: 1rem 0 2rem;
}

.rate-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rate-card {
    background: #fff;
    border: 1px solid var(--pub-border, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.rate-card__icon {
    font-size: 2rem;
    color: var(--pub-accent, #0066b3);
    margin-bottom: .65rem;
    display: block;
}

.rate-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .5rem;
}

.rate-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #198754;
    margin: 0 0 .35rem;
}

.rate-card__days {
    font-size: .88rem;
    color: #666;
    margin: 0;
}

.calc-card {
    background: #fff;
    border: 1px solid var(--pub-border, #e2e8f0);
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.calc-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .75rem;
    text-align: center;
}

.calc-card__desc {
    font-size: .88rem;
    color: #555;
    line-height: 1.75;
    margin: 0 0 1.25rem;
    text-align: center;
}

.calc-card__result {
    margin-top: 1rem;
    text-align: center;
}

.calc-card__result p {
    margin: .25rem 0;
}

body.page-shipping .page-content,
body.landing .shipping-page {
    background: transparent;
}

#shipping-calc {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

body.is-logged-in .site-header {
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

@media (max-width: 992px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: .35rem;
    }

    .header-start {
        grid-column: 1;
        justify-self: start;
    }

    .header-middle {
        grid-column: 2;
        justify-self: center;
    }

    .header-end {
        grid-column: 3;
        justify-self: end;
    }

    body.public-top-header .header-btn-login,
    body.public-site .site-header--public .header-btn-login,
    body.public-site:not(.page-register) .header-btn-login {
        display: none;
    }

    body.page-register .header-btn-login {
        display: inline-flex;
    }
}

@media (min-width: 993px) {
    .site-header__inner {
        display: flex;
    }

    body.public-top-header .header-middle,
    body.public-site .site-header--public .header-middle {
        justify-content: flex-start;
        gap: 1rem;
    }

    body.public-top-header .main-nav--header,
    body.public-site .site-header--public .main-nav--header {
        display: flex;
        flex: 1;
        justify-content: center;
    }

    body.has-sidebar .header-start {
        display: none;
    }

    body.has-sidebar .header-middle {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .site-logo__img {
        height: 36px;
        max-width: 110px;
    }

    .header-actions .btn-sm {
        padding: .35rem .6rem;
        font-size: .78rem;
    }
}

.landing-section__hint {
    text-align: center;
    font-size: .88rem;
    color: var(--pub-muted);
    margin: -.75rem 0 1.5rem;
}

.landing-calc {
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    padding: 1.35rem 1.25rem;
}

.landing-calc h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pub-heading);
    margin: 0 0 1rem;
    text-align: center;
}

.landing-calc h3 i {
    color: var(--pub-accent);
    margin-left: .35rem;
}

.landing-calc__fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: .75rem;
    align-items: end;
}

.landing-calc__fields .form-group {
    margin-bottom: 0;
}

.landing-calc__fields label {
    font-size: .85rem;
}

.landing-calc__btn {
    height: 46px;
    padding-inline: 1.5rem;
    white-space: nowrap;
}

.landing-calc__result {
    margin: 1rem 0 0;
    text-align: center;
}

.landing-calc__result p {
    margin: .25rem 0;
}

@media (max-width: 640px) {
    .landing-calc__fields {
        grid-template-columns: 1fr;
    }

    .landing-calc__btn {
        width: 100%;
    }
}

/* ── الصفحة الرئيسية ── */
body.landing .page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.landing-welcome {
    text-align: center;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.landing-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--pub-heading);
    margin: 0 0 .85rem;
    line-height: 1.45;
}

.landing-welcome__lead {
    font-size: .98rem;
    color: var(--pub-muted);
    line-height: 1.85;
    max-width: 580px;
    margin: 0 auto 1.5rem;
}

.landing-divider {
    width: 60px;
    height: 3px;
    background: var(--pub-accent);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
    opacity: .75;
}

.landing-features {
    max-width: 480px;
    margin: 0 auto 1.75rem;
    text-align: right;
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
}

.landing-features h2 {
    font-size: .92rem;
    font-weight: 700;
    color: var(--pub-heading);
    margin: 0 0 .75rem;
}

.landing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: .5rem;
    font-size: .88rem;
    color: var(--pub-text);
    line-height: 1.65;
}

.landing-features li:last-child {
    margin-bottom: 0;
}

.landing-features li i {
    color: #198754;
    font-size: .9rem;
    margin-top: .15rem;
    flex-shrink: 0;
}

.landing-cta {
    font-size: 1rem;
    padding: .7rem 2.25rem;
    border-radius: 8px;
    background: var(--pub-accent);
    border-color: var(--pub-accent);
    font-weight: 600;
    min-width: 180px;
}

.landing-cta:hover {
    background: var(--pub-accent-dark);
    border-color: var(--pub-accent-dark);
}

.landing-section {
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.landing-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pub-heading);
    margin: 0 0 1.75rem;
    text-align: center;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.landing-step {
    text-align: center;
    padding: .5rem .25rem;
}

.landing-step__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .85rem;
    font-size: 1.15rem;
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
    border: 1px solid rgba(0, 102, 179, .15);
}

.landing-step__icon--blue,
.landing-step__icon--green,
.landing-step__icon--yellow {
    background: var(--pub-accent-soft);
    color: var(--pub-accent);
}

.landing-step h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--pub-heading);
    margin: 0 0 .45rem;
}

.landing-step p {
    font-size: .82rem;
    color: var(--pub-muted);
    line-height: 1.7;
    margin: 0;
    max-width: 220px;
    margin-inline: auto;
}

.landing-section--sites {
    background: var(--pub-surface);
    margin-inline: 0;
    overflow: hidden;
}

.landing-section--calc {
    margin-bottom: 1.75rem;
}

.landing-closing {
    text-align: center;
    background: var(--pub-surface);
    border: 1px solid var(--pub-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.landing-closing__text {
    font-size: .95rem;
    color: var(--pub-muted);
    line-height: 1.75;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

.landing-closing__btn {
    font-size: 1rem;
    padding: .7rem 2.25rem;
    border-radius: 8px;
    font-weight: 600;
    min-width: 180px;
}

.sites-marquee {
    overflow: hidden;
    margin: 0 -1rem;
    padding: .5rem 0;
    -webkit-mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to left, transparent, #000 6%, #000 94%, transparent);
}

.sites-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: sites-marquee 35s linear infinite;
    will-change: transform;
}

.sites-marquee__group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-inline-end: 1rem;
    flex-shrink: 0;
}

.sites-marquee__track:hover {
    animation-play-state: paused;
}

@keyframes sites-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.landing-site {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--pub-text);
    background: var(--pub-bg);
    border: 1px solid var(--pub-border);
    padding: .55rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.landing-site i {
    font-size: 1rem;
    color: var(--pub-muted);
}

.landing-site .fa-amazon { color: #ff9900; }
.landing-site .fa-ebay { color: #e53238; }
.landing-site .fa-etsy { color: #f56400; }

@media (prefers-reduced-motion: reduce) {
    .sites-marquee__track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: .65rem;
    }

    .sites-marquee__group {
        display: contents;
    }

    .sites-marquee__group[aria-hidden="true"] {
        display: none;
    }

    .sites-marquee {
        -webkit-mask-image: none;
        mask-image: none;
        margin: 0;
    }
}

/* ── الفوتر — الزوار ── */
.site-footer--classic {
    background: #0056b3;
    color: #fff;
    border-top: none;
    margin-top: 0;
}

.site-footer__inner--classic {
    max-width: 960px;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 2.25rem 1.5rem 2rem;
    gap: 2rem;
}

.site-footer--classic .footer-col h3 {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .85rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-footer--classic .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer--classic .footer-col li {
    margin-bottom: .4rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .78);
}

.site-footer--classic .footer-col a {
    color: rgba(255, 255, 255, .78);
    transition: color .2s;
}

.site-footer--classic .footer-col a:hover {
    color: #ffd700;
}

.footer-payments li {
    list-style: none;
}

.social-links--classic {
    gap: .5rem;
}

.social-links--classic a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    color: #fff;
    font-size: .9rem;
}

.social-links--classic a:hover {
    background: rgba(255, 255, 255, .2);
    transform: none;
    color: #fff;
}

@media (max-width: 768px) {
    .landing-welcome { padding: 2rem 1.25rem 1.75rem; }
    .landing-welcome h1 { font-size: 1.45rem; }
    .landing-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .landing-step p { max-width: 100%; }
    .landing-section { padding: 1.75rem 1.15rem; }
    .site-footer__inner--classic { grid-template-columns: 1fr; text-align: center; }
    .site-footer--classic .footer-col h3 { border-bottom: none; padding-bottom: 0; }
    .social-links--classic { justify-content: center; }
}

@media (max-width: 992px) {
    .site-footer__inner--classic { grid-template-columns: 1fr 1fr; }
}

/* فوتر لوحة التحكم — زر واتساب صغير مثبت */
.app-footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .45rem 1rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}

.app-footer-bar__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .9rem;
    background: #25d366;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 20px;
    transition: background .2s;
}

.app-footer-bar__whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

.app-footer-bar__whatsapp i {
    font-size: 1rem;
}

.account-logout {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    max-width: 320px;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem 1rem;
    background: var(--surface);
    color: var(--danger);
    border: 1.5px solid var(--danger);
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.btn-logout:hover {
    background: var(--danger);
    color: #fff;
}

/* ── لوحة المستخدم — بسيطة ── */
body.app-shell.dashboard .page-content {
    max-width: 900px;
    padding: 1.25rem 1rem 3.25rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1rem 1.35rem;
    text-align: center;
}

.dashboard-card h3 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 1rem;
}

.dashboard-card h3 i {
    margin-left: .35rem;
    color: var(--blue);
}

.dashboard-card .btn {
    min-width: 120px;
    padding: .5rem 1.25rem;
    font-size: .875rem;
    border-radius: 8px;
}

.dashboard-recent h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .65rem;
    text-align: right;
}

.dashboard-empty {
    color: var(--text-muted);
    font-size: .875rem;
    margin: 0;
    text-align: right;
}

.dashboard-orders {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-order {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.dashboard-order__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.dashboard-order__meta {
    font-size: .875rem;
    color: var(--text-muted);
    margin: .25rem 0;
}

.dashboard-order__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

@media (max-width: 600px) {
    body.app-shell.dashboard .page-content {
        padding: 1rem .875rem 3rem;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dashboard-card {
        padding: 1.25rem 1rem;
    }
}

body.app-shell .rate-card,
body.app-shell .calc-card {
    background: var(--card);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

body.app-shell .rate-card__name,
body.app-shell .calc-card__title {
    color: var(--text);
}

body.app-shell .rate-card__days,
body.app-shell .calc-card__desc {
    color: var(--text-muted);
}

body.app-shell .rate-card__price {
    color: #6fcf97;
}

/* ── صفحة حسابي ── */
.account-summary {
    margin-bottom: 1.25rem;
}

.account-summary p {
    margin: .35rem 0;
}

.account-forms {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.account-forms .card-title {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.account-forms .form-group label {
    color: var(--text-muted);
    font-size: .85rem;
}

/* ══════════════════════════════════════════
   لوحة المستخدم — نظام موحّد (هيدر + قائمة + محتوى)
   ══════════════════════════════════════════ */
body.app-shell {
    --shell-accent: #6aabf0;
    --shell-accent-hover: #85bcf5;
    --shell-accent-soft: rgba(106, 171, 240, 0.14);
    --shell-border: #2f3642;
    --shell-text: #e8ecf1;
    --shell-text-muted: #9aa3b2;
    --shell-bg: #141820;
    --shell-surface: #1c2129;
    --shell-sidebar-w: 220px;
    --shell-header-h: 56px;
    --shell-radius: 8px;
    --shell-font-sm: .875rem;
    --classic-header-h: var(--shell-header-h);
    --header-h: var(--shell-header-h);
    background: var(--shell-bg);
    color: var(--shell-text);
}

body.app-shell .classic-header {
    background: var(--shell-bg);
    color: var(--shell-text);
    border-bottom: 1px solid var(--shell-border);
    box-shadow: none;
    z-index: 1060;
}

body.app-shell .classic-header__inner {
    max-width: none;
    min-height: var(--shell-header-h);
    padding: 0 1rem;
}

body.app-shell .classic-header__brand {
    color: var(--shell-accent);
    font-size: 1.125rem;
    font-weight: 700;
}

body.app-shell .classic-header__brand:hover {
    color: var(--shell-accent-hover);
    opacity: 1;
}

body.app-shell .classic-header .menu-toggle {
    width: 36px;
    height: 36px;
    font-size: .95rem;
    background: var(--shell-surface);
    color: var(--shell-text-muted);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
}

body.app-shell .classic-header .menu-toggle:hover {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
}

body.app-shell .classic-header .menu-toggle:focus-visible {
    outline: 2px solid var(--shell-accent);
    outline-offset: 2px;
}

body.app-shell .header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--shell-radius);
    background: var(--shell-surface);
    color: var(--shell-text-muted);
    border: 1px solid var(--shell-border);
}

body.app-shell .header-icon-btn:hover,
body.app-shell .header-icon-btn.is-active {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    box-shadow: none;
}

body.app-shell .header-icon-btn:focus-visible {
    outline: 2px solid var(--shell-accent);
    outline-offset: 2px;
}

body.app-shell .header-icon-btn i {
    font-size: .95rem;
}

body.app-shell .sidebar {
    width: var(--shell-sidebar-w);
    background: var(--shell-bg);
    border-left: 1px solid var(--shell-border);
    box-shadow: none;
    top: var(--shell-header-h);
    height: calc(100dvh - var(--shell-header-h));
    z-index: 1055;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

body.app-shell .site-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    transition: opacity .28s cubic-bezier(.4, 0, .2, 1), visibility .28s;
}

body.app-shell .sidebar__nav {
    padding: .5rem 0;
}

body.app-shell .sidebar__nav a {
    padding: .625rem 1rem;
    font-size: var(--shell-font-sm);
    font-weight: 500;
    color: var(--shell-text);
    border-right: none;
    gap: .625rem;
}

body.app-shell .sidebar__nav a i {
    width: 18px;
    font-size: .85rem;
    color: var(--shell-text-muted);
    text-align: center;
}

body.app-shell .sidebar__nav a:hover {
    background: var(--shell-surface);
    color: var(--shell-text);
}

body.app-shell .sidebar__nav a:hover i {
    color: var(--shell-text);
}

body.app-shell .sidebar__nav a.is-active {
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    font-weight: 600;
}

body.app-shell .sidebar__nav a.is-active i {
    color: var(--shell-accent);
}

body.app-shell .site-body {
    margin: 0;
    min-height: auto;
    display: block;
    flex: 1;
}

body.app-shell .page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3.25rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--shell-bg);
}

body.app-shell .page-content > h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--shell-text);
    margin: 0 0 1rem;
    text-align: right;
}

body.app-shell .page-content > .card {
    background: var(--card);
    border: 1px solid var(--shell-border);
    border-radius: var(--shell-radius);
    box-shadow: none;
}

body.app-shell .app-footer-bar {
    background: var(--shell-bg);
    border-top: 1px solid var(--shell-border);
    box-shadow: none;
}

@media (min-width: 993px) {
    body.app-shell .classic-header__inner {
        grid-template-columns: 1fr auto;
        padding: 0 1.25rem;
    }

    body.app-shell .classic-header__side--start {
        display: none;
    }

    body.app-shell .classic-header__brand {
        grid-column: 1;
        justify-self: start;
    }

    body.app-shell .classic-header__side--end {
        grid-column: 2;
    }

    body.app-shell .sidebar {
        transform: translateX(0);
    }

    body.app-shell .site-body {
        margin-right: var(--shell-sidebar-w);
    }

    body.app-shell .app-footer-bar {
        right: var(--shell-sidebar-w);
    }

    body.app-shell .menu-toggle {
        display: none;
    }
}

/* جوال — قائمة منزلقة فوق الهيدر بالكامل */
@media (max-width: 992px) {
    body.app-shell .classic-header__inner {
        grid-template-columns: auto 1fr auto;
        padding: 0 1rem;
        column-gap: .5rem;
    }

    body.app-shell .classic-header__side--start {
        display: flex;
    }

    body.app-shell .classic-header__brand {
        grid-column: 2;
        justify-self: center;
    }

    body.app-shell .classic-header__side--end {
        grid-column: 3;
    }

    body.app-shell .site-overlay {
        inset: 0;
        z-index: 1065;
    }

    body.app-shell .sidebar {
        position: fixed;
        top: 0;
        height: 100dvh;
        z-index: 1070;
        transform: translateX(100%);
        width: min(var(--shell-sidebar-w), 82vw);
        border-top: none;
        box-shadow: -6px 0 24px rgba(15, 23, 42, .1);
    }

    body.app-shell .sidebar__nav {
        padding-top: calc(var(--shell-header-h) + .5rem);
    }

    body.app-shell .sidebar.open {
        transform: translateX(0);
    }

    body.app-shell .site-body {
        margin-right: 0;
    }

    body.app-shell .app-footer-bar {
        right: 0;
    }
}

@media (max-width: 640px) {
    body.app-shell .classic-header__inner {
        padding: 0 .75rem;
    }

    body.app-shell .classic-header__brand {
        font-size: 1rem;
    }

    body.app-shell .page-content {
        padding: 1rem .875rem 3rem;
    }
}

/* ══════════════════════════════════════════
   الهيدر الموحّد + الواجهة الكلاسيكية (زوار)
   ══════════════════════════════════════════ */

body.classic-guest {
    --classic-header-h: 58px;
    --header-h: 58px;
    background: #f8f9fa;
}

body.classic-guest .site-body {
    margin: 0 !important;
    min-height: auto;
    display: block;
}

body.classic-guest.classic-home .page-content {
    padding: 0;
    max-width: none;
    width: 100%;
}

body.classic-guest:not(.classic-home) .page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

body.classic-guest:not(.classic-home) .page-content > h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2b42;
    margin: 0 0 1.25rem;
    text-align: center;
}

body.classic-guest .page-content > .card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
}

body.page-shipping .page-content {
    padding: 0;
    max-width: none;
}

body.page-login .page-content,
body.page-register .page-content {
    padding: 0;
    max-width: none;
}

/* ── الهيدر — تخطيط RTL منطقي ──
   يمين: ☰  |  وسط: كمانديلي  |  يسار: الروابط
   ── */
.classic-header {
    background: #007bff;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 80, 170, .2);
}

.classic-header__inner {
    max-width: 1140px;
    margin: 0 auto;
    min-height: var(--classic-header-h);
    padding: 0 1rem;
    display: grid;
    grid-template-columns: minmax(44px, auto) 1fr minmax(44px, auto);
    align-items: center;
    column-gap: .75rem;
    box-sizing: border-box;
}

/* يمين الشاشة (RTL start) — زر القائمة */
.classic-header__side--start {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
}

/* وسط — اسم الموقع */
.classic-header__brand {
    grid-column: 2;
    justify-self: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

.classic-header__brand:hover {
    color: #fff;
    opacity: .9;
}

/* يسار الشاشة (RTL end) — روابط التنقل */
.classic-header__side--end {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: visible;
}

.classic-header .navbar-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: .15rem;
    flex-shrink: 0;
}

.classic-header .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, .12);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background .2s;
}

.classic-header .menu-toggle:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.classic-header .menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.classic-header .navbar-menu li {
    margin: 0;
}

.classic-header .navbar-menu a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .6rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: background .2s;
}

.classic-header .navbar-menu a:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.classic-header .navbar-menu a.is-active {
    background: rgba(255, 255, 255, .22);
}

.classic-header .navbar-menu a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

.classic-header .navbar-menu i {
    font-size: .95rem;
    flex-shrink: 0;
}

/* أيقونات الهيدر — مسجّل دخول */
.header-quick-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    text-decoration: none;
    transition: background .2s, transform .15s;
    position: relative;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, .24);
    color: #fff;
}

.header-icon-btn.is-active {
    background: rgba(255, 255, 255, .28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.header-icon-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.header-icon-btn i {
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .header-icon-btn {
        width: 38px;
        height: 38px;
    }

    .header-icon-btn i {
        font-size: 1rem;
    }
}

/* ── تجاوب الهيدر ── */
@media (max-width: 640px) {
    .classic-header__inner {
        grid-template-columns: 42px 1fr auto;
        padding: 0 .65rem;
        column-gap: .4rem;
    }

    .classic-header__brand {
        font-size: 1.05rem;
    }

    .classic-header .menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .classic-header .navbar-menu {
        gap: .1rem;
    }

    .classic-header .navbar-menu span {
        display: none;
    }

    .classic-header .navbar-menu a {
        padding: 0;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        justify-content: center;
        border-radius: 8px;
    }

    .classic-header .navbar-menu i {
        font-size: .9rem;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .classic-header__brand {
        font-size: 1.15rem;
    }

    .classic-header .navbar-menu a {
        font-size: .78rem;
        padding: .35rem .45rem;
    }
}

/* ── القائمة المنزلقة — زوار (موحّدة) ── */
.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 1060;
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 28px rgba(0, 0, 0, .18);
}

.site-drawer.open {
    transform: translateX(0);
}

.site-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    min-height: var(--classic-header-h);
    background: #007bff;
    color: #fff;
    flex-shrink: 0;
}

.site-drawer__brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.site-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .15);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
}

.site-drawer__close:hover {
    background: rgba(255, 255, 255, .28);
}

.site-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: .5rem 0;
}

.site-drawer__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.15rem;
    color: #1a2b42;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
    transition: background .15s, color .15s;
}

.site-drawer__link:hover {
    background: #f4f8ff;
    color: #007bff;
}

.site-drawer__link.is-active {
    background: #eef4ff;
    color: #007bff;
    border-right: 3px solid #007bff;
}

.site-drawer__link i {
    width: 22px;
    text-align: center;
    color: #007bff;
    font-size: .95rem;
    flex-shrink: 0;
}

.site-drawer__foot {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border-top: 1px solid #e8ecf0;
    background: #fafbfc;
    flex-shrink: 0;
}

.site-drawer__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.site-drawer__btn--outline {
    background: #fff;
    color: #007bff;
    border: 1.5px solid #007bff;
}

.site-drawer__btn--outline:hover {
    background: #eef4ff;
    color: #007bff;
}

.site-drawer__btn--primary {
    background: #f58220;
    color: #fff;
    border: 1.5px solid #f58220;
}

.site-drawer__btn--primary:hover {
    background: #e06d0a;
    color: #fff;
}

/* القائمة الجانبية — overlay على الجوال */
body.classic-guest .site-body {
    margin-right: 0;
    margin-left: 0;
}

@media (min-width: 993px) {
    body.classic-guest .sidebar--classic {
        transform: translateX(100%);
    }

    body.classic-guest .sidebar--classic.open {
        transform: translateX(0);
    }

    body.classic-guest .menu-toggle {
        display: flex;
    }
}

/* ── القائمة الجانبية الكلاسيكية (من اليمين — RTL) ── */
.sidebar--classic {
    top: var(--classic-header-h);
    right: 0;
    left: auto;
    width: 260px;
    height: calc(100vh - var(--classic-header-h));
    background: #333;
    border: none;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .35);
    transform: translateX(100%);
    padding: .5rem 0;
}

.sidebar--classic.open {
    transform: translateX(0);
}

.sidebar--classic > a {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    text-decoration: none;
    padding: .75rem 1.25rem;
    font-size: .92rem;
    transition: background .2s;
}

.sidebar--classic > a:hover {
    background: #444;
}

.sidebar--classic > a.is-active {
    background: #007bff;
    color: #fff;
}

.sidebar--classic > a i {
    width: 20px;
    text-align: center;
    opacity: .85;
}

.mobile-nav--classic {
    background: #333;
}

.mobile-nav--classic .mobile-nav__head {
    background: #2a2a2a;
    border-bottom-color: #444;
}

.mobile-nav--classic .mobile-nav__title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-nav--classic .mobile-nav__links a {
    color: #eee;
}

.mobile-nav--classic .mobile-nav__links a:hover {
    background: #444;
    color: #fff;
}

/* ── الصفحة الرئيسية ── */
.classic-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 15px 2.5rem;
    box-sizing: border-box;
}

.intro {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.intro h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .85rem;
}

.intro__lead {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 1.25rem;
}

.intro__divider {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 1.5rem auto;
    max-width: 80%;
}

.intro__features {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    font-size: 1rem;
    color: #333;
}

.intro__features ul {
    list-style: none;
    padding: 0;
    margin: .85rem auto 0;
    display: inline-block;
    text-align: right;
}

.intro__features li {
    margin-bottom: .5rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    line-height: 1.65;
}

.intro__features li i {
    color: #28a745;
    margin-top: .25rem;
    flex-shrink: 0;
}

.intro__cta {
    padding: .85rem 2.5rem;
    font-size: 1.15rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 123, 255, .25);
}

.how-it-works {
    text-align: center;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
}

.how-it-works h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2rem;
}

.how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    direction: rtl;
}

.how-it-works__step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: .75rem 0 .5rem;
    color: #1a1a1a;
}

.how-it-works__step p {
    font-size: .88rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

.how-it-works__icon {
    font-size: 2.5rem;
}

.how-it-works__icon--blue { color: #007bff; }
.how-it-works__icon--green { color: #28a745; }
.how-it-works__icon--yellow { color: #ffc107; }

.supported-sites {
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.supported-sites h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2rem;
}

.supported-sites__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.site-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    transition: transform .2s, box-shadow .2s;
}

.site-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.site-box__icon {
    font-size: 2.5rem;
    color: #007bff;
    display: block;
    margin-bottom: .65rem;
}

.site-box h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

@media (max-width: 992px) {
    .how-it-works__grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .supported-sites__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .intro { padding: 1.75rem 1.25rem; }
    .intro h1 { font-size: 1.5rem; }
    .intro__cta { width: 100%; padding-left: 1rem; padding-right: 1rem; }
    .how-it-works { padding: 1.75rem 1.25rem; }
    .supported-sites { padding: 1.75rem 1.25rem; }
    .supported-sites__grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
}

/* ── صفحة أسعار الشحن (كلاسيكية) ── */
body.page-shipping .page-content,
body.classic-guest .shipping-page {
    background: transparent;
}

.shipping-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.5rem 15px 2.5rem;
}

.shipping-page--standalone {
    padding-top: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #0056b3;
    margin: 0 0 1.75rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.pricing-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.pricing-card__icon {
    font-size: 2.5rem;
    color: #0056b3;
    display: block;
    margin-bottom: .65rem;
}

.pricing-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: .5rem;
}

.pricing-card__cost {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: .35rem;
}

.pricing-card__time {
    font-size: .88rem;
    color: #555;
}

.shipping-calculator {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    padding: 2rem 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.shipping-calculator h2 {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin: 0 0 .75rem;
}

.shipping-calculator__desc {
    text-align: center;
    font-size: .9rem;
    color: #555;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

.shipping-calculator__result {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: #e9f7ef;
    border-radius: 8px;
    text-align: center;
}

.shipping-calculator__result h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .35rem;
}

.shipping-calculator__result h5 {
    font-size: .95rem;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .shipping-calculator {
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── فوتر كلاسيكي ── */
.footer-bottom--classic {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    background: #004494;
    color: rgba(255, 255, 255, .9);
}

.footer-bottom--classic p {
    margin: 0;
}

/* ── أزرار كلاسيكية ── */
body.classic-guest .btn-primary {
    background: #007bff;
    border-color: #007bff;
}

body.classic-guest .btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

body.classic-guest .btn-lg {
    padding: .85rem 1.75rem;
    font-size: 1.05rem;
    border-radius: 8px;
}

@media (max-width: 767px) {
    body.classic-guest .btn-lg {
        width: 100%;
        font-size: 1rem;
    }
}

/* ── صفحات المحتوى (SEO) ── */
.seo-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    line-height: 1.75;
}

.seo-content h1 {
    font-size: 1.5rem;
    text-align: center;
    margin: 0 0 1rem;
    color: var(--text);
}

.seo-content h2 {
    font-size: 1.15rem;
    margin: 1.5rem 0 .75rem;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    padding-bottom: .4rem;
}

.seo-content h3 {
    font-size: 1.05rem;
    margin: 1.25rem 0 .5rem;
    color: var(--text);
}

.seo-content p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.seo-content ul,
.seo-content ol {
    margin: 0 0 1rem;
    padding-right: 1.25rem;
    color: var(--text-muted);
}

.seo-content li {
    margin-bottom: .5rem;
}

.seo-content a {
    color: var(--primary);
}

.seo-content a:hover {
    text-decoration: underline;
}

.seo-content .owner-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seo-content .owner-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.seo-content .social-links {
    list-style: none;
    padding: 0;
}

.seo-content .social-links li {
    margin-bottom: .65rem;
}

.seo-content .social-links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.seo-content .how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
}

.seo-content .how-steps__icon {
    font-size: 2.25rem;
    margin-bottom: .5rem;
}

.seo-content .how-steps__icon--blue { color: var(--primary); }
.seo-content .how-steps__icon--green { color: var(--success); }
.seo-content .how-steps__icon--yellow { color: var(--warning); }

.seo-content .feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.seo-content .feature-list li {
    margin-bottom: .4rem;
}

.seo-content .feature-list .fa-check {
    color: var(--success);
    margin-left: .35rem;
}

.seo-content .seo-cta {
    margin-top: 1.5rem;
    text-align: center;
}

.seo-content .help-form {
    max-width: 560px;
    margin: 1.5rem auto 0;
    text-align: right;
}

.seo-content .help-form .form-group {
    margin-bottom: 1rem;
}

.seo-content .help-form .btn {
    margin-left: .5rem;
    margin-top: .5rem;
}

body.public-site .seo-content {
    background: #fff;
    border-color: var(--pub-border, var(--border));
}

body.is-logged-in .seo-content {
    background: var(--card);
}

@media (max-width: 768px) {
    .seo-content {
        padding: 1rem;
    }

    .seo-content .owner-section {
        flex-direction: column;
        text-align: center;
    }

    .seo-content .how-steps {
        grid-template-columns: 1fr;
    }
}

.seo-content--compact {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
}

.seo-content--compact h1 {
    font-size: 1.25rem;
    text-align: right;
    margin-bottom: .5rem;
}

.seo-content--compact p {
    margin: 0;
    font-size: .95rem;
}

.intro__links {
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.intro__links a {
    color: var(--primary);
}

.how-it-works__more {
    text-align: center;
    margin-top: 1rem;
}

.how-it-works__more a {
    color: var(--primary);
    font-weight: 600;
}

.seo-faq {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.seo-faq h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
    text-align: center;
}

.seo-faq__item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: .65rem;
    background: var(--surface-2);
}

.seo-faq__item summary {
    cursor: pointer;
    padding: .85rem 1rem;
    font-weight: 600;
    list-style: none;
}

.seo-faq__item summary::-webkit-details-marker {
    display: none;
}

.seo-faq__answer {
    padding: 0 1rem .85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.seo-faq__answer p {
    margin: 0;
}

body.classic-guest .seo-faq {
    background: #fff;
    border-color: var(--pub-border, var(--border));
}
