/* Shining Lady — web design system (customer, partner and admin sites share it). */

:root {
  --rose: #b8326f;
  --rose-600: #9d2a5e;
  --rose-50: #fff0f5;
  --rose-100: #ffd9e4;
  --gold: #c39a3e;
  --gold-50: #fbf3e2;
  --plum: #6750a4;
  --ink: #241a1e;
  --ink-2: #5a4a50;
  --ink-3: #8b7a80;
  --bg: #fff8fa;
  --surface: #ffffff;
  --surface-2: #fbf1f4;
  --line: #eedde3;
  --success: #1e8e5a;
  --success-50: #e5f6ee;
  --warning: #b7791f;
  --warning-50: #fdf3e1;
  --danger: #c0352b;
  --danger-50: #fdebea;
  --info: #2f6fbf;
  --info-50: #e8f0fb;
  --shadow-sm: 0 1px 2px rgba(60, 20, 40, .06), 0 1px 3px rgba(60, 20, 40, .05);
  --shadow: 0 4px 16px rgba(60, 20, 40, .08), 0 1px 3px rgba(60, 20, 40, .06);
  --shadow-lg: 0 18px 50px rgba(60, 20, 40, .18);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
  --contrast-bg: #2a1820;
  --contrast-ink: #ffffff;
  --on-rose: #ffffff;
  --contrast-sub: rgba(255, 255, 255, .72);
  --tabbar-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rose: #ff8fb8; --rose-600: #ffb0cc; --rose-50: #3a1626; --rose-100: #5a1f3a;
    --gold: #e2c27a; --gold-50: #3a2f17;
    --ink: #f6e9ee; --ink-2: #d6c2c9; --ink-3: #a8949b;
    --bg: #160f12; --surface: #21171b; --surface-2: #2a1e23; --line: #3c2c33;
    --success-50: #12301f; --warning-50: #33270f; --danger-50: #3a1714; --info-50: #13253b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 6px 18px rgba(0,0,0,.45); --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
    --contrast-bg: #3b2430;
    --on-rose: #3a0d22;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
svg[aria-hidden="true"] { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.22em; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1, .display { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 4vw, 40px); }
h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 650; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rose) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.section { padding: 24px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 12px 0; }
.page { padding: 20px 0 calc(var(--tabbar-h) + 40px); animation: pageIn .38s var(--ease) both; }
@media (min-width: 900px) { .page { padding-bottom: 60px; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- header / navigation ---------- */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header .container { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-50), var(--shadow-sm); }
.brand small { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 550; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav-links a.active { background: var(--rose-50); color: var(--rose); }
@media (max-width: 899px) { .nav-links, .desk-only { display: none !important; } }
@media (min-width: 900px) { .mob-only { display: none !important; } }

.badge-dot { position: absolute; top: 6px; margin-left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: var(--on-rose); font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* admin shell */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar .brand { padding: 4px 8px 16px; }
.side-group { margin: 12px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sidebar a.nav { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 550; }
.sidebar a.nav svg { width: 19px; height: 19px; flex: none; }
.sidebar a.nav:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.sidebar a.nav.active { background: var(--rose-50); color: var(--rose); }
.sidebar a.nav .count { margin-left: auto; background: var(--rose); color: var(--on-rose); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.content { padding: 22px 20px 60px; max-width: 1400px; animation: pageIn .35s var(--ease) both; }
@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .content { padding: 16px 14px 60px; }
}
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(20, 8, 14, .45); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.card.pad-lg { padding: 22px; }
.card.flat { box-shadow: none; }
.card.hover { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tint { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(22px, 5vw, 48px);
  background: radial-gradient(120% 140% at 100% 0%, #ffd5e5 0%, transparent 55%), linear-gradient(135deg, #fff2f7 0%, #fbeee0 100%);
  border: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: radial-gradient(120% 140% at 100% 0%, #5a1f3a 0%, transparent 60%), linear-gradient(135deg, #2a1720 0%, #2a2216 100%); } }
.hero h1 span { color: var(--rose); }
.hero .gold-line { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 3px; margin: 14px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; background: var(--surface-2); color: var(--ink); font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s, opacity .2s; user-select: none; text-decoration: none !important;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--rose); color: var(--on-rose); box-shadow: 0 6px 16px color-mix(in srgb, var(--rose) 30%, transparent); }
.btn.primary:hover { background: var(--rose-600); }
.btn.gold { background: linear-gradient(135deg, #d9b25a, #b88a2c); color: #fff; }
.btn.outline { background: transparent; border-color: var(--line); }
.btn.outline:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--danger-50); color: var(--danger); }
.btn.success { background: var(--success); color: #fff; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.icon { width: 42px; padding: 0; }
.btn.icon.sm { width: 34px; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--rose); font-weight: 600; cursor: pointer; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 14%, transparent); }
.input.sm { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.hint { font-size: 12.5px; color: var(--ink-3); }
.error-text { font-size: 13px; color: var(--danger); }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 40px; border-radius: 999px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch input:checked + .track { background: var(--rose); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid color-mix(in srgb, var(--rose) 45%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--rose); margin-top: 2px; }
.otp-input { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 700; }

/* ---------- chips, badges, status ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .18s; white-space: nowrap; color: var(--ink-2); }
.chip:hover { border-color: var(--rose-100); }
.chip.active { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.rose { background: var(--rose-50); color: var(--rose); }
.badge.gold { background: var(--gold-50); color: var(--gold); }
.badge.success { background: var(--success-50); color: var(--success); }
.badge.warning { background: var(--warning-50); color: var(--warning); }
.badge.danger { background: var(--danger-50); color: var(--danger); }
.badge.info { background: var(--info-50); color: var(--info); }

/* ---------- product cards ---------- */
.p-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease); cursor: pointer; }
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--rose-50), var(--gold-50)); overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--rose); opacity: .5; }
.p-img .ph svg { width: 42px; height: 42px; }
.p-img .tag { position: absolute; left: 10px; top: 10px; }
.p-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-title { font-weight: 650; font-size: 15px; line-height: 1.3; }
.p-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.p-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-weight: 750; font-size: 17px; }
.price small { font-weight: 550; font-size: 12px; color: var(--ink-3); margin-right: 3px; }
.price s { color: var(--ink-3); font-weight: 500; font-size: 13px; margin-left: 6px; }
.stars { display: inline-flex; align-items: center; gap: 3px; color: #e6a700; font-weight: 700; font-size: 12.5px; }
.stars svg { width: 14px; height: 14px; }
.qty { display: inline-flex; align-items: center; background: var(--rose); color: var(--on-rose); border-radius: 999px; height: 34px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.qty button:hover { background: rgba(255,255,255,.15); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer; color: var(--ink); }
.cat-tile:hover { text-decoration: none; }
.cat-tile .img { width: 100%; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--rose-50), var(--gold-50)); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.cat-tile:hover .img { transform: translateY(-3px) scale(1.02); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile span { font-weight: 600; font-size: 13.5px; }
.h-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 280px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.h-scroll > * { scroll-snap-align: start; }

/* brand (product option) picker */
.brand-list { display: flex; flex-direction: column; gap: 10px; }
.brand-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .18s, background .18s, transform .12s; text-align: left; width: 100%; }
.brand-opt:hover { border-color: var(--rose-100); }
.brand-opt:active { transform: scale(.99); }
.brand-opt.selected { border-color: var(--rose); background: var(--rose-50); }
.brand-opt .logo { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 800; color: var(--rose); }
.brand-opt .logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.brand-opt.selected .radio { border-color: var(--rose); }
.brand-opt.selected .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }
.pulse { animation: pulse 1.2s var(--ease) 2; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rose) 0%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--rose) 22%, transparent); } }

