/* Element Six Labs shop app: dark, simple, thumb-friendly. Orbitron headings, Exo 2 text, gold actions. */
:root {
  --bg: #05060F; --card: #10131D; --card-2: #171B28; --line: #232838; --line-2: #313849;
  --text: #F3F5FB; --muted: #9AA3B8; --dim: #6E768A;
  --gold: #FCD34D; --gold-2: #F59E0B; --green: #22C55E; --red: #F43F5E; --blue: #60A5FA; --violet: #A78BFA;
  --display: "Orbitron", "Exo 2", system-ui, sans-serif; --body: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--body); -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; padding-bottom: calc(78px + var(--safe-b)); overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* Top bar and tab bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(5, 6, 15, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 900 13.5px var(--display); letter-spacing: .1em; white-space: nowrap; }
.brand img { border-radius: 8px; }
.brand b { color: var(--gold); }
.who { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--gold); border: 1px solid rgba(252, 211, 77, .4); border-radius: 999px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.who:empty { display: none; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + var(--safe-b));
  background: rgba(12, 14, 22, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; text-decoration: none; color: var(--dim); font: 600 11.5px var(--body); }
.tabbar a.on { color: var(--text); background: rgba(252, 211, 77, .1); }
.tabbar a.on svg { color: var(--gold); }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold-2); color: #1A1306; font: 800 11px/18px var(--body); font-style: normal; text-align: center; }

