:root {
  --bg: #0b0b12;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ecebf3;
  --muted: #9a98ad;
  --accent: #8b5cf6;
  --accent2: #22d3ee;
  --daangn: #ff6f0f;
  --grad: linear-gradient(120deg, var(--accent), var(--accent2));
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  /* Hangul-wrap (CJK 단어 단위 줄바꿈): 한글 단어가 음절 중간('링\n크')에서 끊기지 않고 띄어쓰기 단위로 줄바꿈되도록 전역 설정 */
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 제목류는 단어 단위 유지 + 줄 길이 균형(balance) 적용 */
h1, h2, h3, h4, .quiz-question, .modal-box h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

/* 본문·설명·리스트는 단어 단위 줄바꿈 + 마지막 줄 고아 단어 방지(pretty) */
p, li, dd, summary, .hint, .modal-desc, .modal-sub, .terms-scroll, .quiz-card-body {
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* 탭·배지·단추 등 짧은 UI 라벨은 모바일에서도 절대 두 줄로 쪼개지지 않도록 한 줄 고정 */
.tab,
.yt-tab-label,
.lang-btn,
.coin-pill,
.admin-btn,
.login-top-btn,
.role-pill,
.suno-pill-btn,
.copy,
.promo-badge,
.offer-tag,
.sample-badge,
.carousel-arrow,
#nextQuizBtn,
.btn-coin-quick,
.btn-coin-grant {
  white-space: nowrap;
}
.bg-glow {
  position: fixed; inset: -20% -10% auto; height: 70vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(34, 211, 238, 0.18), transparent 70%);
  filter: blur(20px);
}
.hidden { display: none !important; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 880px; margin: 0 auto; padding: 22px 20px; flex-wrap: wrap;
}
.top-left { display: flex; align-items: center; gap: 10px; }
.top-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logo { color: var(--text); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text); font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em;
  padding: 6px 11px; border-radius: 99px; cursor: pointer; transition: all 0.2s ease;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.lang-btn.is-en {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(139, 92, 246, 0.28));
  border-color: rgba(34, 211, 238, 0.65);
  color: #ffffff;
  box-shadow: 0 0 14px -3px rgba(34, 211, 238, 0.45);
}
.lang-flag {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.lang-code { line-height: 1; }

.coin-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(251, 191, 36, 0.13); border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde68a; font: inherit; font-size: 13.5px; font-weight: 700;
  padding: 6px 13px; border-radius: 99px; cursor: pointer; transition: 0.2s;
}
.coin-pill:hover { background: rgba(251, 191, 36, 0.24); transform: translateY(-1px); }
.coin-pill strong { color: #fff; font-weight: 800; }

.admin-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.16); color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 13px; border-radius: 99px; cursor: pointer; transition: 0.2s;
}
.admin-btn:hover { background: rgba(139, 92, 246, 0.28); border-color: var(--accent2); transform: translateY(-1px); }
.admin-btn .badge {
  background: var(--grad); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 99px; min-width: 20px; text-align: center;
}

.profile-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: 0.2s;
}
.profile-btn:hover { border-color: var(--accent); background: rgba(139, 92, 246, 0.12); }
.user-email { color: var(--text); max-width: 185px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.caret { color: var(--muted); font-size: 11px; }
.role-pill {
  font-size: 11px; font-weight: 700; color: #22d3ee; background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35); padding: 2px 8px; border-radius: 99px;
}

.login-top-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.16);
  color: #fff; font: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 13px; border-radius: 99px; cursor: pointer; transition: 0.2s;
}
.login-top-btn:hover { background: rgba(139, 92, 246, 0.3); transform: translateY(-1px); }
.login-top-btn small {
  background: var(--grad); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 99px; font-weight: 800;
}

button.ghost.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 99px; }

