/* style.css — Kuwait Pro Modern Responsive UI
   Complete replacement for the current style.css.
   Goal: modern, clean, accessible, responsive, and easier for all ages.
*/

/* =========================================================
   1) Theme Tokens
========================================================= */

:root {
    color-scheme: dark;

    --bg: #0d1117;
    --bg-soft: #121821;
    --bg-elevated: #171f2b;

    --card: rgba(24, 32, 44, 0.94);
    --card-2: rgba(32, 42, 56, 0.96);
    --card-3: rgba(255, 255, 255, 0.055);

    --border: rgba(156, 173, 198, 0.18);
    --border-strong: rgba(244, 197, 66, 0.38);

    --text: #f8fafc;
    --text-soft: #e5e7eb;
    --muted: #a9b6c9;

    --gold: #f4c542;
    --gold-2: #ffd95a;
    --gold-dark: #b98610;

    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.12);

    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.12);

    --blue: #38bdf8;
    --blue-soft: rgba(56, 189, 248, 0.12);

    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.22);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.46);

    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 30px;

    --sidebar-width: 286px;
    --tap: 48px;

    --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Tahoma, sans-serif;
    --font-ar: "Tajawal", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;

    --ease: cubic-bezier(.2, .8, .2, 1);
}

body.light {
    color-scheme: light;

    --bg: #f6f7fb;
    --bg-soft: #ffffff;
    --bg-elevated: #f0f3f8;

    --card: rgba(255, 255, 255, 0.96);
    --card-2: rgba(246, 248, 252, 0.98);
    --card-3: rgba(16, 24, 40, 0.035);

    --border: rgba(30, 41, 59, 0.13);
    --border-strong: rgba(185, 134, 16, 0.36);

    --text: #101828;
    --text-soft: #1f2937;
    --muted: #667085;

    --gold: #b98610;
    --gold-2: #c9971d;
    --gold-dark: #8a6206;

    --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.07);
    --shadow: 0 20px 60px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 34px 90px rgba(16, 24, 40, 0.14);
}

/* =========================================================
   2) Base / Accessibility
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(239, 68, 68, 0.12), transparent 31rem),
        radial-gradient(circle at 86% 4%, rgba(244, 197, 66, 0.12), transparent 34rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    touch-action: manipulation;
}

button:disabled,
[disabled] {
    cursor: not-allowed;
}

:focus-visible {
    outline: 3px solid rgba(244, 197, 66, 0.72);
    outline-offset: 3px;
}

::selection {
    background: rgba(244, 197, 66, 0.35);
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   3) Layout
========================================================= */

.site-shell {
    min-height: 100vh;
    display: flex;
}

.main-area {
    width: 100%;
    min-height: 100vh;
    padding: 22px calc(var(--sidebar-width) + 30px) 48px 28px;
}

body[dir="ltr"] .main-area {
    padding: 22px 28px 48px calc(var(--sidebar-width) + 30px);
}

.page-container {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.section {
    margin-top: clamp(22px, 3vw, 34px);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

body[dir="rtl"] .section-title {
    letter-spacing: 0;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
    max-width: 760px;
}

/* =========================================================
   4) Sidebar / Navigation
========================================================= */

.side-nav {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 50;
    padding: 20px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
        linear-gradient(180deg, rgba(24, 32, 44, .96), rgba(17, 24, 39, .96)),
        var(--card);
    border-inline-start: 1px solid var(--border);
    box-shadow: -18px 0 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
    scrollbar-width: thin;
}

body[dir="ltr"] .side-nav {
    right: auto;
    left: 0;
    box-shadow: 18px 0 60px rgba(0, 0, 0, 0.20);
}

.side-nav::-webkit-scrollbar {
    width: 8px;
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(244, 197, 66, .24);
    border-radius: 999px;
}

.brand-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0 10px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .38));
}

.brand-name {
    margin: 0 0 18px;
    text-align: center;
    color: var(--gold);
    font-size: 26px;
    font-weight: 1000;
    line-height: 1.15;
}

.nav-user {
    min-height: var(--tap);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-weight: 900;
    text-align: center;
    word-break: break-word;
}

.nav-menu {
    display: grid;
    gap: 7px;
}

.nav-link {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 17px;
    border: 1px solid transparent;
    color: var(--text-soft);
    font-weight: 900;
    transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.nav-link span:first-child {
    width: 30px;
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--gold);
    background: rgba(244, 197, 66, 0.08);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, rgba(244, 197, 66, .18), rgba(244, 197, 66, .08));
    border-color: rgba(244, 197, 66, .36);
    color: var(--gold);
    transform: translateX(-2px);
}

body[dir="ltr"] .nav-link:hover,
body[dir="ltr"] .nav-link.active {
    transform: translateX(2px);
}