/* cart bar */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--contrast-bg); color: var(--contrast-ink); border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); animation: rise .35s var(--ease) both; max-width: 640px; margin: 0 auto; }
.cart-bar .tiny { color: var(--contrast-sub); opacity: 1 !important; }
.contrast-bar { background: var(--contrast-bg) !important; color: var(--contrast-ink) !important; border-color: transparent !important; }
.cart-bar .btn { background: var(--rose); color: var(--on-rose); }
@media (min-width: 900px) { .cart-bar { bottom: 20px; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- lists & tables ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.click { cursor: pointer; border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.list-item.click:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 11px 14px; background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--rose-50); }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--rose-50); color: var(--rose); display: grid; place-items: center; font-weight: 750; flex: none; overflow: hidden; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }

/* stats */
.stat { position: relative; overflow: hidden; }
.stat .label { padding-right: 44px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.stat .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stat .ico { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-50); color: var(--rose); }
.stat .ico svg { width: 20px; height: 20px; }
.stat.hero-stat { background: linear-gradient(135deg, #b8326f, #7d1f4c); color: #fff; border: 0; }
.stat.hero-stat .label, .stat.hero-stat .sub { color: rgba(255,255,255,.8); }
.stat.hero-stat .ico { background: rgba(255,255,255,.16); color: #fff; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--rose), color-mix(in srgb, var(--rose) 55%, var(--gold))); transform-origin: bottom; animation: grow .8s var(--ease) both; min-height: 3px; }
.bars .bar span { font-size: 11.5px; color: var(--ink-3); }
@keyframes grow { from { transform: scaleY(0); } }
.meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--rose); border-radius: 4px; animation: fill .9s var(--ease) both; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--rose); border-color: var(--rose); }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 999px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* order tracker */
.tracker { display: flex; gap: 0; }
.tracker .step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12px; color: var(--ink-3); text-align: center; }
.tracker .step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tracker .step:first-child::before { display: none; }
.tracker .step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); z-index: 1; display: grid; place-items: center; }
.tracker .step.done { color: var(--ink); font-weight: 600; }
.tracker .step.done::before { background: var(--rose); }
.tracker .step.done .dot { background: var(--rose); border-color: var(--rose); color: var(--on-rose); }
.tracker .step .dot svg { width: 15px; height: 15px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 8, 14, .5); animation: fade .2s both; }
.overlay.closing { animation: fade .2s reverse both; }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetUp .34s var(--ease) both; }
.overlay.closing .sheet { animation: sheetUp .22s reverse both; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-foot { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0 4px; margin-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; padding: 20px 22px 22px; animation: pop .26s var(--ease) both; }
  .sheet.wide { max-width: 860px; }
  .sheet .grab { display: none; }
  .overlay.closing .sheet { animation: pop .18s reverse both; }
  .sheet-foot { bottom: -22px; }
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.toasts { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
@media (min-width: 900px) { .toasts { bottom: 28px; } }
.toast { pointer-events: auto; background: var(--contrast-bg); color: var(--contrast-ink); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 550; font-size: 14px; animation: rise .3s var(--ease) both; display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--success); color: #fff; }

/* ---------- states ---------- */
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 70%, transparent), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 16px; color: var(--ink-2); }
.empty .ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-50); color: var(--rose); margin-bottom: 4px; animation: float 3s ease-in-out infinite; }
.empty .ico svg { width: 34px; height: 34px; }
@keyframes float { 50% { transform: translateY(-6px); } }
.loader { display: grid; place-items: center; min-height: 50vh; }
.loader .ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--rose-100); border-top-color: var(--rose); animation: spin .8s linear infinite; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--info-50); color: var(--info); font-size: 14px; }
.notice.warn { background: var(--warning-50); color: var(--warning); }
.notice.danger { background: var(--danger-50); color: var(--danger); }
.notice.ok { background: var(--success-50); color: var(--success); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

.kbd { font-family: ui-monospace, monospace; font-size: 12px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.code-box { font-family: ui-monospace, monospace; font-size: 22px; font-weight: 800; letter-spacing: .3em; background: var(--gold-50); color: var(--gold); border-radius: 12px; padding: 8px 14px; display: inline-block; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--r); padding: 28px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone.drag, .dropzone:hover { border-color: var(--rose); background: var(--rose-50); }
/* detail pages */
.detail-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.sticky-col { position: sticky; top: 84px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; gap: 18px; } .sticky-col { position: static; } }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.checkout-grid .summary { position: sticky; top: 84px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-grid .summary { position: static; } }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.bill-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 17px; }
.bill-row.discount { color: var(--success); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface); cursor: pointer; text-align: left; font-weight: 600; }
.slot small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.slot.active { border-color: var(--rose); background: var(--rose-50); color: var(--rose); }
.slot[disabled] { opacity: .45; cursor: not-allowed; }
.day-chip { flex: none; width: 66px; padding: 8px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: center; cursor: pointer; }
.day-chip b { display: block; font-size: 19px; }
.day-chip small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; }
.day-chip.active { border-color: var(--rose); background: var(--rose); color: var(--on-rose); }
.day-chip.active small { color: inherit; opacity: .85; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 64px; height: 64px; border-radius: 14px; }
.cart-line.needs { background: var(--rose-50); border-radius: 14px; padding: 12px; border: 1px dashed var(--rose); }
.success-burst { width: 92px; height: 92px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; animation: popIn .6s var(--ease) both; box-shadow: 0 0 0 12px var(--success-50); }
.success-burst svg { width: 46px; height: 46px; }
@keyframes popIn { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

.cart-bar > svg { width: 24px; height: 24px; }
.brand-opt > div:nth-last-child(2) { white-space: nowrap; }
.list-item > svg, .row > svg { flex: none; }

/* ======================================================================================
   Images: shimmer while loading, then a soft fade + de-blur
   ====================================================================================== */
.fade-img { opacity: 0; filter: blur(10px); transform: scale(1.03); transition: opacity .5s var(--ease), filter .6s var(--ease), transform .8s var(--ease); }
.fade-img.loaded { opacity: 1; filter: none; transform: none; }
.fade-img.broken { visibility: hidden; }
.p-img, .cat-tile .img, .img-wait { position: relative; overflow: hidden; }
.p-img::before, .cat-tile .img::before, .img-wait::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--surface) 65%, transparent) 50%, transparent 80%);
  background-size: 200% 100%; animation: sheen 1.4s ease-in-out infinite;
}
.p-img:has(img.loaded)::before, .cat-tile .img:has(img.loaded)::before, .img-wait:has(img.loaded)::before,
.p-img:has(.ph)::before, .p-img:has(img.broken)::before, .img-wait:has(img.broken)::before { display: none; }
.p-img img, .cat-tile .img img, .img-wait img { position: relative; z-index: 1; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ======================================================================================
   Home slideshow
   ====================================================================================== */
.carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); outline: none; touch-action: pan-y; user-select: none; }
.carousel:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 45%, transparent), var(--shadow); }
.car-track { display: flex; will-change: transform; }
.car-slide { flex: 0 0 100%; cursor: pointer; }
.car-img { aspect-ratio: 3 / 1; max-height: 380px; width: 100%; background: linear-gradient(135deg, var(--rose-50), var(--gold-50)); }
@media (max-width: 700px) { .car-img { aspect-ratio: 16 / 9; } }
.car-img img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.car-slide.active .car-img img.loaded { animation: kenburns 6s ease-out both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--ink); backdrop-filter: blur(8px); box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .2s; }
.car-nav svg { width: 20px; height: 20px; }
.car-nav.prev { left: 14px; } .car-nav.next { right: 14px; }
.carousel:hover .car-nav, .carousel:focus-within .car-nav { opacity: 1; }
.car-nav:active { transform: translateY(-50%) scale(.92); }
@media (hover: none) { .car-nav { display: none; } }
.car-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.car-dot { width: 22px; height: 6px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .5); cursor: pointer; overflow: hidden; transition: width .35s var(--ease); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.car-dot.active { width: 46px; }
.car-dot i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }
@keyframes carProgress { from { width: 0; } to { width: 100%; } }
.car-count { position: absolute; right: 14px; top: 12px; z-index: 3; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20, 8, 14, .45); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(6px); }

