/* ==========================
   GLOBAL / RESET
   ========================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background-color: #050816;
  background-image: radial-gradient(circle at top, #111827 0, #050816 45%, #000 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

a {
  color: #93c5fd;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout wrapper */
.page-shell {
  max-width: auto;
  margin: 0 auto;
  padding-top: 15px;
}

/* Generic card */
.card {
  background: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Flash messages */
.flash {
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash-hide {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.flash-error {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.7);
}
.purchase-error {
  padding: 10px 10px;
  width: auto;
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  text-align: center;
  border: 1px solid rgba(248, 113, 113, 0.7);
}
  
.flash-success {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.7);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #e5e7eb;
  box-shadow: 0 10px 40px rgba(79, 70, 229, 0.6);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.1s ease;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 0.75);
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.5);
}
.btn-secondary {
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
  border: 1px solid #cdcdcd8f;
  color: #e5e7eb;
}
.btn-secondary:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 1);
}
.btn-danger {
  background: #dc2626;
  margin-top: 20px;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
}
.btn-primary-large {
  padding: 11px 32px;
  border-radius: 999px;
  font-size: 15px;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th,
.table td {
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  padding: 8px 6px;
}
.table th {
  text-align: left;
  color: #9ca3af;
  font-weight: 500;
}

/* Generic form fields */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-row-hidden {
  display: none;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
}

.field-hint,
.field-help {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}

.field-input,
.field-input-file {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

.field-input:focus,
.field-input-file:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.8);
}

/* Custom file button */
.field-input-file::-webkit-file-upload-button,
.field-input-file::file-selector-button {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  margin-right: 10px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #e5e7eb;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.1s ease;
}
.field-input-file::-webkit-file-upload-button:hover,
.field-input-file::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.85);
}
.field-input-file::-webkit-file-upload-button:active,
.field-input-file::file-selector-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.6);
}

/* Link-style helper */
.field-link {
  font-size: 11px;
  color: #93c5fd;
}
.field-link:hover {
  text-decoration: underline;
}




/* ==========================
   NAVBAR
   ========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
}

.navbar-inner {
  /* max-width: 1230px; */
  max-width: auto;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

/* Logo */

.navbar-logo {
  display: flex;
  align-items: center;
  margin-left: 40px;
  gap: 8px;
}

.navbar-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: conic-gradient(
    from 180deg,
    #a855f7,
    #6366f1,
    #22c55e,
    #eab308,
    #a855f7
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(129, 140, 248, 0.8);
  overflow: hidden;
}

.navbar-logo-mark span {
  font-size: 14px;
  font-weight: 700;
  color: #0b1020;
}

.navbar-logo-mark img.navbar-logo-img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
}

.navbar-logo-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e5e7eb;
}

.navbar-logo-subtitle {
  font-size: 11px;
  color: #9ca3af;
}

/* Nav links (public pages) */

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links .nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.93rem;
  color: #cdcdcd;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links .nav-link:hover {
  background: rgba(148, 163, 184, 0.15);
}

.nav-links .nav-link-active {
  background: #020617;
  border: 1px solid #cdcdcd;
  color: #ffffff;
}

.nav-links .nav-link-active:hover {
  background: #020617;
}

/* Login / signup pill */

.nav-auth-link {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.7);
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #f9fafb;
}
.nav-auth-link:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

/* Logged-in layout: chips + user pill */

.nav-user-layout {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 255, 0.45);
  font-size: 13px;
  color: #e5e7eb;
}
.nav-pill i {
  font-size: 13px;
}

.nav-pill-cta {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-color: transparent;
  color: #fff;
  text-decoration: none;
}

.nav-user--top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link--logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* User pill */

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.nav-user-email {
  font-size: 0.8rem;
  color: #e5e7eb;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hamburger toggle */

.nav-toggle,
.nav-toggle--app {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 35px;
  height: 35px;
  border-radius: 999px;
  box-shadow: 0 1px 15px rgb(150 121 255 / 46%);
  border: none;
  background: rgb(16 25 47 / 98%);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.12s ease;
}

.nav-toggle span,
.nav-toggle--app span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #e5e7eb, #e5e7eb);
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    background-position 0.22s ease;
}

.nav-toggle:hover span,
.nav-toggle--app:hover span {
  background-position: 100% 0;
}

.nav-toggle:active,
.nav-toggle--app:active {
  transform: scale(0.96);
}

/* Open → X animation */

.navbar.nav-open .nav-toggle,
.navbar.nav-open .nav-toggle--app {
  border-color: rgba(129, 140, 248, 0.95);
  background: rgba(15, 23, 42, 0.98);
}

.navbar.nav-open .nav-toggle span:nth-child(1),
.navbar.nav-open .nav-toggle--app span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.navbar.nav-open .nav-toggle span:nth-child(2),
.navbar.nav-open .nav-toggle--app span:nth-child(2) {
  opacity: 0;
}
.navbar.nav-open .nav-toggle span:nth-child(3),
.navbar.nav-open .nav-toggle--app span:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile dropdown animation */

