/* ===== 포커스A 디자인 시스템 ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #0ea5e9;
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 15px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; border: none; }

/* ===== 공통 컴포넌트 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; transition: all 0.2s;
}
.btn-primary {
  background: var(--gradient); color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-outline {
  background: white; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn-gray { background: var(--border); color: var(--gray); }
.btn-gray:hover { background: var(--gray-light); color: white; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-primary { background: rgba(37,99,235,0.1); color: var(--primary); }
.badge-sale { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-new { background: rgba(16,185,129,0.1); color: var(--success); }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500; background: var(--bg); color: var(--gray);
  border: 1px solid var(--border);
}

/* ===== 헤더 ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--dark);
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 900;
}
.logo span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--gray);
  transition: color 0.2s; position: relative;
}
.nav a:hover, .nav a.active { color: var(--dark); }
.nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ===== 히어로 섹션 ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(37,99,235,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; }
.hero h1 {
  font-size: 52px; font-weight: 800; color: white; line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 18px; color: #94a3b8; line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; }

.hero-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(10px);
}
.hero-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.hero-card-icon {
  width: 44px; height: 44px; background: var(--gradient);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.hero-card h3 { color: white; font-size: 18px; font-weight: 700; }
.hero-card p { color: #64748b; font-size: 13px; }

.hero-stat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-item { text-align: center; }
.hero-stat-item .num { color: white; font-size: 24px; font-weight: 800; }
.hero-stat-item .label { color: #64748b; font-size: 12px; }

/* ===== 섹션 공통 ===== */
.section { padding: 80px 0; }
.section-dark { background: var(--dark2); }
.section-title { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-sub { font-size: 17px; color: var(--gray); margin-bottom: 48px; }
.section-header { text-align: center; }

/* ===== 스텝 섹션 ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
  text-align: center; padding: 40px 24px;
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient); color: white;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-icon { font-size: 36px; margin-bottom: 16px; }
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }
.step-arrow {
  position: absolute; right: -24px; top: 50%;
  transform: translateY(-50%); font-size: 28px; color: var(--primary);
  z-index: 1;
}

/* ===== 기능 섹션 ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: white; border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(37,99,235,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--gray); font-size: 14px; line-height: 1.6; }

/* ===== 신뢰 박스 (왜 포커스A) ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* ===== CTA 섹션 ===== */
.cta-section {
  background: var(--gradient); padding: 80px 0; text-align: center;
}
.cta-section h2 { font-size: 40px; font-weight: 800; color: white; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.btn-white { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #f1f5ff; }

/* ===== 푸터 ===== */
.footer {
  background: var(--dark); color: #94a3b8; padding: 60px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h4 { color: white; font-weight: 700; margin-bottom: 16px; font-size: 15px; }
.footer-col a { display: block; font-size: 14px; color: #64748b; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #475569;
}

/* ===== 진행 바 ===== */
.progress-bar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 20px 0; margin-top: 64px;
}
.progress-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
}
.progress-step {
  display: flex; align-items: center; gap: 10px;
}
.progress-step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; transition: all 0.3s;
}
.progress-step.done .progress-step-circle { background: var(--primary); color: white; }
.progress-step.active .progress-step-circle { background: var(--gradient); color: white; box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.progress-step.pending .progress-step-circle { background: var(--border); color: var(--gray); }
.progress-step-label { font-size: 14px; font-weight: 600; }
.progress-step.done .progress-step-label { color: var(--primary); }
.progress-step.active .progress-step-label { color: var(--dark); }
.progress-step.pending .progress-step-label { color: var(--gray-light); }
.progress-line { width: 80px; height: 2px; background: var(--border); margin: 0 8px; }
.progress-line.done { background: var(--primary); }

/* ===== 기사 작성 폼 ===== */
.write-page { padding: 48px 0 80px; }
.write-header { margin-bottom: 36px; }
.write-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.write-header p { color: var(--gray); }

.form-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 40px; margin-bottom: 24px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 14px; font-weight: 600; color: var(--dark);
  display: flex; align-items: center; gap: 6px;
}
.form-label .required { color: var(--danger); }
.form-input {
  padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--dark);
  transition: border-color 0.2s; background: white; width: 100%;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--gray-light); }
