/* -*- coding: utf-8 -*- */
:root {
  --bg-deep: #090d16;
  --bg-card: #111827;
  --bg-card-elevated: #1e293b;
  --border-subtle: rgba(250, 204, 21, 0.18);
  --border-muted: rgba(148, 163, 184, 0.2);
  --gold-primary: #facc15;
  --gold-bright: #fef08a;
  --gold-dark: #ca8a04;
  --purple-accent: #8b5cf6;
  --pink-accent: #ec4899;
  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --green-ok: #4ade80;
  --red-warn: #f87171;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif;
  background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #090d16 55%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

/* 최상단 실시간 무인 결제 티커 */
.live-ticker-bar {
  background: linear-gradient(90deg, #0f172a, #1e1b4b, #0f172a);
  border-bottom: 1px solid var(--border-subtle);
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-badge {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green-ok);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.ticker-content {
  color: var(--gold-bright);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 헤더 */
.top-header {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--border-muted);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  font-size: 36px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4c1d95, #1e1b4b);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.25);
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.mode-switcher {
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-muted);
}

.mode-btn {
  background: transparent;
  color: var(--text-sub);
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.mode-btn.active {
  background: linear-gradient(135deg, #6d28d9, #4338ca);
  color: #fff;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.45);
}

.badge-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-pill.gold {
  background: rgba(250, 204, 21, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.main-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px;
}

/* 스토어 히어로 배너 */
.store-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.55), rgba(17, 24, 39, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 26px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.hero-tag {
  display: inline-block;
  background: rgba(250, 204, 21, 0.15);
  color: var(--gold-bright);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.store-hero h2 {
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 800;
}

.gold-grad {
  background: linear-gradient(90deg, #fef08a, #facc15, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #090d16;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 22px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(234, 179, 8, 0.55);
}

.btn-secondary-outline {
  background: rgba(30, 41, 59, 0.85);
  color: var(--gold-bright);
  border: 1px solid rgba(250, 204, 21, 0.45);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary-outline:hover {
  background: rgba(250, 204, 21, 0.15);
}

.btn-accent {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.full-width {
  width: 100%;
}

.mini-stat-box {
  background: rgba(9, 13, 22, 0.75);
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 18px;
}

.mini-stat-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.mini-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.55);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.mini-rank-item:hover {
  background: rgba(109, 40, 217, 0.3);
}

.rank-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-primary);
  color: #090d16;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-rank-item div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mini-rank-item strong {
  font-size: 13.5px;
  color: #fff;
}

.mini-rank-item small {
  font-size: 11.5px;
  color: var(--text-muted);
}

.rank-price {
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 13.5px;
}

/* 사주관 탭 */
.hall-tabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hall-tab {
  background: var(--bg-card);
  color: var(--text-sub);
  border: 1px solid var(--border-muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hall-tab.active {
  background: var(--gold-primary);
  color: #090d16;
  border-color: var(--gold-primary);
}

/* 상품 그리드 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
}

.product-card.bait-card {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(160deg, #1e1b4b 0%, #111827 100%);
}

.p-card-top {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: center;
}

.p-avatar {
  width: 88px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.p-meta {
  flex: 1;
}

.p-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  margin-bottom: 6px;
}

.p-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.p-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.p-card-bottom {
  margin-top: auto;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-price-area del {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 6px;
}

.p-price-area strong {
  font-size: 18px;
  color: var(--gold-bright);
  font-weight: 800;
}

.p-stats {
  font-size: 12px;
  color: var(--text-muted);
}

/* 퍼널 상세 영역 */
.funnel-section {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 28px;
  margin-top: 10px;
}

.funnel-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-back {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-muted);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.funnel-story-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.5), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.story-avatar {
  width: 130px;
  height: 144px;
  border-radius: 16px;
  border: 2px solid var(--gold-primary);
  flex-shrink: 0;
}

.story-Quote {
  font-size: 15px;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.35);
  padding: 14px 18px;
  border-left: 4px solid var(--gold-primary);
  border-radius: 8px;
  margin-top: 12px;
}

/* 입력 폼 */
.saju-input-card {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-muted);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
}

.sub-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="password"],
select,
textarea {
  background: #090d16;
  color: #fff;
  border: 1px solid var(--border-muted);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold-primary);
}

.inline-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-inputs input {
  flex: 1;
}

.partner-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
}

.partner-box h4 {
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.action-center {
  text-align: center;
  margin-top: 16px;
}

.btn-submit-saju {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #090d16;
  font-size: 16px;
  font-weight: 800;
  padding: 15px 36px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(250, 204, 21, 0.35);
}

/* 만세력 사주팔자 원국 4기둥 테이블 & 오행 바 */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.pillar-col {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.pillar-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.char-box {
  border-radius: 10px;
  padding: 10px 6px;
  margin-bottom: 8px;
  color: #090d16;
  font-weight: 800;
}

.char-hanja {
  font-size: 24px;
  display: block;
}

.char-ko {
  font-size: 12.5px;
}

.sipseong-tag {
  font-size: 11.5px;
  color: var(--gold-bright);
  background: rgba(250, 204, 21, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
}

.five-elements-bars {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
}

.el-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.el-name {
  width: 90px;
  font-weight: 700;
}

.el-track {
  flex: 1;
  height: 18px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.el-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s;
}

/* 미끼 상품 결과 & 문맥 맞춤형 배너 (t=1214s 핵심) */
.bait-report-box {
  background: linear-gradient(160deg, #1e1b4b, #0f172a);
  border: 2px solid var(--gold-primary);
  border-radius: 18px;
  padding: 26px;
  margin-top: 20px;
}

.bait-bridge-warning {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
  padding: 16px;
  border-radius: 12px;
  margin: 20px 0;
  font-weight: 600;
}

.upsell-banner-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.native-ad-banner {
  background: linear-gradient(135deg, #311042, #1e1b4b);
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: transform 0.15s;
}

.native-ad-banner:hover {
  transform: scale(1.01);
}

/* 유료 상품 블러 잠금 페이월 (11:55~13:45 시연) */
.paywall-lock-box {
  position: relative;
  background: #0f172a;
  border: 2px solid var(--gold-primary);
  border-radius: 18px;
  padding: 28px;
  margin-top: 20px;
  overflow: hidden;
}

.blurred-preview-text {
  filter: blur(5px);
  user-select: none;
  opacity: 0.45;
  margin-bottom: 20px;
}

.paywall-overlay-cta {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #090d16);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

/* 전체 리포트 (결제 후 잠금해제) */
.full-report-container {
  margin-top: 28px;
  background: #0f172a;
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  padding: 30px;
}

.chapter-card {
  background: #111827;
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}

.chapter-card h4 {
  color: var(--gold-bright);
  font-size: 17px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 8px;
}

.chapter-card p {
  white-space: pre-line;
  color: var(--text-main);
  font-size: 14.5px;
  line-height: 1.75;
}

/* 관리자 서브 네비게이션 */
.admin-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border-muted);
  padding-bottom: 14px;
}

.admin-tab {
  background: var(--bg-card);
  color: var(--text-sub);
  border: 1px solid var(--border-muted);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--gold-primary);
  color: #090d16;
  border-color: var(--gold-primary);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kpi-card.highlight {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, #1e1b4b, #111827);
}

.kpi-label {
  font-size: 12.5px;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.kpi-value.gold {
  color: var(--gold-primary);
}

.kpi-value.green {
  color: var(--green-ok);
}

.kpi-foot {
  font-size: 11.5px;
  color: var(--text-sub);
}

.dashboard-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.panel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: 18px;
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-muted);
  text-align: left;
}

.data-table th {
  color: var(--text-muted);
  font-weight: 700;
}

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

.comp-item {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
}

.comp-item.best {
  border: 1.5px solid var(--gold-primary);
  background: rgba(250, 204, 21, 0.07);
}

.comp-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
  background: #334155;
}

.comp-badge.gold {
  background: var(--gold-primary);
  color: #090d16;
}

.peak-bars-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-muted);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  margin-top: 8px;
}

.bar-row span {
  width: 150px;
  color: var(--text-sub);
}

.bar-track {
  flex: 1;
  background: #090d16;
  border-radius: 999px;
  overflow: hidden;
  height: 22px;
}

.bar-fill {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  height: 100%;
  font-size: 11.5px;
  font-weight: 700;
  padding-right: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bar-fill.gold {
  background: linear-gradient(90deg, #eab308, #f97316);
  color: #090d16;
}

.bar-fill.green {
  background: linear-gradient(90deg, #10b981, #3b82f6);
}

/* AI 선생님 빌더 */
.builder-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}

.step-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--gold-bright);
  margin: 16px 0 8px;
  padding-left: 8px;
  border-left: 3px solid var(--gold-primary);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.name-chip {
  background: #1e293b;
  color: var(--text-main);
  border: 1px solid var(--border-muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.name-chip:hover,
.name-chip.active {
  background: var(--gold-primary);
  color: #090d16;
  font-weight: 800;
}

.dup-ok {
  font-size: 12.5px;
  color: var(--green-ok);
  font-weight: 700;
}

.expression-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.exp-card {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 6px;
  text-align: center;
}

.exp-card img {
  width: 100%;
  border-radius: 8px;
}

.exp-card span {
  font-size: 11.5px;
  color: var(--gold-bright);
  font-weight: 700;
}

/* 릴스 스튜디오 */
.reels-studio-grid {
  display: grid;
  grid-template-columns: 1.3fr 400px;
  gap: 24px;
  align-items: start;
}

.preset-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-chip {
  background: #1e293b;
  color: var(--text-sub);
  border: 1px solid var(--border-muted);
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn-chip.active {
  background: rgba(250, 204, 21, 0.2);
  color: var(--gold-bright);
  border-color: var(--gold-primary);
}

.script-lines-box {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 12px;
  max-height: 210px;
  overflow-y: auto;
}

.script-line-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  cursor: pointer;
}

.script-line-item:hover {
  background: rgba(250, 204, 21, 0.1);
}

.phone-frame {
  width: 376px;
  margin: 0 auto;
  padding: 8px;
  background: #000;
  border: 3px solid #475569;
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

#reelsCanvas {
  width: 360px;
  height: 640px;
  border-radius: 20px;
  display: block;
  cursor: grab;
}

#reelsCanvas:active {
  cursor: grabbing;
}

.reels-action-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.auto-dm-box {
  margin-top: 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}

.dm-bubble-preview {
  margin-top: 12px;
  background: #1e293b;
  border-left: 4px solid var(--green-ok);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: pre-line;
}

/* 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

.kakao-header {
  background: #fee500;
  color: #191919;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.kakao-body {
  padding: 24px;
  text-align: center;
}

.qr-sim-box {
  margin: 18px auto;
  width: 150px;
  height: 150px;
  background: #fff;
  color: #000;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
}

.kakao-check {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.btn-kakao-submit {
  width: 100%;
  background: #fee500;
  color: #191919;
  font-weight: 800;
  font-size: 15px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.checkout-header {
  background: #1e1b4b;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: transparent;
  color: inherit;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.checkout-body {
  padding: 22px;
}

.upsell-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.upsell-radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #090d16;
  border: 1.5px solid var(--border-muted);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
}

.upsell-radio-card.selected {
  border-color: var(--gold-primary);
  background: rgba(250, 204, 21, 0.08);
}

.upsell-ribbon {
  position: absolute;
  top: -10px;
  right: 14px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
}

.upsell-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.upsell-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.upsell-price-box {
  text-align: right;
}

.upsell-price-box del {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}

.upsell-price-box strong {
  font-size: 17px;
  color: #fff;
}

.payment-method-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.pm-chip {
  flex: 1;
  text-align: center;
  padding: 9px;
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.pm-chip.active {
  border-color: var(--gold-primary);
  color: var(--gold-bright);
}

.prompt-card {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.prompt-pre {
  background: #111827;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-sub);
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .store-hero,
  .dashboard-2col,
  .builder-grid,
  .reels-studio-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid,
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  .live-ticker-bar,
  .top-header,
  .store-hero,
  .hall-tabs-bar,
  .product-grid,
  .saju-input-card,
  .funnel-header-bar {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}


/* v2.0 추가 스타일: 만세력 환각방지 배지, S~F 스탯 등급 카드, 카톡 공유 바이럴 루프, 2인 속궁합, 12개월 길흉 캘린더 */
.precision-verify-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #d1fae5;
}

.stat-grade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.stat-grade-card {
  background: linear-gradient(145deg, #1e1b4b, #090d16);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.stat-grade-card .grade-title {
  font-size: 12.5px;
  color: var(--text-sub);
  display: block;
}

.stat-grade-card .grade-rank {
  font-size: 26px;
  font-weight: 900;
  color: var(--gold-primary);
  display: block;
  margin: 4px 0;
}

.stat-grade-card .grade-score {
  font-size: 12px;
  color: var(--green-ok);
  font-weight: 700;
}

.sinsal-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.sinsal-badge {
  background: rgba(236, 72, 153, 0.16);
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fbcfe8;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.viral-share-box {
  background: linear-gradient(135deg, rgba(254, 229, 0, 0.14), rgba(30, 27, 75, 0.9));
  border: 1.5px dashed #fee500;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-kakao-share {
  background: #fee500;
  color: #191919;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(254, 229, 0, 0.3);
}

.calendar-12m-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.cal-month-card {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 12px;
}

.cal-month-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 13.5px;
}

.compat-dashboard-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(15, 23, 42, 0.95));
  border: 1.5px solid #a855f7;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.kakao-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.kakao-msg-card {
  background: #090d16;
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 14px;
  font-size: 13.5px;
  white-space: pre-line;
}

.kakao-msg-card.win {
  border-color: #4ade80;
}

.kakao-msg-card.taboo {
  border-color: #f87171;
}

.pm-chip {
  cursor: pointer;
  transition: all 0.15s;
}

@media (max-width: 980px) {
  .stat-grade-grid,
  .calendar-12m-grid,
  .kakao-strategy-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* v2.5 추가 스타일: 수수료 0원 카카오QR / 토스 toss.me / 페이앱 직접 수납 박스 */
.zero-fee-direct-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.92), rgba(9, 13, 22, 0.95));
  border: 1.5px solid var(--gold-primary);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.zf-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#directPayQrCanvas {
  background: #ffffff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.zf-qr-caption {
  font-size: 11px;
  color: var(--gold-bright);
  font-weight: 700;
}

.zf-info-col {
  flex: 1;
}

.zf-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-toss-direct {
  display: inline-block;
  background: #0064ff;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-kakao-direct {
  display: inline-block;
  background: #fee500;
  color: #191919;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