@keyframes nav-slide-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================
   MOBILE NAV (unified)
   - one system for both public nav-links
     and app nav-user-layout
   ========================== */

@media (max-width: 768px) {
  /* show hamburger on mobile */
  .nav-toggle,
  .nav-toggle--app {
    display: inline-flex;
  }

  /* hide desktop layouts */
  .nav-links,
  .nav-user-layout {
    display: none;
  }

  /* any nav panel (links or user layout)
     becomes a dropdown when nav-open */
  .navbar.nav-open .nav-links,
  .navbar.nav-open .nav-user-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: rgba(15, 23, 42, 0.98);
    box-shadow:
      0 18px 40px rgba(15, 23, 42, 0.95),
      0 0 0 1px rgba(15, 23, 42, 0.9);
    animation: nav-slide-down 0.18s ease-out;
    z-index: 45;
  }

  /* links fill width nicely */
  .nav-links .nav-link {
    width: 100%;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .nav-auth-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* app user layout inside dropdown */
  .nav-user-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-badges {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-user--top {
    width: 100%;
    justify-content: space-between;
  }

  .nav-user-email {
    max-width: 160px;
  }
}

/* Basic responsive tweaks */

@media (max-width: 900px) {
  .page-shell {
    padding-top: 20px;
  }
}

@media (max-width: 640px) {
  .navbar-inner {
    padding-inline: 14px;
  }
  .page-shell {
    padding-inline: 14px;
  }
}

/* Center logo + account icon (mobile only) */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo--center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-account-btn {
  border: none;
  background: none;
  color: #e5e7eb;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-account-btn--user {
  gap: 6px;
}

.nav-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .navbar-logo--center {
    position: static;
    transform: none;
  }
  .nav-account-btn {
    display: none;
  }
}

/* Hide sidebar by default on mobile */
@media (max-width: 1024px) {
  .user-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 80%;
    max-width: 300px;
    background: #0b0f1e;
    border-right: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 100;
  }
  body.sidebar-open .user-sidebar {
    transform: translateX(0);
  }
}




/* MOBILE SIDEBAR FIX */
@media (max-width: 1024px) {
  .user-shell {
    display: block;
    position: relative;
    overflow: hidden;
  }

  .user-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: #0b0f1e;
    border-right: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.sidebar-open .user-sidebar {
    transform: translateX(0);
  }

  .user-main {
    margin-left: 0 !important;
    position: relative;
    z-index: 1;
  }

  /* Prevent page scroll when sidebar open */
  body.sidebar-open {
    overflow: hidden;
  }

  /* Optional backdrop blur */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 999;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Premium account dropdown */

.account-dropdown {
  position: fixed;
  right: 12px;
  top: 64px;
  width: 260px;
  background: #020617;
  border-radius: 18px;
  padding: 10px 10px 12px;
  border: 1px solid rgba(88, 102, 241, 0.55);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  z-index: 1200;
}

.account-dropdown.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.account-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Top chips */

.account-chip-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.account-chip-outline {
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.account-chip i {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Big purple buy button */

.account-buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: #f9fafb;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.75);
}

.account-buy-button:hover {
  filter: brightness(1.04);
}

/* Footer: avatar + email + logout */

.account-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
}

.account-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.account-footer-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
}

.account-footer-email {
  font-size: 0.78rem;
  color: #e5e7eb;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-footer-logout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #93c5fd;
  text-decoration: none;
}

.account-footer-logout i {
  font-size: 0.82rem;
}

.account-footer-logout:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .account-dropdown {
    right: 10px;
    top: 56px;
    width: 250px;
  }
}











/* ==========================
   FOOTER
   ========================== */

/* ===== New marketing footer ===== */

.site-footer {
  margin-top: 40px;
  background: radial-gradient(circle at top, #111827 0%, #020617 55%);
  color: #e5e7eb;
}

.footer-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

/* Brand */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 380px;
}

.footer-brand-logo img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: contain;
  padding: 6px;
}

.footer-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #4f46e5, #7c3aed);
  font-weight: 700;
  font-size: 18px;
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-brand-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Columns */
.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 120px;
}

.footer-heading {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-link {
  display: block;
  font-size: 0.88rem;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-link:hover {
  color: #e5e7eb;
  transform: translateX(2px);
}

/* Bottom copyright (centered for all) */
.footer-bottom {
  text-align: center;
  padding: 14px 16px 18px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Mobile layout */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    gap: 28px;
  }
}


/* ========== LANDING PAGE ========== */
/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #09090b; /* Very dark zinc */
    --bg-card: #18181b;
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #a855f7; /* Purple */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --radius-lg: 24px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.xs-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 32px; }
.mt-large { margin-top: 64px; }
a { text-decoration: none; color: inherit; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* --- BACKGROUND GLOWS --- */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.top-center { top: -200px; left: 50%; transform: translateX(-50%); }
.bottom-right { bottom: -200px; right: -200px; background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0,0,0,0) 70%); }

