html {
  background: #ffffff;
}

: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: Pretendard, "Pretendard Variable", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, 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);
  word-break: keep-all;
  overflow-wrap: break-word;
}
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;
}

.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-message {
  margin: 0 0 10px;
  color: #167a3f;
  font-size: 13px;
  font-weight: 700;
}

.auth-message a {
  color: var(--brand-mid);
  text-decoration: none;
}

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

.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--sub { margin-top: 8px; }
.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;
  }
}

/* Link hub */
.linkhub-body {
  min-height: 100vh;
  background: #ffffff;
  color: #111827;
}

.linkhub-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.linkhub-header {
  width: min(100% - 32px, 1500px);
  margin: 0 auto;
  padding: 14px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.linkhub-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3867f4;
  text-decoration: none;
}
.linkhub-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex-shrink: 0;
}

.linkhub-brand-name {
  display: block;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.linkhub-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
  font-size: 15px;
  font-weight: 750;
}

.linkhub-account a {
  color: #344054;
  text-decoration: none;
}

.linkhub-account a:hover {
  color: #3867f4;
}

.linkhub-page {
  width: min(100% - 32px, 1500px);
  margin: 0 auto;
  padding: 10px 0 40px;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a3fa8 0%, #2563eb 60%, #3b82f6 100%);
  padding: 44px 0 36px;
}

.hero-inner {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.hero-left {
  flex: 1;
  min-width: 0;
}
.hero-visual {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.hero-gom {
  width: 235px;
  height: auto;
  display: block;
  transform: translateY(40px);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.18));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.hero-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: normal;
  color: #fde047;
}

