/* ═══════════════════════════════════════════════════════════
   منيو مطعم أبو الكرم — الثيم الداكن الفاخر (أسود + ذهبي)
   ═══════════════════════════════════════════════════════════ */

:root {
    --brand-black: #0b0907;
    --brand-dark: #17120d;
    --brand-gold: #e9b64c;
    --brand-gold-dark: #c08a28;
    --brand-gold-light: #f6d88b;
    --background: #0b0907;
    --foreground: #f3ecdc;
    --card: #15110c;
    --secondary: #231c13;
    --muted: #1e1811;
    --muted-fg: #a79b85;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.06);
    --green: #34d399;
    --red: #f87171;
    --radius: 14px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(233, 182, 76, 0.05), transparent 60%),
        var(--background);
    color: var(--foreground);
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; }
a { color: inherit; text-decoration: none; }

/* ─── أدوات مساعدة ─── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.gold { color: var(--brand-gold); }
.dim { color: var(--muted-fg); }
.semibold { font-weight: 700; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.nice-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.nice-scrollbar::-webkit-scrollbar-track { background: transparent; }
.nice-scrollbar::-webkit-scrollbar-thumb { background: rgba(233, 182, 76, 0.25); border-radius: 8px; }
.nice-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(233, 182, 76, 0.4); }

.ic { width: 18px; height: 18px; flex-shrink: 0; }
.ic.lg { width: 22px; height: 22px; }
.ic.xs { width: 12px; height: 12px; }
.ic.big { width: 40px; height: 40px; }
.ic.gold { color: var(--brand-gold); }

.t-gold {
    background: linear-gradient(100deg, var(--brand-gold-light), var(--brand-gold) 55%, var(--brand-gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gold-glow { box-shadow: 0 2px 20px rgba(233, 182, 76, 0.35); }

.fade-up { animation: fadeUp 0.45s ease-out both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ═══════════ قسم البطل ═══════════ */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.45);
}
.hero-shade::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, var(--brand-black), rgba(11,9,7,0.6) 40%, var(--brand-black));
}
.hero-inner {
    position: relative;
    max-width: 576px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    padding: 34px 24px 48px; text-align: center;
}
.hero-logo {
    width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
    filter: drop-shadow(0 0 35px rgba(233, 182, 76, 0.35));
}
@media (min-width: 640px) { .hero-logo { width: 128px; height: 128px; } .hero-inner { padding-top: 44px; } }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 999px; padding: 7px 16px;
    font-size: 12px; font-weight: 800;
    backdrop-filter: blur(6px);
}
@media (min-width: 640px) { .status-badge { font-size: 13px; } }
.status-badge.is-open { border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(6, 58, 40, 0.5); color: #6ee7b7; }
.status-badge.is-closed { border: 1px solid rgba(248, 113, 113, 0.35); background: rgba(69, 10, 10, 0.4); color: var(--brand-gold-light); }
.dot-wrap { position: relative; display: flex; width: 8px; height: 8px; }
.status-badge .dot { position: relative; display: inline-flex; width: 8px; height: 8px; border-radius: 50%; }
.status-badge.is-open .dot { background: #34d399; }
.status-badge.is-open .dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: #34d399; opacity: 0.75; animation: ping 1.2s cubic-bezier(0,0,0.2,1) infinite;
}
.status-badge.is-closed .dot { background: var(--red); }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.hero-kicker {
    display: flex; align-items: center; gap: 8px;
    color: var(--brand-gold); font-size: 14px; font-weight: 800;
}
.kdot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); }

.hero-title { font-size: 38px; font-weight: 900; line-height: 1.25; }
@media (min-width: 640px) { .hero-title { font-size: 46px; } }
.hero-title .t-white { color: #fff; }
.hero-title .t-gold { font-size: inherit; }

.hero-desc { max-width: 448px; color: rgba(255,255,255,0.7); font-size: 14px; }
@media (min-width: 640px) { .hero-desc { font-size: 15px; } }

.btn-gold {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand-gold); color: var(--brand-black);
    border-radius: 12px; padding: 12px 26px;
    font-size: 15px; font-weight: 900;
    transition: all 0.15s;
}
.btn-gold:hover { background: var(--brand-gold-light); }
.btn-gold:active { transform: scale(0.96); }
.btn-gold.btn-lg { min-height: 48px; }

.hero-feats {
    margin-top: 10px; display: flex; align-items: center; gap: 20px;
    color: rgba(255,255,255,0.75); font-size: 12px; font-weight: 700;
}
@media (min-width: 640px) { .hero-feats { font-size: 13px; } }
.hero-feats span:not(.vline) { display: flex; align-items: center; gap: 6px; }
.hero-feats .ic { color: var(--brand-gold); }
.hero-feats .vline { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }

/* ═══════════ تنبيه الإغلاق ═══════════ */
.closed-alert {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 16px; text-align: center;
    border-top: 1px solid rgba(248,113,113,0.25); border-bottom: 1px solid rgba(248,113,113,0.25);
    background: rgba(69,10,10,0.3);
    color: #fca5a5; font-size: 14px; font-weight: 800;
}
.closed-alert .ic { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══════════ المنيو ═══════════ */
.menu-wrap { max-width: 576px; width: 100%; margin: 0 auto; flex: 1; padding: 26px 12px 170px; }

.menu-title { font-size: 25px; font-weight: 900; margin: 0 4px 14px; }
@media (min-width: 640px) { .menu-title { font-size: 29px; } }
.menu-title .gold { color: var(--brand-gold); }

.cat-tabs {
    position: sticky; top: 0; z-index: 30;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(11, 9, 7, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    margin: 0 -12px;
}
.cat-tabs-scroll { display: flex; gap: 4px; overflow-x: auto; padding: 0 8px; }
.cat-tab {
    position: relative; flex-shrink: 0;
    display: flex; align-items: center; gap: 6px;
    padding: 13px 14px; font-size: 14px; font-weight: 700;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s, transform 0.1s;
}
.cat-tab:hover { color: rgba(255,255,255,0.9); }
.cat-tab:active { transform: scale(0.95); }
.cat-tab.active { color: var(--brand-gold); }
.cat-tab.active::after {
    content: ''; position: absolute; right: 10px; left: 10px; bottom: 0;
    height: 3px; border-radius: 6px 6px 0 0; background: var(--brand-gold);
}
.cat-ic { font-size: 17px; line-height: 1; }

.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.cat-heading { font-size: 18px; font-weight: 800; padding: 0 4px; display: flex; align-items: center; gap: 8px; }
@media (min-width: 640px) { .cat-heading { font-size: 20px; } }
.count-chip {
    font-size: 11px; font-weight: 800;
    border: 1px solid var(--border); background: var(--card);
    color: var(--muted-fg);
    padding: 3px 9px; border-radius: 8px;
}
.count-chip.gold-chip { border-color: rgba(233,182,76,0.3); background: rgba(233,182,76,0.1); color: var(--brand-gold); }

.search-box { position: relative; width: 176px; flex-shrink: 0; }
@media (min-width: 640px) { .search-box { width: 240px; } }
.search-box .ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-fg); width: 16px; height: 16px; }
.search-box input {
    width: 100%; height: 40px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--card); color: var(--foreground);
    padding: 0 36px 0 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box input::placeholder { color: rgba(167,155,133,0.7); }
.search-box input:focus { outline: none; border-color: rgba(233,182,76,0.5); box-shadow: 0 0 0 3px rgba(233,182,76,0.12); }

/* ─── بطاقات الوجبات ─── */
.cards { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

.meal-card {
    display: flex; overflow: hidden;
    border: 1px solid var(--border-soft); border-radius: 18px;
    background: var(--card);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: border-color 0.2s;
    animation: cardIn 0.25s ease-out both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.meal-card:hover { border-color: rgba(233,182,76,0.25); }

.meal-media {
    position: relative; flex-shrink: 0;
    width: 38%; max-width: 172px; min-height: 148px;
}
.meal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meal-media::after {
    content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(233,182,76,0.3), transparent);
}
.meal-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; background: var(--muted); }

.meal-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 14px; }
.meal-titlerow { display: flex; align-items: center; gap: 8px; }
.meal-name { font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .meal-name { font-size: 17px; } }

.feat-badge {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid rgba(233,182,76,0.4); background: rgba(233,182,76,0.1);
    color: var(--brand-gold);
    font-size: 11px; font-weight: 800;
    padding: 2px 8px; border-radius: 7px;
}
.feat-badge .ic.xs { fill: var(--brand-gold); }

.meal-desc {
    margin-top: 4px;
    color: var(--muted-fg); font-size: 12px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (min-width: 640px) { .meal-desc { font-size: 13px; } }

.meal-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.meal-price { color: var(--brand-gold); font-size: 20px; font-weight: 900; white-space: nowrap; }
@media (min-width: 640px) { .meal-price { font-size: 23px; } }
.meal-price small { margin-right: 4px; font-size: 11px; font-weight: 700; color: var(--muted-fg); }

.add-btn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px;
    border: 1px solid rgba(233,182,76,0.4);
    background: rgba(233,182,76,0.07);
    color: var(--brand-gold);
    border-radius: 12px; padding: 8px 14px;
    font-size: 12px; font-weight: 800;
    transition: all 0.15s;
}
@media (min-width: 640px) { .add-btn { font-size: 13px; } }
.add-btn:hover { background: var(--brand-gold); color: var(--brand-black); }
.add-btn:active { transform: scale(0.95); }
.add-btn:disabled { cursor: not-allowed; border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: var(--muted-fg); }

