/* ===== Design Tokens ===== */
:root {
  --background: #fafafa;
  --card: #ffffff;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-soft: #eef2ff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e7e7ec;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section-alt { background: #ffffff; }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 17px;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-outline,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-primary); }
.btn-text { color: var(--text-secondary); padding: 10px 12px; }
.btn-text:hover { color: var(--text-primary); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-color: var(--border); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav-desktop {
  display: flex;
  gap: 32px;
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}
.nav-desktop a:hover { color: var(--text-primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-mobile a:hover { color: var(--text-primary); }
.mobile-cta { margin-top: 8px; color: #fff !important; }

/* ===== Hero ===== */
.hero {
  padding: 100px 0 88px;
  background:
    radial-gradient(60% 120% at 50% 0%, var(--accent-soft) 0%, rgba(238, 242, 255, 0) 60%);
}
.hero-content { max-width: 760px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  font-size: 18px;
  color: var(--text-secondary);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 56px;
}
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-item strong { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.trust-item span { font-size: 14px; color: var(--text-secondary); }
.trust-divider { width: 1px; height: 32px; background: var(--border); }

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-logo img {
  max-height: 56px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.service-logo img.logo-lg {
  max-height: 76px;
  max-width: 180px;
}
.service-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.service-price {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.service-price .num { font-variant-numeric: tabular-nums; }
.service-price small { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.service-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}
.service-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 8px 16px;
  transition: background 0.18s ease, color 0.18s ease;
}
.service-cta .arrow { transition: transform 0.18s ease; }
.service-card:hover .service-cta {
  background: var(--accent);
  color: #fff;
}
.service-card:hover .service-cta .arrow { transform: translateX(3px); }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { position: relative; }
.step-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { margin-top: 10px; color: var(--text-secondary); font-size: 15px; }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
.feature-item { padding-top: 20px; border-top: 2px solid var(--accent); }
.feature-item h3 { font-size: 18px; font-weight: 700; }
.feature-item p { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.price-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-tier { font-size: 16px; font-weight: 700; color: var(--text-secondary); }
.price-amount { margin-top: 14px; }
.price-amount .num { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.price-amount small { font-size: 15px; color: var(--text-secondary); margin-left: 4px; }
.price-desc { margin-top: 12px; color: var(--text-secondary); font-size: 14px; min-height: 42px; }
.price-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features li {
  font-size: 15px;
  padding-left: 26px;
  position: relative;
  color: var(--text-primary);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 12px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-card .btn-block { margin-top: auto; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ===== CTA ===== */
.cta-section {
  background: var(--text-primary);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-section p {
  margin: 14px 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
}

/* ===== Footer ===== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand p { margin-top: 12px; color: var(--text-secondary); font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--text-primary); }

/* 하단 법적 고지 (적당히 흐린 색상) */
.footer-legal-notice {
  padding: 0 24px 28px;
  font-size: 11px;
  line-height: 1.7;
  color: #c4c4cc;
}
.footer-legal-notice p { margin: 0 0 6px; }
.footer-legal-notice a {
  color: #b0b0bb;
  text-decoration: underline;
}

/* ===== Product Detail Page ===== */
.product-page { padding-bottom: 0; }
.product-notfound {
  text-align: center;
  padding: 120px 0;
}
.product-notfound h1 { font-size: 28px; font-weight: 800; }
.product-notfound p { margin: 12px 0 28px; color: var(--text-secondary); }

.pd-back {
  display: inline-block;
  margin: 28px 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.pd-back:hover { color: var(--accent); }

/* Hero */
.pd-hero {
  padding: 40px 0 64px;
  background:
    radial-gradient(60% 120% at 80% 0%, var(--accent-soft) 0%, rgba(238, 242, 255, 0) 55%);
}
.pd-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.pd-hero-left h1 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 16px;
}
.pd-hero-tagline {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-secondary);
}
.pd-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 14px;
  margin-top: 28px;
}
.pd-feature {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
}

.pd-hero-right {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.pd-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.pd-logo img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}
.pd-logo img.logo-lg { max-height: 80px; max-width: 200px; }
.pd-price-box { border-top: 1px solid var(--border); padding-top: 20px; }
.pd-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.pd-strike { text-decoration: line-through; }
.pd-price-discount {
  justify-content: flex-end;
}
.pd-price-discount span {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.pd-price-final {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 8px;
}
.pd-price-final .num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.pd-price-final small { font-size: 15px; color: var(--text-secondary); }
.pd-hero-buy { margin-top: 24px; }

/* Bullets */
.pd-bullets { display: flex; flex-direction: column; gap: 14px; }
.pd-bullets li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  color: var(--text-primary);
}
.pd-bullets li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  height: 13px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Eyebrow */
.pd-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Notes */
.pd-notes { display: flex; flex-direction: column; gap: 16px; }
.pd-notes li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.pd-note-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* Plans */
.pd-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.pd-plan {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  background: var(--card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.pd-plan:hover { border-color: var(--accent); }
.pd-plan.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pd-plan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.pd-plan-months { font-size: 17px; font-weight: 700; }
.pd-plan-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
}
.pd-plan-list {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: line-through;
}
.pd-plan-sale {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}
.pd-plan-monthly { font-size: 14px; color: var(--accent); font-weight: 600; }

/* Checkout */
.pd-checkout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.pd-checkout h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.pd-summary { display: flex; flex-direction: column; gap: 12px; }
.pd-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-secondary);
}
.pd-summary-row strong { color: var(--text-primary); font-weight: 700; }
.pd-off { color: var(--accent); font-weight: 600; }
.pd-summary-total {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.pd-summary-total span { color: var(--text-primary); font-weight: 600; }
.pd-summary-total strong { font-size: 20px; }
.pd-secure {
  margin: 20px 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== Legal Pages (이용약관/개인정보/환불정책) ===== */
.legal-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
}
.legal-hero .container { max-width: 860px; }
.legal-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal-hero p {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}
.legal-body { padding: 48px 0 80px; }
.legal-body .container { max-width: 860px; }
.legal-content {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}
.legal-content h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
  padding-top: 8px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--text-primary);
}
.legal-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-primary);
}
.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 4px;
}
.legal-content strong { color: var(--text-primary); font-weight: 700; }
.legal-content .legal-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14px;
  color: var(--text-primary);
}
.legal-content .legal-note p { color: var(--text-primary); margin-bottom: 0; }
.legal-updated {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.legal-toc {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.legal-toc h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { font-size: 14px; color: var(--accent); }
.legal-toc a:hover { text-decoration: underline; }

/* Legal 본문 표 */
.legal-table-wrap { overflow-x: auto; margin: 16px 0 20px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
  line-height: 1.6;
}
.legal-table th {
  background: var(--background);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.legal-table td strong { color: var(--text-primary); font-weight: 600; }
.legal-table ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.legal-table ul li { margin-bottom: 4px; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .service-grid,
  .steps,
  .feature-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}
/* ===== Mobile Bottom Dock ===== */
.mobile-dock { display: none; }
@media (max-width: 720px) {
  .mobile-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
  }
  .dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: color 0.15s ease, background 0.15s ease;
  }
  .dock-item svg { width: 22px; height: 22px; }
  .dock-item.active { color: var(--accent); }
  .dock-item.active svg { stroke: var(--accent); }
  /* Dock에 가리지 않도록 본문 하단 여백 확보 */
  body { padding-bottom: 64px; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-desktop, .header-actions { display: none; }
  /* 모바일은 하단 Dock을 사용하므로 햄버거 메뉴 숨김 */
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-lg { width: 100%; }
  .hero-trust { gap: 16px; }
  .trust-item strong { font-size: 20px; }
  .section-head h2, .cta-section h2 { font-size: 26px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }

  /* 서비스: 모바일 2열 3행, 한눈에 들어오도록 컴팩트하게 */
  #services { padding: 48px 0; }
  #services .section-head { margin-bottom: 28px; }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .service-card {
    padding: 16px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 카드 내용을 세로 중앙 정렬해 행 높이가 달라도 치우치지 않게 */
  }
  .service-logo { height: 36px; margin-bottom: 12px; }
  .service-logo img { max-height: 36px; max-width: 96px; }
  .service-logo img.logo-lg { max-height: 48px; max-width: 110px; }
  .service-name { font-size: 16px; }
  .service-price { margin-top: 4px; font-size: 15px; }
  .service-price small { font-size: 12px; }
  .service-meta { display: none; }
  /* 모바일: 작은 텍스트형 링크로 절제 있게 (클릭 단서만 제공) */
  .service-cta {
    margin-top: 10px;
    width: auto;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
    background: transparent;
    color: var(--accent);
  }

  /* 상품 상세 페이지 */
  .pd-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .pd-hero-left h1 { font-size: 30px; }

  /* 요금제: 옵션 개수만큼 항상 한 행 유지 (컴팩트) */
  .pd-plans { gap: 8px; }
  .pd-plan { padding: 14px 10px; }
  .pd-plan-head { margin-bottom: 8px; gap: 4px; }
  .pd-plan-months { font-size: 14px; }
  .pd-plan-badge { font-size: 9px; padding: 2px 6px; }
  .pd-plan-list { font-size: 11px; }
  .pd-plan-sale { font-size: 17px; margin: 2px 0 1px; }
  .pd-plan-monthly { font-size: 11px; }

  /* Legal 페이지 */
  .legal-hero { padding: 40px 0 32px; }
  .legal-hero h1 { font-size: 26px; }
  .legal-body { padding: 32px 0 56px; }
  .legal-content { padding: 28px 22px; }
  .legal-content h2 { font-size: 18px; }

  /* 인증 모달 */
  .auth-modal { padding: 28px 22px; }
}

/* 주문 관리 — 크레덴셜 미배정 주문 강조 */
.admin-table tr.order-needs-assign {
  background: #fff7ed;
}
.admin-table tr.order-needs-assign:hover {
  background: #ffedd5;
}
.admin-table tr.order-needs-assign td:first-child {
  box-shadow: inset 3px 0 0 #f97316;
}

/* ===== 공지사항 배너 (고객지원/문의하기 상단) ===== */
.notice-board {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.notice-board[hidden] { display: none; }
.notice-board-head {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 8px;
}
.notice-board .notice-item {
  border-top: 1px solid #fde68a;
  padding: 4px 0;
}
.notice-board .notice-item:first-of-type { border-top: none; }
.notice-board .notice-item summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #78350f;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-board .notice-item summary::-webkit-details-marker { display: none; }
.notice-board .notice-item summary::before {
  content: "•";
  color: #d97706;
  font-weight: 800;
}
.notice-board .notice-item[open] summary { color: #92400e; }
.notice-board .notice-item-body {
  padding: 0 0 12px 14px;
  font-size: 14px;
  line-height: 1.65;
  color: #57534e;
  white-space: pre-line;
}

/* ===== Auth Modal ===== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  animation: authFadeIn 0.18s ease;
}
.auth-modal-overlay[hidden] { display: none; }
@keyframes authFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  animation: authSlideUp 0.22s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@keyframes authSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-modal-close:hover { background: var(--background); color: var(--text-primary); }
.auth-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { margin-top: 6px; margin-bottom: 24px; font-size: 14px; color: var(--text-secondary); }
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.auth-optional { font-weight: 400; color: var(--text-secondary); font-size: 12px; }
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
}
.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  white-space: pre-line;
}
.auth-form .btn-block { margin-top: 8px; }
.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-link {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
  font-family: inherit;
}
.auth-link:hover { text-decoration: underline; }

/* ===== Auth Prompt (구매 유도 모달) ===== */
.auth-prompt { text-align: center; max-width: 380px; }
.auth-prompt-icon { font-size: 44px; margin-bottom: 12px; }
.auth-prompt .auth-title { margin-bottom: 6px; }
.auth-prompt .auth-sub { margin-bottom: 24px; }
.auth-prompt .btn-block { margin-top: 10px; }
.auth-prompt-register { margin-top: 10px; }

/* ===== Auth Page (별도 로그인/회원가입 페이지) ===== */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  background:
    radial-gradient(60% 120% at 50% 0%, var(--accent-soft) 0%, rgba(238, 242, 255, 0) 55%);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.auth-page-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.auth-page-sub { margin: 8px 0 28px; font-size: 14px; color: var(--text-secondary); }
.auth-card .auth-switch { margin-top: 22px; }
.auth-card .auth-switch a { color: var(--accent); font-weight: 700; }
.auth-card .auth-switch a:hover { text-decoration: underline; }

/* 구글 로그인 버튼 / 구분선 */
.google-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 40px;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { padding: 0 14px; }

/* 이메일로 계속하기 토글 버튼 (구글 버튼과 동일 폭의 보조 버튼) */
.email-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.email-toggle-btn:hover { border-color: var(--text-secondary); }
.email-toggle-btn svg { flex: none; }

/* Turnstile 모달 (체크 시 표시) */
.ts-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  animation: authFadeIn 0.18s ease;
}
.ts-modal-overlay[hidden] { display: none; }
.ts-modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  animation: authSlideUp 0.22s ease;
  text-align: center;
  max-width: 360px;
}
.ts-modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.ts-modal p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 18px; }
.ts-modal #turnstileWidget {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

/* 약관 동의 전 가입 수단 잠금(흐리게 비활성화) */
.auth-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.auth-consent input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.auth-consent label { cursor: pointer; }
.auth-consent a { color: var(--accent); text-decoration: underline; }
.auth-consent a:hover { color: var(--accent-hover); }

/* 펼쳐지는 이메일 폼 영역 */
.auth-collapse {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s ease, opacity 0.25s ease, margin 0.32s ease;
  margin-top: 0;
}
.auth-collapse > .auth-collapse-inner {
  overflow: hidden;
  min-height: 0;
}
.auth-collapse.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 18px;
}

/* ===== Toast (간단 알림) ===== */
.lp-toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.lp-toast {
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: lpToastIn 0.2s ease;
  max-width: 90vw;
}
.lp-toast.lp-toast-error { background: #dc2626; }
.lp-toast.lp-toast-success { background: #16a34a; }
@keyframes lpToastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Loading spinner ===== */
.lp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 100px 0;
  color: var(--text-secondary);
}
.lp-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lpSpin 0.7s linear infinite;
}
@keyframes lpSpin {
  to { transform: rotate(360deg); }
}

/* ===== My Page ===== */
.mypage { padding: 48px 0 80px; min-height: 60vh; }
.mypage-head { margin-bottom: 32px; }
.mypage-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.mypage-head p { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }
.mypage-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.mypage-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.mypage-stat .label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.mypage-stat .value { margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.mypage-section-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.order-card-logo {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  border-radius: var(--radius-sm);
}
.order-card-logo img { max-width: 36px; max-height: 36px; object-fit: contain; }
.order-card-body { flex: 1; min-width: 0; }
.order-card-name { font-size: 16px; font-weight: 700; }
.order-card-meta { margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
.order-card-right { text-align: right; flex: none; }
.order-card-amount { font-size: 16px; font-weight: 700; }
.order-status {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.order-status.status-active { background: #dcfce7; color: #16a34a; }
.order-status.status-pending { background: #fef9c3; color: #ca8a04; }
.order-status.status-paid { background: var(--accent-soft); color: var(--accent); }
.order-status.status-expired,
.order-status.status-cancelled,
.order-status.status-refunded { background: #f1f5f9; color: #64748b; }

.mypage-empty {
  text-align: center;
  padding: 64px 0;
  color: var(--text-secondary);
}
.mypage-empty p { margin-bottom: 20px; }

/* ===== My Page — 탭 ===== */
.mypage-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.mypage-tab {
  position: relative;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 12px 16px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.mypage-tab:hover { color: var(--text-primary); }
.mypage-tab.active { color: var(--accent); }
.mypage-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

/* ===== My Page — 구독 격자 ===== */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sub-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.sub-grid-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sub-grid-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 4px;
}
.sub-grid-logo img { max-width: 56px; max-height: 56px; object-fit: contain; }
.sub-grid-name { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.sub-grid-meta { font-size: 13px; color: var(--text-secondary); }

/* ===== My Page — 구독 상세 카드 (인라인, 2열) ===== */
.sub-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 내부 고정폭 콘텐츠가 칸을 넘지 않도록 */
  gap: 20px;
  align-items: start;
}
.sub-detail-card { min-width: 0; } /* 그리드 칸 안에서 넘침 방지 */
.sub-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

/* ===== My Page — 구독 상세 모달 ===== */
.sub-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  animation: authFadeIn 0.18s ease;
}
.sub-modal-overlay[hidden] { display: none; }
.sub-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  animation: authSlideUp 0.22s ease;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.sub-detail-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.sub-detail-logo {
  flex: none;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--background);
  border-radius: var(--radius-sm);
}
.sub-detail-logo img { max-width: 40px; max-height: 40px; object-fit: contain; }
.sub-detail-title { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.sub-detail-section {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.sub-detail-section:last-child { padding-bottom: 0; }
.sub-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
}
.sub-detail-row strong { color: var(--text-primary); font-weight: 600; }
.sub-dday {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800 !important;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
}

.sub-cred-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.sub-cred-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}
.sub-cred-list { display: flex; flex-direction: column; gap: 10px; }
.sub-cred-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--background);
  border-radius: var(--radius-sm);
}
.sub-cred-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.sub-cred-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}
.sub-cred-toggle,
.sub-cred-copy {
  flex: none;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 0 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.sub-cred-toggle:hover,
.sub-cred-copy:hover { background: var(--accent-soft); }
.sub-cred-empty {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  padding: 16px 0;
}

/* 링크 제공형 크레덴셜 (고정폭 input + 복사/열기) */
.sub-cred-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.sub-cred-link-input {
  flex: none;
  width: 150px;          /* 링크가 길어도 좌우 크기 고정 */
  height: 30px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 10px;
  outline: none;
  text-overflow: ellipsis;
}
.sub-cred-link-input:focus { border-color: var(--accent); }
.sub-cred-open {
  flex: none;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sub-cred-open:hover { background: var(--accent-hover); }
.sub-cred-open svg { flex: none; }

/* 디즈니 등 공유형 프로필 번호 안내 */
.sub-profile-note { border-left-color: #16a34a; background: #f0fdf4; }
.sub-profile-note strong { color: #15803d; }

/* 결제됐으나 품절(크레덴셜 미배정) 안내 */
.sub-soldout-note {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
  line-height: 1.7;
}
.sub-soldout-note strong { color: #b45309; }
.sub-soldout-note a { color: var(--accent); font-weight: 700; text-decoration: underline; }

/* 링크형: 등록 이메일 블록 */
.sub-email-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
}
.sub-email-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.sub-email-view {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sub-email-view[hidden], .sub-email-form[hidden] { display: none; }
.sub-email-value {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}
.sub-email-form { display: flex; gap: 8px; }
.sub-email-input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
  background: var(--card);
}
.sub-email-input:focus { border-color: var(--accent); }
.sub-email-edit,
.sub-email-save {
  flex: none;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}
.sub-email-edit { background: var(--card); color: var(--accent); border: 1px solid var(--border); }
.sub-email-edit:hover { background: var(--accent-soft); }
.sub-email-save:hover { background: var(--accent-hover); }
.sub-email-save:disabled { opacity: 0.6; cursor: not-allowed; }
.sub-email-hint { margin-top: 8px; font-size: 12px; color: var(--text-secondary); }

/* ===== My Page — 내 정보 (프로필) ===== */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}
.profile-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.profile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
}
.profile-accordion-toggle h3 { font-size: 17px; font-weight: 700; }
.profile-accordion-icon {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.profile-row:last-child { border-bottom: none; }
.profile-row strong { color: var(--text-primary); font-weight: 600; }
.profile-form .auth-field { margin-bottom: 14px; }
.profile-form .btn-block { margin-top: 6px; }

/* ===== Payment Result Page ===== */
.payment-result {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 20px;
}
.payment-result-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.payment-result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.payment-result-icon.success { background: #dcfce7; }
.payment-result-icon.fail { background: #fef2f2; }
.payment-result-card h1 { font-size: 24px; font-weight: 800; }
.payment-result-card p { margin-top: 12px; color: var(--text-secondary); font-size: 15px; }
.payment-result-detail {
  margin: 28px 0;
  padding: 20px;
  background: var(--background);
  border-radius: var(--radius-sm);
  text-align: left;
}
.payment-result-detail .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}
.payment-result-detail .row span:first-child { color: var(--text-secondary); }
.payment-result-detail .row span:last-child { font-weight: 600; }
.payment-result-actions { display: flex; gap: 10px; }
.payment-result-actions .btn-primary,
.payment-result-actions .btn-outline { flex: 1; }

@media (max-width: 720px) {
  .mypage-summary { grid-template-columns: 1fr; gap: 12px; }
  .order-card { flex-wrap: wrap; }
  .payment-result-card { padding: 36px 24px; }

  /* 마이페이지: 구독 격자 2열 */
  .sub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sub-grid-card { padding: 18px 10px; }
  .sub-grid-logo { width: 44px; height: 44px; font-size: 24px; }
  .sub-grid-logo img { max-width: 44px; max-height: 44px; }
  .sub-grid-name { font-size: 14px; }
  .sub-modal { padding: 26px 20px; }

  /* 마이페이지: 구독 상세 카드 모바일 1열 */
  .sub-detail-list { grid-template-columns: 1fr; }
  .sub-detail-card { padding: 22px 18px; }
}

/* ============================================================
   Admin 관리자 페이지
   ============================================================ */
.admin-body { background: #f4f5f7; }
.admin-layout { display: flex; min-height: 100vh; }

/* 사이드바 */
.admin-sidebar {
  width: 232px;
  flex-shrink: 0;
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-brand {
  padding: 22px 20px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}
.admin-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.admin-nav button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.admin-nav button.active { background: var(--accent); color: #fff; }
.admin-sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.admin-sidebar-foot a { color: #94a3b8; }
.admin-sidebar-foot a:hover { color: #fff; }

/* 메인 영역 */
.admin-main { flex: 1; min-width: 0; padding: 28px 32px 64px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-topbar h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.admin-user-chip { font-size: 13px; color: var(--text-secondary); }

/* 패널 */
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* 통계 카드 */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.admin-stat-card .label { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.admin-stat-card .value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* 카드 / 섹션 */
.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.admin-card-head h2 { font-size: 16px; font-weight: 700; }
.admin-card-body { padding: 20px; }
.admin-card-body.no-pad { padding: 0; }

/* 테이블 */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f8fafc; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 배지 */
.admin-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.admin-badge.gray { background: #f1f5f9; color: #475569; }
.admin-badge.green { background: #dcfce7; color: #166534; }
.admin-badge.blue { background: var(--accent-soft); color: var(--accent-hover); }
.admin-badge.amber { background: #fef3c7; color: #92400e; }
.admin-badge.red { background: #fee2e2; color: #991b1b; }

/* 폼 */
.admin-form { display: grid; gap: 14px; }
.admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.admin-field input,
.admin-field select,
.admin-field textarea {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text-primary);
}
.admin-field textarea { min-height: 100px; resize: vertical; }
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 버튼 */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.admin-btn:hover { background: #f8fafc; }
.admin-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.admin-btn.primary:hover { background: var(--accent-hover); }
.admin-btn.danger { background: #fff; border-color: #fecaca; color: #dc2626; }
.admin-btn.danger:hover { background: #fef2f2; }
.admin-btn.sm { padding: 5px 10px; font-size: 12px; }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* 필터 바 */
.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-toolbar select {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

/* 페이지네이션 */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 문의 관리 — 2단 레이아웃 */
.admin-inquiry-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-inquiry-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 620px;
  overflow-y: auto;
}
.admin-inquiry-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.admin-inquiry-item:hover { background: #f8fafc; }
.admin-inquiry-item.active { background: var(--accent-soft); }
.admin-inquiry-item .title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-inquiry-item .meta { font-size: 12px; color: var(--text-secondary); }
.admin-inquiry-item .preview {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 문의 대화 영역 */
.admin-chat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 620px;
}
.admin-chat-head { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.admin-chat-head .title { font-size: 15px; font-weight: 700; }
.admin-chat-head .sub { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.admin-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 460px;
}
.admin-msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.admin-msg .who {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  opacity: 0.7;
}
.admin-msg.user { align-self: flex-start; background: #f1f5f9; color: var(--text-primary); }
.admin-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.admin-msg.admin { align-self: flex-end; background: var(--accent); color: #fff; }
.admin-chat-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.admin-chat-foot textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 44px;
  max-height: 120px;
}
.admin-chat-foot textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 비어있음 / 로딩 */
.admin-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.admin-loading {
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* 접근 거부 */
.admin-denied {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.admin-denied h1 { font-size: 24px; font-weight: 800; }
.admin-denied p { color: var(--text-secondary); }

/* 재고 통계 카드 */
.admin-stock-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.admin-stock-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}
.admin-stock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.admin-stock-head strong { font-size: 15px; font-weight: 700; }
.admin-stock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 12px;
}
.admin-stock-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}
.admin-stock-grid > div b {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.admin-stock-grid > div.hl {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
}
.admin-stock-grid > div.hl b { color: var(--accent); font-size: 18px; }

/* 계정/자리 목록 */
.admin-cred-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}
.admin-cred-account {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-cred-account-head {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}
.admin-cred-account-head strong { font-size: 14px; margin-right: 8px; }
.admin-cred-account-meta {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-secondary);
}
.admin-cred-account-meta b { color: var(--text-primary); font-weight: 600; }
.admin-cred-slots { font-size: 13px; }
.admin-cred-slots th { background: #fff; }
.cred-link {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  color: var(--accent);
}
.admin-cred-account-foot {
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
}
.admin-cred-account-foot:empty { display: none; }

/* ── 계정/자리 목록 테이블 (번/아이디/PW/자리1~5) ── */
.admin-cred-table { font-size: 13px; table-layout: fixed; min-width: 880px; }
.admin-cred-table th,
.admin-cred-table td {
  padding: 8px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.admin-cred-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}
.admin-cred-table .cred-cell { max-width: 200px; }
.admin-cred-table .cred-cell.empty { color: var(--text-secondary); text-align: center; }

/* 여유 자리(초록) */
.cred-cell.free { background: rgba(16, 185, 129, 0.08); }
.cred-cell.free .cred-free-tag {
  display: inline-block;
  font-weight: 700;
  color: #059669;
}
.cred-linktext {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #059669;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cred-linktext:hover { color: #047857; }
.cred-timer {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.cred-timer.expired { color: #dc2626; font-weight: 700; }

/* 사용중 자리(빨강) */
.cred-cell.used { background: rgba(239, 68, 68, 0.07); }
.cred-cell.used .cred-email {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dc2626;
  font-weight: 600;
}
.cred-cell.used .cred-dday {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #b91c1c;
}
.cred-cell.used .cred-dday:only-child { margin-top: 0; }

/* 아이디/PW 복사 텍스트 */
.cred-copy-text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 1px dashed var(--border);
}
.cred-copy-text:hover { color: var(--accent, #2563eb); }

/* 번호 셀: 규격 로고 박스 + #번호 (정렬 고정) */
.cred-id-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cred-logo-box {
  flex: none;
  width: 28px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.cred-logo-box img {
  max-width: 24px;
  max-height: 18px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cred-logo-fallback { font-size: 11px; color: var(--text-secondary); }
.cred-id-cell b { font-variant-numeric: tabular-nums; }

/* 사용중 자리: 클릭 가능(구매자 정보) */
.cred-cell.clickable { cursor: pointer; }
.cred-cell.clickable:hover { background: rgba(239, 68, 68, 0.15); }

/* 비활성 계정 행 */
.admin-cred-table tr.cred-inactive { opacity: 0.55; }

/* 재고 카드 클릭 가능 */
.admin-stock-card.js-stockview { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.admin-stock-card.js-stockview:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.admin-stock-foot {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-align: right;
}

/* 문의 — 별표 / 읽음 표시 */
.admin-inquiry-item .inquiry-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inquiry-star {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  color: #cbd5e1;
  padding: 0;
}
.inquiry-star.on { color: #f59e0b; }
.admin-inquiry-item.unread { background: #fffbeb; }
.admin-inquiry-item.unread .title { font-weight: 800; }
.unread-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
}
.admin-inquiry-item .inquiry-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

/* 문의 — 상담원 연결(agent) 표시 */
.admin-inquiry-item.agent {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
}
.admin-inquiry-item.agent.unread { background: #fee2e2; }
.inquiry-agent-tag {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

/* 문의 — 비활성 표시 */
.admin-inquiry-item.inactive { opacity: 0.6; }
.inquiry-inactive-tag {
  display: inline-block;
  background: #64748b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

/* 문의 대화 — 모드 안내 바 */
.admin-chat-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  font-size: 13px;
  color: var(--text-secondary);
}
.admin-chat-mode.agent { background: #fef2f2; }
.admin-chat-mode #switchBotBtn { margin-left: auto; }

/* 문의 대화 — 자동응답(빠른 답변) 버튼 */
.admin-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.admin-quick-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.admin-quick-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* 문의 챗 — 상담원 연결 종료 바 */
.chat-agent-bar.chat-agent-active { background: #f0fdf4; }
.chat-agent-bar.chat-agent-active[hidden] { display: none; }
.chat-agent-btn.end { background: #dc2626; }
.chat-agent-btn.end:hover { background: #b91c1c; }

/* 관리자 문의관리 — 모바일 하단 Dock (기본 숨김) */
.admin-inq-dock { display: none; }

@media (max-width: 720px) {
  /* 문의관리 진입 시: 전체 페이지 스크롤 잠금 + 상단 메뉴/타이틀 숨김 */
  body.admin-inq-mobile { overflow: hidden; height: 100vh; padding-bottom: 0; }
  body.admin-inq-mobile .admin-sidebar,
  body.admin-inq-mobile .admin-topbar,
  body.admin-inq-mobile #inquiryHead { display: none; }
  body.admin-inq-mobile .admin-main { padding: 0; }
  body.admin-inq-mobile .mobile-dock { display: none !important; }

  /* 문의 영역: 단일 패널, 화면 높이 - Dock */
  body.admin-inq-mobile .admin-inquiry-wrap {
    display: block;
    height: calc(100vh - 56px);
    gap: 0;
  }
  body.admin-inq-mobile .admin-inquiry-list,
  body.admin-inq-mobile .admin-chat {
    height: 100%;
    max-height: none;
    min-height: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  body.admin-inq-mobile .admin-inquiry-list { overflow-y: auto; }
  body.admin-inq-mobile .admin-chat-body { max-height: none; }

  /* 뷰 전환: 목록만 보기 / 메시지창만 보기 (각자 내부에서만 스크롤) */
  body.admin-inq-mobile .admin-inquiry-wrap.m-list .admin-chat { display: none; }
  body.admin-inq-mobile .admin-inquiry-wrap.m-chat .admin-inquiry-list { display: none; }

  /* 하단 Dock */
  body.admin-inq-mobile .admin-inq-dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    height: 56px;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  body.admin-inq-mobile .admin-inq-dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
  }
  body.admin-inq-mobile .admin-inq-dock button:active { color: #fff; }
}

/* Admin 반응형 */
@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-inquiry-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: column;
  }
  .admin-nav { display: flex; flex-wrap: wrap; padding: 8px; }
  .admin-nav button { width: auto; padding: 8px 12px; border-radius: var(--radius-sm); }
  .admin-main { padding: 20px 16px 48px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 9px 10px; }
}
