/* ============================================================
   RailBot - 코레일 자동 티켓팅 웹앱 스타일시트
   테마: 코레일 블루 #003876 / 레드 액센트 #E42313
   ============================================================ */

/* ── CSS 변수 ── */
:root {
  --blue:       #003876;
  --blue-dark:  #002558;
  --blue-light: #0055b3;
  --blue-pale:  #e8eef7;
  --red:        #E42313;
  --red-dark:   #b81a0e;
  --white:      #ffffff;
  --gray-50:    #f8f9fb;
  --gray-100:   #f0f2f5;
  --gray-200:   #e4e7ed;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --success:    #16a34a;
  --warning:    #d97706;
  --error:      #dc2626;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --transition: 0.2s ease;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Utility ── */
.hidden { display: none !important; }
.text-accent { color: var(--red); }
.br-mobile { display: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,56,118,.3);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 1.25rem;
}
.brand-icon { font-size: 1.4rem; }
.brand-text { letter-spacing: -.3px; }
.brand-text strong { font-weight: 800; }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: rgba(255,255,255,.85);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.btn-nav {
  background: var(--red);
  color: var(--white) !important;
  font-weight: 600;
  padding: 7px 18px;
}
.btn-nav:hover { background: var(--red-dark); }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   AD BANNERS
   ============================================================ */
.ad-banner {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px 0;
  text-align: center;
  min-height: 90px;
}
.ad-banner.ad-top { border-top: none; }
.ad-banner.ad-footer { border-bottom: none; }
.ad-banner.ad-middle { margin: 0; }
.ad-sidebar { margin-bottom: 20px; text-align: center; }
.ad-label {
  font-size: .7rem;
  color: var(--gray-400);
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content { flex: 1; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 16px;
  letter-spacing: .5px;
}
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
}
.stat span {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
}

/* Hero Visual Card */
.hero-visual { perspective: 1000px; }
.hero-card {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.1);
  transform: rotateY(-5deg) rotateX(3deg);
  transition: transform .4s ease;
}
.hero-card:hover { transform: rotateY(0) rotateX(0); }
.hcard-header {
  background: #1f2937;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hcard-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28ca41; }
.hcard-title {
  margin-left: 8px;
  color: var(--gray-400);
  font-size: .8rem;
}
.hcard-body { padding: 20px; }
.hcard-route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.hcard-station {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.hcard-arrow {
  color: var(--red);
  font-size: 1.2rem;
}
.hcard-train {
  color: var(--gray-400);
  font-size: .85rem;
  margin-bottom: 16px;
}
.hcard-log {
  font-family: 'Courier New', monospace;
  font-size: .78rem;
  background: #111827;
  border-radius: var(--radius-sm);
  padding: 12px;
}
.log-line {
  padding: 2px 0;
  color: var(--gray-300);
}
.log-time { color: var(--gray-500); }
.log-info { color: #60a5fa; }
.log-success { color: #4ade80; }
.success-line { color: #4ade80; }
.log-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #4ade80;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-top: 4px;
}
@keyframes blink { 50% { opacity: 0; } }
.hcard-badge {
  margin-top: 16px;
  display: inline-block;
  background: rgba(74,222,128,.15);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-pale);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--gray-50); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.step-content p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.7;
}
.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(to right, var(--blue), var(--blue-light));
  margin-top: 28px;
  align-self: flex-start;
  display: none;
}
.cta-center { text-align: center; }

/* ============================================================
   NOTICE
   ============================================================ */
.notice-section { background: var(--white); padding: 40px 0; }
.notice-card {
  background: #fffbf0;
  border: 1px solid #f0d080;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.notice-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.notice-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.notice-content ul { display: flex; flex-direction: column; gap: 6px; }
.notice-content li {
  font-size: .88rem;
  color: var(--gray-700);
  padding-left: 16px;
  position: relative;
}
.notice-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--warning);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); box-shadow: 0 4px 12px rgba(0,56,118,.3); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--gray-500); border: 1px solid var(--gray-300); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { padding: 13px 28px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-full { width: 100%; }
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1rem;
  color: var(--gray-400);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--transition);
}
.btn-icon:hover { color: var(--gray-700); }
.btn-icon-text { font-size: .9em; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
}
.card-badge {
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-500);
  transition: background var(--transition), color var(--transition);
}
.card-badge.running {
  background: rgba(22,163,74,.12);
  color: var(--success);
  animation: pulse 2s infinite;
}
.card-badge.success {
  background: rgba(22,163,74,.15);
  color: var(--success);
}
.card-badge.error, .card-badge.failed {
  background: rgba(220,38,38,.12);
  color: var(--error);
}
.card-badge.stopped {
  background: var(--gray-100);
  color: var(--gray-500);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.card-body { padding: 24px; }
.card-footer {
  padding: 12px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-section {
  border: none;
  margin-bottom: 28px;
  padding: 0;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-pale);
  letter-spacing: .3px;
}
.section-icon { font-size: 1rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.required { color: var(--red); }
.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  appearance: auto;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,56,118,.08);
}
.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  appearance: none;
}
.form-hint {
  font-size: .77rem;
  color: var(--gray-400);
  line-height: 1.4;
}
.input-with-btn {
  display: flex;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input-with-btn:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,56,118,.08);
}
.input-with-btn .form-control {
  border: none;
  box-shadow: none;
  border-radius: 0;
  flex: 1;
}
.input-with-btn .form-control:focus { box-shadow: none; }

