/* ==========================================================================
   KINETIC DESIGN SYSTEM - Chart Gaps
   Based on design_concept.html
   ========================================================================== */

/* ==========================================================================
   CSS Variables - Deep Kinetic Palette
   ========================================================================== */
:root {
  /* Palette: Deep Kinetic */
  --bg-void: #030304;
  --bg-surface: #0a0a0c;
  --bg-panel: rgba(20, 20, 25, 0.6);

  --bg: #030304;
  --panel: rgba(20, 20, 25, 0.6);
  --panel-2: rgba(30, 30, 35, 0.6);
  --panel-hover: rgba(30, 30, 38, 0.7);

  --line-faint: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);

  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 212, 255, 0.5);

  --text-bright: #ffffff;
  --text-dim: #9ca3af;
  --text-dark: #4b5563;

  --text: #9ca3af;
  --text-white: #ffffff;
  --muted: #6b7280;

  /* The "Pop" - Electric Cyan */
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.4);
  --accent-dim: rgba(0, 212, 255, 0.1);
  --accent-hover: #00b8e0;
  --accent-2: #00d4ff;
  --accent-2-hover: #00b8e0;

  --ok: #00d4ff;
  --warn: #fbbf24;
  --err: #ef4444;
  --danger: #ef4444;

  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-blue: 0 0 20px var(--accent-glow);

  --radius: 12px;
  --radius-lg: 12px;

  --font-main: "Manrope", sans-serif;
  --font-code: "Roboto Mono", monospace;

  /* Typography Scale */
  --text-xs: 14px;
  --text-sm: 15px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 32px;
  --text-5xl: 36px;
  --text-6xl: 42px;
  --text-7xl: 54px;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-void);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-top: 160px; /* Account for fixed header (20px top + ~98px header + ~42px gap) */
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 0;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Synapse Canvas Background
   ========================================================================== */
#synapse-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #0d1117 0%, #000000 100%);
}

/* Legacy bg-anim - hidden, replaced by synapse canvas */
.bg-anim {
  display: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

/* ==========================================================================
   Header - Glass Morphism Floating Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1300px;
  padding: 0 40px;
  z-index: 100;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Header hidden state - slides up when scrolling down */
.site-header.header-hidden {
  transform: translateX(-50%) translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.header-inner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-faint);
  border-radius: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
  font-weight: 800;
  font-size: var(--text-3xl);
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 4px;
  color: black;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: var(--text-base);
  padding: 0 20px;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  height: 48px;
}

.nav a:hover:not(.cta) {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.nav a.active {
  color: var(--text-bright);
}

.nav a.highlight {
  color: var(--accent);
}

.nav a.highlight:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.nav .cta {
  background: var(--accent);
  color: #020617;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  margin-left: 20px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: auto;
}

.nav .cta:hover {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.nav a.nav-admin {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--err);
  color: var(--text-white);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

body.nav-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 20px;
  right: 20px;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  padding: 16px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}

.mobile-nav--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: var(--text-lg);
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a.highlight {
  color: var(--accent);
}

.mobile-nav-links a.cta-mobile {
  background: var(--accent);
  color: #020617;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  margin-top: 8px;
  padding: 14px 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 10vw, 100px) 0 clamp(64px, 10vw, 120px);
}

.hero-content {
  max-width: 900px;
}