.hero-sub {
  margin: 0 0 32px;
  color: #bfdbfe;
  font-size: 14px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 16px 24px;
  width: fit-content;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 24px;
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat-value {
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.hero-stat-unit {
  font-size: 14px;
  font-weight: 700;
}

.hero-stat-highlight {
  font-size: 20px;
  font-weight: 900;
  color: #facc15;
}

.hero-stat-label {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
}

/* ── My cashback banner ───────────────────────────────── */
.my-cashback-banner {
  background: linear-gradient(135deg, #1e40af 0%, #3867f4 100%);
  padding: 0 16px;
}

.my-cashback-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.my-cashback-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.my-cashback-emoji {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.my-cashback-label {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.my-cashback-amount {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.my-cashback-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.my-cashback-grade {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

.my-cashback-cta {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 5px 12px;
  transition: background 0.15s;
  white-space: nowrap;
}

.my-cashback-cta:hover {
  background: rgba(255,255,255,0.28);
}

/* ── Tab hero (계산기 등 탭 전용 타이틀 섹션) ─────────── */
.tab-hero {
  background: linear-gradient(135deg, #1a3fa8 0%, #2563eb 60%, #3b82f6 100%);
  padding: 44px 0 36px;
}

.tab-hero--calc {
  background: linear-gradient(135deg, #14532d 0%, #166534 55%, #15803d 100%);
  overflow: hidden;
  position: relative;
  padding: 44px 0 0;
}

.tab-hero-row {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.tab-hero--calc .tab-hero-inner {
  flex: 1;
  min-width: 0;
  width: auto;
  margin: 0;
  padding-bottom: 36px;
}

.tab-hero-img {
  width: 235px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
  flex-shrink: 0;
  transform: translateY(36px);
  pointer-events: none;
  display: block;
}

.tab-hero--roulette {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 55%, #7c3aed 100%);
}

.tab-hero--store {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 55%, #ea580c 100%);
}

.tab-hero-inner {
  width: min(100% - 48px, 960px);
  margin: 0 auto;
}

.tab-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 650;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.tab-hero-kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

.tab-hero-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.tab-hero-title em {
  font-style: normal;
  color: #fde047;
}

.tab-hero-sub {
  margin: 0;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

/* ── Page inner ─────────────────────────────────────── */
.page-inner {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* ── Quick actions ──────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 86px;
  padding: 14px 8px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-btn:hover {
  border-color: #c7d7fd;
  box-shadow: 0 2px 12px rgba(56,103,244,0.08);
}

.quick-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0f4ff;
  border-radius: 10px;
  color: #3867f4;
}

.quick-btn-label {
  font-size: 12px;
  font-weight: 650;
  color: #344054;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
}

.support-faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.support-faq-modal {
  width: min(560px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.24);
}

.support-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.support-faq-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.support-faq-close {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe1ea;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.support-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.support-faq-list details {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px 14px;
}

.support-faq-list summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.support-faq-list p {
  margin: 10px 0 2px;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.support-kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  background: #fee500;
  color: #191919;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
}

/* ── Shop section ───────────────────────────────────── */
.shop-section {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  overflow: hidden;
}

.shop-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 0;
}

.shop-section-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-section-head-left span:first-child {
  font-size: 18px;
}

.shop-section-head-left h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.shop-section-meta {
  font-size: 12px;
  color: #98a2b3;
  font-weight: 600;
}

.linkhub-kicker {
  margin: 0 0 6px;
  color: #3867f4;
  font-size: 13px;
  font-weight: 750;
}

.linkhub-intro h1 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.linkhub-intro p:last-child {
  margin: 16px 0 0;
  color: #667085;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
}

/* ── Shop search ────────────────────────────────────── */
.shop-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 0 12px;
  background: #f7f8fa;
  border: 1.5px solid #eef0f3;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.shop-search-wrap:focus-within {
  border-color: #3867f4;
  box-shadow: 0 0 0 3px rgba(56, 103, 244, 0.1);
  background: #ffffff;
}

.shop-search-icon {
  flex-shrink: 0;
  color: #98a2b3;
}

.shop-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0;
  font-size: 14px;
  color: #191f28;
  outline: none;
}

.shop-search-input::placeholder {
  color: #b0b8c8;
}

.shop-search-input::-webkit-search-cancel-button {
  display: none;
}

.shop-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #d0d5dd;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s;
}

.shop-search-clear:hover {
  background: #98a2b3;
}

.shop-favorites {
  margin: 12px 16px 0;
  padding: 12px;
  border: 1px solid #e8efff;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.shop-favorites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.shop-favorites-title {
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.shop-favorites-count {
  flex-shrink: 0;
  color: #3867f4;
  font-size: 12px;
  font-weight: 750;
}

.shop-favorites-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shop-favorites-track::-webkit-scrollbar {
  display: none;
}

.shop-favorite-card {
  flex: 0 0 176px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf2ff;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(56, 103, 244, 0.07);
}

.shop-favorite-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
}

.shop-favorite-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.shop-favorite-name {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-favorite-reward {
  color: #3867f4;
  font-size: 12px;
  font-weight: 800;
}

.shop-favorites-empty {
  padding: 2px 0 4px;
  color: #7b8494;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
}

.shop-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 16px 12px;
  border-bottom: 1px solid #f2f4f6;
  scrollbar-width: none;
}

.shop-tabs::-webkit-scrollbar { display: none; }

.shop-tab {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.shop-tab:hover {
  border-color: #3867f4;
  color: #3867f4;
  background: #f9fafb;
}

.shop-tab.is-active {
  border-color: #3867f4;
  background: #f4f7ff;
  color: #3867f4;
}

/* ── Shop list rows ─────────────────────────────────── */
.shop-list {
  display: flex;
  flex-direction: column;
  max-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.shop-list::-webkit-scrollbar {
  width: 4px;
}

.shop-list::-webkit-scrollbar-track {
  background: transparent;
}

.shop-list::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 4px;
}

.shop-list::-webkit-scrollbar-thumb:hover {
  background: #98a2b3;
}

.shop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #111827;
  border-bottom: 1px solid #f2f4f6;
  transition: background 0.12s;
}

.shop-row:last-child {
  border-bottom: none;
}

.shop-row:hover {
  background: #f8faff;
}

.shop-row-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.shop-row-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f4f5f8;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
}

.shop-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shop-row-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.shop-row-note {
  font-size: 12px;
  color: #98a2b3;
}

.shop-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.shop-row-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.shop-row-badge b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffd84d;
  color: #92400e;
  font-size: 9px;
  font-weight: 900;
}

.shop-row-arrow {
  color: #d0d5dd;
}

.shop-row-arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #d0d5dd;
  text-decoration: none;
}

.shop-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  background: #ffffff;
  color: #3867f4;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.shop-subscribe-btn:hover,
.shop-subscribe-btn.is-active {
  border-color: #3867f4;
  background: #3867f4;
  color: #ffffff;
}

.shop-subscribe-btn svg {
  flex-shrink: 0;
}

/* ── Logo tone colors ────────────────────────────────── */
.shop-logo-coupang { background: #eef2ff; color: #233b68; }
.shop-logo-gmarket { background: #f0fdf4; color: #185abc; }
.shop-logo-auction { background: #fff1f2; color: #d63b42; }
.shop-logo-emart   { background: #f9fafb; color: #374151; }
.shop-logo-ali     { background: #fff1f2; color: #e62e55; }
.shop-logo-temu    { background: #fff7ed; color: #c2410c; }
.shop-logo-trip    { background: #eff6ff; color: #0c6bf5; }
.shop-logo-mall    { background: #f0f4ff; color: #3b4fc4; }
.shop-logo-travel  { background: #ecfeff; color: #0e7490; }
.shop-logo-fashion { background: #fdf4ff; color: #7c3aed; }
.shop-logo-digital { background: #f1f5f9; color: #334155; }
.shop-logo-food      { background: #f0fdf4; color: #166534; }
.shop-logo-megacoffee { background: #fff7ed; color: #b45309; }
.shop-logo-naverpay   { background: #e6f9f0; color: #03c75a; }
.shop-logo-books   { background: #fffbeb; color: #92400e; }
.shop-logo-beauty     { background: #fff0f6; color: #9d174d; }
.shop-logo-oliveyoung { background: #f0fdf4; color: #166534; }
.shop-logo-kids    { background: #fff7ed; color: #c2410c; }
.shop-logo-etc     { background: #f9fafb; color: #6b7280; }

.shop-empty {
  padding: 40px 20px;
  text-align: center;
  color: #98a2b3;
  font-size: 14px;
  font-weight: 600;
}

/* ── Hamburger button ───────────────────────────────── */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 5px 7px;
  background: none;
  border: 1.5px solid #e4e7ec;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  background: #344054;
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}

.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Side menu overlay ──────────────────────────────── */
.side-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 200;
}
.side-menu-overlay.is-visible {
  display: block;
}

/* ── Side menu panel ────────────────────────────────── */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #f7f8fa;
  z-index: 201;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.side-menu[hidden] { display: none !important; }

/* Profile header */
.sm-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  background: #ffffff;
  border-bottom: 1px solid #f2f4f6;
  flex-shrink: 0;
}

.sm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef2ff;
  color: #3867f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sm-profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sm-profile-email {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-profile-sub {
  font-size: 11px;
  color: #98a2b3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f4f6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  flex-shrink: 0;
}

.sm-close:hover { background: #e4e7ec; }

/* Cashback card */
.sm-cashback-card {
  margin: 8px 10px 4px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #eef0f3;
  flex-shrink: 0;
}

.sm-cashback-label {
  margin: 0 0 2px;
  font-size: 11px;
  color: #98a2b3;
  font-weight: 600;
}

.sm-cashback-amount {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

.sm-cashback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sm-cashback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: #f2f4f6;
  color: #344054;
  transition: background 0.15s;
}

.sm-cashback-btn:hover { background: #e4e7ec; }

.sm-cashback-btn--primary {
  background: #3867f4;
  color: #ffffff;
}

.sm-cashback-btn--primary:hover { background: #2550d4; }

/* Sections */
.sm-section {
  margin: 6px 10px 0;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef0f3;
  flex-shrink: 0;
}

.sm-section-label {
  display: block;
  padding: 8px 14px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #98a2b3;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-bottom: 1px solid #f2f4f6;
}

.sm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: none;
  border-bottom: 1px solid #f7f8fa;
  text-align: left;
  text-decoration: none;
  color: #111827;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.12s;
}

.sm-item:last-child { border-bottom: none; }
.sm-item:hover { background: #f8faff; }

.sm-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #f2f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #344054;
  flex-shrink: 0;
}

.sm-item-label {
  flex: 1;
}

.sm-item-arrow {
  color: #c8cdd5;
  flex-shrink: 0;
}

/* Grade badge */
.sm-profile-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.sm-grade-badge {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Cashback card top row */
.sm-cashback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sm-cashback-month {
  font-size: 11px;
  font-weight: 600;
  color: #00a661;
}

.sm-cashback-greeting {
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

/* Quick action buttons */
.sm-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 10px 0;
  flex-shrink: 0;
}

.sm-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #344054;
  transition: background 0.12s, border-color 0.12s;
}

.sm-quick-btn:hover {
  background: #f0f4ff;
  border-color: #c7d4fd;
}

.sm-quick-icon {
  font-size: 18px;
  line-height: 1;
}

/* Side menu footer */
.sm-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px 16px;
  margin-top: auto;
  font-size: 10px;
  color: #c8cdd5;
  flex-shrink: 0;
}

/* ── Header action buttons ──────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.header-btn--ghost {
  background: none;
  border: 1.5px solid #d0d5dd;
  color: #344054;
}

.header-btn--ghost:hover {
  border-color: #3867f4;
  color: #3867f4;
}

.header-btn--primary {
  background: #3867f4;
  border: 1.5px solid #3867f4;
  color: #ffffff;
}

.header-btn--primary:hover {
  background: #2550d4;
}

@media (max-width: 640px) {
  .header-btn--primary { display: none; }
  .header-btn { padding: 6px 12px; font-size: 12px; }
}

/* ── Header center nav ──────────────────────────────── */
.header-nav {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-nav-btn {
  padding: 6px 14px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: none;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.header-nav-btn.is-active {
  background: #f0f4ff;
  color: #3867f4;
  border-color: #c7d7fd;
  font-weight: 750;
}

.header-nav-btn:not(.is-active):hover {
  color: #3867f4;
  background: #f8f9fc;
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
}

/* ── Cashback calculator ─────────────────────────────── */
.calc-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0 40px;
}

.calc-card {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 28px 32px 36px;
  width: 100%;
  max-width: 640px;
}

/* ── Progress dots ── */
.calc-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.calc-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4e7ec;
  transition: background 0.3s;
  flex-shrink: 0;
}

.calc-progress-dot.is-active {
  background: #3867f4;
}

.calc-progress-line {
  flex: 1;
  height: 2px;
  background: #e4e7ec;
  margin: 0 6px;
  border-radius: 2px;
}

/* ── Viewport / step slide ── */
.calc-viewport {
  position: relative;
  overflow: hidden;
  transition: height 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.calc-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.calc-step.is-active {
  position: relative;
  transform: translateX(0);
}

.calc-step.is-visible {
  position: absolute;
}

/* ── Back button ── */
.calc-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #667085;
  padding: 0 0 16px;
  transition: color 0.15s;
}

.calc-back:hover {
  color: #3867f4;
}

/* ── Step titles ── */
.calc-step-title {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
  color: #191f28;
}

/* ── Category grid ── */
.calc-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.calc-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 16px 10px;
  background: #f9fafb;
  border: 1.5px solid #eef0f3;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.calc-cat-btn:hover {
  border-color: #3867f4;
  background: #f0f4ff;
  box-shadow: 0 0 0 3px rgba(56, 103, 244, 0.1);
}

.calc-cat-icon {
  font-size: 22px;
  line-height: 1;
}

.calc-cat-label {
  font-size: 12px;
  font-weight: 700;
  color: #344054;
  text-align: center;
  word-break: keep-all;
}

.calc-cat-count {
  font-size: 11px;
  color: #98a2b3;
  font-weight: 500;
}

/* ── Shop grid ── */
.calc-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-shop-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.calc-shop-btn:hover {
  border-color: #3867f4;
  box-shadow: 0 0 0 3px rgba(56, 103, 244, 0.1);
}

.calc-shop-btn.is-active {
  border-color: #3867f4;
  box-shadow: 0 0 0 3px rgba(56, 103, 244, 0.15);
}

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

.shop-logo-img--sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calc-shop-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 900;
}

.calc-shop-logo-wrap {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.calc-shop-rate {
  font-size: 11px;
  opacity: 0.85;
}

/* ── Selected shop badge ── */
.calc-selected-shop {
  margin-bottom: 16px;
}

.calc-selected-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* ── Amount input ── */
.calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.calc-input {
  flex: 1;
  max-width: 260px;
  padding: 12px 14px;
  border: 1.5px solid #d0d5dd;
  border-radius: 10px;
  font-size: 16px;
  color: #191f28;
  outline: none;
  transition: border-color 0.15s;
}

.calc-input:focus {
  border-color: #3867f4;
}

.calc-input-unit {
  font-size: 15px;
  color: #667085;
}

.calc-calculate-btn {
  width: 100%;
  height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: #3867f4;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.calc-calculate-btn:hover {
  background: #2550d4;
}

/* ── Result ── */
.calc-result {
  margin-top: 24px;
  padding: 22px;
  background: #f4f7ff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-result-label {
  font-size: 14px;
  color: #667085;
  font-weight: 600;
}

.calc-result-value {
  font-size: 18px;
  font-weight: 800;
  color: #191f28;
}

.calc-result-value--big {
  font-size: 26px;
  color: #3867f4;
}

.calc-compare {
  margin: 12px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.calc-compare:empty { display: none; }
.calc-compare-label {
  padding: 8px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.3px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
}
.calc-compare-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
}
.calc-compare-item:last-child { border-bottom: none; }
.calc-compare-emoji { font-size: 16px; line-height: 1; flex-shrink: 0; }
.calc-compare-text b { color: #1d4ed8; }

.calc-cta {
  display: block;
  margin-top: 4px;
  padding: 14px;
  background: #3867f4;
  color: #ffffff;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.calc-cta:hover {
  background: #2550d4;
}

@media (max-width: 640px) {
  .calc-card {
    padding: 24px 18px 32px;
  }
  .calc-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  }
  .calc-input {
    max-width: 100%;
  }
}

/* ── Shop detail page ──────────────────────────────── */
/* ── Coming soon page ───────────────────────────────── */
.coming-soon-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 24px 56px;
}

.coming-soon-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  background: #f0f4ff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3867f4;
  margin-bottom: 24px;
}

.coming-soon-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #191f28;
}

.coming-soon-desc {
  margin: 0 0 28px;
  font-size: 14px;
  color: #667085;
  line-height: 1.7;
  word-break: keep-all;
}

.coming-soon-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.coming-soon-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.coming-soon-list li svg {
  flex-shrink: 0;
  color: #3867f4;
}

.coming-soon-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: #3867f4;
  color: #ffffff;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.15s;
}

.coming-soon-cta:hover {
  background: #2550d4;
}

@media (max-width: 640px) {
  .coming-soon-card {
    padding: 32px 20px;
  }
}

/* ── Store page ──────────────────────────────────────── */
.store-hero {
  background: linear-gradient(135deg, #1a3fa8 0%, #2563eb 60%, #3b82f6 100%);
  padding: 48px 0 0;
  overflow: hidden;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.store-hero-inner-wrap {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.store-hero-inner {
  flex: 1;
  min-width: 0;
  max-width: none;
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}

.store-hero-img {
  width: 282px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18));
  transform: translateY(39px);
  display: block;
}

.store-hero-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.store-hero-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
}

.store-hero-title em {
  font-style: normal;
  color: #ffffff;
  display: block;
}

.store-hero-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.store-hero-point-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250,204,21,0.18);
  border: 1px solid rgba(250,204,21,0.45);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #facc15;
  text-decoration: none;
}

.store-hero-point-badge--guest {
  transition: background 0.15s;
}

.store-hero-point-badge--guest:hover {
  background: rgba(250,204,21,0.28);
}

.store-page-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

/* 필터 */
.store-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.store-filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid #e4e7ec;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: #667085;
  cursor: pointer;
  transition: all 0.15s;
}

.store-filter-btn:hover {
  border-color: #3867f4;
  color: #3867f4;
}

.store-filter-btn.is-active {
  background: #3867f4;
  border-color: #3867f4;
  color: #ffffff;
}

/* 상품 그리드 */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.store-card {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.15s, transform 0.15s;
}

.store-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.store-card-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: transparent;
  padding: 0;
  z-index: 1;
}
.store-card-badge::before {
  content: "● ";
  font-size: 8px;
  vertical-align: 1px;
}

.store-card-badge--hot {
  color: #ef4444;
}

.store-card-badge--new {
  color: #10b981;
}

.store-card-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #f7f9fc;
  border-bottom: 1px solid #eef0f3;
}

.store-card-thumb--voucher {
  color: #2563eb;
}

.store-card-thumb--coffee {
  color: #b45309;
}

.store-card-thumb--coupon {
  color: #7c3aed;
}

.store-card-thumb--img {
  background: #f9fafb;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.store-card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-body {
  padding: 10px 12px 12px;
}
@media (min-width: 640px) {
  .store-card-body {
    padding: 14px 16px 16px;
  }
}

.store-card-category {
  font-size: 11px;
  font-weight: 700;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.store-card-name {
  margin: 4px 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}

.store-card-desc { display: none; }

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.store-card-price {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 6px 0 4px;
}
.store-card-price-unit {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
}

.store-card-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #3867f4;
  cursor: pointer;
  white-space: nowrap;
}

.store-card-btn:hover {
  background: #2550d4;
}

.store-card-btn--coming {
  background: #eef2ff;
  color: #3867f4;
  cursor: default;
}

.store-card-btn--buy {
  background: #3182f6;
  color: #fff;
  cursor: pointer;
}

/* 바텀시트 */
.store-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1200;
}
.store-sheet-overlay.is-visible { display: block; }

.store-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 1201;
  max-height: 90vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.store-sheet-handle {
  width: 36px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 12px auto 0;
}

.store-sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.store-sheet-img-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 20px 16px;
  background: #f8fafc;
  margin: 12px 16px 0;
  border-radius: 14px;
}
.store-sheet-img {
  width: auto;
  max-width: 100%;
  height: 140px;
  object-fit: contain;
}

.store-sheet-content {
  padding: 20px 20px 8px;
}
.store-sheet-name {
  font-size: 17px;
  font-weight: 800;
  color: #111;
  margin: 0 0 4px;
}
.store-sheet-price-line {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 20px;
}
.store-sheet-price-line strong {
  color: #3182f6;
  font-weight: 700;
}
.store-sheet-section {
  border-top: 1px solid #f1f5f9;
  padding: 16px 0;
}
.store-sheet-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 8px;
}
.store-sheet-section-body {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  white-space: pre-line;
}

.store-sheet-footer {
  padding: 12px 20px 20px;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}
.store-sheet-buy-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.store-sheet-buy-btn--active {
  background: #3182f6;
  color: #fff;
}
.store-sheet-buy-btn--disabled,
.store-sheet-buy-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: default;
}

/* 안내 박스 */
.store-info-box {
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 20px 22px;
}

.store-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #344054;
}

.store-info-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-info-list li {
  font-size: 13px;
  color: #667085;
  line-height: 1.5;
}

@media (max-width: 480px) {
  .store-hero-title {
    font-size: 26px;
  }
  .store-hero { padding: 28px 0 0; }
  .store-hero-inner-wrap { width: 100%; padding: 0 20px; margin: 0; gap: 0; }
  .store-hero-inner { padding-bottom: 28px; }
  .store-hero-img { width: 204px; transform: translate(2px, -3px); filter: drop-shadow(0 6px 16px rgba(0,0,0,.22)); }
}

.shop-detail-page {
  max-width: 860px;
}

.shop-detail-back a {
  color: #667085;
  text-decoration: none;
  font-size: 14px;
}

.shop-detail-back a:hover {
  color: #3867f4;
}

.shop-detail-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.shop-detail-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-detail-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-detail-thumb-mark {
  font-size: 14px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
}

.shop-detail-hero-info {
  flex: 1;
  min-width: 0;
}

.shop-detail-hero-info h1 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #191f28;
}

.shop-detail-commission {
  margin: 0;
  font-size: 14px;
  color: #667085;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-detail-commission b {
  color: #111827;
  font-weight: 800;
}

.commission-c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #facc15;
  color: #7c4a03;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
  line-height: 1;
}

/* 적립 방법 플로우 */
.shop-flow {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 12px;
}
.shop-flow-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: #191f28;
}
.shop-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.shop-flow-step {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.shop-flow-step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #eff5ff;
  color: #2c5cf6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-flow-step-label {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
}
.shop-flow-step-desc {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}
.shop-flow-step-arrow {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 22px;
  font-weight: 700;
  line-height: 44px;
  align-self: flex-start;
}

.shop-detail-goto {
  display: inline-block;
  padding: 9px 16px;
  background: #3867f4;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.shop-detail-goto:hover {
  background: #2550d4;
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.shop-detail-section {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px 18px 22px;
}

.shop-detail-section h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #191f28;
}

.shop-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-detail-list li {
  font-size: 14px;
  line-height: 1.5;
  color: #344054;
  padding-left: 20px;
  position: relative;
  word-break: keep-all;
}

.shop-detail-list--exclude li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #f04452;
  font-size: 11px;
  top: 2px;
}

.shop-detail-list--note li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: #f59e0b;
  font-weight: 900;
  font-size: 13px;
  top: 1px;
}

@media (max-width: 640px) {
  .shop-detail-grid {
    grid-template-columns: 1fr;
  }

  .shop-detail-hero {
    padding: 20px 18px;
  }

  .shop-detail-goto {
    width: 100%;
    text-align: center;
  }
}

.linkhub-footer {
  background: #ffffff;
  border-top: 1px solid #eef0f3;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #98a2b3;
  font-size: 12px;
}

.linkhub-footer-biz {
  color: #98a2b3;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 8px;
}
.linkhub-footer-biz span { white-space: nowrap; }

.linkhub-footer-links {
  display: flex;
  gap: 14px;
}

.linkhub-footer span {
  color: #475467;
  font-weight: 850;
}

.linkhub-footer a {
  color: #667085;
  text-decoration: none;
}

.linkhub-footer a:hover {
  color: #3867f4;
}
.linkhub-footer-brand { display: flex; align-items: center; gap: 6px; }
.linkhub-footer-brand img { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Check-in bar ──────────────────────────────────────────── */
.checkin-bar {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
}
.checkin-bar-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.checkin-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkin-bar-icon {
  color: #3867f4;
  display: flex;
  align-items: center;
}
.checkin-bar-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.checkin-bar-sub {
  font-size: 12px;
  color: #6b7280;
  margin: 2px 0 0;
}
.checkin-bar-btn {
  background: #3867f4;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.checkin-bar-btn:hover:not(:disabled) { background: #2451d1; }
.checkin-bar-btn.is-done,
.checkin-bar-btn:disabled {
  background: #d1fae5;
  color: #065f46;
  cursor: default;
}

/* ── Toast notification ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111827;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Invite page ────────────────────────────────────────────── */
.invite-hero {
  background: linear-gradient(135deg, #3867f4 0%, #6b48ff 100%);
  padding: 48px 24px 40px;
  text-align: center;
  color: #fff;
}
.invite-hero-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}
.invite-hero-sub {
  font-size: 15px;
  opacity: 0.85;
  margin: 0;
}
.invite-page-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.invite-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.invite-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}
.invite-link-box {
  display: flex;
  gap: 8px;
  align-items: center;
}
.invite-link-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  outline: none;
}
.invite-copy-btn {
  background: #3867f4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.invite-copy-btn:hover { background: #2451d1; }
.invite-stats-row {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.invite-stat {
  flex: 1;
  background: #f0f4ff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.invite-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #3867f4;
  display: block;
}
.invite-stat-label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.invite-reward-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.invite-reward-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #374151;
}
.invite-reward-list li:last-child { border-bottom: none; }
.invite-reward-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* ── My Purchases page ─────────────────────────────────────── */
.purchases-hero {
  background: #f8faff;
  border-bottom: 1px solid #e5e7eb;
  padding: 40px 24px 32px;
  text-align: center;
}
.purchases-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}
.purchases-hero-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.purchases-page-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.purchase-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}
.purchase-form-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 18px;
}
.purchase-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.purchase-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.purchase-form-group.full { grid-column: 1 / -1; }
.purchase-form label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.purchase-form input,
.purchase-form select {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
}
.purchase-form input:focus,
.purchase-form select:focus { border-color: #3867f4; }
.purchase-form-submit {
  margin-top: 16px;
  width: 100%;
  background: #3867f4;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.purchase-form-submit:hover { background: #2451d1; }
.purchase-list-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}
.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.purchase-list-empty {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 14px;
}
.purchase-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.purchase-item-info { flex: 1; min-width: 0; }
.purchase-item-shop {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.purchase-item-order {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}
.purchase-item-right { text-align: right; flex-shrink: 0; }
.purchase-item-amount {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.purchase-item-cashback {
  font-size: 12px;
  color: #3867f4;
  margin-top: 2px;
}
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}
.status-badge--pending  { background: #fef3c7; color: #92400e; }
.status-badge--approved { background: #d1fae5; color: #065f46; }
.status-badge--rejected { background: #fee2e2; color: #991b1b; }

@media (max-width: 640px) {
  .purchase-form-grid { grid-template-columns: 1fr; }
  .purchase-form-group.full { grid-column: 1; }
}

/* ── Invite / Purchases shared login prompt ───────────── */
.invite-login-prompt,
.purchases-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 24px;
  text-align: center;
  color: #98a2b3;
  font-size: 14px;
}
.invite-login-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 10px;
  background: #3867f4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.invite-login-btn:hover { background: #2451d1; }

/* Invite link card */
.invite-link-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
}


.invite-link-gom {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 74px;
  height: auto;
  opacity: 0.2;
  pointer-events: none;
}
.invite-link-label {
  font-size: 11px;
  font-weight: 700;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
}
.invite-link-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 10px 14px;
}
.invite-link-url {
  flex: 1;
  font-size: 13px;
  color: #344054;
  word-break: break-all;
  min-width: 0;
}

.invite-copy-success {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #3867f4;
}
.invite-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.invite-cta-btn {
  min-height: 42px;
  border: 1px solid #3867f4;
  background: #3867f4;
  color: #fff;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.invite-cta-btn--ghost { background: #fff; color: #3867f4; }
.invite-cta-btn--kakao { background: #fee500; border-color: #fee500; color: #111827; }
.invite-cta-btn--ticket { background: #111827; border-color: #111827; }
.invite-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.45);
  display: flex; align-items: center; justify-content: center; z-index: 1200;
}
.invite-modal-card {
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #eef0f3;
}
.invite-modal-card h3 { margin: 0 0 10px; font-size: 16px; }
.invite-modal-card p { margin: 0 0 16px; color: #475467; font-size: 14px; line-height: 1.5; }

/* Invite stats */
.invite-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.invite-stat-card {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.invite-stat-value { font-size: 28px; font-weight: 900; color: #3867f4; line-height: 1; }
.invite-stat-label { font-size: 12px; color: #98a2b3; font-weight: 600; }

/* Invite reward steps */
.invite-reward-card {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 20px 22px;
}
.invite-reward-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #344054;
  margin: 0 0 16px;
}
.invite-reward-list { list-style: none; padding: 0; margin: 0; }
.invite-reward-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f6;
}
.invite-reward-list li:last-child { border-bottom: none; }
.invite-reward-list li p { margin: 2px 0 0; font-size: 13px; color: #98a2b3; }
.invite-reward-list li strong { font-size: 14px; color: #111827; }
.invite-reward-step {
  width: 26px; height: 26px; border-radius: 50%;
  background: #eef2ff; color: #3867f4;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Purchase form (my_purchases.html) */
.purchase-form-card {
  background: #ffffff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
}
.purchase-form-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: #111827; margin: 0 0 18px;
}
.purchase-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.purchase-form-field { display: flex; flex-direction: column; gap: 6px; }
.purchase-form-label { font-size: 12px; font-weight: 700; color: #667085; }
.purchase-form-input {
  height: 42px; border: 1.5px solid #e4e7ec; border-radius: 10px;
  padding: 0 12px; font-size: 14px; color: #111827; outline: none; transition: border-color 0.15s;
}
.purchase-form-input:focus { border-color: #3867f4; }
.purchase-form-preview { font-size: 13px; color: #667085; margin-bottom: 14px; }
.purchase-form-preview strong { color: #3867f4; font-weight: 800; }
.purchase-form-error { font-size: 13px; color: #dc2626; margin-bottom: 10px; }
.purchase-submit-btn {
  width: 100%; height: 46px; background: #3867f4; color: #ffffff;
  border: none; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.purchase-submit-btn:hover:not(:disabled) { background: #2451d1; }
.purchase-submit-btn:disabled { opacity: 0.6; cursor: default; }

/* Purchase list (my_purchases.html) */
.purchase-list-title { font-size: 16px; font-weight: 800; color: #111827; margin: 0 0 14px; }
.purchase-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 48px 24px; color: #98a2b3; font-size: 14px;
  background: #f7f8fa; border-radius: 14px; text-align: center;
}
.purchase-row {
  background: #ffffff; border: 1px solid #eef0f3;
  border-radius: 14px; padding: 16px 18px; margin-bottom: 10px;
}
.purchase-row-main {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.purchase-row-shop { font-size: 15px; font-weight: 700; color: #111827; }
.purchase-row-order { font-size: 12px; color: #98a2b3; }
.purchase-row-sub { display: flex; gap: 12px; font-size: 12px; color: #667085; flex-wrap: wrap; }
.purchase-row-cashback { color: #00a661; font-weight: 700; }
.purchase-row-date { color: #c8cdd5; }
.purchase-row-note {
  margin-top: 8px; font-size: 12px; color: #f04452;
  background: #fff5f5; border-radius: 6px; padding: 6px 10px;
}

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

@media (max-width: 640px) {
  .linkhub-header { width: min(100% - 24px, 1500px); }
  .linkhub-page   { width: min(100% - 24px, 1500px); }
  .page-inner     { width: min(100% - 24px, 960px); }

  .hero { padding: 28px 0 0; overflow: hidden; }
  .hero-inner { width: 100%; padding: 0 20px; margin: 0; align-items: flex-end; gap: 0; }
  .hero-left { flex: 1; min-width: 0; padding-bottom: 28px; }
  .hero-kicker { font-size: 10px; margin-bottom: 8px; padding: 3px 10px; }
  .hero-title { font-size: 20px; line-height: 1.25; margin: 0 0 6px; white-space: nowrap; }
  .hero-sub { font-size: 13px; margin: 0 0 14px; }
  .hero-stats {
    padding: 10px 14px;
    gap: 0;
    border-radius: 12px;
    width: auto;
    display: inline-flex;
  }
  .hero-stat { padding: 0 10px; }
  .hero-stat:first-child { padding-left: 0; }
  .hero-stat-value { font-size: 15px; }
  .hero-stat-unit { font-size: 12px; }
  .hero-stat-highlight { font-size: 15px; }
  .hero-stat-label { font-size: 10px; }
  .hero-stat-divider { height: 24px; }
  .hero-visual { display: flex; align-items: flex-end; flex-shrink: 0; }
  .hero-gom { width: 170px; transform: translate(2px, -2px); filter: drop-shadow(0 6px 16px rgba(0,0,0,.22)); }

  /* Search/tab touch target */
  .shop-search-input { padding: 14px 0; font-size: 15px; }
  .shop-favorites { margin: 10px 12px 0; padding: 10px; }
  .shop-favorites-head { margin-bottom: 8px; }
  .shop-favorite-card { flex-basis: 150px; padding: 9px; }
  .shop-favorite-logo { width: 34px; height: 34px; }
  .shop-tab { min-height: 38px; padding: 0 16px; font-size: 13px; display: inline-flex; align-items: center; }
  .shop-tabs { gap: 8px; padding: 12px 16px; }

  .tab-hero { padding: 28px 0 24px; }
  .tab-hero--calc { padding: 28px 0 0; }
  .tab-hero-row { width: 100%; padding: 0 20px; margin: 0; gap: 0; }
  .tab-hero--calc .tab-hero-inner { padding-bottom: 28px; }
  .tab-hero-inner { width: min(100% - 24px, 960px); }
  .tab-hero-title { font-size: 26px; }
  .tab-hero-img { width: 170px; transform: translate(2px, -2px); filter: drop-shadow(0 6px 16px rgba(0,0,0,.22)); }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .quick-btn {
    min-height: 72px;
    padding: 10px 4px;
  }
  .quick-btn-label { font-size: 11px; }
  .shop-row { padding: 12px; gap: 8px; }
  .shop-row-main { gap: 10px; }
  .shop-row-logo { width: 42px; height: 42px; border-radius: 10px; }
  .shop-row-note { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .shop-row-right { gap: 6px; }
  .shop-row-badge { padding: 4px 8px; font-size: 12px; }
  .shop-subscribe-btn { width: 30px; min-height: 30px; padding: 0; }
  .shop-subscribe-btn span { display: none; }
  .shop-row-arrow-link { display: none; }
}

/* ── Roulette page ─────────────────────────────────────── */
.roulette-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.roulette-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 440px);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid #dbe7ff;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(49, 130, 246, 0.16), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f5f9ff 52%, #edf4ff 100%);
  box-shadow: 0 20px 60px rgba(39, 96, 196, 0.12);
  overflow: hidden;
}

.roulette-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 130, 246, 0.14) 0%, rgba(49, 130, 246, 0) 72%);
  pointer-events: none;
}

.roulette-hero-copy,
.roulette-wheel-stage {
  position: relative;
  z-index: 1;
}

.roulette-eyebrow {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(49, 130, 246, 0.1);
  color: var(--brand-from);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.roulette-title {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 900;
  color: #0f172a;
}

.roulette-title span {
  display: block;
}

.roulette-title-indent {
  padding-left: 1.2em;
}

.roulette-subtitle {
  max-width: 420px;
  margin: 14px 0 0;
  color: #526071;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}

.roulette-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.roulette-ticket-badge,
.roulette-mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d7e4ff;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.roulette-ticket-badge {
  color: #2451d1;
  font-size: 14px;
  font-weight: 800;
}

.roulette-ticket-badge strong {
  color: #0f172a;
  font-size: 16px;
}

.roulette-mini-stat {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.roulette-mini-stat span {
  color: #7a8798;
  font-size: 11px;
  font-weight: 700;
}

.roulette-mini-stat strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.roulette-wheel-stage {
  display: grid;
  justify-items: center;
  padding: 26px 22px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, #0f172a 0%, #18253c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 50px rgba(15, 23, 42, 0.28);
}

.roulette-wheel-wrap {
  position: relative;
  width: 352px;
  height: 352px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #eff4ff 62%, #d7e4ff 100%);
  box-shadow: inset 0 10px 28px rgba(255,255,255,0.75), 0 18px 44px rgba(2, 6, 23, 0.28);
}

.roulette-wheel-wrap::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.roulette-wheel-wrap canvas {
  width: 320px;
  height: 320px;
}

.roulette-pointer {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 8px 8px 4px 8px;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  z-index: 2;
}

.roulette-spin-btn {
  width: min(100%, 280px);
  min-height: 58px;
  margin-top: 22px;
  padding: 0 28px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #3182f6, #2451d1);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(49, 130, 246, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.roulette-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(49, 130, 246, 0.35);
}

.roulette-spin-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.roulette-wheel-hint {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.64);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.roulette-guest {
  margin-top: 18px;
  text-align: center;
  padding: 24px 22px;
  background: #ffffff;
  border: 1px solid #e7edf5;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.roulette-guest p {
  margin: 0 0 14px;
  color: #526071;
  font-size: 15px;
}

.roulette-guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.roulette-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.roulette-panel {
  padding: 24px;
  border: 1px solid #e7edf5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.roulette-panel--prizes,
.roulette-info-box {
  grid-column: span 1;
}

.roulette-history-wrap {
  grid-column: span 1;
}

.roulette-panel-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.roulette-panel-head p {
  margin: 0;
  color: #7a8798;
  font-size: 13px;
  line-height: 1.45;
}

.roulette-prizes-title,
.roulette-info-box h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

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

.roulette-prize-card {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid #e7edf5;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(249,251,255,1) 100%);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.roulette-prize-card:hover {
  transform: translateY(-2px);
  border-color: #bfd6ff;
  box-shadow: 0 12px 24px rgba(49, 130, 246, 0.08);
}

.roulette-prize-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--prize-color);
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.roulette-prize-label {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

.roulette-prize-pts {
  font-size: 13px;
  font-weight: 800;
  color: #3867f4;
}

.roulette-prize-pts.is-muted,
.roulette-history-pts.is-muted {
  color: #98a2b3;
}

.roulette-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roulette-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e5edf8;
}

.roulette-history-label {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.roulette-history-pts {
  font-size: 13px;
  font-weight: 900;
  color: #2451d1;
}

.roulette-history-date {
  font-size: 12px;
  font-weight: 700;
  color: #98a2b3;
}

.roulette-info-box {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.roulette-info-box .store-info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.roulette-info-box .store-info-title svg {
  color: #3182f6;
}

.roulette-info-box ul {
  margin: 0;
  padding-left: 18px;
  color: #526071;
  font-size: 14px;
  line-height: 1.8;
}

/* Roulette result modal */
.roulette-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.roulette-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}
.roulette-modal {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  transform: scale(.85);
  transition: transform .25s;
}
.roulette-modal-overlay.is-visible .roulette-modal { transform: scale(1); }
.roulette-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  margin-bottom: 14px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eff5ff;
  color: #2451d1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.roulette-modal-title { font-size: 22px; font-weight: 800; color: #111; margin-bottom: 6px; }
.roulette-modal-sub { font-size: 15px; color: #555; margin-bottom: 24px; }
.roulette-modal-btn {
  display: inline-block;
  padding: 12px 36px;
  background: linear-gradient(135deg, #3182f6, #2451d1);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
}

@media (max-width: 920px) {
  .roulette-hero {
    grid-template-columns: 1fr;
  }

  .roulette-wheel-stage {
    width: 100%;
  }

  .roulette-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .roulette-main {
    width: min(100% - 24px, 1120px);
    padding-top: 20px;
  }

  .roulette-hero {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .roulette-title {
    font-size: 30px;
  }

  .roulette-title-indent {
    padding-left: 0.8em;
  }

  .roulette-subtitle {
    max-width: 100%;
    font-size: 14px;
  }

  .roulette-wheel-stage {
    padding: 18px 14px 20px;
    border-radius: 24px;
  }

  .roulette-wheel-wrap {
    width: 300px;
    height: 300px;
  }

  .roulette-wheel-wrap canvas {
    width: 272px;
    height: 272px;
  }

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

  .roulette-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .roulette-history-row {
    grid-template-columns: 1fr auto;
  }

  .roulette-history-date {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .roulette-wheel-wrap {
    width: 272px;
    height: 272px;
  }

  .roulette-wheel-wrap canvas {
    width: 244px;
    height: 244px;
  }
}

/* ── Bottom Navigation Bar ─────────────────────────────── */
.bottom-nav {
  display: none;
}
.bottom-nav-center-btn {
  overflow: hidden;
}
.bottom-nav-center-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hamburger-btn { display: none; }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 12px rgba(0,0,0,.07);
    z-index: 800;
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* push page content above the bar */
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-item.is-active {
    color: var(--brand-from);
  }
  .bottom-nav-item.is-active .bottom-nav-icon {
    stroke: var(--brand-from);
  }
  .bottom-nav-icon {
    width: 22px;
    height: 22px;
    stroke: #9ca3af;
    transition: stroke .15s;
  }

  /* centre roulette button — raised pill */
  .bottom-nav-item--center {
    flex: 1.2;
    position: relative;
  }
  .bottom-nav-center-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 14px rgba(102,126,234,.45);
    margin-bottom: 2px;
    margin-top: -16px;
    overflow: hidden;
  }
  .bottom-nav-center-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .bottom-nav-item--center .bottom-nav-icon {
    stroke: #fff;
    width: 22px;
    height: 22px;
  }
  .bottom-nav-item--center.is-active .bottom-nav-icon {
    stroke: #fff;
  }
  .bottom-nav-item--center span:last-child {
    color: #9ca3af;
    font-size: 10px;
  }
  .bottom-nav-item--center.is-active span:last-child {
    color: var(--brand-from);
  }
}

/* Reference-style auth pages */
.auth-page-body {
  min-height: 100vh;
  background: #ffffff;
}

.auth-site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 96px;
  padding: 0 28px;
  border-bottom: 1px solid #eceef3;
  background: #ffffff;
}

.auth-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: #3867f4;
  text-decoration: none;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: 0;
}

.auth-site-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.auth-site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 24px;
  font-weight: 850;
}

.auth-site-nav a,
.auth-site-actions a {
  color: #080c16;
  text-decoration: none;
}

.auth-site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.auth-outline-link,
.auth-solid-link,
.auth-round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
}

.auth-outline-link,
.auth-solid-link {
  padding: 0 24px;
}

.auth-outline-link {
  border: 1px solid #b7c8ff;
  background: #f3f6ff;
  color: #3867f4 !important;
}

.auth-solid-link {
  border: 1px solid #3867f4;
  background: #3867f4;
  color: #ffffff !important;
}

.auth-round-button {
  width: 58px;
  border: 1px solid #e1e3e8;
  background: #f8f8f9;
  color: #3867f4;
  cursor: pointer;
}

.auth-globe-icon::before,
.auth-menu-icon::before,
.auth-eye-icon::before {
  display: block;
  color: currentColor;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.auth-globe-icon::before { content: "◎"; }
.auth-menu-icon::before { content: "≡"; }
.auth-eye-icon::before { content: "⊙"; }

.auth-page.auth-page-wide {
  display: block;
  width: 100%;
  min-height: calc(100vh - 96px);
  margin: 0;
  padding: 50px 28px;
}

.auth-panel {
  width: min(100%, 1160px);
}

.auth-panel h1 {
  margin: 0;
  color: #080c16;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-panel > p {
  margin: 22px 0 28px;
  color: #667085;
  font-size: 26px;
}

.auth-panel .auth-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.auth-field label {
  display: block;
  margin: 10px 0 8px;
  color: #080c16;
  font-size: 21px;
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  height: 70px;
  border: 0;
  border-radius: 20px;
  padding: 0 26px;
  background: #f7f7f9;
  color: #080c16;
  font-size: 21px;
  outline: none;
}

.auth-field input::placeholder {
  color: #777c88;
}

.auth-field input:focus {
  box-shadow: 0 0 0 3px rgba(56, 103, 244, 0.18);
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 68px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #171a21;
  cursor: pointer;
}

.auth-panel .auth-submit {
  width: 100%;
  height: 70px;
  margin-top: 0;
  border: 0;
  border-radius: 20px;
  background: #3867f4;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.auth-panel .auth-error {
  min-height: 22px;
  margin: 2px 0 0;
  color: #f04452;
  font-size: 16px;
  font-weight: 800;
}

.login-links {
  margin-top: 18px;
  text-align: center;
  font-size: 24px;
}

.login-links p {
  margin: 18px 0 0;
}

.login-links a {
  color: #3867f4;
  font-weight: 900;
  text-decoration: none;
}

.admin-switch {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 34px;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
}

.admin-switch span {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d7dce6;
  transition: background 160ms ease;
}

.admin-switch span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 160ms ease;
}

.admin-switch input:checked + span {
  background: #3867f4;
}

.admin-switch input:checked + span::before {
  transform: translateX(24px);
}

@media (max-width: 860px) {
  .auth-site-header {
    grid-template-columns: 1fr auto;
  }

  .auth-site-nav,
  .auth-outline-link,
  .auth-solid-link {
    display: none;
  }

  .auth-site-brand {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .auth-site-header {
    height: 74px;
    padding: 0 18px;
  }

  .auth-site-brand {
    font-size: 24px;
  }

  .auth-site-brand img {
    width: 32px;
    height: 32px;
  }

  .auth-round-button {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .auth-page.auth-page-wide {
    min-height: calc(100vh - 74px);
    padding: 38px 18px;
  }

  .auth-panel h1 {
    font-size: 42px;
  }

  .auth-panel > p {
    font-size: 20px;
  }

  .auth-field input,
  .auth-panel .auth-submit {
    height: 64px;
  }

  .login-links {
    font-size: 20px;
  }
}

/* 리워드 요약 카드 */
.reward-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 22px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.reward-card-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}
.reward-card-amount {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.reward-card-unit {
  font-size: 18px;
  font-weight: 700;
  color: #9ca3af;
  margin-left: 6px;
}
.reward-card-sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: #9ca3af;
}
.reward-card-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2c5cf6;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.reward-card-btn:hover { background: #1e48d4; }

.reward-sub-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.reward-sub-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}
.reward-sub-amount {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}
.reward-sub-unit {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  margin-left: 4px;
}

/* 자동 캐시백 카드 */
.cashback-auto {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.cashback-auto-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cashback-auto-summary {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #6b7280;
}
.cashback-auto-summary b {
  color: #2563eb;
  font-weight: 700;
  margin-left: 4px;
}
.cashback-auto-hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: #9ca3af;
}

/* Profile page */
.profile-card {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.profile-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.profile-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.profile-card-meta { min-width: 0; }
.profile-card-name {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 800;
}
.profile-card-email {
  margin: 0;
  font-size: 13px;
  opacity: 0.85;
  word-break: break-all;
}
.profile-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 14px 16px;
}
.profile-card-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-card-stat-label {
  font-size: 11px;
  opacity: 0.8;
}
.profile-card-stat-value {
  font-size: 18px;
  font-weight: 900;
}
.profile-card-stat-unit {
  font-size: 12px;
  font-weight: 700;
  margin-left: 2px;
  opacity: 0.9;
}
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-menu-section {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  overflow: hidden;
}
.profile-menu-section-label {
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: #111827;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-icon {
  color: #6b7280;
  display: flex;
}
.profile-menu-label { flex: 1; font-weight: 600; }
.profile-menu-arrow { color: #9ca3af; }


/* ============================================================
   Roulette — blue hero redesign
   ============================================================ */
.rou-main {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: 0 0 96px;
  color: #0f172a;
}

/* ── HERO ── */
.rou-hero {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(160deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
  padding-bottom: 36px;
  overflow: hidden;
  position: relative;
}
.rou-hero-inner {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding-top: 28px;
}
.rou-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  min-height: 110px;
}
.rou-hero-text {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1; max-width: 240px;
}
.rou-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
}
.rou-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.rou-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}
.rou-ticket-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px; color: #ffffff;
  backdrop-filter: blur(4px);
  width: fit-content;
}
.rou-ticket-badge-label { opacity: 0.8; }
.rou-ticket-badge-count { font-weight: 800; font-size: 15px; }
.rou-ticket-badge-count strong {
  font-variant-numeric: tabular-nums;
}
.rou-hero-bear {
  position: absolute; right: -4px; top: -20px;
  width: 110px; height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
}

/* Wheel section inside hero */
.rou-wheel-section {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 0 8px;
}
.rou-wheel-outer-ring {
  width: 310px; height: 310px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 70%);
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.1),
    0 0 0 16px rgba(255,255,255,0.05),
    0 8px 40px rgba(0,0,0,0.25);
  position: relative;
}
.rou-wheel-wrap {
  position: relative;
  width: 290px; height: 290px;
  display: flex; align-items: center; justify-content: center;
}
.rou-pointer {
  position: absolute; top: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  z-index: 2;
}
.rou-wheel-svg { display: block; width: 290px; height: 290px; border-radius: 50%; }
#wheelGroup { transform-origin: 140px 140px; }
.rou-spin-btn {
  margin-top: 20px;
  background: #ffffff; color: #1d4ed8; border: none;
  padding: 14px 48px; border-radius: 999px;
  font-size: 15px; font-weight: 900;
  letter-spacing: -0.2px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.rou-spin-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.rou-spin-btn:active { transform: scale(0.97); }
.rou-spin-btn:disabled {
  background: rgba(255,255,255,0.3); color: rgba(255,255,255,0.5);
  cursor: not-allowed;
  box-shadow: none;
}
.rou-live-feed {
  margin: 16px auto 0;
  font-size: 13px; color: #0f172a;
  background: #ffffff;
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  text-align: center;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
}
.rou-live-feed strong { color: #1d4ed8; font-weight: 700; }
.rou-live-feed em { color: #7c3aed; font-style: normal; font-weight: 700; }
.rou-hero-meta {
  display: flex; align-items: center; justify-content: center;
  padding-top: 14px;
}
.rou-next-free {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px; color: rgba(255,255,255,0.85);
}
.rou-next-free-label { opacity: 0.7; }
.rou-next-free-time {
  font-weight: 700; color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.rou-next-free-time.is-ready { color: #facc15; }
.rou-claim-btn {
  background: #ffffff; color: #1d4ed8; border: none;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 800; cursor: pointer;
}
.rou-claim-btn:hover { background: #eff6ff; }

/* Sections */
.rou-section {
  margin-top: 32px;
  padding: 0 4px;
}
.rou-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.rou-section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}
.rou-section-head p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.rou-section-head--tabs { align-items: center; }

/* Segmented tabs */
.rou-tab-row {
  display: inline-flex;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 8px;
  gap: 0;
}
.rou-tab {
  background: transparent; border: none;
  padding: 5px 12px;
  font-size: 11px; font-weight: 700; color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.rou-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}

/* Streak — circles with arrows */
.rou-streak-row {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 4px 0;
}
.rou-streak-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.rou-streak-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: #f1f5f9;
  color: #94a3b8;
  border: 2px solid #e2e8f0;
  transition: all .18s;
}
.rou-streak-item.is-done .rou-streak-circle {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.rou-streak-item.is-today .rou-streak-circle {
  background: #ffffff;
  color: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
.rou-streak-item--gift .rou-streak-circle {
  width: 40px; height: 40px;
  font-size: 18px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #fbbf24;
}
.rou-streak-item--gift.is-done .rou-streak-circle {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  color: #ffffff;
}
.rou-streak-day-label {
  font-size: 9px; color: #94a3b8; font-weight: 600;
  white-space: nowrap;
}
.rou-streak-item.is-done .rou-streak-day-label { color: #2563eb; }
.rou-streak-arrow {
  flex: 1;
  height: 2px;
  min-width: 8px;
  max-width: 20px;
  background: #e2e8f0;
  align-self: center;
  margin-bottom: 18px;
  position: relative;
}
.rou-streak-arrow::after {
  content: "";
  position: absolute; right: -4px; top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid #e2e8f0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* Missions — 3-col icon cards */
.rou-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.rou-mission-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: #f8fafc;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid #f1f5f9;
  transition: background .15s, border-color .15s;
  text-align: center;
}
.rou-mission-card:hover { background: #eff6ff; border-color: #bfdbfe; }
.rou-mission-card-icon {
  font-size: 26px; line-height: 1;
}
.rou-mission-card strong {
  font-size: 13px; font-weight: 800; color: #0f172a;
}
.rou-mission-card span {
  font-size: 11px; color: #64748b;
}

/* Prize cards — table-like, monochrome */
.rou-prizes-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
}
.rou-prize-card {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 0 !important;
}
.rou-prize-icon {
  width: 8px; height: 8px;
  background: var(--prize-color, #2563eb);
  border-radius: 50%;
  font-size: 0;
  justify-self: start;
}
.rou-prize-label {
  font-size: 14px; font-weight: 700; color: #0f172a;
}
.rou-prize-pts {
  font-size: 13px; font-weight: 800; color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.rou-prize-pts.is-muted { color: #94a3b8; font-weight: 600; }
.rou-prize-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 0;
  border: none;
  padding: 0;
  width: auto;
}
.rou-prize-pct {
  font-size: 11px; color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.rou-prize-weekly {
  font-size: 10px; color: #64748b; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* History list — minimal rows */
.rou-history-list {
  display: flex; flex-direction: column;
}
.rou-history-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f5f9;
}
.rou-history-row:last-child { border-bottom: none; }
.rou-history-label {
  flex: 1; font-size: 13px; font-weight: 600; color: #0f172a;
}
.rou-history-pts {
  font-size: 13px; font-weight: 700; color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.rou-history-pts.is-muted { color: #94a3b8; }
.rou-history-date {
  font-size: 11px; color: #94a3b8;
  font-variant-numeric: tabular-nums;
  min-width: 76px; text-align: right;
}

/* Calendar */
.rou-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.rou-cal-day {
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #cbd5e1;
  font-weight: 600;
}
.rou-cal-day.is-spun {
  background: #0f172a;
  color: #ffffff;
}

/* Guest CTA */
.rou-guest {
  margin: 16px 0 0;
  padding: 28px 20px;
  text-align: center;
}
.rou-guest p { margin: 0 0 14px; color: #64748b; font-size: 14px; }
.rou-guest-btn {
  display: inline-block;
  background: #0f172a; color: #ffffff;
  padding: 11px 28px; border-radius: 999px;
  text-decoration: none;
  font-weight: 800; font-size: 13px;
}

/* Result modal — refined */
.rou-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s;
  z-index: 1000;
  padding: 20px;
}
.rou-modal-overlay.is-visible { opacity: 1; }
.rou-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px 24px;
  max-width: 320px; width: 100%;
  text-align: center;
  transform: scale(0.94);
  transition: transform .25s cubic-bezier(.4,1.4,.5,1);
}
.rou-modal-overlay.is-visible .rou-modal { transform: scale(1); }
.rou-modal-icon { font-size: 56px; margin-bottom: 16px; line-height: 1; }
.rou-modal-title {
  margin: 0 0 6px;
  font-size: 20px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.3px;
}
.rou-modal-sub {
  margin: 0 0 20px;
  font-size: 13px; color: #64748b;
}
.rou-modal-points {
  display: inline-block;
  font-size: 22px; font-weight: 800;
  color: #0f172a;
  padding: 10px 22px;
  background: #f8fafc;
  border-radius: 999px;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.rou-modal--big .rou-modal-points {
  background: #0f172a;
  color: #facc15;
}
.rou-modal--miss .rou-modal-points {
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 18px;
}
.rou-modal-btn {
  background: #0f172a; color: #ffffff; border: none;
  padding: 13px 32px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  width: 100%;
}
.rou-modal-btn:hover { background: #1e293b; }

.rou-confetti {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1100;
}

@media (max-width: 480px) {
  .rou-head { padding: 16px 4px 4px; gap: 12px; }
  .rou-title { font-size: 19px; }
  .rou-head-right { gap: 10px; font-size: 12px; }
  .rou-next-free { padding-left: 10px; }
  .rou-wheel-wrap { width: 260px; height: 260px; }
  .rou-wheel-svg { width: 260px; height: 260px; }
}

   Home onboarding banner (guests only, bottom of page)
   ============================================================ */
.home-onboard-banner[hidden] { display: none !important; }
.home-onboard-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 24px);
  max-width: 600px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 38px 12px 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.18);
  z-index: 850;
}
.home-onboard-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: #eef2ff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.home-onboard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-onboard-title {
  font-size: 14px; font-weight: 800; color: #111827; line-height: 1.3;
}
.home-onboard-sub {
  font-size: 12px; color: #2563eb; font-weight: 700;
}
.home-onboard-cta {
  background: #2563eb; color: #ffffff;
  padding: 8px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 800;
  text-decoration: none; white-space: nowrap;
  flex-shrink: 0;
}
.home-onboard-close {
  position: absolute; top: 6px; right: 8px;
  background: transparent; border: none; cursor: pointer;
  color: #9ca3af; font-size: 14px; padding: 4px;
  line-height: 1;
}
@media (min-width: 769px) {
  .home-onboard-banner {
    bottom: 24px;
  }
}

/* Invite — stat card click + friend list modal */
.invite-stat-card--clickable {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .15s;
}
.invite-stat-card--clickable:hover { background: #eef2ff; }
.invite-stat-card--clickable .invite-stat-label {
  color: #2563eb;
  font-weight: 700;
}
.invite-friends-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 1100;
}
.invite-friends-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 380px; width: 100%;
  max-height: 70vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.invite-friends-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}
.invite-friends-head h3 {
  margin: 0; font-size: 15px; font-weight: 800; color: #0f172a;
}
.invite-friends-close {
  background: transparent; border: none; cursor: pointer;
  color: #94a3b8; font-size: 16px; padding: 4px 8px;
}
.invite-friends-list {
  overflow-y: auto;
  padding: 8px 0;
}
.invite-friend-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f8fafc;
}
.invite-friend-row:last-child { border-bottom: none; }
.invite-friend-name {
  font-size: 14px; font-weight: 700; color: #0f172a;
}
.invite-friend-date {
  font-size: 12px; color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.invite-friends-empty {
  margin: 0; padding: 32px 20px;
  text-align: center; color: #94a3b8; font-size: 13px;
}

/* ============================================================
   Cash history — refined detail
   ============================================================ */
.cash-page {
  width: min(100% - 32px, 560px);
  margin: 0 auto;
  padding: 12px 0 96px;
  color: #0f172a;
}
.cash-head {
  padding: 16px 4px 20px;
}
.cash-head-title {
  margin: 0 0 4px;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.3px; color: #0f172a;
}
.cash-head-sub {
  margin: 0; font-size: 12px; color: #94a3b8;
}

/* Guest */
.cash-guest {
  background: #f8fafc;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
}
.cash-guest-icon { font-size: 40px; margin-bottom: 12px; }
.cash-guest p { margin: 0 0 16px; color: #475569; font-size: 14px; }
.cash-guest-btn {
  display: inline-block;
  background: #0f172a; color: #ffffff;
  padding: 12px 28px; border-radius: 999px;
  text-decoration: none; font-weight: 800; font-size: 13px;
}

/* Summary card */
.cash-summary {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 18px;
  padding: 22px;
  color: #ffffff;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}
.cash-summary-main {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cash-summary-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.cash-summary-amount {
  margin: 6px 0 24px;
  font-size: 34px; font-weight: 800;
  letter-spacing: -0.5px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cash-summary-unit {
  font-size: 16px; font-weight: 700;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
}
.cash-withdraw-btn {
  width: 100%;
  background: #facc15; color: #0f172a;
  border: none; padding: 12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  transition: background .15s;
}
.cash-withdraw-btn:hover { background: #eab308; }
.cash-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-top: 14px;
}
.cash-summary-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 8px;
}
.cash-summary-stat + .cash-summary-stat {
  border-left: 1px solid rgba(255,255,255,0.1);
}
.cash-summary-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.cash-summary-stat-value {
  font-size: 16px; font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

/* Checkin */
.cash-checkin {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.cash-checkin-left {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.cash-checkin-icon {
  width: 40px; height: 40px;
  background: #fef9c3; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cash-checkin-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cash-checkin-title {
  margin: 0; font-size: 13px; font-weight: 700; color: #0f172a;
}
.cash-checkin-sub {
  margin: 0; font-size: 11px; color: #94a3b8;
}
.cash-checkin-btn {
  background: #0f172a; color: #ffffff;
  border: none; padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800; cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.cash-checkin-btn:hover { background: #1e293b; }
.cash-checkin-btn.is-done,
.cash-checkin-btn:disabled {
  background: #f1f5f9; color: #94a3b8; cursor: default;
}

/* List section */
.cash-list-section {
  margin-top: 8px;
}
.cash-list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 4px 12px;
  flex-wrap: wrap;
}
.cash-list-head h2 {
  margin: 0; font-size: 13px; font-weight: 800; color: #0f172a;
  letter-spacing: -0.1px;
}
.cash-list-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.cash-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f1f5f9; color: #475569;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.cash-chip b {
  font-weight: 800; color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.cash-chip--pending b { color: #b45309; }
.cash-chip--confirmed b { color: #059669; }

.cash-list {
  display: flex; flex-direction: column;
  gap: 1px;
  background: #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
}
.cash-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
}
.cash-item-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-weight: 800; font-size: 14px;
}
.cash-item-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.cash-item-shop-row {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.cash-item-shop {
  font-size: 14px; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cash-item-pill {
  flex-shrink: 0;
  font-size: 10px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px;
  letter-spacing: 0.2px;
}
.cash-item-pill--pending {
  background: #fef3c7; color: #b45309;
}
.cash-item-pill--confirmed {
  background: #d1fae5; color: #059669;
}
.cash-item-meta {
  font-size: 11px; color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.cash-item-cashback {
  font-size: 14px; font-weight: 800; color: #0f172a;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.cash-list-empty {
  background: #ffffff;
  padding: 40px 20px;
  text-align: center;
}
.cash-list-empty-icon { font-size: 36px; margin-bottom: 12px; }
.cash-list-empty p {
  margin: 0 0 4px; font-size: 14px; font-weight: 700; color: #0f172a;
}
.cash-list-empty span {
  display: block; font-size: 12px; color: #94a3b8; margin-bottom: 16px;
}
.cash-list-empty-btn {
  display: inline-block; background: #0f172a; color: #ffffff;
  padding: 9px 22px; border-radius: 999px;
  font-size: 12px; font-weight: 800; text-decoration: none;
}

@media (max-width: 480px) {
  .cash-summary-amount { font-size: 30px; }
}

/* Invite banner image */
.invite-banner {
  width: min(100% - 32px, 720px);
  margin: 16px auto 24px;
}
.invite-banner-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(37,99,235,0.18);
  transition: transform .15s, box-shadow .15s;
}
.invite-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,99,235,0.24);
}
.invite-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Invite benefit & ranking sections */
.invite-benefit-section,
.invite-ranking-section {
  margin-top: 28px;
}
.invite-benefit-title {
  font-size: 18px; font-weight: 800; color: #0f172a;
  margin: 0 0 12px;
}
.invite-benefit-group-label {
  font-size: 13px; color: #94a3b8; font-weight: 500;
  margin: 0 0 10px;
}
.invite-benefit-list {
  display: flex; flex-direction: column; gap: 2px;
}
.invite-benefit-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid #f1f5f9;
}
.invite-benefit-row:last-child { border-bottom: none; }
.invite-benefit-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.invite-benefit-text {
  flex: 1; font-size: 15px; color: #334155;
}
.invite-benefit-text strong { color: #0f172a; font-weight: 800; }
.invite-benefit-badge {
  font-size: 12px; font-weight: 700; color: #64748b;
  background: #f1f5f9; border-radius: 8px;
  padding: 4px 10px; flex-shrink: 0;
}

/* Ranking */
.invite-ranking-list {
  border: 1.5px solid #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
}
.invite-ranking-empty {
  padding: 40px 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.invite-ranking-empty-icon { font-size: 36px; }
.invite-ranking-empty p { margin: 0; font-size: 14px; color: #94a3b8; }
.invite-ranking-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f8fafc;
  font-size: 14px;
}
.invite-ranking-row:last-child { border-bottom: none; }
.invite-ranking-num {
  width: 28px; text-align: center; font-size: 16px; flex-shrink: 0;
}
.invite-ranking-name { flex: 1; font-weight: 700; color: #0f172a; }
.invite-ranking-date { font-size: 12px; color: #94a3b8; flex-shrink: 0; }

/* ── Tournament ──────────────────────────────────────── */
.trn-main { width: 100%; max-width: 100%; padding: 0 0 80px; flex: 1; }

.trn-hero {
  margin-left: calc(50% - 50vw);
  width: 100vw;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  padding: 28px 20px 0;
}
.trn-hero-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.trn-hero-text { flex: 1; min-width: 0; }
.trn-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; opacity: .8; text-transform: uppercase; display: block; }
.trn-title { font-size: 22px; font-weight: 800; margin: 6px 0 6px; line-height: 1.25; }
.trn-subtitle { font-size: 13px; opacity: .85; margin: 0 0 20px; }
.trn-hero-bear { width: 100px; height: 100px; object-fit: contain; flex-shrink: 0; }

.trn-status-bar {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
}
.trn-ticket-summary {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
.trn-ticket-summary strong {
  font-size: 18px;
  font-weight: 900;
}
.trn-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; }
.trn-stat-label { font-size: 10px; opacity: .7; white-space: nowrap; }
.trn-stat strong { font-size: 15px; font-weight: 800; }
.trn-stat-unit { font-size: 11px; opacity: .7; }
.trn-stat-div { width: 1px; background: rgba(255,255,255,.25); height: 28px; flex-shrink: 0; }

.trn-section { padding: 20px 12px 0; }
.trn-section-title { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }

/* join card */
.trn-join-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  padding: 24px 20px;
  text-align: center;
}
.trn-join-icon { margin-bottom: 10px; }
.trn-join-title { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.trn-join-desc { font-size: 13px; color: #64748b; margin: 0 0 18px; white-space: pre-line; }
.trn-join-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: #2563eb; color: #fff;
  border: none; border-radius: 12px;
  padding: 14px 20px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.trn-join-btn:hover { background: #1d4ed8; }
.trn-join-btn:disabled { background: #94a3b8; cursor: not-allowed; }
.trn-join-note { font-size: 12px; color: #94a3b8; margin: 10px 0 0; }

/* match card */
.trn-match-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  padding: 20px 16px;
}
.trn-match-vs { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.trn-match-player { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.trn-player-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  color: #2563eb; flex-shrink: 0;
}
.trn-player-label { font-size: 12px; color: #64748b; }
.trn-player-choice { font-size: 16px; font-weight: 700; color: #0f172a; min-height: 24px; }
.trn-vs { font-size: 18px; font-weight: 800; color: #94a3b8; flex-shrink: 0; }
.trn-deadline-label { font-size: 12px; color: #94a3b8; text-align: center; margin: 0 0 14px; }
.trn-rps-btns { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.trn-rps-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px;
  padding: 12px 4px; cursor: pointer; transition: border-color .15s, background .15s;
  font-size: 12px; font-weight: 600; color: #334155;
}
.trn-rps-btn:hover { border-color: #2563eb; background: #eff6ff; }
.trn-rps-btn.selected { border-color: #2563eb; background: #dbeafe; }
.trn-rps-icon { display: flex; }
.trn-match-waiting { text-align: center; color: #64748b; font-size: 13px; margin: 8px 0 0; }

/* result card */
.trn-result-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  padding: 28px 20px;
  text-align: center;
}
.trn-result-bear { margin-bottom: 12px; }
.trn-result-title { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.trn-result-desc { font-size: 14px; color: #64748b; white-space: pre-line; margin: 0; }

/* bracket */
.trn-bracket { display: flex; flex-direction: column; gap: 16px; }
.trn-bracket-round {}
.trn-bracket-round-title { font-size: 12px; font-weight: 700; color: #64748b; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.trn-bracket-matches { display: flex; flex-direction: column; gap: 6px; }
.trn-bracket-match {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.trn-bm-player {
  flex: 1; font-size: 13px; font-weight: 600; color: #334155;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.trn-bm-player.trn-bm-winner { color: #2563eb; font-weight: 800; }
.trn-bm-player.trn-bm-bye { color: #94a3b8; font-style: italic; }
.trn-bm-vs { font-size: 11px; color: #94a3b8; font-weight: 600; flex-shrink: 0; }
.trn-bracket-empty { text-align: center; color: #94a3b8; font-size: 14px; padding: 20px 0; }

@media (max-width: 380px) {
  .trn-title { font-size: 19px; }
  .trn-hero-bear { width: 80px; height: 80px; }
  .trn-stat strong { font-size: 13px; }
  .trn-rps-btn { font-size: 11px; padding: 10px 2px; }
}

/* ── Tournament schedule list ── */
/* schedule grid: 1열 10패널 */
.trn-schedule-grid { display: flex; flex-direction: column; gap: 8px; }
.trn-sched-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  padding: 10px 14px 10px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.trn-sched-panel--imminent { background: #fffbeb; }
.trn-sched-panel--past { opacity: .55; }

/* 1:1 상품 이미지 */
.trn-sched-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: #f1f5f9;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  overflow: hidden;
  object-fit: cover;
}
.trn-sched-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
}

/* 오른쪽 정보 영역 */
.trn-sched-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.trn-sched-top {
  display: flex;
  align-items: center;
  gap: 5px;
}
.trn-sched-day-label {
  font-size: 10px; font-weight: 700;
  background: #eff6ff; color: #2563eb;
  border-radius: 4px; padding: 1px 6px;
  flex-shrink: 0;
}
.trn-sched-panel--past .trn-sched-day-label { background: #f1f5f9; color: #94a3b8; }
.trn-sched-date { font-size: 11px; color: #94a3b8; }
.trn-sched-hour { font-size: 14px; font-weight: 800; color: #0f172a; margin-left: auto; flex-shrink: 0; }
.trn-sched-label { font-size: 11px; color: #475569; }
.trn-sched-countdown {
  font-size: 15px; font-weight: 800; color: #2563eb;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.trn-sched-panel--past .trn-sched-countdown { color: #94a3b8; font-size: 12px; }
.trn-sched-panel--imminent .trn-sched-countdown { color: #d97706; }
.trn-sched-prize {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: #92400e;
}
.trn-sched-winner {
  margin-top: 4px;
  font-size: 11px; font-weight: 700; color: #b45309;
}
.trn-sched-actions { display: flex; gap: 6px; margin-top: 6px; }
.trn-sched-join-btn {
  flex: 1; padding: 6px 0; border: none; border-radius: 8px;
  background: #3182f6; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}
.trn-sched-join-btn:disabled { background: #93c5fd; cursor: default; }
.trn-sched-watch-btn {
  padding: 6px 10px; border: 1.5px solid #cbd5e1; border-radius: 8px;
  background: #fff; color: #475569; font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.trn-sched-status-chip {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 700; margin-top: 2px;
}
.trn-sched-status-chip--registering { background: #dbeafe; color: #1d4ed8; }
.trn-sched-status-chip--active { background: #dcfce7; color: #166534; }
.trn-sched-status-chip--finished { background: #f1f5f9; color: #64748b; }

/* 관전 모달 */
.trn-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 9000; padding: 0;
}
.trn-modal {
  width: 100%; max-width: 480px; max-height: 80vh;
  background: #fff; border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.trn-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid #eef0f3;
}
.trn-modal-title { margin: 0; font-size: 16px; font-weight: 700; }
.trn-modal-close {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #64748b; line-height: 1;
}
.trn-modal-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.trn-bracket-round { margin-bottom: 16px; }
.trn-bracket-round-title { font-size: 13px; font-weight: 700; color: #475569; margin: 0 0 8px; }
.trn-bracket-matches { display: flex; flex-direction: column; gap: 6px; }
.trn-bracket-match {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border-radius: 8px; padding: 8px 12px;
  font-size: 13px;
}
.trn-bm-player { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trn-bm-winner { font-weight: 700; color: #0f172a; }
.trn-bm-bye { color: #94a3b8; font-style: italic; }
.trn-bm-vs { font-size: 11px; color: #94a3b8; flex-shrink: 0; }
