/* ================================================================
   주정차단소 알리미 — 청록 다크 팔레트 (#0891B2)
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #0891B2;
  --brand-dark:  #164E63;
  --brand-light: #CFFAFE;
  --brand-alt:   #22D3EE;
  --bg:          #ECFEFF;
  --surface:     #FFFFFF;
  --surface2:    #F8FAFC;
  --border:      #E2E8F0;
  --text:        #0F172A;
  --text-muted:  #64748B;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 4px 20px rgba(8, 145, 178, .10);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
  --danger:      #DC2626;
  --success:     #059669;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { background: var(--bg); color: var(--text); min-height: 100dvh; overflow-x: hidden; font-size: 16px; line-height: 1.6; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout ──────────────────────────────────────────── */
.layout-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
@media (max-width: 800px) {
  .layout-container { grid-template-columns: 1fr; padding: 16px 12px 40px; }
  .app-sidebar { display: none; }
}
@media (max-width: 520px) {
  .hero-title { font-size: 20px !important; }
  .hero-desc { font-size: 13px !important; }
}

/* ── Ad containers (AdSense) ─────────────────────────── */
.ad-container { display: block; width: 100%; text-align: center; }
.top-ad { background: #f9f9f9; padding: 8px 0; border-bottom: 1px solid var(--border); }
.middle-ad, .mid-ad { margin: 16px 0; padding: 8px 0; background: #f9f9f9; border-radius: var(--radius); }
.bottom-ad { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--border); }

/* ── Header ──────────────────────────────────────────── */
.main-header {
  background: linear-gradient(135deg, #164E63 0%, #0891B2 60%, #22D3EE 100%);
  padding: 16px 16px 28px;
  position: relative;
  overflow: hidden;
}
.main-header::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.main-header::after {
  content: ''; position: absolute; bottom: -30px; left: 20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.header-logo { display: flex; align-items: center; gap: 12px; }
.header-logo-icon {
  font-size: 28px; background: rgba(255,255,255,.2); border-radius: 12px;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}
.header-logo h1 { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.header-logo h1 a { color: #fff; }
.header-logo p { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 2px; }
.btn-share {
  font-size: 13px; color: rgba(255,255,255,.9);
  padding: 7px 14px; border-radius: 20px;
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.4);
  font-weight: 600; position: relative; z-index: 1; transition: background .15s;
}
.btn-share:hover { background: rgba(255,255,255,.3); }

.header-hero { max-width: 1100px; margin: 16px auto 0; position: relative; z-index: 1; }
.hero-title { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -.5px; line-height: 1.3; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,.9); margin-top: 6px; line-height: 1.5; }

/* ── 상단 네비 (모든 페이지 공용) ───────────────────── */
.top-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 16px;
  display: flex; gap: 6px; white-space: nowrap;
}
.top-nav-inner a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--surface2); transition: all .15s;
}
.top-nav-inner a:hover { background: var(--brand-light); color: var(--brand-dark); }
.top-nav-inner a.active { background: var(--brand); color: #fff; }

/* ── App Card ────────────────────────────────────────── */
.app-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px;
  padding: 20px;
}
.app-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--text); letter-spacing: -.2px; }
.app-card .section-desc { font-size: 13px; color: var(--text-muted); margin: -4px 0 14px; line-height: 1.6; }
.app-card p { font-size: 14px; line-height: 1.75; color: var(--text); margin: 0 0 10px; }
.app-card p:last-child { margin-bottom: 0; }
.app-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.app-card ul li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--text); }
.app-card ul li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.app-card ul li strong { color: var(--text); font-weight: 700; }

.card-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  margin: -20px -20px 20px;
}
.card-header-icon { font-size: 18px; }
.card-header-title { font-size: 15px; font-weight: 700; }

/* ── 대형 숏컷 카드 (4개) ───────────────────────────── */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.shortcut-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 24px 14px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
  box-shadow: var(--shadow-sm);
  text-align: center;
  min-height: 130px;
}
.shortcut-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(8, 145, 178, .18);
}
.shortcut-emoji { font-size: 36px; line-height: 1; }
.shortcut-title { font-size: 15px; font-weight: 800; color: var(--text); }
.shortcut-sub { font-size: 12px; color: var(--text-muted); margin-top: -4px; }

/* ── 인기 도시 bypass 링크 ──────────────────────────── */
.popular-cities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 720px) { .popular-cities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .popular-cities { grid-template-columns: repeat(2, 1fr); } }
.popular-city {
  padding: 10px 6px;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  transition: all .15s;
  border: 1px solid transparent;
}
.popular-city:hover {
  background: #fff;
  border-color: var(--brand);
}