.page-title-xl {
  font-size: clamp(var(--text-7xl), 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 32px 0;
  background: linear-gradient(180deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title-lg {
  font-size: clamp(var(--text-5xl), 5vw, 48px);
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(var(--text-3xl), 4vw, 36px);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.lead-text-lg {
  font-size: var(--text-2xl);
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.lead-text {
  font-size: var(--text-xl);
  color: var(--text-dim);
  line-height: 1.6;
}

.gradient-text {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* ==========================================================================
   Tag / Badge - Monospace Style
   ========================================================================== */
.tag {
  font-family: var(--font-code);
  color: var(--accent);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

.badge {
  font-family: var(--font-code);
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.badge::before {
  content: "/// ";
  opacity: 0.7;
}

.badge .dot {
  display: none;
}

/* ==========================================================================
   Buttons - Kinetic Style
   ========================================================================== */
.btn-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.btn.primary,
.cta-primary {
  background: var(--text-bright);
  color: black;
}

.btn.primary:hover,
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.3);
}

.btn.subtle,
.btn.secondary,
.cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-bright);
  border: 1px solid var(--line-faint);
  backdrop-filter: blur(10px);
}

.btn.subtle:hover,
.btn.secondary:hover,
.cta-secondary:hover {
  border-color: var(--text-bright);
  background: rgba(255, 255, 255, 0.1);
}

.btn.ghost {
  background: transparent;
  color: var(--text-dim);
  border: none;
}

.btn.ghost:hover {
  color: var(--text-bright);
}

.btn.danger {
  background: var(--danger);
  color: var(--text-white);
}

.btn.danger:hover {
  background: rgba(239, 68, 68, 0.9);
}

.btn-danger-outline {
  border-color: var(--danger);
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.btn-sm {
  padding: 6px 14px;
  font-size: var(--text-sm);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Generic loading state for buttons - shows spinner instead of text */
.btn.loading {
  pointer-events: none;
  min-width: 80px; /* Prevent button from shrinking when showing spinner */
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* ==========================================================================
   Cards - Glass Morphism
   ========================================================================== */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition:
    border-color 0.3s,
    transform 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 50px -20px var(--accent-dim);
}

.card h3 {
  font-size: var(--text-5xl);
  margin: 0 0 16px 0;
  font-weight: 600;
}

.card p {
  font-size: var(--text-lg);
  color: var(--text-dim);
  line-height: 1.6;
}

.card-icon {
  margin-bottom: auto;
  color: var(--accent);
  opacity: 0.8;
}

/* Indicator Cards */
.indicator-card .icon-box {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.indicator-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--surface-2);
}

.indicator-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.indicator-card:hover .indicator-card-thumb img {
  transform: scale(1.03);
}

.indicator-card-thumb--sm {
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  border-radius: 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.indicator-card-footer {
  border-top: 1px solid var(--line-faint);
  margin-top: auto;
  padding-top: 24px;
}

.indicator-card.teal .icon-box {
  background: var(--accent-dim);
  color: var(--accent);
}

.indicator-card.teal {
  border-color: var(--accent-dim);
}

.indicator-card.teal:hover {
  border-color: var(--accent);
  box-shadow: 0 0 50px -20px var(--accent-dim);
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.subsection-title {
  font-size: var(--text-3xl);
  margin-bottom: 12px;
}

.section-title-xl {
  font-size: clamp(var(--text-5xl), 5vw, 48px);
  margin-bottom: 5vh;
  text-align: left;
}

.section-title-lg {
  font-size: clamp(var(--text-4xl), 4vw, 40px);
  margin-bottom: 20px;
}

.body-text {
  font-size: var(--text-md);
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==========================================================================
   Links
   ========================================================================== */
.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--accent);
  margin-top: auto;
}

.learn-more-link i {
  transition: transform 0.2s ease;
}

.card:hover .learn-more-link i {
  transform: translateX(4px);
}

.link-accent {
  color: var(--accent);
  transition: color 0.2s;
}

.link-accent:hover {
  color: var(--text-bright);
}

/* ==========================================================================
   Panel Sections
   ========================================================================== */
.panel-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  padding: 100px 0;
}

.panel-gradient {
  background: linear-gradient(
    145deg,
    var(--bg-panel) 0%,
    rgba(0, 212, 255, 0.05) 100%
  );
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  padding: 64px;
}

/* ==========================================================================
   Grid Systems
   ========================================================================== */
.grid-auto-fit-md {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.grid-section {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 360px);
  gap: 24px;
}

.col-span-8 {
  grid-column: span 8;
}

.col-span-4 {
  grid-column: span 4;
}

.col-span-6 {
  grid-column: span 6;
}

/* ==========================================================================
   Subscription & Pricing
   ========================================================================== */
.period-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.period-toggle {
  background: var(--panel-2);
  padding: 6px;
  border-radius: 12px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--line-faint);
}

.period-toggle-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.period-toggle-btn:hover {
  color: var(--text-bright);
}

.period-toggle-btn.active {
  background: var(--accent);
  color: #020617;
  box-shadow: var(--shadow-blue);
}

.subscription-plans {
  display: flex;
  gap: 30px;
  justify-content: center;
}

/* Pre-JS FOUC prevention: hide subscription cards whose period doesn't match
   the default. Once Stimulus connects and adds .period-toggle--ready, these
   rules stop applying and JS takes full control via .hidden. */
[data-period-toggle-default-value="monthly"]:not(.period-toggle--ready)
  .subscription-card[data-period="yearly"],
[data-period-toggle-default-value="monthly"]:not(.period-toggle--ready)
  .subscription-card[data-period="lifetime"] {
  display: none;
}
[data-period-toggle-default-value="yearly"]:not(.period-toggle--ready)
  .subscription-card[data-period="monthly"],
[data-period-toggle-default-value="yearly"]:not(.period-toggle--ready)
  .subscription-card[data-period="lifetime"] {
  display: none;
}
[data-period-toggle-default-value="lifetime"]:not(.period-toggle--ready)
  .subscription-card[data-period="monthly"],
[data-period-toggle-default-value="lifetime"]:not(.period-toggle--ready)
  .subscription-card[data-period="yearly"] {
  display: none;
}

.subscription-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 380px;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
}

.plan-name {
  font-size: var(--text-3xl);
  margin-bottom: 10px;
}

.plan-period {
  font-size: var(--text-base);
  color: var(--text-dim);
}

/* Shared pricing block (used by both full and compact cards) */
.pricing-block {
  display: flex;
  flex-direction: column;
}

.pricing-original {
  font-size: var(--text-3xl);
  color: var(--muted);
  text-decoration: line-through;
  letter-spacing: 0.02em;
  margin-bottom: -14px;
}

.pricing-main-row {
  display: flex;
  align-items: baseline;
}

.pricing-amount {
  font-size: clamp(var(--text-6xl), 5vw, 64px);
  font-weight: 800;
  color: var(--text-white);
  transition: color 0.2s ease;
}

.pricing-amount.discounted {
  color: var(--accent);
}

.pricing-after-promo-row {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.pricing-after-promo {
  font-size: clamp(var(--text-3xl), 3.2vw, 42px);
  font-weight: 700;
  color: var(--text-dim);
}

.price-period {
  color: var(--muted);
  font-size: clamp(var(--text-lg), 2vw, 22px);
  font-weight: 400;
}

.trial-after-text {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-top: -12px;
}

/* Full card overrides */
.subscription-card .pricing-block {
  margin-bottom: 24px;
}

.subscription-card .pricing-original {
  margin-top: 24px;
}

/* Compact card overrides */
.selected-plan-card .pricing-block {
  margin-bottom: 24px;
}

.selected-plan-card .pricing-original {
  margin-top: 24px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  color: var(--text-dim);
  line-height: 2;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  font-size: var(--text-md);
}

.features-list .feature-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
}

.subscription-card-features {
  flex: 1;
}

.subscription-card-footer {
  margin-top: auto;
}

.subscription-card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: black;
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.subscription-card-trial-banner,
.price-discount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 8px;
  margin: -8px -8px 24px -8px;
}

.subscription-card-trial-banner.featured {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}

.subscription-card-cta-featured {
  background: var(--accent);
  color: #020617;
  box-shadow: 0 0 20px var(--accent-glow);
}

.subscription-card .text-white {
  color: white;
}

/* Compact card trial banner */
.selected-plan-trial-banner {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: 120px;
  border-top: 1px solid var(--line-faint);
  padding: 60px 0;
  color: var(--text-dark);
  font-size: var(--text-base);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
}

.footer-section h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 24px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  font-size: var(--text-base);
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.social-link,
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-faint);
  color: var(--text-dim);
  transition: all 0.2s;
}