/* Checkbox */
.form-group-checkbox { padding: 4px 0; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: .88rem;
  color: var(--gray-700);
  user-select: none;
}
.checkbox-label.small { font-size: .82rem; }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  background: var(--white);
  flex-shrink: 0;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Telegram fields */
.telegram-toggle { margin-bottom: 12px; }
.telegram-fields { margin-top: 12px; }

/* ── Telegram Guide (details/summary) ── */
.tg-guide {
  margin-top: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  overflow: hidden;
}
.tg-guide-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
  list-style: none;          /* Safari */
}
.tg-guide-toggle::-webkit-details-marker { display: none; }
.tg-guide-toggle::before {
  content: '▶';
  font-size: .65rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.tg-guide[open] > .tg-guide-toggle::before { transform: rotate(90deg); }
.tg-guide-toggle:hover { background: var(--blue-pale); }
.tg-guide-content {
  padding: 0 20px 20px;
}
.tg-guide-section {
  margin-bottom: 24px;
}
.tg-guide-section:last-of-type { margin-bottom: 0; }
.tg-guide-section h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--gray-200);
}
.tg-guide-section ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.tg-guide-section ol li {
  font-size: .86rem;
  color: var(--gray-700);
  line-height: 1.7;
}
.tg-guide-section ol li strong { color: var(--gray-900); }
.tg-guide-section ol li em {
  background: var(--blue-pale);
  padding: 1px 6px;
  border-radius: 4px;
  font-style: normal;
  font-size: .84rem;
}
code.tg-code {
  display: inline-block;
  background: var(--gray-900);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: .82rem;
  margin: 4px 0;
  word-break: break-all;
}

/* 텔레그램 대화 목업 */
.tg-guide-img { margin-top: 12px; }
.tg-mock-chat {
  background: #e5ddd5;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
}
.tg-msg {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .82rem;
  line-height: 1.6;
  max-width: 85%;
  word-break: break-word;
}
.tg-msg-user {
  background: #dcf8c6;
  color: var(--gray-900);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.tg-msg-bot {
  background: var(--white);
  color: var(--gray-700);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.tg-highlight {
  color: var(--blue);
  font-weight: 700;
}

/* 팁 박스 */
.tg-guide-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f0f7ff;
  border: 1px solid #bdd7f5;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 20px;
}
.tg-tip-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.tg-guide-tip strong {
  font-size: .88rem;
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}
.tg-guide-tip ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tg-guide-tip ul li {
  font-size: .82rem;
  color: var(--gray-700);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}
.tg-guide-tip ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue-light);
}

