:root {
  --bg-desk: #141917;
  --bg-desk-grad: radial-gradient(circle at 50% 20%, #202b26 0%, #111614 75%);
  --paper-left: #fcfaf4;
  --paper-right: #f7f9f7;
  --paper-border: #dfd8c8;
  --ink-main: #18221e;
  --ink-body: #2c3833;
  --ink-muted: #5c6b64;
  --emerald: #0f7652;
  --emerald-soft: #e6f5ef;
  --emerald-border: #9bd6bf;
  --blue: #1a5f7a;
  --blue-soft: #e9f3f8;
  --amber: #b86b11;
  --amber-soft: #fef6e6;
  --amber-border: #f2c97d;
  --danger-soft: #fdf0ee;
  --danger-ink: #9e3a2b;
  --shadow-book: 0 26px 60px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg-desk);
  background-image: var(--bg-desk-grad);
  color: var(--ink-main);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 상단 바 */
.topbar {
  height: 58px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 22, 19, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #f3efe6;
  flex-shrink: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #1b6b4d, #0f3d2b);
  border: 1px solid rgba(255, 214, 112, 0.45);
  color: #ffd875;
  font-weight: 800;
  font-size: 19px;
  display: grid;
  place-items: center;
}

.brand-text strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.brand-text small {
  display: block;
  font-size: 11.5px;
  color: #a7b8b0;
  margin-top: 1px;
}

.book-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f2eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-indicator {
  text-align: center;
  min-width: 128px;
}

.page-indicator strong {
  display: block;
  font-size: 13px;
  color: #ffd875;
}

.page-indicator span {
  display: block;
  font-size: 11px;
  color: #b4c2bb;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.07);
  color: #e9e5dc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pill-btn.active {
  background: linear-gradient(135deg, #1b6b4d, #134e37);
  border-color: #5cd6a7;
  color: #ffffff;
}

.pill-btn.report-pill {
  background: linear-gradient(135deg, #8a4f0f, #5c3307);
  border-color: #f4b95f;
  color: #ffeab8;
}

/* [메인 듀얼 워크스페이스: 왼쪽 3D 링노트 교재 + 오른쪽 실습 스튜디오] */
.workspace.dual-mode {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px 14px;
  min-height: 0;
}

.dual-workspace-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.08fr);
  width: 100%;
  max-width: 1680px;
  height: calc(100vh - 82px);
  max-height: 980px;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(0, 0, 0, 0.4);
  background: #0c1017;
  overflow: hidden;
  align-items: stretch;
}

.dual-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 2px solid;
  flex-shrink: 0;
  gap: 10px;
}

.panel-badge-group {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.panel-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3.5px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.panel-subtitle {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 1) 왼쪽 교재 영역 스타일 (따뜻한 아이보리 종이 + 링노트 룩앤필) */
.textbook-panel {
  background: #fbf7ee;
  color: #1e2b25;
}

.textbook-header {
  background: #ede5d2;
  border-bottom-color: #dcd0b7;
}

.tag-textbook {
  background: #184232;
  color: #d1fae5;
  border: 1px solid #2d6b53;
}

.textbook-header .panel-subtitle {
  color: #5c4e3a;
}

.ring-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ring-nav-btn {
  background: #e3d8be;
  border: 1px solid #c8baa0;
  color: #291f13;
  font-size: 11.8px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.ring-nav-btn:hover:not(:disabled) {
  background: #d4c7a9;
  transform: translateY(-1px);
}

.ring-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ring-page-badge {
  font-size: 11.8px;
  font-weight: 800;
  color: #143829;
  background: #ffffff;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #d5c8ad;
  white-space: nowrap;
}

.ring-notebook-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #f2e9d2;
  padding: 8px 12px 10px 14px;
  min-height: 0;
}

.ring-notebook-sheet {
  flex: 1;
  display: flex;
  position: relative;
  background: #fdfbf7;
  border-radius: 8px 3px 3px 8px;
  border: 1px solid #ded4bb;
  box-shadow: 0 4px 18px rgba(45, 35, 15, 0.08);
  overflow: hidden;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.ring-notebook-sheet.turning {
  transform: translateY(-8px) scale(0.995);
  opacity: 0.65;
}

.punch-holes-column {
  position: absolute;
  right: 7px;
  top: 0;
  bottom: 0;
  width: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 6;
  pointer-events: none;
}

.punch-hole {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #171d26;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.85), 0 0 0 1px rgba(215, 200, 175, 0.6);
}

.notebook-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 28px 24px 20px;
  color: #1d2b24;
  scroll-behavior: smooth;
}

.notebook-sheet-body::-webkit-scrollbar {
  width: 6px;
}
.notebook-sheet-body::-webkit-scrollbar-thumb {
  background: #cfc2a5;
  border-radius: 999px;
}

.notebook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: #e8deca;
  border-top: 1px solid #d5c8ad;
  font-size: 11.2px;
  color: #5c4d37;
  font-weight: 600;
  flex-shrink: 0;
}