/* Brand logos marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand-logo { flex: none; width: 132px; height: 72px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ======================================================================================
   Mobile tab bar (floating, with active pill and cart badge)
   ====================================================================================== */
.tabbar {
  position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--tabbar-h);
  display: flex; padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); box-shadow: 0 10px 30px rgba(60, 20, 40, .16);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); font-size: 11px; font-weight: 650; border-radius: 16px; text-decoration: none !important; -webkit-tap-highlight-color: transparent; transition: color .2s; }
.tab-ico { position: relative; display: grid; place-items: center; width: 46px; height: 28px; border-radius: 14px; transition: background .3s var(--ease), transform .2s var(--ease); }
.tab-ico svg { width: 22px; height: 22px; }
.tabbar a:active .tab-ico { transform: scale(.9); }
.tabbar a.active { color: var(--rose); }
.tabbar a.active .tab-ico { background: var(--rose-50); }
.tabbar a.active .tab-ico svg { stroke-width: 2.3; }
.tab-badge { position: absolute; top: -4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: var(--on-rose); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); animation: popIn .4s var(--ease) both; }
@media (min-width: 900px) { .tabbar { display: none; } }
:root { --tabbar-h: 62px; }
.page { padding-bottom: calc(var(--tabbar-h) + 50px); }
.cart-bar { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .page { padding-bottom: 60px; } .cart-bar { bottom: 20px; } }