.nav-separator {
    height: 1px;
    margin: 16px 0;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.nav-controls {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.pill-group {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.pill-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    transition: .18s var(--ease);
}

.pill-btn:hover,
.pill-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #111827;
    transform: translateY(-1px);
}

/* =========================================================
   5) Mobile Bars
========================================================= */

.top-mobile-bar,
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-bottom: 96px;
    }

    .side-nav {
        display: none;
    }

    .main-area,
    body[dir="ltr"] .main-area {
        padding: 82px 14px 30px;
    }

    .top-mobile-bar {
        display: flex;
        position: fixed;
        inset: 0 0 auto 0;
        height: 64px;
        z-index: 80;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 14px;
        background: rgba(18, 24, 33, 0.94);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(18px);
    }

    body.light .top-mobile-bar {
        background: rgba(255, 255, 255, 0.94);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--gold);
        font-size: 18px;
        font-weight: 1000;
        min-width: 0;
    }

    .mobile-brand img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .mobile-brand span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .mobile-actions {
        display: flex;
        gap: 8px;
    }

    .mobile-icon-btn {
        width: 42px;
        height: 42px;
        border: 1px solid var(--border);
        background: var(--bg-soft);
        color: var(--text);
        border-radius: 16px;
        cursor: pointer;
        font-weight: 900;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 90;
        gap: 7px;
        padding: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        background: rgba(18, 24, 33, 0.95);
        border: 1px solid var(--border);
        border-radius: 26px;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(18px);
    }

    body.light .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.95);
    }

    .mobile-bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .mobile-bottom-nav a,
    .bottom-nav-item {
        min-width: 72px;
        min-height: 56px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        gap: 2px;
        padding: 7px 8px;
        border-radius: 19px;
        color: var(--muted);
        text-align: center;
        font-size: 12px;
        font-weight: 900;
        transition: .18s var(--ease);
    }

    .mobile-bottom-nav a.active,
    .bottom-nav-item.active {
        background: rgba(244, 197, 66, .16);
        color: var(--gold);
    }

    .mobile-bottom-nav small {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* =========================================================
   6) Grids / Cards
========================================================= */

.grid {
    display: grid;
    gap: 18px;
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), transparent),
        var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(244, 197, 66, .055), transparent 38%);
    opacity: .7;
}

.card-body {
    position: relative;
    z-index: 1;
    padding: clamp(16px, 2vw, 22px);
}

.event-card,
.product-card,
.admin-action-card {
    transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.event-card:hover,
.product-card:hover,
.admin-action-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 197, 66, .46);
    box-shadow: var(--shadow);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--card-2);
}

.card-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 20%, rgba(244,197,66,.24), transparent 45%),
        linear-gradient(135deg, rgba(239, 68, 68, .16), rgba(244, 197, 66, .14)),
        var(--card-2);
    color: var(--gold);
    font-size: 46px;
    font-weight: 1000;
}

.card-title {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.35;
    font-weight: 900;
}

.card-text,
.card-meta {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(244,197,66,.12);
    border: 1px solid rgba(244,197,66,.28);
    font-size: 26px;
    margin-bottom: 14px;
}

.price {
    color: var(--gold);
    font-size: 21px;
    font-weight: 1000;
}

.badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(244, 197, 66, .13);
    border: 1px solid rgba(244, 197, 66, .30);
    color: var(--gold);
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .02em;
}

/* =========================================================
   7) Hero / About visual blocks
========================================================= */

.hero-card,
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: clamp(22px, 3vw, 32px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background:
        radial-gradient(circle at 20% 20%, rgba(244, 197, 66, 0.18), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(244, 197, 66, .10), rgba(255,255,255,.025)),
        var(--card);
}

.hero-slide,
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: center;
    min-height: 370px;
    padding: clamp(24px, 4vw, 44px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.kicker,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(244,197,66,.14);
    border: 1px solid rgba(244,197,66,.32);
    color: var(--gold);
    font-weight: 1000;
}

.hero-title {
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(36px, 5vw, 68px);
    line-height: 1.02;
    font-weight: 1000;
    letter-spacing: -0.045em;
}

body[dir="rtl"] .hero-title {
    letter-spacing: 0;
}

.hero-text,
.hero-subtitle {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-image-box,
.hero-visual {
    min-height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-big {
    width: min(360px, 86%);
    filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}

.glow-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(244, 197, 66, .28), transparent 66%);
    filter: blur(10px);
}

.glass-card {
    width: min(420px, 100%);
    padding: 26px;
    border-radius: 30px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.glass-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 22px;
    background: rgba(244,197,66,.14);
    border: 1px solid rgba(244,197,66,.30);
    font-size: 36px;
}

/* =========================================================
   8) Buttons / Forms
========================================================= */

.btn {
    min-height: var(--tap);
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #111827;
    font-weight: 1000;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(244, 197, 66, .18);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(244, 197, 66, .24);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: rgba(255,255,255,.025);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover {
    color: var(--gold);
    border-color: var(--border-strong);
    background: rgba(244,197,66,.08);
}

.btn-sm {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.form-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 28px);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-weight: 900;
}

.form-control {
    width: 100%;
    min-height: var(--tap);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    padding: 13px 15px;
    border-radius: 16px;
    outline: none;
    font-size: 16px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-control:focus {
    border-color: rgba(244,197,66,.72);
    box-shadow: 0 0 0 4px rgba(244,197,66,.12);
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--muted), transparent 20%);
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    font-weight: 800;
}

.alert-success {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.32);
    color: #86efac;
}

.alert-danger {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.32);
    color: #fecaca;
}

.alert-warning {
    background: rgba(244,197,66,.13);
    border-color: rgba(244,197,66,.32);
    color: #fde68a;
}

/* =========================================================
   9) Auth Pages
========================================================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(244,197,66,.12), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(239,68,68,.12), transparent 34rem),
        var(--bg);
}

.auth-card {
    width: min(100%, 470px);
    padding: clamp(22px, 4vw, 32px);
    border-radius: 26px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.auth-title {
    margin: 12px 0 18px;
    text-align: center;
    color: var(--gold);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 1000;
}

.auth-lang {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.auth-footer {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
}

.auth-footer a {
    color: var(--gold);
    font-weight: 1000;
}

/* =========================================================
   10) Tables
========================================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: rgba(255,255,255,.018);
}

.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: start;
    vertical-align: middle;
}

.table th {
    color: var(--gold);
    background: rgba(244,197,66,.08);
    font-size: 13px;
    font-weight: 1000;
    white-space: nowrap;
}

.table tr:hover td {
    background: rgba(255,255,255,.025);
}

/* =========================================================
   11) Empty / Footer
========================================================= */