/* حالات الفراغ */
.empty-cat, .search-empty {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 56px 16px; text-align: center; color: var(--muted-fg);
    font-size: 14px;
}
.search-empty { padding-top: 30px; }
.search-empty .ic.big { color: rgba(233,182,76,0.6); }
.big-emoji { font-size: 36px; }
.search-empty p:first-of-type { color: var(--foreground); }
.search-empty .dim { font-size: 12px; }

/* ═══════════ شريط السلة العائم ═══════════ */
.cart-fab {
    position: fixed; left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 40; margin: 0 auto; max-width: 548px;
    display: flex; align-items: center; gap: 10px;
    min-height: 56px; padding: 0 16px;
    border-radius: 18px;
    background: var(--brand-gold); color: var(--brand-black);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 2px 20px rgba(233,182,76,0.35);
    transition: transform 0.1s;
}
.cart-fab:active { transform: scale(0.98); }
.fab-label { font-size: 16px; font-weight: 900; }
.fab-count {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--brand-black); color: var(--brand-gold);
    font-size: 12px; font-weight: 900;
}
.fab-total { margin-right: auto; font-size: 18px; font-weight: 900; }
.fab-total small { font-size: 12px; font-weight: 700; opacity: 0.8; }

/* ═══════════ الشريط السفلي ═══════════ */
.sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    border-top: 1px solid rgba(233,182,76,0.15);
    background: rgba(11, 9, 7, 0.97);
    backdrop-filter: blur(10px);
    padding-bottom: env(safe-area-inset-bottom);
}
.sticky-inner { max-width: 576px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sticky-bar .call-btn { flex: 1; min-height: 48px; }
.soc-btn {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex-shrink: 0;
    border: 1px solid rgba(233,182,76,0.3); border-radius: 12px;
    color: var(--brand-gold);
    transition: all 0.15s;
}
.soc-btn:hover { border-color: var(--brand-gold); background: rgba(233,182,76,0.1); }
.soc-btn:active { transform: scale(0.95); }

/* ═══════════ الفوتر ═══════════ */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-soft);
    background: var(--brand-black);
    padding: 20px 0 108px;
}
.footer-row {
    max-width: 576px; margin: 0 auto; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 800;
}
.footer-no { color: rgba(255,255,255,0.35); }
.footer-credit {
    max-width: 576px; margin: 12px auto 0; padding: 0 16px;
    text-align: center; color: rgba(255,255,255,0.5);
    font-size: 11px; line-height: 1.8;
}
@media (min-width: 640px) { .footer-credit { font-size: 12px; } }
.footer-credit .gold { font-weight: 800; color: rgba(233,182,76,0.9); }
.footer-credit a { font-weight: 800; color: rgba(255,255,255,0.8); text-decoration: underline; text-decoration-color: rgba(233,182,76,0.6); text-underline-offset: 4px; }
.footer-credit a:hover { color: var(--brand-gold); }
.admin-dot {
    display: block; width: 32px; margin: 8px auto 0; text-align: center;
    font-size: 19px; color: rgba(255,255,255,0.15);
    transition: color 0.15s;
}
.admin-dot:hover { color: rgba(233,182,76,0.6); }

/* ═══════════ درج السلة ═══════════ */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cart-drawer {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    margin: 0 auto; max-width: 576px;
    max-height: 92vh; max-height: 92dvh;
    display: flex; flex-direction: column;
    background: var(--brand-dark);
    border: 1px solid rgba(233,182,76,0.15); border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(0,0,0,0.6);
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom);
}
.cart-drawer.open { transform: translateY(0); }
.drawer-grip { width: 44px; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.2); margin: 10px auto 0; }

.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 18px 8px; }
.drawer-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.drawer-sub { color: var(--muted-fg); font-size: 12px; margin-top: 2px; }
.drawer-close {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.06); color: var(--muted-fg);
    font-size: 15px;
}
.drawer-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.drawer-items { overflow-y: auto; padding: 6px 18px; max-height: 46vh; max-height: 46dvh; }
.drawer-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 0; text-align: center; color: var(--muted-fg); }
.drawer-empty .big-emoji { font-size: 38px; }
.drawer-empty p:first-of-type { color: var(--foreground); font-weight: 700; font-size: 14px; }
.drawer-empty p:last-child { font-size: 12px; }

.ci { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--card); border-radius: 12px; padding: 8px; margin-bottom: 8px; }
.ci-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--muted); }
.ci-noimg { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-price { font-size: 12px; font-weight: 700; color: var(--brand-gold); }
.ci-qty { display: flex; align-items: center; gap: 4px; }
.qbtn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--secondary); color: var(--foreground);
    transition: transform 0.1s;
}
.qbtn:active { transform: scale(0.88); }
.qbtn.del { background: rgba(248,113,113,0.12); color: var(--red); margin-right: 4px; }
.ci-q { width: 24px; text-align: center; font-size: 14px; font-weight: 900; }