/* ── 광역시도/시군구 그리드 ─────────────────────────── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 720px) { .region-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }

.region-btn {
  padding: 14px 8px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  transition: all .15s;
  text-align: center;
  cursor: pointer;
}
.region-btn:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.region-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── Step indicator ─────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.step-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  font-size: 13px; font-weight: 800;
}
.step-dot.active { background: var(--brand); color: #fff; }
.step-dot.done { background: var(--success); color: #fff; }
.step-label { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.step-label.active { color: var(--brand-dark); font-weight: 800; }
.step-bar { width: 20px; height: 2px; background: var(--border); }

/* ── Final result card (Step 3) ─────────────────────── */
.result-card {
  background: linear-gradient(135deg, var(--brand-light), #fff);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.result-card .result-region {
  font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px;
}
.result-card .result-title {
  font-size: 22px; font-weight: 900; color: var(--brand-dark); margin-bottom: 16px;
}
.result-phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 22px;
  background: #fff; border: 1.5px solid var(--brand);
  color: var(--brand-dark); font-weight: 700; font-size: 14px;
  margin: 6px 0 14px;
}

.btn-go-official {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(8, 145, 178, .3);
  transition: all .15s;
  margin: 0 auto;
}
.btn-go-official:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* ── 공통 버튼 ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  background: var(--brand); color: #fff;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 16px rgba(8, 145, 178, .25); transition: all .15s;
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid var(--brand); color: var(--brand-dark);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700;
  background: var(--surface); transition: background .15s;
}
.btn-outline:hover { background: var(--brand-light); }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface2); color: var(--text-muted);
  border-radius: 20px; font-size: 13px; font-weight: 600;
  margin-bottom: 14px; transition: all .15s;
}
.btn-back:hover { background: var(--brand-light); color: var(--brand-dark); }

/* ── Input / Form ─────────────────────────────────── */
.form-row { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, .12);
}

/* ── Calculator result box ────────────────────────── */
.calc-result {
  padding: 20px;
  background: linear-gradient(135deg, var(--brand-light), #fff);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  text-align: center;
  margin-top: 14px;
}
.calc-result .calc-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.calc-result .calc-value {
  font-size: 28px; font-weight: 900; color: var(--brand-dark);
  margin: 4px 0 10px; letter-spacing: -.5px;
}
.calc-result .calc-sub {
  font-size: 13px; color: var(--text); line-height: 1.5;
}
.calc-result .calc-deadline {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--brand);
  color: var(--brand-dark);
  border-radius: 20px;
  font-size: 13px; font-weight: 700;
}

/* ── Info card / guide-grid ──────────────────────── */
.info-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.info-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.info-card p { font-size: 14px; color: #374151; line-height: 1.75; margin-bottom: 8px; }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.info-card ul li { font-size: 13px; color: #374151; padding-left: 16px; position: relative; line-height: 1.65; }
.info-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--brand); }

