/* ZGSGaming — "game-night ticket" look: deep violet ink, gold coins, coral for sales.
   The signature element is the notched ticket card (see .tk). */
:root {
  --bg: #0d0a1f;
  --bg-2: #130f2e;
  --card: #1a1438;
  --card-2: #241b4d;
  --line: #352a6e;
  --text: #f6f2ff;
  --muted: #aaa0d8;
  --brand: #ffc23d;          /* gold: main actions */
  --brand-ink: #2a1a00;
  --violet: #8b6cff;
  --coral: #ff5d73;          /* sales only */
  --warm: #ffc23d;
  --danger: #ff6b7d;
  --ok: #4ade9b;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(4, 2, 18, .55);
  --display: 'Lalezar', 'Cairo', system-ui, sans-serif;
  --font: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --focus: 0 0 0 3px rgba(255, 194, 61, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6;
  background-image:
    radial-gradient(900px 480px at 88% -8%, rgba(139, 108, 255, .22), transparent 62%),
    radial-gradient(700px 420px at -6% 4%, rgba(255, 93, 115, .10), transparent 60%);
  background-repeat: no-repeat; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- announcement ---------- */
.announce {
  background: linear-gradient(90deg, #3b2a8f, #6a3fd0 50%, #b8366f); color: #fff; font-weight: 700; font-size: .92rem;
  text-align: center; padding: 7px 40px; position: relative;
}
.announce.demo { background: #3a2c05; color: #ffd98a; }
.announce button { position: absolute; inset-inline-end: 8px; top: 50%; translate: 0 -50%; background: none; border: 0; color: inherit; font-size: 1.1rem; opacity: .8; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(13, 10, 31, .8); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.logo i, .logo img {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-style: normal; object-fit: contain;
  background: linear-gradient(135deg, var(--brand), #ff9f45); color: var(--brand-ink); font-family: var(--display); font-size: 1.4rem;
}
.logo img { background: var(--card); padding: 3px; }
.search { flex: 1; max-width: 460px; position: relative; margin-inline: auto; }
.search .ic { position: absolute; inset-inline-start: 13px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  padding-inline: 40px 14px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--brand); box-shadow: var(--focus); }
.top .actions { display: flex; gap: 8px; align-items: center; }
.btn-ghost {
  height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font-weight: 700; transition: background .15s, border-color .15s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { background: var(--card); border-color: #4a3d92; }
.badge { min-width: 21px; height: 21px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 900; display: inline-grid; place-items: center; padding: 0 6px; }

/* ---------- buttons ---------- */
.btn {
  height: 48px; padding: 0 24px; border-radius: 14px; border: 0; font-weight: 900; font-size: 1rem; background: var(--brand); color: var(--brand-ink);
  transition: transform .12s, filter .15s; box-shadow: 0 6px 0 #b98410, 0 12px 22px rgba(255, 194, 61, .18);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; translate: 0 0;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { translate: 0 4px; box-shadow: 0 2px 0 #b98410; }
.btn[disabled] { opacity: .45; cursor: not-allowed; translate: 0 0; box-shadow: none; }
.btn.secondary { background: var(--card-2); color: var(--text); box-shadow: 0 6px 0 #150f33; border: 1px solid var(--line); }
.btn.secondary:active { box-shadow: 0 2px 0 #150f33; }
.btn.block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 54px 0 22px; display: grid; gap: 30px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: 0; }
.hero p { color: var(--muted); font-size: 1.12rem; margin: 0 0 24px; max-width: 46ch; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; height: 320px; }
.hero-art .tkw { position: absolute; width: 188px; animation: float 7s ease-in-out infinite; }
.hero-art .tkw:nth-child(1) { inset-inline-start: 0; top: 64px; rotate: -6deg; }
.hero-art .tkw:nth-child(2) { inset-inline-start: calc(50% - 94px); top: 6px; rotate: 1.5deg; animation-delay: -2.3s; z-index: 2; }
.hero-art .tkw:nth-child(3) { inset-inline-end: 0; top: 78px; rotate: 6deg; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- ticket card (the signature) ---------- */
.tkw { display: block; filter: drop-shadow(0 12px 16px rgba(3, 1, 16, .5)); transition: translate .18s, filter .18s; --acc: var(--violet); }
.tkw:hover { translate: 0 -5px; filter: drop-shadow(0 16px 20px rgba(3, 1, 16, .6)) drop-shadow(0 0 10px color-mix(in srgb, var(--acc) 55%, transparent)); }
.tk {
  --cut: 112px; position: relative; background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  -webkit-mask: radial-gradient(circle 11px at 0 var(--cut), #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), #0000 96%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--cut), #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--cut), #0000 96%, #000) right / 51% 100% no-repeat;
}
.tk .art {
  height: var(--cut); display: grid; place-items: center; padding: 12px; text-align: center; position: relative; overflow: hidden;
  font-family: var(--display); font-size: 1.55rem; line-height: 1.1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, color-mix(in srgb, var(--acc) 62%, #0d0a1f), color-mix(in srgb, var(--acc) 18%, #0d0a1f));
}
.tk .art img { max-width: 62%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.tk .art .off {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--coral); color: #fff; font-family: var(--font); font-weight: 900;
  font-size: .8rem; padding: 2px 10px; border-radius: 999px; text-shadow: none; box-shadow: 0 3px 0 #b02a42;
}
.tk .info { border-top: 2px dashed var(--line); padding: 12px 15px 14px; display: grid; gap: 3px; }
.tk .nm { font-weight: 800; line-height: 1.3; }
.tk .meta { color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tk .price { color: var(--text); font-weight: 900; font-size: 1.05rem; }
.tk .price s { color: var(--muted); font-weight: 600; font-size: .82rem; margin-inline-start: 6px; }
.pill { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(74, 222, 155, .35); }
.pill.no { color: var(--danger); border-color: rgba(255, 107, 125, .35); }
.pill.sale { color: var(--coral); border-color: rgba(255, 93, 115, .5); background: rgba(255, 93, 115, .1); }
.timer { font-weight: 800; color: var(--coral); font-size: .8rem; display: inline-flex; gap: 5px; align-items: center; }
.timer b { font-variant-numeric: tabular-nums; display: inline-flex; gap: 6px; }
.timer b i { font-style: normal; direction: ltr; unicode-bidi: isolate; }
.timer b i:empty { display: none; }

/* ---------- sections ---------- */
section.block { padding: 28px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.9rem; display: flex; align-items: center; gap: 10px; }
.sec-head h2 .ic { color: var(--coral); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { height: 38px; padding: 0 17px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-weight: 800; transition: all .15s; }
.chip:hover { color: var(--text); border-color: #4a3d92; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.offers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x proximity; }
.offers > * { scroll-snap-align: start; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.how > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.how > div::before { counter-increment: s; content: counter(s); font-family: var(--display); font-size: 2.4rem; color: var(--brand); line-height: 1; display: block; margin-bottom: 6px; }
.how b { display: block; margin-bottom: 4px; }
.how span { color: var(--muted); font-size: .94rem; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trust .ic { font-size: 1.7rem; color: var(--brand); margin-bottom: 8px; display: block; }
.trust b { display: block; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: .92rem; }

/* ---------- product page ---------- */
.crumb { color: var(--muted); font-size: .92rem; margin: 22px 0 14px; }
.crumb a:hover { color: var(--text); }
.pdp { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; padding-bottom: 30px; }
.pdp .tk { --cut: 230px; }
.pdp .tk .art { font-size: 2.2rem; }
.pdp .tk .art img { max-width: 56%; max-height: 70%; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.panel h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1.15; }
.panel h3 { margin: 18px 0 10px; font-size: 1rem; color: var(--muted); font-weight: 800; }
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.var { text-align: start; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg-2); color: var(--text); transition: border-color .15s, background .15s; display: grid; gap: 2px; }
.var:hover:not([disabled]) { border-color: #5a4cb0; }
.var.on { border-color: var(--brand); background: rgba(255, 194, 61, .09); }
.var[disabled] { opacity: .45; cursor: not-allowed; }
.var b { font-size: 1.12rem; }
.var small { color: var(--muted); }
.buyrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; color: var(--text); font-size: 1.2rem; }
.qty button:hover { background: var(--card-2); }
.qty span { min-width: 34px; text-align: center; font-weight: 800; }
.price-big { font-size: 1.6rem; font-weight: 900; }
.price-big small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.steps { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.steps li { margin: 4px 0; }

/* ---------- forms ---------- */
label.f { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; margin-top: 12px; }
input.in, textarea.in, select.in { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding-inline: 14px; font: inherit; outline: none; width: 100%; }
textarea.in { height: 120px; padding: 12px 14px; resize: vertical; }
input.in:focus, textarea.in:focus, select.in:focus { border-color: var(--brand); box-shadow: var(--focus); }
.hint { color: var(--muted); font-size: .85rem; font-weight: 500; }
.err { color: var(--danger); font-weight: 700; margin-top: 10px; min-height: 1.4em; }

/* ---------- cart ---------- */
.cart { display: grid; grid-template-columns: 1fr 370px; gap: 20px; align-items: start; padding: 22px 0 40px; }
.line { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .th { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-size: .95rem; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 50%, #0d0a1f), color-mix(in srgb, var(--acc) 14%, #0d0a1f)); }
.line .th img { width: 80%; height: 80%; object-fit: contain; }
.rm { background: none; border: 0; color: var(--muted); font-size: 1.1rem; }
.rm:hover { color: var(--danger); }
.sum-row { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.sum-row.t { color: var(--text); font-weight: 900; font-size: 1.25rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.empty { text-align: center; padding: 60px 10px; color: var(--muted); }

/* ---------- order ---------- */
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #09061a; border: 2px dashed #4a3d92; border-radius: 12px; padding: 12px 14px; margin: 8px 0; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; direction: ltr; }
.codebox code { word-break: break-all; font-size: 1.02rem; color: var(--brand); }
.copy { border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 10px; height: 34px; padding: 0 12px; font-weight: 700; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.status.delivered { background: rgba(74, 222, 155, .15); color: var(--ok); }
.status.paid, .status.awaiting_stock, .status.pending { background: rgba(255, 194, 61, .15); color: var(--warm); }
.status.failed { background: rgba(255, 107, 125, .15); color: var(--danger); }
.notice { background: rgba(255, 194, 61, .1); border: 1px solid rgba(255, 194, 61, .35); color: #ffe0a0; padding: 10px 14px; border-radius: 12px; font-size: .92rem; }

/* ---------- legal ---------- */
.legal { max-width: 760px; margin: 28px auto 50px; }
.legal h1 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; margin: 0 0 12px; }
.legal h2 { font-size: 1.1rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--muted); }

/* ---------- faq / footer ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 8px 0 2px; }
footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0 90px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
footer b { color: var(--text); display: block; margin-bottom: 6px; }
footer a { display: block; padding: 2px 0; }
footer a:hover { color: var(--text); }
.toast {
  position: fixed; bottom: 24px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 90vw; z-index: 60;
  background: var(--card-2); border: 1px solid var(--brand); padding: 10px 18px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow);
}
.skel { height: 260px; border-radius: 18px; background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 200% 100%; animation: sh 1.4s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- support chat ---------- */
.fab-stack { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; display: grid; gap: 10px; justify-items: end; }
.fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; position: relative;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 5px 0 #b98410, 0 14px 26px rgba(0, 0, 0, .5); font-size: 1.5rem;
}
.fab:active { translate: 0 3px; box-shadow: 0 2px 0 #b98410; }
.fab.wa { width: 46px; height: 46px; background: #25d366; color: #052e16; box-shadow: 0 4px 0 #148a40, 0 10px 20px rgba(0, 0, 0, .45); font-size: 1.25rem; }
.fab .dot { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 900; display: grid; place-items: center; border: 2px solid var(--bg); }
.chatbox {
  position: fixed; inset-inline-end: 18px; bottom: 90px; z-index: 41; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom; animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; scale: .96; translate: 0 8px; } }
.chat-head { padding: 14px 16px; background: linear-gradient(135deg, #3b2a8f, #6a3fd0); display: flex; align-items: center; gap: 10px; }
.chat-head b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; display: block; line-height: 1.1; }
.chat-head small { opacity: .85; }
.chat-head button { margin-inline-start: auto; background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg small { display: block; opacity: .6; font-size: .7rem; margin-top: 2px; }
.msg.user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-end-end-radius: 4px; }
.msg.admin { align-self: flex-start; background: var(--card-2); border-end-start-radius: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: .85rem; text-align: center; max-width: 100%; }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.chat-foot textarea { flex: 1; height: 44px; max-height: 110px; resize: none; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding: 10px 12px; font: inherit; outline: none; }
.chat-foot textarea:focus { border-color: var(--brand); }
.chat-foot button { width: 46px; border: 0; border-radius: 12px; background: var(--brand); color: var(--brand-ink); font-size: 1.1rem; }
.chat-start { padding: 14px; display: grid; gap: 4px; overflow-y: auto; background: var(--bg-2); flex: 1; }
.chat-start .alt { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chat-start .alt a { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 800; font-size: .88rem; }
.chat-start .alt a:hover { border-color: var(--brand); }

/* ---------- admin ---------- */
.adm { padding: 26px 0 50px; }
.tabs { display: flex; gap: 8px; margin: 14px 0 20px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 900; }
.stat span { color: var(--muted); font-size: .88rem; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
.mini { height: 34px; width: 90px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding-inline: 8px; font: inherit; }
.mini-btn { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font-weight: 700; }
.mini-btn:hover { border-color: var(--brand); }
.mini-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.pcard-adm { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.pcard-adm h3 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.login-box { max-width: 380px; margin: 12vh auto; }
.logo-edit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.logo-edit img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); padding: 3px; }
.logo-edit .none { width: 52px; height: 52px; border-radius: 10px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.chat-admin { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.chat-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.chat-item { display: block; width: 100%; text-align: start; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); padding: 10px 12px; }
.chat-item:hover, .chat-item.on { background: var(--card-2); }
.chat-item b { display: flex; justify-content: space-between; gap: 6px; }
.chat-item small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item .un { background: var(--coral); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .75rem; }
.chat-pane { background: var(--card); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-height: 420px; max-height: 70vh; }
.chat-pane .chat-body { border-radius: 0; }
.sec-ok { color: var(--ok); font-weight: 800; }
.sec-bad { color: var(--danger); font-weight: 800; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-art { height: 280px; max-width: 420px; margin-inline: auto; width: 100%; }
  .trust { grid-template-columns: 1fr 1fr; }
  .how { grid-template-columns: 1fr; }
  .pdp, .cart { grid-template-columns: 1fr; }
  .pdp .tk { --cut: 150px; max-width: 360px; }
  footer .wrap { grid-template-columns: 1fr; }
  .chat-admin { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .line { grid-template-columns: 48px 1fr auto; }
  .line .rm { grid-column: 3; grid-row: 1; }
  .line .qty { grid-column: 2; }
  .line .lp { grid-column: 3; grid-row: 2; }
  table { display: block; overflow-x: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tk { --cut: 92px; }
  .tk .art { font-size: 1.2rem; }
  .hero-art .tkw { width: 150px; }
  .chatbox { inset-inline: 8px; width: auto; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art .tkw, .skel, .chatbox { animation: none; }
  .tkw, .btn { transition: none; }
}