.social-link:hover,
.footer-socials a:hover {
  background: var(--accent);
  color: black;
  border-color: var(--accent);
}

.social-link svg,
.social-link i,
.footer-socials a svg,
.footer-socials a i {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line-faint);
  display: flex;
  justify-content: space-between;
  color: var(--text-dark);
  font-size: var(--text-sm);
}

/* ==========================================================================
   Auth Pages
   ========================================================================== */
.auth-wrapper {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px;
}

/* Registration - Two Column Layout */
.register-layout {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.register-layout-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

.register-layout .card {
  transform: none;
}

.register-layout .card:hover {
  transform: none;
  box-shadow: none;
}

.register-summary {
  position: sticky;
  top: 120px;
  padding: 36px;
}

.register-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 700;
}

.register-summary-title i,
.register-summary-title svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.register-summary .selected-plan-card {
  margin-bottom: 24px;
}

.register-summary .form-row--custom {
  margin-bottom: 0;
}

.register-form {
  padding: 48px;
}

.auth-title {
  text-align: center;
  font-size: var(--text-4xl);
  margin-bottom: 12px;
}

.auth-header p {
  text-align: center;
  margin-bottom: 40px;
}

.auth-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

/* Social / OAuth Login Buttons */
.social-login-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid var(--border);
}

.btn-social svg {
  width: 18px;
  height: 20px;
  flex-shrink: 0;
}

.btn-social--google {
  background: var(--surface);
  color: var(--text);
}

.btn-social--google:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
}

.btn-social--discord {
  background: #5865f2;
  color: #fff;
  border-color: #5865f2;
}

.btn-social--discord:hover {
  background: #4752c4;
  border-color: #4752c4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: var(--text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.selected-plan-card {
  text-align: left;
}

.selected-plan-card .plan-name {
  margin-bottom: 4px;
}

.selected-plan-discount {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.price-discount {
  margin: auto;
}

.price-discount--plan {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form row - single field container */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Form field group - groups multiple related fields (e.g., password + confirm) */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Label styling */
.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-white);
}

/* Input styling */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-faint);
  border-radius: 8px;
  padding: 12px 16px;
  color: white;
  font-size: var(--text-md);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: var(--muted);
}