/* ── Usage Notice (모니터링 주의사항) ── */
.usage-notice {
  background: #fff8f0;
  border: 1px solid #f0d0a0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.usage-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: .92rem;
}
.usage-notice-header strong {
  color: var(--gray-900);
}
.usage-notice-icon {
  font-size: 1.1rem;
}
.usage-notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.usage-notice-list li {
  font-size: .85rem;
  color: var(--gray-700);
  line-height: 1.6;
  padding-left: 4px;
}
.usage-notice-list li strong {
  color: var(--gray-900);
}
.notice-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: .3px;
}
.notice-badge-red {
  background: #fee2e2;
  color: #dc2626;
}
.notice-badge-yellow {
  background: #fef3c7;
  color: #d97706;
}
.notice-badge-green {
  background: #dcfce7;
  color: #16a34a;
}
.notice-badge-blue {
  background: #dbeafe;
  color: #2563eb;
}
.notice-sub {
  display: block;
  font-size: .8rem;
  color: var(--gray-400);
  margin-top: 2px;
  padding-left: 52px;
}

/* Form Actions */
.form-actions {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   LOG OUTPUT
   ============================================================ */
.log-card .card-body { padding: 0; }
.log-body {
  height: 360px;
  overflow-y: auto;
  background: #0f172a;
  font-family: 'Courier New', Consolas, monospace;
  font-size: .8rem;
}
.log-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--gray-500);
}
.log-placeholder-icon { font-size: 2.5rem; opacity: .4; }
.log-placeholder p { font-size: .9rem; }
.log-output {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.log-entry {
  padding: 2px 0;
  color: #d1d5db;
  line-height: 1.5;
  word-break: break-all;
}
.log-entry .log-ts { color: #4b5563; }
.log-entry.INFO .log-lv { color: #60a5fa; }
.log-entry.WARNING .log-lv { color: #fbbf24; }
.log-entry.ERROR .log-lv { color: #f87171; }
.log-entry.SUCCESS { color: #4ade80; }
.log-entry.SUCCESS .log-lv { color: #4ade80; }
.log-entry.SYSTEM { color: #a78bfa; }

.log-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.log-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.log-status { font-size: .82rem; color: var(--gray-500); }
.log-count {
  font-size: .78rem;
  color: var(--gray-400);
  margin-left: 8px;
}

/* ============================================================
   PAGE HEADER (ticketing page)
   ============================================================ */
.page-container { padding-top: 36px; padding-bottom: 60px; }
.page-header { margin-bottom: 28px; }
.page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}
.page-subtitle { font-size: .95rem; color: var(--gray-500); }

/* ============================================================
   SIDEBAR / GUIDE
   ============================================================ */
.guide-card .card-body { padding: 20px; }
.guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.guide-step:last-child { margin-bottom: 0; }
.guide-num {
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.guide-step p { font-size: .85rem; color: var(--gray-600, var(--gray-500)); line-height: 1.55; }
.sticky-ad { position: sticky; top: 80px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal-overlay.hidden { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}
.modal-desc {
  font-size: .95rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal .btn { margin: 6px; min-width: 140px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.75); }
.footer-inner {
  display: flex;
  gap: 60px;
  padding: 40px 0 32px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .navbar-brand { color: var(--white); margin-bottom: 10px; pointer-events: none; }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 8px; }
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col li a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-disclaimer { margin-top: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-title { font-size: 2.2rem; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { flex-direction: column; align-items: center; }
  .step-connector { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 50px 0 60px; }
  .hero-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 50px 0; }
  .section-title { font-size: 1.5rem; }
  .navbar-menu { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--blue); padding: 12px; gap: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.3); z-index: 200; }
  .navbar-menu.open { display: flex; }
  .navbar { position: relative; }
  .navbar-toggle { display: flex; }
  .nav-link { padding: 10px 16px; width: 100%; }
  .br-mobile { display: block; }
  .notice-card { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* ── PWA 설치 배너 ── */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue);
  color: var(--white);
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  padding: 14px 0;
  animation: slideUpBanner .3s ease;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.pwa-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pwa-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pwa-text strong {
  font-size: .95rem;
}
.pwa-text span {
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}
.pwa-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-install-banner .btn-primary {
  background: var(--white);
  color: var(--blue);
}
.pwa-install-banner .btn-primary:hover {
  background: var(--gray-100);
}
.pwa-install-banner .btn-ghost {
  border-color: rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
}
@media (max-width: 640px) {
  .pwa-inner { flex-direction: column; text-align: center; }
  .pwa-actions { width: 100%; justify-content: center; }
}

/* ── Scrollbar (log area) ── */
.log-body::-webkit-scrollbar { width: 6px; }
.log-body::-webkit-scrollbar-track { background: #1f2937; }
.log-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
.log-body::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* ============================================================
   콘텐츠 페이지 공통 레이아웃
   ============================================================ */
.content-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }

@media (max-width: 960px) {
  .content-page-layout { grid-template-columns: 1fr; }
  .content-sidebar { display: none; }
}

/* ── 콘텐츠 페이지 헤더 ── */
.content-page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 60%, var(--blue-light) 100%);
  color: var(--white);
  padding: 52px 0 56px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.content-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.content-page-header .container { position: relative; }
.content-page-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.content-page-subtitle {
  font-size: 1rem;
  opacity: .85;
  max-width: 560px;
}

/* ============================================================
   카드 그리드 (콘텐츠 페이지용)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid var(--gray-200);
}
.content-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.content-card-thumb {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.content-card-thumb .thumb-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.35);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  letter-spacing: .5px;
}
.content-card-body {
  padding: 18px 20px 20px;
}
.content-card-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .3px;
}
.content-card-tag.red { background: #fdecea; color: var(--red); }
.content-card-tag.green { background: #ecfdf5; color: var(--success); }
.content-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.45;
}
.content-card-desc {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 12px;
}
.content-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.content-card-meta span {
  font-size: .78rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── 섹션 구분 ── */
.section-block {
  background: var(--white);
  padding: 32px 0;
}
.section-block + .section-block {
  border-top: 1px solid var(--gray-100);
}
.section-block-alt { background: var(--gray-50); }
.section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title-row .section-icon-lg { font-size: 1.6rem; }
.section-title-row h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
}
.section-title-row p {
  font-size: .85rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ── 인피드 광고 ── */
.ad-infeed {
  margin: 28px 0;
  padding: 12px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  text-align: center;
}
.ad-infeed .ad-label {
  margin-bottom: 6px;
}

/* ── CTA 섹션 ── */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  color: var(--white);
  margin: 32px 0;
}
.cta-section h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-section p {
  font-size: .95rem;
  opacity: .9;
  margin-bottom: 24px;
}
.btn-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* ============================================================
   할인 정보 페이지 - 할인 카드
   ============================================================ */
.discount-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.discount-card:hover { box-shadow: var(--shadow-md); }
.discount-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.discount-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.discount-icon.red-bg { background: #fdecea; }
.discount-icon.green-bg { background: #ecfdf5; }
.discount-icon.yellow-bg { background: #fffbeb; }
.discount-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.discount-rate {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--red);
  background: #fdecea;
  padding: 1px 10px;
  border-radius: 20px;
}
.discount-card-body {
  font-size: .85rem;
  color: var(--gray-600, #4b5563);
  line-height: 1.7;
}
.discount-card-body ul {
  list-style: disc;
  padding-left: 16px;
  margin-top: 8px;
}
.discount-card-body li { margin-bottom: 4px; }
.discount-condition {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--gray-500);
  border-left: 3px solid var(--blue-light);
}

/* ============================================================
   맛집/관광 페이지 - 탭 & 아코디언
   ============================================================ */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -2px;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.place-card {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}
.place-card:last-child { border-bottom: none; }
.place-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.place-info { flex: 1; min-width: 0; }
.place-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.place-desc {
  font-size: .83rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 6px;
}
.place-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.place-tag {
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-weight: 500;
}
.place-tag.food { background: #fef3c7; color: #92400e; }
.place-tag.spot { background: #dbeafe; color: #1e40af; }
.place-tag.cafe { background: #fce7f3; color: #9d174d; }

/* ============================================================
   인터스티셜 광고 오버레이
   ============================================================ */
.interstitial-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.interstitial-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: interstitialIn .25s ease;
}
@keyframes interstitialIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.interstitial-header {
  background: var(--blue);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
}
.interstitial-header strong { font-weight: 700; }
.interstitial-notice {
  font-size: .75rem;
  opacity: .8;
}
.interstitial-ad-container {
  padding: 0;
  min-height: 280px;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.interstitial-footer {
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}
.interstitial-footer p {
  font-size: .78rem;
  color: var(--gray-400);
  margin-bottom: 10px;
}
#interstitialCloseBtn {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 28px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
#interstitialCloseBtn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}
#interstitialCloseBtn:not(:disabled):hover { background: var(--blue-dark); }

/* ============================================================
   대기 중 볼거리 섹션 (ticketing 페이지)
   ============================================================ */
.waiting-section {
  margin-top: 20px;
}
.waiting-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.waiting-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .waiting-cards { grid-template-columns: 1fr; }
}
.waiting-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--gray-700);
  font-size: .83rem;
  font-weight: 600;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.waiting-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--blue-light);
  color: var(--blue);
  transform: translateY(-1px);
}
.waiting-card .wc-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.waiting-card .wc-text { line-height: 1.4; }
.waiting-card .wc-sub {
  display: block;
  font-size: .75rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ============================================================
   LEGAL CONTENT (privacy.html, terms.html)
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.legal-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
}
.legal-content .legal-date {
  font-size: .85rem;
  color: var(--gray-400);
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-pale);
}
.legal-content p,
.legal-content li {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content .contact-info {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
}
.legal-content .contact-info strong {
  color: var(--blue);
}

/* ============================================================
   플랜(등급) 시스템 스타일
   ============================================================ */

/* 플랜 배지 */
.plan-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.plan-badge.free {
  background: var(--gray-100);
  color: var(--gray-500);
}
.plan-badge.basic {
  background: #dbeafe;
  color: #2563eb;
}
.plan-badge.standard {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}
.plan-badge.premium {
  background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
  color: #fff;
}

/* 업그레이드 버튼 */
.btn-upgrade {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .78rem;
  padding: 4px 12px;
  border: none;
  border-radius: 20px;
  margin-left: 8px;
  cursor: pointer;
  vertical-align: middle;
  transition: opacity var(--transition);
}
.btn-upgrade:hover {
  opacity: 0.88;
}

/* 시간 제한 안내 */
.time-limit-notice {
  background: #fef3c7;
  border: 1px solid #f0d080;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .82rem;
  color: #92400e;
  margin-bottom: 12px;
}

/* 열차 선택 목록 */
.train-list-container {
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
}
.train-select-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.train-select-item:last-child {
  border-bottom: none;
}
.train-select-item:hover {
  background: var(--gray-50);
}
.train-select-info {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: .85rem;
}
.train-select-info strong {
  min-width: 100px;
  color: var(--blue);
}

/* 좌석 상태 뱃지 */
.seat-status {
  font-size: .78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.seat-status.available {
  background: #dcfce7;
  color: #16a34a;
}
.seat-status.sold-out {
  background: #fee2e2;
  color: #dc2626;
}

/* 비활성화된 입력 필드 */
.form-control:disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
}

/* ── 모니터링 현황 카드 ── */
.monitor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 24px;
}
.monitor-header {
  padding: 16px 20px;
  background: var(--blue);
  color: var(--white);
}
.monitor-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.monitor-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}
.monitor-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
.monitor-dot.stopped { background: var(--gray-400); animation: none; }
.monitor-dot.success { background: #fbbf24; animation: none; }
.monitor-label {
  font-size: .95rem;
  font-weight: 700;
}
.monitor-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  opacity: .85;
}
.monitor-stat-sep { opacity: .5; }
.monitor-countdown {
  margin-top: 8px;
  font-size: .82rem;
  opacity: .75;
}

/* 열차 현황 */
.monitor-trains {
  padding: 0;
}
.monitor-trains-placeholder {
  padding: 30px 20px;
  text-align: center;
  color: var(--gray-400);
  font-size: .88rem;
}
.train-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
  font-size: .88rem;
  transition: background var(--transition);
}
.train-row:last-child { border-bottom: none; }
.train-row:hover { background: var(--gray-50); }
.train-row.trying { background: #eff6ff; }
.train-name {
  font-weight: 700;
  color: var(--blue);
  min-width: 110px;
}
.train-time {
  color: var(--gray-700);
  min-width: 120px;
}
.train-route {
  color: var(--gray-500);
  flex: 1;
}
.train-seat-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.train-seat-badge.available {
  background: #dcfce7;
  color: #16a34a;
}
.train-seat-badge.sold-out {
  background: #f3f4f6;
  color: #9ca3af;
}
.train-seat-badge.reserving {
  background: #dbeafe;
  color: #2563eb;
  animation: pulse 1.5s infinite;
}

/* 상태 메시지 */
.monitor-message {
  padding: 12px 20px;
  font-size: .85rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  min-height: 20px;
}
.monitor-message:empty { display: none; }
.monitor-message.success-msg {
  background: #f0fdf4;
  color: #16a34a;
  font-weight: 600;
}
.monitor-message.error-msg {
  color: var(--error);
}

/* 모니터링 중지 버튼 */
.monitor-stop-area {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
}
.btn-monitor-stop {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-monitor-stop:hover { background: var(--red-dark); }

/* 열차 선택 섹션 (Step 2) */
.train-select-section {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  position: relative;
}
.train-select-header {
  margin-bottom: 16px;
}
.train-select-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.train-select-header p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.train-select-section .feature-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,245,255,.92);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* ── 역 검색 드롭다운 ── */
.station-picker {
  position: relative;
}
.station-search {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: white;
  transition: border-color var(--transition);
}
.station-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,56,118,.1);
}
.station-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  border: 2px solid var(--blue);
  border-radius: var(--radius-md);
}
.station-clear {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0 4px;
}
.station-clear:hover { color: var(--red); }
.station-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--blue);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 300px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: var(--shadow-md);
}
.station-group-label {
  padding: 8px 16px 4px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.station-group-label:first-child { border-top: none; }
.station-item {
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}
.station-item:hover {
  background: var(--blue-pale);
  color: var(--blue);
}
.station-item.disabled {
  color: var(--gray-300);
  pointer-events: none;
}
.station-no-result {
  padding: 16px;
  text-align: center;
  color: var(--gray-400);
  font-size: .9rem;
}

/* 크레딧 배지 (카드 헤더) */
.credits-badge {
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #dbeafe;
  color: #2563eb;
}
.btn-upgrade-small {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  cursor: pointer;
}
.btn-upgrade-small:hover { opacity: .9; }

/* 로그인 상태 표시 */
.step-login-status {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 1rem;
  color: #16a34a;
  text-align: center;
  margin-bottom: 16px;
}
.btn-monitor-restart {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.btn-monitor-restart:hover { background: var(--blue-light); }

/* 상세 로그 (접이식) */
.monitor-log-details {
  border-top: 1px solid var(--gray-100);
}
.monitor-log-toggle {
  padding: 10px 20px;
  font-size: .82rem;
  color: var(--gray-400);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.monitor-log-toggle::-webkit-details-marker { display: none; }
.monitor-log-toggle::before {
  content: '▶ ';
  font-size: .65rem;
  transition: transform var(--transition);
}
.monitor-log-details[open] > .monitor-log-toggle::before { content: '▼ '; }
.monitor-log-toggle:hover { color: var(--gray-700); background: var(--gray-50); }

@media (max-width: 640px) {
  .train-row { flex-wrap: wrap; gap: 6px; padding: 10px 16px; }
  .train-name { min-width: 90px; }
  .train-time { min-width: auto; }
  .train-route { display: none; }
}

/* ── 백그라운드 실행 버튼 ── */
.btn-background {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: var(--white);
  border: none;
}
.btn-background:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 4px 12px rgba(99,102,241,.3);
}
.btn-sub {
  font-size: .75rem;
  font-weight: 400;
  opacity: .8;
}

/* ── 백그라운드 상태 카드 ── */
.bg-status-card {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 12px;
}
.bg-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .9rem;
  color: #4338ca;
}
.bg-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}
.bg-status-msg {
  font-size: .85rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.bg-status-hint {
  font-size: .78rem;
  color: var(--gray-400);
}

/* ── 잠금 기능 표시 ── */
.locked-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f5ff;
  border: 1px dashed #c4b5fd;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: .82rem;
  color: #6d28d9;
  margin-top: 8px;
}
.lock-icon { font-size: .9rem; }
.lock-upgrade {
  margin-left: auto;
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}
.lock-upgrade:hover { text-decoration: underline; }