.drawer-form { padding: 0 18px 18px; border-top: 1px solid var(--border); }
.form-label { font-size: 14px; font-weight: 800; margin: 14px 0 8px; }
.order-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.otype {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 8px 12px;
    border: 2px solid var(--border); border-radius: 12px;
    background: var(--card); color: var(--muted-fg);
    font-size: 13.5px; font-weight: 700;
    transition: all 0.15s;
}
.otype:active { transform: scale(0.98); }
.otype.active { border-color: var(--brand-gold); background: rgba(233,182,76,0.1); color: var(--foreground); box-shadow: 0 0 0 3px rgba(233,182,76,0.08); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; margin-top: 12px; }
.field .req { color: var(--red); }
.field .opt { color: var(--muted-fg); font-weight: 400; }
.field input, .field textarea {
    border: 1px solid var(--border); border-radius: 10px;
    background: rgba(0,0,0,0.3); color: var(--foreground);
    padding: 10px 12px; font-size: 14px; resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(233,182,76,0.5); box-shadow: 0 0 0 3px rgba(233,182,76,0.1); }

.drawer-totalrow {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; font-weight: 800; margin: 14px 0 10px;
}
.total-val { font-size: 18px; }

.wa-send {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 48px;
    background: #25D366; color: #fff;
    border-radius: 12px; font-size: 15px; font-weight: 800;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
    transition: filter 0.15s, transform 0.1s;
}
.wa-send:hover { filter: brightness(1.06); }
.wa-send:active { transform: scale(0.98); }
.wa-send:disabled { cursor: not-allowed; background: var(--muted); color: var(--muted-fg); box-shadow: none; }
.closed-note { margin-top: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--red); }

/* ═══════════ Toasts ═══════════ */
.toasts { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
    pointer-events: auto;
    max-width: 480px; width: 100%;
    display: flex; align-items: center; gap: 10px;
    background: var(--brand-dark); color: var(--foreground);
    border: 1px solid rgba(233,182,76,0.3);
    border-radius: 14px; padding: 12px 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    font-size: 13.5px; font-weight: 700;
    animation: toastIn 0.25s ease-out;
}
.toast.out { animation: toastOut 0.25s ease-in forwards; }
.toast .t-ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.toast.success .t-ic { background: rgba(52,211,153,0.15); color: var(--green); }
.toast.error { border-color: rgba(248,113,113,0.35); }
.toast.error .t-ic { background: rgba(248,113,113,0.15); color: var(--red); }
.toast small { display: block; color: var(--muted-fg); font-weight: 400; font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ═══════════ لوحة التحكم ═══════════ */
.admin-body { background: radial-gradient(900px 400px at 80% -10%, rgba(233,182,76,0.06), transparent 60%), var(--background); }

.login-wrap { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; overflow: hidden; }
.login-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.16; pointer-events: none; }
.login-glow.g1 { width: 420px; height: 420px; background: var(--brand-gold); top: -140px; left: -120px; }
.login-glow.g2 { width: 360px; height: 360px; background: var(--brand-gold-dark); bottom: -120px; right: -100px; }
.login-card {
    position: relative; width: 100%; max-width: 400px;
    background: linear-gradient(170deg, var(--brand-dark), #100c08);
    border: 1px solid rgba(233,182,76,0.35); border-radius: 22px;
    padding: 34px 28px; text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.login-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--brand-gold); box-shadow: 0 0 30px rgba(233,182,76,0.3); }
.login-title { font-size: 21px; font-weight: 900; }
.login-sub { color: var(--muted-fg); font-size: 13px; margin: 4px 0 22px; }
.login-card .field { text-align: right; margin-top: 0; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-fg); padding: 4px; }
.pw-toggle:hover { color: var(--brand-gold); }
.login-err {
    display: none; align-items: center; gap: 8px;
    margin-bottom: 12px; padding: 10px 12px;
    border: 1px solid rgba(248,113,113,0.35); background: rgba(69,10,10,0.35);
    color: #fca5a5; border-radius: 10px; font-size: 13px; font-weight: 700;
}
.login-err.show { display: flex; }
.btn-block { width: 100%; min-height: 48px; margin-top: 16px; }
.login-hint { margin-top: 16px; font-size: 11px; color: rgba(255,255,255,0.35); }

.admin-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(11,9,7,0.97); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(233,182,76,0.15);
}
.admin-header-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.admin-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-gold); }
.admin-title { font-size: 17px; font-weight: 900; }
.admin-title small { display: block; font-size: 11px; color: var(--brand-gold); font-weight: 700; }
.btn-logout {
    margin-right: auto; display: flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 0 14px;
    border: 1px solid rgba(248,113,113,0.35); border-radius: 10px;
    color: var(--red); font-size: 13px; font-weight: 800;
    transition: all 0.15s;
}
.btn-logout:hover { background: rgba(248,113,113,0.1); }

