/* ============================================================
   HAR ANIMASI — VOICE ACTOR PORTAL
   CINEMATIC PREMIUM DESIGN SYSTEM
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* surfaces */
  --bg: #07070A;
  --bg-grid: #0B0B10;
  --surface: rgba(255,255,255,0.04);
  --surface-solid: #131218;
  --surface-2: rgba(255,255,255,0.065);
  --surface-3: rgba(255,255,255,0.09);

  /* ink / paper */
  --ink: #07070A;
  --paper: #F6F3EA;

  /* text */
  --text-primary: #F5F3EC;
  --text-secondary: #9C99A8;
  --text-tertiary: #635F6E;

  /* lines */
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.16);

  /* accents — warm gold gradient, premium jewel tones */
  --gold-1: #FFE08A;
  --gold-2: #FFC94A;
  --gold-3: #E9A420;
  --accent: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  --accent-solid: #FFC94A;
  --accent-ink: #1A1206;
  --success: #34D399;
  --warning: #FFC94A;
  --danger: #FB5B6B;
  --info: #5EA8FF;

  /* soft tints (badges) */
  --success-soft: rgba(52,211,153,0.14);
  --warning-soft: rgba(255,201,74,0.14);
  --danger-soft: rgba(251,91,107,0.14);
  --info-soft: rgba(94,168,255,0.14);

  /* shape */
  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --bw: 1px;
  --bw-thick: 1.5px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 8px 20px -8px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35), 0 20px 44px -16px rgba(0,0,0,0.6);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.4), 0 36px 80px -24px rgba(0,0,0,0.7);
  --shadow-accent: 0 1px 1px rgba(255,201,74,0.35), 0 16px 40px -14px rgba(255,178,32,0.35);
  --shadow-accent-sm: 0 1px 1px rgba(255,201,74,0.3), 0 8px 20px -8px rgba(255,178,32,0.3);

  --transition: 180ms cubic-bezier(.2,.7,.3,1);
  --ease: cubic-bezier(.16,.8,.24,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 14% -10%, rgba(255,201,74,0.10), transparent 60%),
    radial-gradient(760px 420px at 100% 0%, rgba(94,79,220,0.10), transparent 55%),
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed, fixed, scroll, scroll;
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

::selection { background: var(--gold-2); color: var(--accent-ink); }

/* premium scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: var(--radius-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

.icon {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------------- LAYOUT ---------------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

/* ---------------- NAVBAR ---------------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,10,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: var(--bw) solid var(--line);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink); font-family: var(--font-display); font-weight: 800;
  box-shadow: var(--shadow-accent-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.brand:hover .brand-mark { transform: translateY(-2px) scale(1.03); box-shadow: var(--shadow-accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-secondary); font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em; padding: 9px 15px; border-radius: var(--radius-pill);
  border: var(--bw) solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: var(--surface-2); }
.nav-links a.active { color: var(--accent-ink); background: var(--accent); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: var(--surface); border: var(--bw) solid var(--line);
  border-radius: var(--radius-sm); padding: 8px; cursor: pointer;
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.01em;
  border: var(--bw) solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), background var(--transition), border-color var(--transition), opacity var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent-sm); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: var(--shadow-accent-sm); }

.btn-secondary { background: var(--surface-2); color: var(--text-primary); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { transform: translateY(-2px); background: var(--surface-3); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.btn-secondary:active:not(:disabled) { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--line-strong); }
.btn-outline:hover:not(:disabled) { border-color: var(--accent-solid); color: var(--accent-solid); transform: translateY(-2px); box-shadow: var(--shadow-accent-sm); }
.btn-outline:active:not(:disabled) { transform: translateY(0); }

.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(251,91,107,0.35); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; border-color: var(--danger); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(251,91,107,0.55); }
.btn-danger:active:not(:disabled) { transform: translateY(0); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 12px; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }

/* ---------------- CARDS ---------------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.card-hover:hover {
  border-color: rgba(255,201,74,0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

/* ---------------- FORMS ---------------- */
.field { margin-bottom: 18px; }
.label {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 8px;
}
.input, .select, .textarea {
  width: 100%; background: rgba(255,255,255,0.03);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent-solid); background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(255,201,74,0.14);
}
.textarea { resize: vertical; min-height: 96px; }

.field-error { color: var(--danger); font-size: 12px; font-weight: 600; margin-top: 6px; display: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-secondary); }
.checkbox-row input { margin-top: 3px; accent-color: var(--accent-solid); width: 16px; height: 16px; }

