:root {
    --primary: #eab308;
    --primary-dark: #a16207;
    --primary-light: rgba(234, 179, 8, 0.12);
    --accent: #22d3ee;
    --bg: #0b0f1e;
    --surface: rgba(18, 26, 50, 0.6);
    --surface-solid: #121a32;
    --text: #e2dcd5;
    --text-muted: #9aa0ae;
    --border: rgba(234, 179, 8, 0.15);
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.12);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --radius: 14px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* خلفية ملحمية ثابتة بدون أي صور خارجية - تدرجات وتوهجات بس */
.epic-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 900px 600px at 50% 0%, rgba(234, 179, 8, 0.08), transparent 60%),
        radial-gradient(ellipse 700px 500px at 90% 90%, rgba(76, 110, 245, 0.10), transparent 65%),
        radial-gradient(ellipse 700px 500px at 5% 80%, rgba(139, 26, 26, 0.12), transparent 65%),
        var(--bg);
}

.epic-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ═══ طبقات التأثيرات الثابتة فوق الخلفية (شرر ونقط ضوء عائمة) ═══ */
.site-fx-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* ═══ طائر الفينيق الطائر في الخلفية ═══ */
.phoenix-flyer {
    position: fixed;
    top: 12%;
    left: -180px;
    width: 130px;
    height: 90px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    filter: drop-shadow(0 0 14px rgba(234, 179, 8, 0.55)) drop-shadow(0 0 30px rgba(217, 119, 6, 0.25));
    animation: phoenixFly 26s linear infinite;
}
.phoenix-flyer svg { width: 100%; height: 100%; }
.phx-wing-top {
    transform-box: fill-box;
    transform-origin: 90% 50%;
    animation: phxFlapTop .5s ease-in-out infinite alternate;
}
.phx-wing-bottom {
    transform-box: fill-box;
    transform-origin: 90% 50%;
    animation: phxFlapBottom .5s ease-in-out infinite alternate;
}
@keyframes phxFlapTop {
    from { transform: rotate(0deg) scaleY(1); }
    to   { transform: rotate(-18deg) scaleY(.65); }
}
@keyframes phxFlapBottom {
    from { transform: rotate(0deg) scaleY(1); }
    to   { transform: rotate(18deg) scaleY(.65); }
}
@keyframes phoenixFly {
    0%   { transform: translate(0, 0) scale(0.8) rotate(-4deg); }
    22%  { transform: translate(45vw, -8vh) scale(1) rotate(3deg); }
    50%  { transform: translate(75vw, 6vh) scale(0.9) rotate(-3deg); }
    78%  { transform: translate(105vw, -10vh) scale(1.05) rotate(4deg); }
    100% { transform: translate(140vw, 4vh) scale(0.8) rotate(-4deg); }
}
@media (max-width: 720px) {
    .phoenix-flyer { width: 90px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
    .phoenix-flyer { display: none; }
}
.particle, .light-mote { will-change: transform, opacity; }
.particle {
    position: absolute;
    border-radius: 50%;
    animation: emberRise ease-in-out infinite;
}
@keyframes emberRise {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: .55; }
    50%  { transform: translateY(-45vh) translateX(15px) scale(1.15); opacity: .35; }
    85%  { opacity: .15; }
    100% { transform: translateY(-95vh) translateX(-10px) scale(.6); opacity: 0; }
}
.light-mote {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: moteFloat ease-in-out infinite;
}
@keyframes moteFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: .08; }
    25% { transform: translateY(-20px) translateX(10px); opacity: .22; }
    50% { transform: translateY(-35px) translateX(-8px); opacity: .12; }
    75% { transform: translateY(-15px) translateX(15px); opacity: .18; }
}
@media (prefers-reduced-motion: reduce) {
    .particle, .light-mote { animation: none; display: none; }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* ═══ Glass panel base (يتطبق على أي سطح رئيسي في الموقع) ═══ */
.site-header,
.form-card,
.service-card .card-face,
.cart-table,
.data-table,
.admin-sidebar,
.stat-box,
footer.site-footer {
    background: linear-gradient(135deg, rgba(18, 28, 52, 0.7) 0%, rgba(12, 20, 40, 0.6) 100%);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--border);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.brand {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: .03em;
    color: #facc15;
    text-shadow: 0 0 20px rgba(234, 179, 8, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.4));
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.main-nav a {
    font-weight: 600;
    color: var(--text-muted);
    transition: color .2s;
}
.main-nav a:hover { color: #facc15; }
.btn-nav {
    background: linear-gradient(135deg, #eab308, #d97706);
    color: #0b0f1e !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(234, 179, 8, 0.3);
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    font-weight: 700;
    font-size: .85rem;
    color: #facc15 !important;
    transition: all .2s;
}
.lang-toggle:hover {
    background: rgba(234, 179, 8, 0.12);
    border-color: #eab308;
}
.badge {
    background: #8b1a1a;
    color: #fff;
    border-radius: 999px;
    font-size: .75rem;
    padding: 2px 8px;
    margin-right: 4px;
}

/* Layout */
.page-content { padding: 40px 20px 60px; min-height: 60vh; flex: 1; width: 100%; }

/* Flash messages */
.flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 600;
    border: 1px solid transparent;
}
.flash-success { background: var(--success-bg); color: var(--success); border-color: rgba(52,211,153,.25); }
.flash-error { background: var(--error-bg); color: var(--error); border-color: rgba(248,113,113,.25); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 70px 20px;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(234,179,8,0.1), transparent 60%),
        linear-gradient(135deg, rgba(18, 28, 52, 0.7), rgba(12, 20, 40, 0.55));
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(16px);
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%; left: 50%; transform: translateX(-50%);
    width: 140%; height: 70%;
    background: radial-gradient(ellipse at 50% 0%, rgba(234,179,8,0.14) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #eab308, #22d3ee, transparent);
    box-shadow: 0 0 12px rgba(234,179,8,.4);
}
.hero > * { position: relative; z-index: 1; }
.hero-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(234, 179, 8, 0.45));
}

