:root {
  --brand-from:  #0064ff;
  --brand-to:    #3182f6;
  --brand-mid:   #3182f6;
  --accent-red:  #f04452;
  --accent-green:#00a661;
  --bg:          #f7f8fa;
  --surface:     #ffffff;
  --border:      #eef0f3;
  --text:        #191f28;
  --muted:       #8b95a1;
  --soft:        #f2f4f6;

  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
/* hidden 속성이 CSS display 값에 묻히지 않도록 강제 */
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
button, input, select, textarea { font: inherit; }

/* Landing */
.landing-body {
  background: #ffffff;
  color: var(--text);
}

.landing-nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.landing-brand img {
  width: 132px;
  height: 34px;
  object-fit: contain;
}

.landing-brand strong {
  font-size: 21px;
  font-weight: 850;
}

.landing-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.landing-links a {
  color: var(--text);
  text-decoration: none;
}

.landing-links a:hover {
  color: var(--brand-from);
}

.landing-hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 64px;
  padding: 36px 0 72px;
}

.landing-kicker {
  margin: 0 0 16px;
  color: var(--brand-from);
  font-size: 17px;
  font-weight: 850;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.landing-sub {
  width: min(100%, 590px);
  margin: 24px 0 0;
  color: #6b7684;
  font-size: 20px;
  line-height: 1.65;
  word-break: keep-all;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.landing-primary,
.landing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 56px;
  padding: 0 22px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 850;
}

.landing-primary {
  background: var(--brand-mid);
  color: #ffffff;
}

.landing-secondary {
  background: var(--soft);
  color: var(--text);
}

.landing-preview {
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
}

.preview-toolbar,
.preview-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-toolbar span,
.preview-summary span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.preview-toolbar strong {
  color: var(--brand-from);
  font-size: 14px;
}

.preview-deal {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
}

.preview-thumb {
  width: 86px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--soft);
}

.preview-thumb img {
  width: 42px;
  height: 42px;
}

.preview-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f8f0;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 850;
}

.preview-deal h2 {
  margin: 10px 0 4px;
  font-size: 22px;
  line-height: 1.25;
}

.preview-deal p {
  margin: 0;
  color: var(--accent-red);
  font-size: 15px;
  font-weight: 850;
}

.preview-chart {
  height: 190px;
  margin-top: 22px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
}

.preview-chart span {
  flex: 1;
  min-width: 0;
  border-radius: 999px 999px 8px 8px;
  background: var(--brand-mid);
}

.preview-summary {
  margin-top: 18px;
}

.preview-summary div {
  flex: 1;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
}

.preview-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
}

.landing-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.landing-section h2 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-feature-grid article {
  padding: 24px;
  border-radius: 24px;
  background: #f7f8fa;
}

.landing-feature-grid strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.landing-feature-grid p {
  margin: 12px 0 0;
  color: #6b7684;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Layout ─────────────────────────────────────── */
.app-shell {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Brand header (full-width top bar) ──────────── */
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px 14px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 132px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

.status {
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
  background: #f8fafc;
  backdrop-filter: blur(4px);
}

/* ── Search ─────────────────────────────────────── */
.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 10px;
  padding: 18px;
}

.search-row input {
  min-width: 0;
  height: 46px;
  border: none;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  background: var(--soft);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-row input:focus {
  box-shadow: inset 0 0 0 2px rgba(49, 130, 246, 0.2);
  background: #fff;
}

.search-row button {
  height: 46px;
  border: none;
  border-radius: 14px;
  background: var(--brand-mid);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s;
}

.search-row button:hover { opacity: 0.88; }
.search-row button:disabled { cursor: default; }

.search-row button.is-loading {
  color: transparent;
  position: relative;
  opacity: 1;
}
.search-row button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Loading skeleton (상품 리스트) ───────────────── */
.skeleton-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
}

.skeleton-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.skeleton-box {
  border-radius: 8px;
  background: #e8eef7;
  background-image: linear-gradient(90deg, #e8eef7 0, #f3f7fc 50%, #e8eef7 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.3s ease-in-out infinite;
}
.skeleton-thumb { width: 54px; height: 54px; }
.skeleton-line  { height: 12px; }
.skeleton-line.short { width: 55%; }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-box,
  .search-row button.is-loading::after { animation: none; }
}

/* ── Main view nav ──────────────────────────────── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
}

.nav-tab {
  position: relative;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-tab:hover { background: var(--soft); color: var(--text); }

.nav-tab.is-active {
  background: #eaf3ff;
  color: var(--brand-from);
}
.nav-tab.is-active::after {
  content: none;
}

.ticket-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.ticket-badge strong {
  color: var(--text);
  font-size: 14px;
}

/* ── View panels (할인 / 리워드) ────────────────── */
.view-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.panel-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 56px;
}