/* 잠금 오버레이 */
.feature-locked-overlay {
  position: relative;
  background: rgba(248,245,255,.9);
  border: 1px dashed #c4b5fd;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-top: 12px;
}
.locked-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lock-big-icon { font-size: 2rem; }
.locked-overlay-content p {
  font-size: .88rem;
  color: #6d28d9;
  margin: 0;
}
.btn-upgrade-inline {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  font-size: .8rem;
  padding: 6px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-upgrade-inline:hover { opacity: .9; }

/* 백그라운드 프로모 카드 */
.bg-promo-card {
  margin-top: 16px;
  border: 1px dashed #c4b5fd;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.bg-promo-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #f8f5ff;
}
.bg-promo-icon { font-size: 2rem; }
.bg-promo-text strong {
  display: block;
  font-size: .92rem;
  color: #6d28d9;
  margin-bottom: 4px;
}
.bg-promo-text p {
  font-size: .82rem;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.5;
}
.bg-promo-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .bg-promo-inner { flex-direction: column; text-align: center; }
}

/* 시간 제한 배너 강화 */
.time-limit-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef3c7;
  border: 1px solid #f0d080;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 16px;
}
.time-limit-banner span:first-child { font-size: 1.3rem; }
.time-limit-banner strong {
  font-size: .88rem;
  color: #92400e;
  display: block;
}
.time-limit-banner p {
  font-size: .78rem;
  color: #a16207;
  margin: 2px 0 0;
}
.time-limit-banner .btn-upgrade-inline { margin-left: auto; flex-shrink: 0; }
@media (max-width: 640px) {
  .time-limit-banner { flex-wrap: wrap; }
  .time-limit-banner .btn-upgrade-inline { margin-left: 0; margin-top: 8px; width: 100%; text-align: center; }
}