.admin-main { max-width: 720px; margin: 0 auto; padding: 18px 16px 60px; }

.admin-tabs { display: flex; gap: 6px; background: var(--brand-dark); border: 1px solid var(--border); border-radius: 14px; padding: 5px; margin-bottom: 18px; }
.atab { flex: 1; min-height: 42px; border-radius: 10px; font-size: 14px; font-weight: 800; color: var(--muted-fg); transition: all 0.15s; }
.atab:hover { color: var(--foreground); }
.atab.active { background: var(--brand-gold); color: var(--brand-black); }

.flash { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; animation: toastIn 0.25s ease-out; }
.flash.success { border: 1px solid rgba(52,211,153,0.35); background: rgba(6,58,40,0.4); color: #6ee7b7; }
.flash.error { border: 1px solid rgba(248,113,113,0.4); background: rgba(69,10,10,0.4); color: #fca5a5; }

.acard { border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.acard-title { font-size: 15px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

.status-card { background: linear-gradient(170deg, var(--brand-dark), #100c08); border: 1px solid rgba(233,182,76,0.25); }
.status-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 900; }
.status-pill.on { background: #16a34a; color: #fff; border: 1px solid #4ade80; }
.status-pill.off { background: #b91c1c; color: #fff; border: 1px solid var(--red); }
.status-meta { font-size: 12px; color: var(--muted-fg); font-weight: 700; }
.status-meta b { color: var(--brand-gold); }

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 560px) { .mode-grid { grid-template-columns: 1fr; } }
.mode-opt {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    min-height: 64px; justify-content: center;
    border: 2px solid var(--border); border-radius: 12px;
    background: var(--brand-dark); padding: 10px;
    font-size: 13px; font-weight: 800; color: var(--muted-fg);
    cursor: pointer; transition: all 0.15s;
}
.mode-opt small { font-size: 10.5px; font-weight: 400; color: var(--muted-fg); }
.mode-opt:has(input:checked) { border-color: var(--brand-gold); background: rgba(233,182,76,0.08); color: var(--foreground); box-shadow: 0 0 0 3px rgba(233,182,76,0.08); }
.mode-opt:has(input[value="closed"]:checked) { border-color: var(--red); background: rgba(248,113,113,0.06); color: #fca5a5; }
.mode-opt input { position: absolute; opacity: 0; pointer-events: none; }

.field label { display: block; }
.afield { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; }
.afield .hint { font-size: 11px; color: var(--muted-fg); font-weight: 400; }
.afield input, .afield textarea, .afield select {
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--brand-dark); color: var(--foreground);
    padding: 11px 12px; font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.afield input:focus, .afield textarea:focus, .afield select:focus { outline: none; border-color: rgba(233,182,76,0.5); box-shadow: 0 0 0 3px rgba(233,182,76,0.1); }
.afield input[type="time"] { direction: ltr; text-align: center; }
.afield input[dir="ltr"] { direction: ltr; text-align: right; }
.afield textarea { resize: vertical; }

.btn-gold.sm { min-height: 42px; padding: 8px 18px; font-size: 13.5px; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 8px 16px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--brand-dark); color: var(--muted-fg);
    font-size: 13px; font-weight: 700;
    transition: all 0.15s;
}
.btn-ghost:hover { color: var(--foreground); border-color: rgba(255,255,255,0.2); }
.btn-danger {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 8px 16px;
    border: 1px solid rgba(248,113,113,0.35); border-radius: 10px;
    background: transparent; color: var(--red);
    font-size: 13px; font-weight: 700;
    transition: all 0.15s;
}
.btn-danger:hover { background: rgba(248,113,113,0.1); }

.items-toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.items-toolbar .search-box { flex: 1; min-width: 150px; width: auto; }
.items-toolbar select {
    height: 40px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--card); color: var(--foreground); font-size: 13.5px;
}
.items-list { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; padding-left: 2px; }

.aitem { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--brand-dark); border-radius: 14px; padding: 10px; }
.aitem-img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--muted); }
.aitem-noimg { width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.aitem-info { flex: 1; min-width: 0; }
.aitem-name { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aitem-cat { font-size: 10.5px; font-weight: 700; color: var(--brand-gold); border: 1px solid rgba(233,182,76,0.3); background: rgba(233,182,76,0.08); padding: 2px 8px; border-radius: 6px; }
.aitem-price { font-size: 12px; color: var(--brand-gold); font-weight: 800; margin-top: 2px; }
.aitem-actions { display: flex; align-items: center; gap: 6px; }
.star { color: var(--brand-gold); width: 16px; height: 16px; }

.switch { position: relative; display: inline-flex; width: 44px; height: 26px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--secondary); border: 1px solid var(--border); transition: background 0.15s; }
.switch .track::after { content: ''; position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted-fg); transition: transform 0.15s, background 0.15s; }
.switch input:checked + .track { background: rgba(233,182,76,0.25); border-color: var(--brand-gold); }
.switch input:checked + .track::after { transform: translateX(-18px); background: var(--brand-gold); }

.icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted-fg); transition: all 0.15s; }
.icon-btn:hover { color: var(--brand-gold); border-color: rgba(233,182,76,0.4); }
.icon-btn.del:hover { color: var(--red); border-color: rgba(248,113,113,0.4); }

