@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f0a16;
  --surface: #1a1225;
  --surface-2: #241a33;
  --surface-3: #2e2140;
  --border: rgba(216, 189, 255, 0.14);
  --purple: #9d5fd6;
  --purple-bright: #b57cf0;
  --gold: #d4af6a;
  --gold-bright: #e6c887;
  --text: #f4eefb;
  --text-muted: #b6a4cf;
  --text-faint: #8977a3;
  --danger: #e2725b;
  --success: #6bbf8a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #241a35 0%, transparent 60%),
              radial-gradient(1000px 500px at 100% 0%, #201530 0%, transparent 55%),
              var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin: 0 0 0.4em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); width: 100%; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 10, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(230,200,135,0.45), 0 4px 14px rgba(0,0,0,0.35); flex-shrink: 0; }
.brand .brand-name { display: block; font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--gold-bright); line-height: 1.2; }
.brand .brand-sub { font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
nav.main-nav { display: flex; align-items: center; gap: 26px; }
nav.main-nav a { font-size: 0.92rem; color: var(--text-muted); transition: color .15s; white-space: nowrap; }
nav.main-nav a:hover, nav.main-nav a.active { color: var(--gold-bright); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; flex-shrink: 0; }
.badge-dot {
  position: absolute; top: -4px; right: -4px; background: var(--gold);
  color: #24161a; font-size: 0.65rem; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.menu-toggle { display: none; }
.mobile-nav {
  display: none; flex-direction: column; gap: 2px; padding: 10px 20px 18px;
  border-top: 1px solid var(--border);
}
.mobile-nav a { padding: 12px 4px; font-size: 0.98rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mobile-nav a:active { color: var(--gold-bright); }
.mobile-nav hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.mobile-nav.open { display: flex; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #251707; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--purple-bright); color: var(--purple-bright); }
.btn-ghost { color: var(--text-muted); background: transparent; border: none; padding: 8px 10px; }
.btn-danger { background: rgba(226,114,91,0.15); color: var(--danger); border-color: rgba(226,114,91,0.4); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 90px) 0 clamp(36px, 6vw, 70px); position: relative; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 0.75rem; color: var(--gold-bright); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); line-height: 1.15; max-width: 620px; }
.hero p.lead { font-size: clamp(0.96rem, 2vw, 1.08rem); color: var(--text-muted); max-width: 520px; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge-row { display: flex; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.85rem; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art .ring {
  width: 100%; max-width: 420px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a2652, #150e20 70%);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero-art .ring img { width: 84%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(230,200,135,0.35), 0 18px 50px rgba(0,0,0,0.5); }

/* ---------- Section shells ---------- */
.section { padding: clamp(36px, 6vw, 64px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.45rem, 3.5vw, 1.9rem); }
.section-head p { margin: 6px 0 0; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; transition: all .15s;
}
.cat-tile:hover { border-color: var(--purple-bright); transform: translateY(-3px); background: var(--surface-2); }
.cat-tile .count { display: block; color: var(--text-faint); font-size: 0.78rem; margin-top: 4px; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--purple-bright); }
.product-card .thumb {
  aspect-ratio: 1; background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  padding: 18px; position: relative;
}
.product-card .thumb { overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .cat-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold-bright); }
.product-card h3 { font-size: 1rem; font-family: 'Inter'; font-weight: 600; margin: 0; }
.product-card .size { color: var(--text-faint); font-size: 0.8rem; }
.product-card .price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.price { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--gold-bright); font-weight: 700; }
.stock-badge { font-size: 0.68rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.stock-in { background: rgba(107,191,138,0.15); color: var(--success); }
.stock-out { background: rgba(226,114,91,0.15); color: var(--danger); }
.featured-flag { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #241707; font-size: 0.62rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; }
.product-card.out-of-stock { opacity: 0.72; }
.product-card.out-of-stock .thumb img { filter: grayscale(0.6); opacity: 0.75; }
.product-card.out-of-stock h3 a, .product-card.out-of-stock .price { text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 1.5px; color: var(--text-faint); }
.product-detail.out-of-stock .price-lg { text-decoration: line-through; text-decoration-color: var(--danger); color: var(--text-faint); }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: flex-start; }
.filters-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.filters-box h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.filter-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.filter-list a { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; font-size: 0.88rem; color: var(--text-muted); }
.filter-list a:hover { background: var(--surface-2); color: var(--text); }
.filter-list a.active { background: var(--surface-3); color: var(--gold-bright); font-weight: 600; }
.search-row { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.search-box { flex: 1; display: flex; min-width: 220px; }
.search-box input { flex: 1; padding: 12px 16px; border-radius: 999px 0 0 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.search-box button { border-radius: 0 999px 999px 0; }
select, input, textarea {
  font-family: inherit; font-size: 0.92rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }
.pagination a:hover { border-color: var(--purple-bright); color: var(--text); }
.pagination .current { background: var(--surface-3); color: var(--gold-bright); font-weight: 700; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: flex-start; }
.product-detail .thumb-lg { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; }
.product-detail .thumb-lg { overflow: hidden; }
.product-detail .thumb-lg img { width: 100%; height: 100%; object-fit: contain; }
.product-detail .price-lg { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold-bright); font-weight: 700; margin: 12px 0; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 38px; height: 38px; background: var(--surface); color: var(--text); border: none; font-size: 1.1rem; cursor: pointer; }
.qty-stepper span { width: 40px; text-align: center; font-weight: 600; }
.tasting-note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 24px; }
.tasting-note h4 { color: var(--gold-bright); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.meta-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.meta-tag { background: var(--surface-2); border: 1px solid var(--border); font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; color: var(--text-muted); }

/* ---------- Forms / cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-narrow { max-width: 460px; margin: 60px auto; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--text-muted); }
.field input, .field textarea, .field select { width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 0.9rem; }
.flash-error { background: rgba(226,114,91,0.14); color: var(--danger); border: 1px solid rgba(226,114,91,0.35); }
.flash-success { background: rgba(107,191,138,0.14); color: var(--success); border: 1px solid rgba(107,191,138,0.35); }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100vh;
  background: var(--surface); border-left: 1px solid var(--border); z-index: 100;
  transition: right .25s ease; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,0.4);
}
.cart-drawer.open { right: 0; }
.cart-header { padding: 20px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item img { width: 46px; height: 46px; object-fit: contain; background: var(--surface-2); border-radius: 8px; padding: 4px; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info .name { font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-footer { padding: 18px 22px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90; display: none; }
.cart-overlay.open { display: block; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 74px); }
.admin-side { background: var(--surface); border-right: 1px solid var(--border); padding: 24px 16px; }
.admin-side a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.active { background: var(--surface-2); color: var(--gold-bright); }
.admin-main { padding: 32px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.stat-card .num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold-bright); }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.admin-table th, table.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.88rem; }
table.admin-table th { color: var(--text-muted); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.8px; }
table.admin-table tr:hover td { background: var(--surface-2); }
.status-pill { padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: capitalize; }
.status-pending { background: rgba(212,175,106,0.18); color: var(--gold-bright); }
.status-confirmed, .status-in_progress { background: rgba(157,95,214,0.2); color: var(--purple-bright); }
.status-ready { background: rgba(107,191,138,0.18); color: var(--success); }
.status-completed, .status-fulfilled { background: rgba(107,191,138,0.28); color: var(--success); }
.status-cancelled, .status-declined { background: rgba(226,114,91,0.18); color: var(--danger); }
.status-new { background: rgba(212,175,106,0.18); color: var(--gold-bright); }

/* ---------- Chat ---------- */
.chat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; height: 460px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 75%; padding: 10px 14px; border-radius: 14px; font-size: 0.9rem; display: flex; flex-direction: column; }
.chat-msg-body { white-space: pre-wrap; word-break: break-word; }
.chat-msg.theirs { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.chat-msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--purple-bright), var(--purple)); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg .time { display: block; font-size: 0.65rem; opacity: 0.7; margin-top: 5px; }
.chat-msg.mine .time { text-align: right; opacity: 0.85; }
.chat-msg.theirs .time { text-align: left; }
.chat-input-row { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }
.chat-input-row textarea { flex: 1; resize: none; height: 44px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold-bright); margin-bottom: 14px; }
.footer-grid p, .footer-grid a { color: var(--text-muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--text-faint); font-size: 0.8rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }

.age-gate { position: fixed; inset: 0; background: rgba(6,3,10,0.94); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.age-gate .card { max-width: 420px; text-align: center; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text);
  padding: 14px 22px; border-radius: 999px; font-size: 0.9rem; box-shadow: var(--shadow);
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table-scroll table.admin-table { min-width: 560px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto; }
  .product-detail { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters-box { position: static; }
  .admin-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
}

@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hide-mobile { display: none !important; }
  .admin-side {
    display: flex; overflow-x: auto; gap: 4px; padding: 10px 12px;
    white-space: nowrap; -webkit-overflow-scrolling: touch; border-right: none; border-bottom: 1px solid var(--border);
  }
  .admin-side a { flex-shrink: 0; margin-bottom: 0; }
  .admin-side p.faint, .admin-side-label, .admin-side-user { display: none; }
  .admin-side a[href*="logout"], .admin-side a[href*="pages.home"] { margin-left: 0; }
}

@media (max-width: 720px) {
  .header-inner { padding: 12px 16px; gap: 10px; }
  .brand .brand-sub { display: none; }
  .brand img { width: 38px; height: 38px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badge-row { gap: 12px; margin-top: 26px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
  .cat-tile { padding: 16px 10px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
  .product-card .body { padding: 12px 12px 14px; gap: 6px; }
  .product-card h3 { font-size: 0.92rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cart-drawer { width: 100%; max-width: 100%; }
  .admin-main { padding: 16px; }
  .section { padding-top: 28px; padding-bottom: 28px; }
  .card { padding: 20px; }
  .search-row { gap: 10px; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .qty-row { flex-wrap: wrap; }
  .footer-grid { text-align: left; }
}

/* ---------- Print (receipts) ---------- */
@media print {
  .site-header, .site-footer, .cart-drawer, .cart-overlay, .age-gate,
  nav.main-nav, .no-print, .chat-box, .chat-input-row { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .receipt-print {
    box-shadow: none !important; border: 1px solid #333 !important; background: #fff !important; color: #111 !important;
  }
  .receipt-print .muted, .receipt-print .faint { color: #444 !important; }
  .receipt-print .price, .price-lg, .serif { color: #111 !important; }
  table.admin-table th, table.admin-table td { border-color: #ccc !important; color: #111 !important; }
  .stock-badge { border: 1px solid #333; background: none !important; color: #111 !important; }
}


/* =================================================================
   Additions: accessibility, new components, admin tools
   ================================================================= */
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1b1206; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.no-scroll { overflow: hidden; }
.small { font-size: 0.82rem; }
td.num, th.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.text-danger { color: var(--danger); }
.text-warn { color: var(--gold-bright); }
.link { color: var(--gold-bright); text-decoration: underline; text-decoration-color: rgba(230,200,135,0.35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--gold-bright); }
.link-plain { font-weight: 600; }
.link-plain:hover { color: var(--gold-bright); }
.link-btn { background: none; border: none; color: var(--text-faint); padding: 0; cursor: pointer; text-decoration: underline; font: inherit; }
.link-btn:hover { color: var(--danger); }
.btn-link { color: var(--gold-bright); font-weight: 600; font-size: 0.92rem; align-self: center; }
.btn-link:hover { text-decoration: underline; }
.btn-xs { padding: 5px 10px; font-size: 0.76rem; }
.btn-ghost { cursor: pointer; border-radius: 999px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { color: var(--text); transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.badge-dot[hidden] { display: none !important; }
.badge-dot.static { position: static; }
.badge-inline { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #24161a; font-size: 0.66rem; font-weight: 700; vertical-align: middle; }
.close-x { font-size: 1.5rem; line-height: 1; padding: 4px 12px; }

/* announcement + header search */
.announcement { background: linear-gradient(90deg, #3a2652, #4a2f68, #3a2652); color: var(--gold-bright); text-align: center; font-size: 0.85rem; padding: 8px 16px; letter-spacing: 0.3px; }
.header-search { position: relative; display: flex; align-items: center; }
.header-search > .ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-faint); pointer-events: none; z-index: 1; }
.header-search input { width: 190px; padding: 9px 14px 9px 34px; border-radius: 999px; background: var(--surface-2); transition: width .2s, border-color .2s; }
.header-search input:focus { width: 240px; border-color: var(--gold); outline: none; }
.mobile-search { padding: 8px 0 6px; }
.mobile-search input { width: 100%; border-radius: 999px; padding: 11px 16px; }

/* age gate */
.age-gate-logo { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover; box-shadow: 0 0 0 1px rgba(230,200,135,0.45), 0 10px 30px rgba(0,0,0,0.5); }
.age-gate-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* flashes & toast */
.flash-stack { padding-top: 18px; }
.flash-warn { background: rgba(212,175,106,0.12); color: var(--gold-bright); border: 1px solid rgba(212,175,106,0.35); }
.flash-warn a { color: var(--gold-bright); }
.toast-success { border-color: rgba(107,191,138,0.5); }
.toast-error { border-color: rgba(226,114,91,0.6); color: #ffd9d0; }

/* hero / home */
.hero-search { display: flex; max-width: 520px; margin: 0 0 18px; }
.hero-search input { flex: 1; padding: 14px 20px; border-radius: 999px 0 0 999px; font-size: 1rem; background: var(--surface-2); min-width: 0; }
.hero-search input:focus { outline: none; border-color: var(--gold); }
.hero-search .btn { border-radius: 0 999px 999px 0; padding: 14px 24px; }
.hero-search.centered { margin: 22px auto 18px; }
.hero-actions { align-items: center; }
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(26,18,37,0.6); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item .ico { width: 28px; height: 28px; color: var(--gold-bright); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.92rem; }
.trust-item span { display: block; color: var(--text-faint); font-size: 0.8rem; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-alt { background: var(--surface-2); border-top: 1px solid var(--border); }
.narrow-copy { max-width: 820px; }
.story-text { font-size: 1.05rem; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card.flat { box-shadow: none; }
.steps { margin: 0 0 18px; padding-left: 20px; color: var(--text-muted); }
.steps li { margin-bottom: 6px; }

/* shop */
.section-tight { padding-top: 26px; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.shop-head h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: 2px; }
.shop-head p { margin: 0; }
.filters-toggle { display: none; }
.filter-search { margin-bottom: 20px; }
.filter-search .search-box { min-width: 0; }
.filter-search .search-box input { min-width: 0; }
.filter-search .btn { padding: 10px 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; cursor: pointer; }
.toggle input { accent-color: var(--gold); width: 16px; height: 16px; }
.pagination .gap { border: none; }
.product-card h3 a:hover { color: var(--gold-bright); }
.product-card .thumb img { transition: transform .25s; }
.product-card:hover .thumb img { transform: scale(1.04); }

/* product page */
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--gold-bright); }
.product-title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 6px; line-height: 1.2; }
.deposit-note { margin-top: -8px; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 0; }
.spec-list div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.spec-list dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
.spec-list dd { margin: 2px 0 0; font-size: 0.9rem; }
.product-detail .thumb-lg img { object-fit: contain; }

/* request / info */
.success-card { margin-top: 30px; border-color: rgba(107,191,138,0.4); }
.info-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.gold-label { color: var(--gold-bright); font-size: 1rem; }
.map-frame { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 7; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg); }
.empty-inline { padding: 18px 22px; }

/* checkout */
.checkout-layout { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 32px; align-items: start; }
.order-summary { position: sticky; top: 96px; }
.card-title { font-size: 1.1rem; margin-bottom: 14px; }
.cart-item.compact { padding: 10px 0; }
.cart-item .name { display: block; font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item a.name:hover { color: var(--gold-bright); }
.line-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-rows { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 8px; }
.cart-total-row.light { font-weight: 400; color: var(--text-muted); }
.cart-total-row.grand { border-top: 1px solid var(--border); padding-top: 10px; font-size: 1.05rem; }

/* receipt */
.receipt-head { text-align: center; border-bottom: 1px dashed var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.receipt-head img { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; }
.receipt-store { font-size: 1.3rem; color: var(--gold-bright); }
.receipt-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-neutral { background: var(--surface-3); color: var(--text-muted); }
.receipt-title { margin-top: 14px; font-size: 1.5rem; }
.receipt-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.pickup-callout { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 16px; margin: 6px 0 16px; }
.pickup-callout strong { font-size: 1.05rem; color: var(--gold-bright); }
.receipt-table { margin-top: 6px; }
.receipt-totals { margin-top: 14px; }
.is-unavailable td { color: var(--text-faint); }
.id-notice { margin-top: 20px; padding: 12px 16px; border-radius: 10px; font-size: 0.88rem; background: rgba(212,175,106,0.12); color: var(--gold-bright); border: 1px solid rgba(212,175,106,0.3); }
.receipt-foot { text-align: center; margin-top: 18px; }
.receipt-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* typeahead */
.typeahead { position: relative; }
.typeahead input { width: 100%; }
.typeahead-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; z-index: 30; max-height: 340px; overflow-y: auto; box-shadow: var(--shadow); }
.typeahead-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--border); background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.typeahead-row:hover { background: var(--surface-3); }
.typeahead-row img { width: 34px; height: 34px; object-fit: contain; background: var(--surface); border-radius: 6px; }
.typeahead-row .name { display: block; font-size: 0.86rem; }
.typeahead-row .faint { display: block; }
.typeahead-empty { padding: 12px; }

/* footer */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 0.8fr; }
.footer-brand { font-size: 1.3rem; color: var(--gold-bright); }
.footer-about { margin-top: 12px; max-width: 340px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.footer-grid p { margin: 0 0 8px; }

/* ---------------- admin ---------------- */
.admin-body .site-header { position: static; }
.admin-side { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; }
.admin-side-label { padding: 0 14px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.72rem; color: var(--text-faint); margin: 0 0 4px; }
.admin-side-user { padding: 0 14px 12px; font-size: 0.82rem; color: var(--text-faint); margin: 0; }
.admin-side .side-secondary { margin-top: 18px; }
.admin-side .side-danger { color: var(--danger); }
.admin-main { min-width: 0; }
.admin-main h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.sub-head { font-size: 1.08rem; margin-top: 8px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-bottom: 28px; }
a.stat-card { transition: border-color .15s, transform .15s; }
a.stat-card:hover { border-color: var(--purple-bright); transform: translateY(-2px); }
.stat-grid { margin-bottom: 24px; }
tr.row-link { cursor: pointer; }
tr.row-unread td { background: rgba(212,175,106,0.06); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); background: transparent; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--purple-bright); color: var(--text); }
.chip.active { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #251707; border-color: transparent; font-weight: 600; }
.status-select { padding: 5px 8px; font-size: 0.8rem; border-radius: 999px; font-weight: 600; }
.actions-cell { white-space: nowrap; }
.actions-cell, .actions-cell form { display: inline-flex; gap: 6px; align-items: center; }
td.actions-cell { display: table-cell; }
.collapsible { margin-bottom: 20px; padding: 18px 22px; }
.collapsible summary { cursor: pointer; line-height: 1.8; }
.qty-form { display: inline-flex; gap: 6px; align-items: center; }
.qty-form input { width: 64px; padding: 6px 8px; }
.add-item-card { margin-top: 16px; padding: 20px; }
.quick-replies { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.danger-zone { margin-top: 26px; padding-top: 18px; border-top: 1px dashed rgba(226,114,91,0.35); }
.filter-bar select { max-width: 200px; }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px dashed var(--border); border-radius: 12px; opacity: 0.55; transition: opacity .15s, border-color .15s; }
.bulk-bar.active { opacity: 1; border-color: var(--gold); border-style: solid; background: rgba(212,175,106,0.06); }
.check-col { width: 36px; }
.check-col input, .check-row input, .smart-table input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }
.thumb-sm { width: 40px; height: 40px; object-fit: contain; background: var(--surface-2); border-radius: 8px; padding: 3px; }
.price-edit { display: inline-flex; align-items: center; gap: 2px; color: var(--text-faint); }
.price-input { width: 86px; padding: 5px 8px; transition: border-color .3s, box-shadow .3s; }
.price-input.saved { border-color: var(--success); box-shadow: 0 0 0 2px rgba(107,191,138,0.25); }
.price-input.invalid { border-color: var(--danger); }
.pill-btn { border: none; cursor: pointer; font-family: inherit; }
.star-btn { background: none; border: none; font-size: 1.25rem; color: var(--surface-3); cursor: pointer; line-height: 1; padding: 2px 6px; transition: color .15s, transform .15s; -webkit-text-stroke: 1px var(--text-faint); }
.star-btn.on { color: var(--gold); -webkit-text-stroke: 0; }
.star-btn:hover { transform: scale(1.2); }
.smart-card { margin-bottom: 20px; border-color: rgba(212,175,106,0.4); background: linear-gradient(135deg, rgba(58,38,82,0.6), var(--surface)); }
.smart-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.smart-badge { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #251707; font-weight: 700; font-size: 0.78rem; padding: 4px 12px; border-radius: 999px; }
.smart-info { margin-top: 12px; font-size: 0.88rem; color: var(--text-muted); }
.conf { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
.conf-high { background: rgba(107,191,138,0.18); color: var(--success); }
.conf-medium { background: rgba(212,175,106,0.18); color: var(--gold-bright); }
.conf-low { background: rgba(226,114,91,0.18); color: var(--danger); }
.photo-card { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; }
.photo-preview { width: 120px; height: 120px; object-fit: contain; background: var(--surface-2); border-radius: 12px; padding: 8px; }
.photo-form { display: flex; flex-direction: column; gap: 6px; max-width: 460px; }
.label-row { display: flex !important; justify-content: space-between; align-items: center; }
.check-row { display: flex; gap: 22px; flex-wrap: wrap; }
.check-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.smart-table td { vertical-align: top; }
.smart-table input, .smart-table select, .smart-table textarea { padding: 6px 8px; font-size: 0.84rem; }
.smart-table .f-name { width: 100%; min-width: 220px; }
.smart-table textarea { width: 260px; margin-top: 6px; }
.smart-row.is-dup td { background: rgba(212,175,106,0.06); }
.content-form .card { margin-bottom: 18px; max-width: 820px; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 12px; max-width: 820px; }

@media (max-width: 1100px) {
  .header-search { display: none; }
}
@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-toggle { display: inline-flex; }
  .filters-box { display: none; }
  .filters-box.open { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-side { position: static; height: auto; }
}
@media (max-width: 720px) {
  .hero-search input { padding: 12px 16px; }
  .hero-search .btn { padding: 12px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .map-frame { aspect-ratio: 4 / 3; }
  .brand .brand-name { font-size: 1.05rem; }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-item span { display: none; }
  .header-actions { gap: 8px; }
}
@media print {
  .announcement, .admin-side, .skip-link { display: none !important; }
  .receipt-head img { box-shadow: none; }
}


/* ---------- online ordering status (pause switch, open/closed) ---------- */
.ordering-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.announcement-paused { background: linear-gradient(90deg, #5a1f22, #6e2a26, #5a1f22); color: #ffe1d6; }
.announcement-paused strong { color: #fff; }
.store-status { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; }
.store-status.open { color: var(--success); }
.store-status.closed { color: var(--gold-bright); }
.store-status.open .ordering-dot { box-shadow: 0 0 0 4px rgba(107,191,138,0.18); }
.hero-status { margin: -4px 0 16px; }
.paused-note { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; margin-bottom: 4px;
  background: rgba(226,114,91,0.12); border: 1px solid rgba(226,114,91,0.35); font-size: 0.88rem; color: #ffd9d0; }
.paused-card { margin-top: 20px; border-color: rgba(226,114,91,0.45); background: linear-gradient(135deg, rgba(110,42,38,0.35), var(--surface)); }
.paused-card p { color: var(--text); }
.ordering-card { margin-bottom: 24px; }
.ordering-card.is-live { border-color: rgba(107,191,138,0.4); }
.ordering-card.is-paused { border-color: rgba(226,114,91,0.55); background: linear-gradient(135deg, rgba(110,42,38,0.35), var(--surface)); }
.ordering-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ordering-state { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.is-live .ordering-state { color: var(--success); }
.is-paused .ordering-state { color: #ff9c86; }
.ordering-form textarea { width: 100%; margin-top: 6px; }
.admin-side a.ordering-pill { font-weight: 600; font-size: 0.82rem; margin-bottom: 12px; gap: 8px; justify-content: flex-start; border: 1px solid; }
.admin-side a.ordering-pill.live { color: var(--success); border-color: rgba(107,191,138,0.35); background: rgba(107,191,138,0.08); }
.admin-side a.ordering-pill.paused { color: #ff9c86; border-color: rgba(226,114,91,0.5); background: rgba(226,114,91,0.12); }

/* =================================================================
   Professional polish: imagery, home, product page, rails
   ================================================================= */
/* Product imagery: every card uses the same 4:5 frame, filled edge to edge. */
.product-card .thumb { aspect-ratio: 4 / 5; padding: 0; background: #1d1529; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .thumb img { transform: scale(1.03); }
.product-detail .thumb-lg { aspect-ratio: 4 / 5; padding: 0; overflow: hidden; max-height: 640px; background: #1d1529; }
.product-detail .thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.product-detail { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.product-card .body h3 { line-height: 1.35; }
.product-card .featured-flag { z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }

/* Headings */
.section-title { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0; }
.h-label { font-family: 'Inter', sans-serif; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--gold-bright); margin: 0 0 10px; }
.btn-lg { padding: 13px 28px; font-size: 0.98rem; }
.break-any { overflow-wrap: anywhere; }

/* Hero showcase */
.showcase { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 auto; }
.showcase-card { position: absolute; width: 46%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #1d1529;
  border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,0.5); transition: transform .25s; }
.showcase-card img { width: 100%; height: 100%; object-fit: cover; }
.showcase-card.s1 { left: 0; top: 10%; transform: rotate(-6deg); }
.showcase-card.s2 { left: 27%; top: 0; z-index: 2; }
.showcase-card.s3 { right: 0; top: 12%; transform: rotate(6deg); }
.showcase-card:hover { transform: translateY(-6px) rotate(0); z-index: 3; }
.showcase-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; display: flex; justify-content: space-between; gap: 6px;
  align-items: flex-end; font-size: 0.72rem; line-height: 1.25; color: #fff; background: linear-gradient(transparent, rgba(10,6,16,0.92)); }
.showcase-label span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.showcase-label strong { color: var(--gold-bright); white-space: nowrap; }
.showcase-logo { position: absolute; width: 24%; left: 38%; bottom: 2%; aspect-ratio: 1; object-fit: cover; z-index: 4; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(230,200,135,0.5), 0 12px 30px rgba(0,0,0,0.55); }

/* Category tiles */
.cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px 22px; }
.cat-tile strong { font-size: 0.95rem; }
.cat-ico { width: 44px; height: 44px; fill: none; stroke: var(--gold-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cat-tile:hover .cat-ico { transform: translateY(-2px) scale(1.06); }
.cat-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }

/* Shop */
.shop-intro { margin: 2px 0 0; max-width: 720px; }
.filter-list { max-height: none; }

/* Product page: buying box */
.product-buy .price-lg { margin: 8px 0 10px; }
.product-size { margin: 0; }
.buy-points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 0.86rem; color: var(--text-muted); }
.buy-points li { display: flex; gap: 8px; align-items: baseline; }
.buy-points li::before { content: "✓"; color: var(--success); font-weight: 700; }
.tasting-note h2.h-label { margin-bottom: 8px; }
.tasting-note p { margin: 0; line-height: 1.65; }

/* About this product */
.about-product { margin-top: 56px; }
.about-product .section-title { margin-bottom: 18px; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.about-card p { color: var(--text-muted); line-height: 1.65; margin: 0 0 12px; }
.about-card .about-lead { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.fact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 0; }
.fact-list div { background: var(--surface-2); border-radius: 10px; padding: 9px 12px; }
.fact-list dt, .taste-list dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
.fact-list dd { margin: 2px 0 0; font-size: 0.88rem; }
.taste-list { margin: 0; display: grid; gap: 12px; }
.taste-list dd { margin: 3px 0 0; color: var(--text); line-height: 1.55; }
.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.meter-head { font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; }
.meter-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter-track span { height: 7px; border-radius: 4px; background: var(--surface-3); }
.meter-track span.on { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.meter-ends { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-faint); margin-top: 4px; }
.tips { margin: 16px 0 0; padding-left: 18px; color: var(--text-muted); display: grid; gap: 6px; line-height: 1.55; }
.pair-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.pair-chips li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 0.86rem; }
.about-note { margin: 0 !important; }

/* Suggestion rails: horizontal, swipeable on phones */
.rail-section { margin-top: 52px; }
.rail-head { margin-bottom: 16px; align-items: center; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }

/* Visit page */
.info-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cta-card { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-color: rgba(212,175,106,0.35); background: linear-gradient(135deg, rgba(58,38,82,0.55), var(--surface)); }
.cta-card h3 { margin-bottom: 4px; }
.cta-card p { margin: 0; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .showcase { max-width: 340px; }
  .hero-art { order: 0; max-width: none; }
}
@media (max-width: 720px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile { padding: 18px 10px 16px; gap: 8px; }
  .cat-ico { width: 36px; height: 36px; }
  .rail { grid-auto-columns: 44%; gap: 12px; }
  .about-card { padding: 20px; }
  .showcase { max-width: 300px; }
  .product-detail .thumb-lg { max-height: 460px; }
}

/* Phone/tablet layout fixes for the polished components (must come last). */
@media (max-width: 980px) {
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-detail .thumb-lg { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-art { width: 100%; }
  .showcase { width: min(100%, 380px); }
}
@media (max-width: 720px) {
  .showcase { width: min(100%, 320px); margin-top: 8px; }
  .qty-row .btn-lg { flex: 1; }
}


/* ---------- bag ---------- */
.bag-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 32px; align-items: start; }
.bag-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.bag-head h1 { margin: 0; }
.bag-items { display: grid; gap: 14px; margin-bottom: 22px; }
.bag-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.bag-item.is-sold-out { opacity: 0.7; }
.bag-thumb { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: #1d1529; }
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.bag-name { font-weight: 600; font-size: 1rem; line-height: 1.3; }
.bag-name:hover { color: var(--gold-bright); }
.bag-qty { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.bag-qty .line-total { font-size: 1.05rem; color: var(--gold-bright); font-family: 'Playfair Display', serif; font-weight: 700; }
.qty-stepper input { width: 46px; text-align: center; border: none; border-radius: 0; background: var(--surface); padding: 8px 2px; font-weight: 600; -moz-appearance: textfield; }
.qty-stepper input::-webkit-inner-spin-button, .qty-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bag-empty { text-align: center; padding: 40px 20px; }
.drawer-bag-link { display: block; text-align: center; margin-top: 10px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item .line-total { font-size: 0.86rem; }
.toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.toast-action { background: none; border: 1px solid var(--gold); color: var(--gold-bright); border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 600; cursor: pointer; }
button.in-bag { border-color: rgba(107,191,138,0.55); color: var(--success); }
@media (max-width: 980px) { .bag-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .bag-item { grid-template-columns: 72px minmax(0, 1fr); }
  .bag-qty { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- admin: search, alerts, orders board ---------- */
.admin-search { margin: 0 0 14px; }
.admin-search input { width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; background: var(--surface-2); }
.admin-side .side-alerts { display: flex; width: 100%; align-items: center; gap: 6px; margin-top: 18px; padding: 9px 14px; border-radius: 10px;
  background: transparent; border: 1px dashed var(--border); color: var(--text-muted); font: inherit; font-size: 0.82rem; cursor: pointer; text-align: left; }
.admin-side .side-alerts.on { border-style: solid; border-color: rgba(107,191,138,0.45); color: var(--success); }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.board-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; min-height: 240px; }
.board-col-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 12px; }
.board-col-head h2 { font-family: 'Inter', sans-serif; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.col-pending .board-col-head h2 { color: var(--gold-bright); }
.col-confirmed .board-col-head h2 { color: var(--purple-bright); }
.col-ready .board-col-head h2 { color: var(--success); }
.board-count { background: var(--surface-3); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 700; }
.board-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; transition: border-color .15s; }
.board-card:hover { border-color: var(--purple-bright); }
.board-card.is-new { border-left: 3px solid var(--gold); }
.board-card.is-late { border-left: 3px solid var(--danger); }
.board-card-main { display: block; padding: 12px 14px 8px; }
.board-card-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.board-pickup { margin: 4px 0 2px; font-weight: 600; color: var(--text); font-size: 0.9rem; }
.is-today .board-pickup { color: var(--gold-bright); }
.is-late .board-pickup { color: var(--danger); }
.board-note { margin-top: 6px; font-size: 0.78rem; color: var(--text-muted); background: var(--surface); border-radius: 8px; padding: 6px 8px; }
.board-actions { display: flex; gap: 6px; padding: 0 14px 12px; flex-wrap: wrap; }
.board-actions form { margin: 0; }
.board-empty { text-align: center; padding: 24px 0; }
.badge-inline.msg { background: var(--purple-bright); color: #fff; }
@media (max-width: 1100px) { .board { grid-template-columns: 1fr; } }


/* ---------- product import ---------- */
.upload-card { max-width: 760px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 38px 20px; border: 2px dashed var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: rgba(212,175,106,0.06); }
.dropzone.has-file { border-style: solid; border-color: rgba(107,191,138,0.55); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone-icon { font-size: 2rem; color: var(--gold-bright); line-height: 1; }
.mapping-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 22px; }
.mapping-row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 10px; align-items: center; font-size: 0.86rem; }
.mapping-row select { padding: 7px 9px; font-size: 0.84rem; }
.mapping-sample { grid-column: 2; min-height: 1em; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.option input { accent-color: var(--gold); width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.option span { display: flex; flex-direction: column; gap: 2px; font-size: 0.88rem; }
.option.danger-opt { border-color: rgba(226,114,91,0.35); }
.import-stats { margin-top: 20px; }
.stat-new .num { color: var(--success); }
.stat-warn .num { color: var(--danger); }
.apply-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 18px; background: rgba(26,18,37,0.96); border: 1px solid rgba(212,175,106,0.4); border-radius: var(--radius); backdrop-filter: blur(6px); }
.change + .change { margin-top: 3px; }
@media (max-width: 720px) { .mapping-row { grid-template-columns: 1fr; } .mapping-sample { grid-column: 1; } }

/* ---------- admin system status ---------- */
.system-card { display: grid; gap: 12px; margin-bottom: 28px; padding: 20px 24px; }
.sys-row { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.sys-row strong { color: var(--text); }
.sys-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--success); }
.sys-row.warn .sys-dot { background: var(--gold); }
.sys-row.bad .sys-dot { background: var(--danger); }
.sys-row.bad { color: #ffd9d0; }

/* ---------- forgot password ---------- */
.forgot-email { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; margin: 10px 0 14px; border-radius: 12px;
  border: 1px solid rgba(212,175,106,0.45); background: rgba(212,175,106,0.08); }
.forgot-email strong { color: var(--gold-bright); font-size: 1.05rem; overflow-wrap: anywhere; }
.forgot-email:hover { background: rgba(212,175,106,0.14); }
hr.soft { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* ---------- availability request ---------- */
.availability { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; background: var(--surface); }
.availability[open] { border-color: rgba(212,175,106,0.45); }
.availability summary { cursor: pointer; font-weight: 600; color: var(--gold-bright); }
.availability-form { margin-top: 14px; }
.request-product { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.request-product form { margin: 0; }

/* ---------- barcode scanning ---------- */
.scan-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--gold-bright); cursor: pointer;
  padding: 0 12px; min-height: 40px; font: inherit; font-size: 0.85rem; font-weight: 600; }
.scan-btn:hover { border-color: var(--gold); background: var(--surface-3); }
.scan-btn .ico { width: 18px; height: 18px; }
.search-box .scan-btn, .hero-search .scan-btn { border-left: none; border-radius: 0; }
.header-search { gap: 0; }
.header-search input { border-radius: 999px 0 0 999px; }
.header-search .scan-btn { border-radius: 0 999px 999px 0; border-left: none; min-height: 37px; padding: 0 12px; }
.header-search input:focus { width: 230px; }
.mobile-search { display: flex; gap: 8px; }
.mobile-search input { flex: 1; min-width: 0; }
.mobile-search .scan-btn { border-radius: 999px; }
.admin-search { display: flex; }
.admin-search input { border-radius: 10px 0 0 10px; min-width: 0; }
.admin-search .scan-btn { border-radius: 0 10px 10px 0; border-left: none; min-height: 36px; padding: 0 10px; }
.hero-search.centered .scan-btn { border-left: none; }
.scan-modal { position: fixed; inset: 0; z-index: 500; background: rgba(6,3,10,0.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.scan-box { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.scan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.scan-view { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 12px; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; left: 10%; right: 10%; top: 32%; bottom: 32%; border: 2px solid var(--gold-bright); border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.35); }
.scan-frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: rgba(226,114,91,0.9);
  animation: scanline 1.6s ease-in-out infinite; }
@keyframes scanline { 0%,100% { transform: translateY(-18px); } 50% { transform: translateY(18px); } }
.scan-status { margin: 10px 0; min-height: 1.2em; }
.scan-manual { display: flex; gap: 8px; }
.scan-manual input { flex: 1; min-width: 0; }
@media (max-width: 720px) { .hero-search .scan-btn span { display: none; } }

/* ---------- card quantity control ---------- */
.card-cart { margin-top: 2px; }
.card-stepper { display: grid; grid-template-columns: 36px 1fr 36px; align-items: stretch; border: 1px solid rgba(107,191,138,0.55);
  border-radius: 999px; overflow: hidden; min-height: 34px; }
.card-stepper button { background: var(--surface-2); color: var(--text); border: none; font-size: 1.05rem; cursor: pointer; }
.card-stepper button:hover:not(:disabled) { background: var(--surface-3); color: var(--gold-bright); }
.card-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.card-qty { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.8rem; color: var(--success); font-weight: 600; }
.card-qty strong { font-size: 0.95rem; }
.in-bag-note { margin: -6px 0 10px; font-size: 0.88rem; color: var(--success); }

/* sidebar search: keep the text field usable next to the scan + search buttons */
.filter-search .search-box input { padding-left: 12px; padding-right: 6px; }
.filter-search .scan-btn { padding: 0 9px; }
.filter-search .btn { padding: 10px 12px; }
@media (max-width: 560px) {
  .toast { width: calc(100% - 32px); max-width: none; border-radius: 14px; text-align: left; bottom: 16px; }
  .toast.has-action { justify-content: space-between; }
  .toast-action { flex-shrink: 0; }
}

/* ---------- import: items not in the file ---------- */
.missing-card.is-active { border-color: rgba(212,175,106,0.45); }
.missing-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.missing-options .option input[type=radio] { accent-color: var(--gold); width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.coverage-warning { margin: 14px 0 0; }
.confirm-full { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--text); font-weight: 600; cursor: pointer; }
.confirm-full input { accent-color: var(--danger); width: 18px; height: 18px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.static-chip { cursor: default; font-size: 0.78rem; }

/* ---------- Google Maps ---------- */
.store-map { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.store-map .map-frame { position: relative; display: block; margin: 0; border: none; border-radius: 0; aspect-ratio: 16 / 8; cursor: pointer; }
.store-map .map-frame iframe { pointer-events: none; }  /* the whole map is one link to Google Maps */
.map-click-layer { position: absolute; inset: 0; }
.map-badge { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 999px; background: rgba(15,10,22,0.88); color: var(--gold-bright); font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(212,175,106,0.5); box-shadow: 0 6px 18px rgba(0,0,0,0.4); transition: transform .15s; }
.map-badge .ico { width: 16px; height: 16px; }
.store-map .map-frame:hover .map-badge { transform: translateY(-2px); }
.map-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; }
.map-address { display: flex; flex-direction: column; gap: 2px; }
.find-us { border-top: 1px solid var(--border); }
.find-us-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.find-us-grid .store-map { margin-top: 0; }
.hours-list { display: grid; gap: 6px; margin: 14px 0; max-width: 340px; }
.hours-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; font-size: 0.92rem; }
.hours-list dt { color: var(--text-muted); }
.hours-list dd { margin: 0; }
.footer-map-link { color: var(--gold-bright) !important; font-size: 0.85rem; }
@media (max-width: 860px) { .find-us-grid { grid-template-columns: 1fr; gap: 20px; } .store-map .map-frame { aspect-ratio: 4 / 3; } }

/* ---------- accuracy note (corner + footer) ---------- */
.site-note { position: fixed; left: 16px; bottom: 16px; z-index: 80; max-width: 340px; display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 34px 12px 14px; border-radius: 12px; background: rgba(26,18,37,0.96); border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45); backdrop-filter: blur(6px); font-size: 0.8rem; line-height: 1.45; color: var(--text-muted); }
.site-note .ico { width: 18px; height: 18px; color: var(--gold-bright); flex-shrink: 0; margin-top: 1px; }
.site-note p { margin: 0; }
.site-note strong { color: var(--text); }
.site-note a { color: var(--gold-bright); white-space: nowrap; }
.site-note-close { position: absolute; top: 4px; right: 6px; background: none; border: none; color: var(--text-faint); font-size: 1.2rem;
  line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.site-note-close:hover { color: var(--text); background: var(--surface-2); }
.footer-note { margin: 28px 0 0; font-size: 0.8rem; color: var(--text-faint); text-align: center; }
@media (max-width: 560px) {
  .site-note { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}
@media print { .site-note { display: none !important; } }

/* ---------- parties & events ---------- */
.events-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 5vw, 48px); background:
  radial-gradient(900px 400px at 80% 0%, rgba(157,95,214,0.22), transparent 60%),
  radial-gradient(700px 300px at 0% 100%, rgba(212,175,106,0.12), transparent 60%); border-bottom: 1px solid var(--border); }
.events-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); max-width: 760px; line-height: 1.15; }
.events-hero .lead { color: var(--text-muted); max-width: 680px; font-size: 1.05rem; margin: 14px 0 24px; }
.events-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--text-muted); font-size: 0.9rem; }
.events-points li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.event-card { box-shadow: none; scroll-margin-top: 90px; }
.event-card h2 { font-size: 1.35rem; }
.event-card.highlight { border-color: rgba(212,175,106,0.4); background: linear-gradient(135deg, rgba(58,38,82,0.45), var(--surface)); }
.event-card.highlight p { color: var(--text); }
.event-icon { font-size: 1.8rem; margin-bottom: 8px; }
.steps-row { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-row li { counter-increment: step; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps-row li::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #251707; font-weight: 700; margin-bottom: 6px; }
.steps-row span { color: var(--text-muted); font-size: 0.9rem; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.calc-inputs { display: flex; gap: 16px; margin: 18px 0; }
.calc-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.calc-inputs input { width: 120px; font-size: 1rem; }
.calc-mix { display: grid; gap: 10px; }
.calc-mix label { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 10px; font-size: 0.88rem; }
.calc-mix input[type=range] { accent-color: var(--gold); padding: 0; border: none; background: none; }
.calc-mix output { text-align: right; color: var(--gold-bright); font-weight: 600; }
.calc-result { scroll-margin-top: 90px; }
.calc-total { font-size: 1rem; color: var(--text-muted); margin-bottom: 14px; }
.calc-total span { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold-bright); font-weight: 700; margin-right: 4px; }
.calc-rows { display: grid; gap: 12px; margin-bottom: 14px; }
.calc-rows div { display: flex; gap: 14px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 12px 16px; }
.calc-rows strong { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--gold-bright); min-width: 56px; text-align: center; }
.event-form .fulfil { border: none; padding: 0; margin: 0 0 16px; display: flex; gap: 22px; flex-wrap: wrap; }
.event-form .fulfil legend { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; padding: 0; }
.event-form .fulfil label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.event-form .fulfil input { accent-color: var(--gold); width: 16px; height: 16px; }
#plan { scroll-margin-top: 80px; }
.promo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promo-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.promo-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.promo-icon { font-size: 1.6rem; }
.events-promo { border-top: 1px solid var(--border); }
.bag-party-tip { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 0 0 18px; border-radius: 12px;
  border: 1px dashed rgba(212,175,106,0.45); background: rgba(212,175,106,0.06); }
@media (max-width: 980px) { .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .events-grid, .steps-row { grid-template-columns: 1fr; }
  .calc-mix label { grid-template-columns: 1fr 48px; }
  .calc-mix label input { grid-column: 1 / -1; grid-row: 2; }
  .calc-inputs input { width: 100%; }
}
@media (max-width: 480px) { .promo-grid { grid-template-columns: 1fr; } }

/* =================================================================
   Maintenance mode
   ================================================================= */
.announcement-maint { background: linear-gradient(90deg, #3d2a10, #5a3d14, #3d2a10); color: #ffe6b8; }
.announcement-maint strong { color: #fff; }
.announcement-maint a { color: #fff; text-decoration: underline; margin-left: 6px; }
.announcement-maint.admin { background: linear-gradient(90deg, #22314a, #2c4061, #22314a); color: #d6e4ff; }
.maint-page { padding-top: 56px; }
.maint-wrap { max-width: 920px; }
.maint-hero { text-align: center; margin-bottom: 32px; }
.maint-hero .lead { max-width: 620px; margin: 0 auto 10px; }
.maint-logo { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; display: block; box-shadow: 0 0 0 4px rgba(212,175,106,0.25); }
.maint-until { display: inline-block; padding: 8px 16px; border-radius: 999px; background: rgba(212,175,106,0.12); border: 1px solid rgba(212,175,106,0.35); color: var(--gold-bright); }
.maint-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.maint-card h2 { font-size: 1.3rem; margin-top: 0; }
.maint-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.maint-links a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.maint-links a:hover { border-color: var(--gold); color: var(--gold-bright); }
.maint-contact { display: flex; gap: 10px; flex-wrap: wrap; }
.maint-inline { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(212,175,106,0.1); border: 1px solid rgba(212,175,106,0.3); font-size: 0.9rem; }

/* admin */
.admin-side a.maint-pill.live { color: var(--text-muted); border-color: var(--border); background: transparent; }
.maint-status { margin-bottom: 20px; }
.maint-status.is-off .ordering-state { color: var(--success); }
.maint-status.is-on { border-color: rgba(230,170,80,0.6); background: linear-gradient(135deg, rgba(90,61,20,0.45), var(--surface)); }
.maint-status.is-on .ordering-state { color: #ffc56e; }
.maint-status-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.maint-status-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feature-chip { display: inline-block; font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; margin: 2px 4px 2px 0; }
.feature-chip.on { background: rgba(107,191,138,0.14); color: var(--success); border: 1px solid rgba(107,191,138,0.35); }
.feature-chip.off { background: rgba(226,114,91,0.12); color: #ff9c86; border: 1px solid rgba(226,114,91,0.4); }
.maint-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.maint-layout > div > .card { margin-bottom: 20px; }
.maint-summary { position: sticky; top: 20px; }
.maint-summary-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.maint-summary-list li { padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; }
.maint-summary-list li.on { background: rgba(107,191,138,0.1); color: var(--success); }
.maint-summary-list li.on::before { content: "\2713"; font-weight: 700; }
.maint-summary-list li.off { background: rgba(226,114,91,0.08); color: var(--text-faint); text-decoration: line-through; }
.maint-summary-list li.off::before { content: "\2715"; color: #ff9c86; text-decoration: none; }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #251707; font-family: Inter, system-ui, sans-serif; font-size: 0.85rem; font-weight: 700; margin-right: 6px; vertical-align: 2px; }
.maint-presets { margin: 8px 0 16px; }
.feature-list { display: grid; gap: 8px; margin-bottom: 14px; }
.feature-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; }
.feature-option:has(input:checked) { border-color: rgba(107,191,138,0.5); background: rgba(107,191,138,0.07); }
.feature-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--success); flex-shrink: 0; }
.feature-text { display: flex; flex-direction: column; gap: 2px; }
.check-inline { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; cursor: pointer; }
@media (max-width: 900px) {
  .maint-layout { grid-template-columns: 1fr; }
  .maint-summary { position: static; }
}
.check-inline input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; margin: 0; accent-color: var(--gold); }

/* =================================================================
   Photo Finder
   ================================================================= */
.photo-progress { margin-bottom: 20px; }
.photo-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.photo-big { font-size: 1.8rem; font-family: "Playfair Display", serif; color: var(--gold-bright); }
.photo-progress .bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.photo-progress .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); border-radius: 999px; min-width: 4px; }
#autoCard { margin-bottom: 20px; }
.auto-stats { display: flex; gap: 18px; margin: 12px 0 4px; color: var(--text-muted); }
.auto-stats strong { color: var(--text); }
.auto-log { list-style: none; padding: 0; margin: 10px 0 0; max-height: 320px; overflow: auto; display: grid; gap: 4px; font-size: 0.86rem; }
.auto-log li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.auto-log li img { width: 32px; height: 40px; object-fit: contain; background: #fff; border-radius: 4px; }
.auto-log li.ok { border-left: 3px solid var(--success); }
.auto-log li.none { border-left: 3px solid var(--border); }
.auto-log li.info { background: transparent; color: var(--text-muted); }
.auto-log .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.photo-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.photo-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #1d1529; }
.photo-item.is-done { border-color: rgba(107,191,138,0.6); }
.photo-item-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.photo-item-body .btn { margin-top: auto; }
.photo-item-name { color: var(--text); font-weight: 600; font-size: 0.9rem; text-decoration: none; line-height: 1.3; }
.photo-item-name:hover { color: var(--gold-bright); }
.filter-inline select { min-width: 180px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.picker-modal { position: fixed; inset: 0; z-index: 300; background: rgba(8,5,12,0.78); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.picker-modal[hidden] { display: none; }
.picker-box { width: 100%; max-width: 980px; }
.picker-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.picker-title { font-size: 1.1rem; }
.picker-search { display: flex; gap: 8px; margin: 14px 0 6px; }
.picker-search input { flex: 1; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.picker-loading, .picker-empty { grid-column: 1 / -1; padding: 40px 12px; text-align: center; color: var(--text-muted); }
.pk-card { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.pk-card.is-best { border-color: rgba(107,191,138,0.6); box-shadow: 0 0 0 1px rgba(107,191,138,0.3); }
.pk-img { background: #fff; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.pk-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pk-card figcaption { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pk-card figcaption .btn { margin-top: auto; }
.pk-title { font-size: 0.82rem; line-height: 1.3; color: var(--text); }
.pk-badge { align-self: flex-start; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-muted); }
.pk-badge.good { background: rgba(107,191,138,0.16); color: var(--success); }
.pk-badge.warn { background: rgba(226,170,91,0.14); color: #ffc56e; }

/* =================================================================
   Visitors & Security (admin)
   ================================================================= */
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-card.danger { border-color: rgba(226,114,91,0.5); background: linear-gradient(135deg, rgba(110,42,38,0.3), var(--surface)); }
.stat-card.danger .num { color: #ff9c86; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.admin-two-col .card { margin: 0; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mini-table td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.mini-table td.num { text-align: right; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.data-table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.data-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tr.faint td { opacity: 0.5; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.tiny { font-size: 0.76rem; }
.nowrap { white-space: nowrap; }
.truncate { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.sev { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px; }
.sev-high { background: rgba(226,114,91,0.16); color: #ff9c86; }
.sev-medium { background: rgba(212,175,106,0.16); color: var(--gold-bright); }
.sev-low { background: var(--surface-3); color: var(--text-muted); }
.pill-blocked { font-size: 0.68rem; background: rgba(226,114,91,0.2); color: #ff9c86; padding: 1px 6px; border-radius: 999px; }
.btn-link.danger { color: #ff9c86; }
.inline-form { display: inline; }
.block-add { display: flex; gap: 8px; flex-wrap: wrap; }
.block-add input { flex: 1; min-width: 140px; }
@media (max-width: 760px) { .admin-two-col, .stat-grid-3 { grid-template-columns: 1fr; } }

/* Scanner: torch toggle and success flash */
.scan-torch { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.5); color: #fff; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.scan-torch.on { background: var(--gold-bright); border-color: var(--gold-bright); }
.scan-modal.is-found .scan-frame { border-color: var(--success); box-shadow: 0 0 0 9999px rgba(0,0,0,0.55), 0 0 24px rgba(107,191,138,0.8); }
.scan-modal.is-found .scan-frame::after { animation: none; opacity: 0; }

/* =================================================================
   Bills & Invoices (admin)
   ================================================================= */
.success-text { color: var(--success); }
.bill-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px;
  border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); }
.ai-status { min-height: 1em; }
.bill-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-preview { margin: 6px 0 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.ai-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem; padding: 2px 0; border-bottom: 1px solid var(--border); }
.bill-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.bill-summary-card { margin-bottom: 20px; }
.bill-amounts { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 14px; }
.bill-amounts div { display: flex; flex-direction: column; }
.bill-amounts strong { font-family: "Playfair Display", serif; font-size: 1.5rem; color: var(--text); }
.bill-amounts .text-danger strong { color: #ff9c86; }
.bill-meta { display: grid; gap: 6px; margin: 0; }
.bill-meta div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 5px; font-size: 0.88rem; }
.bill-meta dt { color: var(--text-muted); margin: 0; }
.bill-meta dd { margin: 0; }
.bill-photo { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.pay-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .bill-form .form-row, .pay-form .form-row { grid-template-columns: 1fr; } }

/* Bills: review layout (invoice image beside the fields) */
.bill-review { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 0.9rem;
  background: rgba(47,111,237,0.1); border: 1px solid rgba(47,111,237,0.3); }
.bill-review-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
.bill-review-layout.has-image { grid-template-columns: 1fr 300px; }
.bill-image-side { display: flex; flex-direction: column; gap: 6px; }
.bill-image-side img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.ai-filled { }
@media (max-width: 820px) { .bill-review-layout.has-image { grid-template-columns: 1fr; } }

/* Line icons for events/promo cards (replace the emoji) */
.feat-ico { width: 30px; height: 30px; fill: none; stroke: var(--gold-bright); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; display: block; }
.event-icon .feat-ico { width: 34px; height: 34px; }
.promo-icon .feat-ico { width: 28px; height: 28px; }

/* ======================================================================
   Customer store assistant (chatbot) widget
   ====================================================================== */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1000; font-size: 15px; }
.chat-fab {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 15px;
  border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #251707;
  font-weight: 700; font-family: inherit; box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  transition: transform .15s ease, box-shadow .15s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
.chat-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab-ico.close { display: none; }
.chat-widget.open .chat-fab-ico.open { display: none; }
.chat-widget.open .chat-fab-ico.close { display: block; }
.chat-widget.open .chat-fab-label { display: none; }
.chat-widget.open .chat-fab { padding: 13px; }

.chat-panel {
  position: absolute; right: 0; bottom: 64px; width: 370px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 110px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55); overflow: hidden;
  animation: chatIn .18s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  border-bottom: 1px solid var(--border);
}
.chat-head strong { display: block; color: var(--gold-bright); font-family: 'Playfair Display', serif; font-size: 1.05rem; }
.chat-head-sub { display: block; font-size: 0.74rem; color: var(--text-muted); margin-top: 1px; }
.chat-x { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-x:hover { color: var(--text); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cw-msg { display: flex; }
.cw-msg.user { justify-content: flex-end; }
.cw-msg.bot { justify-content: flex-start; }
.chat-bubble {
  max-width: 85%; padding: 10px 13px; border-radius: 14px; line-height: 1.45;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-bottom-left-radius: 5px; font-size: 0.92rem; word-wrap: break-word;
}
.cw-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #251707;
  border: none; border-radius: 14px; border-bottom-right-radius: 5px; font-weight: 500;
}
.chat-bubble a { color: var(--gold-bright); text-decoration: underline; }

.chat-cards { display: flex; flex-direction: column; gap: 7px; max-width: 92%; }
.chat-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 11px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); transition: border-color .15s, background .15s;
}
.chat-card:hover { border-color: var(--gold); background: var(--surface-3); }
.chat-card-name { font-size: 0.86rem; font-weight: 600; }
.chat-card-size { color: var(--text-faint); font-weight: 400; font-size: 0.8rem; }
.chat-card-price { color: var(--gold-bright); font-weight: 700; white-space: nowrap; font-size: 0.86rem; }

.chat-dots { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); animation: chatDot 1s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-suggests { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; }
.chat-chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted); font-size: 0.8rem; font-family: inherit;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.chat-chip:hover { border-color: var(--gold); color: var(--gold-bright); }

.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.chat-input input {
  flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 0.92rem;
}
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-send {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #251707;
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-send svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.chat-send:hover { filter: brightness(1.06); }
.chat-foot { margin: 0; padding: 0 16px 12px; font-size: 0.68rem; color: var(--text-faint); text-align: center; }

@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel { bottom: 60px; width: calc(100vw - 28px); height: calc(100vh - 100px); }
}

/* ---- Legal pages (privacy, terms) ---- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--gold-bright); }
.legal p, .legal li { color: var(--text-muted); line-height: 1.65; }
.legal ul { padding-left: 20px; margin: 8px 0 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold-bright); text-decoration: underline; }
.legal > p:first-of-type { color: var(--text); }

/* ---- Footer legal links ---- */
.footer-legal-links { margin: 0 0 8px; }
.footer-legal-links a { color: var(--text-muted); }
.footer-legal-links a:hover { color: var(--gold-bright); }
.footer-legal-links span { margin: 0 8px; color: var(--text-faint); }

/* ---- Cookie consent banner ---- */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 1001; max-width: 420px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.cookie-banner p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.cookie-banner a { color: var(--gold-bright); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---- Signup consent checkbox ---- */
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.consent-check input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--gold); }
.consent-check a { color: var(--gold-bright); text-decoration: underline; }
