/* itzpanda.store — shared by the store, order and terms pages */
:root {
  --bg: #f5f6fa; --bg-2: #eceef5; --panel: #ffffff; --ink: #0f1222; --ink-2: #3b4160; --muted: #6a7192;
  --line: #e3e6ef; --line-2: #d4d8e5; --royal: #3157e0; --royal-ink: #ffffff; --royal-soft: #e8edfd; --raised: #ffffff;
  --ok: #138a5b; --ok-soft: #e3f5ec; --bad: #c2364a; --bad-soft: #fbe9ec; --warn: #a56a00;
  --shadow: 0 1px 2px rgba(15, 18, 34, .04), 0 6px 24px -12px rgba(15, 18, 34, .18);
  --shadow-lg: 0 24px 64px -24px rgba(15, 18, 34, .35);
  --r: 16px; --r-sm: 11px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d18; --bg-2: #0d1120; --panel: #121729; --raised: #283152; --ink: #eef1fb; --ink-2: #c3c9e0; --muted: #8a93b5;
    --line: #232a45; --line-2: #2e3658; --royal: #6c8cff; --royal-ink: #0a0d18; --royal-soft: #1a2244;
    --ok: #3ddc97; --ok-soft: #10291f; --bad: #ff7186; --bad-soft: #2d121a; --warn: #f5b84a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -14px rgba(0, 0, 0, .7); --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d18; --bg-2: #0d1120; --panel: #121729; --raised: #283152; --ink: #eef1fb; --ink-2: #c3c9e0; --muted: #8a93b5;
  --line: #232a45; --line-2: #2e3658; --royal: #6c8cff; --royal-ink: #0a0d18; --royal-soft: #1a2244;
  --ok: #3ddc97; --ok-soft: #10291f; --bad: #ff7186; --bad-soft: #2d121a; --warn: #f5b84a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -14px rgba(0, 0, 0, .7); --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .8);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
       -webkit-font-smoothing: antialiased; }
a { color: var(--royal); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.muted { color: var(--muted); } .small { font-size: 13px; }
[hidden] { display: none !important; }

/* top bar */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent);
       backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.3px; font-size: 18px; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
               background: linear-gradient(135deg, #3157e0, #7c3aed); box-shadow: 0 6px 16px -6px #3157e0; }
.brand b { font-weight: 800; } .brand b span { color: var(--royal); }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
                padding: 0 14px 0 38px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--royal); box-shadow: 0 0 0 4px var(--royal-soft); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.top nav { display: flex; align-items: center; gap: 6px; }
.icon-btn { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer;
            display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--royal); color: var(--royal-ink); font-size: 12px; display: inline-grid;
         place-items: center; padding: 0 6px; font-weight: 700; }
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 720px) { .search { display: none; } .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-sm);
       border: 0; background: var(--royal); color: var(--royal-ink); font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap;
       transition: transform .08s, filter .15s, background .15s; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; height: 50px; font-size: 16px; border-radius: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--royal); cursor: pointer; font-weight: 600; }

/* forms */
input.field, select.field, textarea.field { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--panel); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.field { height: auto; padding: 10px 13px; resize: vertical; }
.field:focus { border-color: var(--royal); box-shadow: 0 0 0 4px var(--royal-soft); }
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
.inline { display: flex; gap: 8px; } .inline .field { flex: 1; }
.notice { border-radius: var(--r-sm); padding: 11px 14px; font-size: 14px; border: 1px solid var(--line); background: var(--panel); margin: 10px 0; }
.notice.good { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.notice.bad { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); color: var(--bad); }