/* --- HERO SECTION --- */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: linear-gradient(to right, #818cf8, #d8b4fe, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.hero-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

/* --- HERO VISUAL (ABSTRACT) --- */
.hero-visual {
    margin-top: 60px;
    perspective: 1000px;
}
.visual-glass {
    width: 80%;
    margin: 0 auto;
    height: 400px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateX(5deg);
    box-shadow: 0 -20px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
.visual-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}
.play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.play-icon::after {
    content: '';
    width: 0; 
    height: 0; 
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid white;
    margin-left: 4px;
}

/* --- SECTIONS COMMON --- */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* --- FEATURE CARDS --- */

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.2);
}
.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.feature-list { list-style: none; }
.feature-list li {
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.feature-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* --- PREVIEWS / VIDEOS --- */
.video-compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}
.video-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    z-index: 2;
}
.badge-primary { background: var(--primary); color: white; }
.highlight-border { border: 2px solid var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.video-arrow { font-size: 2rem; color: var(--text-muted); }
.preview-info { text-align: center; margin-bottom: 40px; }
.tag { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* --- STEPS --- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
    margin-bottom: -10px;
}
.step-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step-item p { color: var(--text-muted); font-size: 0.9rem; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { transition: transform 0.3s; font-size: 1.5rem; font-weight: 300; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding: 0 20px 20px; color: var(--text-muted); font-size: 0.95rem; border-top: 1px solid transparent; }
.faq-item[open] .faq-body { border-top-color: var(--border); padding-top: 20px; }

/* --- CTA BOX --- */
.cta-box {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box h2 { font-size: 2.5rem; margin-bottom: 16px; position: relative; z-index: 2; }
.cta-box p { margin-bottom: 32px; color: #c7c7ff; position: relative; z-index: 2; }
.cta-box .btn { position: relative; z-index: 2; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { opacity: 0; animation: fadeInUp 0.8s ease forwards; }

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .grid-2, .grid-3, .steps-grid, .video-compare-grid { grid-template-columns: 1fr; }
    .video-arrow { transform: rotate(90deg); margin: 10px 0; }
    .visual-glass { width: 100%; height: 250px; }
}




/* ==========================
   ABOUTHOME PAGE SECTIONS
   ========================== */

/* --- GENERIC PAGE / LEGAL CONTENT STYLES --- */

/* 1. Main Section Wrapper */
.home-section {
    padding: 50px 24px 80px; /* Top padding clears the fixed navbar */
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

/* 2. The Glass Card Container */
.home-section-card {
    width: 100%;
    max-width: auto; /* Optimal reading width */
    background: var(--bg-card); /* Fallback */
    background: rgba(24, 24, 27, 0.6); /* Translucent dark */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle top glow to the card */
.home-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

/* 3. Page Header & Title */
.home-section-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.home-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin: 0;
}

/* 4. The Content Body (Typography for admin content) */
.home-legal-body {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8; /* High line-height for better readability */
    font-family: var(--font-sans);
}

/* --- Styling HTML elements that might come from the Admin Editor --- */

/* Headings inside the content */
.home-legal-body h1, 
.home-legal-body h2, 
.home-legal-body h3, 
.home-legal-body h4 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.home-legal-body h2 { font-size: 1.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.home-legal-body h3 { font-size: 1.4rem; }

/* Paragraphs */
.home-legal-body p {
    margin-bottom: 24px;
}

/* Lists */
.home-legal-body ul, 
.home-legal-body ol {
    margin-bottom: 24px;
    padding-left: 20px;
}

.home-legal-body li {
    margin-bottom: 8px;
    position: relative;
}

/* Links */
.home-legal-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.home-legal-body a:hover {
    color: var(--text-main);
    border-bottom-color: var(--primary);
}

/* Blockquotes */
.home-legal-body blockquote {
    border-left: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: #e4e4e7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-section {
        padding: 100px 16px 60px;
    }
    .home-section-card {
        padding: 30px 24px;
    }
    .home-section-title {
        font-size: 2rem;
    }
}


/* ==========================
   PRICING
   ========================== */

/* === Pricing Page – Fancy UI === */

.pricing-section {
  padding: 36px 16px 64px;
  background: radial-gradient(circle at top, rgba(76, 29, 149, 0.45), #020617);
  display: flex;
  justify-content: center;
}

.pricing-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

/* Top back link */
.pricing-top-bar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.pricing-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  transition: background 0.15s ease-out, border-color 0.15s, transform 0.12s;
}

.pricing-back-link:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(96, 165, 250, 0.9);
  transform: translateY(-1px);
}

.pricing-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

/* Header */
.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
  background: rgba(30, 64, 175, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.5);
  margin-bottom: 10px;
}

.pricing-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #f97316, #be123c);
}

.pricing-title {
  margin: 0 0 6px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e5e7eb;
}

.pricing-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* quick chips */
.pricing-quick-chips {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.75rem;
}

.chip-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #a5b4fc;
}

.chip-value {
  font-weight: 500;
  color: #e5e7eb;
}

/* grid */
.pricing-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* card base */
.pricing-card {
  position: relative;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  transition:
    transform 0.16s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.16s ease-out,
    background 0.18s ease-out;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow:
    0 26px 65px rgba(30, 64, 175, 1),
    0 0 0 1px rgba(129, 140, 248, 0.8);
  background: radial-gradient(circle at top left, #020617, #0b1120);
}

.pricing-card-popular {
  border-color: rgba(251, 191, 36, 0.9);
  box-shadow:
    0 24px 60px rgba(251, 191, 36, 0.35),
    0 0 0 1px rgba(234, 179, 8, 0.9);
}

/* ribbon */
.pricing-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #facc15, #f97316);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.75);
}

/* card content */
.pricing-card-body {
  padding: 18px 16px 16px;
}

.pricing-card-top {
  margin-bottom: 12px;
}

.pricing-plan-name {
  margin: 0 0 2px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e5e7eb;
}

.pricing-plan-tagline {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* price */
.pricing-plan-price-block {
  margin-bottom: 12px;
}

.pricing-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-price-amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: #e5e7eb;
}

.pricing-price-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a5b4fc;
}