.empty-state {
    padding: clamp(34px, 5vw, 58px) 18px;
    text-align: center;
    color: var(--muted);
    background: rgba(255,255,255,.018);
    border-radius: 20px;
}

.footer {
    margin-top: 44px;
    padding: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
}

/* =========================================================
   12) Seat Map
========================================================= */

.seat-map-card {
    margin-top: 24px;
}

.stage-box {
    width: min(560px, 100%);
    margin: 0 auto 28px;
    padding: 18px;
    text-align: center;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(244,197,66,.26), rgba(239,68,68,.13)),
        rgba(255,255,255,.04);
    border: 1px solid rgba(244,197,66,.35);
    color: var(--gold);
    font-size: 17px;
    font-weight: 1000;
    letter-spacing: .02em;
    box-shadow: var(--shadow-sm);
}

.seat-zone {
    margin: 22px 0;
    padding: clamp(14px, 2vw, 20px);
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
}

.seat-zone-title {
    margin-bottom: 16px;
    color: var(--gold);
    text-align: center;
    font-weight: 1000;
    font-size: 21px;
}

.seat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    justify-content: center;
}

.seat-btn {
    width: 74px;
    min-height: 56px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px 18px 24px 24px;
    color: #111827;
    cursor: pointer;
    font-weight: 1000;
    box-shadow: 0 12px 24px rgba(0,0,0,.22);
    transition: transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease);
}

.seat-btn:hover:not(:disabled) {
    transform: translateY(-5px) scale(1.045);
    filter: brightness(1.08);
    box-shadow: 0 16px 34px rgba(0,0,0,.30);
}

.seat-vip {
    background: linear-gradient(135deg, #fff7c7, #f4c542);
}

.seat-gold {
    background: linear-gradient(135deg, #ffe28b, #c99d22);
}

.seat-silver {
    background: linear-gradient(135deg, #f8fafc, #94a3b8);
}

.seat-status-reserved,
.seat-status-sold,
.seat-status-blocked {
    background: #303845 !important;
    color: #8b96a8 !important;
    opacity: .72;
    cursor: not-allowed;
    box-shadow: none;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-inline-end: 7px;
    border-radius: 50%;
    vertical-align: middle;
}

.legend-vip { background: #f4c542; }
.legend-gold { background: #c99d22; }
.legend-silver { background: #94a3b8; }
.legend-reserved { background: #303845; }

.seat-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
}

.seat-modal.active {
    display: flex;
}

.seat-modal-box {
    width: min(450px, 100%);
    position: relative;
    padding: 26px;
    border-radius: 26px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    animation: popIn .18s var(--ease);
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.seat-modal-box h3 {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 25px;
    font-weight: 1000;
}

.seat-modal-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.seat-modal-box form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* =========================================================
   13) Cart
========================================================= */

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    border-radius: 20px;
}

.cart-item-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(244,197,66,.12);
    border: 1px solid rgba(244,197,66,.28);
    font-size: 26px;
}

.cart-item-info h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 18px;
}

.cart-item-info p {
    margin: 5px 0;
    color: var(--muted);
    font-size: 14px;
}

.cart-item-price {
    margin-top: 10px;
    color: var(--gold);
    font-size: 18px;
    font-weight: 1000;
}

.cart-remove-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(239,68,68,.35);
    background: rgba(239,68,68,.10);
    color: #fecaca;
    border-radius: 14px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.cart-remove-btn:hover {
    background: rgba(239,68,68,.22);
}

.summary-row,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.summary-row strong {
    color: var(--text);
}

.summary-total {
    margin-top: 8px;
    border-bottom: 0;
    color: var(--text);
    font-size: 23px;
    font-weight: 1000;
}

.summary-total strong {
    color: var(--gold);
}

/* =========================================================
   14) Tickets / QR / Scanner
========================================================= */

.ticket-card,
.ticket-full-card,
.ticket-card-full {
    position: relative;
}

.ticket-full-card,
.ticket-card-full {
    max-width: 1060px;
    margin: 0 auto;
    overflow: hidden;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px dashed var(--border);
}

.ticket-title {
    margin: 12px 0 4px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 1000;
}

.ticket-status,
.ticket-status-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 1000;
}

.ticket-status-valid {
    color: #86efac;
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
}

.ticket-status-used {
    color: #fde68a;
    background: rgba(244,197,66,.12);
    border-color: rgba(244,197,66,.35);
}

.ticket-status-cancelled {
    color: #fecaca;
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.35);
}

.ticket-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.ticket-info-box {
    display: grid;
    gap: 10px;
}

.ticket-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

.ticket-info-row strong {
    color: var(--text);
    text-align: end;
    word-break: break-word;
}

.qr-box {
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    color: #111827;
    text-align: center;
    box-shadow: var(--shadow);
}

.qr-box img {
    width: 100%;
    max-width: 320px;
    min-height: 220px;
    object-fit: contain;
    margin: 0 auto 12px;
    border-radius: 14px;
}

.qr-box .card-meta {
    color: #374151;
}

.ticket-warning {
    margin-top: 24px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(244,197,66,.12);
    border: 1px solid rgba(244,197,66,.30);
    color: var(--gold);
    font-weight: 900;
}

.scanner-result-card {
    max-width: 780px;
    margin: 0 auto;
}

.scanner-status {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--border);
    font-size: 26px;
    font-weight: 1000;
    text-align: center;
}