textarea.form-input { resize: vertical; min-height: 100px; }

.photo-upload-box {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; background: var(--bg);
  width: 100%;
}
.photo-upload-box:hover { border-color: var(--primary); background: rgba(37,99,235,0.03); }

.ai-btn-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.04) 0%, rgba(14,165,233,0.04) 100%);
  border: 2px dashed rgba(37,99,235,0.2);
  border-radius: var(--radius); padding: 32px; text-align: center;
  margin-bottom: 24px;
}
.ai-btn-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ai-btn-section p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }

.api-key-input {
  display: flex; gap: 12px; max-width: 600px; margin: 0 auto 20px;
}
.api-key-input input {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px;
}
.api-key-input input:focus { border-color: var(--primary); }

.preview-card {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 40px; margin-bottom: 24px;
  display: none;
}
.preview-card.visible { display: block; }
.preview-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.preview-content { font-size: 15px; line-height: 1.8; color: var(--dark2); white-space: pre-wrap; }
.preview-actions { display: flex; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ===== 매체사 선택 ===== */
.media-page { padding: 36px 0 80px; }
.media-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

.media-filters {
  background: white; border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.filter-search {
  position: relative; margin-bottom: 20px;
}
.filter-search input {
  width: 100%; padding: 12px 16px 12px 44px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; transition: border-color 0.2s;
}
.filter-search input:focus { border-color: var(--primary); }
.filter-search .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-light); font-size: 18px;
}

.filter-section { margin-bottom: 20px; }
.filter-section h4 { font-size: 13px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: white; color: var(--gray);
  transition: all 0.15s;
}
.filter-tag:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-tag.active { background: var(--primary); color: white; border-color: var(--primary); }

.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
  flex: 1; padding: 10px 12px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; text-align: center;
}
.price-range input:focus { border-color: var(--primary); }
.price-range span { color: var(--gray); font-size: 13px; }

.media-count { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.media-count strong { color: var(--dark); }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.media-card {
  background: white; border: 2px solid var(--border);
  border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: all 0.15s; position: relative;
}
.media-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.media-card.selected { border-color: var(--primary); background: rgba(37,99,235,0.03); }
.media-card.selected::after {
  content: '✓'; position: absolute; top: 10px; right: 12px;
  width: 22px; height: 22px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  display: flex;
}

.media-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.media-name { font-size: 14px; font-weight: 700; color: var(--dark); }
.media-price { font-size: 15px; font-weight: 800; color: var(--primary); }
.media-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.media-exposure {
  font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.media-exposure.naver-cp { background: #dcfce7; color: #15803d; }
.media-exposure.naver-plus { background: #dbeafe; color: #1d4ed8; }
.media-exposure.network { background: #fef3c7; color: #92400e; }

/* ===== 선택 요약 패널 ===== */
.summary-panel {
  background: white; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px;
  position: sticky; top: 88px;
}
.summary-panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.selected-list { min-height: 80px; max-height: 360px; overflow-y: auto; margin-bottom: 20px; }
.selected-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 8px;
}
.selected-item:last-child { border-bottom: none; }
.selected-item-name { font-size: 14px; font-weight: 500; color: var(--dark); flex: 1; }
.selected-item-price { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.selected-item-remove { color: var(--gray-light); font-size: 18px; width: 24px; text-align: center; }
.selected-item-remove:hover { color: var(--danger); }

.summary-empty { text-align: center; color: var(--gray-light); font-size: 14px; padding: 20px; }
.summary-total {
  border-top: 2px solid var(--border); padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.summary-total .label { font-weight: 600; color: var(--dark); }
.summary-total .amount { font-size: 22px; font-weight: 800; color: var(--primary); }

/* ===== 결제 페이지 ===== */
.checkout-page { padding: 48px 0 80px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }

.order-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; margin-bottom: 24px; }
.order-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--border); }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bg); }
.order-item:last-child { border-bottom: none; }
.order-item-info { flex: 1; }
.order-item-name { font-size: 15px; font-weight: 600; }
.order-item-meta { font-size: 13px; color: var(--gray); margin-top: 2px; }
.order-item-price { font-weight: 700; color: var(--dark); }

.article-preview-box {
  background: var(--bg); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border); font-size: 14px; line-height: 1.8;
  color: var(--dark2); max-height: 200px; overflow-y: auto;
}