/* ═══ قسم شركاؤنا - شريط لوجوهات متحرك ═══ */
.partners-section {
    margin: 50px 0;
    text-align: center;
}
.partners-title {
    font-family: 'Cinzel', serif;
    color: #facc15;
    font-size: 1.3rem;
    letter-spacing: .03em;
    margin-bottom: 24px;
    text-shadow: 0 0 16px rgba(234, 179, 8, 0.25);
}
.partners-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 56px;
    width: max-content;
    animation: partnersScroll 14s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-solid);
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3), var(--shadow);
    transition: transform .25s, box-shadow .25s;
}
.partner-logo:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.6), 0 0 20px rgba(234,179,8,.25), var(--shadow);
}
.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes partnersScroll {
    from { transform: translateX(100%); }
    to   { transform: translateX(-100%); }
}
[dir="ltr"] .partners-track {
    animation-name: partnersScrollLtr;
}
@keyframes partnersScrollLtr {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .partners-track { animation: none; }
}
@media (max-width: 720px) {
    .partner-logo { width: 64px; height: 64px; }
    .partners-track { gap: 34px; }
}
.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.6rem;
    margin-bottom: 12px;
    color: #fbbf24;
    text-shadow: 0 0 30px rgba(234, 179, 8, 0.35), 0 2px 6px rgba(0,0,0,.6);
    letter-spacing: .02em;
}
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 24px; }