.scanner-valid {
    color: #86efac;
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
}

.scanner-used {
    color: #fde68a;
    background: rgba(244,197,66,.12);
    border-color: rgba(244,197,66,.35);
}

.scanner-invalid {
    color: #fecaca;
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.35);
}

/* =========================================================
   15) Admin
========================================================= */

.admin-stat-card h2 {
    margin: 12px 0 8px;
    color: var(--gold);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 1000;
}

.admin-action-card {
    display: block;
}

.admin-action-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 19px;
    background: rgba(244,197,66,.12);
    border: 1px solid rgba(244,197,66,.28);
    font-size: 27px;
}

/* =========================================================
   16) Responsive
========================================================= */

@media (max-width: 1180px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slide,
    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-image-box,
    .hero-visual {
        min-height: 220px;
    }
}

@media (max-width: 900px) {
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-slide,
    .hero-section {
        padding: 24px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(32px, 9vw, 48px);
    }

    .card-image,
    .card-placeholder {
        height: 190px;
    }

    .ticket-layout {
        grid-template-columns: 1fr;
    }

    .ticket-header {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .main-area,
    body[dir="ltr"] .main-area {
        padding-inline: 10px;
    }

    .hero-actions,
    .section-head .hero-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .section-head .btn {
        flex: 1 1 100%;
        width: 100%;
    }

    .card-body {
        padding: 16px;
    }

    .seat-zone {
        padding: 14px 10px;
    }

    .seat-grid {
        gap: 8px;
    }

    .seat-btn {
        width: 58px;
        min-height: 48px;
        border-radius: 15px 15px 20px 20px;
        font-size: 12px;
    }

    .cart-item {
        grid-template-columns: 48px 1fr;
    }

    .cart-remove-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .cart-item-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .summary-row,
    .summary-total,
    .ticket-info-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .ticket-info-row strong {
        text-align: start;
    }

    .qr-box {
        padding: 14px;
    }

    .table {
        min-width: 680px;
    }
}

@media (max-width: 390px) {
    .seat-btn {
        width: 52px;
        min-height: 46px;
        font-size: 11px;
    }

    .mobile-bottom-nav a,
    .bottom-nav-item {
        min-width: 66px;
    }
} 



/* =========================================================
   FIX PATCH — Navbar, Light Mode, Dynamic Text
   Add this at the very bottom of style.css
========================================================= */

/* Fix sidebar links: remove wrong circle behind text */
.nav-link > span {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Make navbar text clean and readable */
.nav-link {
    min-height: 58px;
    padding: 13px 15px;
    font-size: clamp(15px, 0.95vw, 17px);
    line-height: 1.35;
    gap: 12px;
}

/* Better text wrapping for menu labels */
.nav-link span {
    white-space: normal;
    word-break: normal;
}

/* Give the last small icon enough space without affecting text */
.nav-link span:last-child {
    flex: 0 0 auto;
    opacity: 0.95;
}

/* Make the text side take available space */
.nav-link span:first-child {
    flex: 1 1 auto;
}

/* Fix My Tickets wrapping in English */
body[dir="ltr"] .nav-link {
    text-align: left;
}

body[dir="rtl"] .nav-link {
    text-align: right;
}

/* Light mode sidebar should also become light */
body.light .side-nav {
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,248,252,.98)),
        #ffffff !important;
    border-color: rgba(30, 41, 59, 0.14) !important;
    box-shadow: -18px 0 60px rgba(16, 24, 40, 0.10);
}

body.light[dir="ltr"] .side-nav {
    box-shadow: 18px 0 60px rgba(16, 24, 40, 0.10);
}

body.light .nav-link {
    color: #172033 !important;
}

body.light .nav-link:hover,
body.light .nav-link.active {
    background: rgba(185, 134, 16, 0.13) !important;
    border-color: rgba(185, 134, 16, 0.38) !important;
    color: #9a6b05 !important;
}

body.light .nav-user,
body.light .pill-btn {
    background: #f8fafc !important;
    color: #172033 !important;
    border-color: rgba(30, 41, 59, 0.14) !important;
}

body.light .control-row {
    color: #667085 !important;
}

body.light .brand-name {
    color: #b98610 !important;
}

/* Hero title: more dynamic and not too huge */
.hero-title {
    font-size: clamp(34px, 4.1vw, 58px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em;
    text-wrap: balance;
    max-width: 760px;
}

body[dir="rtl"] .hero-title {
    letter-spacing: 0 !important;
    font-size: clamp(34px, 4vw, 56px) !important;
}

/* Hero text readable for all ages */
.hero-text,
.hero-subtitle {
    font-size: clamp(16px, 1.15vw, 18px) !important;
    line-height: 1.9 !important;
    max-width: 760px;
}

/* Hero layout better on desktop */
.hero-slide,
.hero-section {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr) !important;
    gap: clamp(22px, 4vw, 50px) !important;
}

/* Make hero image/logo area not push text strangely */
.hero-image-box,
.hero-visual {
    min-width: 0;
}

.hero-logo-big {
    max-width: 340px;
    transform: none !important;
}

/* Better Arabic visual spacing */
body[dir="rtl"] .hero-content {
    text-align: right;
}

/* Search bar easier */
.form-control,
.btn {
    font-size: clamp(15px, 1vw, 17px);
}

/* Cards text more readable */
.card-title {
    font-size: clamp(18px, 1.45vw, 22px) !important;
}

.card-meta,
.card-text,
.section-subtitle {
    font-size: clamp(14px, 1vw, 16px) !important;
}

/* Prevent page from looking too stretched on huge screens */
.page-container {
    max-width: 1260px !important;
}