main { max-width: 880px; margin: 0 auto; padding: 0 20px 40px; }
.hero { text-align: center; padding: 42px 0 32px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.22; letter-spacing: -0.035em; font-weight: 800; }
.hero em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ---- hero visual: sound → AI → text (abstract, animated) ---- */
.hero-visual {
  position: relative;
  display: grid; grid-template-columns: auto minmax(110px, 168px) auto; align-items: center; gap: 20px;
  width: fit-content; max-width: 100%; margin: 28px auto 6px; padding: 18px 30px;
  border-radius: 30px;
  background:
    radial-gradient(120% 160% at 0% 50%, rgba(139, 92, 246, 0.18), transparent 58%),
    radial-gradient(120% 160% at 100% 50%, rgba(34, 211, 238, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px -34px rgba(139, 92, 246, 0.7);
  backdrop-filter: blur(10px);
}

/* left: living sound wave */
.hv-wave {
  display: flex; align-items: center; gap: 4px; height: 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 100%);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 100%);
}
.hv-wave span {
  width: 4px; height: 100%; border-radius: 4px;
  background: linear-gradient(180deg, #ddd6fe 0%, #a78bfa 45%, #7c3aed 100%);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.35);
  transform: scaleY(calc(var(--s) * 0.4));
  animation: hvWave 1.7s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes hvWave {
  0%, 100% { transform: scaleY(calc(var(--s) * 0.4)); }
  50% { transform: scaleY(var(--s)); }
}

/* middle: flowing signal through a glowing AI core */
.hv-flow { position: relative; height: 48px; }
.hv-flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hv-flow-base {
  fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 1.2; vector-effect: non-scaling-stroke;
}
.hv-flow-dash {
  fill: none; stroke: url(#hvFlowGrad); stroke-width: 2.2; stroke-linecap: round;
  stroke-dasharray: 1.5 9; vector-effect: non-scaling-stroke;
  animation: hvFlow 1.3s linear infinite;
}
@keyframes hvFlow { to { stroke-dashoffset: -21; } }
.hv-core {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%);
}
.hv-core b {
  position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #ddd6fe 28%, #8b5cf6 66%, #22d3ee 100%);
  box-shadow: 0 0 16px 3px rgba(139, 92, 246, 0.6), 0 0 34px 10px rgba(34, 211, 238, 0.16);
  animation: hvCore 2.6s ease-in-out infinite;
}
.hv-core i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(196, 181, 253, 0.55);
  animation: hvRing 2.6s ease-out infinite;
}
.hv-core i:nth-child(2) { animation-delay: 1.3s; border-color: rgba(103, 232, 249, 0.45); }
@keyframes hvRing { 0% { transform: scale(0.45); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes hvCore { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* right: text being written */
.hv-text { display: grid; gap: 8px; justify-items: start; min-width: 104px; }
.hv-word-row { display: inline-flex; align-items: center; }
.hv-word {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-size: clamp(22px, 3.6vw, 30px); font-weight: 600; letter-spacing: 0.26em; line-height: 1;
  background: linear-gradient(90deg, #ede9fe 0%, #c4b5fd 35%, #a5f3fc 65%, #ede9fe 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hvShimmer 5s linear infinite;
}
@keyframes hvShimmer { to { background-position: -220% 0; } }
.hv-caret {
  width: 2px; height: 1.05em; margin-left: -0.12em; border-radius: 2px;
  font-size: clamp(22px, 3.6vw, 30px);
  background: #67e8f9; box-shadow: 0 0 8px #22d3ee;
  animation: hvBlink 1.05s steps(1) infinite;
}
@keyframes hvBlink { 50% { opacity: 0; } }
.hv-lines { display: grid; gap: 5px; width: 100%; }
.hv-lines i {
  display: block; height: 3px; border-radius: 3px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.6), rgba(34, 211, 238, 0.45));
  animation: hvType 3.4s ease-in-out infinite;
}
.hv-lines i:nth-child(1) { width: 100%; }
.hv-lines i:nth-child(2) { width: 76%; animation-delay: 0.28s; }
.hv-lines i:nth-child(3) { width: 48%; animation-delay: 0.56s; }
@keyframes hvType {
  0% { transform: scaleX(0); opacity: 0.15; }
  35%, 78% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

.hero p { color: var(--muted); margin-top: 16px; font-size: 16px; }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(12px);
}
.tabs { display: flex; gap: 6px; background: rgba(0, 0, 0, 0.25); padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 600;
  padding: 11px 12px; border-radius: 9px; cursor: pointer; transition: all 0.22s ease;
}
.tab.active { background: rgba(255, 255, 255, 0.09); color: var(--text); }

/* YouTube 탭 전용 시그니처 레드 디자인 */
.tab.tab-youtube {
  position: relative;
  letter-spacing: -0.01em;
}
.tab.tab-youtube .yt-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
}
.tab.tab-youtube .yt-tab-triangle {
  fill: #ffffff;
  transition: fill 0.22s ease;
}
.tab.tab-youtube:not(.active):hover {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 59, 59, 0.35);
  color: #ffffff;
}
.tab.tab-youtube.active {
  background: linear-gradient(180deg, #ff1f1f 0%, #e60000 52%, #c80000 100%);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 6px 18px -4px rgba(255, 0, 0, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 8px rgba(0, 0, 0, 0.25);
}
.tab.tab-youtube.active .yt-tab-badge {
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.tab.tab-youtube.active .yt-tab-triangle {
  fill: #e60000;
}
.tab.tab-youtube.active:hover {
  background: linear-gradient(180deg, #ff3333 0%, #f00000 52%, #d40000 100%);
  box-shadow:
    0 8px 22px -3px rgba(255, 20, 20, 0.68),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

input[type="url"], input[type="search"], input[type="number"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; outline: none; transition: 0.2s;
}
input[type="url"]:focus, input[type="search"]:focus, input[type="number"]:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 30px 16px; color: var(--muted);
  transition: 0.2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(139, 92, 246, 0.06); color: var(--text); }
.drop.has-file { border-style: solid; border-color: var(--accent2); color: var(--text); }
.drop small { font-size: 12px; }

.submit-mt { margin-top: 20px; }

button.primary {
  width: 100%; border: 0; border-radius: 12px; padding: 15px; font: inherit; font-size: 16px; font-weight: 700;
  color: #fff; background: var(--grad); cursor: pointer; transition: 0.2s;
}
button.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
button.primary:disabled { opacity: 0.5; cursor: wait; transform: none; }
button.ghost {
  border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 600;
  border-radius: 10px; padding: 10px 16px; cursor: pointer; transition: 0.2s;
}
button.ghost:hover { border-color: var(--accent); }

.google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  background: #fff; color: #18181b; border: 0; border-radius: 12px; padding: 14px 22px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.2s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.google-btn.full { flex: 1; }
.google-btn:hover:not(:disabled) { transform: translateY(-1px); background: #f4f4f6; }
.google-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* admin backoffice */
.admin-panel { display: grid; gap: 18px; margin-bottom: 20px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h2 { font-size: 21px; letter-spacing: -0.02em; }
.admin-stats.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card {
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.stat-card span { font-size: 12.5px; color: var(--muted); display: block; }
.stat-card strong { font-size: 24px; font-weight: 800; margin-top: 4px; display: block; }

.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-search.full { display: flex; gap: 8px; align-items: center; width: 100%; }
.admin-search.full input { padding: 11px 14px; font-size: 14px; border-radius: 10px; flex: 1; }

.user-list { display: grid; gap: 10px; max-height: 640px; overflow: auto; }
.user-row {
  display: flex; flex-direction: column; gap: 0;
  padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.24); border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.user-row.is-open {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(18, 18, 32, 0.65);
}
.user-row-main {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; width: 100%;
}
.user-info {
  display: grid; gap: 4px; cursor: pointer; flex: 1; min-width: 220px;
  padding: 4px 6px; margin: -4px -6px; border-radius: 8px; transition: background 0.18s ease;
}
.user-info:hover {
  background: rgba(255, 255, 255, 0.045);
}
.user-info .u-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-info .u-top strong { font-size: 15px; }
.user-info .u-email { font-size: 13.5px; color: var(--accent2); font-weight: 600; }
.user-info .u-meta { font-size: 12.5px; color: var(--muted); }
.coin-tag {
  display: inline-block; background: rgba(251, 191, 36, 0.16); color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.4); font-size: 12px; font-weight: 800;
  padding: 2px 9px; border-radius: 99px;
}
.yt-count-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(139, 92, 246, 0.22); color: #ede9fe;
  border: 1px solid rgba(139, 92, 246, 0.55); font: inherit; font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 99px; white-space: nowrap; cursor: pointer;
  transition: 0.18s ease;
}
.yt-count-pill:hover {
  background: rgba(139, 92, 246, 0.38);
  color: #ffffff;
}
.user-row.is-open .yt-count-pill {
  background: rgba(34, 211, 238, 0.2);
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.5);
}
.user-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.coin-input-sm {
  width: 86px !important; padding: 7px 10px !important; font-size: 13px !important; border-radius: 8px !important;
}
.btn-coin-grant {
  border: 0; border-radius: 8px; padding: 7px 11px; font: inherit; font-size: 12.5px; font-weight: 700;
  color: #fff; background: var(--grad); cursor: pointer;
}
.btn-coin-grant:hover { filter: brightness(1.1); }
.btn-coin-deduct {
  border: 1px solid rgba(248, 113, 113, 0.45); border-radius: 8px; padding: 6px 10px;
  font: inherit; font-size: 12.5px; font-weight: 700; color: #fecaca;
  background: rgba(239, 68, 68, 0.14); cursor: pointer; white-space: nowrap;
}
.btn-coin-deduct:hover { background: rgba(239, 68, 68, 0.26); }
.btn-coin-quick {
  border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 8px; padding: 6px 10px;
  font: inherit; font-size: 12px; font-weight: 700; color: #a5f3fc; background: rgba(34, 211, 238, 0.1); cursor: pointer;
}
.btn-coin-quick:hover { background: rgba(34, 211, 238, 0.22); }

/* User analyzed YouTube links collapsible drawer */
.user-yt-drawer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 8px;
}
.user-yt-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #c4b5fd;
}
.btn-yt-drawer-close {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  cursor: pointer;
}
.btn-yt-drawer-close:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.user-yt-items {
  display: grid;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 2px;
}
.user-yt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.user-yt-item-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-yt-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-yt-item-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.user-yt-item-link {
  color: #fca5a5;
  text-decoration: none;
  font-weight: 600;
}
.user-yt-item-link:hover {
  text-decoration: underline;
  color: #fecaca;
}
.btn-yt-del {
  flex-shrink: 0;
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.18s ease;
}
.btn-yt-del:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
.user-yt-empty {
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 4px;
}
.empty-users { text-align: center; color: var(--muted); padding: 32px 16px; font-size: 14px; }

/* status + learning quiz box (분석 중 페이지) */
#statusWrap { display: grid; gap: 18px; margin-top: 8px; }
#statusPanel { text-align: center; padding: 30px 24px; }
.spinner { display: flex; gap: 5px; justify-content: center; height: 32px; align-items: flex-end; margin-bottom: 14px; }
.spinner span { width: 6px; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.spinner span:nth-child(2) { animation-delay: 0.15s; } .spinner span:nth-child(3) { animation-delay: 0.3s; }
.spinner span:nth-child(4) { animation-delay: 0.45s; } .spinner span:nth-child(5) { animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { height: 8px; } 50% { height: 32px; } }
.waiting .spinner span { animation-duration: 2.2s; opacity: 0.6; }
.status-msg { font-size: 17px; font-weight: 700; }
.steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.steps li {
  font-size: 12.5px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
  transition: 0.3s;
}
.steps li.active { color: var(--text); border-color: var(--accent); background: rgba(139, 92, 246, 0.15); }
.steps li.done { color: var(--accent2); border-color: rgba(34, 211, 238, 0.35); }
.steps li.done::before { content: "✓ "; }

/* quiz box (학습 박스) */
.quiz-box { display: grid; gap: 16px; border-color: rgba(139, 92, 246, 0.35); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz-title-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quiz-score-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); padding: 4px 11px; border-radius: 99px;
}
.quiz-score-pill strong { color: #fde68a; }
.quiz-question {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.28);
  padding: 14px 18px; border-radius: 13px; text-align: center;
}
.quiz-player-area { display: grid; gap: 10px; justify-items: center; }
.yt-play-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.14);
  color: #fecaca; font: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 20px; border-radius: 99px; cursor: pointer; transition: 0.2s;
}
.yt-play-btn:hover { background: rgba(239, 68, 68, 0.26); color: #fff; transform: translateY(-1px); }
.yt-play-btn .play-icon {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: #ef4444; color: #fff; font-size: 11px;
}
.quiz-yt-embed {
  width: 100%; max-width: 480px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.quiz-yt-embed iframe { width: 100%; height: 100%; border: 0; }

.quiz-carousel-wrap { display: grid; gap: 10px; }
.quiz-carousel-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.carousel-hint { font-size: 12.5px; color: var(--muted); }
.carousel-arrows { display: flex; gap: 6px; }
.carousel-arrow {
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text);
  font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 8px; cursor: pointer;
}
.carousel-arrow.active { border-color: var(--accent); background: rgba(139, 92, 246, 0.18); }

.quiz-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.quiz-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-align: left;
  background: rgba(0, 0, 0, 0.32); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 18px; color: var(--text); font: inherit; cursor: pointer; transition: 0.2s;
}
.quiz-card:hover:not(:disabled) {
  border-color: var(--accent); background: rgba(139, 92, 246, 0.11); transform: translateY(-2px);
}
.quiz-card.focused { box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.35); }
.quiz-card.correct {
  border-color: #22c55e !important; background: rgba(34, 197, 94, 0.16) !important;
}
.quiz-card.wrong {
  border-color: #ef4444 !important; background: rgba(239, 68, 68, 0.15) !important;
}
.quiz-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; font-weight: 800; color: var(--accent2); letter-spacing: 0.06em; text-transform: uppercase;
}
.quiz-card-body { font-size: 15px; font-weight: 700; line-height: 1.5; word-break: keep-all; }
.quiz-card-cta {
  font-size: 12px; color: var(--muted); font-weight: 600;
  border-top: 1px solid var(--line); padding-top: 8px;
}
.quiz-feedback {
  text-align: center; font-size: 14.5px; font-weight: 700; padding: 10px 14px; border-radius: 10px;
}
.quiz-feedback.ok { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35); }
.quiz-feedback.no { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }

/* results + Suno button (centered, warm orange → white, glossy) */
.results { display: grid; gap: 18px; }
.suno-top-bar {
  position: relative; isolation: isolate;
  display: flex; justify-content: center; padding: 8px 0 6px;
}
.suno-top-bar::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 300px; height: 80px;
  transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 128, 40, 0.38), transparent);
  filter: blur(16px);
  animation: sunoHalo 3.6s ease-in-out infinite;
}
@keyframes sunoHalo { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }

.suno-pill-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 7px 8px 7px 7px; border-radius: 999px; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffc08a 0%, #ff8a2b 30%, #f76707 64%, #e8590c 100%);
  text-shadow: 0 1px 1px rgba(122, 38, 0, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(122, 38, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 14px 34px -12px rgba(255, 112, 20, 0.8),
    0 4px 12px -4px rgba(255, 112, 20, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.suno-pill-btn::before {
  content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 52%;
  border-radius: 999px 999px 60% 60% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  z-index: -1; pointer-events: none;
}
.suno-pill-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 32%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg); pointer-events: none;
  animation: sunoShine 4.2s ease-in-out infinite;
}
@keyframes sunoShine { 0%, 62% { left: -45%; } 100% { left: 135%; } }
.suno-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(122, 38, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 18px 40px -12px rgba(255, 112, 20, 0.9),
    0 6px 16px -4px rgba(255, 112, 20, 0.6);
}
.suno-chip {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #fff4ea 70%, #ffe6d1 100%);
  color: #f76707;
  box-shadow: 0 2px 8px rgba(150, 50, 0, 0.35), inset 0 -1px 0 rgba(255, 150, 70, 0.3);
}
.suno-chip svg { margin-left: 2px; }
.suno-label { padding: 0 2px; }
.suno-arrow {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}
.suno-pill-btn:hover .suno-arrow { transform: translate(2px, -2px); background: rgba(255, 255, 255, 0.34); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent2); font-weight: 700; }
.card h2 { font-size: 20px; letter-spacing: -0.02em; }
.card h2 small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.copy {
  flex-shrink: 0; border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--grad); cursor: pointer;
}
.meta { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 14px; margin-bottom: 16px; }
.meta dt { color: var(--muted); }
pre {
  white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-family: inherit;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
pre.prompt { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13.5px; color: #d9d4ff; }
pre.lyrics { font-size: 15.5px; line-height: 1.9; max-height: 70vh; overflow: auto; }

/* Result top YouTube preview card */
.result-yt-card {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.result-yt-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 100%;
}
.result-yt-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.result-yt-embed {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* Result bottom footer: Suno button on the left + Centered Fluorescent Cyan-Blue 'Analyze Another Song' CTA Button */
.result-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.result-foot-left {
  justify-self: start;
  display: flex;
  align-items: center;
}
.result-foot-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-foot-right {
  justify-self: end;
  text-align: right;
}
@media (max-width: 720px) {
  .result-foot {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .result-foot-left,
  .result-foot-center,
  .result-foot-right {
    justify-self: center;
    text-align: center;
  }
}
.again-cta-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 270px;
  padding: 16px 46px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 28, 70, 0.55);
  background: linear-gradient(135deg, #00f5ff 0%, #00c8ff 36%, #0088ff 72%, #2563eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 0 rgba(0, 40, 110, 0.35),
    0 0 0 1px rgba(0, 245, 255, 0.45),
    0 14px 36px -8px rgba(0, 200, 255, 0.72),
    0 0 24px rgba(0, 245, 255, 0.38);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.again-cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: sunoShine 4s ease-in-out infinite;
}
.again-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 0 rgba(0, 40, 110, 0.35),
    0 0 0 1.5px rgba(0, 245, 255, 0.75),
    0 18px 42px -8px rgba(0, 210, 255, 0.88),
    0 0 32px rgba(0, 245, 255, 0.55);
}
.again-cta-btn:active {
  transform: translateY(0) scale(0.99);
}

/* modals */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.68);
  display: grid; place-items: center; z-index: 50; padding: 20px; overflow-y: auto;
}
.modal-box {
  background: #161622; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; max-width: 430px; width: 100%; text-align: center;
}
.modal-box.wide { max-width: 540px; text-align: left; }
.modal-box h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; text-align: center; }
.modal-sub { color: var(--muted); font-size: 13.5px; text-align: center; margin-bottom: 16px; }
.modal-desc { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 20px; }
.modal-box p { margin-bottom: 16px; font-weight: 500; }
.hl { color: #fde68a; font-weight: 800; }
.promo-badge {
  display: inline-block; font-size: 12px; font-weight: 800; color: var(--accent2);
  background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 4px 12px; border-radius: 99px; margin: 0 auto 10px;
}
.modal-box.wide .promo-badge { display: table; margin: 0 auto 10px; }

.terms-scroll {
  max-height: 230px; overflow-y: auto; background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.terms-scroll h4 { color: var(--text); font-size: 13.5px; margin: 10px 0 4px; }
.terms-scroll h4:first-child { margin-top: 0; }
.terms-scroll p { margin-bottom: 8px; }
.terms-check {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer;
  margin-bottom: 18px; line-height: 1.45;
}
.terms-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }

.modal-actions { display: flex; gap: 10px; align-items: center; }
.modal-actions.col { flex-direction: column; align-items: stretch; }

.offer-card {
  border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.offer-card.daangn {
  border-color: rgba(255, 111, 15, 0.5); background: rgba(255, 111, 15, 0.09);
}
.offer-card.daangn.is-fb {
  border-color: rgba(24, 119, 242, 0.55); background: rgba(24, 119, 242, 0.11);
}
.offer-tag {
  display: inline-block; font-size: 11.5px; font-weight: 800; color: #ffedd5;
  background: var(--daangn); padding: 2px 9px; border-radius: 99px; margin-bottom: 6px;
}
.offer-card.daangn.is-fb .offer-tag {
  color: #e0f2fe;
  background: #1877F2;
}
.offer-card h4 { font-size: 15.5px; margin-bottom: 6px; color: #fff; }
.offer-card p { font-size: 13.5px; color: var(--text); opacity: 0.92; margin-bottom: 12px; line-height: 1.55; }
.offer-card.paid p { margin-bottom: 0; }
.offer-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-daangn, .btn-form {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none; font-size: 13.5px; font-weight: 800; padding: 10px 15px; border-radius: 10px;
  transition: 0.2s; flex: 1; min-width: 180px; text-align: center;
}
.btn-daangn { background: var(--daangn); color: #fff; }
.btn-daangn.is-fb {
  background: linear-gradient(135deg, #1877F2 0%, #0d5bd9 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px -4px rgba(24, 119, 242, 0.55);
}
.btn-daangn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-daangn.full { width: 100%; }
.btn-form {
  background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-form:hover { background: rgba(255, 255, 255, 0.18); }
.mail-link { color: var(--accent2); font-weight: 700; }

.profile-summary {
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin: 14px 0 18px; display: grid; gap: 8px; text-align: left;
}
.p-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.p-row span { color: var(--muted); }
.withdraw-link {
  display: block; text-align: center; font-size: 12.5px; color: #fca5a5;
  text-decoration: underline; padding: 6px 0;
}

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: 0.25s;
  background: #22223a; border: 1px solid var(--line); padding: 10px 18px; border-radius: 99px; font-size: 14px; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

footer { text-align: center; color: var(--muted); font-size: 12.5px; padding: 30px 20px 44px; border-top: 1px solid var(--line); max-width: 880px; margin: 0 auto; }
.footer-links {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; font-size: 12.5px;
}
.footer-link-btn {
  background: transparent; border: 0; color: var(--text); opacity: 0.82;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; padding: 2px 4px; transition: 0.2s;
}
.footer-link-btn:hover { color: var(--accent2); opacity: 1; }
.copy-r { margin-top: 10px; opacity: 0.6; }

/* ---- Recently Generated 3 YouTube Links & Prompts (Direct Result View) ---- */
.recent-block {
  margin-top: 32px;
}
.recent-list {
  display: grid;
  gap: 12px;
}
.recent-item {
  width: 100%;
  display: grid;
  grid-template-columns: 112px 1fr auto;
  align-items: center;
  gap: 16px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.recent-item:hover {
  border-color: rgba(139, 92, 246, 0.58);
  background: rgba(139, 92, 246, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(139, 92, 246, 0.55);
}
.recent-thumb {
  position: relative;
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: #050509;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
.recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.recent-num-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
  border: 1px solid rgba(254, 240, 138, 0.9);
  color: #1c1917;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.recent-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.recent-video-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.recent-yt-url {
  font-size: 12.5px;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 59, 59, 0.3);
  padding: 2px 9px;
  border-radius: 99px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-genre-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
}
.recent-prompt-preview {
  font-size: 13px;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-cta {
  font-size: 12.5px;
  font-weight: 800;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.42);
  padding: 8px 13px;
  border-radius: 99px;
  white-space: nowrap;
  transition: 0.2s;
}
.recent-item:hover .recent-cta {
  background: var(--grad);
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 640px) {
  .recent-item {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .recent-thumb {
    width: 88px;
  }
  .recent-cta {
    grid-column: 1 / -1;
    text-align: center;
    padding: 7px 12px;
  }
}

/* ---- Lower Content Guide, Showcase & FAQ (AdSense Publisher Content & User Guide) ---- */
.seo-guide {
  margin-top: 32px;
  display: grid;
  gap: 32px;
}
.seo-block {
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(10px);
}
.seo-head {
  margin-bottom: 20px;
}
.seo-head h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: #ffffff;
}
.seo-head p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.65;
}
.seo-grid {
  display: grid;
  gap: 14px;
}
.seo-grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.seo-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.seo-card {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
}
.seo-step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent2);
  margin-bottom: 6px;
}
.seo-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.seo-card p {
  font-size: 13.5px;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.62;
}
.seo-elements-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.seo-el-item {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.seo-el-item strong {
  font-size: 14px;
  color: #c4b5fd;
}
.seo-el-item span {
  font-size: 13px;
  color: var(--text);
  opacity: 0.86;
  line-height: 1.55;
}
.seo-el-item em {
  font-style: normal;
  color: #fde68a;
  font-weight: 600;
}
.seo-sample-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sample-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: #e0e7ff;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(139, 92, 246, 0.42);
  padding: 2px 9px;
  border-radius: 99px;
}
.seo-sample-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.sample-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  margin-top: -4px;
}
.sample-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 11px 12px;
}
.sample-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.sample-box p {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.55;
}
.seo-faq-list {
  display: grid;
  gap: 10px;
}
.seo-faq-item {
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}
.seo-faq-item summary {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
}
.seo-faq-item summary::-webkit-details-marker {
  display: none;
}
.seo-faq-item p {
  font-size: 13.5px;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.65;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 720px) {
  .seo-grid.two,
  .seo-grid.three,
  .seo-elements-list {
    grid-template-columns: 1fr;
  }
  .seo-block {
    padding: 20px 18px;
  }
}

@media (max-width: 600px) {
  .br-pc { display: none; }
  .top { padding: 16px 14px; gap: 10px; }
  .top-right { gap: 6px; }
  .lang-btn, .coin-pill, .login-top-btn, .admin-btn, .profile-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
  .hero { padding: 28px 0 22px; }
  .hero h1 { font-size: clamp(24px, 7vw, 34px); }
  .hero p { font-size: 14.5px; padding: 0 4px; }
  .hero-visual { grid-template-columns: auto 72px auto; gap: 12px; padding: 14px 18px; border-radius: 24px; }
  .hv-wave { gap: 3px; height: 40px; }
  .hv-wave span { width: 3px; }
  .hv-text { min-width: 86px; }
  .panel, .card { padding: 18px 16px; }
  .tabs { gap: 5px; padding: 4px; }
  .tab { padding: 10px 8px; font-size: 14px; gap: 6px; }
  .meta { grid-template-columns: 1fr; gap: 2px; }
  .meta dd { margin-bottom: 8px; }
  .admin-stats.two { grid-template-columns: 1fr; }
  .quiz-cards { grid-template-columns: 1fr; }
  .quiz-card.mobile-hide { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual *, .suno-top-bar::before, .suno-pill-btn::after { animation: none !important; }
  .hv-wave span { transform: scaleY(var(--s)); }
  .hv-lines i { transform: scaleX(1); opacity: 0.8; }
}