.payment-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 36px; position: sticky; top: 88px; }
.payment-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.payment-summary { background: var(--bg); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.payment-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--gray); }
.payment-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; color: var(--dark); font-weight: 700; font-size: 18px; }
.payment-row.total .val { color: var(--primary); font-size: 22px; }

.payment-method { margin-bottom: 20px; }
.payment-method h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-option {
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; text-align: center; cursor: pointer; font-size: 13px;
  font-weight: 600; transition: all 0.15s; color: var(--gray);
}
.pay-option:hover { border-color: var(--primary-light); color: var(--primary); }
.pay-option.active { border-color: var(--primary); color: var(--primary); background: rgba(37,99,235,0.04); }
.pay-option .pay-icon { font-size: 20px; margin-bottom: 4px; }

.toss-btn {
  width: 100%; padding: 16px; background: #3282f6;
  color: white; border-radius: var(--radius); font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(50,130,246,0.3);
}
.toss-btn:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(50,130,246,0.4); }
.toss-btn:disabled { background: var(--gray-light); transform: none; box-shadow: none; cursor: not-allowed; }

.secure-info { display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: 12px; margin-top: 12px; justify-content: center; }

/* ===== 로딩 애니메이션 ===== */
.loading {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gray);
}
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===== 카카오 채널 플로팅 버튼 ===== */
.kakao-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none;
}
.kakao-float-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #FEE500; box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kakao-float:hover .kakao-float-btn {
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.kakao-float-label {
  background: rgba(0,0,0,0.65); color: white;
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  border-radius: 20px; white-space: nowrap;
}

/* ===== 토스트 알림 ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--dark); color: white; padding: 14px 20px;
  border-radius: var(--radius); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
  display: flex; align-items: center; gap: 10px; min-width: 280px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== 햄버거 메뉴 ===== */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer; padding: 6px;
  border-radius: var(--radius-sm); transition: background 0.2s; flex-shrink: 0;
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 99; overflow-y: auto;
  padding: 16px; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--border);
  animation: menuSlideIn 0.2s ease;
}
@keyframes menuSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  display: block; padding: 14px 16px; font-size: 16px; font-weight: 600;
  color: var(--dark); border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.15s; min-height: 48px; display: flex; align-items: center;
}
.mobile-menu > a:hover { background: var(--bg); color: var(--primary); }
.mobile-menu .mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-menu .mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mobile-menu .mobile-menu-actions a { text-align: center; padding: 14px; min-height: 48px; display: flex; align-items: center; justify-content: center; }

/* ===== 반응형 (태블릿) ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 42px; }
  .features-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== 반응형 (모바일) ===== */
