/* Project Gorl — dark red aesthetic */
:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-elevated: rgba(18, 18, 20, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #e63946;
  --accent-glow: rgba(230, 57, 70, 0.45);
  --accent-dark: #b82d38;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ambient-a {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent 60%);
}
.ambient-b {
  background: radial-gradient(ellipse 60% 40% at 80% 100%, rgba(230, 57, 70, 0.12), transparent 50%);
}
.light-streak {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(135deg, transparent 40%, rgba(230, 57, 70, 0.08) 50%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 2rem;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.brand-wordmark {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}
.brand-accent {
  font-weight: 700;
  background: linear-gradient(135deg, #ff4d5a 0%, var(--accent) 45%, #c42a36 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand:hover .brand-accent {
  filter: brightness(1.08);
}

.nav-links { display: flex; gap: 1.75rem; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link-disabled {
  color: rgba(138, 138, 138, 0.55);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: not-allowed;
  user-select: none;
  position: relative;
}
.nav-link-disabled::after {
  content: "Soon";
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.7;
}
.nav-feature-live { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 180px;
}
.user-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
#nav-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-balance {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(232, 64, 76, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
}
#btn-topup,
#nav-topup-link {
  flex-shrink: 0;
}

/* —— Credits page + shared top-up controls —— */
.credits-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.credits-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.credits-page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
  line-height: 1.1;
}
.credits-page-sub {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.credits-layout {
  display: grid;
  gap: 1.25rem;
}
.credits-card {
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}
.credits-card-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.credits-balance-top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.credits-balance-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}
.credits-balance-note:empty {
  display: none;
}
.credits-topup-pay {
  margin: 0;
  padding-top: 0;
  border-top: none;
}
.credits-history-header {
  margin-bottom: 1rem;
}
.credits-history-header .muted {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.credits-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.credits-table th,
.credits-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.credits-table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
}
.credits-table tbody tr:last-child td {
  border-bottom: none;
}
.credits-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.credits-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.credits-ref {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.82rem;
}
.credits-status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.credits-status-completed {
  background: rgba(76, 175, 80, 0.18);
  color: #81c784;
}
.credits-status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
}
.credits-status-failed {
  background: rgba(244, 67, 54, 0.15);
  color: #ef5350;
}
.credits-gate {
  text-align: center;
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
}
.credits-gate p {
  margin-bottom: 1.25rem;
}

.topup-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.topup-balance-amount {
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1.1;
}

.topup-amount-block {
  margin-bottom: 1.25rem;
}

.topup-amount-row {
  display: flex;
  gap: 0.5rem;
}
.topup-amount-option {
  flex: 1;
  min-width: 0;
  padding: 0.72rem 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.topup-amount-option:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}
.topup-amount-option.is-selected {
  border-color: var(--accent);
  background: rgba(230, 57, 70, 0.14);
  color: #fff;
}
.topup-amount-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topup-pay-block {
  margin: 0;
  padding-top: 0;
  border-top: none;
}

.topup-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}
.topup-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.topup-tab:hover {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.topup-tab.is-active {
  border-color: rgba(230, 57, 70, 0.55);
  background: rgba(230, 57, 70, 0.1);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(230, 57, 70, 0.2);
}
.topup-tab[data-tab="manual"].is-active {
  border-color: rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.15);
}
.topup-tab-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.topup-tab-label {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}
.topup-tab-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}
.topup-tab.is-active .topup-tab-hint {
  color: rgba(255, 255, 255, 0.55);
}
.topup-tab-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.topup-badge-instant {
  background: rgba(76, 175, 80, 0.2);
  color: #81c784;
}
.topup-tab.is-active .topup-badge-instant {
  background: rgba(76, 175, 80, 0.35);
  color: #a5d6a7;
}
.topup-badge-manual {
  background: rgba(255, 193, 7, 0.15);
  color: #ffd54f;
}
.topup-tab.is-active .topup-badge-manual {
  background: rgba(255, 193, 7, 0.28);
  color: #ffe082;
}

.topup-tab-panel {
  display: none;
}
.topup-tab-panel.is-active {
  display: block;
}

.topup-steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}
.topup-steps li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.topup-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.topup-tab-panel#topup-panel-manual .topup-steps li::before {
  background: #ffd54f;
}
.topup-steps a {
  color: var(--accent);
  text-decoration: none;
}
.topup-steps a:hover {
  text-decoration: underline;
}