/* 2) 중앙 3D 스파이럴 링 코일 (Metallic Rings Spine) */
.spiral-ring-spine {
  width: 28px;
  background: linear-gradient(90deg, #1b222d 0%, #283344 50%, #151b24 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
  z-index: 10;
  box-shadow: inset 2px 0 6px rgba(0,0,0,0.5), inset -2px 0 6px rgba(0,0,0,0.5);
}

.ring-coil {
  width: 38px;
  height: 11px;
  border-radius: 6px;
  background: linear-gradient(180deg, #555 0%, #aaa 22%, #ffffff 50%, #999 78%, #333 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.45);
  transform: rotate(-6deg);
  margin-left: -5px;
  position: relative;
}

/* 3) 오른쪽 실습 스튜디오 영역 스타일 (다크 스튜디오 콘솔 룩앤필) */
.studio-panel {
  background: #0d131f;
  color: #e2e8f0;
}

.studio-header {
  background: #141d2d;
  border-bottom-color: #223046;
}

.tag-studio {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: 1px solid #38bdf8;
}

.studio-live-badge {
  font-size: 11.2px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.studio-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
}

.studio-body::-webkit-scrollbar {
  width: 6px;
}
.studio-body::-webkit-scrollbar-thumb {
  background: #24354e;
  border-radius: 999px;
}

.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #8da2b5;
  flex-shrink: 0;
}

/* [교재 0페이지 히어로 음악 작곡실 타이틀 카드] */
.hero-studio-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #d4c5a9;
  box-shadow: 0 6px 18px rgba(35, 25, 10, 0.09);
  margin-bottom: 16px;
  background: #ffffff;
}

.hero-studio-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.hero-studio-content {
  padding: 13px 16px 15px;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ec 100%);
  border-top: 1px solid #e7dcbf;
}

.hero-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f7652;
  background: #e6f5ef;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.hero-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1a2721;
  margin-bottom: 5px;
  line-height: 1.3;
}

.hero-desc {
  font-size: 13.2px;
  line-height: 1.55;
  color: #43524b;
  margin-bottom: 10px;
}

.hero-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.hero-spec-item {
  background: #ffffff;
  border: 1px solid #e2d7bd;
  border-radius: 8px;
  padding: 6px 9px;
}

.hero-spec-item small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #71624c;
}

.hero-spec-item strong {
  display: block;
  font-size: 12.8px;
  font-weight: 800;
  color: #1e2d26;
  margin-top: 2px;
}

.ch-roadmap-card {
  background: #ffffff;
  border: 1.5px solid #dfd3ba;
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 12px;
}

.ch-roadmap-card h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #163d2c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.6px;
  line-height: 1.45;
  color: #2e3d36;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fbf8f1;
  border: 1px solid #eee5cf;
  cursor: pointer;
  transition: all 0.15s ease;
}

.roadmap-item:hover {
  background: #f4ecda;
  border-color: #d8c6a0;
  transform: translateX(2px);
}

.roadmap-badge {
  font-size: 10.2px;
  font-weight: 800;
  background: #184232;
  color: #fff;
  padding: 1.5px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* [페이지 1: 왼쪽 전자책 본문] */
.ebook-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ebook-title {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.28;
  color: #131c18;
  letter-spacing: -0.02em;
}

.ebook-deck {
  font-size: 14px;
  line-height: 1.48;
  color: #465750;
  font-weight: 500;
}

.ebook-dashboard {
  background: #ffffff;
  border: 1.5px solid #d8e2dc;
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 4px 14px rgba(18, 35, 28, 0.04);
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.dashboard-head strong {
  font-size: 14px;
  color: #182620;
}

.status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.counter-card {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.counter-card.emerald {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
}

.counter-card.blue {
  background: var(--blue-soft);
  border-color: #b5d8e8;
}

.counter-card.amber {
  background: var(--amber-soft);
  border-color: var(--amber-border);
}

.counter-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #3c4d46;
}

.counter-value {
  display: block;
  font-size: 21px;
  font-weight: 800;
  margin: 2px 0 2px;
  color: #101915;
}

.counter-card small {
  display: block;
  font-size: 11.5px;
  color: #52635c;
}

.dynamic-callout {
  margin-top: 9px;
  padding: 9px 12px;
  background: #f5f2e9;
  border-left: 4px solid var(--emerald);
  border-radius: 6px;
  font-size: 13.2px;
  line-height: 1.48;
  color: #22302b;
}

.ebook-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ebook-section-card {
  background: #ffffff;
  border: 1px solid #e3ddd0;
  border-radius: 11px;
  padding: 11px 14px;
}

.ebook-section-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #143829;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ebook-section-card p {
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--ink-body);
  margin-bottom: 6px;
}

.ebook-section-card p:last-child {
  margin-bottom: 0;
}

.ebook-rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 5px;
}

.ebook-rule-list li {
  font-size: 13.6px;
  line-height: 1.5;
  color: #24332d;
  padding-left: 16px;
  position: relative;
}

.ebook-rule-list li::before {
  content: "•";
  position: absolute;
  left: 3px;
  color: var(--emerald);
  font-weight: 900;
}

.ebook-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 13.2px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ded8ca;
}

.ebook-table th {
  background: #f1ede2;
  color: #1c2b25;
  text-align: left;
  padding: 7px 11px;
  font-weight: 700;
  border-bottom: 1px solid #ded8ca;
}

.ebook-table td {
  padding: 7px 11px;
  border-bottom: 1px solid #eee9dd;
  color: #2c3a34;
  line-height: 1.42;
}

.ebook-table tr:last-child td {
  border-bottom: none;
}

.ebook-box {
  background: #eef6f2;
  border: 1px solid #bddfd0;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13.2px;
  line-height: 1.5;
  color: #173b2c;
  font-weight: 600;
}