/* 요금제 비교 */
.pricing-section {
  margin: 32px 0;
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
}
.pricing-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  text-align: center;
  margin-bottom: 24px;
}
.pricing-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .pricing-table { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .pricing-table { grid-template-columns: 1fr; }
}
.pricing-col {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-col.popular {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px #7c3aed;
}
.pricing-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: #7c3aed;
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 0 0 8px 8px;
}
.pricing-header {
  padding: 20px 16px 16px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
}
.pricing-unit {
  font-size: .8rem;
  font-weight: 400;
  color: var(--gray-400);
}
.pricing-features {
  padding: 16px;
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-features li {
  font-size: .83rem;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
}
.pricing-features li.disabled {
  color: var(--gray-400);
}
.pricing-features li.disabled::before {
  content: '✕';
  color: var(--gray-300);
}
.pricing-action {
  padding: 12px 16px 16px;
}
.pricing-current {
  display: block;
  text-align: center;
  font-size: .85rem;
  color: var(--gray-400);
  padding: 10px;
}
.btn-full {
  width: 100%;
}

/* ============================================================
   스텝 위자드
   ============================================================ */

/* ── 인디케이터 ── */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 10px;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--gray-400);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: default;
  transition: all var(--transition);
  white-space: nowrap;
}
.wizard-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.wizard-step.active {
  color: var(--blue);
  font-weight: 600;
}
.wizard-step.active span {
  background: var(--blue);
  color: white;
}
.wizard-step.done {
  color: #16a34a;
}
.wizard-step.done span {
  background: #16a34a;
  color: white;
  font-size: 0;
}
.wizard-step.done span::after {
  content: '✓';
  font-size: .85rem;
}
.wizard-line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background: var(--gray-200);
  border-radius: 2px;
  transition: background var(--transition);
}
.wizard-line.done {
  background: #16a34a;
}

