/* ============================================
   DaDm (다디엠) - 다플로지 시리즈
   Color: Navy + Deep Blue + Gold + Orange Plane
   ============================================ */

:root {
  /* 다플로지 메인 톤 */
  --navy: #0A1628;
  --navy-2: #122745;
  --deep-blue: #1a3a8a;
  --deep-blue-soft: #f5f8ff;
  --gold: #d4af37;
  --gold-soft: #FBF3D7;
  --gold-deep: #b8932a;
  --plane: #F39C12;          /* 비행기 메인 컬러 */
  --plane-deep: #E67E22;

  --bg: #F8F9FC;
  --bg-soft: #EEF1F8;
  --white: #ffffff;
  --line: #DDE3F0;
  --line-soft: #E8ECF4;
  --text: #0A1628;
  --text-sub: #5B6675;
  --text-light: #9AA1B0;

  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 36px rgba(15, 23, 42, 0.10);
}

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

body {
  font-family: 'Pretendard Variable', 'Pretendard', 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================
   Header
   ============================================ */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--navy-2);
}
.header .brand {
  display: inline-flex; align-items: center; gap: 10px;
}
.header .plane {
  color: var(--plane);
  font-size: 22px;
  filter: drop-shadow(0 0 12px rgba(243, 156, 18, 0.45));
  transform: rotate(-12deg);
  display: inline-block;
}
.header .brand-text {
  display: inline-flex; flex-direction: column; line-height: 1.1;
}
.header .en {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.header .da { color: #fff; }
.header .m {
  color: var(--plane);
  font-style: italic;
}
.header .kr {
  font-size: 11px;
  font-weight: 700;
  color: #B7C0D1;
  margin-top: 2px;
  letter-spacing: 0.06em;
}
.header .pill-beta {
  display: inline-block;
  padding: 3px 8px;
  background: linear-gradient(135deg, #f5d77a 0%, #d4af37 60%, #b8932a 100%);
  color: #1a1a1a;
  font-size: 9.5px; font-weight: 900;
  letter-spacing: 0.12em;
  border-radius: 999px;
  margin-left: 4px;
}

.header .actions { display: flex; gap: 8px; }
.btn-connect {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--navy);
  border: none; border-radius: 8px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: all .15s;
}
.btn-connect:hover { background: var(--gold-soft); }
.btn-connect .ig-mark { color: var(--deep-blue); display: inline-flex; }

.btn-quiet {
  padding: 8px 14px;
  background: transparent;
  color: #B7C0D1;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.btn-quiet:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ============================================
   Main / Views
   ============================================ */
.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.view { display: none; }
.view.active { display: block; }

/* ============================================
   HERO (랜딩) — 좌 텍스트 / 우 일러스트
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--white) 0%, var(--deep-blue-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 44px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-deep);
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--navy);
}
.hero-title .line-1, .hero-title .line-2 { display: block; }
.hero-title .line-2 {
  color: var(--deep-blue);
  position: relative;
  display: inline-block;
}
.hero-title .line-2::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--plane);
  border-radius: 2px;
  margin-top: 8px;
}

.hero-desc {
  margin-top: 20px;
  font-size: 15.5px;
  color: var(--text-sub);
  line-height: 1.65;
}

.hero-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 28px;
}

.hero-foot {
  margin-top: 28px;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--text-sub);
  font-size: 12px;
}
.hero-foot .ig-tiny {
  display: inline-flex; align-items: center; gap: 5px;
}
.dot-sep { color: var(--text-light); }

.hero-art {
  width: 100%; min-height: 240px;
}

/* ============================================
   How section (3 cards)
   ============================================ */
.how { margin-top: 44px; }
.how-head { text-align: center; margin-bottom: 24px; }
.how-head h2 {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--navy);
}
.how-sub {
  font-size: 13.5px; color: var(--text-sub);
  margin-top: 6px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px 22px 20px;
  position: relative;
  transition: all .2s;
}
.how-card:hover {
  border-color: var(--deep-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.how-card-num {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800; font-size: 13px;
  color: var(--plane);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.how-card h3 {
  font-size: 16px; font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--navy);
}
.how-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
}
.how-card-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11.5px;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ============================================
   List state (자동화 목록)
   ============================================ */
.list-state { margin-top: 44px; }
.list-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 18px;
}
.list-title {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--navy);
}
.list-sub { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.auto-list { display: flex; flex-direction: column; gap: 10px; }
.auto-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow);
}
.auto-card-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--deep-blue-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  border: 1px solid var(--line-soft);
}
.auto-card-body { flex: 1; min-width: 0; }
.auto-card-title {
  font-weight: 800; font-size: 15px; color: var(--navy);
  margin-bottom: 4px;
}
.auto-card-meta {
  font-size: 12px; color: var(--text-sub);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.auto-card-meta strong { color: var(--text); font-weight: 800; }
.auto-card-status {
  font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-deep);
  letter-spacing: 0.04em;
}
.auto-card-del {
  background: none;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text-sub);
}
.auto-card-del:hover { border-color: #DD4444; color: #DD4444; }

/* ============================================
   WIZARD (위저드)
   ============================================ */
.wiz-top {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 22px 28px 0;
  border-bottom: none;
}
.link-back {
  background: none; border: none;
  color: var(--deep-blue);
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
}
.link-back:hover { text-decoration: underline; }

.wiz-h {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--navy);
}
.wiz-h-sub {
  font-size: 13.5px; color: var(--text-sub);
  margin-top: 4px; margin-bottom: 22px;
}