/* hero */
.hero { position: relative; padding: 46px 0 22px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -120px -10% auto; height: 420px; z-index: -1; filter: blur(60px); opacity: .55;
  background: radial-gradient(40% 60% at 20% 30%, color-mix(in srgb, #3157e0 45%, transparent), transparent),
              radial-gradient(35% 55% at 75% 20%, color-mix(in srgb, #a855f7 38%, transparent), transparent),
              radial-gradient(30% 50% at 55% 80%, color-mix(in srgb, #14b8a6 30%, transparent), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--panel);
           border: 1px solid var(--line); padding: 5px 12px 5px 6px; border-radius: 999px; box-shadow: var(--shadow); }
.eyebrow b { background: var(--royal); color: var(--royal-ink); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; letter-spacing: .3px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -2px; margin: 18px 0 14px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #3157e0, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin: 0 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--ink-2); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--ok); flex: none; }
.hero-art { position: relative; height: 290px; }
.gc { position: absolute; width: 300px; aspect-ratio: 1.586; border-radius: 18px; padding: 20px; color: #fff; box-shadow: var(--shadow-lg);
      display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.gc::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .28), transparent 55%); }
.gc .gc-top { display: flex; justify-content: space-between; font-weight: 700; letter-spacing: -.2px; position: relative; z-index: 1; }
.gc .gc-amt { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; position: relative; z-index: 1; }
.gc .gc-code { font: 600 12.5px ui-monospace, Consolas, monospace; opacity: .85; letter-spacing: 1px; position: relative; z-index: 1; }
.gc.a { background: linear-gradient(135deg, #3157e0, #7c3aed); right: 150px; top: 0; transform: rotate(-8deg); }
.gc.b { background: linear-gradient(135deg, #0f766e, #14b8a6); right: 0; top: 112px; transform: rotate(6deg); }

/* filter bar */
.filters { position: sticky; top: 64px; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
           backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 0; margin-top: 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 2px;
         -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
        border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 14px; font-weight: 550; color: var(--ink-2); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* sections + product cards */
section.site { margin-top: 34px; }
.site-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.site-logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
             background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); flex: none;
             box-shadow: 0 8px 18px -10px var(--c); }
.site-head h2 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
.site-head p { margin: 1px 0 0; color: var(--muted); font-size: 14.5px; }
.site-head a.visit { margin-left: auto; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line);
                     padding: 6px 12px; border-radius: 999px; background: var(--panel); white-space: nowrap; }
.site-head a.visit:hover { border-color: var(--line-2); }
@media (max-width: 560px) { .site-head a.visit { display: none; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow);
        display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover { border-color: color-mix(in srgb, var(--c, var(--royal)) 45%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--c, var(--royal)); opacity: .85; }
.card h3 { margin: 0; font-size: 16.5px; letter-spacing: -.2px; }
.card .note { margin: -6px 0 0; color: var(--muted); font-size: 13.5px; }
.seg { display: flex; flex-wrap: nowrap; gap: 3px; background: var(--bg-2); border: 1px solid var(--line); padding: 3px; border-radius: 11px; }
.seg button { flex: 1 1 0; min-width: 0; border: 0; background: transparent; padding: 6px 2px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
              color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.seg button:not(.on):hover { color: var(--ink); }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font-size: 27px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.price small { display: block; font-size: 12.5px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-top: 5px; }
.save { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 7px; border-radius: 999px;
        margin-left: 4px; vertical-align: 2px; letter-spacing: 0; }
.strike { text-decoration: line-through; color: var(--muted); font-size: 14px; font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.add { height: 40px; width: 40px; padding: 0; border-radius: 12px; flex: none; }
.add.added { background: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* bundles */
.bundle { background: linear-gradient(160deg, color-mix(in srgb, var(--royal) 9%, var(--panel)), var(--panel) 60%); }
.bundle ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.bundle li { display: flex; gap: 8px; align-items: center; } .bundle li i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }

/* gift cards */
.gift-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .gift-panel { grid-template-columns: 1fr; } }
.gift-buy { background: linear-gradient(140deg, #1e2a78, #6d28d9 55%, #db2777); color: #fff; border-radius: 20px; padding: 26px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.gift-buy::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.gift-buy h3 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.6px; } .gift-buy p { margin: 0 0 18px; opacity: .85; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.amounts button { height: 46px; min-width: 76px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35);
                  background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .15s; }
.amounts button:hover { background: rgba(255, 255, 255, .24); }
.gift-buy small { display: block; margin-top: 14px; opacity: .8; position: relative; z-index: 1; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 4px; font-size: 17px; }

/* orders */
.order-tile { text-decoration: none; color: inherit; }
.order-tile .price { font-size: 22px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.status.ok { background: var(--ok-soft); color: var(--ok); } .status.bad { background: var(--bad-soft); color: var(--bad); }

/* cart drawer */
.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer .shade { position: absolute; inset: 0; background: rgba(8, 10, 20, .45); opacity: 0; transition: opacity .25s; }
.drawer aside { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--panel); border-left: 1px solid var(--line);
                display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); }
.drawer.open { pointer-events: auto; } .drawer.open .shade { opacity: 1; } .drawer.open aside { transform: none; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.drawer .body { flex: 1; overflow-y: auto; padding: 8px 20px 16px; }
.drawer .foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: var(--panel); }
.line { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.line .t { font-weight: 600; font-size: 14.5px; } .line .s { color: var(--muted); font-size: 12.5px; }
.line .r { text-align: right; }
.line .r b { display: block; font-size: 15px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; }
.stepper button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; font-size: 16px; color: var(--ink-2); }
.stepper span { min-width: 22px; text-align: center; font-size: 13.5px; font-weight: 600; }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty .big { width: 64px; height: 64px; border-radius: 20px; background: var(--bg-2); display: grid; place-items: center; margin: 0 auto 12px; color: var(--muted); }
details.codes { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
details.codes summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
details.codes summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
details.codes[open] summary::after { content: "–"; }
details.codes .inline { margin-bottom: 12px; }
.totals div { display: flex; justify-content: space-between; font-size: 14.5px; padding: 3px 0; color: var(--ink-2); }
.totals .grand { font-size: 19px; font-weight: 800; color: var(--ink); padding-top: 8px; letter-spacing: -.4px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 60; background: var(--ink); color: var(--bg);
         border-radius: 14px; padding: 12px 14px 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg);
         transition: transform .3s cubic-bezier(.2, .8, .2, 1); font-weight: 550; font-size: 14.5px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast button { background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); border: 0; border-radius: 9px; padding: 7px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }

/* dialogs */
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); color: var(--ink); width: min(460px, calc(100% - 32px));
         padding: 24px; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(8, 10, 20, .5); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.4px; }
.acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* page sections (order, terms) */
.page { max-width: 780px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 70px; }
.page h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.2px; margin: 10px 0 6px; }
.page h2 { font-size: 19px; letter-spacing: -.3px; margin: 30px 0 8px; }
.item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 12px 0; box-shadow: var(--shadow);
        border-left: 3px solid var(--c, var(--royal)); }
.item .top-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.item h3 { margin: 0; font-size: 15.5px; }
.codebox { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.codebox code { font: 650 16px/1 ui-monospace, Consolas, monospace; letter-spacing: 1px; background: var(--bg-2); border: 1px dashed var(--line-2);
                padding: 11px 14px; border-radius: 11px; word-break: break-all; }
table.tbl { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14.5px; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.tbl th { background: var(--bg-2); font-size: 13px; color: var(--ink-2); }

footer.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0 40px; color: var(--muted); font-size: 13.5px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer.foot a { color: var(--ink-2); text-decoration: none; } footer.foot a:hover { color: var(--ink); }
footer.foot .sp { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