.ebook-code {
  background: #1c2622;
  color: #e6f4ed;
  padding: 10px 13px;
  border-radius: 9px;
  font-family: "Consolas", "Monaco", monospace;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* [페이지 2: 오른쪽 곡생성 & 미리듣기 스튜디오] */
.mode-switcher-panel {
  background: #ffffff;
  border: 2px solid #b7cec3;
  border-radius: 14px;
  padding: 8px 11px 9px;
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 6px 18px rgba(18, 48, 38, 0.07);
}

.mode-switcher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 1px 2px 5px;
  border-bottom: 1px solid #e5eee9;
  flex-wrap: wrap;
}

.switcher-header-title {
  font-size: 11.8px;
  font-weight: 800;
  color: #123026;
  letter-spacing: -0.01em;
}

.switcher-header-hint {
  font-size: 11px;
  color: #4b6357;
  font-weight: 600;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1.24fr;
  gap: 8px;
}

.mode-tab {
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mode-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.mode-tab-title-group {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mode-tab-icon {
  font-size: 14px;
}

.mode-tab-title {
  font-size: 13.2px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.mode-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 3px 0 4px;
}

.chip-item {
  font-size: 10.6px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 5px;
  line-height: 1.35;
  white-space: nowrap;
}

.mode-tab-desc {
  font-size: 11.2px;
  line-height: 1.35;
  margin: 0;
}

.mode-status-tag {
  font-size: 10.8px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 1) 무료 체험 탭 스타일 */
.mode-tab.is-free {
  background: #f4f8f6;
  border: 2px solid #c4d7cf;
  color: #243830;
}

.mode-tab.is-free .mode-status-tag {
  background: #dfece7;
  color: #2b5546;
}

.mode-tab.is-free .chip-item {
  background: #e2ece7;
  color: #2b483e;
}

.mode-tab.is-free .chip-item.chip-locked {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.mode-tab.is-free.active {
  background: linear-gradient(135deg, #0f4635 0%, #092c21 100%);
  border: 2px solid #2ecc71;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 70, 53, 0.28);
}

.mode-tab.is-free.active .mode-status-tag {
  background: #10b981;
  color: #ffffff;
}

.mode-tab.is-free.active .chip-item {
  background: rgba(255, 255, 255, 0.16);
  color: #d1fae5;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.mode-tab.is-free.active .chip-item.chip-locked {
  background: rgba(245, 158, 11, 0.28);
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

/* 2) 유료 결제 회원 탭 스타일 (비활성 시에도 매력적인 골드 VIP 카드 형태 유지) */
.mode-tab.is-paid {
  background: linear-gradient(135deg, #fffdf8 0%, #fef6e5 100%);
  border: 2px solid #e5a73b;
  color: #472600;
  box-shadow: 0 4px 12px rgba(217, 140, 20, 0.12);
}

.mode-tab.is-paid:hover {
  transform: translateY(-1px);
  border-color: #d97706;
  box-shadow: 0 6px 16px rgba(217, 140, 20, 0.22);
}

.mode-tab.is-paid .mode-status-tag.tag-upgrade {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
  animation: pulseUpgrade 2.2s infinite ease-in-out;
}

.mode-tab.is-paid .chip-item.chip-gold {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fde047;
  font-weight: 800;
}

@keyframes pulseUpgrade {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}

.mode-tab.is-paid.active {
  background: linear-gradient(135deg, #3d2305 0%, #201201 100%);
  border: 2px solid #fbbf24;
  color: #fff4d1;
  box-shadow: 0 6px 20px rgba(180, 110, 15, 0.38), inset 0 1px 0 rgba(255, 220, 120, 0.3);
}

.mode-tab.is-paid.active .chip-item.chip-gold {
  background: rgba(251, 191, 36, 0.25);
  color: #fef08a;
  border: 1px solid rgba(251, 191, 36, 0.5);
  font-weight: 800;
}
}

.mode-tab.is-paid.active .mode-status-tag.tag-upgrade {
  background: #fbbf24;
  color: #1a0f01;
  animation: none;
}

/* 유료 설정 바 */
.paid-settings-bar {
  border-radius: 10px;
  padding: 8px 11px;
  transition: all 0.22s ease;
}

.paid-settings-bar.is-locked {
  background: #fbf7ee;
  border: 1.5px dashed #dfcba4;
}

.paid-settings-bar:not(.is-locked) {
  background: linear-gradient(135deg, #fefcf6 0%, #fbf3e0 100%);
  border: 1.5px solid #eab308;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.15);
}

.paid-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.paid-lock-tag {
  font-size: 11.8px;
  font-weight: 700;
  color: #78470a;
}

.paid-settings-bar:not(.is-locked) .paid-lock-tag {
  color: #14532d;
  font-weight: 800;
}

.quick-toggle-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.2px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.quick-toggle-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.paid-settings-bar:not(.is-locked) .quick-toggle-btn {
  display: none;
}

.paid-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.select-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #ffffff;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1.5px solid #d5dfdb;
  transition: all 0.16s ease;
}

.select-card-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #4b5563;
}

.select-card select {
  font-size: 11.2px;
  font-weight: 700;
  color: #111827;
  padding: 4px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
  width: 100%;
}

.select-card select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.paid-settings-bar:not(.is-locked) .select-card {
  border-color: #facc15;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.14);
}

.paid-settings-bar:not(.is-locked) .select-card select {
  background: #ffffff;
  border-color: #eab308;
  color: #0f172a;
}

.visual-stage {
  border-radius: 14px;
  padding: 13px 16px;
  color: #f7faf8;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: start;
  background: linear-gradient(135deg, #1b3b32 0%, #16292b 55%, #1f2e3d 100%);
  box-shadow: 0 10px 24px rgba(15, 36, 28, 0.16);
  transition: background 0.45s ease;
}

.visual-artwork {
  width: 124px;
  height: 124px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
}

.artwork-svg-wrap {
  width: 100%;
  height: 100%;
}

.artwork-svg-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.artwork-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 17, 0.38);
  color: #ffd978;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.visual-artwork:hover .artwork-play-overlay {
  opacity: 1;
}

.visual-stage.is-playing .artwork-play-overlay {
  opacity: 1;
  background: rgba(10, 20, 17, 0.22);
  font-size: 22px;
}

.visual-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.visual-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.track-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #a8f0d4;
  letter-spacing: 0.03em;
}

.spec-badge {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
}

.visual-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.28;
}

.visual-desc {
  font-size: 13px;
  color: rgba(242, 247, 245, 0.88);
  line-height: 1.4;
}

/* 실제 오디오 플레이어 컨트롤 바 */
.audio-player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 10px;
  border-radius: 10px;
  margin-top: 2px;
}

.play-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1cc98a;
  color: #0b241a;
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.18s ease;
}