main { padding: 14px 16px 24px; max-width: 680px; margin: 0 auto; outline: none; }
h1 { margin: 4px 0 12px; font: 900 20px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; }
h2 { margin: 22px 0 10px; font: 700 12.5px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards, buttons, fields */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card + .card { margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.gold { border: 0; background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1A1306; }
.btn.wide { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
label.f { display: block; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
label.f input, label.f select, label.f textarea { display: block; width: 100%; margin-top: 5px; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #0A0C15; font-size: 16px; color: var(--text); font-weight: 400; }
label.f textarea { min-height: 80px; resize: vertical; }
label.f input:focus, label.f select:focus, label.f textarea:focus { outline: 2px solid rgba(252, 211, 77, .5); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; line-height: 1.4; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--gold-2); }
.err { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .45); color: #FECDD3; font-size: 14px; }
.note { padding: 12px 14px; border-radius: 12px; background: rgba(252, 211, 77, .07); border: 1px solid rgba(252, 211, 77, .3); font-size: 14px; }

/* Sign in */
.signin { max-width: 420px; margin: 4vh auto 0; }
.signin .logo { display: block; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 20px; }
/* animated cube logo (assets/logo-glow.css): app start-up, sign in, loading orders */
.app-logo { width: 96px; margin: 0 auto; mix-blend-mode: screen; filter: drop-shadow(0 0 18px rgba(34, 211, 238, .45)); }
.signin .app-logo { margin-bottom: 14px; }
.signin h1 { text-align: center; }
.signin .lede { text-align: center; color: var(--muted); margin-bottom: 18px; }
.signin .alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.signin .alt p { margin: 8px 0; }

/* Shop list */
.search { position: sticky; top: calc(57px + var(--safe-t)); z-index: 10; margin: -14px -16px 10px; padding: 10px 16px; background: rgba(5, 6, 15, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.search input { width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line-2); background: #0A0C15 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA3B8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 12px 50% / 18px no-repeat; font-size: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip.on { color: #1A1306; background: var(--gold); border-color: var(--gold); }
.deal { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(100deg, rgba(252, 211, 77, .14), rgba(245, 158, 11, .06)); border: 1px solid rgba(252, 211, 77, .35); font-size: 14px; }
.deal b { color: var(--gold); }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; margin-bottom: 8px; }
.prod-h { display: flex; align-items: baseline; gap: 8px; padding: 9px 0 3px; }
.prod-h .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.prod-h b { font-size: 16px; color: #FFFFFF; }
.prod-h span { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.prod-h + .line { border-top: 0; }
.line .sz { font-weight: 700; }
.line .meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--muted); }
.line .pr { font-weight: 800; color: var(--text); font-size: 15px; }
.line .was { text-decoration: line-through; color: var(--dim); font-weight: 500; }
.st-in { color: #86EFAC; }
.st-out { color: #FDA4AF; }
.st-inc { color: var(--blue); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: #0A0C15; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 21px; font-weight: 600; line-height: 1; color: var(--text); cursor: pointer; border-radius: 50%; }
.qty button:active { background: var(--card-2); }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.qty.zero { border-color: rgba(252, 211, 77, .45); }
.qty.zero output, .qty.zero .minus { display: none; }
.qty.zero .plus { width: auto; padding: 0 16px; font-size: 14px; font-weight: 800; color: var(--gold); }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); }

/* Floating cart summary on the shop tab */
.fbar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + var(--safe-b)); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
  border-radius: 16px; background: rgba(23, 27, 40, .98); border: 1px solid rgba(252, 211, 77, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); max-width: 656px; margin: 0 auto; }
.fbar b { display: block; }
.fbar span { font-size: 13px; color: var(--muted); }

/* Cart and totals */
.cline { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cline:first-child { border-top: 0; padding-top: 2px; }
.cline .n { font-weight: 700; }
.cline .s { font-size: 13px; color: var(--muted); }
.cline .amt { grid-column: 2; text-align: right; font-weight: 800; }
.tot { display: grid; gap: 6px; font-size: 15px; }
.tot div { display: flex; justify-content: space-between; gap: 12px; }
.tot .save { color: #86EFAC; }
.tot .grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 800; }
.promo { display: flex; gap: 8px; }
.bac { border-color: rgba(255, 46, 154, .55); background: rgba(255, 46, 154, .06); }
.bac b { display: block; font-size: 16px; }
.bac-tag { display: inline-block; margin-bottom: 4px; padding: 2px 9px; border-radius: 999px; background: #FF2E9A; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bac-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bac-btns .btn { border-color: #FF2E9A; background: rgba(255, 46, 154, .14); }
.promo input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #0A0C15; text-transform: uppercase; font-size: 16px; }
.shipto { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.shipto address { font-style: normal; font-size: 14.5px; line-height: 1.45; }
.progress { height: 8px; border-radius: 4px; background: var(--card-2); overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* Orders */
.order { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.order-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.order-h b { font-size: 16px; }
.order-h .d { font-size: 13px; color: var(--muted); }
.order-h .amt { font-weight: 800; text-align: right; }
.pill { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted); }
.pill.pay { color: var(--gold); border-color: rgba(252, 211, 77, .5); background: rgba(252, 211, 77, .08); }
.pill.paid { color: var(--blue); border-color: rgba(96, 165, 250, .5); }
.pill.ship { color: #86EFAC; border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .08); }
.pill.cxl { color: #FDA4AF; border-color: rgba(244, 63, 94, .45); }
.order ul { margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.order ul li { padding: 2px 0; }
.order .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.paybox { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(252, 211, 77, .06); border: 1px solid rgba(252, 211, 77, .3); font-size: 14px; }
.paybox .m { padding: 8px 0; border-top: 1px solid var(--line); }
.paybox .m:first-of-type { border-top: 0; }
.paybox .m b { display: block; }
.paybox .m span { white-space: pre-line; color: var(--muted); }

/* Account */
.kv { display: grid; gap: 4px; font-size: 14.5px; }
.kv b { font-size: 17px; }
.menu { display: grid; gap: 8px; }
.menu a, .menu button { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-decoration: none; font-weight: 600; text-align: left; cursor: pointer; width: 100%; }
.menu a:after, .menu button:after { content: "›"; color: var(--dim); font-size: 20px; line-height: 1; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sw { position: relative; flex: none; width: 52px; height: 30px; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 15px; background: var(--line-2); transition: background .2s; }
.sw i:after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + i { background: var(--green); }
.sw input:checked + i:after { transform: translateX(22px); }
.done { text-align: center; padding: 10px 0 4px; }
.done .ok { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, .14); color: var(--green); }
.done .ok svg { width: 34px; height: 34px; stroke-width: 2.4; }

.toast { position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translateX(-50%); z-index: 40; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; background: #F3F5FB; color: #0B0D14; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
@media (min-width: 700px) { .fbar { left: 50%; right: auto; width: 656px; transform: translateX(-50%); } }

/* Reward points (2026-11-25) */
.pts { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(252, 211, 77, .4); background: rgba(252, 211, 77, .08); font-size: 14.5px; text-align: left; }
.pts .st, .opts { color: var(--gold); }
.pts b { color: var(--gold); }
.opts { margin-top: 8px; font-size: 14px; font-weight: 600; }
.ptsbig b { font: 800 34px/1.1 var(--body); color: var(--gold); margin-right: 8px; }
.ptsh { margin-top: 12px; } .ptsh summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.ptsh ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.ptsh li { display: flex; justify-content: space-between; gap: 12px; }
