/* Store — dark theme with a red accent. Edit the tokens below to re-skin everything. */
:root {
  --bg: #0b0b0e;
  --bg-2: #111116;
  --panel: #15151b;
  --panel-2: #1b1b23;
  --line: #24242e;
  --line-2: #30303c;
  --text: #f3f3f6;
  --text-2: #a7a7b4;
  --text-3: #6d6d7b;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-soft: rgba(59, 130, 246, .14);
  --ok: #2fd573;
  --warn: #ffb020;
  --bad: #ff4d5e;
  --discord: #5865f2;
  --radius: 14px;
  --radius-sm: 10px;
  --side-w: 264px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.num small, .price small { font-size: .62em; margin-left: 2px; font-weight: 600; color: var(--text-2); }
.muted { color: var(--text-3); }
.sub { color: var(--text-3); font-size: 12.5px; }
.label { color: var(--text-3); font-size: 12px; }
.center { display: flex; justify-content: center; padding-bottom: 8px; }
.ic { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- layout */
.shell { display: flex; min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w);
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px; overflow-y: auto; z-index: 30;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 32px 24px; display: flex; flex-direction: column; gap: 20px; }
.foot { color: var(--text-3); font-size: 12px; text-align: center; padding: 24px 16px 32px; }
.topbar { display: none; }
.scrim { display: none; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800; font-size: 17px; color: #fff; box-shadow: 0 6px 18px rgba(59, 130, 246, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; font-weight: 800; }
.brand-text small { color: var(--text-3); font-size: 11.5px; }

/* my card */
.me { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.me-head { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--panel-2); display: grid; place-items: center; font-weight: 700; flex: none; }
.me-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.me-name strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-name small { color: var(--text-3); font-size: 11.5px; }
.me-balance { display: flex; align-items: flex-end; justify-content: space-between; }
.me-balance > div { display: flex; flex-direction: column; }
.me-balance strong { font-size: 22px; font-weight: 800; }
.me-kv { display: grid; grid-template-columns: 1fr auto; gap: 7px 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.me-kv dt { color: var(--text-3); }
.me-kv dd { margin: 0; font-weight: 700; text-align: right; }
/* grade badges: one class per color key in dcp_core.shop.GRADE_COLORS */
.grade { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 14%, transparent); }
.grade.lg { font-size: 15px; padding: 3px 14px; }
.g-gray, .g-text-gray { color: #a7a7b4; }
.g-bronze, .g-text-bronze { color: #e0965a; }
.g-silver, .g-text-silver { color: #d4d8e2; }
.g-gold, .g-text-gold { color: #ffc940; }
.g-green, .g-text-green { color: #2fd573; }
.g-blue, .g-text-blue { color: #5aa8ff; }
.g-purple, .g-text-purple { color: #b48cff; }
.g-red, .g-text-red { color: #ff4f6d; }
.grade.g-admin { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 4px 12px rgba(59, 130, 246, .3); }
.vip-label { font-size: 11.5px; color: var(--text-3); margin-bottom: 6px; }
.vip-label strong { color: var(--text); }
.bar { appearance: none; width: 100%; height: 5px; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.bar::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }
.me.guest p { color: var(--text-2); font-size: 13px; }

/* menu */
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-label { color: var(--text-3); font-size: 11.5px; font-weight: 600; padding: 12px 10px 6px; }
.menu-label:first-child { padding-top: 0; }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 600; border: 1px solid transparent; transition: background .15s, color .15s;
}
.menu-item span { flex: 1; }
.menu-item .ext { width: 14px; height: 14px; opacity: .5; }
.menu-item:hover { background: var(--panel); color: var(--text); }
.menu-item[aria-current="page"] { background: var(--accent-soft); color: var(--text); border-color: rgba(59, 130, 246, .25); }
.menu-item[aria-current="page"] .ic { color: var(--accent); }

/* live purchases */
.live { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.live-label { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; font-weight: 600; margin-bottom: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); } }
.live-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.live-list strong { color: var(--text); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .12s, filter .15s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 48px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 18px rgba(59, 130, 246, .25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.primary:disabled { background: var(--panel-2); color: var(--text-3); box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: var(--panel-2); border-color: var(--line-2); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--text-3); }
.btn.discord { background: var(--discord); color: #fff; }
.btn.discord:hover { filter: brightness(1.1); }
.btn.light { background: #fff; color: #17171c; }
.btn.light:hover { background: #f1f1f4; }
.btn.outline-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .2); }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; flex: none;
  background: transparent; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-3); }
.icon-btn .ic { width: 16px; height: 16px; }
.icon-btn.copied { color: var(--ok); border-color: var(--ok); }

/* ---------------------------------------------------------------- hero + stats */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 36px 34px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .18), transparent 55%),
    linear-gradient(120deg, #2563eb 0%, #3b82f6 45%, #1d4ed8 100%);
  box-shadow: 0 18px 50px rgba(59, 130, 246, .25);
}
.hero-mark { position: absolute; right: -30px; top: -30px; color: rgba(255, 255, 255, .13); pointer-events: none; }
.hero-ic { width: 260px; height: 260px; stroke-width: 1.4; transform: rotate(-12deg); }
.hero-kicker { font-size: 12px; font-weight: 700; opacity: .85; margin-bottom: 8px; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.hero-sub { margin-top: 10px; opacity: .92; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.stat .accent { color: var(--accent); }

/* ---------------------------------------------------------------- panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head .panel-title { margin-bottom: 0; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.panel-title .ic { color: var(--accent); }
.more { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.more:hover { color: var(--text); }
.more .ic { width: 14px; height: 14px; }
.notice { white-space: pre-line; color: var(--text-2); line-height: 1.8; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--text-2); margin-top: 6px; }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* flash */
.flash { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.flash.ok { background: rgba(47, 213, 115, .1); border: 1px solid rgba(47, 213, 115, .3); color: #7cf0aa; }
.flash.err { background: rgba(255, 77, 94, .1); border: 1px solid rgba(255, 77, 94, .3); color: #ff9aa5; }

/* empty */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 12px; gap: 6px; }
.empty-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-2); color: var(--text-3); margin-bottom: 6px; }
.empty-title { font-weight: 700; color: var(--text-2); }
.empty-sub { color: var(--text-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.panel .product { background: var(--panel-2); }
.product:hover { transform: translateY(-3px); border-color: rgba(59, 130, 246, .45); box-shadow: var(--shadow); }
.product.soldout { opacity: .6; }
.product-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #121a2a, #17171d); }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 800; color: rgba(59, 130, 246, .55); }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(6px); }
.tag-on { background: rgba(10, 10, 14, .7); color: var(--ok); }
.tag-off { background: rgba(10, 10, 14, .7); color: var(--text-3); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-size: 15px; font-weight: 800; }
.product-desc { color: var(--text-3); font-size: 12.5px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 19px; font-weight: 800; }

/* ---------------------------------------------------------------- charge */
.bank { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 16px; margin-bottom: 18px; }
.bank-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.bank-row + .bank-row { border-top: 1px dashed var(--line-2); }
.bank-row .label { width: 64px; flex: none; }
.bank-row strong { flex: 1; }
.big { font-size: 18px; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-weight: 700; font-size: 13px; }
.field em { font-style: normal; color: var(--text-3); font-weight: 500; margin-left: 6px; font-size: 12px; }
.input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 84px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.chip { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--accent); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.row + .row { border-top: 1px solid var(--line); }
.grow { flex: 1; min-width: 0; }
.pill { padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; flex: none; }
.pill-ok { background: rgba(47, 213, 115, .12); color: var(--ok); }
.pill-warn { background: rgba(255, 176, 32, .12); color: var(--warn); }
.pill-bad { background: rgba(255, 77, 94, .12); color: var(--bad); }
.pill-mute { background: var(--panel-2); color: var(--text-3); }

/* ---------------------------------------------------------------- orders */
.order { display: flex; flex-direction: column; gap: 12px; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.done { display: flex; align-items: center; gap: 6px; color: var(--ok); }
.done .ic { width: 15px; height: 15px; }
.fold { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.fold summary { cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 13px; color: var(--text-2); list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: "＋"; margin-right: 8px; color: var(--accent); }
.fold[open] summary::before { content: "－"; }
.fold > :not(summary) { margin: 0 14px 14px; }
.code { display: flex; gap: 8px; align-items: flex-start; }
.code pre { flex: 1; margin: 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.rate { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate legend { font-weight: 700; font-size: 13px; margin-bottom: 4px; float: left; width: 100%; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label { font-size: 26px; color: var(--line-2); cursor: pointer; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #ffc940; }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }

/* ---------------------------------------------------------------- reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.reviews > .review:only-child { max-width: 420px; }
.page-head + .reviews .review { background: var(--panel); }
.review p { color: var(--text-2); white-space: pre-line; }
.review-head { display: flex; align-items: center; justify-content: space-between; }
.review-foot { font-size: 12.5px; display: flex; gap: 4px; }
.stars { letter-spacing: 1px; }
.stars .on { color: #ffc940; }
.stars .off { color: var(--line-2); }

/* ---------------------------------------------------------------- closed */
.closed { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.closed-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 40px 32px; text-align: center; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closed-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.closed-card h1 { font-size: 22px; font-weight: 800; }
.closed-card p { color: var(--text-2); margin-bottom: 8px; }

/* ---------------------------------------------------------------- admin */
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.link { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; flex: none !important; }
.flash.warn { background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .3); color: #ffd27a; }
.row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pill.lg { padding: 6px 14px; font-size: 12.5px; }
.stat .sub { margin-top: -2px; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }
.actions { display: flex; align-items: flex-start; gap: 6px; flex: none; }
.pop { position: relative; }
.pop summary { list-style: none; }
.pop summary::-webkit-details-marker { display: none; }
.pop[open] summary { border-color: var(--bad); color: var(--bad); }
.pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 280px; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); }

.table-wrap { overflow-x: auto; margin: 0 -6px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 12px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.table .r { text-align: right; }
.reveal summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 12.5px; list-style: none; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal code { display: block; margin-top: 6px; max-width: 280px; white-space: pre-wrap; word-break: break-all; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, transform .15s; }
.quick-item:hover { border-color: rgba(59, 130, 246, .45); transform: translateY(-2px); }
.quick-item > .ic { color: var(--accent); width: 20px; height: 20px; }
.quick-item span { display: flex; flex-direction: column; line-height: 1.35; }
.quick-item small { color: var(--text-3); font-size: 12px; }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-form.three { grid-template-columns: repeat(3, 1fr); }
.span-2 { grid-column: 1 / -1; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input.file { padding: 8px 10px; }
.input.file::file-selector-button { font: inherit; font-weight: 700; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 4px 10px; margin-right: 10px; cursor: pointer; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.checks { justify-content: flex-end; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.hint { margin-top: 12px; }
.search { display: flex; gap: 8px; }

.switch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 44px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background .18s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s; }
.switch input:checked + .switch-ui { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch span:last-child { display: flex; flex-direction: column; }
.switch small { color: var(--text-3); font-size: 12px; }

.fold-panel > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.fold-panel > summary::-webkit-details-marker { display: none; }
.fold-panel[open] > summary { margin-bottom: 18px; }
.admin-product { display: flex; flex-direction: column; gap: 12px; }
.ap-head { display: flex; align-items: center; gap: 14px; }
.ap-thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; flex: none; background: linear-gradient(135deg, #121a2a, #17171d); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: rgba(59, 130, 246, .6); }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.charge-row { align-items: flex-start; }
.flash .grow { flex: 1; }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ladder-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ladder-item .fold { background: var(--panel); }
.ladder-head { display: flex; align-items: center; gap: 14px; }
.ladder-step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); color: var(--text-3); font-size: 12px; font-weight: 800; flex: none; }
.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-flow: row wrap; gap: 8px; }
.swatches legend { font-weight: 700; font-size: 13px; margin-bottom: 7px; padding: 0; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .grade { padding: 5px 12px; font-size: 12.5px; opacity: .55; transition: opacity .15s; }
.swatch input:checked + .grade { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; }
.swatch input:focus-visible + .grade { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint-top { margin: -8px 0 16px; }
.banner-row { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.banner-preview { aspect-ratio: 2 / 1; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.banner-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .banner-row { grid-template-columns: 1fr; } }
.tips { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cols { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 20; }
  .main { margin-left: 0; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10; padding: 10px 16px; background: rgba(11, 11, 14, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .brand.mini { padding: 0; }
  .brand.mini .brand-mark { width: 30px; height: 30px; font-size: 14px; }
  .content { padding: 20px 16px; gap: 16px; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 23px; }
  .hero-ic { width: 180px; height: 180px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 20px; }
  .panel { padding: 18px 16px; }
  .products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .grid-form, .grid-form.three { grid-template-columns: 1fr; }
  .charge-row { flex-wrap: wrap; }
  .pop-body { width: min(280px, calc(100vw - 48px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* product categories */
.cat-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.cat-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cat-form { display: flex; gap: 8px; align-items: center; flex: 1; flex-wrap: wrap; }
.cat-form .input { flex: 1; min-width: 140px; }
.cat-form .cat-order { flex: 0 0 84px; min-width: 0; }
.cat-new { padding-top: 12px; border-top: 1px solid var(--line-2); }
fieldset.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; }
fieldset.checks legend { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.group-title { font-size: 16px; margin: 22px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.group-title small { font-size: 12px; font-weight: 600; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
a.chip { text-decoration: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-section + .cat-section { margin-top: 26px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------- landing (/) */
.link { color: var(--accent); font-weight: 700; }
.link:hover { text-decoration: underline; }
.lp { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.lp-nav { display: flex; align-items: center; gap: 24px; padding: 20px 0; }
.lp-name { font-size: 16px; font-weight: 800; }
.lp-links { display: flex; gap: 4px; margin-left: auto; }
.lp-links a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 600; }
.lp-links a:hover { color: var(--text); background: var(--panel); }
.lp-me { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.lp-me:hover { border-color: var(--accent); }
.lp-me-name { font-size: 11.5px; color: var(--text-3); }
.lp-me strong { font-size: 15px; font-weight: 800; }
.lp-flash { margin-top: 4px; }
.lp-auth { display: flex; gap: 8px; }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 56px 0 64px; }
.lp-title { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.12; letter-spacing: -.035em; font-weight: 800; white-space: pre-line; word-break: keep-all; }
.lp-text { margin-top: 20px; max-width: 34em; color: var(--text-2); font-size: 16.5px; line-height: 1.75; word-break: keep-all; white-space: pre-line; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.lp-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.lp-facts > div { padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.lp-facts > div:last-child { border-right: 0; margin-right: 0; }
.lp-facts dt { color: var(--text-3); font-size: 12px; }
.lp-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 800; }
.lp-facts dd small { color: var(--text-3); font-size: 12px; font-weight: 600; }

.lp-visual { display: flex; justify-content: center; }
.lp-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }

/* the receipt: a vending-machine slip listing popular items */
.receipt {
  width: min(100%, 360px); background: #f4f4f6; color: #17171c; padding: 26px 24px 22px;
  font-variant-numeric: tabular-nums; transform: rotate(-2deg); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --tooth: radial-gradient(circle at 8px 0, transparent 7px, #f4f4f6 7.5px);
  -webkit-mask: radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) top / 16px 51% repeat-x, radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) bottom / 16px 51% repeat-x;
  mask: radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) top / 16px 51% repeat-x, radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) bottom / 16px 51% repeat-x;
}
.receipt .muted { color: #6b6b76; }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 2px dashed #c9c9d1; }
.receipt-head strong { font-size: 17px; font-weight: 800; }
.receipt-list { list-style: none; margin: 0; padding: 10px 0; border-bottom: 2px dashed #c9c9d1; }
.receipt-list a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-weight: 600; }
.receipt-list a span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-list a:hover span:first-child { color: var(--accent); }
.receipt-list .num { font-weight: 800; flex: none; }
.receipt-empty { padding: 18px 0; }
.receipt-foot { display: flex; justify-content: space-between; padding-top: 14px; font-size: 12.5px; color: #6b6b76; }

/* the live ticker: the one moving thing on the page */
.ticker { display: flex; align-items: center; gap: 16px; border-block: 1px solid var(--line); padding: 14px 0; overflow: hidden; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; flex: none; font-weight: 800; font-size: 13px; }
.ticker-track { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-list li { white-space: nowrap; color: var(--text-2); font-size: 13.5px; }
.ticker-list strong { color: var(--text); }
.ticker:hover .ticker-list { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.lp-main { display: flex; flex-direction: column; gap: 64px; padding: 56px 0 40px; }
.lp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.lp-h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.lp-head .lp-h2 { margin-bottom: 0; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.cat-tile strong { font-size: 17px; }
.cat-tile:hover { border-color: var(--accent); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 22px 28px 0 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 40px; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps strong { font-size: 16px; }
.steps p { color: var(--text-2); margin-top: 6px; line-height: 1.7; word-break: keep-all; }

.lp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-review { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-review blockquote { margin: 0; font-size: 15.5px; line-height: 1.7; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.lp-review figcaption { font-size: 12.5px; }
.lp-notice { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

.lp-end { padding: 48px 0 8px; border-top: 1px solid var(--line); }
.lp-end h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; word-break: keep-all; }

@media (max-width: 860px) {
  .lp { padding: 0 16px; }
  .lp-nav { gap: 12px; flex-wrap: wrap; }
  .lp-links { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .lp-me, .lp-auth { margin-left: auto; }
  .lp-hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 44px; }
  .receipt { transform: none; }
  .lp-facts > div { padding-right: 16px; margin-right: 16px; }
  .steps, .lp-reviews { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .lp-main { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-list { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-list li[aria-hidden="true"] { display: none; }
}
/* ---------------------------------------------------------------- login / sign-up */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(1200px 600px at 80% 20%, rgba(59, 130, 246, .12), transparent 60%), var(--bg); }
.auth-shell { width: min(100%, 1060px); min-height: 600px; display: grid; grid-template-columns: 420px 1fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.auth-card { padding: 36px 36px 30px; display: flex; flex-direction: column; gap: 16px; background: var(--panel); border-right: 1px solid var(--line); }
.auth-brand { padding: 0; margin-bottom: 18px; }
.auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.auth-lead { margin-top: -8px; }
.auth-card .form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .check { align-items: flex-start; font-weight: 500; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
.auth-card .check input { margin-top: 2px; flex: none; }
.btn.block { width: 100%; justify-content: center; }
.pw { position: relative; display: block; }
.pw .input { width: 100%; padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--text); background: var(--panel-2); }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth-alt { margin-top: auto; padding-top: 8px; text-align: center; color: var(--text-2); font-size: 13px; }
.auth-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, #0e1a33, #0a0f1c 55%, var(--bg-2)); }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.auth-mark { text-align: center; padding: 40px; }
.auth-letter { display: block; font-size: clamp(160px, 22vw, 280px); font-weight: 900; line-height: .9; letter-spacing: -.06em; background: linear-gradient(160deg, var(--accent-2), var(--accent) 45%, #1e3a8a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 20px 50px rgba(59, 130, 246, .35)); }
.auth-mark p { margin-top: 22px; color: var(--text-2); font-size: 16px; max-width: 22em; word-break: keep-all; }
@media (max-width: 860px) {
  .auth { padding: 16px; place-items: start center; }
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-visual { display: none; }
  .auth-card { border-right: 0; padding: 28px 22px; }
}
.danger-zone { border-color: rgba(255, 77, 94, .35); }
.danger-zone .panel-title .ic { color: var(--bad); }

.cat-move { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.input.sm { height: 32px; padding: 0 10px; font-size: 12.5px; width: auto; min-width: 140px; }

/* category links under 전체 상품 in the sidebar */
.menu-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px 19px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.menu-item.sub-item { padding: 7px 10px; font-size: 13px; }
.menu-count { flex: none !important; color: var(--text-3); font-size: 11.5px; }

/* admin: sidebar menu editor */
.menu-group-head { margin-bottom: 14px; }
.menu-title-input { font-weight: 800; font-size: 15px; }
.menu-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.menu-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1.3fr .9fr 70px auto; gap: 10px; align-items: end; padding: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.menu-row .field.narrow .input { min-width: 0; }
.menu-row-actions { display: flex; gap: 6px; align-items: center; }
.menu-preview { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent); }
.fold .menu-row { margin-top: 10px; }
@media (max-width: 1100px) { .menu-row { grid-template-columns: 1fr 1fr; } .menu-row-actions { grid-column: 1 / -1; } }.menu-editor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.menu-edit-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.menu-live { position: sticky; top: 20px; }
.menu-live-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px; }
.menu-live-head { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.menu-live .menu-item { cursor: default; }
.menu-live .menu-label.is-new, .menu-live .menu-item.is-new { opacity: .6; font-style: italic; }
.menu-empty { padding: 4px 10px 8px; }
@media (max-width: 1100px) { .menu-editor { grid-template-columns: 1fr; } .menu-live { position: static; } }.cat-icon { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 800; color: var(--text-2); }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn.picked { border-color: var(--accent); color: var(--text); }
/* sidebar: product categories with their icons */
.menu-item .cat-ic { width: 22px; height: 22px; flex: none; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); font-size: 11px; font-weight: 800; color: var(--text-2); }
.menu-item .cat-ic img { width: 100%; height: 100%; object-fit: cover; }.menu-label-link { display: flex; align-items: center; gap: 6px; }
.menu-label-link:hover { color: var(--text); }
.menu-label-ic { width: 14px; height: 14px; border-radius: 4px; object-fit: cover; }
.menu .menu-empty { display: block; padding: 4px 10px 8px; }/* single product page */
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 13px; }
.crumbs a:hover { color: var(--text); }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pd-media { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-media .product-ph { font-size: 72px; }
.pd-info { display: flex; flex-direction: column; gap: 14px; }
.pd-name { font-size: 28px; font-weight: 800; letter-spacing: -.02em; word-break: keep-all; }
.pd-tags .tag { position: static; }
.pd-price { font-size: 30px; font-weight: 800; }
.pd-desc { color: var(--text-2); line-height: 1.8; white-space: pre-line; word-break: keep-all; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } }
.me-actions { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- login popup */
.login-modal { width: min(92vw, 360px); padding: 30px 26px 24px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, #1d1d25, #131318); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.login-modal[open] { display: flex; flex-direction: column; gap: 10px; animation: login-in .18s ease-out; }
.login-modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(2px); }
@keyframes login-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.login-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.login-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 16px; cursor: pointer; }
.login-close:hover { background: var(--panel-2); color: var(--text); }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 12px; }
.login-mark { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px rgba(59, 130, 246, .35); }
.login-logo strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.login-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.login-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.login-field .input { width: 100%; }
.login-main { margin-top: 6px; }
.login-modal .btn.lg { height: 46px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .login-modal[open] { animation: none; } }
/* ================================================================ refresh (red title bars,
   boxed menu groups, top bar with a slow notice). Kept calm: no glow, one slow animation. */
:root { --radius: 10px; --radius-sm: 8px; }

/* top bar above the page content */
.mainbar { display: flex; align-items: center; gap: 14px; padding: 14px 32px; border-bottom: 1px solid rgba(59, 130, 246, .35); background: linear-gradient(180deg, #121217, var(--bg)); position: sticky; top: 0; z-index: 20; }
.mainbar .notice-bar, .mainbar .notice-bar-gap { flex: 1; min-width: 0; }
.mainbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.mb-balance { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; padding-right: 6px; }
.mb-balance strong { font-size: 15px; font-weight: 800; }
.btn.outline { background: transparent; border: 1px solid var(--accent); color: var(--text); }
.btn.outline:hover { background: var(--accent-soft); }

/* slow notice that moves to the left */
.notice-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.nb-ic { color: #ffc940; display: grid; place-items: center; flex: none; }
.nb-ic .ic { width: 17px; height: 17px; }
.nb-track { flex: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nb-text { display: inline-block; white-space: nowrap; padding-left: 100%; font-weight: 700; font-size: 13.5px; animation: nb-move 28s linear infinite; }
.notice-bar:hover .nb-text { animation-play-state: paused; }
@keyframes nb-move { to { transform: translateX(-100%); } }
.lp .notice-bar { margin: 4px 0 8px; }

/* panels: a red title bar on top, like a board header */
.panel > .panel-title:first-child, .panel > .panel-head:first-child {
  margin: -22px -22px 18px; padding: 12px 22px;
  background: linear-gradient(90deg, rgba(59, 130, 246, .26), rgba(59, 130, 246, .05) 75%);
  border-bottom: 1px solid rgba(59, 130, 246, .35); border-radius: var(--radius) var(--radius) 0 0;
}
.panel > .panel-head:first-child .panel-title { margin: 0; }
.panel-title .ic { color: #fff; }
.page-head h1 { display: flex; align-items: center; gap: 10px; }
.page-head h1::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--accent); }

/* sidebar: each group sits in its own box; the current page gets a red bar */
.menu-box { display: flex; flex-direction: column; gap: 1px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.menu-box .menu-item { border-radius: 6px; position: relative; }
.menu-item[aria-current="page"] { background: linear-gradient(90deg, rgba(59, 130, 246, .28), rgba(59, 130, 246, .08)); border-color: transparent; }
.menu-item[aria-current="page"]::before { content: ""; position: absolute; left: -5px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--accent); }
.menu-label { padding-left: 4px; }

@media (max-width: 860px) {
  .mainbar { padding: 10px 16px; flex-wrap: wrap; position: static; }
  .mainbar .notice-bar { order: 2; flex-basis: 100%; }
  .mainbar-actions { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-text { animation: none; padding-left: 0; white-space: normal; }
}
/* ================================================================ magazine layout (store pages)
   Dark by default; [data-theme="light"] on <html> switches the tokens. */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-2: #f6f6f7; --panel: #ffffff; --panel-2: #f3f3f5;
  --line: #e7e7ea; --line-2: #d9d9de; --text: #141417; --text-2: #4a4a55; --text-3: #85858f;
  --accent-soft: rgba(59, 130, 246, .1); --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  color-scheme: light;
}
:root[data-theme="light"] .login-modal { background: #fff; }
:root[data-theme="light"] .receipt { box-shadow: 0 14px 40px rgba(0, 0, 0, .12); }
:root { --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, "Noto Serif KR", "Batang", serif; }

.mag { min-height: 100vh; display: flex; flex-direction: column; }
.mh { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.mh-top { max-width: 1240px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 18px 24px 10px; }
.mh-left, .mh-right { display: flex; align-items: center; gap: 6px; }
.mh-right { justify-content: flex-end; }
.mh-social { width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-3); border-radius: 6px; }
.mh-social:hover { color: var(--text); }
.mh-social .ic { width: 17px; height: 17px; }
.mh-burger { display: none; }
.mh-logo { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: .02em; line-height: 1; color: var(--text); text-align: center; white-space: nowrap; }
.mh-logo.sm { font-size: 26px; }
.mh-link { background: none; border: 0; padding: 6px 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mh-link:hover { color: var(--text); }
.mh-wallet strong { color: var(--text); }
.mh-right form { margin: 0; }
[data-theme-toggle] .t-sun { display: none; }
:root[data-theme="light"] [data-theme-toggle] .t-sun { display: block; }
:root[data-theme="light"] [data-theme-toggle] .t-moon { display: none; }

.mh-nav { max-width: 1240px; margin: 0 auto; width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 26px; padding: 6px 24px 12px; }
.mh-nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--text-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.mh-nav a:hover { color: var(--text); }
.mh-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.mh-nav a.hot { color: var(--accent); }
.mh-nav a img { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; }
.show-sm { display: none !important; }

.mag > .notice-bar { max-width: 1240px; width: calc(100% - 48px); margin: 14px auto 0; }
.mag > .notice-bar-gap { display: none; }
.mag-content { max-width: 1240px; padding: 26px 24px 40px; gap: 28px; }

/* cover hero */
.cover { position: relative; min-height: 420px; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; background: radial-gradient(800px 400px at 85% 10%, rgba(59, 130, 246, .35), transparent 60%), linear-gradient(160deg, #111a2c, #0e0e11 60%); }
:root[data-theme="light"] .cover.no-img { background: radial-gradient(800px 400px at 85% 10%, rgba(59, 130, 246, .18), transparent 60%), linear-gradient(160deg, #edf3fd, #f3f3f5 60%); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover:not(.no-img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .1) 60%); }
.cover-text { position: relative; z-index: 1; padding: 40px; max-width: 680px; }
.cover:not(.no-img) .cover-text { color: #fff; }
.cover-kicker { font-family: var(--serif); font-size: 15px; font-weight: 700; opacity: .85; }
.cover-title { font-size: clamp(34px, 5vw, 60px); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; white-space: pre-line; word-break: keep-all; margin-top: 8px; }
.cover-sub { margin-top: 14px; font-size: 16px; line-height: 1.7; opacity: .9; white-space: pre-line; word-break: keep-all; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.mag-section { display: flex; flex-direction: column; }
.mag-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mag-h2 { font-size: 20px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 14px; }
.mag-head .mag-h2 { margin-bottom: 0; }
.mag-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }

/* category chips */
.cat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cat-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cat-chip:hover { border-color: var(--accent); }
.cat-chip span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.cat-chip-ic { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--panel-2); font-weight: 900; flex: none; }
.cat-chip-ic img { width: 100%; height: 100%; object-fit: cover; }

/* masonry of products: picture first, caption under it */
.masonry { columns: 4 230px; column-gap: 18px; }
.tile { display: block; break-inside: avoid; margin-bottom: 22px; }
.tile-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.4; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.tile-media.tall { aspect-ratio: 3 / 4.2; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-media .tag { position: absolute; left: 10px; top: 10px; }
.tile.soldout .tile-media img { filter: grayscale(.8) brightness(.7); }
.tile-cap { display: flex; flex-direction: column; gap: 2px; padding: 9px 2px 0; }
.tile-cap strong { font-size: 14px; line-height: 1.4; }
.tile-cap .num { color: var(--text-3); font-size: 13px; font-weight: 700; }
.tile:hover .tile-cap strong { text-decoration: underline; text-underline-offset: 3px; }

.mag-reviews { display: grid; gap: 12px; }
.mag-review { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.mag-review blockquote { margin: 0; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mag-review figcaption { font-size: 12.5px; }
.mag-notice { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

/* footer */
.mf { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-2); }
.mf-inner { max-width: 1240px; margin: 0 auto; padding: 36px 24px 20px; display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.mf-brand p { margin-top: 10px; font-size: 13px; }
.mf-col { display: flex; flex-direction: column; gap: 8px; }
.mf-col h2 { font-size: 13px; font-weight: 900; margin-bottom: 4px; }
.mf-col a { color: var(--text-2); font-size: 13px; }
.mf-col a:hover { color: var(--text); }
.mf-copy { max-width: 1240px; margin: 0 auto; padding: 0 24px 26px; color: var(--text-3); font-size: 12px; }

/* intro splash: big logo, then the site (once per visit, played by store.js) */
.splash { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: var(--bg); }
.splash.play { display: grid; animation: splash-out .5s ease .95s forwards; }
.splash-logo { font-family: var(--serif); font-size: clamp(48px, 9vw, 110px); font-weight: 700; color: var(--text); letter-spacing: .02em; }
.splash.play .splash-logo { animation: splash-logo 1.1s ease forwards; }
@keyframes splash-logo { 0% { opacity: 0; transform: scale(.92); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1.04); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

@media (max-width: 860px) {
  .mh-top { grid-template-columns: auto 1fr auto; padding: 12px 12px 10px; gap: 8px; }
  .mh-logo { font-size: 28px; }
  .mh-burger { display: grid; }
  .mh-social, .hide-sm { display: none !important; }
  .show-sm { display: inline-flex !important; }
  .mh-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px 10px; }
  .mh-nav.open { display: flex; }
  .mh-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .mag > .notice-bar { width: calc(100% - 32px); }
  .mag-content { padding: 18px 16px 32px; }
  .cover { min-height: 360px; }
  .cover-text { padding: 24px; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .mag-split { grid-template-columns: 1fr; }
  .mf-inner { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .splash.play, .splash.play .splash-logo { animation-duration: .01s; animation-delay: 0s; }
  .tile-media img { transition: none; }
}
/* ================================================================ three-column store layout */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tx { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 600px at 50% -10%, rgba(59, 130, 246, .10), transparent 70%), var(--bg); }
.tx-top { display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 28px; border-bottom: 2px solid var(--line-2); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(6px); }
.tx-burger { display: none; }
.tx-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.tx-logo strong { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.tx-logo .brand-mark { width: 32px; height: 32px; font-size: 15px; box-shadow: none; }
.tx-links { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px; }
.tx-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--text-2); padding: 6px 0; }
.tx-links a .ic { width: 15px; height: 15px; color: var(--accent); }
.tx-links a:hover, .tx-links a[aria-current="page"] { color: var(--text); }
.tx-auth { display: flex; align-items: center; gap: 8px; flex: none; }
.tx-auth form { margin: 0; }
.tx-wallet { font-size: 13px; color: var(--text-2); padding: 0 4px; }
.tx-wallet strong { color: var(--text); font-size: 15px; }

/* category bar with slanted stripes on both sides */
.tx-cats { display: flex; align-items: center; gap: 24px; height: 46px; padding: 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .14), transparent); }
.tx-stripes { flex: 1; max-width: 200px; height: 22px; opacity: .35; background: repeating-linear-gradient(115deg, var(--text-3) 0 2px, transparent 2px 9px); }
.tx-cats-in { display: flex; gap: 6px 34px; flex-wrap: wrap; justify-content: center; }
.tx-cats-in a { font-size: 14px; font-weight: 900; color: var(--text); padding: 4px 0; border-bottom: 2px solid transparent; }
.tx-cats-in a:hover, .tx-cats-in a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.tx-body { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr) 230px; gap: 22px; padding: 18px 16px 30px; width: 100%; max-width: 1680px; margin: 0 auto; }
.tx-left, .tx-right { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; scrollbar-width: thin; }
.tx-left .notice-bar { height: 34px; margin-bottom: 8px; border-radius: 8px; }
.tx-left .notice-bar-gap { display: none; }
.tx-main { max-width: none; padding: 0; margin: 0; }
.tx-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.tx-guest { font-size: 12.5px; line-height: 1.6; }
.tx-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tx-card-actions .btn { justify-content: center; }
.tx-card .me-kv { padding-top: 10px; }
.tx-label-row { display: flex; justify-content: space-between; align-items: center; }
.tx-label-row .more { font-size: 11px; }

/* 구동현황 */
.dot-s { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.s-green { --s: #2fd573; } .s-blue { --s: #5aa8ff; } .s-gold { --s: #ffb020; } .s-red { --s: #ff4d5e; }
.dot-s { background: var(--s); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s) 20%, transparent); }
.tx-status { gap: 6px; padding: 10px 12px; }
.tx-status-sum { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--text-3); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.tx-status-sum strong { color: var(--text); }
.tx-status ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tx-status li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 12.5px; }
.tx-status li a { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; }
.tx-st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-st { color: var(--s); font-size: 11px; font-weight: 800; flex: none; }
.status-sum { display: flex; flex-wrap: wrap; gap: 10px; }
.status-sum-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-list a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.status-note, .status-when { font-size: 12.5px; }
.status-tag { color: var(--s); background: color-mix(in srgb, var(--s) 12%, transparent); padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }

/* 파일함 */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.file-main { flex: 1; min-width: 0; }
.file-desc { margin-top: 4px; white-space: pre-line; }
.file-main .sub { margin-top: 4px; }

/* landing stage */
.stage { min-height: calc(100vh - 200px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; position: relative; padding: 30px 0 50px; }
.stage-img { max-width: min(100%, 420px); max-height: 52vh; object-fit: contain; filter: drop-shadow(0 20px 60px rgba(59, 130, 246, .35)); }
.stage-mark { width: 180px; height: 180px; border-radius: 40px; display: grid; place-items: center; font-size: 96px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 30px 80px rgba(59, 130, 246, .35); }
.stage-title { font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.03em; white-space: pre-line; word-break: keep-all; }
.stage-sub { color: var(--text-2); max-width: 36em; white-space: pre-line; word-break: keep-all; }
.stage-hint { position: absolute; bottom: 10px; font-size: 12px; color: var(--text-3); }

@media (max-width: 1200px) {
  .tx-body { grid-template-columns: 200px minmax(0, 1fr); }
  .tx-right { grid-column: 1 / -1; position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tx-right .menu-label { display: none; }
}
@media (max-width: 860px) {
  .tx-top { padding: 0 12px; gap: 10px; }
  .tx-burger { display: grid; }
  .tx-links { display: none; }
  .tx-logo { margin-right: auto; }
  .tx-logo strong { font-size: 17px; }
  .tx-wallet { display: none; }
  .tx-cats { padding: 0 12px; overflow-x: auto; }
  .tx-stripes { display: none; }
  .tx-cats-in { flex-wrap: nowrap; gap: 22px; }
  .tx-cats-in a { white-space: nowrap; }
  .tx-body { grid-template-columns: 1fr; padding: 14px 14px 24px; }
  .tx-left { display: none; position: static; max-height: none; }
  .tx-left.open { display: flex; }
  .tx-right { grid-template-columns: 1fr; }
  .status-list li { grid-template-columns: 1fr auto; }
  .status-note, .status-when { display: none; }
}
.save-all-bar { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--panel); border: 1px solid rgba(59, 130, 246, .45); border-radius: var(--radius); box-shadow: var(--shadow); }
.save-all-bar form { margin: 0; flex: none; }
/* 구매로그 */
.plog { list-style: none; margin: 0; padding: 0; }
.plog li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.plog li:last-child { border-bottom: 0; }
.plog-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.plog-ic .ic { width: 16px; height: 16px; }
.plog-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.plog-main a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.plog-price { font-weight: 800; flex: none; }
/* ---------------------------------------------------------------- header + category bar polish */
.tx-top { height: 64px; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(59, 130, 246, .25); }
.tx-links { gap: 4px; }
.tx-links a { padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s; }
.tx-links a:hover { background: var(--panel); }
.tx-links a[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.tx-auth { gap: 6px; }
.tx-wallet { display: inline-flex; align-items: baseline; gap: 2px; height: 34px; padding: 0 12px; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); }
.tx-wallet:hover { border-color: var(--accent); }
.tx-auth .btn.sm { height: 34px; border-radius: 999px; padding: 0 14px; }
.mh-admin { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--text-3); white-space: nowrap; }
.mh-admin:hover { color: var(--accent); border-color: var(--accent); }
.mh-admin .ic { width: 12px; height: 12px; }

.tx-cats { justify-content: center; gap: 28px; height: 50px; background:
  linear-gradient(90deg, transparent, rgba(59, 130, 246, .16) 30%, rgba(59, 130, 246, .16) 70%, transparent), var(--bg-2); }
.tx-stripes { flex: 0 1 180px; height: 18px; opacity: .5; background: repeating-linear-gradient(115deg, rgba(59, 130, 246, .9) 0 2px, transparent 2px 10px);
  -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000); }
.tx-cats .tx-stripes:last-child { -webkit-mask: linear-gradient(90deg, #000, transparent); mask: linear-gradient(90deg, #000, transparent); }
.tx-cats-in { gap: 6px; }
.tx-cats-in a { padding: 7px 16px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; letter-spacing: -.01em; transition: background .15s, border-color .15s, color .15s; }
.tx-cats-in a:hover { color: var(--text); background: rgba(59, 130, 246, .14); border-color: rgba(59, 130, 246, .4); }
.tx-cats-in a[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent); }
@media (max-width: 860px) { .tx-cats { justify-content: flex-start; } }
.stage-only { min-height: calc(100vh - 170px); padding: 0; }
.stage-only .stage-img { max-width: min(100%, 520px); max-height: 62vh; }
/* admin 구동현황 editor */
.status-edit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -22px -22px 12px; padding: 12px 22px; background: linear-gradient(90deg, rgba(59, 130, 246, .26), rgba(59, 130, 246, .05) 75%); border-bottom: 1px solid rgba(59, 130, 246, .35); border-radius: var(--radius) var(--radius) 0 0; }
.status-edit-head .panel-title { margin: 0; }
.status-bulk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-bulk .btn { gap: 6px; }
.status-edit-list { list-style: none; margin: 0; padding: 0; }
.status-edit-list li { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(180px, 1fr); gap: 14px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.status-edit-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-edit-name small { font-size: 11.5px; }
.status-pick { display: inline-flex; gap: 4px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.status-opt { position: relative; cursor: pointer; }
.status-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.status-opt span { display: block; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--text-3); white-space: nowrap; }
.status-opt:hover span { color: var(--text); }
.status-opt input:checked + span { color: #fff; background: var(--s); }
.status-opt input:focus-visible + span { outline: 2px solid var(--s); outline-offset: 2px; }
.status-note-input { width: 100%; }
.status-save { display: flex; justify-content: flex-end; padding-top: 16px; }
@media (max-width: 1000px) { .status-edit-list li { grid-template-columns: 1fr; } .status-pick { justify-self: start; flex-wrap: wrap; } }/* keep the top links in the exact middle whatever is on the right (logged in or not) */
.tx-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.tx-top .tx-logo { justify-self: start; grid-column: 1; }
.tx-top .tx-links { grid-column: 2; flex: none; }
.tx-top .tx-auth { grid-column: 3; justify-self: end; }
.tx-top .tx-burger { display: none; }
@media (max-width: 860px) {
  .tx-top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tx-top .tx-burger { display: grid; grid-column: 1; }
  .tx-top .tx-logo { grid-column: 2; }
  .tx-top .tx-auth { grid-column: 3; }
}/* admin charts (one series each: accent bars, recessive grid) */
.chart-cols { grid-template-columns: 1.6fr 1fr; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-base { stroke: var(--line-2); stroke-width: 1; }
.chart-axis { fill: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-fill { fill: var(--accent); }
.chart-hit { fill: transparent; }
.chart-bar:hover .chart-hit { fill: var(--accent-soft); }
.chart-bar:hover .chart-fill { fill: var(--accent-2); }
.chart-table { margin-top: 10px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hbar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.hbar-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--line); overflow: hidden; display: block; }
.hbar::-webkit-progress-bar { background: var(--line); border-radius: 4px; }
.hbar::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.hbar::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.nowrap { white-space: nowrap; }
@media (max-width: 1100px) { .chart-cols { grid-template-columns: 1fr; } }
/* ---------------------------------------------------------------- light mode fixes
   (spots that used fixed dark colors) */
:root[data-theme="light"] .product-media,
:root[data-theme="light"] .ap-thumb { background: linear-gradient(135deg, #e9f1fe, #f1f1f4); }
:root[data-theme="light"] .auth-visual { background: linear-gradient(150deg, #e6efff, #f6f6f8 55%, var(--bg-2)); }
:root[data-theme="light"] .auth-shell { box-shadow: 0 30px 80px rgba(0, 0, 0, .1); }
:root[data-theme="light"] .table tbody tr:hover td { background: rgba(0, 0, 0, .025); }
:root[data-theme="light"] .login-modal { background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .18); }
:root[data-theme="light"] .login-modal::backdrop { background: rgba(20, 20, 23, .45); }
:root[data-theme="light"] .tx { background: radial-gradient(1200px 600px at 50% -10%, rgba(59, 130, 246, .07), transparent 70%), var(--bg); }
:root[data-theme="light"] .tx-cats { background: linear-gradient(90deg, transparent, rgba(59, 130, 246, .08) 30%, rgba(59, 130, 246, .08) 70%, transparent), var(--bg-2); }
:root[data-theme="light"] .g-gray, :root[data-theme="light"] .g-text-gray { color: #6b6b76; }
:root[data-theme="light"] .g-silver, :root[data-theme="light"] .g-text-silver { color: #7b8394; }
:root[data-theme="light"] .g-gold, :root[data-theme="light"] .g-text-gold { color: #b7860b; }
:root[data-theme="light"] .s-green { --s: #16a34a; }
:root[data-theme="light"] .s-gold { --s: #c98a00; }
:root[data-theme="light"] .flash.err { color: #c2283c; }
:root[data-theme="light"] .tag-on { color: #16a34a; }
:root[data-theme="light"] .stage-img { filter: drop-shadow(0 20px 50px rgba(59, 130, 246, .2)); }

/* ---------------------------------------------------------------- phone polish */
@media (max-width: 860px) {
  .tx-auth .btn.sm { padding: 0 12px; }
  .mh-admin { display: none; }
  .page-head h1 { font-size: 22px; }
  .panel { padding: 16px; }
  .panel > .panel-title:first-child, .panel > .panel-head:first-child { margin: -16px -16px 14px; padding: 11px 16px; }
  .status-edit-head { margin: -16px -16px 12px; padding: 11px 16px; }
  .pd { gap: 18px; }
  .pd-name { font-size: 22px; }
  .pd-price { font-size: 24px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stage-mark { width: 130px; height: 130px; font-size: 68px; border-radius: 30px; }
  .stage-only { min-height: 52vh; }
  .file-row { flex-wrap: wrap; }
  .file-act { width: 100%; }
  .file-act .btn { width: 100%; justify-content: center; }
  .plog li { flex-wrap: wrap; }
  .table-wrap { overflow-x: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}@media (max-width: 860px) {
  .product-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-foot form, .product-foot .btn { width: 100%; }
  .product-foot .btn { justify-content: center; }
  .product-body { padding: 12px; }
}/* admin 매출: period tabs + clickable stat cards */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; align-self: flex-start; }
.seg a { padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: var(--text-2); }
.seg a:hover { color: var(--text); }
.seg a[aria-current="page"] { background: var(--accent); color: #fff; }
.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat-link { color: inherit; transition: background .15s; }
.stat-link:hover { background: var(--panel-2); }
.stat-link:first-child { border-radius: var(--radius) 0 0 var(--radius); }
@media (max-width: 1100px) { .stats-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .stats-5 { grid-template-columns: 1fr 1fr; } }/* admin line chart */
.chart-wrap { position: relative; }
.chart-wrap svg { cursor: crosshair; touch-action: pan-y; }
.chart-wrap svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--accent); opacity: .1; }
.chart-pt { fill: var(--accent); }
.chart-cross { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.chart-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2.5; opacity: 0; }
.chart-wrap.hovering .chart-cross, .chart-wrap.hovering .chart-dot { opacity: 1; }
.chart-tip { position: absolute; left: 0; top: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 12px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); white-space: nowrap; z-index: 2; }
.chart-tip[hidden] { display: none; }
.chart-tip-label { font-size: 11.5px; color: var(--text-3); }
.chart-tip strong { font-size: 15px; font-weight: 800; color: var(--text); }
.chart-tip-count { font-size: 11px; color: var(--text-2); }/* admin 자동충전 */
.setup-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.setup-steps li::marker { color: var(--accent); font-weight: 900; }
.setup-steps p { color: var(--text-2); margin-top: 4px; line-height: 1.7; }
.copy-row { margin: 8px 0; }
.copy-row .url { display: block; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; word-break: break-all; font-size: 12.5px; }
.copy-row .url em { color: var(--accent); font-style: normal; font-weight: 800; }
.trial { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.trial dt { color: var(--text-3); font-size: 13px; }
.trial dd { margin: 0; }
.deposit-text { max-width: 420px; font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.s-gray { --s: #8b8b96; }/* admin stock page */
.fold-link { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); font-weight: 700; font-size: 13.5px; }
.fold-link:hover { border-color: var(--accent); }
.fold-link .ic { width: 15px; height: 15px; color: var(--accent); }
.stock-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stock-item { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.stock-item.stock-bad { border-color: rgba(255, 77, 94, .5); }
.stock-form { display: flex; flex-direction: column; gap: 8px; }
.stock-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stock-form textarea { width: 100%; resize: vertical; }
.stock-sold { white-space: pre-wrap; word-break: break-all; font-size: 12.5px; }
/* ---------------------------------------------------------------- confirm dialog */
.ask { width: min(92vw, 380px); padding: 26px 24px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.ask[open] { display: flex; flex-direction: column; gap: 12px; animation: login-in .16s ease-out; }
.ask::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.ask-media { align-self: center; width: 96px; height: 96px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); }
.ask-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ask-title { font-size: 19px; font-weight: 900; letter-spacing: -.02em; text-align: center; }
.ask-text { color: var(--text-2); font-size: 13.5px; line-height: 1.6; text-align: center; word-break: keep-all; }
.ask-rows { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 4px 0 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.ask-rows dt { color: var(--text-3); font-size: 13px; }
.ask-rows dd { margin: 0; text-align: right; font-weight: 800; font-size: 13.5px; overflow-wrap: anywhere; }
.ask-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 6px; }
.ask-actions .btn { justify-content: center; border-radius: 12px; }
:root[data-theme="light"] .ask { box-shadow: 0 30px 80px rgba(0, 0, 0, .18); }
:root[data-theme="light"] .ask::backdrop { background: rgba(20, 20, 23, .45); }
@media (prefers-reduced-motion: reduce) { .ask[open] { animation: none; } }
/* charge: payment guide window */
.pay-dlg { position: fixed; }
.pay-badge { align-self: center; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px rgba(59, 130, 246, .35); }
.pay-badge .ic { width: 26px; height: 26px; }
.pay-amount { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 2px; }
.pay-amount strong { font-size: 32px; font-weight: 900; letter-spacing: -.02em; }
.pay-acc { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm .ic { width: 14px; height: 14px; }
.accent-text { color: var(--accent); }
.pay-note { text-align: center; line-height: 1.6; }
/* ---------------------------------------------------------------- purchase window */
.buy { width: min(94vw, 430px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); color: var(--text); overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.buy[open] { display: block; animation: login-in .18s ease-out; }
.buy::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.buy-banner { position: relative; height: 150px; display: flex; align-items: flex-end; padding: 18px 22px; background: radial-gradient(500px 220px at 80% 0%, rgba(59, 130, 246, .55), transparent 70%), linear-gradient(160deg, #0e1a33, #0a0f1c); }
.buy-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.buy-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, .92), rgba(10, 10, 12, .1) 70%); }
.buy-close { position: relative; z-index: 2; background: rgba(0, 0, 0, .45); color: #fff; border-radius: 50%; }
.buy-banner .login-close-form { z-index: 2; }
.buy-name { position: relative; z-index: 1; color: #fff; font-size: 22px; font-weight: 900; letter-spacing: -.02em; padding-left: 12px; border-left: 4px solid var(--accent); line-height: 1.2; word-break: keep-all; }
.buy-body { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 20px; }
.buy-desc { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.buy-line { display: flex; justify-content: space-between; }
.buy-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buy-qty { display: inline-flex; align-items: center; height: 52px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); }
.buy-qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.buy-qty button:hover:not(:disabled) { background: var(--panel-2); }
.buy-qty button:disabled { opacity: .3; cursor: default; }
.buy-qty output { min-width: 36px; text-align: center; font-size: 18px; font-weight: 900; }
.buy-total { display: flex; flex-direction: column; align-items: flex-end; }
.buy-total strong { font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.buy-balance { font-size: 12.5px; color: var(--text-3); text-align: right; }
.buy-balance.short { color: var(--bad); font-weight: 700; }
.buy-hold { position: relative; overflow: hidden; height: 58px; margin-top: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: linear-gradient(180deg, #1c1c22, #121216); color: var(--accent); font-size: 16px; font-weight: 900; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.buy-hold:hover:not(:disabled) { border-color: var(--accent); }
.buy-hold:disabled { color: var(--text-3); cursor: not-allowed; }
.buy-hold-fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.buy-hold.holding .buy-hold-fill, .buy-hold.done .buy-hold-fill { width: 100%; transition: width .7s linear; }
.buy-hold-text { position: relative; }
.buy-hold.holding, .buy-hold.done { color: #fff; }
.buy-hint { text-align: center; font-size: 12px; color: var(--text-3); }
:root[data-theme="light"] .buy-hold { background: linear-gradient(180deg, #fff, #f3f3f5); }
:root[data-theme="light"] .buy { box-shadow: 0 30px 80px rgba(0, 0, 0, .2); }
@media (prefers-reduced-motion: reduce) { .buy[open] { animation: none; } }
.pay-timer { text-align: center; color: var(--text-2); font-size: 13.5px; }
.pay-timer strong { color: var(--accent); font-size: 18px; margin-left: 6px; }
.countdown { font-weight: 800; color: var(--accent); font-size: 12.5px; }
.countdown.over { color: var(--text-3); }

/* ---------------------------------------------------------------- front page: one big logo
   A soft blue halo and a single gentle entrance; nothing else moves. */
.stage-only { position: relative; isolation: isolate; }
.stage-only::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(80vw, 720px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(59, 130, 246, .22), rgba(59, 130, 246, .06) 55%, transparent 72%);
  pointer-events: none;
}
.stage-only::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(62vw, 470px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(96, 165, 250, .16);
  box-shadow: 0 0 0 40px rgba(96, 165, 250, .025), 0 0 0 80px rgba(96, 165, 250, .02);
  pointer-events: none;
}
.stage-only .stage-img { max-width: min(78vw, 440px); max-height: 58vh; filter: drop-shadow(0 24px 60px rgba(37, 99, 235, .35)); animation: stage-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.stage-only .stage-mark {
  width: 200px; height: 200px; border-radius: 48px; font-size: 104px;
  background: linear-gradient(145deg, #60a5fa, #2563eb 60%, #1e40af);
  box-shadow: 0 30px 80px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: stage-in .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes stage-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
:root[data-theme="light"] .stage-only::before { background: radial-gradient(closest-side, rgba(59, 130, 246, .14), rgba(59, 130, 246, .04) 55%, transparent 72%); }
@media (max-width: 860px) { .stage-only .stage-mark { width: 140px; height: 140px; font-size: 72px; border-radius: 34px; } }
@media (prefers-reduced-motion: reduce) { .stage-only .stage-img, .stage-only .stage-mark { animation: none; } }
/* sidebars sit at the screen edges (no empty margins on wide screens) */
.tx-body { max-width: none; margin: 0; padding: 18px 20px 30px; grid-template-columns: 236px minmax(0, 1fr) 260px; gap: 24px; }
.tx-main > * { max-width: 1280px; width: 100%; margin-left: auto; margin-right: auto; }
@media (max-width: 1200px) { .tx-body { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 860px) { .tx-body { grid-template-columns: 1fr; padding: 14px 14px 24px; } }
/* Highlighted part of the shop name (상점 설정 → 강조할 글자). Fixed palette: CSP blocks inline styles. */
.brand-accent { color: var(--accent-c); -webkit-text-fill-color: var(--accent-c); }
.accent-red { --accent-c: #ff3b4f; }
.accent-pink { --accent-c: #ff5fa8; }
.accent-orange { --accent-c: #ff8a24; }
.accent-yellow { --accent-c: #ffc83d; }
.accent-green { --accent-c: #2fd47a; }
.accent-blue { --accent-c: #3b82f6; }
.accent-purple { --accent-c: #a970ff; }