:root {
    --color-ink: #0A0A0A;
    --color-brand: #10B981;
    --color-brand-lime: #A3E635;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --transition: 200ms ease-out;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { font-weight: 500; }

.pb-safe { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Buttons */
.btn-brand {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1rem 2rem; border-radius: var(--radius-xl);
    background: var(--color-brand-lime); color: var(--color-ink);
    font-weight: 700; font-size: .9375rem;
    transition: all var(--transition);
    box-shadow: 0 12px 40px -12px rgba(163,230,53,.35);
}
.btn-brand:hover { transform: scale(1.02); }
.btn-brand:active { transform: scale(0.98); }

.btn-ink {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: 1rem 2rem; border-radius: 999px;
    background: var(--color-ink); color: #fff; font-weight: 700;
    transition: all var(--transition);
}
.btn-ink:hover { transform: scale(1.02); opacity: .92; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.5rem; border-radius: var(--radius-xl);
    background: transparent; color: var(--color-ink); font-weight: 600;
    border: 1.5px solid rgba(0,0,0,.08);
    transition: all var(--transition);
}
.btn-ghost:hover { background: #f4f4f5; }

.btn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem; border-radius: 999px;
    background: var(--color-brand-lime); color: var(--color-ink);
    transition: all var(--transition); flex-shrink: 0;
}
.btn-icon:hover { transform: scale(1.08); }

.btn-full { width: 100%; }

/* Forms */
.form-label {
    display: block; margin-bottom: .375rem;
    font-size: .8125rem; font-weight: 600; color: #71717a;
}
.form-input {
    width: 100%; min-height: 3.5rem; padding: .875rem 1rem;
    border-radius: var(--radius-xl); border: 1.5px solid #e4e4e7;
    background: #fff; font-weight: 500; font-size: .9375rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
    border-color: var(--color-brand); outline: none;
    box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
.form-input-dark {
    background: #18181b; border-color: #27272a; color: #fff;
}
.form-input-dark:focus { border-color: var(--color-brand); }

/* Cards */
.card {
    background: #fff; border-radius: var(--radius-2xl);
    box-shadow: 0 2px 8px -2px rgba(0,0,0,.04), 0 4px 16px -4px rgba(0,0,0,.04);
    transition: all var(--transition);
}
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 4px 24px -6px rgba(0,0,0,.08); }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .25rem .625rem; border-radius: 999px;
    font-size: .6875rem; font-weight: 700; letter-spacing: .02em;
}
.badge-success { background: #ecfdf5; color: #059669; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-info    { background: #eff6ff; color: #2563eb; }
.badge-danger  { background: #fef2f2; color: #dc2626; }
.badge-muted   { background: #f4f4f5; color: #71717a; }

.status-open  { background: #ecfdf5; color: #059669; }
.status-closed { background: #fef2f2; color: #dc2626; }

/* Pills */
.pill {
    flex-shrink: 0; padding: .5rem 1rem; border-radius: 999px;
    font-size: .8125rem; font-weight: 600; color: #71717a;
    background: #f4f4f5; transition: all var(--transition); white-space: nowrap;
}
.pill.active, .pill:hover { background: var(--color-ink); color: #fff; }

.pill-filter {
    padding: .5rem 1rem; border-radius: 999px; font-size: .8125rem; font-weight: 600;
    background: #f4f4f5; color: #52525b; transition: all var(--transition);
}
.pill-filter.active { background: var(--color-ink); color: #fff; }

/* Client nav */
.client-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    border-top: 1px solid #f4f4f5; background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px); padding-bottom: env(safe-area-inset-bottom);
}
.client-nav-link {
    display: flex; flex-direction: column; align-items: center; gap: .125rem;
    padding: .625rem .75rem; font-size: .625rem; font-weight: 600; color: #a1a1aa;
    transition: color var(--transition);
}
.client-nav-link.active, .client-nav-link:hover { color: var(--color-ink); }

/* Product row */
.product-row {
    display: flex; align-items: center; gap: 1rem;
    padding: .75rem 0; border-bottom: 1px solid #f4f4f5;
}
.product-row:last-child { border-bottom: none; }
.product-thumb {
    width: 4.5rem; height: 4.5rem; border-radius: var(--radius-xl);
    object-fit: cover; flex-shrink: 0; background: #f4f4f5;
}

/* Floating cart bar */
.cart-bar {
    position: fixed; inset-inline: 1rem; bottom: 5.5rem; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: .875rem 1.25rem; border-radius: var(--radius-xl);
    background: rgba(5, 120, 87, 0.82);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    color: #fff;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 4px 16px -4px rgba(5,150,105,.25), 0 1px 4px rgba(0,0,0,.08);
    transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .28s ease;
}
/* app.css carga después de tailwind.css y sobreescribe .hidden — forzamos display:none */
.cart-bar.hidden { display: none !important; }

/* Qty */
.qty-control {
    display: flex; align-items: center; gap: .75rem;
    padding: .25rem; border-radius: 999px; background: #f4f4f5;
}
.qty-btn {
    display: flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 999px; background: #fff; font-weight: 700;
    transition: background var(--transition);
}
.qty-btn:hover { background: #ecfdf5; }

/* Dashboard sidebar */
.sidebar {
    position: fixed; inset-block: 0; left: 0; z-index: 40;
    width: 16rem; background: var(--color-ink); color: #fff;
    display: none; flex-direction: column;
}
@media (min-width: 1024px) { .sidebar { display: flex; } }

.logo-sinfila-wrap {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo-sinfila-wrap--on-dark {
    padding: 0.2rem 0.55rem;
    border-radius: 0.5rem;
    background: #fff;
}

.logo-sinfila-img {
    display: block;
    object-fit: contain;
}

.sidebar-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem; border-radius: var(--radius-xl);
    font-size: .875rem; font-weight: 600; color: #d4d4d8;
    transition: all var(--transition);
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,.08); color: #fff;
}
.sidebar-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.25rem; height: 1.25rem; padding: 0 .375rem;
    margin-left: auto;
    border-radius: 999px;
    background: #ef4444; color: #fff;
    font-size: .625rem; font-weight: 800;
    animation: pulseSoft 1.8s ease-in-out infinite;
}

.sidebar-plan-pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .15rem .5rem; border-radius: 999px;
    font-size: .625rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em;
}
.sidebar-plan-pill.is-pro {
    background: linear-gradient(135deg, #A3E635, #84cc16);
    color: #0A0A0A;
    box-shadow: 0 0 12px rgba(163, 230, 53, .3);
}
.sidebar-plan-pill.is-free {
    background: rgba(255,255,255,.1);
    color: #d4d4d8;
}

/* Order cards (legacy compact) */
.order-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem; border-radius: var(--radius-xl);
    background: #fff; border: 1px solid #f4f4f5;
    transition: all var(--transition);
}
.order-row:hover { border-color: #e4e4e7; box-shadow: 0 2px 8px rgba(0,0,0,.04); }

/* Pro order card */
.order-card {
    display: flex; flex-direction: column;
    border-radius: var(--radius-2xl);
    background: #fff; border: 1px solid #f4f4f5;
    transition: all var(--transition);
    overflow: hidden;
}
.order-card:hover { border-color: #e4e4e7; box-shadow: 0 4px 20px -8px rgba(0,0,0,.06); }
.order-card[data-status="received"]  { border-left: 4px solid #2563eb; }
.order-card[data-status="preparing"] { border-left: 4px solid #d97706; }
.order-card[data-status="ready"]     { border-left: 4px solid #10B981; }
.order-card[data-status="delivered"] { border-left: 4px solid #a1a1aa; opacity: .85; }

.order-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; padding: 1rem 1.25rem;
}
.order-card-body {
    padding: .875rem 1.25rem 1.25rem;
    border-top: 1px solid #f4f4f5;
    background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.order-items {
    display: flex; flex-direction: column; gap: .625rem;
    list-style: none; padding: 0; margin: 0;
}
.order-item { padding: 0; }

.filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.25rem; padding: 0 .375rem;
    margin-left: .375rem;
    border-radius: 999px;
    background: rgba(0,0,0,.08);
    font-size: .625rem; font-weight: 800;
}
.pill-filter.active .filter-count { background: rgba(255,255,255,.25); }

.cart-line-chip {
    display: inline-flex; align-items: center;
    padding: .125rem .5rem; border-radius: 999px;
    background: #f4f4f5; color: #52525b;
    font-size: .6875rem; font-weight: 600; line-height: 1.3;
}
.cart-line-note {
    margin-top: .375rem;
    padding: .375rem .625rem;
    border-radius: .625rem;
    background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
    font-size: .6875rem; font-weight: 600; line-height: 1.4;
}

/* Highlight new orders briefly */
@keyframes orderFlash {
    0%   { background: #ecfdf5; }
    100% { background: #fff; }
}
.order-card.is-new { animation: orderFlash 1.5s ease; }

/* Admin modals */
.admin-modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.admin-modal.hidden { display: none; }
.admin-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5); backdrop-filter: blur(2px);
    animation: fadeIn .2s ease;
}
.admin-modal-sheet {
    position: relative; z-index: 1;
    width: 100%; max-width: 32rem; max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,.25);
    animation: scaleIn .2s ease;
}
.admin-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem; border-bottom: 1px solid #f4f4f5;
    position: sticky; top: 0; background: #fff; z-index: 1;
}
.admin-modal-body { padding: 1.25rem; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95) } to { opacity: 1; transform: scale(1) } }
@media (max-width: 640px) {
    .admin-modal { padding: 0; align-items: flex-end; }
    .admin-modal-sheet { max-height: 92vh; border-radius: 1.25rem 1.25rem 0 0; }
}

/* Image upload zones */
.upload-zone {
    position: relative;
    border: 2px dashed #e4e4e7;
    border-radius: var(--radius-xl);
    background: #fafafa;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    overflow: hidden;
}
.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--brand-500);
    background: #f0fdf4;
}
.upload-zone.drag-over { outline: 3px solid var(--brand-200); }
.upload-zone.uploading { pointer-events: none; opacity: .7; }
.upload-zone img[data-preview]:not(.hidden) { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-zone label.upload-label { position:absolute; inset:0; cursor:pointer; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.upload-zone [data-upload-spinner]:not(.hidden) {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.7);
}
.upload-zone [data-upload-remove] {
    position: absolute; top: .5rem; right: .5rem;
    background: rgba(0,0,0,.55); border: none; border-radius: 50%;
    width: 1.75rem; height: 1.75rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; opacity: 0; transition: opacity .15s;
}
.upload-zone:hover [data-upload-remove] { opacity: 1; }
.upload-zone:hover::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,.18);
    border-radius: inherit;
    pointer-events: none;
}
.upload-zone [data-upload-error] { color: #ef4444; font-size: .75rem; padding: .25rem .5rem; }

/* Galería de producto: grid de miniaturas */
.gallery-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid #e4e4e7;
    background: #f4f4f5;
    transition: border-color .15s;
}
.gallery-tile.is-primary { border-color: #10B981; box-shadow: 0 0 0 2px rgba(16,185,129,.18); }
.gallery-tile img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.gallery-tile .gallery-badge {
    position: absolute; top: .25rem; left: .25rem;
    background: #10B981; color: #fff;
    font-size: .55rem; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase;
    padding: .15rem .4rem; border-radius: 999px;
}
.gallery-tile .gallery-act {
    position: absolute;
    width: 1.6rem; height: 1.6rem;
    border: none; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .95rem; font-weight: 800; line-height: 1;
    opacity: 0; transition: opacity .15s;
}
.gallery-tile:hover .gallery-act { opacity: 1; }
.gallery-tile .gallery-primary { top: .25rem; left: .25rem; color: #fbbf24; }
.gallery-tile .gallery-delete  { top: .25rem; right: .25rem; }
.gallery-tile .gallery-delete:hover { background: #ef4444; }

/* Toggle inside <button> */
button.toggle {
    border: none; cursor: pointer; padding: 0;
}

/* Kitchen */
.kitchen-card {
    padding: 1.5rem; border-radius: var(--radius-2xl);
    background: #18181b; border: 2px solid #27272a;
    transition: all var(--transition);
}
.kitchen-card.urgent-green  { border-color: #10B981; }
.kitchen-card.urgent-yellow { border-color: #F59E0B; }
.kitchen-card.urgent-red    { border-color: #EF4444; animation: urgentPulse 3s ease-in-out infinite; }

.kitchen-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; padding: .875rem; border-radius: var(--radius-xl);
    background: rgba(255,255,255,.08); font-weight: 700; color: #fff;
    font-size: 1rem;
    transition: all var(--transition);
}
.kitchen-btn:hover:not(:disabled) { background: rgba(255,255,255,.14); transform: scale(1.01); }
.kitchen-btn-brand { background: var(--color-brand-lime); color: var(--color-ink); }
.kitchen-btn-brand:hover { opacity: .92; }

/* Kitchen stat chips */
.kitchen-stat-chip {
    display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
    padding: .625rem 1rem; border-radius: var(--radius-xl);
    background: #18181b; border: 1.5px solid #27272a;
    font-weight: 600; color: #d4d4d8;
}
.kitchen-stat-received { border-color: #2563eb33; color: #93c5fd; }
.kitchen-stat-preparing { border-color: #d9770633; color: #fcd34d; }
.kitchen-stat-ready     { border-color: #10B98133; color: #6ee7b7; }

/* Kitchen toast */
.kitchen-toast {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(4rem);
    padding: .875rem 1.5rem; border-radius: var(--radius-xl);
    background: var(--color-brand-lime); color: var(--color-ink);
    font-size: 1rem; font-weight: 700;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s;
    opacity: 0; pointer-events: none; z-index: 999;
}
.kitchen-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Stepper (tracking) */
.stepper { display: flex; justify-content: space-between; gap: .5rem; }
.stepper-step { flex: 1; text-align: center; }
.stepper-dot {
    width: 2.5rem; height: 2.5rem; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-xl); background: #27272a; color: #71717a;
    transition: all .3s ease;
}
.stepper-dot.active { background: var(--color-brand-lime); color: var(--color-ink); }
.stepper-dot.done   { background: var(--color-brand); color: #fff; }
.stepper-label { margin-top: .5rem; font-size: .625rem; font-weight: 600; color: #71717a; }
.stepper-label.active { color: var(--color-brand-lime); }

/* Toggle switch */
.toggle {
    position: relative; width: 2.75rem; height: 1.5rem;
    border-radius: 999px; background: #e4e4e7; transition: background var(--transition);
    cursor: pointer; flex-shrink: 0;
}
.toggle.on { background: var(--color-brand); }
.toggle::after {
    content: ''; position: absolute; top: .125rem; left: .125rem;
    width: 1.25rem; height: 1.25rem; border-radius: 999px; background: #fff;
    transition: transform var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle.on::after { transform: translateX(1.25rem); }

/* KPI */
.kpi-card {
    padding: 1.25rem 1.5rem; border-radius: var(--radius-2xl);
    background: #fff; border: 1px solid #f4f4f5;
}
.kpi-card-dark {
    background: #18181b; border-color: #27272a; color: #fff;
}

/* Toast */
.toast-container {
    position: fixed; top: 1rem; right: 1rem; z-index: 100;
    display: flex; flex-direction: column; gap: .5rem;
}
.toast {
    padding: .875rem 1.25rem; border-radius: var(--radius-xl);
    background: var(--color-ink); color: #fff; font-size: .875rem; font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    animation: slideIn .3s ease;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(1rem); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Live indicator */
.live-dot {
    width: .5rem; height: .5rem; border-radius: 999px;
    background: var(--color-brand); animation: pulseSoft 2s ease-in-out infinite;
}
@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Auth split */
.auth-panel {
    min-height: 100vh; display: grid;
}
@media (min-width: 1024px) {
    .auth-panel { grid-template-columns: 1fr 1fr; }
}

.reveal { opacity: 0; transform: translateY(8px); transition: all .3s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Category radio cards (register) */
.category-radio { cursor: pointer; }
.category-radio-card {
    display: flex; flex-direction: column; align-items: center; gap: .375rem;
    padding: .875rem .5rem; border-radius: var(--radius-xl);
    border: 1.5px solid #e4e4e7; background: #fff; color: #52525b;
    transition: all var(--transition); text-align: center;
}
.category-radio-card:hover { border-color: #d4d4d8; transform: translateY(-1px); }
.category-radio input:checked + .category-radio-card {
    border-color: var(--color-brand); background: #ecfdf5; color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(16,185,129,.08);
}
.category-radio input:focus-visible + .category-radio-card {
    outline: 2px solid var(--color-brand); outline-offset: 2px;
}

/* Sticky navbar with blur */
.nav-marketing {
    position: sticky; top: 0; z-index: 50; transition: all .25s ease;
}
.nav-marketing.scrolled {
    background: rgba(255,255,255,.78); backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #f4f4f5;
}

/* Urgent orders banner (dashboard) */
.urgent-banner {
    position: relative; overflow: hidden;
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 32px -8px rgba(220,38,38,.45);
    animation: urgentSlideIn .4s cubic-bezier(.22,1,.36,1);
}
@keyframes urgentSlideIn {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.urgent-banner-pulse {
    position: absolute; inset: 0; border-radius: inherit;
    background: rgba(255,255,255,.06);
    animation: urgentPulse 2s ease-in-out infinite;
}
@keyframes urgentPulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

/* KPI card urgent state (legacy compat) */
.kpi-card-urgent {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    border-color: transparent !important;
    color: #fff;
}
.kpi-card-urgent p { color: rgba(255,255,255,.8) !important; }
.kpi-card-urgent span { color: #fff !important; }

/* =============================================================
   DASHBOARD v2 — Pro panel
   ============================================================= */
.dash-header {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 1rem;
}
.dash-greeting {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}
@media (min-width: 640px) { .dash-greeting { font-size: 2rem; } }

.dash-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 1rem;
    background: #fff; border: 1px solid #f4f4f5;
    color: var(--color-ink);
    transition: all .15s ease;
}
.dash-icon-btn:hover {
    border-color: #d4d4d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.dash-cocina-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 0 1rem; height: 2.5rem;
    border-radius: 1rem;
    background: var(--color-ink); color: #fff;
    font-size: .8125rem; font-weight: 700;
    transition: all .15s ease;
}
.dash-cocina-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -4px rgba(0,0,0,.25); }

.dash-search {
    display: flex; flex: 1; align-items: center; gap: .5rem;
    min-width: 200px;
    padding: .625rem .875rem;
    border-radius: 1rem;
    background: #fff; border: 1px solid #f4f4f5;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dash-search:focus-within {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 4px rgba(16,185,129,.1);
}

/* KPI grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
@media (min-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
}

.kpi-pro {
    position: relative; overflow: hidden;
    padding: 1.125rem 1.25rem;
    border-radius: var(--radius-2xl);
    background: #fff; border: 1px solid #f4f4f5;
    transition: all .2s ease;
}
.kpi-pro:hover { border-color: #e4e4e7; transform: translateY(-1px); box-shadow: 0 6px 20px -8px rgba(0,0,0,.06); }

.kpi-pro-head {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
}
.kpi-pro-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    border-radius: .625rem;
    background: #f4f4f5; color: #52525b;
}
.kpi-icon-blue  { background: #dbeafe; color: #2563eb; }
.kpi-icon-green { background: #d1fae5; color: #059669; }
.kpi-icon-amber { background: #fef3c7; color: #d97706; }
.kpi-icon-fire  { background: #fee2e2; color: #dc2626; }
.kpi-icon-zinc  { background: #f4f4f5; color: #52525b; }

/* Super Admin sidebar — fondo más oscuro y acento amber */
.admin-sidebar {
    background: #0a0a0b;
    border-right: 1px solid rgba(245, 158, 11, .12);
}
.admin-sidebar .sidebar-link.active {
    background: rgba(245, 158, 11, .12);
    color: #fbbf24;
}
.admin-sidebar .sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: #fbbf24;
    border-radius: 0 4px 4px 0;
}
.admin-sidebar .sidebar-link { position: relative; }

.kpi-pro-label {
    font-size: .8125rem; font-weight: 700; color: #52525b;
}
.kpi-pro-value {
    font-size: 1.875rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.kpi-pro-foot {
    margin-top: .625rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    font-size: .75rem;
}

.kpi-delta {
    display: inline-flex; align-items: center; gap: .125rem;
    padding: .15rem .5rem; border-radius: 999px;
    font-size: .6875rem; font-weight: 800;
}
.kpi-delta-up   { background: #d1fae5; color: #047857; }
.kpi-delta-down { background: #fee2e2; color: #b91c1c; }

.kpi-pro-warn {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .25rem .5rem; border-radius: 999px;
    background: #fee2e2; color: #b91c1c;
    font-size: .6875rem; font-weight: 800;
}

/* Sparkline (mini bars) */
.kpi-spark {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: .25rem; height: 2.5rem;
}
.kpi-spark-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--color-brand), #10b981);
    border-radius: .25rem .25rem 0 0;
    min-height: 4px;
    opacity: .85;
    transition: opacity .15s ease;
}
.kpi-pro:hover .kpi-spark-bar { opacity: 1; }

/* Pending urgent state */
.kpi-pro-urgent {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: transparent;
    color: #fff;
}
.kpi-pro-urgent .kpi-pro-label,
.kpi-pro-urgent .kpi-pro-value,
.kpi-pro-urgent .kpi-pro-foot { color: #fff; }
.kpi-pro-urgent .kpi-pro-icon { background: rgba(255,255,255,.2); color: #fff; }
.kpi-pro-urgent .kpi-pro-warn { background: rgba(255,255,255,.95); color: #b91c1c; }

/* =============================================================
   QUICK ACTIONS
   ============================================================= */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .625rem;
}
@media (min-width: 640px) { .quick-actions { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .quick-actions { grid-template-columns: repeat(4, 1fr); } }

.quick-action {
    display: flex; align-items: center; gap: .875rem;
    padding: .875rem 1rem;
    border-radius: var(--radius-2xl);
    background: #fff; border: 1px solid #f4f4f5;
    text-align: left;
    transition: all .15s ease;
    color: var(--color-ink);
}
.quick-action:hover {
    border-color: #d1fae5;
    background: #f7fff9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -8px rgba(16,185,129,.15);
}

.quick-action-brand {
    background: linear-gradient(135deg, #052e16 0%, #0a0a0a 100%);
    border-color: transparent;
    color: #fff;
}
.quick-action-brand:hover {
    background: linear-gradient(135deg, #064e3b 0%, #18181B 100%);
    border-color: transparent;
    transform: translateY(-1px);
}
.quick-action-brand .quick-action-icon { background: var(--color-brand-lime); color: var(--color-ink); }
.quick-action-brand .quick-action-desc { color: rgba(255,255,255,.7); }

.quick-action-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; flex-shrink: 0;
    border-radius: .875rem;
    background: #ecfdf5; color: #047857;
}
.quick-action-icon-blue   { background: #dbeafe; color: #2563eb; }
.quick-action-icon-amber  { background: #fef3c7; color: #d97706; }
.quick-action-icon-violet { background: #ede9fe; color: #7c3aed; }

.quick-action-title { font-size: .9375rem; font-weight: 800; line-height: 1.2; }
.quick-action-desc  { font-size: .75rem; color: #71717a; margin-top: .125rem; line-height: 1.3; }

/* =============================================================
   SETUP CHECKLIST
   ============================================================= */
.setup-card {
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    border: 1px solid #d1fae5;
}

.setup-progress-ring {
    position: relative;
    width: 4.5rem; height: 4.5rem;
    border-radius: 999px;
    flex-shrink: 0;
    background:
        conic-gradient(var(--color-brand) calc(var(--pct) * 1%), #f4f4f5 0);
    display: flex; align-items: center; justify-content: center;
}
.setup-progress-ring::before {
    content: '';
    position: absolute; inset: 6px;
    border-radius: 999px;
    background: #fff;
}
.setup-progress-ring > span {
    position: relative;
    font-size: .9375rem; font-weight: 800;
    color: var(--color-ink);
}

.setup-steps {
    display: flex; flex-direction: column; gap: .5rem;
    list-style: none; padding: 0; margin: 0;
}
.setup-step {
    display: flex; align-items: center; gap: .875rem;
    padding: .75rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #f4f4f5;
    transition: all .15s ease;
}
.setup-step:hover { border-color: #d1fae5; }
.setup-step.is-done.is-complete .setup-step-label { color: #059669; font-weight: 600; }
.setup-step.is-done .setup-step-label { color: #52525b; }

.setup-step-bullet-done {
    background: #10B981 !important;
    color: #fff !important;
    border-color: #10B981 !important;
}

.setup-next {
    padding-top: 1rem;
    border-top: 1px dashed #e4e4e7;
}
.setup-next-title {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #71717a;
}

.dash-pause-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    border-radius: var(--radius-xl);
    font-size: .8125rem;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    border: 1px solid #b91c1c;
    transition: opacity .15s ease, transform .15s ease;
}
.dash-pause-btn:hover { opacity: .92; transform: translateY(-1px); }
.dash-pause-btn.is-paused {
    background: #10B981;
    border-color: #059669;
}
.dash-pause-btn:disabled { opacity: .6; cursor: wait; }


.setup-step-bullet {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.75rem; height: 1.75rem; flex-shrink: 0;
    border-radius: 999px;
    background: #f4f4f5; color: #52525b;
    font-size: .75rem;
}
.setup-step.is-done .setup-step-bullet {
    background: var(--color-brand); color: #fff;
}

.setup-step-label {
    flex: 1; min-width: 0;
    font-size: .875rem; font-weight: 600; color: var(--color-ink);
}

.setup-step-cta {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .4rem .75rem;
    border-radius: .625rem;
    background: var(--color-ink); color: #fff;
    font-size: .75rem; font-weight: 700;
    transition: all .15s ease;
    flex-shrink: 0;
}
.setup-step-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

.setup-step-done-pill {
    padding: .25rem .625rem; border-radius: 999px;
    background: #d1fae5; color: #047857;
    font-size: .625rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .04em;
    flex-shrink: 0;
}

/* =============================================================
   EMPTY ORDERS PRO
   ============================================================= */
.empty-orders-pro {
    position: relative;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-2xl);
    background: #fff;
    border: 2px dashed #e4e4e7;
    text-align: center;
    overflow: hidden;
}
.empty-orders-illu {
    position: relative;
    margin: 0 auto;
    width: 6rem; height: 6rem;
}
.empty-orders-ring {
    position: absolute; inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%);
    animation: emptyRingPulse 3s ease-in-out infinite;
}
@keyframes emptyRingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.15); opacity: .6; }
}
.empty-orders-icon {
    position: absolute; inset: 1rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #047857;
}

.empty-orders-tip {
    display: inline-flex; align-items: center; gap: .5rem;
    margin-top: 1.5rem;
    padding: .625rem 1rem;
    border-radius: .875rem;
    background: #fefce8;
    border: 1px solid #fde68a;
    color: #713f12;
    font-size: .75rem;
    line-height: 1.4;
}

/* =============================================================
   URGENT BANNER tweaks
   ============================================================= */
.urgent-banner-icon {
    display: flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
}
.urgent-banner-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .625rem 1rem;
    border-radius: 999px;
    background: #fff; color: #0A0A0A;
    font-size: .8125rem; font-weight: 800;
    transition: transform .15s ease;
}
.urgent-banner-cta:hover { transform: translateY(-1px); }
.urgent-banner-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.5rem; height: 1.25rem; padding: 0 .5rem;
    border-radius: 999px;
    background: #dc2626; color: #fff;
    font-size: .6875rem; font-weight: 800;
}

/* Animate pulse soft */
.animate-pulse-soft { animation: pulseSoft 1.8s ease-in-out infinite; }

/* =============================================================
   MEMBERSHIP / PRICING
   ============================================================= */
.membership-summary {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    border: 1px solid #f4f4f5;
}
.membership-summary-icon {
    display: flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; flex-shrink: 0;
    border-radius: 1rem;
    background: #f4f4f5; color: #71717a;
}
.membership-summary-icon.is-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 8px 24px -8px rgba(245, 158, 11, .5);
}
.membership-badge {
    display: inline-flex; align-items: center;
    padding: .2rem .6rem; border-radius: 999px;
    font-size: .625rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .04em; margin-left: .5rem; vertical-align: middle;
}
.membership-badge-pro     { background: #d1fae5; color: #047857; }
.membership-badge-pending { background: #fef3c7; color: #92400e; }

.plan-card {
    position: relative;
    padding: 1.75rem;
    border-radius: var(--radius-2xl);
    background: #fff; border: 1px solid #f4f4f5;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover { transform: translateY(-2px); border-color: #e4e4e7; box-shadow: 0 12px 32px -12px rgba(0,0,0,.08); }
.plan-card.is-current { border-color: #10B981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .1); }

.plan-card-pro {
    color: #fff;
    background: linear-gradient(135deg, #0a0a0a 0%, #18181b 100%) !important;
    border-color: transparent;
    overflow: hidden;
}
.plan-card-pro .plan-features li,
.plan-card-pro .plan-features-dark li { color: #fafafa; }
.plan-card-pro h2,
.plan-card-pro p { color: inherit; }
.plan-card-pro:hover { box-shadow: 0 16px 48px -12px rgba(0,0,0,.4); }
.plan-card-pro.is-current { box-shadow: 0 0 0 4px rgba(163,230,53,.3); }

.plan-card-shine {
    position: absolute; inset: 0;
    background: radial-gradient(circle at top right, rgba(163,230,53,.15) 0%, transparent 50%);
    pointer-events: none;
}

.plan-badge-current {
    padding: .25rem .75rem; border-radius: 999px;
    background: #10B981; color: #fff;
    font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}
.plan-badge-current-pro { background: var(--color-brand-lime); color: #0A0A0A; }
.plan-badge-recommended {
    padding: .25rem .75rem; border-radius: 999px;
    background: rgba(163, 230, 53, .2); color: #A3E635;
    border: 1px solid rgba(163, 230, 53, .3);
    font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}

.plan-features {
    display: flex; flex-direction: column; gap: .625rem;
    list-style: none; padding: 0; margin: 0;
    font-size: .875rem;
}
.plan-features li {
    display: flex; align-items: flex-start; gap: .625rem;
    color: #27272a;
}
.plan-features-dark li { color: #fafafa; }

/* Recent orders (my-orders page localStorage) */
.recent-order-card {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-2xl);
    background: #fff;
    border: 1px solid #f4f4f5;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-ink);
}
.recent-order-card:hover {
    border-color: #e4e4e7;
    box-shadow: 0 4px 20px -8px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.recent-status-badge {
    display: inline-flex; align-items: center;
    padding: .2rem .55rem; border-radius: 999px;
    font-size: .6875rem; font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Dark mode (class-based, toggled by JS) */
html.dark {
    color-scheme: dark;
    --color-ink: #FAFAFA;
}
html.dark body { background: #0A0A0A; color: #F4F4F5; }
html.dark .bg-cream { background: #0A0A0A; }
html.dark .bg-white,
html.dark .bg-paper { background: #18181B !important; color: #F4F4F5; }
html.dark .card { background: #18181B; box-shadow: 0 2px 8px -2px rgba(0,0,0,.4), 0 4px 16px -4px rgba(0,0,0,.3); }
html.dark .text-ink { color: #F4F4F5 !important; }
html.dark .text-zinc-500 { color: #a1a1aa !important; }
html.dark .text-zinc-600 { color: #d4d4d8 !important; }
html.dark .text-zinc-700 { color: #e4e4e7 !important; }
html.dark .text-zinc-400 { color: #71717a !important; }
html.dark .border-zinc-100,
html.dark .border-zinc-200 { border-color: #27272A !important; }
html.dark .bg-zinc-100 { background: #27272A !important; }
html.dark .form-input { background: #18181B; border-color: #27272A; color: #FAFAFA; }
html.dark .order-card { background: #18181B; border-color: #27272A; }
html.dark .order-card-body { background: linear-gradient(180deg, #111 0%, #18181B 100%); border-top-color: #27272A; }
html.dark .pill-filter { background: #27272A; color: #d4d4d8; }
html.dark .pill-filter.active { background: #A3E635; color: #0A0A0A; }
html.dark .kpi-card { background: #18181B; border-color: #27272A; }
html.dark .btn-ghost { color: #F4F4F5; border-color: rgba(255,255,255,.12); }
html.dark .btn-ghost:hover { background: #27272A; }
html.dark .cart-line-chip { background: #27272A; color: #d4d4d8; }
html.dark .cart-line-note { background: #1f1408; border-color: #78350f; color: #fcd34d; }
html.dark .pill { background: #27272A; color: #d4d4d8; }
html.dark .pill.active { background: #A3E635; color: #0A0A0A; }
html.dark .nav-marketing.scrolled { background: rgba(10,10,10,.78); border-bottom-color: #27272A; }
html.dark .client-nav { background: rgba(10,10,10,.92); border-top-color: #27272A; }
html.dark .admin-modal-sheet { background: #18181B; color: #F4F4F5; }
html.dark .admin-modal-head { background: #18181B; border-bottom-color: #27272A; }
html.dark .product-thumb { background: #27272A; }
html.dark .recent-order-card { background: #18181B; border-color: #27272A; color: #F4F4F5; }
html.dark .recent-order-card:hover { border-color: #3F3F46; }
html.dark .kpi-card-urgent { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important; }

/* Dashboard v2 dark mode */
html.dark .dash-icon-btn,
html.dark .dash-search,
html.dark .kpi-pro,
html.dark .quick-action,
html.dark .setup-step,
html.dark .empty-orders-pro {
    background: #18181B; border-color: #27272A; color: #F4F4F5;
}
html.dark .empty-orders-pro { border-style: dashed; border-color: #3F3F46; }
html.dark .dash-icon-btn:hover { background: #27272A; border-color: #3F3F46; }
html.dark .dash-cocina-btn { background: #A3E635; color: #0A0A0A; }
html.dark .kpi-pro-label { color: #d4d4d8; }
html.dark .kpi-pro-icon { background: #27272A; color: #d4d4d8; }
html.dark .kpi-icon-blue  { background: rgba(37,99,235,.2);  color: #93c5fd; }
html.dark .kpi-icon-green { background: rgba(16,185,129,.2); color: #6ee7b7; }
html.dark .kpi-icon-amber { background: rgba(217,119,6,.2);  color: #fcd34d; }
html.dark .kpi-icon-fire  { background: rgba(220,38,38,.2);  color: #fca5a5; }
html.dark .quick-action:hover {
    background: linear-gradient(135deg, rgba(16,185,129,.08), #18181B);
    border-color: rgba(16,185,129,.3);
}
html.dark .quick-action-brand {
    background: linear-gradient(135deg, #0a3622 0%, #18181B 100%);
}
html.dark .quick-action-icon-blue   { background: rgba(37,99,235,.2);  color: #93c5fd; }
html.dark .quick-action-icon-amber  { background: rgba(217,119,6,.2);  color: #fcd34d; }
html.dark .quick-action-icon-violet { background: rgba(124,58,237,.2); color: #c4b5fd; }
html.dark .quick-action-icon        { background: rgba(16,185,129,.2); color: #6ee7b7; }
html.dark .quick-action-desc        { color: #a1a1aa; }
html.dark .setup-card {
    background: linear-gradient(135deg, #0a3622 0%, #18181B 100%);
    border-color: rgba(16,185,129,.3);
}
html.dark .setup-step-bullet { background: #27272A; color: #d4d4d8; }
html.dark .setup-step.is-done.is-complete .setup-step-label { color: #6ee7b7; }
html.dark .setup-step.is-done .setup-step-label { color: #a1a1aa; }
html.dark .setup-next { border-color: #3f3f46; }
html.dark .setup-next-title { color: #a1a1aa; }
html.dark .setup-step-bullet-done { background: #10B981 !important; color: #fff !important; }
html.dark .setup-progress-ring::before { background: #18181B; }
html.dark .empty-orders-icon { background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(16,185,129,.1)); color: #6ee7b7; }
html.dark .empty-orders-tip { background: rgba(202,138,4,.1); border-color: rgba(202,138,4,.3); color: #fcd34d; }
html.dark .pill-filter-row .pill-filter { background: #27272A; }

/* Force-light pages (landing, tienda, directorio): restaurar paleta clara bajo html.dark */
html.dark[data-force-light="1"] .text-zinc-300,
html.dark body[data-force-light="1"] .text-zinc-300 { color: #d4d4d8 !important; }
html.dark[data-force-light="1"] .text-zinc-400,
html.dark body[data-force-light="1"] .text-zinc-400 { color: #a1a1aa !important; }
html.dark[data-force-light="1"] .text-zinc-500,
html.dark body[data-force-light="1"] .text-zinc-500 { color: #71717a !important; }
html.dark[data-force-light="1"] .text-zinc-600,
html.dark body[data-force-light="1"] .text-zinc-600 { color: #52525b !important; }
html.dark[data-force-light="1"] .text-zinc-700,
html.dark body[data-force-light="1"] .text-zinc-700 { color: #3f3f46 !important; }
html.dark[data-force-light="1"] .text-zinc-800,
html.dark body[data-force-light="1"] .text-zinc-800 { color: #27272a !important; }
html.dark[data-force-light="1"] .text-ink,
html.dark body[data-force-light="1"] .text-ink { color: #0a0a0a !important; }
html.dark[data-force-light="1"] .text-red-600,
html.dark body[data-force-light="1"] .text-red-600 { color: #dc2626 !important; }
html.dark[data-force-light="1"] .bg-cream,
html.dark body[data-force-light="1"] .bg-cream,
html.dark[data-force-light="1"] .bg-paper,
html.dark body[data-force-light="1"] .bg-paper { background: #fafaf8 !important; color: #0a0a0a !important; }
html.dark[data-force-light="1"] .bg-white,
html.dark body[data-force-light="1"] .bg-white { background: #fff !important; color: #0a0a0a !important; }

/* Membership dark */
html.dark .membership-summary,
html.dark .plan-card:not(.plan-card-pro) {
    background: #18181B; border-color: #27272A; color: #F4F4F5;
}
html.dark .plan-card.plan-card-pro {
    background: linear-gradient(135deg, #0a0a0a 0%, #18181b 100%) !important;
    color: #fff;
}
html.dark .membership-summary-icon { background: #27272A; color: #d4d4d8; }
html.dark .membership-badge-pro { background: rgba(16,185,129,.2); color: #6ee7b7; }
html.dark .plan-features li { color: #e4e4e7; }
html.dark .plan-features-dark li { color: #fafafa; }

/* ── Theme picker (configuración) ── */
.theme-design-card.hidden { display: none; }
.theme-card-badge {
    position: absolute; top: .5rem; left: .5rem; z-index: 2;
    font-size: .625rem; font-weight: 800; padding: .2rem .5rem;
    border-radius: 999px; letter-spacing: .02em;
}
.theme-card-badge-rec {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E; border: 1px solid #FCD34D;
    box-shadow: 0 2px 8px rgba(146,64,14,.15);
}
.theme-card-badge-hot {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #B91C1C; border: 1px solid #FCA5A5;
}
.theme-cat-btn .filter-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.125rem; height: 1.125rem; padding: 0 .25rem;
    margin-left: .25rem; border-radius: 999px;
    font-size: .625rem; font-weight: 800;
    background: rgba(0,0,0,.08);
}