.pricing-price-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.pricing-per-credit {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* usage pills */
.pricing-usage-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.pricing-usage-pill {
  border-radius: 16px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 0.75rem;
}

.usage-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.usage-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: #a5b4fc;
}

.usage-value {
  font-weight: 600;
  color: #f9fafb;
}

.usage-note {
  font-size: 0.7rem;
  color: #9ca3af;
}

.pricing-clip-note {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: #6b7280;
}

/* feature list */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  color: #d1d5db;
}

.pricing-features i.fa-circle-check {
  font-size: 0.8rem;
  color: #22c55e;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-features li:hover span {
  color: #e5e7eb;
}

/* footer buttons */
.pricing-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-pay-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* button variants specific to pricing */
.btn.btn-plan-primary {
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #f9fafb;
  box-shadow:
    0 14px 36px rgba(79, 70, 229, 0.9),
    0 0 0 1px rgba(191, 219, 254, 0.4);
  transition: transform 0.12s ease-out, box-shadow 0.15s, filter 0.12s;
}

.btn.btn-plan-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 48px rgba(79, 70, 229, 1),
    0 0 0 1px rgba(191, 219, 254, 0.8);
}

.btn.btn-plan-ghost,
.btn.btn-plan-secondary {
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 8px 14px;
}

.btn.btn-plan-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn.btn-plan-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