.panel-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
}

.panel-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef3fd;
  color: var(--brand-from);
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Discount grid (mockup) ─────────────────────── */
.menu-panel {
  max-width: 980px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.menu-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.menu-section h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--text);
}

.menu-account {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-from);
  background: #eef3fd;
  flex: 0 0 auto;
}

.menu-account div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.menu-account strong,
.menu-account span,
.menu-account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-account strong { font-size: 16px; }

.menu-account span,
.menu-account small,
.menu-login-prompt p {
  color: var(--muted);
  font-size: 15px;
}

.menu-login-prompt p { margin: 0 0 12px; }

.menu-login-prompt a,
.menu-link-list a {
  color: var(--brand-mid);
  font-weight: 700;
  text-decoration: none;
}

.menu-login-prompt a:hover,
.menu-link-list a:hover {
  text-decoration: underline;
}

.menu-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-copy {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
}

.invite-row .menu-secondary {
  margin-top: 0;
}

.invite-input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}

.suggestion-input {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  outline: none;
  font: inherit;
  font-size: 16px;
}

.suggestion-input:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(30,108,216,0.12);
}

.suggestion-status {
  margin: 10px 0 0;
  font-size: 13px;
}
.suggestion-status.is-success { color: #15803d; }
.suggestion-status.is-error { color: var(--accent-red); }

.menu-primary,
.menu-secondary,
.menu-danger {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
}

.menu-primary {
  border: none;
  background: var(--brand-mid);
  color: #ffffff;
}

.menu-secondary {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.menu-danger {
  border: 1px solid #fca5a5;
  background: #fff5f5;
  color: var(--accent-red);
}

.menu-primary:disabled,
.menu-secondary:disabled,
.menu-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

.deal-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.deal-search input {
  min-width: 0;
  height: 56px;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  font-size: 17px;
  outline: none;
  background: transparent;
}

.deal-search input:focus {
  background: var(--soft);
  box-shadow: none;
}

.deal-search button {
  height: 56px;
  border: none;
  border-radius: 14px;
  background: var(--brand-mid);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.discount-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.discount-category {
  border: none;
  background: var(--soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.discount-category:hover {
  background: #e5e8eb;
  color: var(--text);
}

.discount-category.is-active {
  border-color: transparent;
  background: #eaf3ff;
  color: var(--brand-from);
}

.discount-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.discount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.discount-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.discount-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
  border-color: #d7dce2;
  background: #fcfcfd;
}

.discount-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discount-thumb .thumb-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-rate {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(240, 68, 82, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}

.discount-info { padding: 16px 18px 18px; }

.discount-verdict {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f8f0;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 800;
}

.price-bug-verdict {
  background: #fff1f2;
  color: var(--accent-red);
}

.report-box {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin: 0 0 22px;
  padding: 22px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid #e5e8eb;
}

.report-box h3 {
  margin: 0;
  font-size: 22px;
}

.report-box p {
  margin: 10px 0 0;
  color: #6b7684;
  line-height: 1.55;
}

.report-form {
  display: grid;
  gap: 10px;
}

.report-form input,
.report-form textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft);
  padding: 14px 16px;
  outline: none;
  font: inherit;
}

.report-form input {
  height: 48px;
}

.report-form input:focus,
.report-form textarea:focus {
  background: #ffffff;
  border-color: rgba(49, 130, 246, 0.35);
}

.report-form button {
  height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--brand-mid);
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.report-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.discount-name {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.discount-original {
  display: block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
}

.discount-sale {
  display: block;
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
}

.discount-saving {
  margin: 8px 0 0;
  color: var(--accent-red);
  font-size: 15px;
  font-weight: 800;
}

.discount-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.discount-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 14px;
  border-radius: 14px;
  background: #191f28;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

/* ── Coming soon (리워드) ───────────────────────── */
.coming-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 24px;
  color: var(--muted);
  text-align: center;
}
.coming-soon svg { color: var(--brand-to); }
.coming-soon h2 {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.coming-soon p { margin: 0; font-size: 14px; }


/* ── Product list ───────────────────────────────── */
.product-list {
  overflow: auto;
  padding: 0 12px 20px;
  flex: 1;
}

.product-item {
  width: 100%;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.product-item:hover {
  background: var(--soft);
  border-color: transparent;
}

.product-item.is-active {
  background: #eaf2ff;
  border-color: #c9e2ff;
  border-left-width: 1px;
}

.product-thumb {
  width: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: var(--soft);
  overflow: hidden;
  flex: 0 0 auto;
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  min-width: 0;
}

.product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  color: #182535;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-sub {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #6b7684;
  font-size: 16px;
  line-height: 1.55;
}

.product-sub span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-sub span:last-child {
  flex: 0 0 auto;
}

.demo-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-red);
  color: white;
  letter-spacing: 0.3px;
  vertical-align: middle;
  margin-left: 4px;
}

.live-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #16a34a;
  color: white;
  letter-spacing: 0.3px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Chart area ─────────────────────────────────── */
.chart-area {
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.toolbar h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 850;
  color: var(--text);
}

.toolbar p {
  margin: 6px 0 0;
  color: #6b7684;
  font-size: 16px;
}

.range-control { display: flex; gap: 6px; }

.range {
  width: 64px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: all 0.15s;
}

.range:hover { background: #e5e8eb; color: var(--text); }

.range.is-active {
  border-color: transparent;
  background: var(--brand-mid);
  color: #ffffff;
  font-weight: 800;
}

/* ── Stats cards ────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats div {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 18px 20px;
  border-top: none;
  transition: border-color 0.15s;
}

.stats div:first-child {
  border-top-color: var(--accent-red);
}
.stats div:nth-child(2) {
  border-top-color: var(--brand-to);
}
.stats div:nth-child(3) {
  border-top-color: var(--brand-from);
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.stats strong {
  font-size: 24px;
  font-weight: 850;
}

.stats div:first-child strong { color: var(--accent-red); }

/* ── Chart canvas ───────────────────────────────── */
.chart-wrap {
  position: relative;
  flex: 0 0 auto;
  height: 520px;
  min-height: 0;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
}

#priceChart {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* ── Chart hover tooltip ────────────────────────── */
.chart-tooltip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  box-shadow: 0 2px 8px rgba(16, 33, 58, 0.12);
  pointer-events: none;
  min-width: 148px;
  z-index: 10;
}

.tooltip-date {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1.9;
}

.tooltip-row span:first-child { color: var(--muted); }
.tooltip-row span:last-child  { font-weight: 600; }

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
  font-size: 15px;
}

.empty-state.is-hidden { display: none; }

/* ── Product list empty / error states ──────────── */
.list-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}