/* Step tabs (탭 형식, 원형 아님) */
.step-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
}
.step-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: none; border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-light);
  transition: all .15s;
}
.step-tab .tab-no {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-light);
}
.step-tab .tab-label {
  font-size: 14px; font-weight: 700;
}
.step-tab.active {
  border-bottom-color: var(--plane);
  color: var(--navy);
}
.step-tab.active .tab-no { color: var(--plane); }
.step-tab.done {
  color: var(--deep-blue);
}
.step-tab.done .tab-no { color: var(--deep-blue); }

.progress {
  height: 3px; background: var(--line-soft);
  margin: 0 -28px;
}
.progress-bar {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--plane), var(--plane-deep));
  transition: width .3s;
}

/* Wizard grid */
.wiz-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.wiz-left {
  padding: 32px 30px;
  border-right: 1px solid var(--line-soft);
  min-height: 480px;
}
.wiz-right {
  padding: 26px 24px;
  background: var(--bg);
}

/* Pane */
.pane { display: none; }
.pane.active { display: block; animation: fade .22s; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.pane-head { margin-bottom: 22px; }
.pane-head h3 {
  font-size: 17px; font-weight: 900;
  letter-spacing: -0.02em; color: var(--navy);
}
.pane-head p {
  font-size: 13px; color: var(--text-sub);
  margin-top: 4px;
}

/* Form */
.field { margin-bottom: 22px; }
.lbl {
  display: block;
  font-size: 12.5px; font-weight: 800;
  margin-bottom: 8px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.req { color: var(--plane); font-weight: 900; }
.ctl {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ctl:focus {
  border-color: var(--deep-blue);
  box-shadow: 0 0 0 3px rgba(26, 58, 138, 0.10);
}
.ctl.ta { min-height: 80px; resize: vertical; font-family: inherit; line-height: 1.55; }
select.ctl {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%235B6675' stroke-width='2'%3e%3cpolyline points='1,1 6,7 11,1'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.hint { font-size: 11.5px; color: var(--text-sub); margin-top: 6px; }
.hint.warn { color: var(--plane-deep); font-weight: 700; }
.mt8 { margin-top: 8px; }
.muted { font-size: 12.5px; color: var(--text-sub); padding: 8px 2px; }

/* Post grid */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.post-thumb {
  aspect-ratio: 1; border-radius: 10px;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, var(--deep-blue-soft), #fff);
  cursor: pointer; overflow: hidden;
  position: relative;
  transition: all .15s;
}
.post-thumb:hover { border-color: var(--deep-blue); transform: translateY(-1px); }
.post-thumb.selected {
  border-color: var(--plane);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.18);
}
.post-thumb-emoji {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -55%);
  font-size: 30px;
}
.post-thumb-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10.5px; padding: 5px 7px;
  background: linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.85));
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Keyword tags */
.kw-wrap { display: flex; gap: 8px; }
.kw-wrap .ctl { flex: 1; }
.btn-add {
  padding: 0 18px;
  background: var(--deep-blue); color: #fff;
  border: none; border-radius: var(--r-sm);
  font-weight: 700; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}