/* Better spacing beside sidebar */
.main-area {
    padding-inline-start: 28px;
    padding-inline-end: calc(var(--sidebar-width) + 42px);
}

body[dir="ltr"] .main-area {
    padding-inline-start: calc(var(--sidebar-width) + 42px);
    padding-inline-end: 28px;
}

/* Mobile/tablet: keep everything simple */
@media (max-width: 1180px) {
    .hero-slide,
    .hero-section {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: clamp(32px, 6vw, 48px) !important;
    }

    body[dir="rtl"] .hero-title {
        font-size: clamp(32px, 6vw, 48px) !important;
    }
}

@media (max-width: 900px) {
    .main-area,
    body[dir="ltr"] .main-area {
        padding-inline: 14px !important;
    }

    .hero-slide,
    .hero-section {
        padding: 22px !important;
    }

    .hero-title {
        font-size: clamp(30px, 8vw, 42px) !important;
    }

    .hero-actions .btn {
        min-height: 50px;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: clamp(28px, 9vw, 38px) !important;
    }

    .section-title {
        font-size: clamp(22px, 7vw, 30px) !important;
    }

    .btn {
        width: 100%;
    }
}

/* =========================================================
   RTL/LTR Layout Fix — Sidebar Overlap Fix
   Add this at the very bottom of style.css
========================================================= */

/* Default RTL layout: sidebar is on the right */
body[dir="rtl"] .main-area {
    padding-top: 22px !important;
    padding-right: calc(var(--sidebar-width) + 42px) !important;
    padding-bottom: 48px !important;
    padding-left: 28px !important;
}

/* English/LTR layout: sidebar is on the left */
body[dir="ltr"] .main-area {
    padding-top: 22px !important;
    padding-right: 28px !important;
    padding-bottom: 48px !important;
    padding-left: calc(var(--sidebar-width) + 42px) !important;
}

/* Make sure hero never hides under sidebar */
.hero-card,
.hero-section,
.card,
.section {
    max-width: 100%;
}

/* Prevent big hero text from overflowing */
.hero-content {
    min-width: 0;
}

.hero-title,
.hero-text,
.hero-subtitle {
    overflow-wrap: anywhere;
}

/* Arabic title size control */
body[dir="rtl"] .hero-title {
    font-size: clamp(32px, 3.6vw, 52px) !important;
    line-height: 1.18 !important;
}

/* English title size control */
body[dir="ltr"] .hero-title {
    font-size: clamp(34px, 3.8vw, 56px) !important;
    line-height: 1.14 !important;
}

/* Make hero layout less stretched */
.hero-slide,
.hero-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr) !important;
}

/* On tablet/mobile remove sidebar spacing */
@media (max-width: 900px) {
    body[dir="rtl"] .main-area,
    body[dir="ltr"] .main-area {
        padding: 82px 14px 30px !important;
    }

    .hero-slide,
    .hero-section {
        grid-template-columns: 1fr !important;
    }

    body[dir="rtl"] .hero-title,
    body[dir="ltr"] .hero-title {
        font-size: clamp(28px, 8vw, 42px) !important;
    }
}

/* Final header/sidebar fix */

.nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

.nav-link .nav-text {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: inherit !important;
    text-align: start !important;
    line-height: 1.4 !important;
}

.nav-link .nav-icon {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(244, 197, 66, 0.08) !important;
}

/* RTL: sidebar right, content must leave space on right */
body[dir="rtl"] .main-area {
    padding-top: 22px !important;
    padding-right: calc(var(--sidebar-width) + 42px) !important;
    padding-bottom: 48px !important;
    padding-left: 28px !important;
}

/* LTR: sidebar left, content must leave space on left */
body[dir="ltr"] .main-area {
    padding-top: 22px !important;
    padding-right: 28px !important;
    padding-bottom: 48px !important;
    padding-left: calc(var(--sidebar-width) + 42px) !important;
}

body[dir="rtl"] .side-nav {
    right: 0 !important;
    left: auto !important;
}

body[dir="ltr"] .side-nav {
    left: 0 !important;
    right: auto !important;
}

/* Make hero not go under sidebar */
.page-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
}

.hero-card,
.hero-section {
    max-width: 100% !important;
}

/* Better hero title size */
.hero-title {
    font-size: clamp(32px, 3.4vw, 50px) !important;
    line-height: 1.18 !important;
    max-width: 760px !important;
}

body[dir="rtl"] .hero-title {
    letter-spacing: 0 !important;
}

/* Mobile */
@media (max-width: 900px) {
    body[dir="rtl"] .main-area,
    body[dir="ltr"] .main-area {
        padding: 82px 14px 30px !important;
    }

    .hero-slide,
    .hero-section {
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 42px) !important;
    }
}

/* =========================================================
   Mobile Bottom Nav — Easy Scroll for Admin/User
========================================================= */