.btn.btn-plan-secondary {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn.btn-plan-secondary:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

/* empty state */
.pricing-empty-card {
  margin-top: 24px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #9ca3af;
}


/* ==========================
   AUTH (Login / Register)
   ========================== */

.auth-section {
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.auth-card {
  max-width: 420px;
  width: 100%;
  padding: 22px 20px 20px;
}

.auth-title {
  font-size: 25px;
  padding: 20px;
  text-align: center;
  margin: 0 0 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 16px;
}

.auth-policy {
  font-size: 11px;
  color: #cdcdcd;
  margin: 0 0 16px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

/* Divider for "or" */
.auth-or {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  font-size: 11px;
  color: #6b7280;
}
.auth-or-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.05),
    rgba(148, 163, 184, 0.6),
    rgba(148, 163, 184, 0.05)
  );
  border-radius: 999px;
}
.auth-or-text {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Google button */
.btn-google {
  width: 100%;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-google:hover {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 1);
}
.google-icon-circle {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #4285f4;
}

/* Bottom text */
.auth-bottom-text {
  margin-top: 14px;
  font-size: 12px;
  color: #9ca3af;
}
.auth-bottom-text a {
  color: #93c5fd;
}

.auth-link-row {
  margin-top: 0.4rem;
  text-align: left;
}
.auth-link-small {
  font-size: 0.8rem;
  color: #93c5fd;
}
.auth-link-small:hover {
  text-decoration: underline;
}

/* --- VARIABLES --- */
:root {
    --bg-dark: #09090b;
    --bg-panel: #18181b;
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --accent: #a855f7; /* Purple */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --input-bg: #0f0f11;
    --radius: 12px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    color: var(--text-main);
}

/* --- LAYOUT --- */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* --- AMBIENT GLOWS --- */
.auth-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.glow-top { background: var(--primary); top: -200px; left: -100px; }
.glow-bottom { background: var(--accent); bottom: -200px; right: -100px; }

/* --- CARD CONTAINER --- */
.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(24, 24, 27, 0.7); /* Translucent dark */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* --- CLOSE BUTTON --- */
.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-close:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

/* --- TYPOGRAPHY --- */
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 1.75rem; font-weight: 700; margin: 0 0 8px 0; letter-spacing: -0.02em; }
.auth-subtitle { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* --- FORMS & INPUTS --- */
.input-group { margin-bottom: 20px; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.input-label { display: block; font-size: 0.85rem; font-weight: 500; color: #e4e4e7; margin-bottom: 8px; }
.link-forgot { font-size: 0.85rem; color: var(--primary); text-decoration: none; }
.link-forgot:hover { text-decoration: underline; }

.input-field {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-field::placeholder { color: #52525b; }

/* --- BUTTONS --- */
.btn-block {
    display: flex;
    width: 100%;
    padding: 12px;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-google {
    background: white;
    color: #374151;
    border: 1px solid transparent;
}
.btn-google:hover {
    background: #f3f4f6;
}

/* --- DIVIDER --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.divider span { padding: 0 10px; }

/* --- FOOTER --- */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.link-highlight { color: white; font-weight: 600; text-decoration: none; }
.link-highlight:hover { text-decoration: underline; }

/* --- ALERTS / FLASH --- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}
.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: #f87171;
}
.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}
.alert-icon { font-weight: bold; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    .auth-card { padding: 30px 20px; }
}

/* ==========================
   PURCHASE / BUY CREDITS
   ========================== */

.purchase-section {
  margin-top: 40px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.purchase-card {
  max-width: 480px;
  width: 100%;
  padding: 22px 20px 20px;
}

.purchase-summary {
  margin: 14px 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.purchase-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.purchase-label {
  color: #9ca3af;
}

.purchase-value {
  color: #e5e7eb;
  font-weight: 500;
}

.purchase-balance-new {
  color: #a5b4fc;
}

.purchase-divider {
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.05),
    rgba(148, 163, 184, 0.7),
    rgba(148, 163, 184, 0.05)
  );
  margin: 6px 0 4px;
}

.purchase-actions {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.purchase-actions .btn {
  flex: 1;
  justify-content: center;
}

.purchase-note {
  margin-top: 12px;
  font-size: 11px;
  color: #9ca3af;
}

/* ==========================
   ANIMATION DETAIL PAGE
   ========================== */

.animation-section {
  margin-top: 30px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.animation-card {
  max-width: 800px;
  width: 100%;
}

.animation-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.animation-title {
  font-size: 22px;
  margin: 0 0 4px;
}

.animation-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

.status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.status-completed {
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.7);
}
.status-processing,
.status-pending {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.7);
}
.status-failed {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.7);
}

.animation-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.animation-meta-item {
  min-width: 140px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.8);
  font-size: 12px;
}

.meta-label {
  color: #9ca3af;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.meta-value {
  color: #e5e7eb;
}

.animation-error {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(248, 113, 113, 0.7);
}

.animation-preview-title {
  font-size: 15px;
  margin: 10px 0 6px;
}

.animation-preview-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(
    circle at top,
    #111827 0,
    #020617 60%,
    #020617 100%
  );
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 1),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  margin-bottom: 10px;
}

.animation-preview-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.animation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.animation-actions .btn {
  justify-content: center;
}

.animation-text {
  font-size: 13px;
  color: #9ca3af;
}

@media (max-width: 640px) {
  .animation-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================
   CREATE ANIMATION PAGE
   ========================== */

.create-section {
  margin-top: 26px;
  margin-bottom: 32px;
}

.create-section.create-section--full {
  max-width: 1180px;
  margin: 0 10px auto;
  padding-bottom: 3rem;
}

/* Hero */
.create-hero {
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.9rem;
  margin-bottom: 1.1rem;
}

.create-hero-left {
  max-width: auto;
  text-align: center;
}

.create-hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3ff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.create-hero-title {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.create-hero-subtitle {
  color: #9ca3af;
  margin-left: 50px;
  font-size: 0.9rem;
}

.create-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.create-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.create-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.8rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.create-pill i {
  font-size: 0.8rem;
}

.create-pill--cta {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.create-pill--cta:hover {
  filter: brightness(1.05);
}

.create-hero-view-btn {
  font-size: 0.85rem;
  padding-inline: 1.4rem;
}

/* Grid */
.create-grid.create-grid--two {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.6rem;
}

.create-main--tiles {
  padding: 1.4rem 1.5rem 1.6rem;
}

.create-side--preview {
  padding: 1.4rem 1.5rem 1.6rem;
}

/* Upload tiles */
.upload-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-label {
  font-size: 13px;
  color: #e5e7eb;
}

.upload-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.upload-tile {
  position: relative;
  border-radius: 1.4rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.25), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.20);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease,
              background 0.15s ease;
  overflow: hidden;
}

.upload-tile-inner {
  padding: 1.8rem 1.3rem;
  text-align: center;
}

.upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.3rem;
}

.upload-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.upload-subtitle {
  font-size: 0.84rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.78rem;
  color: #a5b4fc;
  margin-bottom: 0.35rem;
}

.upload-filename {
  font-size: 0.75rem;
  color: #e5e7eb;
  opacity: 0.8;
}

.upload-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.upload-tile:hover {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.45), 0 22px 40px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.upload-tile--dragover {
  border-color: #a855f7;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.7), 0 24px 45px rgba(15, 23, 42, 0.9);
}

/* Duration card */
.duration-card {
  margin-top: 1.2rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.duration-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.duration-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.duration-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

.duration-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.duration-input {
  max-width: 140px;
}

.duration-max-text {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Form footer row */
.create-actions-row {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.create-actions-row--center {
  justify-content: center;
  margin-top: 18px;
}

.create-footnote {
  margin-top: 12px;
  font-size: 11px;
  color: #9ca3af;
}

/* Right side (preview) */
.preview-video-shell {
  margin-bottom: 1rem;
}

.preview-video-frame {
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
}

.preview-video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

.preview-video-caption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.create-side-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.create-steps {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: #d1d5db;
}
.create-steps li + li {
  margin-top: 0.45rem;
}

.create-side-pill {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #a5b4fc;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(30, 64, 175, 0.25);
}

/* Meta badges above old create form (if used) */
.create-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
}
.badge-balance,
.badge-config {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}
.badge-balance strong {
  color: #a5b4fc;
}

@media (max-width: 960px) {
  .create-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .create-hero-right {
    align-items: flex-start;
  }
  .create-pill-row {
    justify-content: flex-start;
  }
  .create-grid.create-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .upload-tile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .create-section.create-section--full {
    padding-top: 1.8rem;
  }
}

/* ==========================
   ACCOUNT / EDIT USER
   ========================== */

.account-section {
  max-width: 1050px;
  margin: 1.5rem auto;
}

.account-card {
  padding: 1.8rem 1.8rem 2.2rem;
}

.account-content {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}
@media (min-width: 768px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.account-actions {
  margin-top: 1.2rem;
}

.account-danger {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 1.2rem;
}

/* ==========================
   USER DASHBOARD SHELL FOR DESKTOP
   ========================== */

.user-shell {
  align-items: stretch;
  gap: 24px;
}

/* Horizontal scroll for user transaction tables (not admin) */
.user-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth on mobile */
}

/* Make sure table is wider than small screens so scrolling kicks in */
.user-table-scroll > table {
  min-width: 800px; /* tweak: 700 / 900 depending how many columns */
}


/* Desktop: sidebar pinned, only content scrolls */
@media (min-width: 1025px) {
  .user-shell {
    display: flex;
    position: sticky;
    align-items: flex-start;   /* important for sticky */
    gap: 24px;
  }

  .user-sidebar {
    /* lock width in the flex layout */
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;

    padding: 20px 18px 18px;
    background: #05081636;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* 👇 this is what makes it “unscrollable” */
    position: sticky;
    top: 96px;                 /* distance from top, under navbar */
    height: calc(100vh - 180px);
    overflow: hidden;          /* no internal scrollbars */
  }

  .user-main {
    flex: 1 1 auto;
    min-width: 0;
    /* page itself can scroll, but visually it's just the content area */
  }
}





/* Sidebar sections & nav links */
.user-sidebar-section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
  margin-top: 8px;
}

/* This is Temporary we'll enable as soon as */
.user-nav-link--disabled {
  pointer-events: none;   /* ❌ no clicking */
  cursor: default;        /* or not-allowed; */
  opacity: 0.6;           /* optional: look disabled */
}


.user-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 999px;
  color: #e5e7eb;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-nav-text {
  white-space: nowrap;
}


.user-nav-link:hover {
  background: rgba(148, 163, 255, 0.12);
}

.user-nav-link--active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
}

.user-nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  font-size: 14px;
}