/* ── 스텝 패널 ── */
.step-panel {
  display: none;
  animation: fadeIn .25s ease;
}
.step-panel.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 스텝 제목/설명 ── */
.step-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.3;
}
.step-desc {
  font-size: 1rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.6;
}
.step-desc-large {
  font-size: 1.1rem;
  color: var(--gray-700);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ── 스텝 필드 ── */
.step-field {
  margin-bottom: 20px;
}
.step-field > label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.step-field input,
.step-field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.05rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: white;
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.step-field input:focus,
.step-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,56,118,.1);
}
.step-hint {
  font-size: .88rem;
  color: var(--gray-400);
  margin-top: 6px;
  line-height: 1.5;
}

/* 비밀번호 입력 그룹 */
.step-input-group {
  display: flex;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.step-input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,56,118,.1);
}
.step-input-group input {
  border: none !important;
  flex: 1;
  padding: 14px 16px;
  font-size: 1.05rem;
  box-shadow: none !important;
}
.step-input-group input:focus {
  outline: none;
  box-shadow: none !important;
  border-color: transparent !important;
}
.step-toggle-pw {
  background: none;
  border: none;
  padding: 0 14px;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-400);
  transition: color var(--transition);
  flex-shrink: 0;
}
.step-toggle-pw:hover { color: var(--gray-700); }

