:root {
  color-scheme: light;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --primary: oklch(0.6 0.2 255);
  --primary-dark: oklch(0.49 0.18 255);
  --primary-soft: oklch(0.96 0.035 252);
  --ink: oklch(0.22 0.055 258);
  --muted: oklch(0.5 0.035 258);
  --line: oklch(0.9 0.018 255);
  --soft: oklch(0.975 0.012 255);
  --success: oklch(0.62 0.17 148);
  --warning: oklch(0.74 0.16 78);
  --danger: oklch(0.61 0.2 27);
  --shadow: 0 5px 12px oklch(0.35 0.07 255 / 0.09);
  --shadow-strong: 0 12px 22px oklch(0.35 0.08 255 / 0.12);
  --max: 1180px;
  font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; }
body.cat-mode {
  --primary: oklch(0.71 0.18 49);
  --primary-dark: oklch(0.48 0.14 39);
  --primary-soft: oklch(0.965 0.055 62);
  --line: oklch(0.9 0.035 64);
  --soft: oklch(0.975 0.028 64);
  --shadow: 0 7px 14px oklch(0.38 0.08 42 / 0.12);
  --shadow-strong: 0 14px 26px oklch(0.35 0.1 42 / 0.16);
  --cat-sticker: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='64' viewBox='0 0 48 64' shape-rendering='crispEdges'%3E%3Cpath fill='%23211624' d='M7 3h8v5h3v4h8V8h3V3h8v8h3v25h-4v3H8v-3H4V11h3zM14 38h24v20h4v5H10v-5h4zM38 43h7v16h-4v4h-7v-5h4z'/%3E%3Cpath fill='%23ffb238' d='M9 8h6v9h5v4h6v-4h5V8h6v27H7V8zm7 36h22v16H14V44zM40 46h3v14h-5v-5h2z'/%3E%3Cpath fill='%23ff86a0' d='M11 10h4v11h-4zm29 0h-4v11h4z'/%3E%3Cpath fill='%23ffe8bd' d='M10 24h27v11H10zm20 22h10v14H20V46z'/%3E%3Cpath fill='%23d76b12' d='M20 11h4v13h-4zm-5 2h4v11h-4zm10 0h4v11h-4zM7 21h7v3H7zm30 0h7v3h-7zM17 46h5v3h-5zm19 3h4v3h-4zm-20 8h6v3h-6z'/%3E%3Cpath fill='%231b1521' d='M12 18h8v9h-8zm24 0h-8v9h8z'/%3E%3Cpath fill='%23fff' d='M14 19h3v3h-3zm30 0h-3v3h3z'/%3E%3Cpath fill='%232e7d3f' d='M12 26h8v3h-8zm28 0h-8v3h8z'/%3E%3Cpath fill='%23ef6f79' d='M21 27h5v4h-5z'/%3E%3Cpath fill='%23211624' d='M22 31h2v4h-2zm-4 3h4v2h-4zm6 0h4v2h-4z'/%3E%3C/svg%3E");
  background: linear-gradient(180deg, #fff 0%, oklch(0.985 0.018 62) 100%);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 44 40' shape-rendering='crispEdges'%3E%3Cpath fill='%23211624' d='M7 3h8v5h3v4h8V8h3V3h8v8h3v25h-4v3H8v-3H4V11h3z'/%3E%3Cpath fill='%23ffb238' d='M9 8h6v9h5v4h6v-4h5V8h6v27H7V8z'/%3E%3Cpath fill='%23ff86a0' d='M11 10h4v11h-4zm29 0h-4v11h4z'/%3E%3Cpath fill='%23ffe8bd' d='M10 24h27v11H10z'/%3E%3Cpath fill='%23d76b12' d='M20 11h4v13h-4zm-5 2h4v11h-4zm10 0h4v11h-4z'/%3E%3Cpath fill='%231b1521' d='M12 18h8v9h-8zm24 0h-8v9h8z'/%3E%3Cpath fill='%23fff' d='M14 19h3v3h-3zm30 0h-3v3h3z'/%3E%3Cpath fill='%232e7d3f' d='M12 26h8v3h-8zm28 0h-8v3h8z'/%3E%3Cpath fill='%23ef6f79' d='M21 27h5v4h-5z'/%3E%3C/svg%3E") 4 4, auto;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
body.cat-mode button, body.cat-mode label { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 44 40' shape-rendering='crispEdges'%3E%3Cpath fill='%23211624' d='M7 3h8v5h3v4h8V8h3V3h8v8h3v25h-4v3H8v-3H4V11h3z'/%3E%3Cpath fill='%23ffb238' d='M9 8h6v9h5v4h6v-4h5V8h6v27H7V8z'/%3E%3Cpath fill='%23ff86a0' d='M11 10h4v11h-4zm29 0h-4v11h4z'/%3E%3Cpath fill='%23ffe8bd' d='M10 24h27v11H10z'/%3E%3Cpath fill='%23d76b12' d='M20 11h4v13h-4zm-5 2h4v11h-4zm10 0h4v11h-4z'/%3E%3Cpath fill='%231b1521' d='M12 18h8v9h-8zm24 0h-8v9h8z'/%3E%3Cpath fill='%23fff' d='M14 19h3v3h-3zm30 0h-3v3h3z'/%3E%3Cpath fill='%232e7d3f' d='M12 26h8v3h-8zm28 0h-8v3h8z'/%3E%3Cpath fill='%23ef6f79' d='M21 27h5v4h-5z'/%3E%3C/svg%3E") 4 4, pointer; }
a { color: inherit; text-decoration: none; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
body.route-changing main { animation: route-in 210ms var(--ease-out-quint) both; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.nav { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.back-btn { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 10px; color: var(--primary-dark); background: var(--primary-soft); font-size: .78rem; font-weight: 800; transition: transform 180ms ease, opacity 180ms ease, background 180ms ease; }
.back-btn:hover { transform: translateX(-2px); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.back-btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.23rem; letter-spacing: -.04em; margin-right: 16px; }
.logo { width: 32px; height: 32px; display: grid; place-items: center; color: white; font-weight: 800; font-size: .92rem; background: var(--primary); clip-path: polygon(0 0,100% 0,100% 67%,70% 100%,0 100%); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: .9rem; font-weight: 600; color: var(--muted); flex: 1; }
.nav-link { border: 0; background: transparent; padding: 24px 0; color: inherit; transition: color 180ms ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 9px; }
.cart-btn { position: relative; min-height: 40px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 8px 12px 8px 10px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; font-weight: 800; transition: transform 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.cart-btn:hover, .cart-btn.active { transform: translateY(-1px); color: var(--primary-dark); box-shadow: inset 0 0 0 1px var(--primary), 0 5px 8px oklch(0.4 0.08 255 / .08); }
.cart-btn b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--primary); font-size: .7rem; line-height: 1; }
.lang { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .78rem; padding: 9px 7px; }
.account-name { max-width: 150px; overflow: hidden; color: var(--muted); font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu { position: relative; }
.profile-chip { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 5px 9px 5px 5px; border-radius: 999px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform 180ms ease, box-shadow 180ms ease; }
.profile-chip:hover, .profile-menu.open .profile-chip { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--primary), 0 5px 8px oklch(0.4 0.08 255 / .08); }
.profile-caret { color: var(--muted); font-size: .85rem; line-height: 1; }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + 9px); z-index: 45; width: 250px; padding: 10px; border-radius: 13px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px oklch(0.35 0.08 255 / .16); animation: pop 160ms ease-out both; }
.profile-dropdown-head { display: flex; gap: 11px; align-items: center; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.profile-dropdown-head strong { display: block; overflow: hidden; color: var(--ink); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-dropdown-head span { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; }
.profile-menu-item { width: 100%; min-height: 38px; display: flex; align-items: center; border: 0; border-radius: 9px; padding: 9px 10px; color: var(--ink); background: transparent; font-size: .82rem; font-weight: 800; text-align: left; }
.profile-menu-item:hover { color: var(--primary-dark); background: var(--primary-soft); }
.profile-menu-item.danger { color: var(--danger); }
.profile-menu-item input, .profile-avatar-edit input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.profile-avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--primary), oklch(0.62 0.18 280)); font-size: .8rem; font-weight: 800; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar.small { width: 32px; height: 32px; border-radius: 9px; }
.profile-avatar.large { width: 76px; height: 76px; border-radius: 18px; font-size: 1.45rem; }
.cat-toggle { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 5px 10px 5px 6px; color: var(--primary-dark); background: var(--primary-soft); font-size: .76rem; font-weight: 800; box-shadow: inset 0 0 0 1px oklch(0.88 0.05 255); transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.cat-toggle:hover, .cat-toggle.active { transform: translateY(-1px); background: #fff; box-shadow: inset 0 0 0 1px var(--primary), 0 5px 8px oklch(0.4 0.08 255 / .08); }
.cat-toggle-icon { position: relative; width: 29px; height: 26px; display: block; overflow: visible; }
.cat-toggle-icon .pixel-cat { position: absolute; left: 0; top: 1px; }

.btn { position: relative; overflow: hidden; border: 0; border-radius: 9px; padding: 10px 15px; min-height: 40px; font-weight: 700; font-size: .86rem; transition: transform 180ms var(--ease-out-quart), background 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.btn::before { content: ""; position: absolute; inset: 50%; width: 180%; aspect-ratio: 1; border-radius: 50%; background: currentColor; opacity: 0; transform: translate(-50%, -50%) scale(0); transition: transform 240ms var(--ease-out-quint), opacity 240ms ease; pointer-events: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active::before { opacity: .1; transform: translate(-50%, -50%) scale(1); }
.btn:active, .nav-link:active, .cart-btn:active, .profile-chip:active, .cat-toggle:active, .back-btn:active, .side-btn:active, .category:active, .product-card:active, .icon-btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn > * { position: relative; z-index: 1; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 12px oklch(0.43 0.16 255 / .16); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 35%, rgb(255 255 255 / .28) 48%, transparent 63%); transform: translateX(-130%); transition: transform 420ms ease; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 9px 16px oklch(0.36 0.12 255 / .18); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-danger { background: oklch(0.96 0.04 27); color: var(--danger); }
.btn-small { padding: 8px 11px; min-height: 34px; font-size: .79rem; }
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: var(--ink); box-shadow: 0 8px 16px oklch(0.22 0.055 258 / .18); }
.google-btn:hover { background: var(--primary-dark); box-shadow: 0 10px 18px oklch(0.35 0.1 255 / .2); }
.google-btn:disabled { color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.google-mark { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: var(--primary-dark); background: #fff; font-weight: 900; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 0; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.icon-btn.active { color: var(--danger); background: oklch(0.97 0.025 27); }
body.cat-mode .icon-btn.cat-wish { position: relative; width: 42px; height: 42px; overflow: visible; color: var(--primary-dark); background: rgb(255 255 255 / .96); isolation: isolate; box-shadow: inset 0 0 0 1px oklch(0.88 0.06 58), 0 5px 10px oklch(0.35 0.09 42 / .12); transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms ease, background 180ms ease; }
body.cat-mode .icon-btn.cat-wish:hover { transform: translateY(-2px) scale(1.03); background: oklch(0.99 0.02 62); box-shadow: inset 0 0 0 1px var(--primary), 0 8px 14px oklch(0.35 0.1 42 / .16); }
body.cat-mode .icon-btn.cat-wish:active { transform: translateY(0) scale(.96); }
body.cat-mode .icon-btn.cat-wish.active { background: oklch(0.95 0.075 62); box-shadow: inset 0 0 0 2px var(--primary), 0 8px 14px oklch(0.35 0.1 42 / .16); }

.demo { background: oklch(0.965 0.035 250); color: var(--primary-dark); font-size: .78rem; font-weight: 600; }
.demo .container { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 7px; text-align: center; }

.hero { overflow: hidden; background: linear-gradient(115deg, #fff 0%, #fff 52%, oklch(0.96 0.04 247) 100%); }
.hero-inner { min-height: 510px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding: 64px 0 58px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 680px; margin-bottom: 17px; font-size: clamp(2.45rem, 5vw, 4.55rem); line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
.hero p { max-width: 590px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.hero-cta .btn { padding: 13px 19px; min-height: 47px; }
.commission { margin-top: 22px; display: flex; gap: 9px; align-items: center; color: var(--primary-dark); font-weight: 700; font-size: .86rem; }
.commission strong { color: var(--success); }
.check { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: .76rem; }

.pixel-cat { --cat-fur: #ffb238; --cat-fur-dark: #d76b12; --cat-cream: #ffe8bd; --cat-line: #211624; --cat-eye: #18131d; --cat-eye-green: #2e7d3f; --cat-ear: #ff86a0; position: relative; display: inline-block; width: 82px; height: 102px; image-rendering: pixelated; transform-origin: 50% 100%; animation: cat-bob 2.6s ease-in-out infinite; }
.cat-head { position: absolute; left: 6px; top: 9px; z-index: 4; width: 70px; height: 58px; border: 4px solid var(--cat-line); border-radius: 5px; background: linear-gradient(90deg, transparent 0 14px, rgb(255 255 255 / .22) 14px 18px, transparent 18px 100%), linear-gradient(180deg, var(--cat-fur) 0 64%, var(--cat-cream) 64% 100%); box-shadow: inset 5px 0 0 var(--cat-fur-dark), inset -5px 0 0 rgb(255 255 255 / .18); }
.cat-ear { position: absolute; top: -24px; z-index: -1; width: 25px; height: 30px; background: var(--cat-line); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cat-ear::after { content: ""; position: absolute; left: 6px; top: 7px; width: 13px; height: 20px; background: linear-gradient(180deg, var(--cat-ear), #f46b8d); clip-path: inherit; }
.cat-ear.left { left: -1px; transform: rotate(-9deg); }
.cat-ear.right { right: -1px; transform: rotate(9deg); }
.cat-stripe { position: absolute; top: 0; width: 6px; height: 26px; background: var(--cat-fur-dark); opacity: .9; }
.cat-stripe.one { left: 27px; height: 35px; }
.cat-stripe.two { left: 36px; height: 42px; }
.cat-stripe.three { right: 24px; height: 35px; }
.cat-cheek { position: absolute; top: 29px; width: 15px; height: 4px; background: var(--cat-fur-dark); box-shadow: 0 10px 0 var(--cat-fur-dark); opacity: .86; }
.cat-cheek.left { left: -3px; }
.cat-cheek.right { right: -3px; }
.cat-eye { position: absolute; top: 25px; width: 14px; height: 18px; background: linear-gradient(180deg, var(--cat-eye) 0 76%, var(--cat-eye-green) 76% 100%); box-shadow: 0 0 0 2px var(--cat-line); animation: cat-blink 5.4s steps(1,end) infinite; }
.cat-eye::after { content: ""; position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; background: #fff; }
.cat-eye.left { left: 16px; }
.cat-eye.right { right: 16px; }
.cat-nose { position: absolute; left: 31px; bottom: 13px; width: 8px; height: 6px; background: #ef6f79; box-shadow: 0 0 0 1px var(--cat-line); }
.cat-mouth { position: absolute; left: 29px; bottom: 6px; width: 12px; height: 8px; border-left: 3px solid var(--cat-line); border-right: 3px solid var(--cat-line); border-bottom: 3px solid var(--cat-line); border-radius: 0 0 7px 7px; }
.cat-whisker { position: absolute; bottom: 19px; width: 20px; height: 3px; background: #fff8e8; box-shadow: 0 0 0 1px rgb(33 22 36 / .12), 0 -9px 0 #fff8e8, 0 9px 0 #fff8e8; }
.cat-whisker.left { left: -22px; }
.cat-whisker.right { right: -22px; }
.cat-body { position: absolute; left: 22px; top: 60px; z-index: 2; width: 39px; height: 36px; border: 4px solid var(--cat-line); border-radius: 5px; background: linear-gradient(90deg, var(--cat-fur-dark) 0 7px, var(--cat-fur) 7px 100%); box-shadow: inset 0 -15px 0 var(--cat-cream); }
.cat-body::before { content: ""; position: absolute; left: 10px; top: 8px; width: 7px; height: 20px; background: var(--cat-cream); box-shadow: 9px 4px 0 var(--cat-cream), -8px -7px 0 -2px var(--cat-fur-dark), 20px -3px 0 -2px var(--cat-fur-dark); }
.cat-body::after { content: ""; position: absolute; left: -13px; bottom: -4px; width: 14px; height: 24px; background: var(--cat-fur); border: 4px solid var(--cat-line); border-right: 0; border-radius: 4px 0 0 4px; box-shadow: 44px 0 0 -4px var(--cat-fur), 44px 0 0 0 var(--cat-line); }
.cat-tail { position: absolute; right: 1px; top: 67px; z-index: 1; width: 30px; height: 34px; border: 5px solid var(--cat-line); border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; box-shadow: inset -7px 5px 0 var(--cat-fur), inset -14px 11px 0 var(--cat-fur-dark); transform-origin: 0 100%; animation: cat-tail 1.7s ease-in-out infinite; }
.cat-paws { position: absolute; left: 19px; bottom: 0; z-index: 5; width: 46px; height: 12px; background: repeating-linear-gradient(90deg, var(--cat-line) 0 7px, var(--cat-cream) 7px 16px, transparent 16px 23px); }
.pixel-cat.tiny { transform: scale(.3); transform-origin: 0 0; animation-duration: 2.1s; }
.pixel-cat.hero-cat { transform: scale(.9); }
.pixel-cat.art-cat { position: absolute; left: 5%; top: -20px; z-index: 3; transform: scale(.95); }
.pixel-cat.panel-cat { transform: scale(.56); }
.pixel-cat.success-cat { transform: scale(.7); }
.pixel-cat.cursor-cat { width: 82px; height: 68px; transform: scale(.56); }
.pixel-cat.cursor-cat .cat-body,
.pixel-cat.cursor-cat .cat-tail,
.pixel-cat.cursor-cat .cat-paws,
.pixel-cat.head-cat .cat-body,
.pixel-cat.head-cat .cat-tail,
.pixel-cat.head-cat .cat-paws { display: none; }
.pixel-cat.wish-cat { position: absolute; left: 50%; top: 50%; width: 82px; height: 68px; transform: translate(-50%, -49%) scale(.43); transform-origin: center; animation-duration: 2.2s; }
.pixel-cat.category-cat { position: absolute; right: 15px; top: -53px; z-index: 4; transform: scale(.4) rotate(-2deg); filter: drop-shadow(0 5px 0 rgb(33 22 36 / .08)); }

.hero-mascot { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--primary-dark); font-size: .8rem; font-weight: 800; }
.hero-mascot .pixel-cat { margin-top: -9px; }

body.cat-mode .header { border-bottom-color: oklch(0.86 0.06 58); background: rgb(255 251 244 / .94); }
body.cat-mode .demo { background: oklch(0.94 0.075 62); color: var(--primary-dark); }
body.cat-mode .logo, body.cat-mode .shield, body.cat-mode .progress i { background: linear-gradient(135deg, oklch(0.72 0.18 49), oklch(0.6 0.18 34)); }
body.cat-mode .hero { background: radial-gradient(circle at 82% 18%, oklch(0.88 0.12 62 / .55), transparent 26%), linear-gradient(115deg, #fff 0%, oklch(0.99 0.018 64) 48%, oklch(0.94 0.075 62) 100%); }
body.cat-mode .section.soft, body.cat-mode .footer { background: oklch(0.97 0.034 64); }
body.cat-mode .btn-primary { background: linear-gradient(135deg, oklch(0.69 0.18 49), oklch(0.57 0.17 35)); box-shadow: 0 8px 16px oklch(0.42 0.11 42 / .18); }
body.cat-mode .btn-primary:hover { background: linear-gradient(135deg, oklch(0.64 0.18 45), oklch(0.5 0.16 34)); }
body.cat-mode .btn-soft, body.cat-mode .note, body.cat-mode .cat-toggle, body.cat-mode .side-btn:hover, body.cat-mode .side-btn.active { background: var(--primary-soft); color: var(--primary-dark); }
body.cat-mode .profile-avatar { background: linear-gradient(135deg, oklch(0.72 0.18 49), oklch(0.58 0.16 34)); }
body.cat-mode .voucher.one { background: linear-gradient(135deg, #f97316, #fb923c); }
body.cat-mode .voucher.two { background: linear-gradient(135deg, #ea580c, #f59e0b); }
body.cat-mode .voucher.three { background: linear-gradient(135deg, #7c2d12, #f97316); }
body.cat-mode .thumb, body.cat-mode .detail-thumb, body.cat-mode .category-icon { background: linear-gradient(135deg, #fb923c, #f97316 54%, #7c2d12) !important; }
body.cat-mode .panel, body.cat-mode .category, body.cat-mode .product-card, body.cat-mode .search, body.cat-mode .seller-box { box-shadow: inset 0 0 0 1px oklch(0.88 0.05 58), var(--shadow); }
body.cat-mode .profile-panel { background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%); }

body.cat-mode .panel:not(.profile-panel),
body.cat-mode .search,
body.cat-mode .seller-box,
body.cat-mode .detail-thumb,
body.cat-mode .side-group {
  position: relative;
  overflow: visible;
}

body.cat-mode .panel:not(.profile-panel)::after,
body.cat-mode .search::after,
body.cat-mode .seller-box::after,
body.cat-mode .detail-thumb::after,
body.cat-mode .side-group::after {
  content: "";
  position: absolute;
  right: 12px;
  top: -31px;
  z-index: 5;
  width: 34px;
  height: 45px;
  background: var(--cat-sticker) center / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 4px 0 rgb(21 39 63 / .12));
  animation: cat-bob 2.8s ease-in-out infinite;
}

body.cat-mode .search::after { right: 9px; top: -30px; transform: scale(.78); }
body.cat-mode .seller-box::after { top: -30px; transform: scale(.82) rotate(4deg); }
body.cat-mode .detail-thumb::after { top: -36px; right: 20px; transform: scale(1.05); }
body.cat-mode .side-group::after { right: 18px; top: -27px; transform: scale(.72) rotate(2deg); }

.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; }
.shield { position: absolute; top: 38px; right: 22%; width: 76px; height: 86px; display: grid; place-items: center; color: white; font-size: 2rem; font-weight: 800; background: var(--primary); clip-path: polygon(50% 0, 92% 17%, 86% 67%, 50% 100%, 14% 67%, 8% 17%); filter: drop-shadow(0 8px 8px oklch(0.45 0.14 255 / .18)); }
.voucher { position: absolute; width: 205px; height: 128px; padding: 18px; color: white; border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 9px 14px oklch(0.36 0.11 255 / .14); }
.voucher b { font-size: 1.15rem; letter-spacing: -.03em; }
.voucher small { opacity: .8; }
.voucher.one { left: 6%; top: 96px; transform: rotate(-7deg); background: linear-gradient(135deg, #3967f8, #7b4bf6); animation: float-one 6s ease-in-out infinite; }
.voucher.two { right: 5%; top: 164px; transform: rotate(8deg); background: linear-gradient(135deg, #00a0d6, #0876f9); animation: float-two 6.5s ease-in-out infinite; }
.voucher.three { left: 31%; bottom: 37px; transform: rotate(-1deg); background: linear-gradient(135deg, #182c66, #2f63e5); animation: float-three 7s ease-in-out infinite; }
.spark { position: absolute; border-radius: 50%; background: var(--primary); opacity: .15; }
.spark.s1 { width: 13px; height: 13px; left: 23%; top: 47px; }
.spark.s2 { width: 22px; height: 22px; right: 2%; bottom: 55px; }
.spark.s3 { width: 9px; height: 9px; left: 7%; bottom: 73px; }

.section { padding: 54px 0; }
.section.soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.section-head h2 { margin-bottom: 4px; font-size: 1.65rem; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.text-link { border: 0; background: transparent; color: var(--primary-dark); font-weight: 700; font-size: .86rem; }

.categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category { position: relative; min-height: 96px; padding: 13px 8px; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; gap: 7px; overflow: visible; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; font-weight: 700; transition: transform 180ms var(--ease-out-quart), box-shadow 180ms ease, background 180ms ease; }
.category:hover, .category.selected { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--primary), 0 5px 8px oklch(0.4 0.08 255 / .08); }
.category:hover .category-icon { transform: rotate(-3deg) scale(1.04); }
.category-icon { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; color: white; border-radius: 11px; font-weight: 800; background: var(--primary); transition: transform 180ms var(--ease-out-quart), box-shadow 180ms ease; }
.category-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-icon.has-image { background: #fff !important; box-shadow: inset 0 0 0 1px var(--line); }
.category-more { color: var(--primary-dark); background: linear-gradient(135deg, #fff, var(--primary-soft)); }

.timer { display: flex; align-items: center; gap: 5px; margin-left: 8px; font-size: .78rem; }
.timer span { min-width: 27px; padding: 5px 4px; border-radius: 5px; background: var(--ink); color: white; text-align: center; }
.flash-hero { overflow: hidden; background: radial-gradient(circle at 82% 18%, oklch(0.87 0.12 255 / .45), transparent 30%), linear-gradient(135deg, oklch(0.98 0.018 255), #fff 54%, oklch(0.95 0.04 255)); border-bottom: 1px solid var(--line); }
.flash-hero-inner { min-height: 315px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: center; padding: 44px 0; }
.flash-hero h1 { max-width: 640px; margin-bottom: 12px; font-size: 2.65rem; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.flash-hero p { max-width: 650px; margin-bottom: 22px; color: var(--muted); line-height: 1.75; }
.deal-kicker { display: inline-flex; margin-bottom: 12px; padding: 6px 10px; border-radius: 999px; color: var(--primary-dark); background: var(--primary-soft); font-size: .76rem; font-weight: 800; }
.sandbox-deal-note { display: inline-flex; max-width: 620px; padding: 10px 12px; border-radius: 11px; color: var(--primary-dark); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; font-weight: 800; line-height: 1.55; }
.flash-card { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: var(--shadow-strong); transform: rotate(2deg); }
.flash-card small { opacity: .8; font-weight: 800; }
.flash-card strong { font-size: 1.2rem; line-height: 1.35; }
.flash-card span { font-size: 2rem; font-weight: 800; letter-spacing: -.045em; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product-card { position: relative; overflow: hidden; background: #fff; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line); transition: transform 190ms var(--ease-out-quart), box-shadow 190ms ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-strong); }
.deal-card { box-shadow: inset 0 0 0 1px oklch(0.88 0.04 255), var(--shadow); }
.deal-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 28px; border-radius: 999px; color: var(--primary-dark); background: #fff; font-size: .78rem; font-weight: 800; box-shadow: 0 5px 10px rgb(0 0 0 / .12); }
.deal-price { display: flex; align-items: baseline; gap: 8px; }
.deal-price span { color: var(--muted); font-size: .78rem; font-weight: 700; text-decoration: line-through; }
.thumb { position: relative; overflow: hidden; min-height: 148px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: var(--thumb); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 0 40%, rgb(255 255 255 / .24) 50%, transparent 60%); transform: translateX(-120%); transition: transform 420ms ease; }
.product-card:hover .thumb::after { transform: translateX(120%); }
.thumb > img, .detail-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.has-image::before, .detail-thumb.has-image::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(7 21 46 / .64), rgb(7 21 46 / .22) 42%, rgb(7 21 46 / .78)); }
.thumb-row, .thumb strong, .detail-thumb small, .detail-thumb strong { position: relative; z-index: 2; }
.thumb small { opacity: .78; font-weight: 700; }
.thumb strong { font-size: 1.34rem; letter-spacing: -.05em; }
.thumb-row { display: flex; align-items: start; justify-content: space-between; }
.product-body { padding: 13px; }
.game-label { color: var(--primary-dark); font-size: .7rem; font-weight: 800; }
.product-title { margin: 5px 0 12px; font-size: .88rem; line-height: 1.4; min-height: 39px; }
.price { color: var(--primary-dark); font-size: 1.07rem; font-weight: 800; }
.sale-price-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 2px; }
.old-price { color: var(--muted); font-size: .78rem; font-weight: 800; text-decoration: line-through; }
.sale-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 999px; color: #fff; background: var(--danger); font-size: .68rem; font-weight: 900; }
.product-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 10px; color: var(--muted); font-size: .72rem; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.product-actions .btn { width: 100%; }
.seller-link { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; color: inherit; background: transparent; font: inherit; font-weight: 800; text-align: left; transition: color 170ms ease, transform 170ms var(--ease-out-quart); }
.seller-link:hover { color: var(--primary-dark); transform: translateY(-1px); }
.live-label { margin-top: 9px; color: var(--primary-dark); font-size: .68rem; font-weight: 700; }
body.cat-mode .categories { row-gap: 36px; padding-top: 27px; }
body.cat-mode .category { margin-top: 22px; }
body.cat-mode .category:hover .category-cat { translate: 0 -2px; }
body.cat-mode .product-grid { row-gap: 34px; padding-top: 10px; }
.product-card.cat-aware { overflow: visible; }
.product-card.cat-aware .thumb { border-radius: 13px 13px 0 0; }
.status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.dot.approved { background: var(--success); }
.dot.rejected { background: var(--danger); }
.rating-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; padding: 2px 6px; border-radius: 999px; color: oklch(0.44 0.13 72); background: oklch(0.96 0.055 74); font-size: .68rem; font-weight: 800; white-space: nowrap; }
.rating-badge span { color: var(--muted); font-weight: 700; }
.review-done { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 5px 8px; border-radius: 999px; color: var(--primary-dark); background: var(--primary-soft); font-size: .75rem; font-weight: 800; }
.review-done span { overflow: hidden; color: var(--muted); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.review-form { display: grid; grid-template-columns: 74px minmax(130px, 1fr) auto; gap: 6px; align-items: center; min-width: 285px; }
.review-form select,
.review-form input { min-height: 34px; border: 0; border-radius: 8px; padding: 8px 9px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; outline: 0; }
.review-form input::placeholder { color: oklch(0.53 0.035 258); }

.store-layout, .app-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 25px; padding: 32px 0 56px; }
.sidebar { align-self: start; position: sticky; top: 116px; }
.sidebar-title { margin: 0 0 12px; font-size: .77rem; color: var(--muted); font-weight: 800; }
.side-btn { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; border-radius: 8px; background: transparent; padding: 10px; color: var(--muted); text-align: left; font-size: .84rem; font-weight: 600; }
.side-btn:hover, .side-btn.active { color: var(--primary-dark); background: var(--primary-soft); }
.side-group { padding-bottom: 19px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.main-head h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.04em; }
.main-head p { color: var(--muted); margin: 6px 0 0; font-size: .86rem; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.search { display: flex; align-items: center; gap: 8px; min-width: 275px; padding: 10px 12px; border-radius: 9px; background: white; box-shadow: inset 0 0 0 1px var(--line); }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .84rem; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.filter-bar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-bar span { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 8px; border-radius: 999px; color: var(--primary-dark); background: #fff; font-size: .75rem; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.panel { background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.admin-panel { margin-top: 15px; }
.profile-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 15px 17px; background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%); }
.profile-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.profile-main small { display: block; margin-bottom: 4px; color: var(--primary-dark); font-size: .72rem; font-weight: 800; }
.profile-main strong { display: block; max-width: 360px; overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-main p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }
.profile-avatar-edit { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--primary-dark); font-size: .72rem; font-weight: 800; }
.profile-avatar-edit:hover .profile-avatar { transform: translateY(-2px); box-shadow: 0 8px 14px oklch(0.35 0.08 255 / .14); }
.profile-avatar-edit .profile-avatar { transition: transform 180ms ease, box-shadow 180ms ease; }
.profile-name-form { min-width: min(100%, 360px); }
.profile-name-form label { display: block; margin-bottom: 6px; color: var(--primary-dark); font-size: .72rem; font-weight: 800; }
.profile-name-form div { display: flex; gap: 7px; align-items: center; }
.profile-name-form input { min-width: 0; flex: 1; border: 0; border-radius: 8px; padding: 9px 10px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; outline: 0; }
.profile-name-form input:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.profile-cat { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.stat { padding: 16px; }
.stat small { color: var(--muted); font-weight: 600; font-size: .76rem; }
.stat strong { display: block; margin-top: 8px; font-size: 1.45rem; letter-spacing: -.045em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }
.admin-listing-head { align-items: flex-start; gap: 12px; }
.admin-filter-tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 440px; }
.admin-filter-tabs button { min-height: 30px; border: 0; border-radius: 999px; padding: 6px 9px; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .72rem; font-weight: 900; transition: transform 170ms var(--ease-out-quart), color 170ms ease, box-shadow 170ms ease, background 170ms ease; }
.admin-filter-tabs button:hover, .admin-filter-tabs button.active { transform: translateY(-1px); color: var(--primary-dark); background: #fff; box-shadow: inset 0 0 0 1px var(--primary), 0 4px 8px oklch(0.35 0.08 255 / .08); }
.seller-level { display: grid; grid-template-columns: 180px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-bottom: 16px; padding: 15px 17px; }
.progress { height: 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.progress i { display: block; height: 100%; width: 68%; border-radius: inherit; background: var(--primary); }
.muted { color: var(--muted); font-size: .78rem; }

.seller-listings-panel { overflow: hidden; }
.listing-edit-panel { margin-bottom: 15px; }
.listing-edit-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.table-tools { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #fff 0%, var(--soft) 100%); }
.table-tools .search { flex: 1; min-width: 220px; }
.select-control { min-height: 40px; border: 0; border-radius: 9px; padding: 0 32px 0 11px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: .82rem; font-weight: 700; outline: 0; }
.select-control:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.list-summary { display: flex; align-items: baseline; gap: 7px; padding: 12px 17px; color: var(--muted); border-bottom: 1px solid var(--line); background: #fff; font-size: .78rem; font-weight: 700; }
.list-summary strong { color: var(--primary-dark); font-size: 1.25rem; letter-spacing: -.04em; }
.table-empty { padding: 12px 0; text-align: center; }
.table-empty strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: .98rem; }
.table-empty p { margin: 0 0 13px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8rem; }
th { padding: 11px 15px; color: var(--muted); background: var(--soft); font-size: .72rem; }
td { padding: 13px 15px; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 15px; }
.wallet-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; padding: 18px; background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%); }
.wallet-hero small { display: block; margin-bottom: 6px; color: var(--primary-dark); font-size: .76rem; font-weight: 800; }
.wallet-hero strong { display: block; font-size: 2rem; line-height: 1; letter-spacing: -.05em; }
.wallet-hero p { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.wallet-safe { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 11px; border-radius: 999px; color: var(--primary-dark); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.wishlist-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; padding: 16px 18px; background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%); }
.wishlist-summary small { display: block; margin-bottom: 5px; color: var(--primary-dark); font-size: .74rem; font-weight: 800; }
.wishlist-summary strong { display: block; font-size: 1.8rem; line-height: 1; letter-spacing: -.045em; }
.wishlist-summary p { margin: 7px 0 0; color: var(--muted); font-size: .8rem; }
.wishlist-summary > span { padding: 7px 10px; border-radius: 999px; color: var(--primary-dark); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.empty-state { grid-column: 1 / -1; padding: 26px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.empty-state strong { display: block; margin-bottom: 7px; font-size: 1.1rem; }
.empty-state p { margin: 0 auto 16px; max-width: 430px; color: var(--muted); line-height: 1.65; }

.form { padding: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: var(--ink); font-size: .79rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-radius: 8px; padding: 11px 12px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; outline: 0; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.upload-empty { padding: 13px; margin: -2px 0 14px; border-radius: 10px; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .8rem; }
.upload-meter { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin: 8px 0 0; padding: 7px 9px; border-radius: 999px; color: var(--primary-dark); background: var(--primary-soft); font-size: .76rem; font-weight: 800; }
.upload-meter strong { display: inline-grid; place-items: center; min-width: 40px; min-height: 24px; border-radius: 999px; color: #fff; background: var(--primary); }
.image-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 9px; margin: -2px 0 14px; }
.image-preview-grid figure { position: relative; overflow: hidden; aspect-ratio: 1; min-height: 86px; margin: 0; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.image-preview-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-preview-grid figcaption { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; color: #fff; background: rgb(7 21 46 / .72); font-size: .72rem; font-weight: 800; }
.inline-form { display: flex; gap: 9px; align-items: stretch; }
.inline-form input { min-width: 0; flex: 1; border: 0; border-radius: 8px; padding: 11px 12px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; outline: 0; transition: box-shadow 170ms ease, transform 170ms var(--ease-out-quart); }
.inline-form input:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.inline-form input:focus-visible { transform: translateY(-1px); }
.game-manager { display: grid; gap: 12px; padding: 15px 17px; }
.game-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.game-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 9px; border-radius: 999px; color: var(--primary-dark); background: var(--primary-soft); font-size: .78rem; font-weight: 800; animation: chip-in 180ms var(--ease-out-quint) both; }
.game-pill .pill-icon { width: 24px; height: 24px; border-radius: 7px; font-size: .68rem; }
.game-pill button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 999px; color: var(--danger); background: #fff; font-weight: 900; line-height: 1; }
.game-icon-upload { position: relative; min-width: 165px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border-radius: 9px; padding: 7px 11px; color: var(--primary-dark); background: var(--primary-soft); box-shadow: inset 0 0 0 1px oklch(0.88 0.045 255); font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform 180ms var(--ease-out-quart), box-shadow 180ms ease, background 180ms ease; }
.game-icon-upload:hover { transform: translateY(-1px); background: #fff; box-shadow: inset 0 0 0 1px var(--primary), 0 5px 8px oklch(0.4 0.08 255 / .08); }
.game-icon-upload input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; cursor: pointer; }
.game-icon-preview { width: 30px; height: 30px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; color: #fff; background: var(--primary); font-size: .68rem; }
.game-icon-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-icon-preview.empty { background: var(--primary-dark); }
.admin-view-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; color: var(--primary-dark); background: var(--primary-soft); font-size: .76rem; font-weight: 800; }
.admin-actions { min-width: 260px; }
.admin-actions .btn { margin: 2px; }
.admin-listing-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.admin-listing-badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 999px; color: var(--primary-dark); background: var(--primary-soft); font-size: .66rem; font-weight: 900; }
.admin-listing-badge.featured { color: oklch(0.44 0.13 72); background: oklch(0.96 0.055 74); }
.admin-listing-badge.hidden { color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.admin-listing-badge.warning { color: var(--danger); background: oklch(0.96 0.04 27); }
.admin-listing-badge.sold { color: #fff; background: var(--ink); }
.admin-lock-note { display: inline-flex; align-items: center; max-width: 260px; min-height: 34px; padding: 8px 10px; border-radius: 12px; color: var(--muted); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .76rem; font-weight: 800; line-height: 1.35; }
.admin-chat-note { margin: 0 12px 10px; }
.note { padding: 11px 12px; border-radius: 8px; color: var(--primary-dark); background: var(--primary-soft); font-size: .78rem; line-height: 1.6; }
.compact-note { min-height: 46px; display: flex; align-items: center; }
.auth-switch { margin: 17px 0 0; color: var(--muted); font-size: .82rem; text-align: center; }

.detail-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 32px; padding: 40px 0 58px; }
.detail-gallery { min-width: 0; }
.detail-thumb { position: relative; overflow: hidden; width: 100%; min-height: 430px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 0; color: white; border-radius: 15px; background: var(--thumb); box-shadow: var(--shadow); text-align: left; transition: transform 190ms var(--ease-out-quart), box-shadow 190ms ease; }
.detail-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.detail-thumb strong { font-size: 2.4rem; letter-spacing: -.07em; }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; z-index: 3; padding: 7px 10px; border-radius: 999px; color: #fff; background: rgb(7 21 46 / .72); font-size: .75rem; font-weight: 800; backdrop-filter: blur(8px); }
.detail-gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.detail-gallery-strip button { position: relative; overflow: hidden; min-height: 86px; border: 0; border-radius: 11px; padding: 0; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); transition: transform 180ms var(--ease-out-quart), box-shadow 180ms ease, opacity 180ms ease; }
.detail-gallery-strip button:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--primary), 0 5px 8px oklch(0.4 0.08 255 / .08); }
.detail-gallery-strip button:active { transform: translateY(0) scale(.985); }
.detail-gallery-strip button.active { box-shadow: inset 0 0 0 2px var(--primary), 0 6px 10px oklch(0.4 0.08 255 / .12); }
.detail-gallery-strip img { width: 100%; height: 100%; min-height: 86px; object-fit: cover; display: block; }
.detail-gallery-strip span { position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 999px; color: #fff; background: rgb(7 21 46 / .72); font-size: .72rem; font-weight: 800; }
.gallery-note { margin: 13px 0; padding: 10px 12px; border-radius: 10px; color: var(--primary-dark); background: var(--primary-soft); font-size: .78rem; font-weight: 700; line-height: 1.55; }
.image-viewer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; }
.image-viewer-backdrop { position: absolute; inset: 0; border: 0; background: rgb(7 21 46 / .78); backdrop-filter: blur(10px); }
.image-viewer-panel { position: relative; z-index: 1; width: min(1040px, 100%); max-height: min(90dvh, 860px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / .28); animation: pop 170ms var(--ease-out-quint) both; }
.image-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.image-viewer-head strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-viewer-head span { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.image-viewer-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 14px; background: #050b17; }
.image-viewer-stage img { max-width: 100%; max-height: min(72dvh, 680px); object-fit: contain; border-radius: 10px; }
.image-viewer-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; color: #fff; background: rgb(255 255 255 / .18); font-size: 2rem; transform: translateY(-50%); transition: background 170ms ease, transform 170ms var(--ease-out-quart); }
.image-viewer-arrow:hover { background: rgb(255 255 255 / .28); transform: translateY(-50%) scale(1.04); }
.image-viewer-arrow.left { left: 18px; }
.image-viewer-arrow.right { right: 18px; }
.image-viewer-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.image-viewer-thumbs button { flex: 0 0 74px; height: 62px; overflow: hidden; border: 0; border-radius: 9px; padding: 0; background: var(--soft); opacity: .72; box-shadow: inset 0 0 0 1px var(--line); }
.image-viewer-thumbs button.active { opacity: 1; box-shadow: inset 0 0 0 2px var(--primary); }
.image-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail h1 { margin-bottom: 12px; font-size: 2rem; letter-spacing: -.04em; }
.detail-price { margin: 18px 0; color: var(--primary-dark); font-size: 1.7rem; font-weight: 800; }
.seller-box { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seller-box-link { width: 100%; border-left: 0; border-right: 0; color: inherit; background: transparent; text-align: left; transition: transform 180ms var(--ease-out-quart), background 180ms ease; }
.seller-box-link:hover { transform: translateY(-1px); background: var(--soft); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--primary); font-weight: 800; }
.seller-profile-page { padding: 34px 0 56px; }
.seller-hero { padding: 20px; background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%); }
.seller-hero-main { display: flex; align-items: center; gap: 15px; }
.seller-avatar { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); font-size: 1.45rem; font-weight: 900; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }
.seller-hero h1 { margin: 3px 0 7px; font-size: 2rem; letter-spacing: -.045em; }
.seller-hero p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.seller-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.seller-profile-stats div { padding: 12px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.seller-profile-stats small { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.seller-profile-stats strong { display: block; color: var(--ink); font-size: 1rem; letter-spacing: -.02em; }
.seller-profile-section { padding-bottom: 0; }
.chat-invite { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 15px 16px; background: linear-gradient(135deg, #fff 0%, var(--soft) 100%); }
.chat-invite strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: .95rem; }
.chat-invite p { margin: 0; max-width: 58ch; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.buy-bar { display: flex; gap: 9px; margin-top: 21px; }
.buy-bar .btn-primary { flex: 1; }
.checkout { max-width: 780px; padding: 38px 0 62px; }
.checkout .panel { margin-bottom: 15px; }
.checkout-block { padding: 17px; }
.checkout-row { display: flex; justify-content: space-between; gap: 15px; padding: 8px 0; font-size: .86rem; }
.checkout-row.discount-row { color: #15803d; font-weight: 800; }
.total { padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 1rem; font-weight: 800; }
.discount-block { display: grid; gap: 12px; }
.discount-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: end; }
.discount-form .field { margin: 0; }
.discount-success { border-radius: 14px; padding: 10px 12px; background: #dcfce7; color: #166534; font-size: .82rem; font-weight: 800; }
.discount-admin-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 15px; }
.discount-admin-form .field { margin: 0; }
.discount-table table { min-width: 720px; }
.code-box { padding: 20px; border-radius: 11px; color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-family: ui-monospace, monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .05em; text-align: center; }
.cat-success { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 13px; border-radius: 12px; color: var(--primary-dark); background: var(--primary-soft); font-size: .82rem; font-weight: 800; }

.chat-shell { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); min-height: 560px; overflow: hidden; }
.chat-list { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-right: 1px solid var(--line); background: var(--soft); }
.chat-list button { width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; transition: background 170ms ease, transform 170ms ease, box-shadow 170ms ease; }
.chat-list button:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 8px oklch(0.35 0.08 255 / .08); }
.chat-list button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.chat-list button.active { background: #fff; box-shadow: inset 0 0 0 1px var(--primary), 0 4px 8px oklch(0.35 0.08 255 / .08); }
.chat-list button.unread { background: #fff; box-shadow: inset 3px 0 0 var(--primary), inset 0 0 0 1px oklch(0.84 0.08 255), 0 6px 12px oklch(0.35 0.08 255 / .1); }
.chat-list strong { display: block; overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-list strong b { float: right; margin-left: 8px; padding: 2px 6px; border-radius: 999px; color: #fff; background: var(--danger); font-size: .62rem; line-height: 1.2; }
.chat-list span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.chat-list button.unread span { color: var(--ink); font-weight: 800; }
.chat-empty-list { padding: 16px 10px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.chat-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; background: #fff; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head span { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.chat-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.chat-messages { display: flex; flex-direction: column; gap: 9px; overflow-y: auto; padding: 17px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); }
.chat-message { align-self: flex-start; max-width: min(72%, 520px); padding: 10px 12px; border-radius: 12px 12px 12px 4px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); animation: pop 170ms ease-out both; }
.chat-message.mine { align-self: flex-end; border-radius: 12px 12px 4px 12px; color: #fff; background: var(--primary); box-shadow: none; }
.chat-message.admin-message { border: 1px solid oklch(0.78 0.13 72); background: oklch(0.98 0.035 72); box-shadow: 0 5px 10px oklch(0.45 0.11 72 / .1); }
.chat-message.admin-message.mine { color: var(--ink); background: linear-gradient(135deg, oklch(0.98 0.04 72), #fff); box-shadow: inset 0 0 0 1px oklch(0.78 0.13 72); }
.chat-sender { display: inline-flex; width: fit-content; margin-bottom: 5px; padding: 3px 7px; border-radius: 999px; color: var(--primary-dark); background: var(--primary-soft); font-size: .66rem; font-weight: 900; }
.chat-message.mine .chat-sender { color: var(--primary-dark); background: #fff; }
.chat-message.admin-message .chat-sender { color: oklch(0.43 0.12 62); background: oklch(0.93 0.08 72); }
.chat-message p { margin: 0; font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; }
.chat-image { display: block; max-width: min(280px, 100%); overflow: hidden; border: 0; border-radius: 10px; padding: 0; margin: 2px 0 8px; background: #050b17; cursor: zoom-in; }
.chat-image img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
.chat-message time { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.chat-message.mine time { color: rgb(255 255 255 / .78); }
.chat-message.admin-message.mine time { color: var(--muted); }
.chat-form { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input-row { display: flex; gap: 9px; align-items: stretch; }
.chat-form input { min-width: 0; flex: 1; border: 0; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: .84rem; outline: 0; }
.chat-form input:focus { box-shadow: inset 0 0 0 2px var(--primary); }
.chat-file-btn { width: 42px; min-width: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--primary-dark); background: var(--primary-soft); box-shadow: inset 0 0 0 1px oklch(0.86 0.06 255); font-weight: 900; cursor: pointer; transition: transform 170ms var(--ease-out-quart), background 170ms ease; }
.chat-file-btn:hover { transform: translateY(-1px); background: #fff; }
.chat-file-btn input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.chat-attachment-preview { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.chat-attachment-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.chat-attachment-preview span { flex: 1; color: var(--ink); font-size: .78rem; font-weight: 800; }
.chat-empty { align-self: center; margin: auto; max-width: 480px; }

.modal-layer { position: fixed; inset: 0; z-index: 82; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgb(7 21 46 / .54); backdrop-filter: blur(8px); }
.confirm-card { position: relative; z-index: 1; width: min(430px, 100%); padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / .24); animation: pop 170ms var(--ease-out-quint) both; }
.confirm-card h2 { margin-bottom: 8px; font-size: 1.2rem; letter-spacing: -.03em; }
.confirm-card p { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.confirm-target { margin: 12px 0; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: var(--soft); font-size: .82rem; font-weight: 900; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 14px; }

.notification-menu { position: relative; }
.notification-chip { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform 170ms var(--ease-out-quart), color 170ms ease, box-shadow 170ms ease, background 170ms ease; }
.notification-chip:hover,
.notification-menu.open .notification-chip { transform: translateY(-1px); color: var(--primary-dark); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary), 0 8px 16px oklch(0.35 0.08 255 / .1); }
.notification-chip:active { transform: scale(.96); }
.notification-chip b { position: absolute; right: -3px; top: -4px; min-width: 19px; height: 19px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 999px; color: #fff; background: var(--danger); font-size: .62rem; font-weight: 900; line-height: 1; }
.notification-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: min(360px, calc(100vw - 28px)); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: var(--shadow); animation: pop 170ms var(--ease-out-quart) both; }
.notification-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.notification-head strong { font-size: .95rem; }
.notification-permission { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--soft); font-size: .74rem; line-height: 1.35; }
.notification-permission.success { color: var(--success); background: rgb(21 163 74 / .08); font-weight: 800; }
.notification-permission .btn { white-space: nowrap; }
.notification-item { width: 100%; display: block; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: #fff; text-align: left; }
.notification-item:hover { background: var(--soft); }
.notification-item.unread { background: linear-gradient(90deg, var(--primary-soft), #fff 58%); }
.notification-item strong { display: block; color: var(--ink); font-size: .84rem; }
.notification-item p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.notification-item time { display: block; margin-top: 7px; color: var(--muted); font-size: .68rem; }
.notification-empty { padding: 18px 14px; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 330px; padding: 13px 15px; border-radius: 10px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; animation: pop 180ms ease-out both; }
.bottom-nav { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes route-in {
  from { opacity: .92; transform: translateY(7px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cat-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@keyframes cat-tail {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(11deg); }
}
@keyframes cat-blink {
  0%, 88%, 100% { transform: scaleY(1); }
  90%, 92% { transform: scaleY(.2); }
}
@keyframes float-one {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-8px) rotate(-5deg); }
}
@keyframes float-two {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(7px) rotate(6deg); }
}
@keyframes float-three {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.footer { margin-top: auto; padding: 26px 0; color: var(--muted); background: var(--soft); font-size: .76rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .back-btn span,
  .cart-btn span { display: none; }
  .nav-actions { margin-left: auto; }
  .cat-toggle > span:last-child { display: none; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding: 47px 0 30px; }
  .flash-hero-inner { min-height: auto; grid-template-columns: 1fr; padding: 38px 0; }
  .flash-card { max-width: 420px; transform: none; }
  .hero-art { min-height: 280px; }
  .voucher { width: 176px; height: 110px; }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-layout, .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 5px; }
  .side-group { display: contents; }
  .sidebar-title { display: none; }
  .side-btn { white-space: nowrap; width: auto; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-panel { align-items: flex-start; flex-direction: column; }
  .two-col, .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { padding-bottom: 74px; }
  .container { width: min(calc(100% - 24px), var(--max)); }
  .nav { flex-wrap: wrap; padding: 8px 0 10px; }
  .nav-actions { width: auto; max-width: 100%; margin-left: auto; gap: 6px; justify-content: flex-end; overflow-x: visible; scrollbar-width: none; }
  .nav-actions::-webkit-scrollbar { display: none; }
  .profile-menu { order: 4; flex: 0 0 auto; }
  .cart-btn { order: 1; }
  .cat-toggle { order: 2; }
  .lang { order: 3; }
  .profile-dropdown { position: fixed; top: 104px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 118px); overflow: auto; }
  .brand { margin-right: 0; }
  .lang { padding-inline: 2px; }
  .cat-toggle { min-width: 38px; min-height: 36px; padding-inline: 5px; }
  .nav-actions > .cat-toggle { display: none; }
  .back-btn { min-width: 38px; min-height: 36px; padding-inline: 9px; }
  .cart-btn { min-width: 44px; min-height: 36px; padding: 7px 8px; }
  .cart-btn b { min-width: 18px; height: 18px; font-size: .66rem; }
  .profile-chip { min-height: 36px; padding: 4px; }
  .account-name { display: none; }
  .nav-actions .btn { min-height: 36px; padding-inline: 10px; font-size: .78rem; white-space: nowrap; }
  .hero h1 { font-size: 2.65rem; }
  .flash-hero h1 { font-size: 2.25rem; }
  .hero-art { min-height: 238px; transform: scale(.9); margin-inline: -16px; }
  .section { padding: 39px 0; }
  .section-head { align-items: start; }
  .categories { gap: 8px; }
  .category { min-height: 80px; }
  body.cat-mode .categories { row-gap: 12px; padding-top: 0; }
  body.cat-mode .category { margin-top: 0; padding-top: 12px; overflow: hidden; }
  body.cat-mode .category-cat { display: none; }
  body.cat-mode .category-icon,
  body.cat-mode .category strong { position: relative; z-index: 1; }
  body.cat-mode .panel:not(.profile-panel)::after,
  body.cat-mode .search::after,
  body.cat-mode .seller-box::after,
  body.cat-mode .detail-thumb::after,
  body.cat-mode .side-group::after { width: 24px; height: 32px; right: 8px; top: -20px; z-index: 1; opacity: .55; }
  body.cat-mode .panel:not(.profile-panel)::after,
  body.cat-mode .seller-box::after,
  body.cat-mode .detail-thumb::after,
  body.cat-mode .search::after,
  body.cat-mode .side-group::after { display: none; }
  .product-grid { gap: 9px; }
  .thumb { min-height: 116px; }
  .product-body { padding: 10px; }
  .product-title { font-size: .78rem; min-height: 35px; }
  .summary-grid { gap: 8px; }
  .stat { padding: 12px; }
  .stat strong { font-size: 1.1rem; }
  .main-head { align-items: start; flex-direction: column; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .search { width: 100%; min-width: 0; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .table-tools { align-items: stretch; flex-direction: column; padding: 12px; }
  .table-tools .search { min-width: 0; }
  .listing-edit-form { grid-template-columns: 1fr; }
  .select-control { width: 100%; }
  .list-summary { padding: 11px 12px; }
  .seller-level { grid-template-columns: 1fr; }
  .profile-main { align-items: flex-start; }
  .profile-avatar.large { width: 64px; height: 64px; border-radius: 15px; }
  .profile-name-form,
  .profile-name-form div { width: 100%; }
  .inline-form { flex-direction: column; }
  .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .wallet-hero { align-items: flex-start; flex-direction: column; }
  .wallet-hero strong { font-size: 1.65rem; }
  .wishlist-summary { align-items: flex-start; flex-direction: column; }
  .chat-invite { align-items: flex-start; flex-direction: column; }
  .chat-invite .btn { width: 100%; }
  .chat-shell { grid-template-columns: 1fr; min-height: 520px; }
  .chat-head { align-items: flex-start; flex-direction: column; }
  .chat-actions { width: 100%; justify-content: flex-start; }
  .chat-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-list button { min-width: 210px; }
  .chat-messages { min-height: 320px; padding: 12px; }
  .chat-message { max-width: 88%; }
  .chat-form { align-items: stretch; flex-direction: column; }
  .chat-input-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; }
  .chat-image { max-width: 230px; }
  .discount-form,
  .discount-admin-form { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .notification-dropdown { position: fixed; top: 118px; left: 12px; right: 12px; width: auto; max-height: min(58dvh, 440px); overflow-y: auto; border-radius: 16px; }
  .notification-permission { align-items: flex-start; flex-direction: column; }
  .detail-thumb { min-height: 300px; }
  .detail-gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .detail-gallery-strip button,
  .detail-gallery-strip img { min-height: 76px; }
  .image-viewer { padding: 10px; }
  .image-viewer-panel { max-height: 94dvh; border-radius: 13px; }
  .image-viewer-stage { padding: 8px; }
  .image-viewer-stage img { max-height: 68dvh; }
  .image-viewer-arrow { width: 38px; height: 38px; font-size: 1.7rem; }
  .image-viewer-arrow.left { left: 10px; }
  .image-viewer-arrow.right { right: 10px; }
  .review-form { grid-template-columns: 66px 150px auto; min-width: 250px; }
  .review-form input { max-width: 150px; }
  .admin-listing-head { flex-direction: column; }
  .admin-filter-tabs { justify-content: flex-start; max-width: none; }
  .seller-profile-page { padding-top: 24px; }
  .seller-hero-main { align-items: flex-start; }
  .seller-profile-stats { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 46; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 6px; border-radius: 18px; background: rgb(255 255 255 / .92); box-shadow: inset 0 0 0 1px var(--line), 0 14px 36px oklch(0.35 0.08 255 / .18); backdrop-filter: blur(16px); }
  .bottom-nav button { position: relative; min-height: 52px; display: grid; place-items: center; gap: 2px; border: 0; border-radius: 13px; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 900; transition: transform 170ms var(--ease-out-quart), color 170ms ease, background 170ms ease; }
  .bottom-nav button span { font-size: 1.05rem; line-height: 1; }
  .bottom-nav button strong { font: inherit; }
  .bottom-nav button.active { color: var(--primary-dark); background: var(--primary-soft); }
  .bottom-nav button:active { transform: scale(.96); }
  .bottom-nav button b { position: absolute; right: 11px; top: 7px; min-width: 17px; height: 17px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: var(--primary); font-size: .62rem; line-height: 1; }
  .toast { bottom: 86px; }
}

@media (max-width: 430px) {
  .nav-actions { width: 100%; justify-content: flex-end; }
  .seller-profile-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