@media (max-width: 900px) {
    body {
        padding-bottom: 105px !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 8px !important;

        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        z-index: 999 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;

        padding: 8px !important;
        border-radius: 24px !important;
        background: rgba(18, 24, 33, 0.96) !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 14px 40px rgba(0,0,0,.35) !important;
        backdrop-filter: blur(18px) !important;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-bottom-nav::-webkit-scrollbar {
        display: none;
    }

    body.light .mobile-bottom-nav {
        background: rgba(255, 255, 255, 0.96) !important;
    }

    .mobile-bottom-nav .bottom-nav-item,
    .mobile-bottom-nav a {
        flex: 0 0 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: 62px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;

        padding: 7px 6px !important;
        border-radius: 18px !important;
        color: var(--muted) !important;
        text-align: center !important;
        font-weight: 900 !important;
        scroll-snap-align: start;
    }

    .mobile-bottom-nav .bottom-nav-item span,
    .mobile-bottom-nav a span {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    .mobile-bottom-nav .bottom-nav-item small,
    .mobile-bottom-nav a small,
    .mobile-bottom-nav a div:last-child {
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        max-width: 70px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-bottom-nav .bottom-nav-item.active,
    .mobile-bottom-nav a.active {
        background: rgba(244,197,66,.18) !important;
        color: var(--gold) !important;
        border: 1px solid rgba(244,197,66,.35) !important;
    }
}

/* =========================================================
   Mobile Side Drawer Menu
   User side opens sidebar from menu button
========================================================= */

.mobile-menu-overlay {
    display: none;
}

@media (max-width: 900px) {
    .side-nav {
        display: block !important;
        width: min(86vw, 320px) !important;
        top: 0 !important;
        bottom: 0 !important;
        z-index: 1001 !important;
        transition: transform .25s ease !important;
    }

    body[dir="rtl"] .side-nav {
        right: 0 !important;
        left: auto !important;
        transform: translateX(110%) !important;
    }

    body[dir="ltr"] .side-nav {
        left: 0 !important;
        right: auto !important;
        transform: translateX(-110%) !important;
    }

    body[dir="rtl"] .side-nav.mobile-open,
    body[dir="ltr"] .side-nav.mobile-open {
        transform: translateX(0) !important;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, .55);
        backdrop-filter: blur(4px);
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .top-mobile-bar {
        z-index: 999 !important;
    }

    .main-area,
    body[dir="ltr"] .main-area {
        padding-bottom: 32px !important;
    }
}

/* =========================================================
   Mobile Drawer Close Button
========================================================= */

.mobile-menu-close {
    display: none;
}

@media (max-width: 900px) {
    .mobile-menu-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        position: absolute !important;
        top: 14px !important;
        width: 42px !important;
        height: 42px !important;

        border: 1px solid var(--border) !important;
        border-radius: 14px !important;
        background: rgba(255,255,255,.06) !important;
        color: var(--text) !important;

        font-size: 28px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        cursor: pointer !important;
        z-index: 5 !important;
    }

    body[dir="rtl"] .mobile-menu-close {
        left: 14px !important;
        right: auto !important;
    }

    body[dir="ltr"] .mobile-menu-close {
        right: 14px !important;
        left: auto !important;
    }

    .mobile-menu-close:hover {
        background: rgba(244,197,66,.16) !important;
        color: var(--gold) !important;
    }

    .side-nav {
        padding-top: 64px !important;
    }
} 
/* =========================================================
   Mobile Top Bar Direction Fix
   Hamburger follows language direction
========================================================= */

@media (max-width: 900px) {
    .top-mobile-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .mobile-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    body[dir="rtl"] .top-mobile-bar {
        flex-direction: row-reverse !important;
    }

    body[dir="ltr"] .top-mobile-bar {
        flex-direction: row !important;
    }

    body[dir="rtl"] .mobile-actions {
        flex-direction: row-reverse !important;
    }

    body[dir="ltr"] .mobile-actions {
        flex-direction: row !important;
    }
}
/* =========================================================
   Mobile Hamburger Corner Position
========================================================= */

@media (max-width: 900px) {
    .top-mobile-bar {
        position: relative !important;
        min-height: 74px !important;
    }

    .mobile-menu-btn {
        position: absolute !important;
        top: 18px !important;
        z-index: 20 !important;
    }

    body[dir="rtl"] .mobile-menu-btn {
        right: 16px !important;
        left: auto !important;
    }

    body[dir="ltr"] .mobile-menu-btn {
        left: 16px !important;
        right: auto !important;
    }

    body[dir="rtl"] .mobile-actions {
        padding-right: 58px !important;
    }

    body[dir="ltr"] .mobile-actions {
        padding-left: 58px !important;
    }

    body[dir="rtl"] .top-mobile-bar .brand,
    body[dir="rtl"] .top-mobile-bar .site-logo,
    body[dir="rtl"] .top-mobile-bar .logo {
        margin-right: auto !important;
    }

    body[dir="ltr"] .top-mobile-bar .brand,
    body[dir="ltr"] .top-mobile-bar .site-logo,
    body[dir="ltr"] .top-mobile-bar .logo {
        margin-left: auto !important;
    }
}
/* =========================================================
   Fix Mobile Header Logo Overlap With Hamburger
========================================================= */

@media (max-width: 900px) {
    body[dir="ltr"] .top-mobile-bar {
        padding-left: 72px !important;
        padding-right: 14px !important;
    }

    body[dir="rtl"] .top-mobile-bar {
        padding-right: 72px !important;
        padding-left: 14px !important;
    }

    body[dir="ltr"] .mobile-menu-btn {
        left: 16px !important;
        right: auto !important;
    }

    body[dir="rtl"] .mobile-menu-btn {
        right: 16px !important;
        left: auto !important;
    }

    body[dir="ltr"] .mobile-actions {
        padding-left: 0 !important;
    }

    body[dir="rtl"] .mobile-actions {
        padding-right: 0 !important;
    }
}

/* =========================================================
   STEP 15.1 — Kuwait Pro Logo Color Identity Patch
   Navy + Gold + White
   Add this at the very bottom of style.css
========================================================= */

:root {
    --kp-navy: #0b2947;
    --kp-navy-dark: #061626;
    --kp-navy-soft: #102f50;

    --kp-gold: #c6a14a;
    --kp-gold-light: #e0c46f;
    --kp-gold-dark: #9a762b;

    --kp-white: #f8fafc;
    --kp-soft-white: #eef2f7;

    --bg: #061626;
    --bg-soft: #0b1d33;
    --bg-elevated: #102f50;

    --card: rgba(11, 29, 51, 0.96);
    --card-2: rgba(16, 47, 80, 0.96);
    --card-3: rgba(255, 255, 255, 0.055);

    --border: rgba(224, 196, 111, 0.18);
    --border-strong: rgba(224, 196, 111, 0.46);

    --text: #f8fafc;
    --text-soft: #eef2f7;
    --muted: #b6c4d6;

    --gold: #c6a14a;
    --gold-2: #e0c46f;
    --gold-dark: #9a762b;

    --blue: #0b2947;
    --blue-soft: rgba(11, 41, 71, 0.20);
}

body.light {
    --bg: #f7f8fb;
    --bg-soft: #ffffff;
    --bg-elevated: #eef2f7;

    --card: rgba(255, 255, 255, 0.98);
    --card-2: rgba(248, 250, 252, 0.98);
    --card-3: rgba(11, 41, 71, 0.045);

    --border: rgba(11, 41, 71, 0.13);
    --border-strong: rgba(198, 161, 74, 0.45);

    --text: #061626;
    --text-soft: #0b2947;
    --muted: #66758a;

    --gold: #b48a32;
    --gold-2: #c6a14a;
    --gold-dark: #8a6722;
}

/* Main page background — remove red glow and use official navy/gold */
body {
    background:
        radial-gradient(circle at 12% 0%, rgba(198, 161, 74, 0.13), transparent 32rem),
        radial-gradient(circle at 88% 6%, rgba(11, 41, 71, 0.45), transparent 34rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent 24rem),
        var(--bg) !important;
}

body.light {
    background:
        radial-gradient(circle at 12% 0%, rgba(198, 161, 74, 0.14), transparent 32rem),
        radial-gradient(circle at 88% 6%, rgba(11, 41, 71, 0.08), transparent 34rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 24rem),
        var(--bg) !important;
}

/* Sidebar — more official Kuwait Pro identity */
.side-nav {
    background:
        linear-gradient(180deg, rgba(11, 29, 51, 0.98), rgba(6, 22, 38, 0.98)),
        var(--card) !important;
    border-color: rgba(198, 161, 74, 0.22) !important;
}

body.light .side-nav {
    background:
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.99)),
        #ffffff !important;
    border-color: rgba(11, 41, 71, 0.14) !important;
}