/* ── 스텝 행 레이아웃 ── */
.step-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 4px;
}
.step-row.step-row-2col {
  grid-template-columns: 1fr 1fr;
}
.step-arrow {
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 700;
  padding-bottom: 14px;
  text-align: center;
}
@media (max-width: 560px) {
  .step-row {
    grid-template-columns: 1fr;
  }
  .step-row.step-row-2col {
    grid-template-columns: 1fr;
  }
  .step-arrow { display: none; }
}

/* ── 스텝 액션 버튼 영역 ── */
.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.btn-step-next {
  flex: 1;
  padding: 18px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 56px;
}
.btn-step-next:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
.btn-step-prev {
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-500);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  min-height: 56px;
}
.btn-step-prev:hover { background: var(--gray-200); }

/* ── 시작/중지 버튼 (큰 버전) ── */
.btn-start-big {
  width: 100%;
  padding: 20px;
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0,56,118,.3);
  min-height: 64px;
}
.btn-start-big:hover {
  background: var(--blue-light);
  box-shadow: 0 6px 24px rgba(0,56,118,.4);
  transform: translateY(-2px);
}
.btn-stop-big {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: 12px;
  min-height: 56px;
}
.btn-stop-big:hover { background: var(--red-dark); }
.btn-bg-start {
  display: block;
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: 12px;
  min-height: 56px;
}
.btn-bg-start:hover { opacity: .9; }

