:root {
  --ink: #241820;
  --muted: #7a6b72;
  --line: #eadfe4;
  --bg: #f8f4f5;
  --card: rgba(255, 255, 255, 0.86);
  --wine: #4c1f35;
  --wine-2: #6e2f4c;
  --blush: #d4728a;
  --blush-soft: #f8e8ee;
  --champagne: #c9a86a;
  --champagne-2: #e0c48a;
  --teal: #3a6f6a;
  --good: #2f7a5c;
  --warn: #b54535;
  --glow: 0 0 40px rgba(201, 168, 106, 0.22);
  --shadow: 0 12px 40px rgba(76, 31, 53, 0.1);
  --radius: 18px;
  --font: "Pretendard", "Noto Sans KR", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  /* aliases used by older markup */
  --plum: var(--wine);
  --plum-2: var(--wine-2);
  --rose: var(--blush);
  --rose-soft: var(--blush-soft);
  --gold: var(--champagne);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 8% -8%, rgba(212, 114, 138, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 96% 0%, rgba(201, 168, 106, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(76, 31, 53, 0.06), transparent 55%),
    linear-gradient(165deg, #fffafb 0%, #f7f1f3 42%, #f3ecee 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1100px, calc(100% - 2.2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 251, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(234, 223, 228, 0.85);
}
.nav { display: flex; align-items: center; gap: .45rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; margin-right: .35rem; }
.brand-mark,
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(76, 31, 53, 0.18), var(--glow);
  background: linear-gradient(145deg, var(--blush), var(--wine));
}
.brand-mark {
  display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
}
.brand strong {
  display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  background: linear-gradient(120deg, var(--wine) 20%, var(--blush) 55%, var(--champagne) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.brand small {
  display: block; font-size: .66rem; letter-spacing: .28em; color: var(--blush);
  font-weight: 650; margin-top: 3px;
}
.menu { display: flex; gap: .1rem; margin-left: .35rem; flex-wrap: wrap; }
.menu a {
  padding: .55rem .72rem; border-radius: 999px; font-size: .86rem; font-weight: 550; color: #5f5258;
  transition: .18s ease;
}
.menu a:hover { background: rgba(248, 232, 238, 0.9); color: var(--wine); }
.menu a.on {
  background: linear-gradient(135deg, rgba(212,114,138,.16), rgba(201,168,106,.18));
  color: var(--wine); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(201,168,106,.28);
}
.nav-spacer { flex: 1; }
.nav-right { display: flex; align-items: center; gap: .55rem; }
.burger { display: none; border: 0; background: none; color: var(--wine); padding: .4rem; cursor: pointer; font-size: 1.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; cursor: pointer; border-radius: 999px; font-weight: 700; font-size: .88rem;
  padding: .72rem 1.2rem; transition: .18s ease; color: #fff;
  background: linear-gradient(135deg, #5a2740 0%, #8a3d5c 45%, #c9a86a 160%);
  box-shadow: 0 10px 24px rgba(76, 31, 53, 0.22), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(76, 31, 53, 0.28), var(--glow); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.sm { padding: .48rem .9rem; font-size: .8rem; }
.btn.ghost {
  background: rgba(255,255,255,.75); color: var(--wine);
  border: 1px solid rgba(234, 223, 228, .95); box-shadow: none;
}
.btn.ghost:hover { border-color: rgba(212,114,138,.55); color: var(--blush); background: #fff; }
.btn.rose { background: linear-gradient(135deg, #c45f79, #9a3d58 70%, #c9a86a 180%); }
.btn.linkish { background: none; border: 0; box-shadow: none; color: var(--blush); padding: 0; font-weight: 700; }

.section { padding: 3rem 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blush); margin-bottom: .75rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: linear-gradient(90deg, var(--champagne), transparent);
}
h1, h2, .title {
  font-family: var(--display); color: var(--wine); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.18;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.15rem); }
h2, .title { font-size: clamp(1.65rem, 2.7vw, 2.15rem); margin-bottom: .45rem; }
.lead { color: var(--muted); font-size: .98rem; max-width: 36rem; font-weight: 450; }

.card {
  background: var(--card);
  border: 1px solid rgba(234, 223, 228, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.pad { padding: 1.3rem 1.4rem; }
.grid { display: grid; gap: 1.05rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.pill {
  display: inline-flex; align-items: center; padding: .24rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  background: linear-gradient(135deg, #f7efe2, #f8e8ee);
  color: var(--wine); border: 1px solid rgba(201,168,106,.35);
}
.lv {
  display: inline-flex; align-items: center; padding: .22rem .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
}
.lv.l1 { background: #e7f1ef; color: var(--teal); }
.lv.l2 { background: #e7f3ec; color: var(--good); }
.lv.l3 { background: #f6edd8; color: #9a7424; }
.lv.l4 { background: var(--blush-soft); color: #8f3d57; }
.lv.l5 { background: #efe4ec; color: var(--wine); }
.badge {
  display: inline-flex; padding: .2rem .55rem; border-radius: 8px; font-size: .72rem; font-weight: 700;
}
.b-done { background: #e5f2eb; color: var(--good); }
.b-prog { background: #eef0fb; color: #4458b8; }
.b-wait { background: #f8efe3; color: #9a7424; }

.muted { color: var(--muted); }
.center { text-align: center; }
.divider {
  height: 1px; margin: 1rem 0;
  background: linear-gradient(90deg, transparent, rgba(201,168,106,.45), rgba(212,114,138,.35), transparent);
}
.bar {
  display: block; width: 100%; height: 8px; background: #f0e7eb; border-radius: 999px; overflow: hidden;
}
.bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blush), var(--champagne));
  box-shadow: 0 0 12px rgba(201,168,106,.45);
}

label.f { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); margin: .8rem 0 .35rem; }
input, select, textarea {
  width: 100%; padding: .78rem .9rem; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,252,253,.92); color: var(--ink); transition: .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(212,114,138,.65);
  box-shadow: 0 0 0 4px rgba(212,114,138,.12), 0 0 24px rgba(201,168,106,.12);
}

table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th {
  text-align: left; font-size: .72rem; font-weight: 700; color: var(--muted);
  padding: .7rem .5rem; border-bottom: 1px solid var(--line); letter-spacing: .04em;
}
td { padding: .85rem .5rem; border-bottom: 1px solid #f3ebef; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,.85); color: var(--muted);
  padding: .45rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 650; cursor: pointer;
  transition: .15s ease;
}
.chip:hover { border-color: rgba(212,114,138,.4); color: var(--wine); }
.chip.on {
  background: linear-gradient(135deg, var(--wine), var(--wine-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px rgba(76,31,53,.2);
}

.site-footer {
  margin-top: 3.5rem; padding: 2.8rem 0 1.6rem;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(201,168,106,.18), transparent 50%),
    linear-gradient(180deg, #3a182a, #4c1f35 55%, #3a182a);
  color: #ead5df;
}
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 1.4rem; }
.site-footer h4 { color: #fff; font-size: .85rem; margin-bottom: .7rem; letter-spacing: .04em; }
.site-footer a, .site-footer p { display: block; color: #d5b8c8; font-size: .84rem; margin-bottom: .45rem; }
.site-footer a:hover { color: #fff; }
.site-footer .copy {
  margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  font-size: .75rem; color: #b794a8;
}

#toast { display: none !important; }

#bp-loadbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10050;
  pointer-events: none; opacity: 0; transition: opacity .18s ease;
  background: rgba(255, 255, 255, 0.35);
}
#bp-loadbar.on { opacity: 1; }
#bp-loadbar .bar {
  height: 100%; width: 35%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--blush), var(--champagne), var(--wine-2));
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.55);
  animation: bp-load-slide 1.05s ease-in-out infinite;
}
@keyframes bp-load-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
#bp-loadmask {
  position: fixed; inset: 0; z-index: 10040;
  background: rgba(36, 24, 32, 0.08);
  backdrop-filter: blur(1px);
  opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
#bp-loadmask.on { opacity: 1; pointer-events: auto; cursor: wait; }
body.bp-loading { cursor: wait; }

#bp-modal {
  position: fixed; inset: 0; z-index: 10060;
  display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#bp-modal.show { opacity: 1; pointer-events: auto; }
.bp-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(28, 14, 20, 0.48);
  backdrop-filter: blur(4px);
}
.bp-modal-panel {
  position: relative; width: min(400px, 100%);
  background:
    linear-gradient(160deg, rgba(255,255,255,.97), rgba(255,246,248,.94)),
    radial-gradient(circle at 100% 0%, rgba(201,168,106,.16), transparent 42%);
  border: 1px solid rgba(234, 223, 228, 0.95);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(76, 31, 53, 0.22), var(--glow);
  padding: 1.35rem 1.35rem 1.2rem;
  transform: translateY(10px) scale(0.98);
  transition: transform .22s ease;
}
#bp-modal.show .bp-modal-panel { transform: translateY(0) scale(1); }
.bp-modal-title {
  font-family: var(--display); font-size: 1.45rem; font-weight: 650;
  color: var(--wine); line-height: 1.2; margin-bottom: .55rem;
}
.bp-modal-body {
  color: #4a3c43; font-size: .95rem; line-height: 1.55;
  white-space: pre-wrap; word-break: keep-all; margin-bottom: 1.15rem;
}
.bp-modal-actions {
  display: flex; justify-content: flex-end; gap: .55rem; flex-wrap: wrap;
}

.auth-shell {
  min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 2.2rem 0 3rem;
}
.auth-card { width: min(430px, 100%); }
.auth-card h1 { font-size: 2rem; margin-bottom: .35rem; }
.hero-panel {
  position: relative; overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,246,248,.9)),
    radial-gradient(circle at 90% 10%, rgba(201,168,106,.2), transparent 40%);
}

.checkout-wrap { width: min(980px, calc(100% - 2.2rem)); }
.checkout-page { padding-top: 1.6rem; }
.checkout-back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .88rem; font-weight: 700; color: var(--muted);
}
.checkout-back:hover { color: var(--wine); }
.checkout-hero { margin: 1rem 0 1.35rem; }
.checkout-hero .title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: .2rem; }
.checkout-hero .lead { margin-top: .45rem; max-width: 36rem; }

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.35fr);
  gap: 1.1rem;
  align-items: start;
}
.checkout-summary {
  position: sticky; top: 84px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.98), rgba(255,246,248,.94)),
    radial-gradient(circle at 100% 0%, rgba(201,168,106,.16), transparent 42%);
}
.checkout-panel {
  background: rgba(255,255,255,.92);
}
.checkout-sec-label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--champagne); font-weight: 700; margin-bottom: .35rem;
}
.checkout-h {
  color: var(--wine); font-size: 1.2rem; margin-bottom: .35rem;
  font-family: var(--display); font-weight: 650; line-height: 1.2;
}
.checkout-help {
  font-size: .86rem; color: var(--muted); margin-bottom: .95rem;
}
.checkout-block + .checkout-block {
  margin-top: 1.35rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(234,223,228,.95);
}
.checkout-order { display: grid; gap: .7rem; margin-top: .9rem; }
.checkout-product {
  padding: .85rem .95rem; border-radius: 14px;
  background: linear-gradient(135deg, rgba(248,232,238,.7), rgba(255,250,251,.95));
  border: 1px solid rgba(201,168,106,.28);
  margin-bottom: .25rem;
}
.checkout-product-name {
  font-family: var(--display); font-size: 1.2rem; font-weight: 650; color: var(--wine);
}
.checkout-product-unit { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.checkout-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .92rem; color: #5a4e55;
}
.checkout-row b { color: var(--ink); font-weight: 700; }
.checkout-row.total {
  margin-top: .35rem; padding-top: .85rem; border-top: 1px solid var(--line);
  font-size: 1.02rem; color: var(--ink); font-weight: 650;
}
.checkout-row.total strong {
  font-family: var(--display); font-size: 1.55rem; color: var(--wine); font-weight: 650;
}
.checkout-notes {
  list-style: none; margin-top: 1rem; padding-top: .9rem;
  border-top: 1px dashed rgba(234,223,228,.95);
  display: grid; gap: .4rem;
}
.checkout-notes li {
  position: relative; padding-left: .95rem;
  font-size: .8rem; color: var(--muted); line-height: 1.45;
}
.checkout-notes li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--blush);
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.pay-method {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  min-height: 76px;
  padding: .9rem 1rem;
  border-radius: 16px;
  cursor: pointer;
  border: 1.5px solid rgba(234,223,228,.98);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .15s ease;
}
.pay-method:hover {
  border-color: rgba(212,114,138,.42);
  box-shadow: 0 10px 22px rgba(76,31,53,.06);
  transform: translateY(-1px);
}
.pay-method input {
  position: absolute; opacity: 0; pointer-events: none;
}
.pay-method-mark {
  display: grid; place-items: center;
  min-width: 52px; height: 36px; padding: 0 .45rem;
  border-radius: 10px;
  font-size: .62rem; font-weight: 800; letter-spacing: .04em;
  color: var(--wine);
  background: linear-gradient(145deg, #f8e8ee, #f4ebe0);
  border: 1px solid rgba(201,168,106,.25);
}
.pay-method[data-method="kakaopay"] .pay-method-mark { color: #3c1e1e; background: #ffe812; border-color: #f0d700; }
.pay-method[data-method="naverpay"] .pay-method-mark { color: #fff; background: #03c75a; border-color: #02b351; }
.pay-method[data-method="toss"] .pay-method-mark { color: #fff; background: #3182f6; border-color: #1b64da; }
.pay-method[data-method="card"] .pay-method-mark { color: #fff; background: linear-gradient(135deg, #5a2740, #8a3d5c); border: 0; }
.pay-method[data-method="transfer"] .pay-method-mark { color: #fff; background: linear-gradient(135deg, #3a6f6a, #4f8a84); border: 0; }

.pay-method-body { display: grid; gap: .18rem; min-width: 0; }
.pay-method-body strong {
  font-size: .95rem; color: var(--wine); font-weight: 750; line-height: 1.25;
}
.pay-method-body small {
  font-size: .78rem; color: var(--muted); line-height: 1.35;
}
.pay-method-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid rgba(76,31,53,.18);
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}
.pay-method-check::after {
  content: ""; position: absolute; inset: 5px;
  border-radius: 50%; background: transparent;
  transition: background .15s ease;
}
.pay-method:has(input:checked) {
  border-color: rgba(110,47,76,.55);
  background: linear-gradient(145deg, rgba(255,250,251,.98), rgba(248,232,238,.55));
  box-shadow: 0 0 0 3px rgba(212,114,138,.12), 0 12px 28px rgba(76,31,53,.08);
}
.pay-method:has(input:checked) .pay-method-check {
  border-color: var(--wine);
  background: var(--wine);
}
.pay-method:has(input:checked) .pay-method-check::after {
  background: #fff;
  inset: 6px;
}

.checkout-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.checkout-fields .field label,
.checkout-panel .field label {
  display: block; font-size: .76rem; font-weight: 700; color: var(--muted); margin: 0 0 .35rem;
}
.checkout-fields input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem .85rem; background: #fff; min-height: 46px;
}
.checkout-fields input:focus {
  outline: none; border-color: rgba(138,61,92,.45);
  box-shadow: 0 0 0 3px rgba(212,114,138,.12);
}
.checkout-final { margin-top: 1.2rem; }
.pay-agree {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem .95rem; border-radius: 14px;
  background: rgba(248,242,245,.7); border: 1px solid rgba(234,223,228,.9);
  font-size: .88rem; color: #4a3c43; cursor: pointer; line-height: 1.45;
}
.pay-agree input {
  margin-top: .15rem; width: 18px; height: 18px; flex: 0 0 auto;
  accent-color: var(--wine);
}
.checkout-submit {
  width: 100%; margin-top: .9rem; min-height: 50px; font-size: .95rem;
}

@media (max-width: 960px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .pay-methods { grid-template-columns: 1fr; }
  .checkout-fields { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pay-method { grid-template-columns: auto 1fr auto; padding: .8rem .85rem; }
  .pay-method-mark { min-width: 48px; font-size: .58rem; }
}
.hero-panel::after {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,114,138,.18), transparent 70%);
  pointer-events: none;
}

.step-bar { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1.2rem 0; }
.step {
  flex: 1; min-width: 110px; text-align: center; padding: .65rem .5rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; border: 1px solid var(--line);
  background: rgba(255,252,253,.9); color: var(--muted);
}
.step.on {
  background: linear-gradient(135deg, var(--wine), var(--wine-2));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px rgba(76,31,53,.2);
}
.step.done {
  background: linear-gradient(135deg, #f8e8ee, #f7efe2);
  color: #8f3d57; border-color: rgba(201,168,106,.3);
}

.dropzone {
  border: 1.5px dashed rgba(201,168,106,.55); border-radius: 16px; padding: 1.6rem; text-align: center;
  color: var(--muted); cursor: pointer; background: rgba(255,252,253,.9);
  transition: .15s ease;
}
.dropzone:hover {
  border-color: var(--blush); color: var(--wine);
  box-shadow: 0 0 0 4px rgba(212,114,138,.08), var(--glow);
}

.admin-login-body {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(212,114,138,.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201,168,106,.2), transparent 50%),
    linear-gradient(165deg, #2a1420, #4c1f35 45%, #1f1018);
}
.admin-app {
  display: flex; min-height: 100vh; background: #f4eef1; position: relative;
}
.admin-top {
  display: none; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 30;
  padding: .7rem 1rem;
  background: rgba(255,250,251,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-menu-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--wine); font-size: 1.2rem; cursor: pointer;
  box-shadow: var(--shadow);
}
.admin-side {
  width: 236px; flex: 0 0 236px; padding: 1.35rem 1rem;
  background:
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(201,168,106,.2), transparent 50%),
    linear-gradient(180deg, #3a182a, #4c1f35 55%, #3a182a);
  color: #f0dde7; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  z-index: 40;
}
.admin-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
.admin-drawer-close {
  display: none; border: 0; background: rgba(255,255,255,.1); color: #fff;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; flex: 0 0 auto;
}
.admin-nav { display: flex; flex-direction: column; gap: .15rem; flex: 1; overflow: auto; }
.admin-nav a,
.admin-side a {
  display: flex; align-items: center; gap: .65rem; padding: .72rem .85rem; border-radius: 12px;
  color: #e2c9d6; font-size: .9rem; font-weight: 550; margin-bottom: .15rem;
}
.admin-nav a:hover, .admin-nav a.on,
.admin-side a:hover, .admin-side a.on { background: rgba(255,255,255,.1); color: #fff; }
.admin-nav a.on {
  background: linear-gradient(90deg, rgba(212,114,138,.95), rgba(110,47,76,.9));
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.admin-side-foot {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem;
}
.admin-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(28, 14, 20, .45);
  backdrop-filter: blur(2px); z-index: 35;
}
.admin-backdrop.show { display: block; }
.admin-main { flex: 1; min-width: 0; padding: 1.3rem 1.45rem 2.5rem; }
.admin-main-head { margin-bottom: 1rem; }
.admin-table-wrap { overflow: hidden; }
.admin-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; margin-bottom: 1.1rem; }
.stat {
  background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
  box-shadow: var(--shadow);
}
.stat .lab { font-size: .75rem; color: var(--muted); }
.stat .num {
  font-family: var(--display); font-size: 1.55rem; font-weight: 650; color: var(--wine); margin-top: .25rem;
}

.home-hero {
  position: relative;
  padding: 3.2rem 0 2rem;
}
.home-hero h1 span {
  background: linear-gradient(120deg, var(--blush), var(--champagne));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-glow {
  position: absolute; inset: 8% 5% auto auto; width: min(420px, 55vw); height: 280px;
  background: radial-gradient(circle, rgba(201,168,106,.22), rgba(212,114,138,.1), transparent 70%);
  filter: blur(8px); pointer-events: none; z-index: 0;
}
.home-hero .wrap { position: relative; z-index: 1; }

@media (max-width: 960px) {
  .menu { display: none; }
  .menu.show {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 68px;
    background: rgba(255,250,251,.97); border-bottom: 1px solid var(--line);
    padding: .8rem 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px);
  }
  .burger { display: block; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  #levels { grid-template-columns: repeat(2, 1fr) !important; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .admin-app { flex-direction: column; }
  .admin-top { display: flex; }
  .admin-side {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(300px, 86vw); height: 100vh;
    transform: translateX(105%);
    transition: transform .28s ease;
    box-shadow: -12px 0 40px rgba(0,0,0,.25);
  }
  .admin-side.open { transform: translateX(0); }
  .admin-drawer-close { display: grid; place-items: center; }
  .admin-main { padding: 1rem 1rem 2rem; }
  body.admin-drawer-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .site-footer .cols { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}


.report-card {
  margin-top: .2rem;
  background:
    linear-gradient(165deg, rgba(255,255,255,.96), rgba(255,248,250,.92)),
    radial-gradient(circle at 100% 0%, rgba(201,168,106,.14), transparent 42%);
  overflow: hidden;
}
.report-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.2rem; flex-wrap: wrap; margin-bottom: .35rem;
}
.report-eyebrow {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--champagne); font-weight: 700; margin-bottom: .25rem;
}
.report-head h3 {
  color: var(--wine); font-family: var(--display); font-weight: 650; font-size: 1.35rem; line-height: 1.15;
}
.report-sub { font-size: .84rem; margin-top: .25rem; }
.report-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: .65rem; min-width: min(420px, 100%);
}
.report-metric {
  padding: .75rem .85rem; border-radius: 14px;
  background: rgba(255,255,255,.78); border: 1px solid rgba(234,223,228,.95);
  display: grid; gap: .15rem;
}
.report-metric.accent {
  background: linear-gradient(145deg, rgba(248,232,238,.95), rgba(255,250,251,.98));
  border-color: rgba(201,168,106,.35);
  box-shadow: inset 0 0 0 1px rgba(212,114,138,.08);
}
.report-metric .lab { font-size: .72rem; color: var(--muted); font-weight: 650; }
.report-metric strong {
  font-family: var(--display); font-size: 1.15rem; color: var(--wine); font-weight: 650; letter-spacing: -.02em;
}
.report-metric em { font-style: normal; font-size: .75rem; color: #8a7881; }

.report-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem;
  margin: 1rem 0 .85rem; padding: .85rem .95rem;
  border-radius: 14px; border: 1px solid rgba(234,223,228,.95);
  background: rgba(255,255,255,.72);
}
.rf-field { display: grid; gap: .28rem; min-width: 150px; }
.rf-field label { font-size: .75rem; font-weight: 700; color: var(--muted); }
.rf-field input[type="date"] {
  border: 1px solid var(--line); border-radius: 10px; padding: .55rem .65rem;
  background: #fff; color: var(--ink); min-height: 40px;
}
.rf-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-left: auto; }
@media (max-width: 960px) {
  .rf-actions { margin-left: 0; width: 100%; }
  .rf-field { min-width: calc(50% - .35rem); flex: 1; }
}
.rpc-wrap {
  position: relative; margin-top: .9rem;
  padding: .85rem .7rem .55rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,252,253,.7), rgba(248,242,245,.55));
  border: 1px solid rgba(234,223,228,.8);
}
.rpc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.rpc-grid { stroke: rgba(76,31,53,.08); stroke-width: 1; stroke-dasharray: 3 5; }
.rpc-ylab {
  fill: #9a8790; font-size: 11px; font-family: Pretendard, "Noto Sans KR", sans-serif; font-weight: 600;
}
.rpc-xlab {
  fill: #8a7881; font-size: 11px; font-family: Pretendard, "Noto Sans KR", sans-serif; font-weight: 600;
}
.rpc-hit { fill: transparent; cursor: pointer; }
.rpc-bar {
  fill: url(#rpcGrad);
  transition: opacity .15s ease, filter .15s ease;
}
.rpc-bar-g.is-empty .rpc-bar { fill: rgba(76,31,53,.08); }
.rpc-bar-g.is-peak .rpc-bar {
  fill: url(#rpcGradPeak);
  filter: drop-shadow(0 6px 10px rgba(76,31,53,.22));
}
.rpc-bar-g.is-hover .rpc-bar,
.rpc-bar-g:hover .rpc-bar {
  filter: drop-shadow(0 8px 12px rgba(76,31,53,.2));
  opacity: .92;
}
.rpc-tip {
  position: absolute; z-index: 3; pointer-events: none;
  background: linear-gradient(135deg, #3a182a, #6e2f4c);
  color: #fff; font-size: .8rem; font-weight: 650;
  padding: .45rem .7rem; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  border: 1px solid rgba(201,168,106,.35);
  white-space: nowrap;
}
.rpc-legend {
  display: flex; gap: 1rem; justify-content: flex-end; margin-top: .45rem;
  font-size: .75rem; color: var(--muted); font-weight: 600;
}
.rpc-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 99px;
  background: #c9899c; margin-right: .35rem; vertical-align: middle;
}
.rpc-dot.peak { background: #6e2f4c; }

@media (max-width: 960px) {
  .report-metrics { grid-template-columns: 1fr; min-width: 0; width: 100%; }
  .rpc-wrap { padding: .65rem .35rem .4rem; }
}

.media-thumb {
  width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: #fff; cursor: pointer;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb.video {
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--wine);
  background: linear-gradient(135deg, #fff7f9, #f4ebe0);
}
.media-viewer {
  position: fixed; inset: 0; z-index: 10070; display: none; place-items: center; padding: 1rem;
}
.media-viewer.show { display: grid; }
.media-viewer-backdrop {
  position: absolute; inset: 0; background: rgba(28,14,20,.55); backdrop-filter: blur(3px);
}
.media-viewer-panel {
  position: relative; width: min(820px, 100%); background: #fffafb; border-radius: 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1rem;
}
.media-viewer-head {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .8rem;
}
.media-viewer-head strong { color: var(--wine); font-family: var(--display); font-size: 1.2rem; }
.media-viewer-body { min-height: 120px; }
@media (max-width: 960px) {
  .pay-chart { grid-template-columns: repeat(15, minmax(0, 1fr)); height: 160px; }
  .pay-bar:nth-child(-n+15) { display: none; }
}