/* Brand */
.brand-name,
.mobile-brand {
    color: var(--gold) !important;
    letter-spacing: 0.02em;
}

/* Mobile top bar */
.top-mobile-bar {
    background: rgba(6, 22, 38, 0.96) !important;
    border-bottom-color: rgba(198, 161, 74, 0.20) !important;
}

body.light .top-mobile-bar {
    background: rgba(255, 255, 255, 0.96) !important;
}

/* Cards */
.card,
.auth-card,
.seat-modal-box {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), transparent),
        var(--card) !important;
    border-color: rgba(224, 196, 111, 0.18) !important;
}

.card::before {
    background: linear-gradient(135deg, rgba(198, 161, 74, .07), transparent 42%) !important;
}

/* Hero */
.hero-card,
.hero-section {
    background:
        radial-gradient(circle at 18% 20%, rgba(198, 161, 74, 0.20), transparent 32%),
        radial-gradient(circle at 90% 12%, rgba(11, 41, 71, 0.42), transparent 36%),
        linear-gradient(135deg, rgba(198, 161, 74, .10), rgba(255,255,255,.025)),
        var(--card) !important;
    border-color: rgba(224, 196, 111, 0.24) !important;
}

/* Remove old red from placeholders/stage */
.card-placeholder,
.stage-box {
    background:
        radial-gradient(circle at 30% 20%, rgba(198,161,74,.24), transparent 45%),
        linear-gradient(135deg, rgba(11, 41, 71, .22), rgba(198, 161, 74, .18)),
        var(--card-2) !important;
    color: var(--gold) !important;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--gold-2), var(--gold)) !important;
    color: #061626 !important;
    box-shadow: 0 12px 28px rgba(198, 161, 74, .20) !important;
}

.btn:hover {
    box-shadow: 0 18px 38px rgba(198, 161, 74, .28) !important;
}

.btn-outline {
    background: rgba(255,255,255,.025) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
}

.btn-outline:hover {
    color: var(--gold) !important;
    border-color: var(--border-strong) !important;
    background: rgba(198,161,74,.10) !important;
}

/* Nav links */
.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, rgba(198, 161, 74, .18), rgba(198, 161, 74, .08)) !important;
    border-color: rgba(198, 161, 74, .40) !important;
    color: var(--gold) !important;
}

.nav-link .nav-icon {
    background: rgba(198, 161, 74, 0.10) !important;
}

/* Forms */
.form-control {
    background: rgba(6, 22, 38, 0.78) !important;
    border-color: rgba(224, 196, 111, 0.18) !important;
}

body.light .form-control {
    background: #ffffff !important;
    border-color: rgba(11, 41, 71, 0.14) !important;
}

.form-control:focus {
    border-color: rgba(198,161,74,.75) !important;
    box-shadow: 0 0 0 4px rgba(198,161,74,.13) !important;
}

/* Tables */
.table th,
.admin-table th {
    color: var(--gold) !important;
    background: rgba(198,161,74,.10) !important;
}

.table-wrap,
.table-responsive {
    border-color: rgba(224, 196, 111, 0.18) !important;
}

