/* =========================================================
   ConnectD VIP — "Rajwada" theme: ivory, maroon & gold
   Hand-written, no framework. Shared by storefront + admin.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Mukta:wght@400;500;600;700&display=swap");

:root {
  --ivory: #fbf5e9; --paper: #fffdf8; --sand: #efe4cc; --line: #e4d5b4; --line-soft: #efe5cd;
  --maroon: #5a1423; --maroon-2: #7a1f33; --maroon-deep: #3a0b16;
  --gold: #b7852b; --gold-2: #d4a64a; --gold-light: #e8c777; --gold-pale: #f6e9c6;
  --saffron: #d9822b; --teal: #0f6b5f; --teal-soft: #e0f1ed; --rose: #b3261e; --rose-soft: #fbe6e3;
  --ink: #2b1b17; --ink-2: #5d4b43; --ink-3: #8a776c;
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Mukta", "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px; --shadow: 0 10px 30px -12px rgba(90, 20, 35, .28);
  --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e8c777' stroke-opacity='.2' stroke-width='1'%3E%3Cpath d='M28 2 54 28 28 54 2 28z'/%3E%3Cpath d='M28 14 42 28 28 42 14 28z'/%3E%3Ccircle cx='28' cy='28' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ivory); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--maroon-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--gold-light); color: var(--maroon-deep); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--font-display); }
.num { font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .04em; font-weight: 700; }
.muted { color: var(--ink-3); } .small { font-size: .85rem; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; } .row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.wrap { flex-wrap: wrap; } .right { text-align: right; } .mb-3 { margin-bottom: 12px; } .flush { margin-bottom: 0; } .inherit { color: inherit; }
.num-md { color: var(--maroon); font-size: 1.3rem; } .num-lg { font-size: 1.4rem; color: var(--maroon); } .pad-lg { padding: 28px 0; }
.canvas-card { padding: 0; width: 100%; height: auto; display: block; }
.brand-serif { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--maroon); }
html:has(dialog[open]) { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--maroon-2), var(--maroon)); color: var(--gold-pale); box-shadow: 0 6px 16px -6px rgba(90,20,35,.6); }
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(90,20,35,.7); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold-2) 55%, var(--gold)); color: var(--maroon-deep); box-shadow: 0 6px 16px -8px rgba(183,133,43,.9); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--gold-pale); border-color: var(--gold-2); }
.btn-wa { background: var(--teal-soft); border-color: #a9d8cf; color: var(--teal); }
.btn-wa:hover { background: #cfeae4; }
.btn-danger { background: var(--rose-soft); border-color: #f0b8b2; color: var(--rose); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); transition: .15s; }
.icon-btn:hover { border-color: var(--gold-2); color: var(--maroon-2); }
.icon-btn.on { background: var(--maroon); border-color: var(--maroon); color: var(--gold-light); }
.icon-btn.on-heart { background: #fbe3e6; border-color: #e9a7b1; color: #b3263d; }

/* ---------- Forms ---------- */
.field label, .label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 5px; }
.hint { font-size: .78rem; color: var(--ink-3); margin-top: 4px; }
input[type=text], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,166,74,.22); }
input::placeholder { color: #b3a498; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--maroon); flex: none; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--maroon-deep); color: var(--gold-pale); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.topbar .hide-sm { display: none; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,253,248,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--maroon); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; position: relative; }
.brand-mark::before { content: ""; position: absolute; inset: 4px; transform: rotate(45deg); background: linear-gradient(135deg, var(--maroon-2), var(--maroon-deep)); border: 2px solid var(--gold-2); border-radius: 4px; }
.brand-mark span { position: relative; color: var(--gold-light); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: .02em; }
.brand-name em { color: var(--gold); font-style: normal; }
@media (max-width: 480px) { .brand-name { font-size: 1.2rem; white-space: nowrap; } .brand-sub { display: none; } .brand-mark { width: 36px; height: 36px; } .hero h1 { font-size: 2.05rem; } }
.brand-sub { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.main-nav { display: none; gap: 22px; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--maroon); border-color: var(--gold-2); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.count-pill { min-width: 22px; padding: 0 7px; height: 22px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--gold-light); color: var(--maroon-deep); font-size: .75rem; font-weight: 700; }
.btn-header { min-height: 42px; padding: 8px 14px; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.btn-header:hover, .btn-header.on { border-color: var(--gold-2); background: var(--gold-pale); }
.btn-header .lbl { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--gold-pale); background: radial-gradient(900px 420px at 80% -10%, rgba(232,199,119,.22), transparent 60%), linear-gradient(160deg, var(--maroon-2), var(--maroon) 45%, var(--maroon-deep)); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--jali); opacity: .9; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: radial-gradient(circle at 12px 0, transparent 11px, var(--ivory) 12px) 0 0 / 24px 22px repeat-x; }
.hero .container { position: relative; padding-block: 44px 64px; }
.hero-copy { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-light); font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.eyebrow::before, .eyebrow::after { content: "◆"; font-size: .55rem; color: var(--gold-2); }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.05; margin: 12px 0 12px; color: #fff8e6; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { margin: 0 auto; color: #f0dcc0; max-width: 56ch; font-size: 1.05rem; }
.hero p.hindi { font-size: 1.35rem; margin-bottom: 6px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.hindi { font-family: "Tiro Devanagari Hindi", var(--font-display), serif; color: var(--gold-light); letter-spacing: .02em; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 18px; font-size: .88rem; color: #f3dfc2; }
.trust-row span { display: inline-flex; gap: 8px; align-items: center; }
.trust-row .ic { color: var(--gold-light); }

/* Finder (search card) */
.finder { background: var(--paper); color: var(--ink); border-radius: 26px 26px 18px 18px; padding: 18px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); position: relative; outline: 1px solid var(--gold-2); outline-offset: -7px; }
.finder-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--sand); padding: 5px; border-radius: 14px; margin-bottom: 16px; }
.tab { border: 0; background: transparent; border-radius: 10px; padding: 9px 6px; font-weight: 600; font-size: .85rem; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2; }
.tab .ic { font-size: 1.2rem; }
.tab[aria-selected="true"] { background: var(--paper); color: var(--maroon); box-shadow: 0 2px 8px -2px rgba(90,20,35,.3); }
.finder-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.pos-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pos-box { width: 40px !important; height: 52px; min-height: 0 !important; padding: 0 !important; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--maroon); border-radius: 10px !important; }
.pos-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; color: var(--ink-3); }
.dob-note { background: var(--gold-pale); border: 1px solid var(--gold-light); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.dob-summary { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); border: 1px solid #a9d8cf; font-size: .9rem; }
.finder-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .85rem; }