.upload-box { border: 2px dashed rgba(233,182,76,0.35); border-radius: 14px; padding: 18px; text-align: center; cursor: pointer; transition: all 0.15s; background: rgba(233,182,76,0.03); }
.upload-box:hover { border-color: var(--brand-gold); background: rgba(233,182,76,0.06); }
.upload-preview { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; margin: 0 auto 10px; border: 2px solid rgba(233,182,76,0.4); }
.upload-hint { font-size: 12px; color: var(--muted-fg); }

.cats-list { display: flex; flex-direction: column; gap: 10px; }
.acat { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); background: var(--brand-dark); border-radius: 14px; padding: 12px; }
.cat-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.acat form { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.acat input {
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); color: var(--foreground);
    font-size: 14px; font-weight: 700;
    padding: 10px 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.acat input:focus { outline: none; border-color: rgba(233,182,76,0.5); box-shadow: 0 0 0 3px rgba(233,182,76,0.1); }
.acat input.ic-in { width: 64px; text-align: center; font-size: 18px; padding: 8px 4px; }
.acat input.nm-in { flex: 1; min-width: 0; }
.cat-count { font-size: 11px; font-weight: 800; color: var(--muted-fg); border: 1px solid var(--border); border-radius: 7px; padding: 3px 9px; background: var(--card); white-space: nowrap; }

.dialog-confirm { border: 1px solid rgba(248,113,113,0.35); border-radius: 16px; background: var(--brand-dark); color: var(--foreground); padding: 0; max-width: 340px; width: 100%; }
.dialog-confirm::backdrop { background: rgba(0,0,0,0.65); backdrop-filter: blur(3px); }
.dialog-confirm .dc-body { padding: 22px; text-align: center; }
.dialog-confirm h4 { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.dialog-confirm p { font-size: 13px; color: var(--muted-fg); }
.dialog-confirm .dc-actions { display: flex; gap: 8px; padding: 14px 22px 22px; }
.dialog-confirm .dc-actions button { flex: 1; min-height: 44px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.dc-cancel { background: var(--secondary); color: var(--foreground); }
.dc-ok { background: #b91c1c; color: #fff; }

.empty-note { text-align: center; color: var(--muted-fg); font-size: 13px; padding: 26px 0; }

.admin-footer { position: fixed; left: 0; right: 0; bottom: 0; background: var(--brand-black); border-top: 1px solid var(--border); text-align: center; font-size: 11px; color: rgba(255,255,255,0.4); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.admin-footer b { color: rgba(233,182,76,0.8); }

/* ─── حركات الحفظ ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════════════════════
   خطوات الطلب + طرق الدفع + الإيصال (واجهة الزبون)
   ═══════════════════════════════════════════════════════════ */

/* شريط الخطوات */
.steps-bar { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; }
.step-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 800; color: var(--muted-fg);
    border: 1px solid var(--border); border-radius: 999px;
    padding: 5px 12px; background: var(--card);
    transition: all 0.2s;
}
.step-pill b {
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--secondary); font-size: 10.5px;
}
.step-pill.active { color: var(--brand-gold); border-color: rgba(233,182,76,0.45); background: rgba(233,182,76,0.07); }
.step-pill.active b { background: var(--brand-gold); color: #1a1206; }
.step-pill.done { color: var(--green); border-color: rgba(52,211,153,0.4); }
.step-pill.done b { background: var(--green); color: #06281c; }
.step-line { flex: 1; height: 1px; background: var(--border); }

/* زر متابعة إلى الدفع + رابط رجوع */
.btn-continue {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 48px;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-dark));
    color: #1a1206; border-radius: 12px;
    font-size: 15px; font-weight: 900;
    box-shadow: 0 8px 24px rgba(233, 182, 76, 0.22);
    transition: filter 0.15s, transform 0.1s;
}
.btn-continue:hover { filter: brightness(1.06); }
.btn-continue:active { transform: scale(0.98); }
.btn-continue:disabled { cursor: not-allowed; background: var(--muted); color: var(--muted-fg); box-shadow: none; }

.back-link {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 12px; font-size: 12.5px; font-weight: 800;
    color: var(--muted-fg); transition: color 0.15s;
}
.back-link:hover { color: var(--brand-gold); }

/* طرق الدفع */
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pmeth {
    display: flex; align-items: center; gap: 12px;
    border: 2px solid var(--border); border-radius: 14px;
    background: var(--card); padding: 12px 14px;
    text-align: right; color: var(--foreground);
    transition: all 0.15s; min-height: 56px;
}
.pmeth:active { transform: scale(0.985); }
.pmeth.active { border-color: var(--brand-gold); background: rgba(233,182,76,0.08); box-shadow: 0 0 0 3px rgba(233,182,76,0.08); }
.pmeth-ic { font-size: 22px; flex-shrink: 0; }
.pmeth-txt { flex: 1; font-size: 14px; font-weight: 800; display: flex; flex-direction: column; gap: 1px; }
.pmeth-txt small { color: var(--muted-fg); font-size: 11.5px; font-weight: 600; }
.pmeth-check {
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid var(--border); transition: all 0.15s;
}
.pmeth.active .pmeth-check { border-color: var(--brand-gold); background: var(--brand-gold); box-shadow: inset 0 0 0 3px var(--brand-dark); }

/* لوحة تفاصيل طريقة الدفع */
.pay-panel {
    margin-top: 10px; border: 1px solid var(--border-soft);
    border-radius: 14px; background: rgba(0,0,0,0.22); padding: 14px;
}
.pay-amount-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13.5px; font-weight: 800;
    border-bottom: 1px dashed var(--border); padding-bottom: 10px; margin-bottom: 10px;
}
.pay-amount-row b { font-size: 19px; }
.pay-steps { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pay-steps li { font-size: 12.5px; color: var(--muted-fg); font-weight: 600; display: flex; gap: 7px; }
.pay-steps li::before { content: '•'; color: var(--brand-gold); font-weight: 900; }

/* صندوق التحذير */
.warn-box {
    margin-top: 10px; padding: 10px 12px;
    border: 1px solid rgba(248,113,113,0.4); border-radius: 12px;
    background: rgba(127,29,29,0.22);
    color: #fecaca; font-size: 12px; font-weight: 700; line-height: 1.7;
}

/* صندوق QR شام كاش */
.qr-box {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px;
}
.qr-box img { width: 190px; height: 190px; object-fit: contain; border-radius: 8px; }
.qr-cap { color: #5b4a2a; font-size: 11.5px; font-weight: 800; text-align: center; }
.sham-account {
    border: 1px dashed rgba(233,182,76,0.35); border-radius: 10px;
    padding: 8px 12px; margin-bottom: 10px;
    font-size: 12.5px; color: var(--muted-fg); font-weight: 700;
    display: flex; flex-direction: column; gap: 3px;
}
.sham-account b { color: var(--foreground); }

/* رفع إيصال الدفع */
.receipt-upload {
    position: relative; margin-top: 10px;
    border: 2px dashed rgba(233,182,76,0.4); border-radius: 14px;
    background: rgba(233,182,76,0.04);
    cursor: pointer; transition: all 0.15s;
    overflow: hidden;
}
.receipt-upload:hover { border-color: var(--brand-gold); background: rgba(233,182,76,0.07); }
.receipt-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 22px 14px; text-align: center;
}
.receipt-placeholder .rp-ic { font-size: 30px; }
.receipt-placeholder b { font-size: 13.5px; font-weight: 800; }
.receipt-placeholder small { font-size: 11px; color: var(--muted-fg); font-weight: 600; }
.receipt-preview { width: 100%; max-height: 260px; object-fit: contain; background: #000; }
.receipt-hint { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--green); text-align: center; }

/* رقم واتساب الوجهة */
.wa-target {
    margin-top: 9px; text-align: center;
    font-size: 11.5px; font-weight: 700; color: var(--muted-fg);
}

/* شاشة النجاح */
.done-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 8px 14px; text-align: center; }
.done-ic {
    width: 62px; height: 62px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(52,211,153,0.14); color: var(--green);
    font-size: 30px; font-weight: 900;
    border: 2px solid rgba(52,211,153,0.4);
    animation: popIn 0.3s ease-out;
}
@keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-box h4 { font-size: 17px; font-weight: 900; }
.done-ref { font-size: 13.5px; color: var(--muted-fg); font-weight: 700; }
.done-ref b { color: var(--brand-gold); font-size: 15px; letter-spacing: 1px; }
.done-sub { font-size: 12px; color: var(--muted-fg); font-weight: 600; }
.done-note {
    font-size: 11px; color: var(--muted-fg); font-weight: 600;
    border: 1px dashed var(--border); border-radius: 10px;
    padding: 8px 12px; line-height: 1.7;
}
.done-box .btn-ghost { min-height: 42px; padding: 0 22px; border: 1px solid var(--border); border-radius: 12px; display: inline-flex; align-items: center; font-weight: 800; font-size: 13px; }
.done-box .btn-ghost:hover { border-color: rgba(233,182,76,0.4); color: var(--brand-gold); }

/* مؤشر التحميل */
.spinner {
    width: 17px; height: 17px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
    animation: spin 0.7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════ إدارة الطلبات (لوحة التحكم) ═══════════ */
.atab .new-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); margin-right: 4px; vertical-align: middle;
    box-shadow: 0 0 8px rgba(248,113,113,0.8);
}

.obadge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10.5px; font-weight: 800;
    border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.obadge.st-awaiting_send   { background: rgba(233,182,76,0.12);  color: var(--brand-gold); border: 1px solid rgba(233,182,76,0.35); }
.obadge.st-pending_verification { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); }
.obadge.st-verified        { background: rgba(52,211,153,0.12);  color: var(--green); border: 1px solid rgba(52,211,153,0.4); }
.obadge.st-rejected        { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.4); }
.obadge.st-completed       { background: rgba(255,255,255,0.07); color: var(--foreground); border: 1px solid var(--border); }
.obadge.st-cancelled       { background: rgba(255,255,255,0.05); color: var(--muted-fg); border: 1px solid var(--border); }