/* Badges */
.badge {
    background: rgba(198, 161, 74, .14) !important;
    border-color: rgba(198, 161, 74, .34) !important;
    color: var(--gold) !important;
}

/* Stats */
.admin-stat-card h2,
.price,
.summary-total strong,
.cart-item-price {
    color: var(--gold) !important;
}

/* QR scanner result colors stay clear */
.alert-success {
    background: rgba(34,197,94,.13) !important;
    border-color: rgba(34,197,94,.34) !important;
    color: #86efac !important;
}

.alert-danger {
    background: rgba(239,68,68,.13) !important;
    border-color: rgba(239,68,68,.34) !important;
    color: #fecaca !important;
}

.alert-warning {
    background: rgba(198,161,74,.14) !important;
    border-color: rgba(198,161,74,.34) !important;
    color: #f5dfa0 !important;
}

/* Seat colors closer to identity */
.seat-vip {
    background: linear-gradient(135deg, #fff3bd, #c6a14a) !important;
}

.seat-gold {
    background: linear-gradient(135deg, #eed07a, #b48a32) !important;
}

.seat-silver {
    background: linear-gradient(135deg, #ffffff, #b8c2d0) !important;
}

/* Light mode readability */
body.light .card,
body.light .auth-card,
body.light .seat-modal-box {
    background:
        linear-gradient(180deg, rgba(11, 41, 71, .025), transparent),
        var(--card) !important;
    border-color: rgba(11, 41, 71, 0.12) !important;
}

body.light .card::before {
    background: linear-gradient(135deg, rgba(198, 161, 74, .065), transparent 42%) !important;
}

body.light .btn-outline {
    background: #ffffff !important;
    color: #0b2947 !important;
    border-color: rgba(11, 41, 71, 0.15) !important;
}

body.light .btn-outline:hover {
    color: var(--gold-dark) !important;
    border-color: rgba(198, 161, 74, 0.45) !important;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
    background: rgba(6, 22, 38, 0.96) !important;
    border-color: rgba(198, 161, 74, 0.22) !important;
}

body.light .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.96) !important;
}

/* Better elegant title color */
.section-title,
.card-title,
.ticket-title {
    color: var(--text) !important;
}

.kicker,
.hero-badge {
    background: rgba(198,161,74,.14) !important;
    border-color: rgba(198,161,74,.34) !important;
    color: var(--gold) !important;
} 





/* =========================================================
   Retrieve Forms Fix — Tickets / Store Orders
   Fix input width and +965 direction
========================================================= */

.retrieve-form {
    margin-top: 22px;
}

.retrieve-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
    align-items: end;
    width: 100%;
}

.retrieve-form .form-group {
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(198,161,74,.18);
    border-radius: 18px;
    padding: 16px;
}

.retrieve-form label {
    display: block;
    color: var(--gold);
    font-weight: 900;
    margin-bottom: 10px;
}

.retrieve-form input {
    width: 100%;
    height: 52px;
    background: rgba(6,22,38,.92);
    border: 1px solid rgba(255,255,255,.14);
    color: #ffffff;
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
    direction: ltr;
    text-align: left;
}

.retrieve-form input::placeholder {
    color: rgba(255,255,255,.45);
}

.retrieve-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(198,161,74,.14);
}

.phone-field {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    direction: ltr;
}

.phone-code {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198,161,74,.13);
    border: 1px solid rgba(198,161,74,.35);
    color: var(--gold);
    border-radius: 14px;
    font-weight: 900;
    direction: ltr;
    flex-shrink: 0;
}

.retrieve-submit {
    margin-top: 20px;
    min-width: 180px;
    height: 52px;
    font-weight: 900;
}

body.light .retrieve-form input {
    background: #ffffff;
    color: #061626;
    border-color: rgba(11, 41, 71, 0.14);
}

body.light .retrieve-form input::placeholder {
    color: rgba(6, 22, 38, .45);
}

@media (max-width: 800px) {
    .retrieve-grid {
        grid-template-columns: 1fr;
    }

    .phone-field {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .retrieve-submit {
        width: 100%;
    }
}


/* Mobile commercial button order fix */
@media (max-width: 768px) {
    .commercial-card,
    .commercial-slide,
    .commercial-content,
    .commercial-body {
        display: flex;
        flex-direction: column;
    }

    .commercial-media,
    .commercial-image,
    .commercial-video,
    .commercial-card img,
    .commercial-slide img {
        order: 2;
    }

    .commercial-actions,
    .commercial-button,
    .commercial-btn,
    .commercial-card .btn,
    .commercial-slide .btn {
        order: 3;
        margin-top: 16px;
        width: 100%;
    }
} 

/* Add bottom space inside mobile sidebar */
@media (max-width: 900px) {
    .side-nav {
        padding-bottom: 120px !important;
    }

    .nav-controls {
        margin-bottom: 40px;
    }
}

/* Fixed mobile top navbar */
@media (max-width: 900px) {
    .top-mobile-bar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        width: 100%;
        background: rgba(6, 22, 38, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(198, 161, 74, 0.18);
    }

    .site-shell {
        padding-top: 50px;
    }

    .main-area {
        padding-top: 0 !important;
    }
}


/* Hide mobile bottom navigation in admin area */
@media (max-width: 900px) {
    body.admin-mobile .bottom-nav,
    body.admin-mobile .mobile-bottom-nav,
    body.admin-mobile .admin-bottom-nav,
    body.admin-mobile .bottom-mobile-nav,
    body.admin-mobile .mobile-tab-bar {
        display: none !important;
    }

    body.admin-mobile .main-area,
    body.admin-mobile .page-container {
        padding-bottom: 24px !important;
    }
} 