/* Error styling - Symfony renders errors as <ul> with <li> items */
.form-row ul {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

.form-row ul li {
  font-size: var(--text-sm);
  color: var(--err);
  padding: 4px 0;
}

.form-row ul li::before {
  content: "• ";
}

/* Input with error state */
.form-row:has(ul) .form-input {
  border-color: var(--err);
}

/* Help text styling */
.form-help {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 6px;
}

/* Turnstile CAPTCHA wrapper — centers the widget within the form */
.turnstile-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Checkbox row styling */
.form-row--checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.form-row--checkbox + .form-row--checkbox {
  margin-top: -8px;
}

.form-row--checkbox > label {
  margin-bottom: 0;
  font-weight: 400;
}

.form-row--checkbox label {
  font-size: var(--text-base);
  cursor: pointer;
}

/* Submit button spacing — consistent gap above the button */
.form-submit {
  margin-top: 12px;
}

/* Custom form rows with manual layout - disable ordering */
.form-row--custom {
  display: block;
}

.form-row--custom > .form-label {
  display: block;
  margin-bottom: 8px;
}

.form-checkbox {
  width: 18px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Promo Code Input */
.promo-code-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.promo-code-input-wrapper .form-input {
  flex: 1;
}

.promo-apply-btn {
  white-space: nowrap;
  padding: 12px 20px;
  min-width: 90px;
}

.promo-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.promo-status i,
.promo-status svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.promo-status-success {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent);
}

.promo-status-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--err);
}

/* ==========================================================================
   Alerts
   ========================================================================== */
.alert {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid;
  align-items: flex-start;
}

.alert-success {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--accent);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--err);
}

.alert-warning,
.alert.warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--warn);
  align-items: center;
}

.alert-info {
  background: var(--accent-dim);
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--text-white);
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-white);
  margin-bottom: 4px;
}

.alert-description {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Account Page
   ========================================================================== */
.account-hero {
  margin-bottom: 48px;
}

.account-email {
  color: var(--text-white);
  font-weight: 600;
  font-size: var(--text-2xl);
}

.status-badge {
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.status-badge.active {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--accent);
}

.status-badge.pending {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.status-badge.inactive {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: var(--warn);
}

.detail-item {
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  padding: 24px;
}

.detail-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-content {
  font-size: var(--text-lg);
  color: var(--text-white);
  font-weight: 500;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.resource-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.resource-card:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--accent-dim);
  color: var(--accent);
}

.resource-info h4 {
  font-size: var(--text-lg);
  margin-bottom: 4px;
}

.resource-info p {
  margin-bottom: 0;
  color: var(--text-dim);
}

/* ==========================================================================
   Icon Box
   ========================================================================== */
.icon-box {
  width: 56px;
  height: 56px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

/* ==========================================================================
   Social Proof / Stats Section
   ========================================================================== */
.stats-section {
  margin: 100px 0;
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-value {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--text-bright);
  font-family: var(--font-code);
}

.stat-label {
  color: var(--text-dim);
  font-size: var(--text-base);
  margin-top: 8px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-accent {
  color: var(--accent);
}

.text-accent-2 {
  color: var(--accent);
}

.text-warn {
  color: var(--warn);
}

.text-ok {
  color: var(--accent);
}

.text-muted {
  color: var(--muted);
}

.muted-text {
  color: var(--muted);
}

.small-text {
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.text-dim {
  color: var(--text-dim);
}

/* Margins */
.mb-0 {
  margin-bottom: 0;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-48 {
  margin-bottom: 48px;
}

.mb-64 {
  margin-bottom: 64px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-64 {
  margin-top: 64px;
}

.mt-80 {
  margin-top: 80px;
}

.mt-auto {
  margin-top: auto;
}

/* Padding */
.p-40 {
  padding: 40px;
}

.p-64 {
  padding: 64px;
}

.pt-0 {
  padding-top: 0;
}

.pt-32 {
  padding-top: 32px;
}

.pb-0 {
  padding-bottom: 0;
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.flex-grow-1 {
  flex-grow: 1;
}

/* Grid utilities */
.grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.gap-48 {
  gap: 48px;
}

.gap-64 {
  gap: 64px;
}

/* Widths */
.w-full {
  width: 100%;
}

.max-w-320 {
  max-width: 320px;
}

.max-w-400 {
  max-width: 400px;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-700 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-900 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.w-fit {
  width: fit-content;
}

/* Alignment */
.items-start {
  align-items: flex-start;
}

/* Font Size */
.fs-base {
  font-size: var(--text-base);
}

.fs-xl {
  font-size: var(--text-xl);
}

/* Padding */
.pl-24 {
  padding-left: 24px;
}

/* Line Height */
.lh-relaxed {
  line-height: 1.8;
}

/* Margin */
.m-0 {
  margin: 0;
}

/* ==========================================================================
   Indicator Detail Page
   ========================================================================== */
.indicator-hero-icon {
  background: linear-gradient(135deg, var(--accent), rgba(0, 212, 255, 0.3));
  box-shadow: 0 18px 40px -28px var(--accent-glow);
}

.indicator-overview-text {
  font-size: var(--text-xl);
  line-height: 1.8;
  color: var(--text-dim);
}

.indicator-overview-text p {
  margin-bottom: 24px;
}

/* Hero overrides */
.indi-hero-title {
  text-align: left;
}

.indi-hero-lead {
  max-width: 700px;
}

/* Tier Badge */
.indi-tier-badge {
  display: inline-block;
  font-family: var(--font-code);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  vertical-align: middle;
}

.indi-tier-badge--basic {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--accent);
}

.indi-tier-badge--pro {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--warn);
}

.indi-tier-badge--elite {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(236, 72, 153, 0.15)
  );
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

/* Inline Tags */
.indi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.indi-tag {
  font-family: var(--font-code);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  border-radius: 4px;
  padding: 4px 10px;
}

/* Meta Row */
.indi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  align-items: center;
}

.indi-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--muted);
  font-family: var(--font-code);
  letter-spacing: 0.02em;
}

.indi-meta-item i {
  color: var(--accent);
  opacity: 0.6;
}

.indi-meta-tag {
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

/* Description Section */
.indi-description-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.indi-description-block {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-faint);
}

.indi-description-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.indi-description-icon {
  color: var(--accent);
  margin-right: 8px;
  vertical-align: -2px;
}

/* Image Break Component */
.indi-image-break {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-faint);
}

.indi-image-break img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.indi-image-caption {
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
  padding: 12px 16px;
  margin: 0;
  background: var(--panel-2);
  border-top: 1px solid var(--line-faint);
}

/* Feature Items */
.indi-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.indi-feature-item:hover {
  border-color: var(--accent);
}

.indi-feature-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.indi-feature-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 4px 0;
}

/* Concept Cards (How It Works) */
.indi-concept-card {
  position: relative;
}

.indi-concept-number {
  font-family: var(--font-code);
  font-size: var(--text-7xl);
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

/* Playbook Section */
.indi-playbook {
  flex: 1;
}

.indi-playbook-list {
  padding-left: 20px;
  margin: 0;
  color: var(--text-dim);
  font-size: var(--text-md);
  line-height: 1.8;
}

.indi-playbook-list li {
  padding: 4px 0;
}

.indi-playbook-list li::marker {
  color: var(--accent);
}

/* Visual Legend Table */
.indi-legend-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-faint);
}