/* ---------------- BADGES ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  border: var(--bw) solid transparent; background: var(--surface-2); color: var(--text-secondary);
}
.badge-open, .badge-selected, .badge-success { background: var(--success-soft); color: var(--success); }
.badge-pending, .badge-reviewing { background: var(--warning-soft); color: var(--warning); }
.badge-rejected, .badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-shortlisted, .badge-info { background: var(--info-soft); color: var(--info); }

/* ---------------- ALERTS / TOAST ---------------- */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(19,18,24,0.9); backdrop-filter: blur(14px);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-lg);
  animation: toast-in 260ms var(--ease); font-size: 13px; font-weight: 500;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.toast-success { border-color: rgba(52,211,153,0.4); } .toast-success .icon { color: var(--success); }
.toast-error { border-color: rgba(251,91,107,0.4); } .toast-error .icon { color: var(--danger); }
.toast-info { border-color: rgba(94,168,255,0.4); } .toast-info .icon { color: var(--info); }
.toast-warning { border-color: rgba(255,201,74,0.4); } .toast-warning .icon { color: var(--warning); }

/* ---------------- MODAL ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(4,4,6,0.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 900; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: linear-gradient(180deg, #17161C, #101014);
  border: var(--bw) solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modal-in 220ms var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.modal-body { color: var(--text-secondary); font-size: 14px; margin-bottom: 22px; line-height: 1.65; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------- SKELETON / LOADING ---------------- */
.skeleton {
  background: linear-gradient(100deg, var(--surface) 25%, var(--surface-3) 37%, var(--surface) 63%);
  background-size: 400% 100%; animation: skeleton-loading 1.5s ease infinite;
  border-radius: var(--radius-lg); border: var(--bw) solid var(--line);
}
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.spinner { width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--accent-solid); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- EMPTY / ERROR STATES ---------------- */
.state-box { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.state-box .icon {
  width: 44px; height: 44px; margin: 0 auto 16px; padding: 10px;
  color: var(--accent-solid); background: var(--surface-2);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.state-box .state-title { color: var(--text-primary); font-family: var(--font-display); font-weight: 800; margin-bottom: 6px; }

/* ---------------- HERO ---------------- */
.hero { padding: 120px 0 90px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; left: 50%;
  width: 720px; height: 380px; background: var(--accent); filter: blur(90px);
  opacity: 0.28; transform: translateX(-50%) rotate(-3deg); border-radius: 50%; pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 18px;
}
.hero .accent-text {
  background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero p { color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- GRIDS ---------------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(10,10,13,0.98); backdrop-filter: blur(14px);
    border-bottom: var(--bw) solid var(--line-strong);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 10px 16px 18px; box-shadow: var(--shadow-lg);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 12px 10px; border-radius: var(--radius-sm); }
  .nav-toggle { display: inline-flex; }
  .nav-toggle.is-open { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
}

/* ---------------- SECTION HEADER ---------------- */
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.section-header p { color: var(--text-secondary); font-size: 15px; }

/* ---------------- STEP LIST ---------------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: var(--bw) solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-accent-sm); border-color: rgba(255,201,74,0.35); }
.step-num {
  width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow-accent-sm);
}
.step-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text-secondary); }

/* ---------------- FOOTER ---------------- */
.footer { border-top: var(--bw) solid var(--line); padding: 40px 0; color: var(--text-tertiary); font-size: 13px; text-align: center; }

/* ---------------- AUTH PAGES ---------------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; }
.auth-wrap::before {
  content: ""; position: absolute; top: -10%; left: 50%; width: 900px; height: 500px;
  background: radial-gradient(closest-side, rgba(255,201,74,0.16), transparent 70%);
  transform: translateX(-50%); pointer-events: none;
}
.auth-card {
  width: 100%; max-width: 440px; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: var(--bw) solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 38px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-card .sub { color: var(--text-secondary); font-size: 13px; text-align: center; margin-bottom: 28px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 18px; }
.auth-foot a { color: var(--accent-solid); font-weight: 700; }

.register-wrap { max-width: 640px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

.terms-box {
  background: rgba(255,255,255,0.03); border: var(--bw) solid var(--line-strong);
  border-left: 3px solid var(--accent-solid); border-radius: var(--radius-sm);
  padding: 16px; font-size: 12.5px; color: var(--text-secondary);
  max-height: 160px; overflow-y: auto; margin-bottom: 16px; line-height: 1.6;
}

/* ---------------- CASTING LIST ---------------- */
.casting-card { display: flex; flex-direction: column; gap: 14px; }
.casting-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.casting-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.casting-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-secondary); font-weight: 500; }
.casting-meta span { display: flex; align-items: center; gap: 6px; }
.casting-meta .icon { width: 15px; height: 15px; color: var(--accent-solid); }

/* ---------------- CASTING DETAIL ---------------- */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-block { margin-bottom: 24px; }
.detail-block h4 {
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); display: inline-block;
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 10px; font-weight: 800;
}
.detail-block p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; }
.side-card { position: sticky; top: 88px; }
.side-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: var(--bw) dashed var(--line); font-size: 13.5px; }
.side-row:last-of-type { border-bottom: none; }
.side-row span:first-child { color: var(--text-secondary); }
.side-row span:last-child { font-weight: 700; }

