/* THEME VARIABLES */
:root {
  /* Dark theme (default) */
  --bg-body: #050816;
  --bg-body-gradient: radial-gradient(circle at top, #111827 0, #050816 45%, #000 100%);
  --user-nav-active-bg: linear-gradient(135deg, #6366f1, #a855f7);
  --user-nav-active-color: #f9fafb;

  --bg-dark: #09090b;
  --bg-card: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  --bg-card-solid: #020617;

  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --accent: #a855f7;

  --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, "SF Pro Text", "Segoe UI", sans-serif;

  --link: #93c5fd;
  --link-hover: #cacaca;

  --footer-bg: radial-gradient(circle at top, #111827 0%, #020617 55%);
}

/* Explicit dark theme (optional) */
:root[data-theme="dark"] {
  --bg-body: #050816;
  --bg-body-gradient: radial-gradient(circle at top, #111827 0, #050816 45%, #000 100%);
  --user-nav-active-bg: linear-gradient(135deg, #6366f1, #a855f7);
  --user-nav-active-color: #f9fafb;
  --bg-dark: #09090b;
  --bg-card: radial-gradient(circle at top, #020617 0, #020617 60%, #020617 100%);
  --bg-card-solid: #020617;
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --link: #93c5fd;
  --link-hover: #cacaca;
  --footer-bg: radial-gradient(circle at top, #111827 0%, #020617 55%);
}

/* Light theme overrides */
:root[data-theme="light"] {
  --bg-body: #f9fafb;
  --bg-body-gradient: radial-gradient(circle at top, #e5e7eb 0, #f9fafb 45%, #e5e7eb 100%);
  --user-nav-active-bg: linear-gradient(13deg, #ffbfbf, #ff5ddc);
  --user-nav-active-color: #111827;
  --bg-dark: #f9fafb;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;

  --text-main: #020617;
  --text-muted: #4b5563;

  --border: rgba(15, 23, 42, 0.08);

  --link: #000000;
  --link-hover: #4b5563;

  --footer-bg: radial-gradient(circle at top, #e5e7eb 0%, #eff6ff 55%);
}

/* Reset + body */
html,
body {
  margin: 0;
  padding: 0;
}

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

/* Links */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  margin-left: 0.75rem;
  color: var(--text-main);
}

.theme-toggle:hover {
  background: rgb(242 242 242 / 5%);
  border-color: rgb(251 251 251 /20%);
}

.theme-toggle i {
  font-size: 1rem;
}

/* By default, show desktop toggle, hide mobile */
.theme-toggle--desktop {
  display: inline-flex;
}

.theme-toggle--mobile {
  display: none;
}

/* On small screens, swap: hide desktop, show mobile */
@media (max-width: 900px) {
  .theme-toggle--desktop {
    display: none;
  }

  .theme-toggle--mobile {
    display: inline-flex;
  }

  /* Optional: align mobile toggle + avatar nicely */
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }
}

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

/* Generic card */
.user-card {
  background: var(--bg-card-solid);
  border-radius: 18px;
  padding: 20px 18px;
  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);
}

/* Titles, Eyebrow, subtitle, hints and more **/
/** User Dashboard Tools (color and titles) **/

.user-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.user-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: var(--bg-card-solid);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.user-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4cff1b;
  box-shadow: 0 0 10px rgba(22, 249, 62, 0.9);
}

.user-title {
  margin: 6px 0 4px;
  font-size: 1.2rem;
  font-weight: 600;
}

.user-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.user-section-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.user-section-hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.user-table-wrap {
  border-radius: 12px;
  margin-top: 5px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.user-empty-text {
  font-size: 0.82rem;
  color: #6b7280;
}

.user-small-link {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: #e5e7eb;
  text-decoration: none;
  background: var(--link);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}


/* Plan Grid */


.user-plan-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
}

.user-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.5);
}

.user-btn-secondary {
  background: var(--bg-card-solid);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.user-btn-secondary:hover {
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.3);
}

.user-btn-danger {
  padding: 12px 28px;
  border-radius: 999px;
  color: var(--text-main);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  background: #ff4848;
  margin-top: 20px;
}

.user-btn-danger:hover {
  background: #ff0000;
}


/* Table */
.user-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.user-table th,
.user-table td {
  border-bottom: 1px solid rgba(55, 65, 81, 0.7);
  padding: 8px 6px;
}

.user-table th {
  text-align: left;
  color: var(--text-muted);
  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: var(--text-main);
}

.field-hint,
.field-help {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.field-input,
.field-input-file {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
  color: var(--text-main);
}

.field-input:focus,
.field-input-file:focus {
  outline: none;
  border-color: var(--border);
  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: var(--link);
}

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

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(16px);
  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;
  gap: 8px;
}

.navbar-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--user-nav-active-bg);
  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: var(--text-main);
}

.navbar-logo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* 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: var(--text-main);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links .nav-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 15px var(--primary-glow);
  color: var(--text-main);
}

.nav-links .nav-link-active {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  color: var(--text-main);
}

/* Login / signup pill */

.nav-auth-link {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--user-nav-active-bg);
  color: var(--text-main);
}