.btn-add:hover { background: #142d70; }
.kw-tags {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 10px;
}
.kw-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 12px;
  background: var(--deep-blue-soft);
  color: var(--deep-blue);
  border: 1px solid #D6DDF0;
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.kw-tag-x {
  background: none; border: none; cursor: pointer;
  color: var(--deep-blue); font-size: 14px;
  line-height: 1; padding: 0 2px;
}
.kw-tag-x:hover { color: #DD4444; }

/* Segment (radio cards) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; transition: all .15s;
  background: var(--white);
}
.seg-item input { margin-top: 3px; accent-color: var(--deep-blue); }
.seg-item:has(input:checked) {
  border-color: var(--deep-blue); background: var(--deep-blue-soft);
}
.seg-title {
  font-weight: 800; font-size: 13px;
  color: var(--navy);
}
.seg-rec {
  display: inline-block;
  font-size: 9.5px; font-weight: 900;
  padding: 2px 6px;
  background: var(--gold-soft); color: var(--gold-deep);
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.seg-desc {
  font-size: 11.5px; color: var(--text-sub);
  margin-top: 2px;
}

.check {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.check input { accent-color: var(--deep-blue); }

/* Attach tabs */
.attach-tabs {
  display: flex; gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.attach-tab {
  flex: 1;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-size: 12px; font-weight: 700;
  color: var(--text-sub);
  cursor: pointer;
  transition: all .12s;
}
.attach-tab.active {
  background: var(--white); color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.attach-pane { display: none; }
.attach-pane.active { display: block; }

.file-drop {
  border: 2px dashed var(--line);
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.file-drop:hover { border-color: var(--deep-blue); background: var(--deep-blue-soft); }
.file-drop-icon { font-size: 28px; margin-bottom: 8px; }
.file-drop-title {
  font-size: 13.5px; font-weight: 700; color: var(--navy);
}
.file-drop-sub {
  font-size: 11.5px; color: var(--text-sub);
  margin-top: 6px;
}
.file-drop-note {
  font-size: 10.5px; color: var(--plane-deep);
  font-weight: 700;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* ============================================
   Phone Preview (실제 인스타 톤)
   ============================================ */
.prev-head { margin-bottom: 12px; }
.prev-head h4 {
  font-size: 14px; font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.prev-head p {
  font-size: 11.5px; color: var(--text-sub);
  margin-top: 3px;
}

.phone {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #DDE0E6;
}
.phone-notch {
  height: 0;
}
.phone-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 18px 4px;
  font-size: 11.5px; font-weight: 800;
  color: var(--text);
}
.phone-bar .bar-r { display: inline-flex; gap: 3px; align-items: center; }
.phone-bar .bar-r i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text); display: inline-block;
}

.dm-top {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #F1F2F6;
}
.dm-back {
  font-size: 20px; cursor: pointer; line-height: 1;
}
.dm-peer { display: flex; align-items: center; gap: 9px; flex: 1; }
.dm-peer-pic {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #888 0%, #555 100%);
  display: flex; align-items: center; justify-content: center;
}
.dm-peer-name { font-weight: 700; font-size: 13px; line-height: 1.15; }
.dm-peer-sub { font-size: 10.5px; color: #03C75A; font-weight: 600; }
.dm-icons { display: flex; gap: 8px; color: var(--text-sub); font-size: 14px; }

.phone-body {
  padding: 14px 14px 8px;
  background: #fff;
  min-height: 380px;
  max-height: 560px;
  overflow-y: auto;
}
.dm-day {
  text-align: center;
  font-size: 10.5px; color: var(--text-light);
  font-weight: 700;
  margin: 4px 0 14px;
}
.dm-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-end; }
.dm-row.right { justify-content: flex-end; }
.dm-mini-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #777, #444);
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* 게시물 카드 */
.dm-post {
  background: #F4F4F5;
  border-radius: 16px;
  padding: 10px 12px;
  max-width: 240px;
  font-size: 12px;
}
.dm-post-empty { color: #6b7280; font-size: 11.5px; line-height: 1.5; }
.dm-post-real {
  display: flex; gap: 9px; align-items: center;
}
.dm-post-real-thumb {
  width: 40px; height: 40px; border-radius: 8px;
  background: linear-gradient(135deg, #DDE3F0, #C8CFDD);
  flex-shrink: 0; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.dm-post-real-cap {
  font-size: 11.5px; color: var(--text); line-height: 1.4;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* 말풍선 - 실제 인스타 톤 */
.dm-bubble {
  max-width: 220px;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
/* 받는 쪽: 회색 */
.dm-in {
  background: #EFEFEF;
  color: #000;
  border-bottom-left-radius: 4px;
}
/* 보내는 쪽: 인스타 그라데이션 (실제 사용자가 보게 될 모습) */
.dm-out {
  background: linear-gradient(135deg, #4F5BD5 0%, #962FBF 33%, #D62976 66%, #FA7E1E 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.dm-attach-slot { margin-top: 2px; }
.dm-attach-divider {
  height: 1px; background: rgba(255,255,255,0.32); margin: 7px 0;
}
.dm-attach-link {
  color: #fff; font-weight: 700; font-size: 12.5px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.dm-attach-file {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.18);
  border-radius: 10px; padding: 8px 10px;
  font-size: 12px; font-weight: 700;
}
.dm-attach-coupon {
  background: rgba(255,255,255,0.20);
  border: 1px dashed rgba(255,255,255,0.6);
  border-radius: 8px; padding: 7px 10px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.06em;
  display: inline-block;
  font-family: 'Inter', monospace;
}
.dm-coupon-desc {
  font-size: 11px; opacity: 0.92;
  margin-top: 3px;
}

.dm-meta {
  text-align: right;
  font-size: 9.5px; color: var(--text-light);
  margin-top: 0;
  padding-right: 4px;
  font-weight: 500;
}

.phone-input {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid #F1F2F6;
  background: #FAFAFC;
}
.ph-cam {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #4F5BD5, #D62976);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.ph-placeholder {
  flex: 1; font-size: 12px; color: var(--text-light);
}
.ph-icons { color: var(--text-sub); font-size: 14px; letter-spacing: 3px; }

.prev-foot {
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--text-light);
  line-height: 1.55;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
}

/* ============================================
   Wizard foot
   ============================================ */
.wiz-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 16px 16px;
}
.foot-r { display: flex; gap: 8px; }

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: var(--deep-blue);
  color: #fff;
  border: none; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { background: #142d70; transform: translateY(-1px); }
.btn-primary:disabled { background: #C9CDD9; cursor: not-allowed; transform: none; }
.btn-lg { padding: 13px 26px; font-size: 14.5px; }

.btn-secondary {
  padding: 10px 20px;
  background: #fff; color: var(--text);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--deep-blue); color: var(--deep-blue); }

.btn-ghost {
  padding: 10px 18px;
  background: none;
  color: var(--text-sub);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--navy); background: var(--bg-soft); }

/* ============================================
   Modal & Toast
   ============================================ */
.modal {
  position: fixed; inset: 0;
  background: rgba(10, 22, 40, 0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff;
  border-radius: 16px;
  max-width: 440px; width: 100%;
  padding: 36px 32px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.modal-x {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--text-sub);
}
.modal-plane {
  font-size: 42px;
  color: var(--plane);
  margin-bottom: 8px;
  transform: rotate(-12deg);
  display: inline-block;
  filter: drop-shadow(0 6px 16px rgba(243, 156, 18, 0.35));
}
.modal-card h3 {
  font-size: 18px; font-weight: 900;
  color: var(--navy); letter-spacing: -0.02em;
}
.modal-desc {
  color: var(--text-sub); font-size: 13px;
  margin: 10px 0 18px; line-height: 1.6;
}
.modal-list {
  list-style: none; text-align: left;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.modal-list li {
  font-size: 12.5px;
  color: var(--text);
  padding: 4px 0 4px 18px;
  position: relative;
  font-weight: 600;
}
.modal-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-weight: 900;
}
.modal-actions { display: flex; gap: 8px; justify-content: center; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 2000;
  animation: toastIn .25s;
}
.toast[hidden] { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .wiz-grid { grid-template-columns: 1fr; }
  .wiz-left { border-right: none; border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 720px) {
  .header { padding: 12px 16px; }
  .main { padding: 22px 16px 60px; }
  .hero { padding: 32px 22px; }
  .hero-title { font-size: 28px; }
  .how-grid { grid-template-columns: 1fr; }
  .seg { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .step-tab { padding: 12px 12px; }
  .step-tab .tab-label { font-size: 13px; }
}