/* ---------------- CHARACTER SELECTION ---------------- */
.char-card { position: relative; cursor: pointer; text-align: left; }
.char-card.selected { border-color: rgba(255,201,74,0.5); box-shadow: var(--shadow-accent); transform: translateY(-4px); }
.char-card.selected .char-icon { transform: scale(1.05); }
.char-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--surface-2); border: var(--bw) solid var(--line-strong); color: var(--accent-solid);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  transition: transform var(--transition);
}
.char-icon .icon { width: 28px; height: 28px; }
.char-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.char-card .char-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.03em; }
.char-card .char-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; min-height: 36px; }
.char-selected-tag {
  position: absolute; top: 18px; right: 18px; display: none; align-items: center; gap: 6px;
  color: var(--accent-ink); background: var(--accent); padding: 4px 9px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.char-card.selected .char-selected-tag { display: flex; }
.char-card.selected .char-selected-tag .icon { width: 14px; height: 14px; }

.char-card-actions { display: flex; gap: 10px; }
.play-sample-btn { display: flex; align-items: center; gap: 6px; }

.selected-character-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 32px; padding: 20px 24px; border-color: rgba(255,201,74,0.4); box-shadow: var(--shadow-accent);
}
.selected-character-info { display: flex; align-items: center; gap: 14px; }
.selected-character-info .char-icon { margin-bottom: 0; width: 46px; height: 46px; }
.selected-character-info .char-icon .icon { width: 22px; height: 22px; }
.selected-character-text .name { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.selected-character-text .meta { font-size: 12px; color: var(--text-secondary); }

/* ---------------- AUDITION PAGE ---------------- */
.audition-header { margin-bottom: 28px; }
.audition-header h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.dialog-box {
  background: rgba(255,255,255,0.03); border: var(--bw) solid var(--line-strong);
  border-left: 3px solid var(--accent-solid); border-radius: var(--radius);
  padding: 20px; font-size: 17px; font-style: italic; line-height: 1.6;
}

.recorder-box { text-align: center; padding: 44px 24px; }
.recorder-status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse 1.1s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }
.mic-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,201,74,0.18), var(--surface-2));
  border: var(--bw-thick) solid rgba(255,201,74,0.45); box-shadow: var(--shadow-accent);
  color: var(--accent-solid); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; transition: box-shadow var(--transition), border-color var(--transition);
}
.mic-circle.recording { border-color: var(--danger); box-shadow: 0 0 0 1px rgba(251,91,107,0.4), 0 16px 40px -14px rgba(251,91,107,0.5); color: var(--danger); }
.mic-circle .icon { width: 40px; height: 40px; }
.rec-timer { font-family: var(--font-display); font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; margin-bottom: 24px; }

.audio-player {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03); border: var(--bw) solid var(--line-strong);
  border-radius: var(--radius); padding: 14px 16px; margin: 20px 0;
}
.audio-player .play-toggle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  border: none; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-accent-sm);
}
.audio-player .track { flex: 1; }
.audio-player .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; cursor: pointer; }
.audio-player .bar-fill { height: 100%; width: 0%; background: var(--accent); }
.audio-player .time { font-size: 11px; color: var(--text-secondary); margin-top: 6px; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }

.recorder-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- UTIL ---------------- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ---------------- SETUP ERROR BANNER ---------------- */
.setup-banner { position: sticky; top: 0; z-index: 200; background: var(--danger); }
.setup-banner-inner { max-width: 1140px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; color: #1A0508; }
.setup-banner-inner .icon { width: 22px; height: 22px; flex-shrink: 0; }
.setup-banner-inner strong { display: block; font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.setup-banner-inner span { font-size: 12.5px; opacity: 0.85; }

/* ---------------- REVEAL-IN MOTION ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- AMBIENT MOTION ---------------- */
@keyframes float-blob {
  0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); }
  50% { transform: translateX(-50%) rotate(-1deg) translateY(16px); }
}
.hero::before { animation: float-blob 10s ease-in-out infinite; }