.user-nav-pill {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 255, 0.6);
}
.user-nav-pill--soon {
  opacity: 0.8;
}

.user-sidebar-note {
  margin-top: 16px;
  margin-bottom: 25px;
  font-size: 12px;
  color: #9ca3af;
}



/* === Plan status chips (user frontend) === */
.plan-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.9);
}

/* Active = green glow */
.plan-status-active {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
}

/* Fully expired / canceled = red */
.plan-status-expired {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.6);
}

/* Grace / renew state = orange */
.plan-status-renew {
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.4);
}

/* Highlight entire row for renew/grace state */
.plan-row-renew {
  background: rgba(15, 23, 42, 0.9);
}

.plan-row-renew:hover {
  background: rgba(15, 23, 42, 0.96);
}

/* ==========================
   MOBILE SIDEBAR – SPACING FIX
   ========================== */
@media (max-width: 900px) {
  /* When the slide-out sidebar is open */
  body.sidebar-open .user-sidebar {
    /* float card with a little gap from the screen edges */
    width: calc(100% - 32px);   /* 16px gap left/right */
    height: 100%;
    padding: 24px 22px 26px;    /* more breathing room inside */
  }

  /* Section labels not glued to the edge */
  body.sidebar-open .user-sidebar-section-label {
    padding-left: 4px;
  }

  /* Nav pills shifted a bit to the right inside the card */
  body.sidebar-open .user-nav-link {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Credits "not enough" modal */
.credits-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.credits-modal--open {
  display: flex;
}

.credits-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
}

.credits-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 90%;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: radial-gradient(circle at top, #111827, #020617);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.2);
  color: #e5e7eb;
  text-align: center;
}

.credits-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #4f46e5, #7c3aed);
}