.play-toggle-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.play-toggle-btn:disabled {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
}

.visual-stage.is-playing .play-toggle-btn {
  background: #ffd46b;
  color: #211703;
}

.player-timeline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#audio-seek {
  flex: 1;
  accent-color: #3fe0a5;
  height: 5px;
  cursor: pointer;
}

.time-readout {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  display: flex;
  gap: 3px;
}

/* 파형 바 */
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  width: 76px;
  flex-shrink: 0;
}

.waveform-bars span {
  flex: 1;
  background: rgba(168, 240, 212, 0.45);
  border-radius: 99px;
  height: 30%;
  transition: height 0.25s ease, background 0.25s ease;
}

.visual-stage.is-playing .waveform-bars span {
  background: #ffd875;
}

.visual-stage.is-playing .waveform-bars span:nth-child(4n+1) { height: 85%; animation: calmWave 0.9s ease-in-out infinite; }
.visual-stage.is-playing .waveform-bars span:nth-child(4n+2) { height: 50%; animation: calmWave 1.1s ease-in-out 0.15s infinite; }
.visual-stage.is-playing .waveform-bars span:nth-child(4n+3) { height: 95%; animation: calmWave 0.8s ease-in-out 0.3s infinite; }
.visual-stage.is-playing .waveform-bars span:nth-child(4n)   { height: 60%; animation: calmWave 1.0s ease-in-out 0.45s infinite; }

@keyframes calmWave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.7; }
  50% { transform: scaleY(1.15); opacity: 1; }
}

/* 가사(Lyrics) 패널 */
.lyrics-panel {
  background: rgba(8, 16, 14, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 7px 11px;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lyrics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.lyrics-header strong {
  font-size: 11.8px;
  color: #ffe294;
  letter-spacing: 0.02em;
}

.lyrics-meta-badge {
  font-size: 11px;
  font-weight: 700;
  color: #a8f0d4;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
}

.lyrics-body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 12.2px;
  line-height: 1.48;
  color: #f4f8f6;
  white-space: pre-wrap;
  max-height: 92px;
  overflow-y: auto;
  padding-right: 4px;
}

.lyrics-body::-webkit-scrollbar {
  width: 5px;
}

.lyrics-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
}

.visual-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.mp4-status {
  font-size: 12px;
  color: #ffe294;
  font-weight: 600;
}