.icon { transition: transform 200ms var(--ease); }
.btn:hover:not(:disabled) .icon, .nav-links a:hover .icon { transform: translateX(2px); }
.char-card, .step-card, .card { will-change: transform; }

@keyframes mic-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.mic-circle:not(.recording) { animation: mic-idle 3s ease-in-out infinite; }

/* ---------------- DASHBOARD / APP SHELL ---------------- */
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-card .stat-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 8px; box-shadow: var(--shadow-accent-sm);
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 27px; font-weight: 800; }
.stat-card .stat-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.list-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: var(--bw) dashed var(--line); gap: 12px; flex-wrap: wrap; }
.list-row:last-child { border-bottom: none; }

/* ============================================================
   BRAND LOGO (image lockup replaces letter mark)
   ============================================================ */
.brand-logo { height: 34px; width: auto; display: block; }
.auth-card .brand-logo, .auth-logo { height: 52px; width: auto; margin: 0 auto; }

/* ============================================================
   APP SHELL — shared layout for Dashboard (voice actor) & Admin
   ============================================================ */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 268px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(19,18,24,0.98), rgba(10,10,13,0.98));
  backdrop-filter: blur(16px);
  border-right: var(--bw) solid var(--line);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 320;
  transition: transform var(--transition);
}
.app-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: var(--bw) solid var(--line); min-height: 68px; }
.app-sidebar-close { display: none; margin-left: auto; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; padding: 6px; }

.app-nav { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.app-nav-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-tertiary); padding: 14px 14px 6px; }
.app-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-weight: 600; font-size: 13px;
  border: var(--bw) solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.app-nav a .icon { width: 18px; height: 18px; flex-shrink: 0; }
.app-nav a:hover { color: var(--text-primary); background: var(--surface-2); }
.app-nav a.active { color: var(--accent-ink); background: var(--accent); font-weight: 700; box-shadow: var(--shadow-accent-sm); }
.app-nav a .nav-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: var(--radius-pill); min-width: 18px; text-align: center; }
.app-nav a.active .nav-badge { background: rgba(26,18,6,0.35); color: var(--accent-ink); }

.app-sidebar-foot { padding: 14px 16px; border-top: var(--bw) solid var(--line); }

.app-main { flex: 1; margin-left: 268px; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  position: sticky; top: 0; z-index: 200; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 26px;
  background: rgba(7,7,10,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: var(--bw) solid var(--line);
}
.app-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-topbar-title { font-family: var(--font-display); font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-content { padding: 30px 26px 64px; flex: 1; max-width: 1180px; width: 100%; }

.app-sidebar-toggle { display: none; background: var(--surface-2); border: var(--bw) solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px; cursor: pointer; color: var(--text-primary); flex-shrink: 0; }
.app-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(4,4,6,0.6); backdrop-filter: blur(2px); z-index: 310; }
.app-sidebar-overlay.active { display: block; }

@media (max-width: 980px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: 20px 0 50px rgba(0,0,0,0.5); }
  .app-sidebar.open { transform: translateX(0); }
  .app-sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
  .app-main { margin-left: 0; }
  .app-sidebar-toggle { display: inline-flex; }
  .app-content { padding: 20px 16px 48px; }
  .app-topbar { padding: 0 16px; }
}
@media (max-width: 560px) {
  .app-topbar-title { font-size: 14px; }
  .user-menu-name, .user-menu-role { display: none; }
  .app-content { padding: 16px 12px 40px; }
  .card { padding: 18px; }
  .modal { padding: 22px; }
  .page-header h1 { font-size: 21px; }
}

/* ---------------- USER MENU / BELL ---------------- */
.user-menu { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-display); font-size: 14px;
  box-shadow: var(--shadow-accent-sm);
}
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }
.user-menu-text { line-height: 1.2; }
.user-menu-name { font-size: 13px; font-weight: 700; }
.user-menu-role { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.03em; }

.bell-btn { position: relative; }
.bell-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface-solid); }

/* ============================================================
   DATA TABLE (admin lists) — with mobile card fallback
   ============================================================ */