.indi-legend-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
}

.indi-legend-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-faint);
  background: var(--panel-2);
}

.indi-legend-table td {
  font-size: var(--text-base);
  color: var(--text-dim);
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-faint);
  line-height: 1.5;
}

.indi-legend-table tbody tr:last-child td {
  border-bottom: none;
}

.indi-legend-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Settings Reference */
.indi-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.indi-settings-group {
  flex: 1;
}

.indi-setting-item {
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  border-radius: 8px;
}

.indi-setting-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
  font-family: var(--font-code);
}

/* Alert Items */
.indi-alert-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.indi-alert-item:hover {
  border-color: var(--accent);
}

.indi-alert-icon {
  color: var(--warn);
  flex-shrink: 0;
  margin-top: 2px;
}

.indi-alert-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 4px 0;
}

/* Info Grid (Repainting + Limitations) */
.indi-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

/* FAQ Accordion */
.indi-faq-list {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.indi-faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}

.indi-faq-item:hover,
.indi-faq-item.is-open {
  border-color: rgba(255, 255, 255, 0.12);
}

.indi-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.indi-faq-question:hover {
  color: var(--accent);
}

.indi-faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: var(--muted);
}

.indi-faq-item.is-open .indi-faq-chevron {
  transform: rotate(180deg);
}

.indi-faq-answer {
  padding: 0 24px 20px;
}

/* Access & Support Card */
.indi-access-card {
  margin: 0 auto;
  border-color: rgba(0, 212, 255, 0.15);
}

/* Disclaimer */
.indi-disclaimer {
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-faint);
}

.indi-disclaimer p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.indi-disclaimer strong {
  color: var(--text-dim);
}

/* Image Gallery Component */
.indi-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-faint);
}

.indi-gallery-main {
  position: relative;
  background: var(--bg-panel);
  cursor: pointer;
  aspect-ratio: 2 / 1;
  overflow: hidden;
}