.step-cards {
  display: grid; gap: 10px; counter-reset: step;
}
.step-card {
  display: flex; gap: 14px; padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  counter-increment: step;
  position: relative;
}
.step-card::before {
  content: counter(step);
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-card .step-body { flex: 1; min-width: 0; }
.step-card .step-title { font-size: 14px; font-weight: 800; margin-bottom: 3px; color: var(--text); }
.step-card .step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── FAQ ──────────────────────────────────────────── */
.faq-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
}
.faq-item summary {
  cursor: pointer; font-size: 14px; font-weight: 700;
  color: var(--text); padding: 2px 0; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '▸'; display: inline-block; margin-right: 8px;
  transition: transform .15s; color: var(--brand);
}
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item p { margin-top: 10px; font-size: 13.5px; color: #374151; line-height: 1.7; }

/* === 업그레이드 (eitc-grant에서 복사): 표 / 시나리오 / 관련링크 === */

.table-scroll { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.bracket-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.bracket-table thead th { background: var(--brand-light); color: var(--brand-dark); font-weight: 800; padding: 10px 8px; text-align: center; border-bottom: 2px solid var(--brand); font-size: 12px; line-height: 1.4; }
.bracket-table tbody td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--border); color: #374151; word-break: keep-all; }
.bracket-table tbody tr:last-child td { border-bottom: none; }
.bracket-table tbody tr:nth-child(even) { background: var(--surface2); }
.bracket-table td.amt { font-weight: 800; color: var(--brand-dark); font-size: 14px; }
.bracket-table .muted { font-size: 11px; color: var(--text-muted); font-weight: 400; display: block; margin-top: 2px; }
.bracket-note { margin-top: 12px; padding: 12px 14px; background: var(--brand-light); border-left: 4px solid var(--brand); border-radius: 8px; font-size: 12.5px; color: var(--brand-dark); line-height: 1.7; }

@media (max-width: 600px) {
  .table-scroll { border: none; background: transparent; }
  .bracket-table, .bracket-table tbody, .bracket-table tr, .bracket-table td { display: block; width: 100%; }
  .bracket-table thead { display: none; }
  .bracket-table tbody tr { background: #fff !important; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
  .bracket-table tbody tr:last-child { margin-bottom: 0; }
  .bracket-table tbody td { text-align: left; border: none; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
  .bracket-table tbody td:first-child { border-bottom: 1px dashed var(--border); padding-bottom: 8px; margin-bottom: 4px; }
  .bracket-table tbody td:not(:first-child)::before { content: attr(data-label); font-size: 11.5px; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
  .bracket-table tbody td.amt { color: var(--brand-dark); font-size: 14px; }
}

.scenario-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.scenario-item { background: var(--brand-light); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.scenario-q { font-size: 13px; color: var(--brand-dark); margin-bottom: 6px; line-height: 1.5; word-break: keep-all; }
.scenario-a { font-size: 12.5px; color: #374151; line-height: 1.65; word-break: keep-all; }
@media (max-width: 720px) { .scenario-grid { grid-template-columns: 1fr; } }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: all .15s; min-width: 0; }
.related-link:hover { background: var(--brand-light); border-color: var(--brand); transform: translateY(-1px); }
.rel-emoji { font-size: 24px; flex-shrink: 0; }
.rel-body { flex: 1; min-width: 0; }
.rel-title { font-size: 13px; font-weight: 700; color: #1F2937; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }

/* ── 랜덤 키워드 섹션 ───────────────────────────────── */
#random-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 20px; }
#random-examples::before { content: '🔥 자주 찾는 주정차 알림 키워드'; grid-column: 1 / -1; font-size: 15px; font-weight: 800; color: #1F2937; margin-bottom: 4px; }
@media (max-width: 520px) { #random-examples { grid-template-columns: 1fr; } }
.example-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  transition: all .15s;
}
.example-link:hover { background: var(--brand-light); border-color: var(--brand); }
.ex-icon { font-size: 16px; flex-shrink: 0; }
.ex-text { flex: 1; min-width: 0; }
.ex-title { display: block; font-size: 13px; font-weight: 700; color: #1F2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── ⭐ 광고 슬롯 시스템 (규격 2종) ────────────────── */
.ad-slot {
  display: block;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(135deg, #0891B2, #164E63);
  color: #fff;
  position: relative;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.ad-slot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ad-slot.banner-wide { aspect-ratio: 4/1; max-width: 800px; margin: 20px auto; }
.ad-slot.banner-square { aspect-ratio: 1/1; max-width: 320px; margin: 20px auto; }
.ad-slot .ad-inner {
  position: absolute; inset: 0;
  padding: 16px 22px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(0,0,0,0);
}
.ad-slot.has-image .ad-inner {
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 100%);
}
.ad-slot.banner-square .ad-inner {
  padding: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
  justify-content: flex-end;
}
.ad-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.ad-slot .ad-inner { z-index: 1; }
.ad-slot .ad-label {
  position: absolute; top: 6px; right: 10px;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.25);
  padding: 2px 6px; border-radius: 4px;
  z-index: 2;
}
.ad-slot .ad-title { font-size: 18px; font-weight: 800; line-height: 1.3; letter-spacing: -.2px; }
.ad-slot.banner-square .ad-title { font-size: 17px; }
.ad-slot .ad-subtitle { font-size: 13px; opacity: 0.9; margin-top: 2px; }
.ad-slot .ad-cta {
  display: inline-block; align-self: flex-start;
  margin-top: 8px;
  padding: 6px 14px;
  background: #fff;
  color: var(--brand-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 520px) {
  .ad-slot.banner-wide { aspect-ratio: 3/1; }
  .ad-slot .ad-title { font-size: 16px; }
  .ad-slot.banner-square { max-width: 300px; }
}

/* ── Sidebar (기본 CSS from template) ─────────────── */
.app-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-sidebar::-webkit-scrollbar { display: none; }
.sidebar-card { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.sidebar-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; padding-left: 8px; border-left: 3px solid var(--brand); color: var(--text); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 6px; }
.sidebar-list a { display: flex; align-items: flex-start; text-decoration: none; color: var(--text); padding: 7px 8px; border-radius: 8px; transition: background .15s; }
.sidebar-list a:hover { background: var(--brand-light); }
.link-icon { margin-right: 8px; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.link-content { flex: 1; min-width: 0; }
.link-title { display: block; font-size: 13px; font-weight: 600; color: var(--brand); margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-desc { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Footer ──────────────────────────────────────── */
.main-footer {
  border-top: 1px solid var(--border); padding: 20px;
  text-align: center; font-size: 12px; color: var(--text-muted);
  background: #fff;
}
.main-footer a { color: var(--brand-dark); font-weight: 600; margin: 0 4px; }
.main-footer .biz-info { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 11.5px; color: #888; }
.main-footer .biz-info strong { color: var(--text); font-weight: 700; }

/* ── Toast ───────────────────────────────────────── */
.share-toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1A1F36; color: #fff;
  padding: 12px 22px; border-radius: 99px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity .2s, transform .2s;
  z-index: 9999; box-shadow: 0 4px 20px rgba(0,0,0,.25); pointer-events: none;
}
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Legal pages (privacy/terms/contact) ──────────── */
.legal-content {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 24px;
}
.legal-content h2 { font-size: 18px; font-weight: 800; margin: 20px 0 10px; color: var(--brand-dark); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14px; line-height: 1.8; color: #374151; margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; margin-bottom: 10px; }
.legal-content ul li { font-size: 14px; line-height: 1.8; color: #374151; }