/* 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: var(--bg-card-solid);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-main);
}

.nav-pill-2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card-solid);
  font-size: 13px;
  color: var(--text-main);
}

.nav-pill i {
  font-size: 13px;
}

.nav-pill-cta {
  background: var(--user-nav-active-bg);
  border-color: transparent;
  color: var(--user-nav-active-color);
  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;
  border: 1px solid var(--border);
  background: var(--bg-card-solid);
}

.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: var(--text-main);
  background: var(--user-nav-active-bg);
}

.nav-user-email {
  font-size: 0.8rem;
  color: var(--text-main);
  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: var(--bg-card-solid);
  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: #b1a8a8;
  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: var(--bg-card-solid);
}

.navbar.nav-open .nav-toggle span:nth-child(1),
.navbar.nav-open .nav-toggle--app span:nth-child(1) {
  transform: translateY(13px) rotate(50deg);
}

.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;
  }

  .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: 5px;
    right: 30px;
    padding: 12px 30px;
    border-radius: 20px;
    border: 1px solid rgba(55, 65, 81, 0.95);
    background: var(--bg-card-solid);
    box-shadow:
      0 18px 40px rgba(15, 23, 42, 0.20);
    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: var(--text-muted);
  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;

  }

  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);
    -webkit-backdrop-filter: blur(3px);
    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);
  -webkit-backdrop-filter: blur(16px);
  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: 99999;
}

.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
   ========================== */

.site-footer {
  margin-top: 40px;
  background: var(--bg-card-solid);
  color: var(--text-muted);
}

.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: var(--user-nav-active-bg);
  font-weight: 700;
  color: var(--text-main);
  font-size: 18px;
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-brand-tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-brand-desc {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 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: var(--text-muted);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-link:hover {
  color: var(--text-main);
  transform: translateX(2px);
}

/* Bottom copyright + social (centered for all) */
.footer-bottom {
  text-align: center;
  padding: 14px 16px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Social icons row */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.footer-social-link:hover {
  color: var(--text-main);
  box-shadow: 0 1px 10px var(--primary-glow);
  border-color: var(--border);
  transform: translateY(-1px);
}

.footer-social-link:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 3px;
}

/* 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 ========== */

/* --- 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 --- */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  gap: 10px;
  border-radius: 999px;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
}

.hero-btn-primary {
  background: var(--user-nav-active-bg);
  border: var(--border);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  color: var(--text-main);
}

.hero-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: var(--user-nav-active-bg);
  -webkit-background-clip: text;
  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;
  -webkit-backdrop-filter: blur(10px);
  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: var(--user-nav-active-bg);
  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);
}

.user-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: var(--bg-card-solid);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  -webkit-backdrop-filter: blur(4px);
  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: transparent;
  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: var(--text-muted);
  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
   ========================== */
.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 */
  -webkit-backdrop-filter: blur(20px);
  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 --- */
.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 – Monthly plans
   ========================== */

.pricing-section {
  padding: 10px 0 80px;
  background: var(--bg-body-gradient);
  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: 20px;
}