.stage-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stage-mp3-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #f3e4bd;
  border: 1px solid rgba(255, 219, 130, 0.45);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.stage-mp3-btn.is-unlocked {
  background: linear-gradient(135deg, #1bc486, #0f8b5d);
  color: #062116;
  border-color: #7bf5c7;
}

.stage-select-btn {
  background: linear-gradient(135deg, #f3b63f, #d98b14);
  color: #1b160c;
  border: none;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.stage-select-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.stage-select-btn.is-selected {
  background: rgba(255, 224, 138, 0.22);
  color: #ffe294;
  border: 1px solid #ffd269;
}

/* 조작 버튼 바 */
.studio-controls {
  display: grid;
  grid-template-columns: 1.35fr 1fr auto;
  gap: 10px;
  margin-top: 10px;
}

.ctrl-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.ctrl-btn small {
  font-weight: 500;
  opacity: 0.88;
  font-size: 11.5px;
}

.ctrl-btn.primary {
  background: linear-gradient(135deg, #137a54, #0d5a3e);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(15, 118, 82, 0.25);
}

.ctrl-btn.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.ctrl-btn.primary:disabled {
  background: #95a8a0;
  cursor: not-allowed;
  box-shadow: none;
}

.ctrl-btn.secondary {
  background: #ffffff;
  color: #7d3629;
  border-color: #e3bfb8;
}

.ctrl-btn.secondary:hover {
  background: var(--danger-soft);
}

.ctrl-btn.ghost {
  background: #eaefec;
  color: #2f4039;
  border-color: #cfd9d3;
  padding: 10px 16px;
}

.ctrl-btn.ghost:hover {
  background: #dfe7e3;
}

/* 피드백 메시지 바 */
.sim-feedback {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #d4e0da;
  font-size: 12.8px;
  font-weight: 600;
  color: #1f332b;
  line-height: 1.42;
}

.sim-feedback.tone-warn {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  color: #784508;
}

.sim-feedback.tone-fail {
  background: var(--danger-soft);
  border-color: #eabcb4;
  color: var(--danger-ink);
}

/* 10곡 슬롯 그리드 (2×5 입체 카드) */
.slots-section {
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slots-header strong {
  font-size: 13.5px;
  color: #182822;
}

.slots-header span {
  font-size: 11.8px;
  color: var(--ink-muted);
}

.song-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  flex: 1;
}

.song-slot {
  border-radius: 11px;
  padding: 8px 9px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  text-align: left;
}

.song-slot.is-empty {
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px dashed #cad5cf;
  color: #7c8d86;
}

.song-slot.is-generated {
  background: #ffffff;
  border: 1.5px solid #95d5bc;
  box-shadow: 0 5px 0 #bfe5d6, 0 7px 14px rgba(15, 85, 58, 0.08);
  transform: translateY(-2px);
}

.song-slot.is-generated:hover {
  transform: translateY(-3px);
  border-color: var(--emerald);
}

.song-slot.is-focused {
  outline: 2px solid var(--emerald);
  outline-offset: 1px;
}

.song-slot.is-playing {
  border-color: #12875c;
  background: linear-gradient(180deg, #f3fcf8 0%, #ffffff 100%);
}

.song-slot.is-selected {
  background: linear-gradient(180deg, #fffdf7 0%, #fef5de 100%);
  border: 2px solid #e09b27;
  box-shadow: 0 5px 0 #edd098, 0 9px 16px rgba(184, 107, 17, 0.14);
}

.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.slot-num {
  font-size: 11px;
  font-weight: 800;
  color: #496057;
}

.slot-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.slot-title {
  font-size: 12px;
  font-weight: 700;
  color: #16241f;
  line-height: 1.28;
  margin: 4px 0;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-slot.is-empty .slot-title {
  color: #889891;
  font-weight: 500;
  cursor: default;
}

.slot-btn-group {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4px;
  margin-top: 2px;
}

.slot-listen-btn,
.slot-select-btn {
  border: none;
  border-radius: 6px;
  padding: 4px 4px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.14s ease, transform 0.12s ease;
}

.slot-listen-btn {
  background: #163d31;
  color: #a8f5d6;
}

.slot-listen-btn.playing {
  background: #1cc98a;
  color: #092218;
}

.slot-listen-btn:hover,
.slot-select-btn:hover {
  filter: brightness(1.08);
}

.slot-select-btn {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #a8dfc9;
}

.song-slot.is-selected .slot-select-btn {
  background: #f5b841;
  color: #231804;
  border-color: #d9971a;
}

.slot-action-tag {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  background: #eef5f2;
  color: #7c8d86;
}

/* 페이지 하단 푸터 */
.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(24, 34, 30, 0.09);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* 목차 모달 */
.contents-dialog {
  margin: auto;
  width: min(880px, 92vw);
  max-height: 82vh;
  border: 1px solid #d5cfc1;
  border-radius: 16px;
  padding: 24px;
  background: #fcfaf4;
  color: var(--ink-main);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.contents-dialog::backdrop {
  background: rgba(10, 15, 13, 0.65);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2ddd0;
}

.dialog-header h2 {
  font-size: 20px;
  margin-top: 4px;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ccc5b6;
  background: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}

.toc-item {
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dfdad0;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.toc-item:hover, .toc-item.is-current {
  border-color: var(--emerald);
  background: var(--emerald-soft);
}

.toc-item small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
}

.toc-item strong {
  display: block;
  font-size: 14px;
  color: #17231e;
  margin-top: 2px;
}

/* 1,000회 시뮬레이션 리포트 모달 */
.report-dialog {
  width: min(1140px, 95vw);
  max-height: 88vh;
}

.report-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}

.report-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.report-card {
  background: #eef7f3;
  border: 1.5px solid #9fd7c0;
  border-radius: 10px;
  padding: 10px 12px;
}

.report-card.warn {
  background: #fef7e8;
  border-color: #f0c675;
}

.report-card.danger {
  background: #fdf0ee;
  border-color: #ebb7ae;
}

.report-card small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #365247;
}

.report-card strong {
  display: block;
  font-size: 14.5px;
  margin: 3px 0 4px;
  color: #13211b;
}

.report-card p {
  font-size: 12.4px;
  line-height: 1.45;
  color: #2b3b34;
}

.report-table th, .report-table td {
  font-size: 12.5px;
  vertical-align: top;
}

@media (max-width: 1180px) {
  .book-spread {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .book-spine {
    display: none;
  }
}

/* ========================================================
   [헤더 추가 배지 및 결제 모달 스타일]
   ======================================================== */
.user-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cfdad5;
}

.user-status-pill.is-vip {
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.22), rgba(217, 151, 26, 0.35));
  border-color: #f5b841;
  color: #ffd875;
}

.checkout-pill {
  background: linear-gradient(135deg, #b87c14, #8c5a08) !important;
  border: 1px solid #ffd269 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(184, 124, 20, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.checkout-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 184, 65, 0.45);
}

/* ========================================================
   [라이브클래스 & 스마트스토어 듀얼 런칭 모달]
   ======================================================== */
.checkout-dialog {
  width: min(860px, 94vw);
  max-height: 88vh;
  background: #fbf9f4;
  border: 1.5px solid #d5cbba;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  border-radius: 20px;
  padding: 26px 28px;
}

.checkout-dialog-header {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #dfd7c7;
}

.checkout-dialog-header h2 {
  font-size: 21px;
  color: #17221d;
  margin-top: 3px;
}

.dialog-kicker-desc {
  font-size: 12.5px;
  color: #55665f;
  margin-top: 4px;
}

.checkout-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(88vh - 180px);
  overflow-y: auto;
  padding-right: 6px;
}

.checkout-section {
  background: #ffffff;
  border: 1.5px solid #e5ded0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.section-title-wrap {
  margin-bottom: 12px;
}

.step-num {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: #17382b;
  color: #ffd875;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.section-title {
  display: block;
  font-size: 15.5px;
  color: #16241e;
  font-weight: 800;
  margin-top: 2px;
}

.section-sub {
  display: block;
  font-size: 12px;
  color: #64736c;
  margin-top: 2px;
}

/* 1단계: 소셜 로그인 버튼 */
.social-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.social-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  border: none;
}

.social-login-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.social-login-btn.kakao {
  background: #fee500;
  color: #191919;
}

.social-login-btn.naver {
  background: #03c75a;
  color: #ffffff;
}

.social-status-banner {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f4f7f5;
  border: 1px solid #d3dfd8;
  font-size: 12.5px;
  color: #3b4e45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-status-banner.is-logged {
  background: #e9f6ef;
  border-color: #8ed2b3;
  color: #0b5938;
}

/* 2단계: 듀얼 채널 카드 */
.dual-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.channel-card {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.channel-card.liveklass-card {
  background: #fdfaf6;
  border: 1.5px solid #e3ccaa;
}

.channel-card.smartstore-card {
  background: #f5faf7;
  border: 1.5px solid #bce1ce;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.channel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.channel-logo-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-liveklass {
  background: #e9712a;
  color: #ffffff;
}

.tag-smartstore {
  background: #03c75a;
  color: #ffffff;
}

.channel-benefit-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #b35600;
  background: #fef0db;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #f6cf9a;
}

.channel-benefit-badge.green {
  color: #097237;
  background: #e1f5eb;
  border-color: #9fe2bd;
}

.channel-name {
  font-size: 16px;
  font-weight: 800;
  color: #17241e;
  margin-bottom: 6px;
}

.channel-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}

.channel-price {
  font-size: 20px;
  font-weight: 800;
  color: #b5200d;
}

.channel-vat-note {
  font-size: 11px;
  color: #6d7b74;
}

.channel-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #33443c;
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

.channel-action-btn {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.channel-action-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.liveklass-btn {
  background: #d85c18;
  color: #ffffff;
}

.smartstore-btn {
  background: #029944;
  color: #ffffff;
}

/* 3단계: 바우처/주문번호 입력 */
.voucher-form {
  margin-top: 10px;
}

.voucher-input-group {
  display: flex;
  gap: 8px;
}

.voucher-input {
  flex-grow: 1;
  height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1.5px solid #c8d3cc;
  background: #fafbfc;
  font-size: 14px;
  font-weight: 600;
  color: #17221e;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.voucher-input:focus {
  outline: none;
  border-color: #0f7652;
  box-shadow: 0 0 0 3px rgba(15, 118, 82, 0.15);
  background: #ffffff;
}

.voucher-submit-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f7652, #0b5938);
  color: #ffd875;
  border: 1px solid #7dc7a7;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.voucher-submit-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.quick-test-codes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.test-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #55675f;
}

.test-code-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1ede2;
  border: 1px solid #d3cabd;
  color: #423522;
  cursor: pointer;
  transition: background 0.15s ease;
}

.test-code-pill:hover {
  background: #e6dfd1;
  border-color: #b7a996;
}

.voucher-feedback-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  animation: fadeIn 0.25s ease-out;
}