.indi-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.indi-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.indi-gallery-main:hover .indi-gallery-nav,
.indi-gallery-lightbox:hover .indi-gallery-nav {
  opacity: 1;
}

@media (hover: none) {
  .indi-gallery-nav {
    opacity: 1;
  }
}

.indi-gallery-nav--prev {
  left: 12px;
}

.indi-gallery-nav--next {
  right: 12px;
}

.indi-gallery-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.indi-gallery-caption {
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
  padding: 12px 16px;
  margin: 0;
  background: var(--panel-2);
  border-top: 1px solid var(--line-faint);
}

.indi-gallery-thumbs {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  background: var(--panel-2);
  border-top: 1px solid var(--line-faint);
  scrollbar-width: thin;
}

.indi-gallery-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition:
    opacity 0.2s,
    outline-color 0.2s;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.indi-gallery-thumb:hover {
  opacity: 0.8;
}

.indi-gallery-thumb--active {
  opacity: 1;
  outline-color: var(--accent);
}

.indi-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.indi-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.indi-gallery-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  cursor: default;
}

/* Admin Gallery Management */
.admin-gallery-indicator-select {
  max-width: 320px;
}

.admin-gallery-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.admin-gallery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  cursor: grab;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.admin-gallery-item:hover {
  border-color: var(--line);
}

.admin-gallery-item.dragging {
  opacity: 0.5;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-gallery-item-handle {
  color: var(--muted);
  cursor: grab;
  flex-shrink: 0;
}

.admin-gallery-item-thumb {
  width: 80px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel-2);
}

.admin-gallery-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-item-info {
  flex: 1;
  min-width: 0;
}

.admin-gallery-available {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1024px) {
  .admin-gallery-available {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-gallery-available {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .admin-gallery-available {
    grid-template-columns: 1fr;
  }
}

.admin-gallery-available-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  min-width: 0;
}

.admin-gallery-available-item--selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 5%, var(--bg-panel));
}

.admin-gallery-available-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel-2);
}

.admin-gallery-available-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Positioning */
.pos-relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Disable all animations when Turbo is previewing (cache restore) */
html.turbo-cache-preview .animate-fade-in,
html.turbo-preview .animate-fade-in {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Default state: elements start invisible */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
}

/* Only animate when body has the ready class (set after Turbo navigation completes) */
html:not(.turbo-cache-preview):not(.turbo-preview) .animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
  background: var(--panel-2);
  border-radius: 5px;
  border: 2px solid var(--bg-void);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}

/* ==========================================================================
   Icon Sizes
   ========================================================================== */
.icon-xs {
  width: 14px;
  height: 14px;
  margin: auto 0px auto 0px;
}

.icon-sm {
  width: 16px;
  height: 16px;
  margin: auto 0px auto 0px;
}

.icon-18 {
  width: 18px;
  height: 18px;
  margin: auto 0px auto 0px;
}

.icon-md {
  width: 24px;
  height: 24px;
  margin: auto 0px auto 0px;
}

.icon-lg {
  width: 32px;
  height: 32px;
  margin: auto 0px auto 0px;
}

.icon-xl {
  width: 48px;
  height: 48px;
  margin: auto 0px auto 0px;
}

/* ==========================================================================
   Admin Styles
   ========================================================================== */
.admin-header {
  margin-bottom: 40px;
}

.admin-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.admin-filter-group {
  flex: 1;
  min-width: 150px;
}

.admin-filter-group .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.admin-filter-group .form-input {
  width: 100%;
}

.admin-filters-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-filters-actions .btn {
  padding: 12px 20px;
  font-size: var(--text-base);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.admin-stat-value {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-code);
}

.admin-stat-label {
  font-size: var(--text-base);
  color: var(--text-dim);
  margin-top: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-faint);
}

.admin-table th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-user-email {
  display: block;
  font-weight: 500;
  color: var(--text-white);
}

.admin-user-id {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  font-family: var(--font-code);
  margin-top: 2px;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-toggle:hover {
  border-color: var(--accent);
}

.admin-toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-toggle-slider {
  width: 36px;
  height: 20px;
  background: var(--panel);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s ease;
}

.admin-toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--muted);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.admin-toggle.active .admin-toggle-slider {
  background: var(--accent);
}

.admin-toggle.active .admin-toggle-slider::after {
  left: 18px;
  background: var(--text-white);
}

.admin-toggle-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  min-width: 24px;
}

.admin-toggle.active .admin-toggle-label {
  color: var(--accent);
}

.card.card-overflow-visible {
  overflow: visible;
}

.card.card-overflow-visible:hover {
  transform: none;
}