.pricing-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    background 0.15s ease-out,
    border-color 0.15s ease-out,
    transform 0.12s ease-out,
    color 0.15s ease-out;
}

:root[data-theme="light"] .pricing-back-link {
  background: rgba(248, 250, 252, 0.9);
}

.pricing-back-link:hover {
  background: var(--bg-card-solid);
  border-color: var(--primary);
  color: var(--text-main);
  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 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a5b4fc;
  background: rgba(30, 64, 175, 0.22);
  border: 1px solid rgba(129, 140, 248, 0.6);
  margin-bottom: 10px;
}

:root[data-theme="light"] .pricing-eyebrow {
  background: rgba(219, 234, 254, 0.9);
  border-color: rgba(129, 140, 248, 0.7);
  color: #1d4ed8;
}

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

.pricing-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.pricing-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

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

/* Card */
.pricing-card {
  position: relative;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.65);
  overflow: hidden;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

:root[data-theme="light"] .pricing-card {
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.12);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow:
    0 1px 20px rgba(79, 70, 229, 0.9);
}

/* Popular ribbon */
.pricing-card-popular {
  border-color: var(--accent);
  box-shadow:
    0 1px 20px rgba(255, 144, 25, 0.7);
}

.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 12px 28px rgba(251, 191, 36, 0.8);
}

/* Card body */
.pricing-card-body {
  padding: 20px 18px 18px;
}

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

.pricing-plan-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.pricing-plan-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

.pricing-price-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-price-period {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.pricing-price-meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-per-credit {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Usage summary */
.pricing-usage-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-usage-list li {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
}

:root[data-theme="light"] .pricing-usage-list li {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
}

.usage-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-weight: 500;
  color: var(--text-main);
}

.usage-label i {
  font-size: 0.8rem;
}

.usage-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.usage-muted {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  opacity: 0.9;
}

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

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.pricing-features li span {
  transition: color 0.15s ease-out;
}

.pricing-features li:hover span {
  color: var(--text-main);
}

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

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

/* Button variants */
.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.5);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    transform 0.12s ease-out,
    box-shadow 0.15s ease-out,
    filter 0.12s ease-out;
}

.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.9);
}

.btn.btn-plan-ghost,
.btn.btn-plan-secondary {
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* PayPal / ghost */
.btn.btn-plan-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.btn.btn-plan-ghost:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: var(--primary);
}

:root[data-theme="light"] .btn.btn-plan-ghost:hover {
  background: rgba(226, 232, 240, 0.9);
}

/* Register CTA */
.btn.btn-plan-secondary {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn.btn-plan-secondary:hover {
  border-color: var(--primary);
}

/* Empty state */
.pricing-empty-card {
  margin-top: 24px;
  border-radius: 18px;
  background: var(--bg-card);
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}


/* ==========================
   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: var(--text-muted);
}

.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: var(--text-muted);
}

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

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

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

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

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

.user-animation-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  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);
}

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

.user-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: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.meta-value {
  color: #e5e7eb;
}

.user-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);
}

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

.user-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;
}

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

.user-animation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-animation-actions .btn {
  justify-content: center;
}

.animation-text {
  font-size: 13px;
  color: var(--text-muted);
}

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

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

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

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

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

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

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

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

.user-create-hero-subtitle {
  color: var(--text-muted);
  margin-left: 50px;
  font-size: 0.9rem;
}

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

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

.user-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;
}

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

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

.user-create-pill--cta:hover {
  filter: brightness(1.05);
}

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

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

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

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

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

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

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

.user-upload-tile {
  position: relative;
  border-radius: 1.4rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
  overflow: hidden;
}

.user-upload-tile-inner {
  padding: 1.8rem 1.3rem;
  text-align: center;
  background: var(--bg-card-solid);
}

.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: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.upload-filename {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

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

.user-upload-tile:hover {
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.25), 0 5px 20px rgba(15, 23, 42, 0.4);
  transform: translateY(-1px);
}

.user-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 */
.user-duration-card {
  margin-top: 1.2rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1.1rem;
  background: var(--bg-card-solid);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

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

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

.user-duration-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

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

.user-duration-max-text {
  font-size: 0.8rem;
  color: var(--text-main);
}

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

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

.user-create-footnote {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-main);
}

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

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

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

.user-preview-video-caption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.user-create-steps {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--text-main);
}