.voucher-feedback-box.success {
  background: #e8f7ee;
  border: 1.5px solid #7cd19d;
  color: #0b5632;
}

.voucher-feedback-box.error {
  background: #fdf0ee;
  border: 1.5px solid #f0aba1;
  color: #9c281a;
}

.checkout-dialog-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e1dacf;
}

.fee-safety-note {
  display: block;
  font-size: 11.5px;
  color: #5d6d66;
  line-height: 1.4;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   [실시간 결제 & 로그인 시뮬레이터 스타일]
   ======================================================== */
.step-num.sim {
  background: #2b1f47;
  color: #d1b8ff;
}

.sim-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.sim-flow-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7f5fa;
  border: 1.5px solid #ded5eb;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sim-flow-btn:hover {
  transform: translateY(-2px);
  border-color: #9c7ad1;
  box-shadow: 0 4px 14px rgba(100, 60, 160, 0.12);
}

.sim-flow-btn.liveklass {
  background: #fdf8f5;
  border-color: #ebd3c2;
}

.sim-flow-btn.liveklass:hover {
  border-color: #e9712a;
}

.sim-flow-btn.smartstore {
  background: #f4faf6;
  border-color: #cae7d7;
}

.sim-flow-btn.smartstore:hover {
  border-color: #03c75a;
}