/* ── 여정 요약 카드 ── */
.journey-summary {
  background: var(--blue);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
}
.journey-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
.journey-station {
  font-size: 1.7rem;
  font-weight: 800;
}
.journey-arrow {
  font-size: 1.4rem;
  opacity: .7;
}
.journey-datetime {
  font-size: 1rem;
  opacity: .85;
}

/* ── 상세 설정 (접이식) ── */
.advanced-settings {
  margin-top: 24px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.advanced-toggle {
  display: block;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--gray-50);
}
.advanced-toggle::-webkit-details-marker { display: none; }
.advanced-toggle:hover { background: var(--gray-100); }
.advanced-body {
  padding: 20px;
  border-top: 1.5px solid var(--gray-200);
  background: white;
}

/* 상세 설정 필드 */
.adv-field {
  margin-bottom: 20px;
  position: relative;
}
.adv-field > label:first-child {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.adv-field input,
.adv-field select {
  width: 100%;
  padding: 10px 14px;
  font-size: .95rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: white;
  box-sizing: border-box;
}
.adv-field input:focus,
.adv-field select:focus {
  outline: none;
  border-color: var(--blue);
}
.adv-sub-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 4px;
  display: block;
}
.adv-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.adv-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 560px) {
  .adv-row-4 { grid-template-columns: repeat(2, 1fr); }
  .adv-row-2 { grid-template-columns: 1fr; }
}

/* ── 플랜 정보 바 ── */
.plan-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}