.user-create-steps li+li {
  margin-top: 0.45rem;
}

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

/* Meta badges above old create form (if used) */
.user-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) {
  .user-create-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-create-hero-right {
    align-items: flex-start;
  }

  .user-create-pill-row {
    justify-content: flex-start;
  }

  .user-create-grid.user-create-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .user-upload-tile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-create-section.user-create-section--full {
    padding-top: 1.8rem;
  }
}

.user-upload-preview {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, #020617, #020617);
}

.user-upload-preview img,
.user-upload-preview video {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}

.user-duration-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.preview-stack>div {
  display: none;
}

.preview-stack>.preview-visible {
  display: block;
}

.user-create-processing-card {
  border-radius: 22px;
  padding: 16px 18px 16px;
  background: radial-gradient(circle at top left, #020617, #020617);
  border: 1px solid rgba(129, 140, 248, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.processing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(129, 140, 248, 0.7);
  color: #e5e7eb;
}

.processing-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(129, 140, 248, 0.25);
  border-top-color: rgba(129, 140, 248, 0.95);
  animation: spin 0.8s linear infinite;
}

.processing-text {
  margin-top: 10px;
  font-size: 13px;
  color: #cbd5f5;
}

.processing-bar {
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

.processing-bar-inner {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #4f46e5);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -150% 0;
  }

  100% {
    background-position: 150% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

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

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

.user-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

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

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

.user-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;

  /* 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;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    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: var(--text-main);
  margin-bottom: 10px;
  margin-top: 8px;
}

/* This is Temporary we'll enable as soon as */
.user-nav-link--disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}


.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;
  color: var(--text-main);
}


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

.user-nav-link--active {
  background: var(--user-nav-active-bg);
  color: var(--user-nav-active-color);
}

.user-nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-solid);
  color: var(--text-main);
  font-size: 14px;
}

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

.user-nav-pill--soon {
  opacity: 0.8;
}

/* === 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) {
  body.sidebar-open .user-sidebar {
    width: calc(100% - 32px);
    /* 16px gap left/right */
    height: 100%;
    background: var(--bg-card-solid);
    padding: 20px 22px 26px;
    z-index: 99999;
  }

  /* 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);
  -webkit-backdrop-filter: blur(4px);
  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: var(--text-muted);
  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: var(--text-muted);
}

.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: var(--bg-card-solid);

}

/* --- Preview card --- */
.vu-preview-card {
  border-radius: 22px;
  padding: 18px 18px 14px;
  background: var(--bg-card-solid);
  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;
  border: 1.5px solid var(--border);
  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: var(--text-muted);
}

.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: var(--text-main);
}

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

/* Loading shimmer overlay */
.vu-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  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: var(--text-muted);
}

/* 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: var(--text-muted);
}

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

/* ===== 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));
  -webkit-backdrop-filter: blur(8px);
  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: var(--text-muted);
}

/* 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: var(--text-muted);
}

/* 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: var(--text-muted);
}

.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: var(--text-muted);
}

/* 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) ===== */

/* ---------- View Animation tabs / sections (starting) ---------- */
.view-lib-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  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: var(--bg-card-solid);
  color: var(--text-muted);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.view-lib-tab:hover {
  color: var(--text-main);
  background: var(--bg-body-gradient);
}

.view-lib-tab--active {
  color: #0f172a;
  background: var(--user-nav-active-bg);
  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: relative;
  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: 15px 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;
}

/* User Buttons */
.user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
}

.user-btn-primary {
  background: var(--user-nav-active-bg);
  color: var(--user-nav-active-color);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.user-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
  filter: brightness(1.1);
}

.user-btn-secondary {
  background: var(--bg-card-solid);
  border-color: var(--border);
  color: var(--text-main);
}

.user-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.user-btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.user-btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.user-btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}