/* ==========================================================================
   알뜰픽 (ALTTULPICK) 디자인 시스템 & 스타일시트
   프리미엄 화이트 핀테크 테마 (Clean, High-Trust, Responsive)
   ========================================================================== */

:root {
  color-scheme: light;

  /* 핵심 컬러 */
  --bg-app: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-hover: #f8fafc;
  --border: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #3b82f6;

  /* 텍스트 */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* 브랜드 & 액센트 */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;

  --accent-teal: #0d9488;
  --accent-teal-light: #f0fdfa;
  
  --badge-lifetime-bg: #ecfdf5;
  --badge-lifetime-text: #059669;
  --badge-discount-bg: #eff6ff;
  --badge-discount-text: #2563eb;

  --network-skt: #e11d48;
  --network-kt: #0284c7;
  --network-lgu: #db2777;

  /* 그림자 & 라디우스 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --------------------------------------------------------------------------
   GNB (Global Navigation Bar)
   -------------------------------------------------------------------------- */
.gnb {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.gnb__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.gnb__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--surface-alt);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.status-indicator.live {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.demo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #d97706;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
}

.gnb__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-nav:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

.btn-nav--admin {
  background: #f8fafc;
  color: #475569;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   메인 레이아웃 & 히어로 배너
   -------------------------------------------------------------------------- */
.main-container {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-badge--primary {
  background: var(--primary-light);
  color: var(--primary);
}

.pill-badge--subtle {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pill-badge--admin {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.text-gradient {
  background: linear-gradient(90deg, #2563eb, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 빠른 추천 테마 칩 */
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.quick-chip:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

.quick-chip.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   벤치마크 요약 배너 (6/12/24개월 최저가)
   -------------------------------------------------------------------------- */
.benchmark-summary {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

.benchmark-header__title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.benchmark-header__title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chip-info {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-teal);
  background: var(--accent-teal-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.benchmark-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color var(--transition-fast);
}

.benchmark-card:hover {
  border-color: var(--primary-border);
}

.benchmark-card__period {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.benchmark-card__price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.benchmark-card__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.benchmark-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   컨트롤 바 (망 탭 + 검색창)
   -------------------------------------------------------------------------- */
.control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.network-tabs {
  display: flex;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.network-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.network-tab:hover {
  color: var(--text-primary);
}

.network-tab.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-skt { background-color: var(--network-skt); }
.dot-kt { background-color: var(--network-kt); }
.dot-lgu { background-color: var(--network-lgu); }

.search-and-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 460px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 42px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.search-input-wrap input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  font-size: 1.2rem;
  color: var(--text-muted);
  display: none;
}

.btn-mobile-filter {
  display: none;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   콘텐츠 2열 레이아웃 (사이드바 필터 + 카드)
   -------------------------------------------------------------------------- */
.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* 사이드바 필터 */
.sidebar-filters {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 84px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-reset-filter {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.filter-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.form-select,
.form-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-select:focus,
.form-input:focus {
  border-color: var(--border-focus);
}

.range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-sep {
  color: var(--text-muted);
  font-weight: 700;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.range-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.form-range {
  width: 100%;
  accent-color: var(--primary);
  margin: 6px 0;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sidebar-sponsor-card {
  margin-top: 24px;
  padding: 12px 14px;
  background: var(--bg-app);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.sponsor-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 4px;
}

.sponsor-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   요금제 카드 리스트 영역
   -------------------------------------------------------------------------- */
.cards-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.results-count-wrap {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.results-count-strong {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
}

.sort-select-wrap select {
  height: 38px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   개별 요금제 카드 스타일
   -------------------------------------------------------------------------- */
.plan-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.plan-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.plan-card__badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.plan-card__left-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-network {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  color: #ffffff;
}
.badge-network.skt { background: var(--network-skt); }
.badge-network.kt { background: var(--network-kt); }
.badge-network.lgu { background: var(--network-lgu); }

.badge-provider {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.badge-type {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.badge-type.lifetime {
  background: var(--badge-lifetime-bg);
  color: var(--badge-lifetime-text);
}
.badge-type.discount {
  background: var(--badge-discount-bg);
  color: var(--badge-discount-text);
}

.badge-test-data {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-verified {
  font-size: 0.72rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 2px 6px;
  border-radius: 4px;
}

.plan-card__compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.plan-card__compare-btn:hover {
  background: var(--surface-alt);
}

.plan-card__compare-btn input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.plan-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.plan-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
}

.plan-card__highlight {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 12px;
}

/* 스펙 태그 칩 */
.plan-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.spec-chip strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* 가격 박스 */
.plan-card__price-box {
  background: var(--bg-app);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: right;
  border: 1px solid var(--border-subtle);
}

.price-main {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.price-unit {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-post {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.price-post strong {
  color: var(--text-primary);
}

.price-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}
.price-tagline.lifetime {
  background: var(--badge-lifetime-bg);
  color: var(--badge-lifetime-text);
}
.price-tagline.discount {
  background: #fef3c7;
  color: #b45309;
}

/* 총 납부금 타임라인 바 */
.plan-card__timeline {
  background: #fafaf9;
  border-top: 1px dashed var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

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

.timeline-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.timeline-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.timeline-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.timeline-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* 카드 하단 액션 버튼 */
.plan-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 10px;
}

.plan-card__benefits {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.benefit-pill {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: var(--surface-alt);
  padding: 3px 8px;
  border-radius: 4px;
}

.plan-card__actions {
  display: flex;
  gap: 8px;
}

.btn-detail {
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-detail:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  transition: background var(--transition-fast);
}

.btn-apply:hover {
  background: var(--primary-hover);
}

/* --------------------------------------------------------------------------
   광고 및 빈 상태
   -------------------------------------------------------------------------- */
.empty-state {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.btn-subtle:hover {
  background: var(--surface-alt);
  color: var(--text-primary);
}

.ad-slot-box {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  box-shadow: var(--shadow-sm);
}

.ad-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ad-label {
  font-size: 0.68rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ad-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   플로팅 비교 바
   -------------------------------------------------------------------------- */
.floating-compare-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(720px, calc(100% - 32px));
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.floating-compare-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.compare-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
}

.compare-btns {
  display: flex;
  gap: 8px;
}

.compare-btns .btn-subtle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.compare-btns .btn-primary {
  padding: 8px 20px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   모달 공통 스타일
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.25s ease;
}

@keyframes modalScale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card--lg { max-width: 680px; }
.modal-card--xl { max-width: 960px; }
.modal-card--admin { max-width: 1040px; }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-provider {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.btn-close-modal {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-app);
}

.modal-footer__price .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.modal-footer__price strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* 비교 테이블 전용 스타일 */
.modal-body--table {
  padding: 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare-table th {
  background: var(--bg-app);
  color: var(--text-secondary);
  font-weight: 700;
  width: 160px;
}

.compare-table td {
  color: var(--text-primary);
}

.compare-table-head th,
.compare-table-head td {
  background: #ffffff;
  border-bottom: 2px solid var(--border);
}

.compare-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.compare-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   관리자 대시보드 스타일
   -------------------------------------------------------------------------- */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.admin-tab {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.admin-tab.active {
  background: var(--surface-alt);
  color: var(--text-primary);
  font-weight: 700;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.admin-stat-card__title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-stat-card__val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-actions-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.admin-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}

.admin-log-item {
  background: var(--bg-app);
  border-left: 4px solid var(--primary);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.84rem;
}

.admin-log-item.failure {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.admin-log-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

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

.admin-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   푸터
   -------------------------------------------------------------------------- */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  margin-top: 40px;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 480px;
}

.footer-slogan {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.footer-col strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-link {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.footer-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   토스트 메시지
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 76px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   반응형 미디어 쿼리 (모바일 우선 & 태블릿/PC 대응)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    display: none; /* 모바일/태블릿에서는 바텀시트로 전환 */
  }

  .btn-mobile-filter {
    display: inline-flex;
  }

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

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .gnb__inner {
    width: calc(100% - 24px);
    height: 58px;
  }

  .btn-nav {
    padding: 6px 8px;
    font-size: 0.78rem;
    gap: 4px;
    white-space: nowrap;
  }

  .hero-section {
    padding: 24px 18px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hide-mobile {
    display: none;
  }

  .gnb__status {
    display: none;
  }

  .control-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .network-tabs {
    overflow-x: auto;
    white-space: nowrap;
    padding: 3px;
    gap: 2px;
  }

  .network-tab {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  .search-and-mobile {
    max-width: 100%;
  }

  .benchmark-summary {
    padding: 16px;
  }

  .benchmark-card {
    padding: 12px;
    overflow: hidden;
  }

  .plan-card {
    padding: 18px;
  }

  .plan-card__main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .plan-card__price-box {
    text-align: left;
  }

  .price-main {
    justify-content: flex-start;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* 모바일 플로팅 비교 바 */
  .floating-compare-bar {
    width: calc(100% - 24px);
    padding: 10px 14px;
    bottom: 14px;
  }

  .floating-compare-inner {
    gap: 10px;
  }

  .compare-info {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .compare-msg {
    display: none; /* 모바일에서는 배지만 표시 */
  }

  .compare-btns {
    gap: 6px;
    flex-shrink: 0;
  }

  .compare-btns .btn-subtle {
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .compare-btns .btn-primary {
    padding: 6px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  /* 모바일 바텀시트 모달 */
  .modal-backdrop#mobileFilterModal {
    align-items: flex-end;
    padding: 0;
  }

  .bottom-sheet {
    background: #ffffff;
    width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    animation: sheetUp 0.25s ease;
  }

  @keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 10px auto 4px;
  }

  .sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
  }

  .sheet-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
  }

  .btn-close-sheet {
    font-size: 1.6rem;
    color: var(--text-muted);
  }

  .sheet-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }

  .sheet-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-app);
  }

  .sheet-footer button {
    flex: 1;
  }
}

/* 운영자 화면과 정책 페이지 */
.catalog-status {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.support-page {
  width: min(55rem, calc(100% - 2rem));
  margin: 2rem auto;
  display: grid;
  gap: 1rem;
  overflow-wrap: anywhere;
}

.support-page h1 { margin: 0; }

.admin-panel, .policy-content {
  margin: 0 0 1rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card, #fff);
  display: grid;
  gap: 0.85rem;
}

.admin-panel[hidden] { display: none; }

.admin-buttons, .admin-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.admin-buttons input { flex: 1 1 12rem; min-width: 0; }

.admin-list { list-style: none; padding: 0; }
.admin-list li { justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.admin-list li span { flex: 1 1 12rem; min-width: 0; }

.recommendation-form, .share-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.recommendation-form label { width: 8.5rem; font-size: 0.85rem; }
.recommendation-form input { margin-top: 0.25rem; }
.plan-card__actions { flex-wrap: wrap; }
.plan-card__name a { color: inherit; }
.plan-card__name a:hover { text-decoration: underline; }
.btn-favorite[aria-pressed="true"] { color: var(--accent-teal); font-weight: 700; }
.modal-footer { flex-wrap: wrap; gap: 0.6rem; }
.share-actions { margin-bottom: 0; }
.share-actions [hidden] { display: none; }

.admin-editor {
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
}
.admin-editor label { display: grid; gap: 0.25rem; }
.admin-editor label:has(input[type=checkbox]) { display: flex; }
.admin-editor button { justify-self: start; }
.public-content { padding: 0.75rem 1rem; overflow-wrap: anywhere; }
.public-content article { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem; margin-bottom: 0.5rem; }
.affiliate-disclosure { font-size: 0.8rem; color: var(--text-secondary); padding: 0.35rem; overflow-wrap: anywhere; }
.more-plans { margin: 1rem auto; display: block; }
.more-plans[hidden] { display: none; }
.discovery-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 1rem;
  font-size: .875rem;
}
.discovery-links a { padding: .55rem .15rem; text-decoration: underline; }
.discovery-links a:focus-visible { outline: 2px solid currentColor; }