.orders-list { display: flex; flex-direction: column; gap: 10px; }
.ord {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--brand-dark); padding: 13px 14px;
    transition: border-color 0.15s;
}
.ord:hover { border-color: rgba(233,182,76,0.35); }
.ord-ref { font-weight: 900; font-size: 13.5px; letter-spacing: 0.5px; color: var(--brand-gold); }
.ord-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: 11px; color: var(--muted-fg); font-weight: 700; margin-top: 3px; align-items: center; }
.ord-total { font-size: 14px; font-weight: 900; white-space: nowrap; }
.ord-actions { display: flex; align-items: center; gap: 8px; }

.ord-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.ord-kv { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.ord-kv span { color: var(--muted-fg); font-size: 11px; font-weight: 700; }
.ord-kv b { font-weight: 800; }

.oi-row {
    display: flex; align-items: center; gap: 10px;
    border: 1px solid var(--border-soft); border-radius: 10px;
    padding: 8px 10px; margin-bottom: 7px; background: var(--card);
}
.oi-name { flex: 1; font-size: 13px; font-weight: 700; }
.oi-qty { font-size: 12px; font-weight: 800; color: var(--muted-fg); }
.oi-sum { font-size: 13px; font-weight: 800; color: var(--brand-gold); }

.receipt-view { max-width: 320px; width: 100%; border-radius: 14px; border: 2px solid rgba(233,182,76,0.35); background: #fff; }
.receipt-empty {
    border: 2px dashed var(--border); border-radius: 14px;
    padding: 26px 14px; text-align: center; color: var(--muted-fg);
    font-size: 12.5px; font-weight: 700;
}

.status-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-actions button, .status-actions a.sab {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 42px; padding: 0 16px; border-radius: 10px;
    font-size: 13px; font-weight: 800; border: 1px solid var(--border);
    background: var(--card); color: var(--foreground);
    transition: all 0.15s;
}
.status-actions button:hover { border-color: rgba(233,182,76,0.5); }
.sab-verify { background: rgba(52,211,153,0.12) !important; color: var(--green) !important; border-color: rgba(52,211,153,0.4) !important; }
.sab-reject { background: rgba(248,113,113,0.1) !important; color: var(--red) !important; border-color: rgba(248,113,113,0.4) !important; }
.sab-done   { background: rgba(233,182,76,0.1) !important; color: var(--brand-gold) !important; border-color: rgba(233,182,76,0.4) !important; }

.pay-toggle-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 10px; background: var(--card);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.pay-toggle-row .pt-info { font-size: 13.5px; font-weight: 800; }
.pay-toggle-row .pt-info small { display: block; color: var(--muted-fg); font-weight: 500; font-size: 11.5px; margin-top: 2px; }

.acard-title .qr-status { font-size: 11px; font-weight: 800; margin-right: 8px; }
.qr-status.ok { color: var(--green); }
.qr-status.missing { color: var(--red); }

.admin-note {
    border: 1px dashed rgba(233,182,76,0.4); border-radius: 12px;
    background: rgba(233,182,76,0.05); color: var(--muted-fg);
    font-size: 11.5px; font-weight: 600; line-height: 1.8;
    padding: 10px 12px; margin-top: 10px;
}

@media (max-width: 480px) {
    .ord-detail-grid { grid-template-columns: 1fr; }
    .ord { flex-wrap: wrap; }
    .ord-actions { margin-right: auto; }
}