.sim-btn-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.sim-btn-texts {
  flex-grow: 1;
}

.sim-btn-texts strong {
  display: block;
  font-size: 13.5px;
  color: #1a1622;
  font-weight: 800;
}

.sim-btn-texts small {
  display: block;
  font-size: 11px;
  color: #635773;
  margin-top: 2px;
}

.sim-play-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  background: #2b1f47;
  color: #ffd875;
  white-space: nowrap;
}

.sim-display-card {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.3s ease-out;
}

.sim-display-card.theme-kakao {
  background: #fee500;
  border: 2px solid #ecd400;
}

.sim-display-card.theme-naver {
  background: #03c75a;
  border: 2px solid #02a34a;
}

.sim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 11.5px;
  font-weight: 700;
  color: #2b2203;
}

.sim-display-card.theme-naver .sim-card-header {
  color: #ffffff;
}

.sim-card-content {
  padding: 14px 16px;
  background: #ffffff;
  margin: 0 4px 4px;
  border-radius: 8px;
}

.alimtalk-box, .naverpay-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alimtalk-sender {
  font-size: 12px;
  font-weight: 800;
  color: #3b2800;
}

.naverpay-sender {
  font-size: 12px;
  font-weight: 800;
  color: #036b33;
}

.alimtalk-title, .naverpay-title {
  font-size: 15px;
  font-weight: 800;
  color: #17221d;
}

.alimtalk-meta, .naverpay-meta {
  font-size: 12.5px;
  line-height: 1.55;
  color: #34443c;
  background: #f8faf9;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e1e9e4;
}

.alimtalk-code, .naverpay-code {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 900;
  color: #d13d08;
  background: #ffebe3;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.naverpay-code {
  color: #0b7e40;
  background: #e2f7eb;
}

.alimtalk-guide, .naverpay-guide {
  font-size: 11.5px;
  color: #5d6f66;
  line-height: 1.4;
}

/* ========================================================
   [회원 전용 추가 100곡 충전권 (+9,900원) 스타일]
   ======================================================== */
.ctrl-btn.addon-btn {
  background: linear-gradient(135deg, #1b4b3a, #133327);
  border: 1px solid #6ec49e;
  color: #ffd875;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.ctrl-btn.addon-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 14px rgba(15, 118, 82, 0.4);
}

.addon-pack-card {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fdfaf3;
  border: 1.5px solid #e8d7b7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.addon-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.addon-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #2b1f47;
  color: #ffd875;
}

.addon-price {
  font-size: 15px;
  font-weight: 900;
  color: #b5200d;
}

.addon-desc {
  font-size: 12px;
  color: #4b5a52;
  line-height: 1.45;
  margin-bottom: 10px;
}

.addon-quick-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f7652, #0b5938);
  border: 1px solid #82d1ab;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.addon-quick-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.test-code-pill.add100 {
  background: #eef8f2;
  border-color: #89cca8;
  color: #0c613c;
}


/* ==========================================================================
   [Q&A 모달 및 플로팅 상담창 전용 스타일]
   ========================================================================== */

/* 1. 우측 하단 플로팅 Q&A 버튼 */
.floating-qa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #183b29, #0f271a);
  color: #f0fdf4;
  border: 1.5px solid #4ade80;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 16px rgba(74, 222, 128, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-qa-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(74, 222, 128, 0.55);
  border-color: #86efac;
  background: linear-gradient(135deg, #1e4a34, #143222);
}

.floating-qa-btn .f-icon {
  font-size: 17px;
  line-height: 1;
}

/* 2. Q&A 대화상자 레이아웃 */
.qa-dialog {
  max-width: 900px;
}

.qa-tabs-nav {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2dacd;
}

.qa-tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #5c6861;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.qa-tab-btn:hover {
  color: #17221d;
  background: rgba(24, 59, 41, 0.04);
  border-radius: 6px 6px 0 0;
}

.qa-tab-btn.active {
  color: #183b29;
  font-weight: 800;
  border-bottom-color: #183b29;
}

.qa-tab-pane {
  display: block;
}

.qa-tab-pane[hidden] {
  display: none !important;
}

/* 3. 자주 묻는 질문 (FAQ) */
.faq-search-wrap {
  margin-bottom: 16px;
}

.faq-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d5cbba;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  color: #1b2621;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.faq-search-input:focus {
  border-color: #183b29;
  box-shadow: 0 0 0 3px rgba(24, 59, 41, 0.12);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #dfd8cc;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: #b8ac99;
}

.faq-item.open {
  border-color: #183b29;
  box-shadow: 0 4px 12px rgba(24, 59, 41, 0.08);
}

.faq-q-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  background: #edf7f2;
  color: #183b29;
  border: 1px solid #a3d9bf;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.faq-item.open .faq-q-badge {
  background: #183b29;
  color: #ffffff;
  border-color: #183b29;
}

.faq-q-text {
  flex: 1;
  font-size: 14.5px;
  color: #1b2621;
  line-height: 1.4;
}

.faq-q-arrow {
  font-size: 11px;
  color: #8c8275;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-q-arrow {
  transform: rotate(180deg);
  color: #183b29;
}

.faq-a-body {
  display: none;
  padding: 0 16px 16px 58px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #3b4740;
  border-top: 1px dashed #eee8dd;
}

.faq-item.open .faq-a-body {
  display: block;
}

.faq-a-body p {
  margin: 10px 0 6px 0;
}

