/* ===== 링크민트 디자인 시스템 ===== */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #2dd4bf;
  --accent: #f59e0b;
  --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, #0d9488 0%, #f59e0b 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: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;
}

* { 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(13,148,136,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,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: var(--radius-sm);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-primary { background: rgba(13,148,136,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: var(--radius-sm);
  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: 4px; }
.nav a {
  font-size: 16px; font-weight: 700; color: #1e293b;
  padding: 9px 16px; border-radius: 8px;
  text-decoration: none; transition: all 0.15s;
  white-space: nowrap;
}
.nav a:hover { color: #0d9488; background: rgba(13,148,136,.06); }
.nav a.active { color: #0d9488; }

.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(13,148,136,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(13,148,136,0.15); border: 1px solid rgba(13,148,136,0.3);
  color: #99f6e4; padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: #5eead4; }
.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(13,148,136,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; }

/* ===== 신뢰 박스 ===== */
.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(13,148,136,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(13,148,136,0.03); }

.ai-btn-section {
  background: linear-gradient(135deg, rgba(13,148,136,0.04) 0%, rgba(245,158,11,0.04) 100%);
  border: 2px dashed rgba(13,148,136,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: var(--radius-sm); 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(13,148,136,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: #0f766e; }
.media-exposure.network { background: #fef3c7; color: #92400e; }
.media-exposure.etc { background: #f3f4f6; color: #6b7280; }

/* ===== 선택 요약 패널 ===== */
.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(13,148,136,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: #1b64da; 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, .features-grid-v2 { 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, .features-grid-v2 { 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; }
}

/* ===================================================
   고도화 디자인 — 애니메이션 & 스크롤 효과
   =================================================== */

/* ── 히어로 배경 오브 애니메이션 ── */
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; will-change: transform;
}
.hero-orb-1 {
  width: 520px; height: 520px; top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(13,148,136,0.28) 0%, transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px; top: 30%; right: -80px;
  background: radial-gradient(circle, rgba(245,158,11,0.22) 0%, transparent 70%);
  animation: orbFloat2 18s ease-in-out infinite;
}
.hero-orb-3 {
  width: 300px; height: 300px; bottom: -60px; left: 40%;
  background: radial-gradient(circle, rgba(245,158,11,0.18) 0%, transparent 70%);
  animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-20px,20px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-30px,40px) scale(1.1); }
  70%      { transform: translate(20px,-20px) scale(0.92); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-40px,-30px) scale(1.12); }
}

/* 히어로 그리드 오버레이 */
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 히어로 배지 펄스 */
.hero-badge span {
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(96,165,250,0.5); }
  50%      { opacity: 0.8; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(96,165,250,0); }
}

/* 히어로 카드 글로우 */
.hero-card {
  box-shadow: 0 0 60px rgba(13,148,136,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: cardGlow 4s ease-in-out infinite;
}
@keyframes cardGlow {
  0%,100% { box-shadow: 0 0 40px rgba(13,148,136,0.12), inset 0 1px 0 rgba(255,255,255,0.08); }
  50%      { box-shadow: 0 0 80px rgba(13,148,136,0.22), inset 0 1px 0 rgba(255,255,255,0.1); }
}

/* ── 스크롤 리빌 ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ── 통계 섹션 고급화 ── */
.stats-section-v2 {
  padding: 56px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.stats-row-v2 {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; text-align: center;
}
.stat-item-v2 {
  padding: 20px 0;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.stat-item-v2:last-child { border-right: none; }
.stat-num-v2 {
  font-size: 48px; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label-v2 { font-size: 14px; color: #64748b; margin-top: 8px; font-weight: 500; }

/* ── 스텝 카드 고급화 ── */
.step-card-v2 {
  text-align: center; padding: 44px 28px;
  background: white; border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(13,148,136,0.07);
  position: relative; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.step-card-v2::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0d9488, #0f766e);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.step-card-v2:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(13,148,136,0.13); }
.step-card-v2:hover::before { transform: scaleX(1); }
.step-num-v2 {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: white; font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 8px 20px rgba(13,148,136,0.3);
}
.step-icon-v2 { font-size: 0; margin-bottom: 16px; } /* 아이콘은 SVG로 대체 */
.step-card-v2 h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 10px; letter-spacing: -0.02em; }
.step-card-v2 p { font-size: 14px; color: #64748b; line-height: 1.7; }
.step-arrow-v2 {
  position: absolute; top: 50%; right: -20px; transform: translateY(-50%);
  width: 40px; height: 40px; background: white; border-radius: 50%;
  border: 2px solid #e2e8f0; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #0d9488; z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── 피처 카드 고급화 ── */
.features-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card-v2 {
  padding: 32px 28px; background: white; border-radius: var(--radius-lg);
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, border-color 0.3s;
  position: relative; overflow: hidden;
}
.feature-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(13,148,136,0.1);
  border-color: rgba(13,148,136,0.15);
}
.feature-icon-v2 {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(245,158,11,0.08));
}
.feature-card-v2 h3 {
  font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.feature-card-v2 p { font-size: 14px; color: #64748b; line-height: 1.75; }

/* ── 인기매체사 카드 고급화 ── */
.media-card-v2 {
  background: white; border-radius: 16px; padding: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.media-card-v2::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,148,136,0.03), rgba(245,158,11,0.03));
  opacity: 0; transition: opacity 0.3s;
}
.media-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,148,136,0.1);
  border-color: rgba(13,148,136,0.18);
}
.media-card-v2:hover::after { opacity: 1; }
.media-card-v2 .mc-name { font-weight: 800; font-size: 14px; color: #0f172a; margin-bottom: 8px; letter-spacing: -0.01em; }
.media-card-v2 .mc-price { font-size: 18px; font-weight: 900; color: #0d9488; margin-bottom: 6px; }
.media-card-v2 .mc-tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-sm); display: inline-block; }
.mc-tag-sale { background: #fef2f2; color: #dc2626; }
.mc-tag-cp { background: #f0fdf4; color: #16a34a; }
.mc-tag-plus { background: #eff6ff; color: #0d9488; }

/* ── 후기 카드 고급화 ── */
.review-card-v2 {
  background: white; border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.review-card-v2::before {
  content: '"'; position: absolute; top: 20px; right: 24px;
  font-size: 80px; line-height: 1; color: #eff6ff; font-family: Georgia, serif;
  pointer-events: none;
}
.review-card-v2:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.review-stars { color: #f59e0b; font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.review-text { font-size: 15px; line-height: 1.8; color: #334155; margin-bottom: 20px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 14px; color: #0f172a; }
.review-role { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* ── CTA 고급화 ── */
.cta-v2 {
  padding: 100px 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  text-align: center;
}
.cta-v2-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-v2-orb-1 {
  width: 400px; height: 400px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
  animation: orbFloat1 16s ease-in-out infinite;
}
.cta-v2-orb-2 {
  width: 300px; height: 300px; bottom: -60px; right: -60px;
  background: radial-gradient(circle, rgba(245,158,11,0.2) 0%, transparent 70%);
  animation: orbFloat2 12s ease-in-out infinite;
}
.cta-v2 h2 {
  font-size: 44px; font-weight: 900; color: white; margin-bottom: 16px;
  line-height: 1.2; letter-spacing: -0.03em; position: relative;
}
.cta-v2 p { font-size: 18px; color: #94a3b8; margin-bottom: 40px; position: relative; }
.btn-white-v2 {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 44px; background: white; color: #1e293b;
  border-radius: 12px; font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.btn-white-v2:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,0.4); }

/* ── 신뢰 배지 섹션 ── */
.trust-badge-row {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap; padding: 28px 0;
  border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
  margin-bottom: 60px;
}
.trust-badge-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: #475569;
}
.trust-badge-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

@media (max-width: 768px) {
  .stats-row-v2 { grid-template-columns: repeat(2,1fr); }
  .stat-item-v2:nth-child(2) { border-right: none; }
  .stat-num-v2 { font-size: 34px; }
  .step-card-v2 { padding: 28px 18px; }
  .step-arrow-v2 { display: none; }
  .cta-v2 h2 { font-size: 28px; }
  .cta-v2 p { font-size: 15px; }
  .trust-badge-row { gap: 16px; }
}
