/* ============================================================
   چادر ماشین‌ز — RTL, mobile-first design system
   ============================================================ */

:root {
    --primary: #0f2b46;
    --primary-2: #13395f;
    --accent: #f59e0b;
    --accent-2: #d97706;
    --cta: #16a34a;
    --cta-2: #15803d;
    --danger: #dc2626;
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 6px 24px rgba(15, 43, 70, .08);
    --shadow-lg: 0 12px 40px rgba(15, 43, 70, .14);
    --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    direction: rtl;
    padding-bottom: 72px; /* room for mobile bottom bar */
    font-size: 15px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.section { padding: 28px 0; }
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 22px;
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.3;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(15, 43, 70, .25); }
.btn-primary:hover { background: var(--primary-2); }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(22, 163, 74, .28); }
.btn-cta:hover { background: var(--cta-2); }
.btn-accent { background: var(--accent); color: #3a2500; box-shadow: 0 6px 18px rgba(245, 158, 11, .28); }
.btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); }
.btn-danger { background: #fef2f2; color: var(--danger); border: 1.5px solid #fecaca; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Badges / chips ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-sale { background: #fee2e2; color: #b91c1c; }
.badge-stock { background: #dcfce7; color: #15803d; }
.badge-out { background: #f1f5f9; color: #64748b; }
.badge-primary { background: #e0edfb; color: var(--primary-2); }

/* ---------- Cards ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin: 16px 0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ---------- Utility ---------- */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* ---------- Top notice bar ---------- */
.topbar {
    background: var(--primary);
    color: #eaf3ff;
    font-size: 12.5px;
    text-align: center;
    padding: 8px 12px;
    font-weight: 500;
}
.topbar .material-symbols-outlined { font-size: 16px; color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(15, 43, 70, .04);
}
.header-inner { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; color: var(--primary); }
.logo-mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff; display: grid; place-items: center; font-size: 24px;
}
.logo small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); }

.header-actions { margin-right: auto; display: flex; align-items: center; gap: 8px; }
.header-call {
    display: none;
    align-items: center; gap: 8px;
    background: #eef6ff; color: var(--primary-2);
    padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px;
}
.cart-btn {
    position: relative;
    width: 44px; height: 44px; border-radius: 12px;
    background: #f1f5f9; color: var(--primary);
    display: grid; place-items: center; border: none; font-size: 24px;
}
.cart-btn .cart-count {
    position: absolute; top: -6px; left: -6px;
    background: var(--danger); color: #fff;
    min-width: 20px; height: 20px; border-radius: 999px;
    display: grid; place-items: center; font-size: 11px; font-weight: 800;
    padding: 0 5px; border: 2px solid #fff;
}

/* ---------- Category nav (desktop) ---------- */
.cat-nav { background: #fff; border-top: 1px solid var(--border); overflow-x: auto; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav ul { display: flex; gap: 8px; padding: 10px 0; white-space: nowrap; }
.cat-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 999px;
    background: #f1f5f9; color: var(--text); font-size: 13.5px; font-weight: 600;
    transition: all .15s ease;
}
.cat-nav a.active, .cat-nav a:hover { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1000px 400px at 90% -50%, rgba(245,158,11,.18), transparent 60%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, #1b4d7c 100%);
    color: #fff;
    padding: 40px 0 46px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="1.6" fill="rgba(255,255,255,.12)"/></svg>');
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 27px; font-weight: 900; line-height: 1.5; margin-bottom: 10px; }
.hero h1 .hl { color: var(--accent); }
.hero p { font-size: 15px; color: #cfe0f2; max-width: 560px; margin-bottom: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px; padding: 12px 16px; min-width: 108px;
}
.hero-stat b { display: block; font-size: 18px; color: var(--accent); font-weight: 900; }
.hero-stat span { font-size: 12px; color: #cfe0f2; }

/* ---------- Trust badges ---------- */
.trust-strip {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 14px 0; margin-top: -1px;
}
.trust-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.trust-item {
    display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--text);
}
.trust-item .material-symbols-outlined { font-size: 22px; color: var(--cta); flex-shrink: 0; }

/* ---------- Car model selector (mobile chips) ---------- */
.model-selector { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.model-selector::-webkit-scrollbar { display: none; }
.model-selector a {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 15px; border-radius: 999px; background: #fff; color: var(--text);
    border: 1.5px solid var(--border); font-size: 13px; font-weight: 600;
}
.model-selector a.active { background: var(--accent); color: #3a2500; border-color: var(--accent); }
.model-selector a .material-symbols-outlined { font-size: 18px; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 4/3; background: #eef2f7; display: grid; place-items: center; overflow: hidden; }
.product-media .cover-emoji { font-size: 56px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.12)); }
.product-media .sale-ribbon {
    position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.product-body { padding: 12px; }
.product-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; min-height: 40px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.product-price { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price-current { font-size: 16px; font-weight: 900; color: var(--primary); }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price-unit { font-size: 11px; color: var(--muted); font-weight: 500; }
.add-btn {
    width: 40px; height: 40px; border-radius: 12px; border: none;
    background: var(--cta); color: #fff; font-size: 22px; display: grid; place-items: center;
    transition: transform .15s ease;
}
.add-btn:active { transform: scale(.9); }
.add-btn.added { background: var(--primary); }

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product-gallery { background: #fff; border-radius: var(--radius); padding: 30px; text-align: center; border: 1px solid var(--border); }
.product-gallery .cover-emoji { font-size: 130px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.14)); }
.product-info .pd-title { font-size: 22px; font-weight: 900; color: var(--text); line-height: 1.5; }
.pd-price-box { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.pd-price-box .price-current { font-size: 26px; }
.pd-price-box .price-old { font-size: 15px; }
.feature-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.feature-list li .material-symbols-outlined { color: var(--cta); font-size: 20px; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.qty-control button { width: 40px; height: 44px; border: none; background: #f8fafc; font-size: 20px; color: var(--primary); }
.qty-control span { width: 46px; text-align: center; font-weight: 800; font-size: 16px; }

/* ---------- Quick add floating bar (mobile, product page) ---------- */
.quick-add {
    position: fixed; bottom: 64px; left: 0; right: 0; z-index: 80;
    background: #fff; border-top: 1px solid var(--border);
    padding: 10px 16px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 -6px 20px rgba(15, 43, 70, .12);
    transform: translateY(120%); transition: transform .25s ease;
}
.quick-add.visible { transform: translateY(0); }
.quick-add .qa-price { display: flex; flex-direction: column; }
.quick-add .qa-price small { color: var(--muted); font-size: 11px; }
.quick-add .qa-price b { font-size: 17px; color: var(--primary); font-weight: 900; }
.quick-add .btn { flex: 1; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 18px; }
.cart-item { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-thumb {
    width: 78px; height: 78px; border-radius: 12px; background: #eef2f7;
    display: grid; place-items: center; font-size: 38px; flex-shrink: 0;
}
.cart-item .ci-body { flex: 1; }
.cart-item .ci-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cart-item .ci-price { font-size: 13px; color: var(--muted); }
.cart-item .ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.summary-card { padding: 18px; position: sticky; top: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { border-top: 1.5px dashed var(--border); margin-top: 8px; padding-top: 14px; font-weight: 900; font-size: 17px; color: var(--primary); }

/* ---------- Forms ---------- */
.form-card { padding: 22px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.form-label .req { color: var(--danger); }
.form-control {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: #fff; color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 43, 70, .1); }
.form-control::placeholder { color: #9aa8b8; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-error { border-color: var(--danger) !important; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 14px 0; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #cbd5e1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #cfe0f2; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 34px 0 20px; }
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.9; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.footer-col ul li { margin-bottom: 9px; font-size: 13px; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 13px; }
.footer-contact .material-symbols-outlined { font-size: 18px; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 12px; color: #8ba7c6; }
.footer-bottom a { color: var(--accent); }

/* ---------- Sticky bottom app bar (mobile) ---------- */
.bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #fff; border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 -4px 20px rgba(15, 43, 70, .1);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 4px 9px; font-size: 10.5px; font-weight: 700; color: var(--muted);
    position: relative; transition: color .15s ease;
}
.bottom-bar a.active { color: var(--primary); }
.bottom-bar a .material-symbols-outlined { font-size: 23px; }
.bottom-bar a.call-cta .material-symbols-outlined { color: var(--cta); }
.bottom-bar .bb-cart-count {
    position: absolute; top: 3px; right: calc(50% - 16px);
    background: var(--danger); color: #fff; min-width: 17px; height: 17px;
    border-radius: 999px; font-size: 10px; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- Off-canvas drawer ---------- */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 120;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; bottom: 0; right: 0; width: 84%; max-width: 330px;
    background: #fff; z-index: 130; transform: translateX(100%);
    transition: transform .28s ease; display: flex; flex-direction: column;
    box-shadow: -8px 0 30px rgba(15, 43, 70, .2);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 16px; font-weight: 800; }
.drawer-close { width: 38px; height: 38px; border-radius: 10px; border: none; background: #f1f5f9; font-size: 20px; color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px; }
.drawer-link {
    display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 12px;
    font-size: 14px; font-weight: 600; margin-bottom: 4px; transition: background .15s ease;
}
.drawer-link:hover, .drawer-link.active { background: #eef6ff; color: var(--primary); }
.drawer-link .material-symbols-outlined { font-size: 20px; color: var(--muted); }
.drawer-link.active .material-symbols-outlined { color: var(--primary); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease; box-shadow: var(--shadow-lg);
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Page head / empty state ---------- */
.page-head { background: #fff; border-bottom: 1px solid var(--border); padding: 22px 0 16px; }
.page-head h1 { font-size: 21px; font-weight: 900; color: var(--text); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .material-symbols-outlined { font-size: 64px; color: #cbd5e1; }

/* ============================================================
   Responsive (tablet & desktop)
   ============================================================ */
@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .form-row { grid-template-columns: 1fr 1fr; }
    .cart-layout { grid-template-columns: 1fr 340px; }
    .product-detail { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .bottom-bar { display: none; }
    .header-call { display: inline-flex; }
    .hero h1 { font-size: 36px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .trust-grid { grid-template-columns: repeat(5, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .feature-list { grid-template-columns: 1fr 1fr; }
    .section { padding: 40px 0; }
    .quick-add { display: none; }
}

/* ============================================================
   Admin dashboard
   ============================================================ */
.admin-body { background: #f1f5f9; padding-bottom: 0; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 250px; background: var(--primary); color: #cfe0f2;
    position: fixed; top: 0; bottom: 0; right: 0; z-index: 50;
    padding: 20px 0; display: flex; flex-direction: column;
}
.admin-sidebar .admin-logo { padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 900; font-size: 18px; }
.admin-nav { padding: 14px 12px; flex: 1; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px;
    color: #cfe0f2; font-size: 14px; font-weight: 600; margin-bottom: 3px; transition: background .15s ease;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav a .material-symbols-outlined { font-size: 20px; }
.admin-nav .logout { margin-top: 20px; color: #fca5a5; }
.admin-main { flex: 1; margin-right: 250px; padding: 26px 30px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-topbar h1 { font-size: 22px; font-weight: 900; color: var(--text); }
.admin-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; border: 1px solid var(--border); }
.admin-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 16px; color: var(--primary); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-card .stat-label { font-size: 13px; color: var(--muted); }
.stat-card .stat-value { font-size: 26px; font-weight: 900; color: var(--primary); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--border); }
.admin-table th { background: #f8fafc; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.admin-table tr:hover td { background: #fafbfd; }
.admin-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status-pill { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #dcfce7; color: #15803d; }
.status-failed { background: #fee2e2; color: #991b1b; }
.toggle {
    position: relative; display: inline-block; width: 48px; height: 26px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
    position: absolute; cursor: pointer; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s;
}
.toggle .slider:before {
    content: ''; position: absolute; height: 20px; width: 20px; right: 3px; bottom: 3px;
    background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .slider { background: var(--cta); }
.toggle input:checked + .slider:before { transform: translateX(-22px); }

/* Login page */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.login-box { background: #fff; border-radius: 20px; padding: 34px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }

@media (max-width: 900px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-right: 0; padding: 18px 16px; }
}