.credits-modal-icon i {
  font-size: 18px;
  color: #f9fafb;
}

.credits-modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.credits-modal-text {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 4px;
}

.credits-modal-subtext {
  font-size: 0.8rem;
  color: #a5b4fc;
  margin-bottom: 14px;
}

.credits-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.credits-modal-actions .btn {
  flex: 1;
}

/* Optional ghost button style */
.btn.btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

/* User Pagination */

.user-pagination {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.user-pagination-label {
  color: #9ca3af;
}

.user-pagination-link {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  color: #e5e7eb;
  background: radial-gradient(circle at top, #111827, #020617);
}

.user-pagination-link:hover {
  border-color: #6366f1;
}

/* --- Video-Upscaler & Text to Video-Layout --- */
.vu-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .vu-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Upload tile tweak --- */
.vu-upload-tile {
  border-radius: 18px;
  background: radial-gradient(circle at top left, #020617, #020617);
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.25),
    0 12px 32px rgba(15, 23, 42, 0.9);
}

/* --- Preview card --- */
.vu-preview-card {
  border-radius: 22px;
  padding: 18px 18px 14px;
  background: radial-gradient(circle at top left, #020617, #020617);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vu-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Toggle link */
.vu-toggle-link {
  border: none;
  background: transparent;
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4);
}

.vu-toggle-link:hover {
  background: rgba(37, 99, 235, 0.13);
}

/* Video shell */
.vu-video-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  min-height: 220px;
}

.vu-video {
  width: 100%;
  display: none;
}

/* Empty state */
.vu-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.vu-empty-inner {
  text-align: center;
  max-width: 260px;
  color: #9ca3af;
}

.vu-empty-icon {
  font-size: 30px;
  margin-bottom: 8px;
  color: #4f46e5;
}

.vu-empty-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #e5e7eb;
}

.vu-empty-sub {
  font-size: 0.8rem;
}

/* Loading shimmer overlay */
.vu-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.40), rgba(15, 23, 42, 0.75));
  z-index: 3;
}

.vu-loading.vu-loading--visible {
  display: flex;
}

.vu-loading-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(30, 64, 175, 0.1),
    rgba(96, 165, 250, 0.22),
    rgba(30, 64, 175, 0.1)
  );
  background-size: 200% 100%;
  animation: vuShimmer 1.4s linear infinite;
  opacity: 0.7;
}

@keyframes vuShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.vu-loading-text {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #e5e7eb;
}

.vu-loading-text span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.vu-loading-text small {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Footer */
.vu-preview-footer {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vu-preview-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.vu-download-btn {
  font-size: 0.85rem;
  padding-inline: 12px;
}

/* ====== LOGIN POPUP OVERLAY (WAN-style) ====== */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 140; /* above navbar + other cards */
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(88, 28, 135, 0.45), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(20px);
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 14px;
}

.auth-section--modal {
  margin: 0;
}

.auth-card.card {
  border-radius: 26px;
  background: radial-gradient(circle at top left, #020617, #030712);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

/* Close button */
.auth-modal-close {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #111827, #020617);
  color: #f9fafb;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 1px 12px rgba(148, 163, 184, 0.7);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, opacity 0.12s;
}

.auth-modal-close:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 1px 20px rgba(239, 68, 68, 0.9);
}

/* Small devices tweaks */
@media (max-width: 480px) {
  .auth-modal {
    padding: 10px;
  }

  .auth-card.card {
    border-radius: 22px;
  }
}
/* ===== Custom Credit Popup (Everest-style) ===== */

.cc-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(0, 0, 4, 0.45), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(8px);
  z-index: 130;
}

.cc-overlay.cc-open {
  display: flex;
}

.cc-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 16px;
  padding: 22px 22px 18px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, #111827, #020617);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Close button */
.cc-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #111827, #020617);
  color: #f9fafb;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(148, 163, 184, 0.7);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, opacity 0.12s;
}

.cc-close-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 1px 20px rgba(239, 68, 68, 0.9);
}

/* Header */
.cc-header {
  margin-bottom: 18px;
  padding-right: 32px;
}

.cc-header h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cc-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Packs grid */
.cc-packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.cc-pack-card {
  position: relative;
  border: none;
  border-radius: 18px;
  padding: 12px 10px 10px;
  background: radial-gradient(circle at top, #020617, #020617);
  color: #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(148, 163, 184, 0.35),
    0 10px 26px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 86px;
  transition:
    box-shadow 0.15s ease-out,
    transform 0.12s ease-out,
    background 0.15s ease-out;
}

.cc-pack-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.9),
    0 14px 30px rgba(79, 70, 229, 0.55);
}