/* ======================================================================================
   Footer
   ====================================================================================== */
.site-footer { margin-top: 32px; padding: 0 0 calc(var(--tabbar-h) + 34px); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--rose-50) 70%, transparent) 30%); }
@media (min-width: 900px) { .site-footer { padding-bottom: 28px; } }
.f-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 100% 0%, #d14d8c 0%, transparent 55%), linear-gradient(135deg, #5b1736, #2b0f1c); color: #fff; box-shadow: 0 18px 40px rgba(91, 23, 54, .28); }
.f-cta h2 { font-family: var(--display); font-size: clamp(22px, 3.4vw, 32px); }
.f-cta p { opacity: .8; margin-top: 4px; }
.f-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.f-ghost:hover { background: rgba(255, 255, 255, .2); }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding: 36px 0 22px; }
.f-brand p { color: var(--ink-2); font-size: 14px; margin: 12px 0 14px; max-width: 320px; }
.f-col summary { list-style: none; display: flex; align-items: center; justify-content: space-between; font-weight: 750; font-size: 14px; letter-spacing: .02em; color: var(--ink); cursor: pointer; padding: 4px 0 10px; }
.f-col summary::-webkit-details-marker { display: none; }
.f-col summary svg { width: 16px; height: 16px; transition: transform .25s; }
.f-col[open] summary svg { transform: rotate(180deg); }
.f-links { display: flex; flex-direction: column; gap: 9px; }
.f-links a, .f-links span { color: var(--ink-2); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.f-links a:hover { color: var(--rose); text-decoration: none; }
.f-social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: all .2s; }
.f-social:hover { background: var(--rose); color: var(--on-rose); border-color: var(--rose); text-decoration: none; transform: translateY(-2px); }
.f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 4px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
@media (min-width: 701px) { .f-col summary { pointer-events: none; } .f-col summary svg { display: none; } }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .f-grid { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .f-brand { padding-bottom: 14px; }
  .f-col { border-top: 1px solid var(--line); padding: 10px 0; }
  .f-col .f-links { padding-bottom: 6px; }
  .f-cta .btn { flex: 1; }
}