.faq-tip-box {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f4f8f5;
  border-left: 3px solid #3b825b;
  border-radius: 4px;
  font-size: 12.5px;
  color: #274735;
}

/* 4. 1:1 질문 남기기 Form */
.qa-form-card {
  background: #ffffff;
  border: 1px solid #ded6c9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.qa-form-header {
  margin-bottom: 16px;
}

.qa-form-header strong {
  display: block;
  font-size: 16px;
  color: #17221d;
  margin-bottom: 4px;
}

.qa-form-sub {
  font-size: 12.5px;
  color: #64736b;
}

.qa-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qa-form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 680px) {
  .qa-form-row.two-cols {
    grid-template-columns: 1fr;
  }
}

.qa-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.qa-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: #3b4740;
}

.qa-field label .req {
  color: #d94848;
}

.qa-field input,
.qa-field select,
.qa-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #d5cbba;
  border-radius: 8px;
  background: #faf8f5;
  font-family: inherit;
  font-size: 13.5px;
  color: #1b2621;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s;
}

.qa-field input:focus,
.qa-field select:focus,
.qa-field textarea:focus {
  background: #ffffff;
  border-color: #183b29;
  box-shadow: 0 0 0 3px rgba(24, 59, 41, 0.12);
}

.qa-submit-btn {
  padding: 13px 24px;
  background: linear-gradient(135deg, #183b29, #225339);
  color: #ffffff;
  border: 1px solid #183b29;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(24, 59, 41, 0.25);
}

.qa-submit-btn:hover {
  background: #112d1f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 59, 41, 0.35);
}

.qa-feedback-notice {
  margin-top: 14px;
  padding: 12px 16px;
  background: #edf7f2;
  border: 1.5px solid #4ade80;
  border-radius: 8px;
  font-size: 13.5px;
  color: #14532d;
  font-weight: 600;
  line-height: 1.5;
}

/* 5. 내 질문 히스토리 */
.my-qa-section {
  background: #f5f2eb;
  border: 1px solid #dfd8cc;
  border-radius: 12px;
  padding: 16px 20px;
}

.my-qa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.my-qa-header strong {
  font-size: 14px;
  color: #17221d;
}

.my-qa-header small {
  font-size: 11.5px;
  color: #7b8880;
}

.my-qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-qa-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #7b8880;
}

.qa-item-card {
  background: #ffffff;
  border: 1px solid #dcd5c7;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.qa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.qa-card-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  background: #e2f0d9;
  color: #276a3c;
}

.qa-card-date {
  font-size: 11.5px;
  color: #8c8275;
}

.qa-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #17221d;
  margin-bottom: 4px;
}

.qa-card-content {
  font-size: 13px;
  color: #4b5851;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* 6. 고객센터 및 사업자 정보 */
.contact-info-card {
  background: #ffffff;
  border: 1px solid #ded6c9;
  border-radius: 12px;
  padding: 22px;
}

.contact-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece5d8;
}

.contact-icon {
  font-size: 32px;
  line-height: 1;
}

.contact-info-header strong {
  display: block;
  font-size: 17px;
  color: #17221d;
  margin-bottom: 4px;
}

.contact-info-header p {
  margin: 0;
  font-size: 13px;
  color: #64736b;
}

.company-spec-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px dashed #f0eae0;
}

@media (max-width: 580px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.spec-label {
  color: #727e77;
  font-weight: 600;
}

.spec-val {
  color: #1b2621;
}

.direct-channels-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.channel-quick-link.smartstore {
  background: #03c75a;
  color: #ffffff;
  border: 1px solid #02b150;
}

.channel-quick-link.smartstore:hover {
  background: #02a249;
  transform: translateY(-1px);
}

.channel-quick-link.liveklass {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
}

.channel-quick-link.liveklass:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.channel-quick-link.portal {
  background: #183b29;
  color: #f0fdf4;
  border: 1px solid #275d41;
}

.channel-quick-link.portal:hover {
  background: #0f271a;
  transform: translateY(-1px);
}


/* 케빈시티 포도송이 진입 뱃지 및 하이라이트 애니메이션 */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45); }
  50% { box-shadow: 0 0 0 12px rgba(124, 58, 237, 0); }
}

.highlight-pulse {
  outline: 3px solid #7c3aed !important;
  animation: pulseGlow 2s infinite ease-in-out;
}

.channel-grape-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  margin: 8px 0;
  word-break: break-all;
}

.channel-grape-badge a {
  color: #7c3aed;
  text-decoration: underline;
  font-weight: 800;
}

.channel-grape-badge a:hover {
  color: #5b21b6;
}

/* v7: mobile header — keep buttons on one scrollable row */
@media (max-width: 680px) {
  .header-actions { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .header-actions::-webkit-scrollbar { display: none; }
  .header-actions > * { flex: 0 0 auto; white-space: nowrap; }
}

/* v7: phone layout — studio first, textbook below, no side-by-side squeeze */
@media (max-width: 760px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 6px; }
  .brand-text small { display: none; }
  .workspace.dual-mode { padding: 8px 8px 12px; }
  .dual-workspace-container { grid-template-columns: 1fr; height: auto; max-height: none; border-radius: 14px; }
  .spiral-ring-spine { display: none; }
  .studio-panel { order: -1; min-height: 86vh; }
  .textbook-panel { min-height: 86vh; }
  .panel-subtitle { display: none; }
}