.topup-manual-form {
  margin-top: 0.25rem;
}
.topup-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.topup-field span {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
}
.topup-field input {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
}
.topup-field input:focus {
  outline: none;
  border-color: rgba(255, 193, 7, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}
.topup-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
.topup-cta {
  margin-top: 0.15rem;
}

@media (max-width: 640px) {
  .credits-page {
    padding: 1.25rem 1rem 3rem;
  }
  .credits-page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .credits-page-header .btn {
    width: 100%;
  }
  .credits-card {
    padding: 1.1rem 1rem;
  }
  .topup-balance-amount {
    font-size: 1.85rem;
  }
  .topup-tabs {
    grid-template-columns: 1fr;
  }
  .credits-ref {
    max-width: 120px;
  }
}

@media (min-width: 900px) {
  .credits-layout {
    grid-template-columns: 1fr 1.4fr;
    grid-template-rows: auto auto;
  }
  .credits-balance-card {
    grid-column: 1;
  }
  .credits-topup-card {
    grid-column: 2;
    grid-row: 1;
  }
  .credits-history-card {
    grid-column: 1 / -1;
  }
}

.studio-uploads .upload-grid {
  margin-bottom: 1.25rem;
}

/* Legacy wallet panel (removed from studio; styles kept for admin refs) */
.wallet-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wallet-balance-display { text-align: right; }
.wallet-balance-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.wallet-balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}
.wallet-topup-field { min-width: 140px; }
.wallet-manual-form { margin-top: 1rem; }
.wallet-estimate { margin-top: 0.75rem; font-size: 0.85rem; }
.wallet-crypto-hint {
  margin: 0;
  font-size: 0.78rem;
  max-width: 220px;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #f04552;
  box-shadow: 0 6px 32px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.btn-ghost { background: transparent; color: var(--muted); border: none; }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-icon { opacity: 0.9; }
.btn-google {
  background: #fff;
  color: #1a1a1a;
  border: none;
  font-weight: 600;
  box-shadow:
    0 4px 24px rgba(255, 255, 255, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.btn-google:hover:not(.is-disabled) {
  background: #fff;
  box-shadow:
    0 6px 32px rgba(255, 255, 255, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.82rem; }
.btn-google.is-disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
}
.btn-google.is-disabled svg { opacity: 0.45; }
.google-oauth-notice {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.google-oauth-notice code {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}
.modal-google-cta { margin-bottom: 0.25rem; }

main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero { text-align: center; padding: 4rem 0 3rem; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.hero-highlight { font-style: italic; color: var(--accent); }
.hero-sub {
  max-width: 540px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.hero-note { font-size: 0.8rem; color: rgba(138, 138, 138, 0.7); }

.features { padding: 2rem 0 3rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.feature-active {
  border-color: rgba(230, 57, 70, 0.35);
  box-shadow: 0 0 40px rgba(230, 57, 70, 0.08);
}
.feature-disabled { opacity: 0.65; pointer-events: none; }
.feature-card h3 { margin: 0.5rem 0 0.75rem; font-size: 1.1rem; font-weight: 600; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.feature-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(230, 57, 70, 0.2);
  color: var(--accent);
}
.feature-stamp {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.15);
  transform: rotate(-3deg);
}
.feature-link {
  margin-top: 1.25rem;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}
.feature-link:hover { text-decoration: underline; }

.features-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.feature-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.feature-stat strong { color: var(--text); font-size: 0.95rem; }
.feature-stat .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 0.35rem;
}

.panel {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.panel-header h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
}
.muted { color: var(--muted); }

.waitlist-panel { text-align: center; }
.waitlist-inner { max-width: 480px; margin: 0 auto; padding: 2rem 0; }
.waitlist-icon { font-size: 3rem; margin-bottom: 1rem; }
.waitlist-panel h2 { font-family: var(--serif); font-size: 2rem; margin: 0 0 1rem; }
.waitlist-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .upload-grid { grid-template-columns: 1fr; }
  .navbar { padding: 0 1rem; }
  .nav-links { gap: 0.85rem; }
  .nav-link { font-size: 0.82rem; }
  .brand-wordmark { font-size: 1.05rem; }
}

.upload-card { cursor: pointer; }
.upload-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 160px;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px dashed rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.3);
  transition: border-color 0.2s, background 0.2s;
}
.upload-card:hover .upload-inner,
.upload-inner.has-file {
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(230, 57, 70, 0.06);
}
.upload-icon { font-size: 2rem; }
.upload-title { font-weight: 600; }
.upload-hint { font-size: 0.8rem; color: var(--muted); }
.upload-filename {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.5rem;
  word-break: break-all;
  text-align: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.field span { font-weight: 500; font-size: 0.9rem; }
.field input {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.field input:focus {
  outline: none;
  border-color: rgba(230, 57, 70, 0.5);
}

.progress-panel { text-align: center; padding: 2.5rem 1rem; }
.loader-ring {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
}
.loader-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(230, 57, 70, 0.15);
  border-top-color: var(--accent);
  animation: spin 1.2s linear infinite;
}
.loader-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.progress-status { font-size: 1.05rem; font-weight: 500; margin: 0 0 1.25rem; }
.progress-bar-wrap {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width 0.6s ease;
  box-shadow: 0 0 12px var(--accent-glow);
}
.progress-meta { margin-top: 0.75rem; font-size: 0.85rem; color: var(--muted); }

.result-panel h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 1rem; }
.result-panel video {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--border);
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.error-banner {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.35);
  color: #ffb4b4;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.error-banner p { margin: 0; flex: 1; min-width: 200px; }

.revoked-panel { text-align: center; }
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-user-cell .avatar { width: 32px; height: 32px; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid rgba(230, 57, 70, 0.4);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

body.modal-open { overflow: hidden; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-approved { background: rgba(76, 175, 80, 0.2); color: #81c784; }
.status-waitlisted { background: rgba(255, 193, 7, 0.15); color: #ffd54f; }
.status-revoked { background: rgba(244, 67, 54, 0.15); color: #ef5350; }
.admin-actions { display: flex; gap: 0.5rem; }
.admin-actions button {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
}
.admin-actions button:hover { background: rgba(255,255,255,0.08); }
.admin-actions .btn-approve { border-color: rgba(76,175,80,0.4); color: #81c784; }
.admin-actions .btn-revoke { border-color: rgba(244,67,54,0.4); color: #ef5350; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border-radius: calc(var(--radius) + 2px);
  background: #121214;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.modal h2 { font-family: var(--serif); font-size: 1.75rem; margin: 0 0 0.5rem; }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.1); }

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-error { color: #ffb4b4; font-size: 0.85rem; margin: 0 0 0.75rem; }

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

.hidden { display: none !important; }

/* Pricing page */
.pricing-section {
  padding: 2rem 0 3rem;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.pricing-popular {
  border-color: rgba(230, 57, 70, 0.35);
  box-shadow: 0 0 40px rgba(230, 57, 70, 0.08);
}

.pricing-popular::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.pricing-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(230, 57, 70, 0.2);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.pricing-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.pricing-tagline {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.pricing-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 0.15rem;
}

.pricing-features li strong {
  color: var(--text);
  font-weight: 600;
}

.pricing-cta {
  margin-top: auto;
}

.pricing-best-for {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-best-for strong {
  color: var(--text);
  font-weight: 600;
}

.faq-section {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

.faq-section h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .pricing-card { padding: 1.75rem 1.25rem; }
}

/* Legal & contact pages */
.legal-page {
  padding: 2rem 0 4rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.legal-page .hero-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.legal-updated {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.legal-content {
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.legal-content h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-content li { margin-bottom: 0.5rem; }

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover { text-decoration: underline; }

.legal-notice {
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.25);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.contact-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-card a:hover { text-decoration: underline; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* Studio — live activity log */
.log-panel {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  font-size: 0.78rem;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace, var(--sans);
  color: var(--muted);
}
.log-entry {
  display: flex;
  gap: 0.75rem;
  padding: 0.2rem 0;
}
.log-time {
  color: var(--accent);
  flex-shrink: 0;
}
.log-msg {
  line-height: 1.4;
}

/* Studio — completed video history */
.history-panel {
  margin-top: 1.5rem;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.history-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: border-color 0.2s;
}
.history-card:hover {
  border-color: rgba(230, 57, 70, 0.4);
}
.history-thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  background: #000;
}
.history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  flex-wrap: wrap;
}
.history-date {
  font-size: 0.78rem;
  color: var(--muted);
}
.history-dur {
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .history-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Focused landing — motion-copy homepage */

.landing {
  padding: 2.5rem 0 2rem;
}

.landing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.landing-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.landing-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 36rem;
}

.landing-lead strong { color: var(--text); font-weight: 500; }

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.landing-note {
  font-size: 0.8rem;
  color: rgba(138, 138, 138, 0.75);
  margin: 0;
}

.landing-panel {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.landing-panel-head {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.landing-steps {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.landing-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.landing-steps strong { color: var(--text); }

.step-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.landing-panel-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.landing-mock {
  flex: 1;
  min-width: 72px;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  text-align: center;
  color: var(--muted);
}

.landing-mock-video { border-color: rgba(230, 57, 70, 0.35); }
.landing-mock-image { border-color: rgba(255, 255, 255, 0.15); }
.landing-mock-output {
  border-color: rgba(230, 57, 70, 0.5);
  color: var(--text);
}

.landing-mock-arrow {
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.8;
}

.seo-section {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.seo-heading {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  text-align: center;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.seo-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.seo-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.answer-capsule {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.proof-section {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
}

.proof-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.proof-header h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.proof-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.proof-channel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}

.proof-channel:hover {
  border-color: rgba(230, 57, 70, 0.45);
  background: rgba(230, 57, 70, 0.06);
}

.proof-channel-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 57, 70, 0.15);
  color: var(--accent);
  font-size: 0.9rem;
}

.proof-channel-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.proof-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.proof-sample-card {
  text-align: center;
}

.proof-sample-card p {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.proof-sample-thumb {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
  object-fit: cover;
  display: block;
}

.price-estimate {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(230, 57, 70, 0.07);
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.price-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price-value {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.price-note {
  font-size: 0.78rem;
  color: var(--muted);
  flex-basis: 100%;
  margin-top: 0.15rem;
}

.studio-section {
  padding-top: 1rem;
}

.history-empty {
  grid-column: 1 / -1;
  padding: 1rem 0;
}

@media (max-width: 900px) {
  .landing-inner { grid-template-columns: 1fr; }
  .landing-panel { order: -1; }
  .seo-grid { grid-template-columns: 1fr; }
  .proof-links { grid-template-columns: 1fr; }
  .proof-samples { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}