/* ======================================================================================
   Login
   ====================================================================================== */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px;
  background: radial-gradient(90% 70% at 70% 20%, #ffd3e3 0%, transparent 60%), linear-gradient(160deg, #fff1f6, #f6e7cf); }
.auth-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: 32%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 120, .45), transparent 65%); filter: blur(10px); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { transform: translate(-50%, -50%) scale(1.08); opacity: .8; } }
.auth-art .big-logo { position: absolute; top: 32%; left: 50%; transform: translate(-50%, -50%); width: min(52%, 340px); height: auto; border-radius: 50%; box-shadow: 0 30px 80px rgba(150, 60, 100, .28); animation: floatLogo 6s ease-in-out infinite; }
@keyframes floatLogo { 50% { transform: translate(-50%, calc(-50% - 10px)); } }
.auth-art-copy { position: relative; max-width: 520px; }
.auth-art-copy h1 { font-size: clamp(30px, 3.4vw, 46px); }
.auth-art-copy h1 span { color: var(--rose); }
.auth-art-copy p { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.auth-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.auth-perks span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.auth-perks svg { color: var(--rose); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 22px; min-width: 0; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; animation: pageIn .45s var(--ease) both; }
.auth-head { display: flex; align-items: center; justify-content: space-between; }
.auth-skip { display: inline-flex; align-items: center; gap: 2px; font-weight: 650; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.auth-skip:hover { background: var(--surface-2); text-decoration: none; }
.auth-skip svg { width: 16px; height: 16px; }
.auth-title h2 { font-size: clamp(24px, 3vw, 30px); font-family: var(--display); }
.auth-title p { color: var(--ink-2); margin-top: 6px; }
.auth-choice { display: flex; flex-direction: column; gap: 16px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 54px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .2s, border-color .2s; }
.auth-google:hover { border-color: color-mix(in srgb, var(--rose) 35%, var(--line)); box-shadow: var(--shadow); }
.auth-google:active { transform: scale(.98); }
.auth-google .g-logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.auth-google.loading { opacity: .6; pointer-events: none; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-step { display: flex; flex-direction: column; gap: 12px; animation: pageIn .35s var(--ease) both; }
.auth-label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.auth-phone { display: flex; align-items: center; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.auth-phone:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 14%, transparent); }
.auth-cc { padding: 0 14px; font-weight: 700; color: var(--ink); border-right: 1px solid var(--line); height: 60%; display: flex; align-items: center; white-space: nowrap; }
.auth-phone-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; padding: 0 14px; font-size: 19px; font-weight: 650; letter-spacing: .06em; }
.auth-phone-input::placeholder { color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }
.auth-hint { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.auth-hint svg { color: var(--success); }
.auth-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-2); font-weight: 650; cursor: pointer; padding: 4px 0; }
.auth-sent { color: var(--ink-2); }
.auth-sent strong { color: var(--ink); white-space: nowrap; }
.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-box { width: 100%; height: 58px; text-align: center; font-size: 24px; font-weight: 800; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); outline: none; caret-color: var(--rose); transition: border-color .15s, box-shadow .15s, transform .15s; }
.otp-box:focus { border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 14%, transparent); transform: translateY(-1px); }
.otp-box.filled { border-color: color-mix(in srgb, var(--rose) 55%, var(--line)); background: var(--rose-50); }
.otp-row.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.auth-step.success .otp-box { border-color: var(--success); background: var(--success-50); }
.auth-resend { font-size: 14px; color: var(--ink-3); text-align: center; }
.link-btn[disabled] { color: var(--ink-3); cursor: default; }
.auth-error { display: none; padding: 10px 14px; border-radius: 12px; background: var(--danger-50); color: var(--danger); font-size: 14px; font-weight: 550; }
.auth-error.show { display: block; animation: pageIn .25s both; }
.auth-browse { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface-2); color: var(--ink); font-weight: 650; font-size: 14px; }
.auth-browse:hover { text-decoration: none; background: var(--rose-50); color: var(--rose); }
.auth-legal { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.recaptcha-box:empty { display: none; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-art { min-height: 250px; padding: 18px 16px 34px; justify-content: flex-end; }
  .auth-art .big-logo { width: 128px; top: 36%; }
  .auth-glow { width: 260px; height: 260px; top: 36%; }
  .auth-art-copy h1, .auth-art-copy p { display: none; }
  .auth-perks { justify-content: center; margin-top: 0; }
  .auth-perks span { font-size: 12px; padding: 6px 10px; }
  .auth-form { align-items: flex-start; padding: 0 16px 28px; margin-top: -22px; }
  .auth-card { background: var(--surface); border-radius: 26px 26px 20px 20px; padding: 22px 18px; box-shadow: 0 -10px 30px rgba(60, 20, 40, .08); border: 1px solid var(--line); }
  .auth-head .brand { display: none; }
  .auth-head { justify-content: flex-end; margin-bottom: -10px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-art { background: radial-gradient(90% 70% at 70% 20%, #5a1f3a 0%, transparent 60%), linear-gradient(160deg, #24141b, #2a2216); }
  :root:not([data-theme="light"]) .brand-logo { background: #fff; }
  :root:not([data-theme="light"]) .tabbar { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.primary { color: #3a0d22; }
  :root:not([data-theme="light"]) .tab-badge, :root:not([data-theme="light"]) .badge-dot { color: #3a0d22; }
}

.cart-bar .btn { background: #b8326f !important; color: #fff !important; }

/* ======================================================================================
   Service details page
   ====================================================================================== */
.pd-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.pd-crumbs a { color: var(--ink-2); }
.pd-crumbs svg { width: 14px; height: 14px; opacity: .6; }
.pd-crumbs span { color: var(--ink); font-weight: 600; }
.pd-gallery { border-radius: var(--r-lg); aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.pd-gallery > img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery-tags { position: absolute; z-index: 2; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pd-gallery-tags .badge { backdrop-filter: blur(8px); background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: var(--shadow-sm); }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumb { width: 72px; height: 72px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--surface-2); }
.pd-thumb.active { border-color: var(--rose); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pd-trust span { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.pd-trust svg { width: 22px; height: 22px; color: var(--rose); }
.pd-title { font-size: clamp(26px, 3.6vw, 40px); }
.pd-sub { font-size: 16px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--ink-2); font-size: 14px; }
.pd-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.pd-rating { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff4d6; color: #7a5200; padding: 5px 10px; border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.pd-rating svg { color: #e6a700; width: 15px; height: 15px; }
.pd-rating span { color: #8a6a2a; }
.pd-new { color: var(--rose); font-weight: 650; }
.pd-price { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1.5px solid color-mix(in srgb, var(--rose) 25%, var(--line)); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--rose-50) 60%, var(--surface))); }
.pd-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pd-bill-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pd-bill-row.pending span:last-child { color: var(--rose); }
.pd-bill-row.muted-row { color: var(--ink-2); }
.pd-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 2px; font-size: 16px; font-weight: 700; }
.pd-total strong { font-size: 28px; letter-spacing: -.02em; color: var(--ink); transition: color .3s; }
.pd-step { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.pd-step-head { display: flex; gap: 12px; align-items: flex-start; }
.pd-step-head h3 { font-size: 17px; }
.pd-step-head p { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.pd-step-no { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: var(--on-rose); font-weight: 800; font-size: 14px; }
.pd-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pd-brand { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; text-align: center; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .2s, transform .15s, box-shadow .2s, background .2s; }
.pd-brand:hover { border-color: color-mix(in srgb, var(--rose) 40%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pd-brand.selected { border-color: var(--rose); background: var(--rose-50); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 18%, transparent); }
.pd-brand-logo { width: 56px; height: 56px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--rose); font-size: 20px; }
.pd-brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pd-brand-logo svg { width: 24px; height: 24px; }
.pd-brand-name { font-weight: 700; font-size: 14.5px; }
.pd-brand-note { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.pd-brand-price { font-weight: 800; color: var(--rose); font-size: 15px; margin-top: auto; }
.pd-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.pd-check svg { width: 13px; height: 13px; opacity: 0; color: var(--on-rose); }
.pd-brand.selected .pd-check { background: var(--rose); border-color: var(--rose); }
.pd-brand.selected .pd-check svg { opacity: 1; }
.btn.wished { color: var(--rose); border-color: var(--rose); }
.btn.wished svg { fill: currentColor; }
.pd-tabs { position: sticky; top: calc(var(--header-h) + 6px); z-index: 20; padding: 8px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.pd-sections { display: flex; flex-direction: column; gap: 14px; }
.pd-section { scroll-margin-top: 130px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.pd-section h2 { font-size: 20px; margin-bottom: 12px; }
.pd-text { white-space: pre-line; font-size: 15px; line-height: 1.7; }
.pd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; }
.pd-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.pd-list svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; margin-top: 1px; }
.pd-list.good svg { background: var(--success-50); color: var(--success); }
.pd-list.info svg { background: var(--info-50); color: var(--info); }
.pd-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pd-how-step { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.pd-how-step span { font-size: 13px; color: var(--ink-3); }
.pd-how-ico { position: relative; width: 44px; height: 44px; border-radius: 14px; background: var(--rose-50); color: var(--rose); display: grid; place-items: center; margin-bottom: 4px; }
.pd-how-ico b { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 11px; display: grid; place-items: center; }
@media (max-width: 760px) { .pd-how { grid-template-columns: 1fr 1fr; } .pd-brands { grid-template-columns: 1fr 1fr; } }
.pd-sticky { position: fixed; z-index: 44; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 18px; background: var(--contrast-bg); color: var(--contrast-ink); box-shadow: var(--shadow-lg); animation: rise .35s var(--ease) both; }
.pd-sticky .faint { color: var(--contrast-sub); }
.pd-sticky .price { color: var(--contrast-ink); }
.pd-sticky .btn { background: #b8326f; color: #fff; }
.pd-page { padding-top: 14px; }
@media (max-width: 899px) { .pd-page { padding-bottom: calc(var(--tabbar-h) + 120px); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pd-rating { background: #3a2f17; color: #f3d48a; }
  :root:not([data-theme="light"]) .pd-rating span { color: #d8bd7a; }
  :root:not([data-theme="light"]) .pd-brand-logo { background: #fff; }
}

/* Narrow product cards: keep price and stepper inside the card */
.p-foot { flex-wrap: wrap; row-gap: 8px; }
.p-foot .price { white-space: nowrap; }
@media (max-width: 440px) {
  .p-foot .qty { height: 30px; }
  .p-foot .qty button { width: 28px; height: 30px; font-size: 16px; }
  .p-foot .qty span { min-width: 18px; }
  .p-foot .price { font-size: 15.5px; }
}
.auth-legal a { color: var(--rose); font-weight: 600; }
.btn.danger-solid { background: var(--danger); color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.05); }
.btn.danger-solid:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.danger-solid { color: #3a0d0a; } }

/* ======================================================================================
   2026-10 additions: long lists, search suggestions, tracker, partner card, FAQ, city, intro
   ====================================================================================== */
/* Off-screen home sections and the footer skip rendering until scrolled near. */
.cv-auto { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.site-footer.cv-auto { contain-intrinsic-size: auto 520px; }

/* Search suggestions dropdown */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: min(60vh, 360px); overflow: auto; }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.sg-item svg { color: var(--ink-3); }
.sg-item:hover, .sg-item.active { background: var(--rose-50); }
.sg-item.sg-clear { color: var(--ink-3); font-size: 13px; }

/* Booking tracker (5 steps) */
ol.tracker { list-style: none; margin: 0; padding: 0; }
.tracker .step small { display: block; font-weight: 500; }
.tracker .step.current .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 22%, transparent); }
@media (max-width: 420px) { .tracker .step { font-size: 11px; } .tracker .step .dot { width: 24px; height: 24px; } .tracker .step::before { top: 11px; } }

/* Assigned partner card */
.partner-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }

/* Promotion poster */
.promo-poster { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--r); overflow: hidden; }
.promo-poster img { width: 100%; height: auto; display: block; }

/* FAQ */
.faq-title { font-size: 18px; color: var(--rose); }
.faq-item { padding: 0; }
.faq-item summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform .2s var(--ease); color: var(--ink-3); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { padding: 0 16px 14px; margin: 0; }

/* City picker */
.city-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.city-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; color: var(--ink); font: inherit; }
.city-tile .img { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--rose-50), var(--gold-50)); color: var(--rose); }
.city-tile .img img { width: 100%; height: 100%; object-fit: cover; }
.city-tile.selected { border: 2px solid var(--rose); background: var(--rose-50); }
.city-tile.soon { opacity: .55; }

/* Pre-filled (from login) inputs on the registration form */
.input.prefilled { background: var(--surface-2); color: var(--ink-2); }


/* ---------- sharing: share sheet, open-in-app bar, shared-list page ---------- */
.share-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.share-link > svg { color: var(--ink-3); flex: none; }
.share-link .input { border: 0; background: transparent; box-shadow: none; min-height: 36px; padding: 0 4px; text-overflow: ellipsis; }
.share-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border: 0; background: none; border-radius: var(--r); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .2s, transform .15s var(--ease); }
.share-opt:hover { background: var(--surface-2); }
.share-opt:active { transform: scale(.96); }
.share-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--contrast-bg); box-shadow: var(--shadow-sm); }
.share-ico svg { width: 24px; height: 24px; }
.share-opt.wa .share-ico { background: #25d366; }
.share-opt.tg .share-ico { background: #229ed9; }
.share-opt.cp .share-ico { background: var(--rose); color: var(--on-rose); }

.app-banner { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; box-shadow: var(--shadow-sm); }
.app-banner-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.app-banner-text strong { font-size: 14px; }
.app-banner-text span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-banner-get { font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 400px) { .app-banner-get { display: none; } }

.share-hero { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--rose-50), var(--surface) 70%); }
.share-hero-ico { width: 56px; height: 56px; border-radius: 18px; background: var(--rose); color: var(--on-rose); display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px color-mix(in srgb, var(--rose) 30%, transparent); }
.share-hero-ico svg { width: 28px; height: 28px; }
.share-hero-title { font-size: clamp(20px, 3vw, 28px); }

/* ---------- admin: links & SEO previews, notification sounds ---------- */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.preview-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.serp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-family: Arial, Helvetica, sans-serif; }
.serp .site { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.serp .site img { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); flex: none; }
.serp .site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp .t { color: var(--info); font-size: 19px; line-height: 1.3; margin: 6px 0 3px; overflow-wrap: anywhere; }
.serp .d { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.wa-card { background: var(--success-50); border-radius: 16px 16px 4px 16px; padding: 6px; max-width: 360px; box-shadow: var(--shadow-sm); }
.wa-card .pic { aspect-ratio: 1.91 / 1; background: var(--surface-2) center / cover no-repeat; border-radius: 12px 12px 4px 4px; }
.wa-card .meta { padding: 8px 10px 10px; background: color-mix(in srgb, var(--surface) 78%, transparent); border-radius: 0 0 12px 12px; }
.wa-card .meta strong { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.wa-card .meta p { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-card .meta small { color: var(--ink-3); font-size: 11.5px; }
.count-hint { font-weight: 600; }
.count-hint.over { color: var(--warning); }

.snd-list { display: flex; flex-direction: column; }
.snd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); position: relative; }
.snd-row:first-child { border-top: 0; }
.snd-row.changed::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--rose); }
.snd-info { min-width: 0; }
.snd-info .strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.snd-ctl { display: flex; align-items: center; gap: 8px; }
.snd-ctl select { width: 190px; }
.snd-play.playing { background: var(--rose); color: var(--on-rose); border-color: var(--rose); animation: sndPulse 1s ease-in-out infinite; }
@keyframes sndPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--rose) 22%, transparent); } }
.savebar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--contrast-bg); color: var(--contrast-ink); box-shadow: var(--shadow-lg); }
.savebar .btn.primary { box-shadow: none; }
.savebar .btn.ghost { color: var(--contrast-ink); }
@media (max-width: 640px) {
  .snd-row { grid-template-columns: 1fr; }
  .snd-ctl select { width: auto; flex: 1 1 auto; min-width: 0; }
}


/* ---- Admin: Traffic & SEO, Health & issues (assets/js/admin/insights.js) ---- */
.ins-cols { display: flex; align-items: flex-end; gap: 3px; padding-bottom: 18px; position: relative; }
.ins-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column-reverse; align-items: stretch; position: relative; }
.ins-col i { display: block; width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .4s ease; }
.ins-col i + i { border-radius: 0; }
.ins-col span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.ins-col:hover i { filter: brightness(1.08); }
.ins-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.ins-strip { display: flex; gap: 1px; height: 18px; }
.ins-strip i { flex: 1 1 0; border-radius: 2px; background: var(--success); opacity: .85; }
.ins-strip i.bad { background: var(--danger); opacity: 1; }
.ins-pre { margin: 6px 0 0; padding: 10px 12px; max-height: 260px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
@media (max-width: 640px) { .ins-col span { font-size: 9px; } .seg button { padding: 6px 10px; font-size: 12.5px; } }
.content .grid > * { min-width: 0; }
.ins-col { max-width: 56px; }
.ins-cols { justify-content: center; }