.list-empty-state svg   { opacity: 0.45; margin-bottom: 4px; }
.list-empty-state p     { margin: 0; font-size: 13px; color: var(--text); line-height: 1.5; }
.list-empty-state span  { font-size: 12px; color: var(--muted); }

.list-error-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 10px 4px;
  padding: 9px 12px;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  font-size: 12px;
  color: #b91c1c;
}

/* ── Actions ────────────────────────────────────── */
.actions {
  display: flex;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.15s;
}

.buy-link:not(.is-disabled) {
  background: var(--brand-mid);
  border-color: var(--brand-from);
  color: #ffffff;
  box-shadow: none;
}

.buy-link:not(.is-disabled):hover {
  opacity: 0.92;
  box-shadow: none;
}

.buy-link.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

/* ── Brand right (auth area) ────────────────────── */
.brand-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.guest-auth-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.auth-link:hover { background: #e5e8eb; }

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--soft);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.avatar-btn:hover { background: #e5e8eb; }
.avatar-btn[aria-expanded="true"] {
  background: #eef3fd;
  color: var(--brand-from);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(16, 33, 58, 0.12);
  padding: 14px;
  z-index: 50;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: rotate(45deg);
}

.dropdown-account {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dropdown-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-email {
  font-size: 14px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  font-size: 13px;
}
.dropdown-meta span:first-child { color: var(--muted); }
.dropdown-meta span:last-child  { font-weight: 600; color: var(--text); }

.dropdown-logout {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--accent-red);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.dropdown-logout:hover {
  background: #fdeaea;
  border-color: var(--accent-red);
}

.dropdown-delete {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.dropdown-delete:hover {
  background: #fff5f5;
  color: var(--accent-red);
}

/* ── Auth Modal ──────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}
.modal.is-open { display: flex; align-items: center; justify-content: center; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 48, 0.55);
  backdrop-filter: blur(3px);
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px 28px;
  width: min(420px, calc(100vw - 32px));
  box-shadow: 0 4px 18px rgba(0,0,0,0.16);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: var(--bg); }

.modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.modal-logo img { width: 36px; height: 36px; }
.modal-logo strong { font-size: 20px; font-weight: 800; color: var(--brand-from); }

.modal-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

/* OAuth buttons */
.oauth-buttons { display: flex; flex-direction: column; gap: 10px; }

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.oauth-btn:hover { opacity: 0.88; box-shadow: none; }

.kakao-btn {
  background: #FEE500;
  color: #3A1D1D;
  border-color: #E6CF00;
}

.google-btn {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Email form */
.form-group { margin-bottom: 10px; }

.form-group input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(30,108,216,0.12);
}

/* 약관 동의 */
.agree-list {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  user-select: none;
}

.agree-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-mid);
  cursor: pointer;
  flex-shrink: 0;
}

.agree-all-label {
  font-weight: 700;
  font-size: 13px;
}

.agree-row a {
  color: var(--brand-mid);
  text-decoration: none;
}
.agree-row a:hover { text-decoration: underline; }

.agree-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.auth-error {
  margin: 0 0 10px;
  color: var(--accent-red);
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--brand-mid);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.auth-submit:hover { opacity: 0.88; }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.auth-switch {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.auth-switch button {
  border: none;
  background: none;
  color: var(--brand-mid);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}
.auth-switch button:hover { text-decoration: underline; }

/* Standalone auth pages */
.auth-page-body {
  min-height: 100vh;
  background: var(--bg);
}

.auth-page {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.auth-back span:first-child {
  font-size: 23px;
  line-height: 1;
}

.auth-back:hover { color: var(--brand-mid); }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 32px 28px;
  box-shadow: 0 2px 10px rgba(22, 33, 58, 0.08);
}

.auth-card-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-card-logo img {
  width: 36px;
  height: 36px;
}

.auth-card-logo strong {
  color: var(--brand-from);
  font-size: 20px;
  font-weight: 800;
}

.auth-card h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-page-sub {
  margin: 7px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.auth-form { margin: 0; }

.auth-switch a {
  color: var(--brand-mid);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* ── Site footer ────────────────────────────────── */
.site-footer {
  background: #111827;
  font-size: 12px;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  padding: 16px 24px;
  text-align: center;
}

.footer-inner img {
  display: block;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

.footer-brand-name {
  font-weight: 700;
  color: #e5e7eb;
  font-size: 13px;
}

.footer-div {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: #374151;
  vertical-align: middle;
  margin: 0 2px;
}

.footer-dot { color: #374151; }

.footer-inner a {
  color: #60a5fa;
  text-decoration: none;
}
.footer-inner a:hover { text-decoration: underline; }

/* Admin */
.admin-body {
  min-height: 100vh;
  background: #f7f8fa;
  color: var(--text);
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #eef0f3;
  backdrop-filter: blur(12px);
}

.admin-brand,
.admin-home {
  color: var(--text);
  text-decoration: none;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 850;
}

.admin-brand img {
  width: 30px;
  height: 30px;
}

.admin-home {
  padding: 9px 14px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #fff;
  color: #4e5968;
  font-size: 14px;
  font-weight: 750;
}

.admin-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: end;
  padding: 28px 0 30px;
}

.admin-kicker {
  margin: 0 0 10px;
  color: var(--brand-from);
  font-size: 15px;
  font-weight: 850;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(31px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 900;
}

.admin-hero p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #6b7684;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
}

.admin-key-panel,
.admin-panel {
  background: #fff;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
}

.admin-key-panel {
  padding: 20px;
}

.admin-key-panel label {
  display: block;
  margin-bottom: 9px;
  color: #4e5968;
  font-size: 13px;
  font-weight: 800;
}

.admin-panel-title {
  display: block;
  color: #191f28;
  font-size: 18px;
  font-weight: 850;
}

.admin-key-panel p {
  margin: 9px 0 0;
  color: #6b7684;
  font-size: 14px;
  line-height: 1.55;
}

.admin-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-key-row input,
.admin-panel select,
.ticket-input {
  min-width: 0;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.admin-key-row input {
  width: 100%;
  padding: 12px 13px;
}

.admin-key-row button,
.admin-refresh,
.admin-report-actions button,
.table-save {
  border: 0;
  border-radius: 8px;
  background: var(--brand-from);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.admin-key-row button {
  padding: 0 18px;
}

.admin-refresh {
  height: 42px;
  margin-top: 15px;
  padding: 0 16px;
}

.admin-status {
  min-height: 20px;
  margin: 11px 0 0;
  color: #6b7684;
  font-size: 13px;
  line-height: 1.45;
}

.admin-status.ok { color: #00a661; }
.admin-status.error { color: #f04452; }

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.admin-panel {
  min-width: 0;
  padding: 22px;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-panel h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.admin-panel p {
  margin: 6px 0 0;
  color: #6b7684;
  font-size: 14px;
  line-height: 1.5;
}

.admin-panel select {
  padding: 9px 34px 9px 12px;
  color: #333d4b;
  font-size: 14px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-compact-list {
  max-height: 474px;
  overflow: auto;
  padding-right: 2px;
}

.admin-report,
.admin-suggestion {
  border: 1px solid #eef0f3;
  border-radius: 8px;
  background: #fff;
}

.admin-report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  padding: 16px;
}

.admin-suggestion {
  padding: 14px;
}

.admin-report-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-report-title strong {
  font-size: 16px;
  line-height: 1.45;
}

.admin-report-main p,
.admin-suggestion p {
  margin: 8px 0 0;
  color: #333d4b;
  font-size: 14px;
  line-height: 1.65;
  word-break: keep-all;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
  color: #8b95a1;
  font-size: 12px;
}

.admin-meta a {
  color: var(--brand-from);
  text-decoration: none;
  font-weight: 750;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2f4f6;
  color: #4e5968;
  font-size: 12px;
  font-weight: 850;
}

.admin-pill.status-open { background: #fff4e5; color: #b95000; }
.admin-pill.status-reviewing { background: #e8f3ff; color: #0064ff; }
.admin-pill.status-resolved { background: #eafaf2; color: #008a52; }
.admin-pill.status-rejected { background: #fff0f1; color: #d22030; }

.admin-report-actions {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-report-actions button,
.table-save {
  min-height: 38px;
  padding: 0 13px;
  font-size: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #6b7684;
  font-size: 13px;
  font-weight: 850;
}

.admin-table td strong {
  display: block;
  color: #191f28;
  line-height: 1.35;
}

.admin-table td span {
  display: block;
  margin-top: 3px;
  color: #8b95a1;
  font-size: 12px;
}

.ticket-input {
  width: 96px;
  padding: 9px 10px;
}

.admin-empty,
.admin-empty-cell {
  padding: 26px 10px;
  color: #8b95a1;
  text-align: center;
}

/* Admin console layout */
.admin-console-body {
  background: #f5f5f5;
}

.admin-console-top {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e5e8eb;
}

.admin-console-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #3867f4;
  text-decoration: none;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-console-brand img {
  width: 34px;
  height: 34px;
}

.admin-console-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.admin-nav-item,
.admin-nav-link {
  border: 0;
  background: transparent;
  color: #111827;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.admin-nav-item.is-active {
  color: #3867f4;
}

.admin-console {
  width: 100%;
  margin: 0;
  padding: 38px 24px 72px;
}

.admin-console-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.admin-console-title-row h1 {
  margin: 0;
  color: #191f28;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.admin-console-title-row p {
  margin: 8px 0 0;
  color: #6b7684;
  font-size: 15px;
}

.admin-refresh-inline {
  height: 44px;
  margin: 0;
  flex: 0 0 auto;
}

.admin-console-status {
  margin: 0 0 16px;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
}

.admin-search-card,
.admin-result-card {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 16px;
}

.admin-search-card {
  padding: 24px;
  margin-bottom: 24px;
}

.admin-result-card {
  padding: 24px;
}

.admin-field {
  margin-bottom: 22px;
}

.admin-field label {
  display: block;
  margin-bottom: 10px;
  color: #191f28;
  font-size: 20px;
  font-weight: 850;
}

.admin-field input,
.admin-field select {
  width: 100%;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #f7f7f8;
  color: #191f28;
  padding: 0 22px;
  font-size: 20px;
  outline: none;
}

.admin-field input::placeholder {
  color: #8b95a1;
}

.admin-field input:focus,
.admin-field select:focus {
  border-color: #3867f4;
  background: #fff;
}

.admin-field p {
  margin: 10px 0 0;
  color: #191f28;
  font-size: 16px;
  font-weight: 650;
}

.admin-search-button {
  width: 100%;
  height: 66px;
  border: 0;
  border-radius: 18px;
  background: #3867f4;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-section-head h2 {
  margin: 0;
  color: #191f28;
  font-size: 24px;
  font-weight: 900;
}

.admin-section-head p {
  margin: 7px 0 0;
  color: #6b7684;
  font-size: 15px;
}

.admin-section-head span {
  color: #3867f4;
  font-size: 17px;
  font-weight: 850;
}

.admin-section-head select {
  height: 44px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
}

.admin-console .admin-table th,
.admin-console .admin-table td {
  padding: 16px 12px;
}

.admin-console .admin-table th {
  color: #6b7684;
  font-size: 14px;
}

.admin-console .admin-table td {
  color: #333d4b;
  font-size: 15px;
}

.admin-console .ticket-input {
  width: 118px;
  height: 42px;
  border-radius: 10px;
  background: #f7f7f8;
}

@media (max-width: 980px) {
  .admin-console-top {
    align-items: flex-start;
    height: auto;
    min-height: 78px;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .admin-console-nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 4px;
  }

  .admin-nav-item,
  .admin-nav-link {
    font-size: 17px;
  }
}

@media (max-width: 700px) {
  .admin-console {
    padding: 24px 14px 56px;
  }

  .admin-console-brand {
    font-size: 28px;
  }

  .admin-console-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-search-card,
  .admin-result-card {
    border-radius: 12px;
    padding: 18px;
  }

  .admin-field label,
  .admin-field input,
  .admin-field select,
  .admin-search-button {
    font-size: 17px;
  }
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 920px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
  }

  .landing-preview {
    max-width: 520px;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    max-height: 45vh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  /* 모바일 헤더: 브랜드 + 우측 auth 한 줄 */
  .brand {
    padding: 11px 16px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .brand-logo { width: 112px; height: 30px; }

  .brand h1   { font-size: 17px; }
  .brand p    { display: none; }   /* 부제 숨김 */

  .brand-right { gap: 6px; }

  .main-nav {
    padding: 0 16px;
    overflow-x: auto;
  }

  .ticket-badge {
    flex: 0 0 auto;
  }

  .status { display: none; }       /* DB 상태 배지 모바일 숨김 */

  .auth-link {
    font-size: 12px;
    padding: 4px 10px;
  }

  .avatar-btn { width: 34px; height: 34px; }

  .chart-area { padding: 18px; }

  .chart-wrap {
    height: 430px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .admin-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .landing-nav {
    width: min(100% - 28px, 1120px);
  }

  .landing-hero,
  .landing-section {
    width: min(100% - 28px, 1120px);
  }

  .landing-copy h1 {
    font-size: 40px;
  }

  .landing-sub {
    font-size: 17px;
  }

  .landing-actions {
    flex-direction: column;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .discount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-search {
    grid-template-columns: 1fr;
  }

  .deal-search button {
    width: 100%;
  }

  .admin-top {
    padding: 13px 16px;
  }

  .admin-page {
    width: min(100% - 28px, 1120px);
    padding-top: 18px;
  }

  .admin-hero {
    padding-top: 18px;
  }

  .admin-key-row,
  .admin-report {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-panel-head {
    flex-direction: column;
  }

  .admin-panel select {
    width: 100%;
  }

  .admin-home {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .discount-grid {
    grid-template-columns: 1fr;
  }
}