.table-wrap {
  overflow-x: auto; border: var(--bw) solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  -webkit-overflow-scrolling: touch;
}
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-secondary); padding: 14px 16px; border-bottom: var(--bw) solid var(--line-strong);
  background: rgba(255,255,255,0.03); white-space: nowrap; position: sticky; top: 0;
}
.data-table td { padding: 14px 16px; border-bottom: var(--bw) solid var(--line); font-size: 13.5px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover td { background: rgba(255,201,74,0.045); }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cell-title { font-weight: 700; }
.cell-sub { font-size: 11.5px; color: var(--text-secondary); }

/* stacked "card" layout for narrow screens — activates once rows carry data-label on <td> */
@media (max-width: 720px) {
  .data-table.stack-mobile, .data-table.stack-mobile thead, .data-table.stack-mobile tbody,
  .data-table.stack-mobile th, .data-table.stack-mobile td, .data-table.stack-mobile tr { display: block; }
  .data-table.stack-mobile { min-width: 0; }
  .data-table.stack-mobile thead { position: absolute; left: -9999px; top: -9999px; }
  .data-table.stack-mobile tr {
    border-bottom: var(--bw) solid var(--line-strong);
    padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
  }
  .data-table.stack-mobile tr:last-child { border-bottom: none; }
  .data-table.stack-mobile td {
    border: none; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right;
  }
  .data-table.stack-mobile td::before {
    content: attr(data-label); text-align: left; color: var(--text-secondary);
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0;
  }
  .data-table.stack-mobile .table-actions { justify-content: flex-end; width: 100%; }
}

/* ---------------- TABS ---------------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab-btn {
  padding: 9px 17px; border-radius: var(--radius-pill); border: var(--bw) solid var(--line-strong);
  background: var(--surface-2); color: var(--text-secondary); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; transition: all var(--transition);
}
.tab-btn:hover { border-color: var(--accent-solid); color: var(--text-primary); }
.tab-btn.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--shadow-accent-sm); }

/* ---------------- DROPZONE / UPLOAD ---------------- */
.dropzone {
  border: var(--bw) dashed var(--line-strong); border-radius: var(--radius-lg);
  padding: 32px 20px; text-align: center; cursor: pointer; color: var(--text-secondary);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent-solid); background: var(--surface-2); color: var(--text-primary); }
.dropzone .icon { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--accent-solid); }
.dropzone strong { color: var(--text-primary); }

.sample-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: rgba(255,255,255,0.03); border: var(--bw) solid var(--line-strong); border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.sample-row .name { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- PROGRESS BAR ---------------- */
.progress-bar { height: 8px; background: rgba(255,255,255,0.05); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); transition: width 200ms ease; }

/* ---------------- NOTIFICATION LIST ---------------- */
.notif-item {
  display: flex; gap: 14px; padding: 16px; border-radius: var(--radius);
  border: var(--bw) solid var(--line-strong); background: var(--surface-2); margin-bottom: 10px;
  cursor: pointer; transition: all var(--transition);
}
.notif-item:hover { background: var(--surface-3); }
.notif-item.unread { border-left: 3px solid var(--accent-solid); }
.notif-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-3); border: var(--bw) solid var(--line-strong); color: var(--accent-solid);
  display: flex; align-items: center; justify-content: center;
}
.notif-item.unread .notif-icon { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.notif-title { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.notif-msg { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------------- MODAL WIDE (forms) ---------------- */
.modal-wide { max-width: 620px; text-align: left; }
.modal-wide .modal-body { max-height: 60vh; overflow-y: auto; padding-right: 4px; }

/* ---------------- MISC APP UTIL ---------------- */
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.search-input-wrap { position: relative; max-width: 320px; width: 100%; }
.search-input-wrap .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-secondary); }
.search-input-wrap input { padding-left: 38px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } .section-toolbar { flex-direction: column; align-items: stretch; } .search-input-wrap { max-width: none; } }
.detail-drawer-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: var(--bw) dashed var(--line); font-size: 13px; }
.detail-drawer-row:last-child { border-bottom: none; }
.detail-drawer-row span:first-child { color: var(--text-secondary); }
.detail-drawer-row span:last-child { font-weight: 700; text-align: right; }
.toggle-switch { position: relative; display: inline-flex; width: 42px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--surface-3); border: var(--bw) solid var(--line-strong); border-radius: var(--radius-pill); transition: var(--transition); }
.toggle-track::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: var(--text-secondary); border-radius: 50%; transition: var(--transition); }
.toggle-switch input:checked + .toggle-track { background: var(--accent); border-color: transparent; }
.toggle-switch input:checked + .toggle-track::before { transform: translateX(18px); background: var(--accent-ink); }

/* ---------------- DANGER ZONE ---------------- */
.danger-zone { border: var(--bw) solid rgba(251,91,107,0.35); background: rgba(251,91,107,0.05); border-radius: var(--radius-lg); padding: 20px; }
.danger-zone h4 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; color: var(--danger); margin-bottom: 6px; }
.danger-zone p { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 90px 0 60px; }
  .btn { padding: 11px 18px; font-size: 12.5px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}
