@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@300;400;500;600;700;800;900&display=swap');

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

body {
  font-family: 'Pretendard', 'Segoe UI', -apple-system, sans-serif;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 50%, #fdf2f8 100%);
  color: #1e293b;
  min-height: 100vh;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

/* ── 헤더 ── */
header { text-align: center; padding: 32px 0 24px; }

header h1 {
  font-size: 30px;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

header p { color: #64748b; font-size: 13px; font-weight: 500; }

/* ── 탭 ── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 16px;
  padding: 5px;
  box-shadow: 0 4px 24px rgba(139,92,246,0.08);
}

.tab {
  flex: 1;
  padding: 11px 20px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  font-family: inherit;
}

.tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.tab:hover:not(.active) { background: #f5f3ff; color: #7c3aed; }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── 카드 ── */
.card {
  background: #ffffff;
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: 0 4px 30px rgba(139,92,246,0.06), 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 40px rgba(139,92,246,0.12);
  transform: translateY(-1px);
}

.card h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
}

.step-num {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

/* ── 채널 버튼 그리드 ── */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.channel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 14px;
  background: linear-gradient(145deg, #ffffff, #faf5ff);
  border: 1.5px solid #ede9fe;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  min-height: 86px;
  color: #1e293b;
  overflow: hidden;
  min-width: 0;
}
.channel-btn > * { max-width: 100%; }

.channel-btn:hover {
  border-color: #a78bfa;
  background: linear-gradient(145deg, #faf5ff, #f3e8ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,92,246,0.15);
}

.channel-btn.selected {
  border-color: #8b5cf6;
  background: linear-gradient(145deg, #f5f3ff, #ede9fe);
  box-shadow: 0 6px 24px rgba(139,92,246,0.25);
}

.channel-num {
  font-size: 10px;
  font-weight: 800;
  color: #7c3aed;
  background: #ede9fe;
  border-radius: 5px;
  padding: 2px 7px;
  line-height: 1.4;
}

.channel-btn.selected .channel-num { background: #7c3aed; color: #fff; }

.channel-name {
  font-size: 13px; font-weight: 700; color: #1e293b;
  text-align: center; line-height: 1.3;
  width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.channel-btn.selected .channel-name { color: #5b21b6; }

.channel-topic {
  font-size: 11px; color: #94a3b8; font-weight: 500;
  width: 100%; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.channel-btn.selected .channel-topic { color: #7c3aed; }

.btn-generate {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
  font-family: inherit;
  letter-spacing: -0.3px;
}

.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(99,102,241,0.45); }
.btn-generate:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; box-shadow: none; transform: none; }

/* ── 모드 전환 버튼 ── */
.mode-btn { padding: 8px 16px; border: none; background: transparent; color: #94a3b8; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.mode-btn.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 8px; }
.mode-btn:hover:not(.active) { color: #7c3aed; background: #f5f3ff; }

/* ── 에이전시 버튼 ── */
.agency-grid { display: flex; flex-direction: column; gap: 8px; }

.agency-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: #faf5ff;
  border: 1.5px solid #ede9fe;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  color: #1e293b;
}

.agency-btn:hover { border-color: #a78bfa; background: #f5f3ff; }
.agency-btn.selected {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  box-shadow: 0 4px 18px rgba(16,185,129,0.2);
}

.agency-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.agency-btn.selected .agency-name { color: #059669; }

/* ── 입력 ── */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="search"], input[type="url"] {
  flex: 1;
  background: #faf5ff;
  border: 1.5px solid #ede9fe;
  border-radius: 11px;
  padding: 11px 16px;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="tel"]:focus, input[type="search"]:focus, input[type="url"]:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
  background: #fff;
}

input::placeholder { color: #c4b5fd; }

select {
  background: #faf5ff;
  border: 1.5px solid #ede9fe;
  border-radius: 11px;
  padding: 11px 16px;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}
select:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.15); }

textarea {
  background: #faf5ff;
  border: 1.5px solid #ede9fe;
  border-radius: 11px;
  padding: 11px 16px;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}
textarea:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.15); background: #fff; }

/* ── 버튼 ── */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 11px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(99,102,241,0.4); }
.btn-primary:disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; box-shadow: none; }

.btn-start {
  width: 100%;
  background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 16px;
  box-shadow: 0 6px 24px rgba(16,185,129,0.35);
  font-family: inherit;
}
.btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(16,185,129,0.45); }

.btn-save {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  border: none;
  border-radius: 11px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(16,185,129,0.3);
  font-family: inherit;
  transition: all 0.3s;
}
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(16,185,129,0.4); }

/* ── 시나리오 ── */
.scenario-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

.scenario-item {
  background: #faf5ff;
  border: 1.5px solid #ede9fe;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.3s;
}
.scenario-item:hover { border-color: #a78bfa; background: #f5f3ff; transform: translateX(3px); box-shadow: 0 6px 20px rgba(139,92,246,0.1); }
.scenario-item.selected { border-color: #10b981; background: linear-gradient(135deg, #ecfdf5, #d1fae5); box-shadow: 0 4px 20px rgba(16,185,129,0.15); }

.scenario-num { font-size: 11px; color: #7c3aed; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.scenario-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 5px; line-height: 1.4; }
.scenario-tags { font-size: 12px; color: #94a3b8; }

.scenario-wrapper { display: flex; flex-direction: column; }

.scenario-inline-preview {
  background: #faf5ff;
  border: 1px solid #ede9fe;
  border-top: none;
  border-radius: 0 0 14px 14px;
  padding: 18px;
  margin-top: -2px;
  font-size: 13px;
  line-height: 1.7;
  animation: slideDown 0.25s ease-out;
}

.scenario-inline-preview .label { color: #7c3aed; font-weight: 800; font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; margin-top: 12px; }
.scenario-inline-preview .label:first-child { margin-top: 0; }
.scenario-inline-preview .value { color: #475569; margin-bottom: 4px; }

@keyframes slideDown { from{opacity:0;max-height:0;padding:0 18px} to{opacity:1;max-height:600px;padding:18px} }

/* ── 진행상황 ── */
.progress-bar { background: #f1f5f9; border-radius: 12px; height: 10px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6, #10b981); width: 0%; transition: width 0.5s; animation: pulse 2s infinite; border-radius: 12px; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.8} }

.progress-log {
  background: #faf5ff;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  padding: 16px 18px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.log-item { padding: 5px 0; border-bottom: 1px solid #ede9fe; color: #64748b; }
.log-item:last-child { color: #059669; font-weight: 700; border: none; }

/* ── 결과 ── */
.result-item { margin-bottom: 14px; }
.result-label { font-size: 10px; color: #7c3aed; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 5px; }
.result-value { background: #faf5ff; border: 1px solid #ede9fe; border-radius: 11px; padding: 13px 16px; font-size: 14px; color: #475569; word-break: break-all; }
.result-url { color: #8b5cf6; text-decoration: underline; cursor: pointer; font-weight: 700; }

/* ── 채널 카드 (마이페이지) ── */
.ch-list { display: flex; flex-direction: column; gap: 8px; }
.ch-item {
  display: grid;
  grid-template-columns: 56px minmax(120px, 1.1fr) minmax(140px, 1.4fr) minmax(160px, 1.3fr) 240px 64px;
  gap: 12px;
  align-items: center;
  background: rgba(30,27,65,0.55);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color .15s;
}
.ch-item:hover { border-color: rgba(139,92,246,0.4); }
.ch-item > span,
.ch-item > select { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-item .ch-id {
  text-align: center; font-weight: 800; color: #a78bfa;
  background: rgba(139,92,246,0.14); border-radius: 8px;
  padding: 5px 0; font-size: 12px;
}
.ch-item .ch-name { font-weight: 700; color: #ece9ff; font-size: 13px; }
.ch-item .ch-topic { color: #9ca3af; font-size: 12px; }
.ch-item .ch-link {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: rgba(139,92,246,0.10); border: 1px solid rgba(139,92,246,0.25);
}
.ch-item select {
  background: rgba(15,12,40,0.85); color: #ece9ff;
  border: 1px solid rgba(139,92,246,0.3); border-radius: 8px;
  padding: 7px 10px; font-size: 12px; cursor: pointer;
  font-family: inherit;
}
.ch-item .btn-delete { padding: 6px 10px; font-size: 11px; }
@media (max-width: 1100px) {
  .ch-item { grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; }
  .ch-item .ch-id { width: 56px; }
}

/* ── Google 계정 카드 ── */
.ga-card {
  background: rgba(30,27,65,0.55);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.ga-card .ga-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 8px;
}
.ga-card .ga-title { min-width: 0; flex: 1 1 auto; }
.ga-card .ga-title-main {
  font-size: 14px; font-weight: 800; color: #ddd6fe;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ga-card .ga-title-sub {
  font-size: 11px; color: #8b8fa3; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ga-card .ga-actions { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.ga-card .ga-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ga-card .ga-badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ga-card .ga-yt-list {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed rgba(139,92,246,0.22);
  display: flex; flex-wrap: wrap; gap: 6px;
}
.ga-card .ga-yt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(139,92,246,0.28);
  border-radius: 999px; padding: 5px 11px; font-size: 12px;
  max-width: 280px;
}
.ga-card .ga-yt-chip img { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; }
.ga-card .ga-yt-chip .ga-yt-title { color: #c4b5fd; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-card .ga-yt-chip .ga-yt-sub { color: #8b8fa3; font-size: 10px; flex: 0 0 auto; }

/* YouTube 채널 행 (주제 매핑 select 포함) */
.ga-card .ga-yt-rows {
  margin-top: 12px; padding-top: 10px;
  border-top: 1px dashed rgba(139,92,246,0.22);
  display: flex; flex-direction: column; gap: 8px;
}
.ga-card .ga-yt-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.4fr);
  gap: 12px; align-items: center;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 10px; padding: 8px 12px;
}
.ga-card .ga-yt-row .ga-yt-info {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.ga-card .ga-yt-row img,
.ga-card .ga-yt-row .ga-yt-noimg {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(139,92,246,0.18);
}
.ga-card .ga-yt-row .ga-yt-meta { min-width: 0; }
.ga-card .ga-yt-row .ga-yt-title {
  color: #ece9ff; font-weight: 700; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ga-card .ga-yt-row .ga-yt-sub { color: #8b8fa3; font-size: 11px; }
.ga-card .ga-yt-tpl {
  background: #faf5ff; color: #1e293b;
  border: 1px solid rgba(139,92,246,0.35);
  border-radius: 8px; padding: 7px 10px; font-size: 12px;
  font-family: inherit; cursor: pointer; min-width: 0;
}
.ga-card .ga-yt-tpl option {
  background: #fff; color: #1e293b;
}
@media (max-width: 760px) {
  .ga-card .ga-yt-row { grid-template-columns: 1fr; }
}

/* ── 함께하는 친구 ── */
.ref-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.ref-box {
  background: linear-gradient(135deg, rgba(236,72,153,0.10), rgba(139,92,246,0.10));
  border: 1px solid rgba(236,72,153,0.25);
  border-radius: 12px; padding: 14px; text-align: center;
}
.ref-box .ref-label { font-size: 11px; color: #c4b5fd; font-weight: 700; margin-bottom: 4px; }
.ref-box .ref-num { font-size: 20px; font-weight: 900; color: #ec4899; }
.ref-copy-row { display: flex; gap: 8px; }
.ref-copy-row input {
  flex: 1; min-width: 0; background: rgba(15,12,40,0.85); color: #ece9ff;
  border: 1px solid rgba(236,72,153,0.3); border-radius: 8px; padding: 10px 12px;
  font-family: monospace; font-size: 12px;
}
.ref-friend-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ref-friend {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; align-items: center;
  background: rgba(30,27,65,0.55);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 10px; padding: 10px 14px;
}
.ref-friend-name { font-weight: 700; color: #ece9ff; font-size: 13px; }
.ref-friend-status { display: flex; gap: 8px; align-items: center; }
.ref-withdraw {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(139,92,246,0.22);
  border-radius: 10px; padding: 12px 16px; margin-top: 8px;
}
.ref-withdraw .wd-row {
  display: flex; justify-content: space-between; padding: 4px 0;
  color: #c4b5fd; font-size: 13px;
}
.ref-withdraw .wd-row.highlight { border-top: 1px dashed rgba(139,92,246,0.3); margin-top: 4px; padding-top: 8px; color: #ec4899; font-size: 15px; }
.ref-withdraw .wd-row b { color: #ece9ff; }
.ref-withdraw-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 8px; margin-top: 12px;
}
.ref-withdraw-form input {
  background: rgba(15,12,40,0.85); color: #ece9ff;
  border: 1px solid rgba(139,92,246,0.3); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; font-family: inherit; min-width: 0;
}
@media (max-width: 900px) {
  .ref-withdraw-form { grid-template-columns: 1fr 1fr; }
  .ref-summary { grid-template-columns: 1fr; }
}
.ref-wd-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.ref-wd-item {
  display: grid; grid-template-columns: 1fr auto;
  gap: 8px; align-items: center;
  background: rgba(30,27,65,0.55);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #ece9ff;
}

/* ── 채팅방 관리 ── */
.room-add-form { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.room-add-form input:first-child { flex: 0 0 150px; }
.room-add-form input:nth-child(2) { flex: 1; }
.room-list { display: flex; flex-direction: column; gap: 8px; }

.room-item {
  display: flex; align-items: center; gap: 10px;
  background: #faf5ff; border: 1px solid #ede9fe;
  border-radius: 11px; padding: 13px 16px; transition: all 0.3s;
}
.room-item:hover { border-color: #a78bfa; }
.room-item .room-name { font-weight: 700; min-width: 100px; color: #7c3aed; font-size: 14px; }
.room-item .room-url { flex: 1; font-size: 12px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-delete {
  background: #fff1f2; color: #f43f5e; border: 1px solid #fecdd3;
  border-radius: 8px; padding: 5px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.btn-delete:hover { background: #ffe4e6; border-color: #fb7185; }

/* ── 로딩 ── */
.loading { display: inline-block; width: 16px; height: 16px; border: 2px solid #ede9fe; border-top-color: #8b5cf6; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to{transform:rotate(360deg)} }

/* ── 배치 컨트롤 ── */
.batch-controls {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid #ddd6fe; border-radius: 14px; padding: 14px 18px; margin-top: 14px;
}
.batch-info { font-size: 14px; font-weight: 700; color: #5b21b6; }
.batch-info span { font-size: 22px; color: #7c3aed; }

.toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: #5b21b6; }
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: #7c3aed; cursor: pointer; }

.scenario-header { display: flex; align-items: flex-start; gap: 12px; }
.scenario-checkbox { flex-shrink: 0; display: flex; align-items: center; padding-top: 2px; }
.scenario-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: #10b981; cursor: pointer; }

.btn-batch { background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; box-shadow: 0 6px 24px rgba(99,102,241,0.35) !important; margin-top: 8px !important; }
.btn-batch:hover { box-shadow: 0 10px 32px rgba(99,102,241,0.45) !important; }
.btn-batch:disabled { background: #e2e8f0 !important; color: #94a3b8 !important; cursor: not-allowed !important; box-shadow: none !important; }

/* ── Genspark 디스플레이 ── */
.genspark-display { margin-bottom: 16px; border: 1px solid #ede9fe; border-radius: 14px; overflow: hidden; background: #1e293b; }
.display-header { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; background: linear-gradient(135deg, #312e81, #4338ca); border-bottom: 1px solid rgba(255,255,255,0.1); }
.display-title { font-size: 13px; font-weight: 800; color: #fff; }
.display-status { font-size: 11px; font-weight: 700; color: #34d399; display: flex; align-items: center; gap: 6px; }
.display-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.display-frame { position: relative; width: 100%; min-height: 200px; max-height: 480px; display: flex; align-items: center; justify-content: center; background: #0f172a; }
.display-frame img { width: 100%; height: auto; max-height: 480px; object-fit: contain; display: block; }
.display-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,0.85); color: #cbd5e1; font-size: 14px; font-weight: 600; }

/* ── 영상 미리보기 ── */
.preview-video-wrap { background: #1e293b; border-radius: 14px; overflow: hidden; margin-bottom: 16px; display: flex; justify-content: center; }
.preview-video-wrap video { width: 100%; max-height: 480px; object-fit: contain; }
.preview-fields { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.preview-label { font-size: 11px; font-weight: 800; color: #7c3aed; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 8px; }
.preview-label:first-child { margin-top: 0; }
.preview-input { width: 100%; }
.preview-textarea { width: 100%; }
.preview-actions { display: flex; gap: 10px; }
.preview-actions .btn-start { flex: 1; margin-top: 0; }

.btn-skip {
  flex: 0 0 auto; background: #f1f5f9; color: #64748b;
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 24px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.btn-skip:hover { background: #e2e8f0; color: #475569; }

.hidden { display: none !important; }
.hint { font-size: 12px; color: #94a3b8; margin-top: 8px; font-weight: 500; }

.success-banner {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7; border-radius: 14px; padding: 18px;
  text-align: center; color: #059669; font-size: 16px; font-weight: 800; margin-bottom: 16px;
}