/* Collections */
.collections { display: flex; gap: 10px; overflow-x: auto; padding: 22px 2px 6px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.collection { scroll-snap-align: start; flex: none; display: grid; gap: 2px; text-align: left; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: 10px 16px; min-width: 150px; transition: .15s; }
.collection b { font-family: var(--font-display); font-size: 1.15rem; color: var(--maroon); line-height: 1.1; }
.collection span { font-size: .76rem; color: var(--ink-3); }
.collection:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.collection[aria-pressed="true"] { background: linear-gradient(135deg, var(--maroon-2), var(--maroon)); border-color: var(--maroon); }
.collection[aria-pressed="true"] b { color: var(--gold-light); } .collection[aria-pressed="true"] span { color: #e9cfc0; }

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
.section-title { text-align: center; margin: 0 0 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--maroon); }
.section-sub { text-align: center; color: var(--ink-2); max-width: 60ch; margin: 0 auto 26px; }
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); margin: 8px auto 14px; max-width: 300px; font-size: .7rem; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2)); }
.orn::after { transform: scaleX(-1); }
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: s; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px 18px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--maroon-deep); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; border-radius: 50% 50% 50% 4px; }
.step h3 { margin: 6px 0 4px; font-family: var(--font-display); font-size: 1.3rem; color: var(--maroon); }
.step p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ---------- Numbers grid ---------- */
.shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.shop-head h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--maroon); line-height: 1.1; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #aaa; } .dot.ok { background: #1c9a6c; animation: pulse 2.4s infinite; } .dot.err { background: var(--rose); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(28,154,108,.5);} 50% { box-shadow: 0 0 0 6px rgba(28,154,108,0);} }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar select { width: auto; min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-pale); border-radius: 15px; pointer-events: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-2); }
.card.royal { background: linear-gradient(180deg, #fff6dc, var(--paper) 42%); border-color: var(--gold-2); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; border: 1px solid transparent; }
.badge-royal { background: linear-gradient(135deg, var(--maroon-2), var(--maroon)); color: var(--gold-light); }
.badge-premium { background: #e8e4f6; color: #3d3480; border-color: #c9c2ec; }
.badge-classic { background: var(--gold-pale); color: #7a5410; border-color: var(--gold-light); }
.badge-smart { background: var(--sand); color: var(--ink-2); border-color: var(--line); }
.badge-tag { background: #fff; border-color: var(--line); color: var(--ink-2); font-weight: 600; }
.badge-great { background: var(--teal-soft); color: var(--teal); border-color: #a9d8cf; }
.badge-good { background: #e6f0fb; color: #1f4f8f; border-color: #bfd6f2; }
.badge-low { background: var(--rose-soft); color: var(--rose); border-color: #f0b8b2; }
.number-box { text-align: center; padding: 14px 8px 10px; border-radius: 14px; background: linear-gradient(180deg, #fffaf0, #fff3d6); border: 1px solid var(--gold-pale); position: relative; }
.number-box .num { font-size: clamp(1.7rem, 7.5vw, 2.15rem); color: var(--maroon); line-height: 1.1; white-space: nowrap; }
.number-box mark { background: linear-gradient(transparent 62%, var(--gold-light) 62%); color: inherit; }
.avail { margin-top: 6px; display: flex; justify-content: center; gap: 8px; font-size: .8rem; color: var(--ink-2); flex-wrap: wrap; }
.avail .ok { color: var(--teal); font-weight: 700; display: inline-flex; gap: 5px; align-items: center; }
.avail .no { color: var(--rose); font-weight: 700; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border: 1px solid var(--line-soft); border-radius: 12px; padding: 8px 4px; background: #fff; }
.mini-stats div + div { border-left: 1px solid var(--line-soft); }
.mini-stats small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.mini-stats b { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.mini-stats b.accent { color: var(--gold); }
.match { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; border: 1px solid; font-size: .8rem; }
.link-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--maroon-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-btn:hover { text-decoration: underline; }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); margin-top: auto; position: relative; }
.price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--maroon); line-height: 1; font-variant-numeric: lining-nums; }
.was { font-size: .82rem; color: var(--ink-3); text-decoration: line-through; margin-right: 6px; }
.save { font-size: .72rem; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 2px 8px; border-radius: 99px; }
.card.unavailable { opacity: .62; filter: saturate(.55); }
.card.unavailable:hover { transform: none; box-shadow: none; }
.ribbon { position: absolute; top: 14px; right: -6px; z-index: 2; padding: 4px 16px 4px 12px; background: var(--rose); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%); }
.ribbon.booked { background: var(--saffron); }
.more { text-align: center; margin-top: 24px; }
.empty { text-align: center; padding: 48px 20px; background: var(--paper); border: 1px dashed var(--gold-2); border-radius: 20px; }
.empty h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--maroon); margin: 6px 0; }

/* ---------- FAQ & footer ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--maroon); list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; color: var(--ink-2); }
.site-footer { background: var(--maroon-deep); color: #e9cfc0; padding: 34px 0 24px; margin-top: 30px; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--jali); opacity: .6; }
.site-footer .container { position: relative; display: grid; gap: 18px; text-align: center; }
.site-footer a { color: var(--gold-light); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: 100vw; max-height: 100dvh; }
dialog::backdrop { background: rgba(35, 8, 15, .66); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal { width: min(880px, 100vw - 24px); margin: auto; }
.modal.narrow { width: min(460px, 100vw - 24px); } .modal.wide { width: min(980px, 100vw - 24px); }
.sheet { background: var(--paper); border-radius: 22px; padding: 20px; max-height: calc(100dvh - 24px); overflow-y: auto; border: 1px solid var(--gold-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--maroon); line-height: 1.15; }
.drawer { margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-height: 100dvh; }
.drawer .sheet { height: 100%; max-height: 100%; border-radius: 22px 0 0 22px; display: flex; flex-direction: column; gap: 14px; }
.drawer[open] { animation: slide .25s ease-out; } @keyframes slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.cols { display: grid; gap: 18px; grid-template-columns: 1fr; }
.chart { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chart-cell { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; text-align: center; padding: 2px; }
.chart-cell.on { background: var(--gold-pale); border-color: var(--gold-2); }
.chart-cell.off { opacity: .45; }
.chart-cell small { font-size: .68rem; color: var(--ink-3); } .chart-cell b { font-family: var(--font-display); font-size: 1.35rem; color: var(--maroon); }
.bar { height: 8px; border-radius: 99px; background: var(--sand); overflow: hidden; } .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--saffron)); width: 0; transition: width .5s ease; }
.cart-list > * + * { border-top: 1px dashed var(--line); }
.cart-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; }
.totals { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .9rem; }
.totals > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.totals .grand { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 1.05rem; color: var(--maroon); }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tbl th, table.tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: #fbf6ea; position: sticky; top: 0; }
table.tbl.center td, table.tbl.center th { text-align: center; }
.compare-bar { position: fixed; z-index: 40; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; width: max-content; max-width: calc(100vw - 24px); background: var(--maroon-deep); color: var(--gold-pale); border: 1px solid var(--gold-2); padding: 10px 16px; border-radius: 99px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); }
.toasts { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: 76px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--maroon-deep); color: var(--gold-pale); border-left: 4px solid var(--gold-2); padding: 11px 16px; border-radius: 12px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); max-width: 520px; font-size: .92rem; animation: pop .25s ease-out; }
.toast.warn { border-left-color: var(--saffron); } .toast.err { border-left-color: #ff7b72; }
.qr { background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--line); width: 220px; margin-inline: auto; } .qr img { display: block; width: 100%; height: auto; }
.invoice { font-size: .85rem; }

/* ---------- Admin ---------- */
.admin-wrap { width: min(1280px, 100% - 24px); margin: 18px auto 60px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 14px 0; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .kpi small { color: var(--ink-3); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; } .kpi b { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--maroon); line-height: 1.15; }
.card-plain { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.admin-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
.savebar { position: sticky; top: 64px; z-index: 20; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; box-shadow: 0 8px 20px -14px rgba(90,20,35,.6); }
.savebar.dirty { border-color: var(--saffron); background: #fff6e8; }
.issues { display: grid; gap: 6px; font-size: .88rem; margin: 10px 0 0; padding: 0; list-style: none; }
.issues li { padding: 7px 12px; border-radius: 10px; display: flex; gap: 8px; } .issues li:not(.e):not(.w) { background: var(--teal-soft); color: var(--teal); }
.issues .e { background: var(--rose-soft); color: #7e1a14; } .issues .w { background: #fff1db; color: #7a4a0a; }
.cell-input { width: 110px; min-height: 36px !important; padding: 4px 8px !important; border-radius: 8px !important; font-variant-numeric: tabular-nums; }
.cell-input.short { width: 90px; } .cell-input.invalid { border-color: var(--rose) !important; background: var(--rose-soft); }
.status-select { min-height: 36px !important; padding: 4px 8px !important; border-radius: 99px !important; font-weight: 700; width: auto; }
.status-select.available { background: var(--teal-soft); color: var(--teal); border-color: #a9d8cf; } .status-select.booked { background: #fff1db; color: #8a520a; border-color: #f2cf94; } .status-select.sold { background: var(--rose-soft); color: var(--rose); border-color: #f0b8b2; }
tr.changed td { background: #fffbea; } tr.is-new td { background: #eefaf6; }
.login-card { width: min(420px, 100% - 24px); margin: 12vh auto; }
.history-item { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }

@media (min-width: 640px) {
  .topbar .hide-sm { display: inline; }
  .btn-header .lbl { display: inline; }
  .finder { padding: 24px 26px; }
  .finder-tabs { max-width: 560px; margin-inline: auto; }
  .finder-tabs .tab { flex-direction: row; justify-content: center; gap: 8px; font-size: .92rem; }
  .steps { grid-template-columns: repeat(2, 1fr); } .grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .pos-box { width: 46px !important; height: 58px; }
  .toasts { left: auto; right: 18px; justify-items: end; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .finder-grid.pattern { grid-template-columns: 1.25fr 1.6fr 1.5fr 1.05fr 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(4, 1fr); } .grid { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 5fr 7fr; } .admin-grid { grid-template-columns: 1.3fr 1fr; }
  .hero .container { padding-block: 64px 84px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media print {
  dialog { max-height: none; } .sheet { max-height: none; overflow: visible; border: 0; box-shadow: none; }
  body * { visibility: hidden; }
  #printableInvoice, #printableInvoice * { visibility: visible; }
  #printableInvoice { position: absolute; inset: 0 auto auto 0; width: 100%; background: #fff !important; color: #000 !important; padding: 24px; border: 0 !important; }
}