/* TV Username History */
.admin-tv-username-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-tv-history-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--warning);
  background: rgba(255, 171, 0, 0.1);
  border: 1px solid rgba(255, 171, 0, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tv-history-badge:hover {
  background: rgba(255, 171, 0, 0.2);
  border-color: rgba(255, 171, 0, 0.4);
}

.admin-tv-history-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 1000;
  min-width: 320px;
  background: rgb(30, 30, 35);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 0;
  overflow: hidden;
}

.admin-tv-username-cell:hover .admin-tv-history-dropdown {
  display: block;
}

.admin-tv-history-header {
  padding: 12px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--line-faint);
  background: var(--panel);
}

.admin-tv-history-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-faint);
}

.admin-tv-history-item:last-child {
  border-bottom: none;
}

.admin-tv-history-change {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.admin-tv-history-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: var(--text-sm);
}

.admin-tv-history-new {
  color: var(--text-white);
  font-weight: 500;
  font-size: var(--text-sm);
}

.admin-tv-history-arrow {
  color: var(--muted);
  flex-shrink: 0;
}

.admin-tv-history-access-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.admin-tv-history-access-badge.granted {
  color: var(--accent);
}

.admin-tv-history-access-badge.not-granted {
  color: var(--muted);
}

.admin-tv-history-date {
  font-size: var(--text-xs);
  color: var(--muted);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-faint);
}

.admin-pagination-info {
  font-size: var(--text-base);
  color: var(--muted);
}

/* ==========================================================================
   Admin - Sub Navigation
   ========================================================================== */
.admin-subnav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line-faint);
  padding-bottom: 0;
}

.admin-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  margin-bottom: -1px;
}

.admin-subnav-link:hover {
  color: var(--text-dim);
  border-bottom-color: var(--line-strong);
}

.admin-subnav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   Admin - Section Title
   ========================================================================== */
.admin-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Admin - Image Upload Form
   ========================================================================== */
.admin-upload-form {
  display: flex;
  flex-direction: column;
}

.admin-upload-mode-toggle {
  display: flex;
  gap: 12px;
}

.admin-mode-option {
  flex: 1;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.admin-mode-option:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

.admin-mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-mode-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.admin-mode-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-white);
}

.admin-mode-option:has(input:checked) .admin-mode-label {
  color: var(--accent);
}

.admin-mode-desc {
  font-size: var(--text-xs);
  color: var(--muted);
}

.admin-upload-fields {
  /* Container for mode-specific fields; visibility toggled via .hidden */
}

.admin-size-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text-dim);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 8px;
}

.admin-size-hint svg,
.admin-size-hint i {
  color: var(--accent);
  flex-shrink: 0;
}

.admin-file-input {
  padding: 10px 14px;
  cursor: pointer;
}

.admin-file-input::file-selector-button {
  padding: 6px 14px;
  margin-right: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text-dim);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-file-input::file-selector-button:hover {
  background: var(--panel-hover);
  border-color: var(--accent);
  color: var(--text-white);
}

.admin-filename-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: 8px;
}

.admin-filename-preview-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.admin-filename-preview-value {
  font-family: var(--font-code);
  font-size: var(--text-sm);
  color: var(--accent);
}

.admin-upload-info {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ==========================================================================
   Admin - Image Grid
   ========================================================================== */
.admin-image-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-code);
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 12px;
  margin-left: 8px;
}

.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.admin-image-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-image-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.admin-image-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: var(--bg-void);
}

.admin-image-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.admin-image-thumb img:hover {
  transform: scale(1.05);
}

.admin-image-meta {
  padding: 12px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-image-filename {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.admin-image-details {
  font-size: var(--text-xs);
  color: var(--muted);
  font-family: var(--font-code);
}

/* ==========================================================================
   Admin - Image Usage Badges
   ========================================================================== */
.admin-image-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px;
}

.admin-usage-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-usage-badge--linked {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.admin-usage-badge--unused {
  background: rgba(107, 114, 128, 0.1);
  color: var(--muted);
  border: 1px solid rgba(107, 114, 128, 0.15);
}

/* ==========================================================================
   Admin - Image Captions
   ========================================================================== */
.admin-caption-form {
  padding: 4px 14px;
}

.admin-caption-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-caption-input {
  flex: 1;
  font-size: var(--text-xs);
  padding: 4px 8px;
  min-width: 0;
}

/* ==========================================================================
   Admin - Image Sync Status
   ========================================================================== */
.admin-image-sync {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 6px;
}

.admin-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

.admin-sync-badge--synced {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.admin-sync-badge--mismatch {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.admin-action-inline {
  display: inline-flex;
}

/* ==========================================================================
   Admin - Image Actions
   ========================================================================== */
.admin-image-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 12px;
  margin-top: auto;
}

.admin-image-actions form {
  display: inline-flex;
}

/* ==========================================================================
   Admin - Empty State
   ========================================================================== */
.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.admin-empty-state p {
  margin: 0 0 4px;
}

.admin-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--line-strong);
  margin-bottom: 16px;
}

/* ==========================================================================
   Admin - Lightbox
   ========================================================================== */
.admin-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.admin-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Subscription Change Components
   ========================================================================== */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
}