/* ═══ أزرار متوهجة ═══ */
.btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eab308, #d97706, #eab308);
    background-size: 200% 200%;
    color: #0b0f1e;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all .35s cubic-bezier(.25,.8,.25,1);
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.35), inset 0 1px 2px rgba(255,255,255,.25);
}
.btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.55), 0 4px 20px rgba(0,0,0,.3);
}
.btn:active { transform: scale(.98); }
.btn-outline {
    background: rgba(10, 14, 30, 0.6);
    color: #facc15;
    border: 2px solid rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.12);
}
.btn-outline:hover {
    background: linear-gradient(135deg, #eab308, #d97706);
    color: #0b0f1e;
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.4);
}
.btn-danger { background: linear-gradient(135deg, #f87171, #b91c1c); color: #fff; box-shadow: 0 0 16px rgba(248,113,113,.3); }
.btn-danger:hover { box-shadow: 0 0 26px rgba(248,113,113,.5); }
.btn-success { background: linear-gradient(135deg, #34d399, #059669); color: #062b1f; box-shadow: 0 0 16px rgba(52,211,153,.3); }
.btn-success:hover { box-shadow: 0 0 26px rgba(52,211,153,.5); }
.btn-sm { padding: 7px 16px; font-size: .9rem; }
.btn-block { width: 100%; text-align: center; }

/* Cards / Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-flip-wrapper {
    perspective: 1200px;
    height: 190px;
}
.card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.card-flip-wrapper:hover .card-flip {
    transform: rotateY(180deg);
}
.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--primary-light);
}
.card-front .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: #facc15;
    font-weight: 700;
}
.card-face.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #3a2a05, #1a1030);
    border-color: rgba(234, 179, 8, 0.35);
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 10px;
}
.card-back h3 { margin: 0; font-family: 'Cinzel', serif; color: #facc15; }
.card-back p { color: #e9d9b8; font-size: .9rem; margin: 0; }

.service-footer {
    background: linear-gradient(135deg, rgba(18, 28, 52, 0.7) 0%, rgba(12, 20, 40, 0.6) 100%);
    border: 1px solid var(--border);
    border-top: none;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.service-name { margin: 0; font-size: 1.1rem; font-family: 'Cinzel', serif; color: #f1e4c3; }
.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    color: var(--text-muted);
}
.price-tag { color: #facc15; font-weight: 800; font-size: 1.2rem; text-shadow: 0 0 12px rgba(234,179,8,.3); }

/* Packages */
.package-card {
    position: relative;
    background: linear-gradient(135deg, rgba(18, 28, 52, 0.7) 0%, rgba(12, 20, 40, 0.6) 100%);
    backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .3s;
}
.package-card:hover {
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 0 30px rgba(234,179,8,.12), var(--shadow);
    transform: translateY(-4px);
}
.package-image {
    width: calc(100% + 44px);
    margin: -22px -22px 0;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
.package-badge {
    position: absolute;
    top: -12px;
    left: 18px;
    background: linear-gradient(135deg, #8b1a1a, #4a0c0c);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(139,26,26,.4);
}
.package-card h3 { margin: 0; font-family: 'Cinzel', serif; color: #facc15; font-size: 1.2rem; }
.package-desc { margin: 0; color: var(--text-muted); font-size: .9rem; }
.package-includes { background: rgba(0,0,0,.2); border-radius: 10px; padding: 12px 14px; }
.package-includes-title { font-weight: 700; font-size: .85rem; color: #d7cdb8; }
.package-includes ul { margin: 8px 0 0; padding: 0; list-style: none; }
.package-includes li { font-size: .88rem; color: var(--text-muted); padding: 3px 0; }
.package-includes li i { color: #34d399; margin-left: 6px; }
.package-pricing { display: flex; align-items: baseline; gap: 10px; }
.package-old-price { color: var(--text-muted); text-decoration: line-through; font-size: .95rem; }

.form-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-card h2 {
    text-align: center;
    margin-top: 0;
    font-family: 'Cinzel', serif;
    color: #facc15;
    text-shadow: 0 0 20px rgba(234,179,8,.25);
}
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; color: #d7cdb8; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(6, 9, 20, 0.55);
    color: var(--text);
}
input::placeholder, textarea::placeholder { color: #6b7280; }
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}
textarea { resize: vertical; min-height: 100px; }
.form-footer { text-align: center; margin-top: 16px; font-size: .92rem; color: var(--text-muted); }
.form-footer a { color: #facc15; font-weight: 700; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--border); }
.cart-table th { background: rgba(234,179,8,0.08); color: #facc15; font-family: 'Cinzel', serif; }
.cart-summary { display: flex; justify-content: flex-end; gap: 24px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.coupon-box { margin-top: 20px; }
.coupon-form { display: flex; gap: 10px; max-width: 360px; margin-inline-start: auto; }
.coupon-form input { flex: 1; }
.coupon-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    color: var(--success);
    font-weight: 700;
}
.coupon-applied i { color: #facc15; }
.coupon-remove-btn {
    background: none;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.coupon-remove-btn:hover { background: var(--error-bg); }

.checkout-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    margin: 20px 0 0 auto;
}
.checkout-options form { width: 100%; }

/* Tables (admin) */
.data-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 13px 14px; text-align: start; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: middle; }
.data-table th { background: rgba(234,179,8,0.1); color: #facc15; font-family: 'Cinzel', serif; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(234,179,8,0.05); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table img.thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }

.status-pill { padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-pending { background: var(--warning-bg); color: var(--warning); }
.status-accepted { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--error-bg); color: var(--error); }
.status-completed { background: var(--primary-light); color: #facc15; }

.countdown { font-weight: 800; color: #facc15; text-shadow: 0 0 10px rgba(234,179,8,.3); }
.countdown.expired { color: var(--error); text-shadow: none; }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }

.admin-sidebar {
    border-radius: var(--radius);
    padding: 0;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 90px;
    overflow: hidden;
}
.admin-sidebar-title {
    font-family: 'Cinzel', serif;
    color: #facc15;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(234, 179, 8, 0.06);
}
.admin-sidebar-links { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-muted);
    border-inline-start: 3px solid transparent;
    transition: all .2s;
}
.admin-sidebar a i { width: 18px; text-align: center; color: #8a7c50; transition: color .2s; }
.admin-sidebar a:hover { background: rgba(234,179,8,0.08); color: #f1e4c3; }
.admin-sidebar a.active {
    background: rgba(234,179,8,0.14);
    color: #facc15;
    border-inline-start-color: #eab308;
}
.admin-sidebar a.active i { color: #facc15; }
.admin-sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}
.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-muted);
}
.admin-sidebar-footer a:hover { color: #facc15; background: rgba(234,179,8,0.08); }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 34px; }
.stat-box {
    padding: 18px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: start;
    border-inline-start: 3px solid var(--stat-color, #eab308);
    transition: transform .2s;
}
.stat-box:hover { transform: translateY(-3px); }
.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--stat-color, #eab308);
    background: color-mix(in srgb, var(--stat-color, #eab308) 14%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--stat-color, #eab308) 20%, transparent);
}
.stat-box .num { font-size: 1.6rem; font-weight: 800; color: #f1e4c3; font-family: 'Cinzel', serif; line-height: 1.2; }
.stat-box .label { color: var(--text-muted); font-size: .82rem; }

.chart-box {
    padding: 24px 20px 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 34px;
    background: linear-gradient(135deg, rgba(18, 28, 52, 0.7) 0%, rgba(12, 20, 40, 0.6) 100%);
    border: 1px solid var(--border);
}
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 160px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}
.bar-value { font-size: .78rem; color: #facc15; font-weight: 700; margin-bottom: 6px; }
.bar {
    width: 60%;
    min-height: 6px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #facc15, #a16207);
    box-shadow: 0 0 12px rgba(234,179,8,.25);
    transition: height .4s ease;
}
.bar-label { margin-top: 8px; font-size: .78rem; color: var(--text-muted); }

.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title h2 { margin: 0; font-family: 'Cinzel', serif; color: #facc15; letter-spacing: .03em; text-shadow: 0 0 16px rgba(234,179,8,.25); }

.search-bar {
    display: flex;
    gap: 10px;
    max-width: 420px;
    margin-bottom: 26px;
}
.search-bar input { flex: 1; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(18, 28, 52, 0.4) 0%, rgba(12, 20, 40, 0.3) 100%);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}
.empty-state::before {
    content: "\f6ea";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: block;
    font-size: 2.2rem;
    color: rgba(234, 179, 8, 0.35);
    margin-bottom: 14px;
}

/* ═══ أنيميشن ظهور تدريجي للكروت والصناديق ═══ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.service-card, .package-card, .stat-box {
    animation: fadeInUp .5s ease both;
}
.services-grid > *:nth-child(1), .admin-stats > *:nth-child(1) { animation-delay: .02s; }
.services-grid > *:nth-child(2), .admin-stats > *:nth-child(2) { animation-delay: .06s; }
.services-grid > *:nth-child(3), .admin-stats > *:nth-child(3) { animation-delay: .10s; }
.services-grid > *:nth-child(4), .admin-stats > *:nth-child(4) { animation-delay: .14s; }
.services-grid > *:nth-child(5), .admin-stats > *:nth-child(5) { animation-delay: .18s; }
.services-grid > *:nth-child(6), .admin-stats > *:nth-child(6) { animation-delay: .22s; }
.services-grid > *:nth-child(n+7) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .service-card, .package-card, .stat-box { animation: none; }
}

footer.site-footer { text-align: center; padding: 24px; color: var(--text-muted); font-size: .9rem; }
footer.site-footer p { margin: 0; }

/* ══════════════════════════════════════════════════
   تحسينات الموبايل
══════════════════════════════════════════════════ */

/* زرار القائمة (همبرجر) - مخفي على الشاشات الكبيرة */
.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid rgba(234, 179, 8, 0.35);
    color: #facc15;
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { background: rgba(234,179,8,0.1); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    .header-inner { flex-wrap: nowrap; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: linear-gradient(180deg, rgba(10,14,28,0.98), rgba(8,10,22,0.98));
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }
    .main-nav.nav-open { display: flex; }
    .main-nav a {
        padding: 12px 14px;
        border-radius: 10px;
        width: 100%;
    }
    .main-nav a:hover { background: rgba(234,179,8,0.08); }
    .btn-nav, .lang-toggle { justify-content: center; }
}

@media (max-width: 720px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }

    .hero { padding: 44px 16px; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: .95rem; }

    .page-content { padding: 24px 14px 40px; }

    .services-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

    .form-card { padding: 24px 20px; }

    .cart-summary { justify-content: center; text-align: center; }
    .coupon-form { max-width: 100%; margin-inline-start: 0; flex-direction: column; }
    .search-bar { max-width: 100%; }

    /* الجداول: سماح بالتمرير الأفقي بدل ما تكسر التصميم */
    .cart-table, .data-table { display: block; overflow-x: auto; white-space: nowrap; }
    .cart-table thead, .data-table thead,
    .cart-table tbody, .data-table tbody,
    .cart-table tr, .data-table tr { display: table; width: 100%; table-layout: fixed; }
}

@media (max-width: 420px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .brand { font-size: 1.15rem; }
    .brand-logo { width: 30px; height: 30px; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
}