.cc-pack-card.cc-pack-card--active {
  background: radial-gradient(circle at top left, #4f46e5, #7c3aed);
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.9),
    0 18px 40px rgba(79, 70, 229, 0.95);
}

.cc-pack-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cc-pack-amount {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Methods */
.cc-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cc-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #020617;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.85);
  cursor: pointer;
  transition:
    border-color 0.12s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out,
    transform 0.12s ease-out;
}

.cc-method:hover {
  transform: translateY(-1px);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.9),
    0 14px 32px rgba(15, 23, 42, 0.95);
}

.cc-method input[type="radio"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
}

.cc-method-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cc-method-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.cc-method-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Actions */
.cc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.cc-btn {
  border-radius: 999px;
  border: none;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cc-btn-ghost {
  background: transparent;
  color: #9ca3af;
}

.cc-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
}

.cc-btn-primary {
  background: linear-gradient(90deg, #4f46e5, #ec4899);
  color: #f9fafb;
  box-shadow:
    0 14px 38px rgba(79, 70, 229, 0.9),
    0 0 0 1px rgba(191, 219, 254, 0.4);
  padding-inline: 18px;
}

.cc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 50px rgba(79, 70, 229, 1),
    0 0 0 1px rgba(191, 219, 254, 0.85);
  filter: brightness(1.03);
}

.cc-footer-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Small screens */
@media (max-width: 480px) {
  .cc-modal {
    margin: 20px;
    padding: 20px 18px 16px;
  }

  .cc-packs-grid {
    gap: 8px;
  }

  .cc-pack-card {
    min-height: 82px;
    padding: 10px 8px;
  }
}

/* Tiny screens: 2 columns */
@media (max-width: 380px) {
  .cc-packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Custom Credit Popup (Everest-style-ending) ===== */

/* ====== LOGIN/REGISTER POPUP OVERLAY (starting) ====== */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 140; /* above navbar + other cards */
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(88, 28, 135, 0.45), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(20px);
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 14px;
}

.auth-section--modal {
  margin: 0;
}

.auth-card.card {
  border-radius: 26px;
  background: radial-gradient(circle at top left, #020617, #030712);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

/* Close button */
.auth-modal-close {
  position: absolute;
  top: 6px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, #111827, #020617);
  color: #f9fafb;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 1px 12px rgba(148, 163, 184, 0.7);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, opacity 0.12s;
}

.auth-modal-close:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 1px 20px rgba(239, 68, 68, 0.9);
}

/* Small devices tweaks */
@media (max-width: 480px) {
  .auth-modal {
    padding: 10px;
  }

  .auth-card.card {
    border-radius: 22px;
  }
}
/* ====== LOGIN/REGISTER POPUP OVERLAY (ending) ====== */

/* ---------- View Animation tabs / sections (starting) ---------- */
.view-lib-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.65));
  margin-top: 18px;
  margin-bottom: 12px;
}

.view-lib-tab {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: #9ca3af;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.view-lib-tab:hover {
  color: #e5e7eb;
}

.view-lib-tab--active {
  color: #0f172a;
  background: linear-gradient(90deg, #bcabff, #787bf0);
  transform: translateY(-1px);
}

.view-lib-section {
  display: none;
}

.view-lib-section--active {
  display: block;
}
/* ---------- View Animation tabs / sections (ending) ---------- */

/* =======================
   Top notification bar
   ======================= */

.notify-bar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12000;             /* higher than navbar */
  color: #f9fafb;
  font-size: 0.875rem;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.notify-bar--hidden {
  transform: translateY(-100%);
}

.notify-bar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.notify-bar-text {
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.notify-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.notify-bar-btn {
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.7);
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f172a;
  background: #f9fafb;
  text-decoration: none;
  white-space: nowrap;
}

.notify-bar-btn:hover {
  background: #e5e7eb;
}

.notify-bar-close {
  border: none;
  position: absolute;
  right: 50px;
  background: #003dff00;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.notify-bar-close:hover {
  background: rgb(59 117 255 / 28%);
}

/* Small screens: stack text + actions */
@media (max-width: 640px) {
  .notify-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Push navbar down while the bar is visible */
.navbar {
  position: sticky; /* or fixed if you already use that */
  top: 0;
  z-index: 11000;   /* just under .notify-bar */
}

body.has-notify-bar .navbar {
  top: 40px;        /* adjust if your bar is taller */
}

@media (max-width: 640px) {
  body.has-notify-bar .navbar {
    top: 52px;      /* if bar is slightly taller on mobile */
  }
}

/* =======================
   Notification bar – admin preview variant
   ======================= */

.notify-bar--preview {
  position: static;     /* no sticky */
  top: auto;
  z-index: 1;
  width: 100%;
  margin-top: 16px;     /* already inline, but safe */
}

/* Make inner container follow card width instead of full page */
.notify-bar--preview .notify-bar-inner {
  max-width: 100%;
  margin: 0;
  padding-left: 12px;
  padding-right: 12px;
}