.icon-circle.primary {
  background: var(--accent-dim);
  color: var(--accent);
}

.icon-circle.subtle {
  background: var(--panel);
  color: var(--muted);
}

.icon-circle.danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.change-comparison {
  display: flex;
  align-items: stretch;
  gap: 16px;
}

.change-plan {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line-faint);
}

.change-plan.current {
  opacity: 0.7;
}

.change-plan.target {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.change-plan .plan-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.change-plan .plan-price {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent);
}

.change-plan .plan-price-original {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 4px;
}

.change-plan .plan-price .period {
  font-weight: 400;
  color: var(--muted);
}

.change-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.change-details {
  background: var(--panel);
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  padding: 24px;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--text-base);
  color: var(--text-dim);
}

.details-list li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-label {
  font-size: var(--text-base);
  color: var(--muted);
}

.info-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-white);
}

.cancel-effects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.effect-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-base);
}

.effect-item.negative svg {
  color: var(--danger);
}

.effect-item.positive svg {
  color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .register-layout-inner {
    grid-template-columns: 1fr;
  }

  .register-summary {
    position: static;
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .grid-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .col-span-8,
  .col-span-4,
  .col-span-6 {
    grid-column: span 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .indi-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .subscription-plans {
    flex-direction: column;
    align-items: stretch;
  }

  .subscription-card {
    flex: none;
    max-width: none;
  }

  .nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .site-header {
    top: 10px;
    padding: 0 20px;
  }

  .header-inner {
    padding: 12px 20px;
  }

  main {
    padding-top: 120px; /* Reduced for smaller mobile header */
  }

  .container {
    padding: 0 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-content {
    padding: 0;
  }

  .panel-gradient {
    padding: 32px;
  }

  .change-comparison {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .indi-meta {
    flex-direction: column;
    gap: 12px;
  }

  .indi-legend-table th,
  .indi-legend-table td {
    padding: 10px 12px;
    font-size: var(--text-xs);
  }

  .indi-info-grid {
    grid-template-columns: 1fr;
  }

  .indi-faq-question {
    padding: 16px 20px;
    font-size: var(--text-md);
  }

  .indi-faq-answer {
    padding: 0 20px 16px;
  }

  /* Admin Image Management - Mobile */
  .admin-upload-mode-toggle {
    flex-direction: column;
  }

  .admin-image-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }

  .admin-filename-preview {
    flex-direction: column;
    gap: 4px;
  }

  .admin-subnav {
    gap: 0;
  }

  .admin-subnav-link {
    padding: 8px 12px;
    font-size: var(--text-sm);
  }
}

@media (max-width: 480px) {
  .grid-auto-fit-md {
    grid-template-columns: 1fr;
  }

  .btn-group {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Scroll-to-top button ──────────────────────────────────────── */

.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  backdrop-filter: blur(12px);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  border-color: var(--accent-hover);
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-consent-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none; /* Let clicks pass through the wrapper */
}

.cookie-consent-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  padding: 24px 0;
  pointer-events: auto; /* Re-enable clicks for the banner itself */
  backdrop-filter: blur(12px);
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-consent-text {
  flex: 1;
}

.cookie-consent-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 8px 0;
}

.cookie-consent-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* Utility classes for Stimulus transitions */
.translate-y-full {
  transform: translateY(100%);
}

.translate-y-0 {
  transform: translateY(0);
}

.transition-transform {
  transition-property: transform;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================================================
   VIP Callout Card
   ========================================================================= */

.vip-card {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.06) 0%,
    var(--bg-panel) 100%
  );
}

.flex-shrink-0 {
  flex-shrink: 0;
}

/* Skeleton loading shimmer */
.skeleton-line {
  height: 14px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.04)
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

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

/* ==========================================================================
   Error Page
   ========================================================================== */
.error-page {
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
}

.error-page__header {
  margin-bottom: 2rem;
}

.error-page__code {
  font-size: 6rem;
  font-weight: 700;
  margin: 0;
  color: var(--accent);
  line-height: 1;
}

.error-page__title {
  font-size: 2rem;
  font-weight: 600;
  margin: 1rem 0 0;
  color: var(--text-white);
}

.error-page__body {
  margin-top: 2rem;
}

.error-page__description {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.error-page__debug {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 2rem 0;
  padding: 1rem;
  background: var(--panel-2);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius);
}

.error-page__debug code {
  background: var(--panel);
  color: var(--accent-2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.875rem;
}

.error-page__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