@media (max-width: 768px) {

  /* ── 헤더 ── */
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-actions > .btn { display: none; }
  .header-actions { gap: 6px; }

  /* ── 히어로 ── */
  .hero { padding: 88px 0 40px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: 28px; line-height: 1.3; margin-bottom: 14px; }
  .hero p { font-size: 15px; margin-bottom: 24px; }
  .hero-badge { font-size: 12px; padding: 5px 12px; }
  .hero-actions { flex-direction: column; gap: 10px; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 15px 20px; font-size: 16px; }
  .hero-card { display: none; }

  /* ── 공통 섹션 ── */
  .section { padding: 40px 0; }
  .section-title { font-size: 24px; margin-bottom: 8px; }
  .section-sub { font-size: 14px; margin-bottom: 24px; }
  .container { padding: 0 16px; }
  .container-sm { padding: 0 16px; }

  /* ── 통계 ── */
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 13px; }

  /* ── 이용 방법 ── */
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .step-card { padding: 24px 18px; }
  .step-arrow { display: none; }
  .step-num { width: 44px; height: 44px; font-size: 18px; }

  /* ── 기능 ── */
  .features-grid, .trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 22px 18px; }

  /* ── 인기 매체사 ── */
  .media-preview-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .media-preview-item { padding: 12px 10px; }
  .media-preview-item .media-pname { font-size: 13px; }
  .media-preview-item .media-pprice { font-size: 14px; }

  /* ── 후기 ── */
  .testimonial-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .testimonial-card { padding: 20px 16px; }

  /* ── CTA ── */
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 24px; margin-bottom: 12px; }
  .cta-section p { font-size: 14px; margin-bottom: 24px; }
  .cta-section .btn { width: 100%; max-width: 320px; padding: 15px 20px; font-size: 16px; }

  /* ── 푸터 ── */
  .footer { padding: 36px 0 24px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; margin-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 12px; }

  /* ── 진행 바 ── */
  .progress-bar { padding: 14px 0; }
  .progress-step-label { display: none; }
  .progress-line { width: 32px; }
  .progress-step-circle { width: 30px; height: 30px; font-size: 12px; }

  /* ── 폼 공통 ── */
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .form-group.full { grid-column: auto; }
  .form-input { padding: 11px 14px; font-size: 15px; }
  textarea.form-input { min-height: 80px; }

  /* ── 기사 작성 페이지 ── */
  .write-page { padding: 20px 0 48px; }
  .write-header h2 { font-size: 22px; }
  .write-header p { font-size: 14px; }
  .preview-card { padding: 20px 16px; }
  .preview-actions { flex-direction: column; }
  .preview-actions .btn { width: 100%; justify-content: center; }

  /* ── 매체사 선택 페이지 ── */
  .media-page { padding: 16px 0 40px; }
  .media-layout { grid-template-columns: 1fr; }
  .media-layout > div:last-child { order: -1; }
  .media-grid { grid-template-columns: 1fr; gap: 8px; }
  .media-card { padding: 12px; }
  .price-range { flex-wrap: wrap; }
  .price-range input { min-width: 0; }
  .media-name { font-size: 13px; }
  .media-price { font-size: 13px; }
  .summary-panel { position: static; }
  .filter-tags { gap: 6px; }
  .filter-tag { padding: 5px 10px; font-size: 12px; }

  /* ── 결제 페이지 ── */
  .checkout-page { padding: 20px 0 40px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-card { padding: 18px 14px; margin-bottom: 14px; }
  .order-card h3 { font-size: 16px; margin-bottom: 14px; }
  .payment-card { position: static; padding: 18px 14px; }
  .payment-options { grid-template-columns: 1fr 1fr; }
  .info-form { grid-template-columns: 1fr !important; }
  .info-form .full { grid-column: auto !important; }

  /* ── 버튼 ── */
  .btn-lg { padding: 14px 24px; font-size: 16px; }
  .btn-sm { padding: 9px 14px; font-size: 13px; min-height: 40px; }

  /* ── 카카오 플로팅 ── */
  .kakao-float { bottom: 16px; right: 14px; }
  .kakao-float-btn { width: 48px; height: 48px; }
  .kakao-float-label { font-size: 10px; }

  /* ── 토스트 ── */
  .toast { min-width: unset; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast-container .toast { width: 100%; }
}

/* ===== 반응형 (소형 폰) ===== */
@media (max-width: 400px) {
  .hero h1 { font-size: 24px; }
  .section-title { font-size: 22px; }
  .stats-row { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .stat-num { font-size: 26px; }
  .media-grid { grid-template-columns: 1fr; }
  .filter-tags { gap: 6px; }
  .filter-tag { font-size: 12px; padding: 4px 10px; }
  .media-preview-grid { grid-template-columns: 1fr 1fr !important; }
  .db-tab { padding: 10px 10px; font-size: 12px; }
}
