/* Fonts are loaded via <link> in index.html (VT323, Varela Round) */

/* Global: disable all animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  /* ========================================
     PRIMITIVE TOKENS — Base values
     ======================================== */

  /* Colors — Brand */
  --color-primary: #4f46e5;
  --color-primary-glow: rgba(79, 70, 229, 0.4);
  --color-accent: #06b6d4;
  --color-background: #050505;
  --color-background-radial: radial-gradient(circle at 50% 0%, #1e1e24 0%, #050505 60%);

  /* Colors — Glass */
  --color-glass-bg: rgba(20, 20, 25, 0.6);
  --color-glass-border: rgba(255, 255, 255, 0.08);

  /* Colors — Text */
  --color-text-primary: #ffffff;
  --color-text-secondary: #b4b4bf;
  --color-text-tertiary: #8a8fa0;

  /* Colors — Semantic */
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-error: #ef4444;
  --color-info: #3498db;
  --color-warning: #f59e0b;

  /* Colors — Among Us crewmates */
  --color-au-red: #c51111;
  --color-au-blue: #132ed1;
  --color-au-green: #117f2d;
  --color-au-pink: #ed54ba;
  --color-au-orange: #ef7d0d;
  --color-au-yellow: #f5f557;
  --color-au-black: #3f474e;
  --color-au-white: #d6e0f0;
  --color-au-purple: #6b2fbb;
  --color-au-brown: #71491e;
  --color-au-cyan: #38fedc;
  --color-au-lime: #50ef39;
  --color-au-maroon: #6b2c2b;
  --color-au-rose: #ecc0d3;
  --color-au-banana: #ffffbe;
  --color-au-gray: #758593;
  --color-au-tan: #918877;
  --color-au-coral: #ec7578;

  /* Brand identity */
  --color-crewmate-yellow: #ffd700;
  --color-crewmate-yellow-text: #1a1a1a;
  --color-crewmate-yellow-darker: #d4a90e;
  --color-impostor-red: #ef4444;
  --color-emergency-blue: #3498db;
  --color-emergency-text: #ffffff;
  --color-emergency-blue-darker: #2176ad;
  --color-key-id: #ef4444;

  /* ========================================
     SPACING SCALE — 8px base, modular 1.25
     ======================================== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ========================================
     TYPOGRAPHY — Font families
     ======================================== */
  --font-body: 'Rajdhani', 'Varela Round', sans-serif;
  --font-main: 'Rajdhani', 'Varela Round', sans-serif; /* alias for font-body */
  --font-display: 'Space Mono', 'VT323', monospace;
  --font-title: 'Space Mono', 'VT323', monospace;
  --font-mono: 'Space Mono', 'VT323', monospace;

  /* ========================================
     MOTION — Duration & easing
     ======================================== */
  --duration-instant: 50ms;
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 400ms;

  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ========================================
     SEMANTIC TOKENS — Component references
     ======================================== */

  /* Background */
  --background-color: var(--color-background);
  --background-radial: var(--color-background-radial);

  /* Primary/Accent */
  --primary-color: var(--color-primary);
  --primary-glow: var(--color-primary-glow);
  --accent-color: var(--color-accent);

  /* Glass */
  --glass-bg: var(--color-glass-bg);
  --glass-border: var(--color-glass-border);

  /* Text */
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-color-light: #e8f1f8;
  --text-color-medium: var(--color-text-secondary);
  --text-color-dark: var(--color-text-tertiary);

  /* Semantic */
  --success-color: var(--color-success);
  --danger-color: var(--color-danger);
  --error-color: var(--color-error);
  --info-color: var(--color-info);

  /* Panel */
  --panel-bg-color: #0a0a0a;
  --panel-border-color: var(--glass-border);
  --panel-highlight-color: var(--primary-color);

  /* Brand */
  --crewmate-yellow: var(--color-crewmate-yellow);
  --crewmate-yellow-text: var(--color-crewmate-yellow-text);
  --crewmate-yellow-darker: var(--color-crewmate-yellow-darker);
  --impostor-red: var(--color-impostor-red);

  /* Emergency */
  --emergency-blue: var(--color-emergency-blue);
  --emergency-text: var(--color-emergency-text);
  --emergency-blue-darker: var(--color-emergency-blue-darker);

  /* Key ID */
  --key-id-color: var(--color-key-id);

  /* Toast */
  --toast-success: var(--color-success);
  --toast-error: var(--color-error);
  --toast-info: var(--color-info);
  --toast-warning: var(--color-warning);

  /* Transition timing (legacy alias) */
  --ease-smooth: var(--ease-default);

  /* ========================================
     BORDER RADIUS SCALE — Shape tokens
     ======================================== */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 50%;

  /* ========================================
     Z-INDEX SCALE — Stacking context tokens
     ======================================== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-overlay: 1000;
  --z-modal: 9000;
  --z-toast: 9500;
  --z-skip-link: 10000;

  /* ========================================
     FONT-SIZE SCALE — Typographic tokens
     ======================================== */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
}

/* === SVG ICON BASE === */
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
}

/* === SKIP LINK (ACCESSIBILITY) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--crewmate-yellow);
  color: var(--crewmate-yellow-text);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: var(--z-skip-link);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* === FOCUS-VISIBLE FALLBACK (WCAG 2.4.7) === */
button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-color, #06b6d4);
  outline-offset: 2px;
}

/* === UTILITY: HIDDEN STATE (replaces inline style="display:none") === */
.is-hidden {
  display: none !important;
}

[hidden] *,
.is-hidden *,
.modal:not(.modal-open):not(.modal-open-flex) *,
.step-card:not(.current) * {
  animation-play-state: paused !important;
}

/* === UTILITY: Disabled visual for dynamically disabled buttons === */
.btn-disabled-visual {
  opacity: 0.6;
  pointer-events: none;
}

/* === UTILITY: Prevent body scroll when overlay/widget is open === */
body.no-scroll {
  overflow: hidden;
}

/* === UTILITY: Full width (replaces inline style="width:100%") === */
.prem-timer-full {
  width: 100%;
}

/* === SCREEN READER ONLY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* === NOSCRIPT FALLBACK (SECURITY AUDIT 2026 — ALTA 3) === */
/* Moved from inline styles in index.html to comply with CSP (no 'unsafe-inline') */
.noscript-fallback {
  background: #1a2433;
  color: #e0e0e0;
  text-align: center;
  padding: 3rem 1rem;
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.noscript-fallback h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.noscript-fallback p {
  max-width: 500px;
  line-height: 1.6;
}

.noscript-fallback .noscript-help {
  margin-top: 1.5rem;
}

.noscript-fallback .noscript-help a {
  color: #5865F2;
  text-decoration: underline;
}

/* === TOAST NOTIFICATION SYSTEM === */
.toast-container {
  position: fixed;
  top: 4.5rem;
  right: 1rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 2rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 18, 25, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
}

.toast.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-exiting {
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s var(--ease-smooth), opacity 0.2s ease;
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.toast-icon .icon {
  width: 20px;
  height: 20px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 2px;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
  min-height: auto;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.toast-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 0 0 12px 12px;
  transition: width linear;
}

/* Toast variants */
.toast-success {
  border-left: 3px solid var(--toast-success);
}

.toast-success .toast-title {
  color: var(--toast-success);
}

.toast-success .toast-icon {
  color: var(--toast-success);
}

.toast-success .toast-progress {
  background: var(--toast-success);
}

.toast-error {
  border-left: 3px solid var(--toast-error);
}

.toast-error .toast-title {
  color: var(--toast-error);
}

.toast-error .toast-icon {
  color: var(--toast-error);
}

.toast-error .toast-progress {
  background: var(--toast-error);
}

.toast-info {
  border-left: 3px solid var(--toast-info);
}

.toast-info .toast-title {
  color: var(--toast-info);
}

.toast-info .toast-icon {
  color: var(--toast-info);
}

.toast-info .toast-progress {
  background: var(--toast-info);
}

.toast-warning {
  border-left: 3px solid var(--toast-warning);
}

.toast-warning .toast-title {
  color: var(--toast-warning);
}

.toast-warning .toast-icon {
  color: var(--toast-warning);
}

.toast-warning .toast-progress {
  background: var(--toast-warning);
}

@media (max-width: 520px) {
  .toast-container {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
    top: 4rem;
  }
}

/* === RIPPLE EFFECT === */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Quick Start CTA replacement (removes duplication with download tab) */
.cc-how-cta {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  max-width: 420px;
  margin: 0 auto;
}
.cc-how-cta-icon { font-size: 48px; margin-bottom: 12px; }
.cc-how-cta h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.cc-how-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}
.cc-how-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}

/* === SCROLL REVEAL ANIMATION === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === ENHANCED FOCUS INDICATORS (WCAG AA) === */

a:focus-visible {
  outline: 2px solid var(--key-id-color);
  outline-offset: 2px;
  border-radius: 4px;
}

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

html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-main);
  background-color: var(--background-color);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Body gradient as pseudo-element so starfield canvas (z-index:0) renders above it */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--background-radial);
  z-index: -1;
  pointer-events: none;
}

/* Starfield canvas overlay — reduced for premium clean look */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
}

/* Nebula layers — Among Us style deep space atmosphere */
/* Positioned in upper-right, lower-left, and scattered — NOT centered */
#nebula-layer-1 {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 65% 20%, rgba(100, 40, 160, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 75%, rgba(30, 60, 140, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 60%, rgba(80, 20, 120, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: nebula-breathe 10s ease-in-out infinite;
}

#nebula-layer-2 {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 35% at 40% 50%, rgba(60, 20, 100, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 30% 50% at 75% 80%, rgba(20, 50, 120, 0.04) 0%, transparent 50%);
  pointer-events: none;
  animation: nebula-breathe 10s ease-in-out infinite reverse;
  animation-delay: -3s;
}

#nebula-layer-3 {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 45% 30% at 15% 40%, rgba(90, 30, 140, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 25% 20% at 90% 15%, rgba(139, 69, 139, 0.04) 0%, transparent 45%);
  pointer-events: none;
  animation: nebula-breathe 10s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes nebula-breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1.0; }
}

/* scanline-overlay: removed from HTML — element no longer exists */

/* 💨 VENT POP ANIMATION (Modal Entry) */
@keyframes ventPop {
  0% {
    opacity: 0;
    transform: translateY(100px) scale(0.8);
  }

  60% {
    opacity: 1;
    transform: translateY(-20px) scale(1.05);
    /* Bounce up */
  }

  100% {
    transform: translateY(0) scale(1);
    /* Settle */
  }
}

/* 🟩 TASK BAR STYLE (Segmented) */
.progress-fill {
  /* Iconic Among Us Task Bar: Green segments */
  background: repeating-linear-gradient(90deg,
      #43d31d,
      #43d31d 18%,
      transparent 18%,
      transparent 20%);
  box-shadow: 0 0 10px #43d31d;
  height: 100%;
  width: 0%;
  transition: width 0.3s steps(5);
  /* Steps makes it fill by "chunks" */
  border-radius: 2px;
}

/* Main Header Layout — hidden in redesign (logo in hero now) */
.main-header {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 10;
}

.header-content {
  text-align: center;
  width: 100%;
}

/* User Profile Pill - Fixed Top Right of Screen */
.user-profile-header {
  position: fixed;
  top: 0.5rem;
  right: 4rem;
  z-index: var(--z-dropdown);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  background: rgba(20, 20, 25, 0.85);
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile-header:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--primary-glow);
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-header {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.user-info-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 0.5rem;
}

.username-header {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85em;
  line-height: 1.1;
}

.discriminator-header {
  color: var(--text-secondary);
  font-size: 0.75em;
}

/* Main Container — LEGACY (neutered: all styling moved to .cc-main / .cc-content-wrap) */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  animation: none;
  overflow: visible;
}

/* Header Typography */
header {
  margin-bottom: 2rem;
}

header h1 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 2.2em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  position: relative;
  z-index: 1;
}

/* Prevent ::before pseudo-element on non-glitch headers */
header h1:not(.glitch-header)::before {
  content: none !important;
}

header h1:not(.glitch-header)::after {
  display: none;
}

header p.subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1em;
  line-height: 1.6;
  font-weight: 400;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.terminal-typing .cursor {
  display: inline-block;
  animation: terminalBlink 1s step-end infinite;
  color: var(--key-id-color);
  font-weight: 700;
}

@keyframes terminalBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Auth Section & Discord Button */
.auth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem auto;
  padding: 3rem 2rem;
  background: rgba(15, 18, 25, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  text-align: center;
}

@keyframes sectionFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered entrance for main header */
.main-header {
  animation: sectionFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  text-align: center;
}

.discord-auth-btn {
  position: relative;
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 12px;
  padding: 1.25rem 2.5rem;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 380px;
  text-align: center;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

/* .discord-btn-bg: styles removed — overridden by display:none below (direct button background used instead) */

.discord-btn-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 1;
  width: 100%;
}

.discord-icon-wrapper {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.discord-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.discord-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.discord-btn-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.1;
}

.discord-btn-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.discord-auth-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 30px rgba(88, 101, 242, 0.4),
    0 0 20px rgba(88, 101, 242, 0.2);
  background: linear-gradient(135deg, #6670f5 0%, #5865F2 100%);
  border-color: rgba(88, 101, 242, 0.6);
}

.discord-auth-btn:hover .discord-icon {
  transform: rotate(-10deg) scale(1.15);
}

.discord-auth-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.auth-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
}

/* Background layer hidden - using direct button background */
.discord-btn-bg {
  display: none;
}

/* Animated shine sweep across the Discord button */
.discord-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: discordShine 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes discordShine {

  0%,
  70% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}
.cooldown-section {
  margin: 0 auto 1.5rem auto;
  max-width: 600px;
}

.cooldown-timer {
  background: rgba(231, 76, 60, 0.1);
  border: 2px solid var(--impostor-red);
  border-radius: 8px;
  padding: 1rem;
  color: var(--impostor-red);
  font-family: var(--font-title);
  font-weight: 700;
  text-align: center;
  animation: pulse 2s infinite;
}

.cooldown-progress {
  height: 4px;
  background: rgba(231, 76, 60, 0.15);
  border-radius: 2px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.cooldown-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--impostor-red), #ff6b6b);
  border-radius: 2px;
  width: 100%;
  transition: width 1s linear;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.key-limit-section {
  margin: 0 auto 1.5rem auto;
  max-width: 600px;
}

.key-limit-info {
  background: rgba(52, 152, 219, 0.1);
  border: 2px solid var(--info-color);
  border-radius: 8px;
  padding: 1rem;
  color: var(--info-color);
  font-family: var(--font-title);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.key-limit-warning {
  background: rgba(255, 203, 116, 0.1);
  border: 2px solid var(--crewmate-yellow);
  color: var(--crewmate-yellow);
}

.key-limit-full {
  background: rgba(231, 76, 60, 0.1);
  border: 2px solid var(--impostor-red);
  color: var(--impostor-red);
}

.button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0 auto 2rem auto;
  max-width: 600px;
}

@media (min-width: 501px) {
  .button-group {
    grid-template-columns: 1fr 1fr;
  }
}

button {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background-color 0.15s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: none;
  /* 2026 Mobile UX: Removes 300ms tap delay */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  /* Apple/Google Touch Target Guidelines */
  min-height: 44px;
}

/* OLD 3D BUTTON STYLES REMOVED — replaced by elite glass styles at bottom of file */

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none !important;
}

button[disabled]:not(#btnOpenMethodMenu) {
  pointer-events: none;
}

/* 2026 Mobile UX: Universal Active State for Touch Feedback */
button:active:not([disabled]) {
  transform: translateY(1px) scale(0.98);
}

/* Focus states: defined in style_elite.css (loads after, has comprehensive :focus-visible rules) */

/* Reduced motion: duplicate removed — already defined at top of file (line 4) */

button .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

#btnOpenMethodMenu.loading .spinner,
.generate-button.loading .spinner {
  border-top-color: var(--crewmate-yellow-text);
}

#viewKeysBtn.loading .spinner {
  border-top-color: var(--emergency-text);
}

button.loading .spinner {
  display: inline-block;
}

button.loading .button-text {
  display: none;
}

.key-display-area {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(15, 18, 25, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 25px rgba(239, 68, 68, 0.15),
    inset 0 0 15px rgba(239, 68, 68, 0.1);

}

.key-container {
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

.key-container.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.key-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.key-actions:not(.is-hidden) {
  opacity: 1;
  transform: translateY(0);
}

.copy-button {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--duration-slow) var(--ease-default);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.copy-button:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.copy-button:active {
  transform: translateY(1px) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
}

.copy-button.copied {
  background: var(--crewmate-yellow);
  color: var(--crewmate-yellow-text);
  animation: copySuccess 0.6s ease;
}

/* Pulso sutil para chamar atenção após key ser gerada */
.copy-button.pulse-hint {
  animation: copyPulseHint 1.5s ease-in-out 3;
}

@keyframes copyPulseHint {

  0%,
  100% {
    box-shadow: 0 3px 0px #27ae60, 0 5px 8px rgba(0, 0, 0, 0.2);
  }

  50% {
    box-shadow: 0 3px 0px #27ae60, 0 5px 20px rgba(46, 204, 113, 0.6), 0 0 30px rgba(46, 204, 113, 0.4);
  }
}

@keyframes copySuccess {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.key-metadata {
  margin-top: 1rem;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-color-medium);
  border-left: 3px solid var(--info-color);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out 0.15s, transform 0.4s ease-out 0.15s;
}

.key-metadata:not(.is-hidden) {
  opacity: 1;
  transform: translateY(0);
}

.key-value-label {
  font-family: var(--font-monospace);
  font-size: 0.8em;
  color: var(--text-color-medium);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

.key-value {
  font-family: var(--font-monospace);
  font-size: 1.3em;
  font-weight: 700;
  color: var(--key-id-color);
  word-break: break-all;
  letter-spacing: 2px;
  text-shadow: 0 0 15px var(--key-id-color), 0 0 20px var(--key-id-color);
  padding: 0.3rem;
  line-height: 1.4;
  transition: all var(--duration-slow) var(--ease-default);
  user-select: all;
  -webkit-user-select: all;
  position: relative;
}

.key-value:hover {
  color: #fff;
  text-shadow: 0 0 20px var(--key-id-color), 0 0 30px var(--key-id-color);
  cursor: pointer;
}

.key-value:focus-visible {
  outline: 2px solid var(--key-id-color);
  outline-offset: 4px;
  border-radius: 4px;
}

.key-value.processing {
  color: var(--text-color-medium);
  font-style: italic;
  text-shadow: none;
  animation: pulseProcessing 1.5s infinite ease-in-out;
}

@keyframes pulseProcessing {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.message-area {
  min-height: 3.2em;
  margin: 1.8rem 0 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .3s ease, transform .3s ease;
  padding: .9rem 1.3rem;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 500;
  width: 100%;
  max-width: 420px;
  border-left-width: 6px;
  border-left-style: solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.message.visible {
  opacity: 1;
  transform: scale(1);
}

.message.error {
  background-color: rgba(231, 76, 60, 0.1);
  border-left-color: var(--error-color);
  color: var(--error-color);
}

.message.success {
  background-color: rgba(46, 204, 113, 0.1);
  border-left-color: var(--success-color);
  color: var(--success-color);
}

.message.info {
  background-color: rgba(52, 152, 219, 0.1);
  border-left-color: var(--info-color);
  color: var(--info-color);
}

.keys-list-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.keys-list-section h2 {
  font-family: var(--font-title);
  color: var(--panel-highlight-color);
  font-size: 1.3em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(106, 147, 201, 0.4);
  text-align: center;
}

.keys-list-section ul {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  border: 2px solid var(--panel-border-color);
  border-radius: 8px;
  padding: 1rem;
  padding-right: 12px;
  background-color: rgba(0, 0, 0, 0.2);
}

.keys-list-section li {
  background-color: rgba(44, 62, 80, 0.3);
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 0.7rem;
  font-family: var(--font-monospace);
  font-size: 0.9em;
  color: var(--text-color-light);
  border-left: 5px solid var(--panel-highlight-color);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  word-break: break-all;
  display: flex;
  align-items: center;
}

.keys-list-section li:last-child {
  margin-bottom: 0;
}

.keys-list-section li:hover {
  background-color: rgba(45, 59, 82, 0.5);
  border-left-color: var(--crewmate-yellow);
  transform: translateX(5px);
}

.keys-list-section li.no-keys {
  text-align: center;
  font-style: italic;
  color: var(--text-color-dark);
  border-left-color: var(--text-color-dark);
  justify-content: center;
  background-color: transparent;
}

.keys-list-section li::before {
  content: '🆔';
  margin-right: 0.8em;
  font-size: 1.1em;
  opacity: 0.8;
}

.keys-list-section li.no-keys::before {
  content: '🚫';
}

.keys-list-section ul::-webkit-scrollbar {
  width: 12px;
}

.keys-list-section ul::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  border: 1px solid var(--panel-border-color);
}

.keys-list-section ul::-webkit-scrollbar-thumb {
  background: var(--panel-highlight-color);
  border-radius: 6px;
  border: 2px solid rgba(0, 0, 0, 0.25);
}

.keys-list-section ul::-webkit-scrollbar-thumb:hover {
  background: var(--crewmate-yellow);
}

.keys-list-section ul {
  scrollbar-width: auto;
  scrollbar-color: var(--panel-highlight-color) rgba(0, 0, 0, 0.25);
}

/* ================== BOTTOM BUTTONS (Support / Donate CTA pair) ================== */
.bottom-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 840px;
  width: calc(100% - 32px);
  margin: 32px auto 48px;
  padding: 0;
}

.bb-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(15, 18, 25, 0.85) 0%, rgba(10, 12, 18, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-main);
  text-align: left;
  text-decoration: none;
  color: #e2e8f0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bb-button:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

.bb-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bb-button-icon svg {
  width: 18px;
  height: 18px;
}

.bb-button-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.bb-button-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #f1f5f9;
}

.bb-button-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

/* ---- Support variant (cyan accent) ---- */
.bb-button--support .bb-button-icon {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.bb-button--support:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(10, 12, 18, 0.9) 100%);
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.12);
}

.bb-button--support:hover .bb-button-icon {
  background: rgba(34, 211, 238, 0.2);
  border-color: rgba(34, 211, 238, 0.4);
  transform: scale(1.05);
}

/* ---- Donate variant (red/pink accent) ---- */
.bb-button--donate .bb-button-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.bb-button--donate:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(10, 12, 18, 0.9) 100%);
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.12);
}

.bb-button--donate:hover .bb-button-icon {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .bb-button,
  .bb-button-icon {
    transition: none;
  }
  .bb-button:hover {
    transform: none;
  }
  .bb-button:hover .bb-button-icon {
    transform: none;
  }
}

@media (max-width: 640px) {
  .bottom-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px auto 36px;
  }

  .bb-button {
    min-height: 52px;
    padding: 10px 14px;
  }

  .bb-button-icon {
    width: 32px;
    height: 32px;
  }

  .bb-button-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* 🌐 FLOATING LANGUAGE SWITCHER (2026) — Inside the network bar area */
.lang-switcher {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: var(--z-skip-link);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: 24px;
  background: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.34);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  transition: all var(--duration-slow) var(--ease-default);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 18px rgba(239, 68, 68, 0.2);
}

.lang-switcher:hover {
  border-color: rgba(239, 68, 68, 0.62);
  background: rgba(12, 15, 21, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.52), 0 0 22px rgba(239, 68, 68, 0.24);
  transform: translateY(-1px);
}

.lang-switcher:active {
  transform: translateY(0);
}

.lang-globe {
  box-sizing: border-box;
  display: block;
  width: 26px;
  height: 26px;
  padding: 5px;
  color: rgba(255, 255, 255, 0.74);
  opacity: 0.78;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex: 0 0 auto;
}

.lang-switcher:hover .lang-globe {
  color: #fff;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.lang-code {
  appearance: none;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lang-code.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff3434 0%, #c91e2b 100%);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.42);
}

.lang-switcher:hover .lang-code:not(.is-active) {
  color: rgba(255, 255, 255, 0.78);
}

.lang-switcher .lang-code:not(.is-active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.lang-code:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.lang-code:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .lang-switcher {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .lang-globe {
    display: none;
  }
}

/* (old .support-button / .donate-button rules removed — replaced by .bb-button variants above) */
/* (old .translate-button removed — replaced by .lang-switcher floating pill) */

.discord-widget-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: var(--z-overlay);
  background: var(--panel-bg-color);
  border: 3px solid var(--panel-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 35px rgba(45, 59, 82, 0.8);
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
}

.discord-widget-container.active {
  display: block;
  animation: widgetFadeIn 0.3s ease;
}

@keyframes widgetFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.discord-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--panel-border-color);
}

.discord-widget-title {
  font-family: var(--font-title);
  color: var(--crewmate-yellow);
  font-size: 1.2rem;
}

.close-widget {
  color: var(--text-color-medium);
  float: right;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 10;
  transition: color 0.3s ease;
}

.close-widget:hover {
  color: var(--impostor-red);
}

.discord-widget {
  width: 350px;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
}

.discord-widget iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: var(--z-sticky);
}

.overlay.active {
  display: block;
  animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.achievement-popup {
  position: fixed;
  top: 4.5rem;
  right: 1.5rem;
  background: var(--crewmate-yellow);
  color: var(--crewmate-yellow-text);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 203, 116, 0.4);
  transform: translateX(400px);
  transition: transform 0.5s ease;
  z-index: var(--z-overlay);
  border: 2px solid var(--crewmate-yellow-darker);
  max-width: 300px;
  word-wrap: break-word;
}

.achievement-popup.show {
  transform: translateX(0);
}

.modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(20, 10, 30, 0.92) 0%, rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-y: auto;
  padding: 2rem 1rem;
  animation: fadeIn 0.3s ease;
}

/* Semantic open state — replaces inline style.display */
.modal.modal-open {
  display: block;
}

.modal.modal-open-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==================== PROFILE MODAL — STATE-OF-ART 2026 ==================== */
.profile-modal {
  background: linear-gradient(160deg, rgba(18, 22, 32, 0.96) 0%, rgba(10, 12, 18, 0.98) 100%);
  margin: 3% auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  width: 92%;
  max-width: 540px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 0 80px rgba(255, 33, 64, 0.08);
  position: relative;
  overflow: hidden;
  animation: profileSlideIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.profile-modal::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 33, 64, 0.5), rgba(106, 147, 201, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

@keyframes profileSlideIn {
  from { transform: translateY(24px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.close-modal {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  font-weight: 400;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  line-height: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  padding: 0;
  min-height: auto;
  border-radius: 50%;
  text-transform: none;
  letter-spacing: 0;
  transition: all 180ms ease;
}
.close-modal:hover {
  color: #fff;
  background: rgba(255, 33, 64, 0.18);
  border-color: rgba(255, 33, 64, 0.4);
  transform: scale(1.05);
}

/* === HERO (avatar + identity) === */
.profile-hero {
  position: relative;
  padding: 32px 28px 22px;
  display: flex;
  gap: 22px;
  align-items: center;
  overflow: hidden;
}
.profile-hero-glow {
  position: absolute;
  inset: -40px -40px auto -40px;
  height: 180px;
  background: radial-gradient(ellipse at top left, rgba(255, 33, 64, 0.18), transparent 55%),
              radial-gradient(ellipse at top right, rgba(106, 147, 201, 0.14), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.profile-hero > *:not(.profile-hero-glow) { position: relative; z-index: 1; }

.profile-avatar-stack {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.profile-progress-ring {
  position: absolute; inset: 0;
  width: 120px; height: 120px;
  transform: rotate(-90deg);
}
.pring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 4;
}
.pring-fill {
  fill: none;
  stroke: url(#_gradUnused) #ff2140;
  stroke: #ff2140;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), stroke 0.4s ease;
  filter: drop-shadow(0 0 6px rgba(255, 33, 64, 0.45));
}
.pring-fill.tier-bronze   { stroke: #cd7f32; filter: drop-shadow(0 0 6px rgba(205, 127, 50, 0.5)); }
.pring-fill.tier-silver   { stroke: #d4d4d4; filter: drop-shadow(0 0 6px rgba(212, 212, 212, 0.5)); }
.pring-fill.tier-gold     { stroke: #ffd700; filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.55)); }
.pring-fill.tier-diamond  { stroke: #b9f2ff; filter: drop-shadow(0 0 10px rgba(185, 242, 255, 0.65)); }

.profile-avatar-frame {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.profile-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.profile-status-dot {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #3ecf5a;
  border: 3px solid #0e1119;
  box-shadow: 0 0 12px rgba(62, 207, 90, 0.7);
  animation: pStatusPulse 2.2s ease-in-out infinite;
}
@keyframes pStatusPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(62, 207, 90, 0.6); }
  50% { box-shadow: 0 0 16px rgba(62, 207, 90, 0.9); }
}

.profile-tier-badge {
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  line-height: 1;
  background: linear-gradient(180deg, rgba(30, 34, 44, 0.98), rgba(14, 17, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
  z-index: 3;
  font-weight: 700;
  white-space: nowrap;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.profile-tier-badge.visible { display: inline-flex; align-items: center; gap: 4px; }
.profile-tier-badge.tier-bronze   { color: #cd7f32; border-color: rgba(205, 127, 50, 0.5); }
.profile-tier-badge.tier-silver   { color: #e8e8e8; border-color: rgba(212, 212, 212, 0.5); }
.profile-tier-badge.tier-gold     { color: #ffd700; border-color: rgba(255, 215, 0, 0.5); text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.profile-tier-badge.tier-diamond  { color: #b9f2ff; border-color: rgba(185, 242, 255, 0.5); text-shadow: 0 0 10px rgba(185, 242, 255, 0.5); }

.profile-identity { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.profile-name {
  color: #fff;
  margin: 0;
  font-size: 1.4rem;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-id-copy {
  width: 26px; height: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  min-height: auto;
  transition: all 160ms ease;
}
.profile-id-copy:hover { color: #fff; background: rgba(255, 33, 64, 0.15); border-color: rgba(255, 33, 64, 0.4); }
.profile-id-copy.copied { color: #3ecf5a; border-color: rgba(62, 207, 90, 0.5); background: rgba(62, 207, 90, 0.1); }
.profile-handle { color: rgba(255, 255, 255, 0.5); margin: 0 0 12px; font-size: 0.92rem; font-family: var(--font-monospace); }

.profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pchip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pchip-server.verified { background: rgba(62, 207, 90, 0.12); color: #3ecf5a; border-color: rgba(62, 207, 90, 0.35); }
.pchip-server.missing  { background: rgba(255, 68, 68, 0.12); color: #ff6b6b; border-color: rgba(255, 68, 68, 0.35); }
.pchip-premium { background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 170, 0, 0.12)); color: #ffd700; border-color: rgba(255, 215, 0, 0.4); text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.pchip-tier { background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.75); }
.pchip-tier.tier-bronze  { color: #cd7f32; border-color: rgba(205, 127, 50, 0.4); }
.pchip-tier.tier-silver  { color: #e8e8e8; border-color: rgba(212, 212, 212, 0.4); }
.pchip-tier.tier-gold    { color: #ffd700; border-color: rgba(255, 215, 0, 0.4); }
.pchip-tier.tier-diamond { color: #b9f2ff; border-color: rgba(185, 242, 255, 0.4); }

.profile-next-tier {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}
.profile-next-tier strong { color: rgba(255, 255, 255, 0.8); font-weight: 600; }

/* === PREMIUM PANEL === */
.profile-premium-panel {
  margin: 0 22px 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.profile-premium-panel::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 120px; height: 200%;
  background: radial-gradient(ellipse, rgba(255, 215, 0, 0.12), transparent 60%);
  pointer-events: none;
}
.prem-panel-header { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.prem-panel-crown { font-size: 1.6rem; filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); }
.prem-panel-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.prem-panel-kicker { font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.7px; }
.prem-panel-value { font-family: var(--font-monospace); font-size: 1rem; color: #ffd700; font-weight: 700; }
.prem-panel-ring { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.prem-panel-ring svg { width: 56px; height: 56px; transform: rotate(-90deg); }
.prem-ring-track { fill: none; stroke: rgba(255, 215, 0, 0.12); stroke-width: 5; }
.prem-ring-fill {
  fill: none;
  stroke: #ffd700;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 157.08;
  stroke-dashoffset: 157.08;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0.9, 0.3, 1), stroke 0.4s ease;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.6));
}
.prem-ring-fill.warn { stroke: #ffaa00; filter: drop-shadow(0 0 4px rgba(255, 170, 0, 0.6)); }
.prem-ring-fill.danger { stroke: #ff4d4d; filter: drop-shadow(0 0 4px rgba(255, 77, 77, 0.7)); }
.prem-panel-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd700;
}

/* === LAST KEY === */
.profile-last-key {
  margin: 0 22px 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.plk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.plk-label { font-size: 0.65rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; letter-spacing: 0.7px; font-weight: 600; }
.plk-reveal {
  width: 24px; height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  padding: 0; min-height: auto;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 140ms ease;
}
.plk-reveal:hover { color: #fff; background: rgba(255, 33, 64, 0.15); border-color: rgba(255, 33, 64, 0.4); }
.plk-reveal.active { color: #ff4d67; background: rgba(255, 33, 64, 0.18); border-color: rgba(255, 33, 64, 0.5); }
.plk-row { display: flex; align-items: center; gap: 10px; }
.plk-value {
  flex: 1; min-width: 0;
  font-family: var(--font-monospace);
  font-size: 0.9rem;
  color: #ff4d67;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 33, 64, 0.18);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
  letter-spacing: 0.5px;
}
.plk-copy {
  background: linear-gradient(135deg, #ff2140, #ff4d67);
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: auto;
  transition: all 180ms ease;
  box-shadow: 0 6px 14px rgba(255, 33, 64, 0.25);
}
.plk-copy:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 33, 64, 0.35); }
.plk-copy.copied { background: linear-gradient(135deg, #2eb557, #3ecf5a); box-shadow: 0 6px 14px rgba(62, 207, 90, 0.3); }

/* === STATS GRID === */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px 22px 18px;
}
.pstat {
  position: relative;
  padding: 14px 12px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.pstat::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--pstat-accent, rgba(255, 33, 64, 0.08)), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.pstat-today  { --pstat-accent: rgba(255, 33, 64, 0.12);  --pstat-glow: rgba(255, 33, 64, 0.25); }
.pstat-total  { --pstat-accent: rgba(106, 147, 201, 0.14); --pstat-glow: rgba(106, 147, 201, 0.25); }
.pstat-active { --pstat-accent: rgba(62, 207, 90, 0.14);  --pstat-glow: rgba(62, 207, 90, 0.25); }
.pstat-since  { --pstat-accent: rgba(255, 215, 0, 0.12);  --pstat-glow: rgba(255, 215, 0, 0.25); }
.pstat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px var(--pstat-glow), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.pstat:hover::before { opacity: 1; }
.pstat-top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.pstat-icon {
  font-size: 1.1rem;
  display: inline-flex;
  transition: transform 300ms ease;
}
.pstat:hover .pstat-icon { transform: rotate(-8deg) scale(1.1); }
.pstat-trend {
  font-size: 0.65rem;
  font-weight: 700;
  color: #3ecf5a;
  background: rgba(62, 207, 90, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
}
.pstat-trend:empty { display: none; }
.pstat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-title);
  letter-spacing: -0.01em;
  line-height: 1;
  position: relative; z-index: 1;
  transition: transform 300ms ease;
}
.pstat-value-text { font-size: 0.95rem; font-weight: 700; }
.pstat-value.bump { animation: pstatBump 400ms cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pstatBump {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.pstat-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
  position: relative; z-index: 1;
}

/* === TIMELINE === */
.profile-timeline {
  margin: 0 22px 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}
.ptimeline-head { margin-bottom: 10px; }
.ptimeline-title {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
}
.ptimeline-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ptimeline-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-left: 20px;
}
.ptimeline-item::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff2140;
  box-shadow: 0 0 0 3px rgba(255, 33, 64, 0.15);
}
.ptimeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 7.5px; top: calc(50% + 6px);
  width: 1px;
  height: calc(100% + 2px);
  background: linear-gradient(180deg, rgba(255, 33, 64, 0.25), transparent);
}
.ptimeline-item code {
  font-family: var(--font-monospace);
  color: #ff4d67;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
}
.ptimeline-item time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  white-space: nowrap;
}

/* === ACTIONS === */
.profile-actions {
  padding: 4px 22px 22px;
  display: flex;
  gap: 10px;
}
.pbtn {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: auto;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 160ms ease;
}
.pbtn-label { position: relative; z-index: 1; }
.pbtn-primary {
  background: linear-gradient(135deg, #ff2140, #ff4d67);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 33, 64, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.pbtn-primary:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 33, 64, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.pbtn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.pbtn-shine {
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 550ms ease;
  pointer-events: none;
}
.pbtn-primary:not(:disabled):hover .pbtn-shine { left: 150%; }
.pbtn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pbtn-ghost:hover {
  background: rgba(255, 68, 68, 0.1);
  color: #ff6b6b;
  border-color: rgba(255, 68, 68, 0.4);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .profile-modal, .pstat-value.bump, .profile-status-dot, .pring-fill, .prem-ring-fill { animation: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .profile-modal { margin: 2% auto; max-width: 95%; }
  .profile-hero { flex-direction: column; text-align: center; padding: 24px 18px 16px; gap: 16px; }
  .profile-name-row { justify-content: center; }
  .profile-badges { justify-content: center; }
  .profile-stats { grid-template-columns: 1fr 1fr; padding: 12px 18px 14px; }
  .profile-premium-panel, .profile-last-key, .profile-timeline { margin-left: 18px; margin-right: 18px; }
  .profile-actions { flex-direction: column; padding: 0 18px 18px; }
  .prem-panel-header { flex-wrap: wrap; }
}

.server-required-message {
  background: rgba(255, 203, 116, 0.1);
  border: 2px solid var(--crewmate-yellow);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.server-invite-btn {
  background: var(--crewmate-yellow);
  color: var(--crewmate-yellow-text);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  transition: all var(--duration-slow) var(--ease-default);
}

.server-invite-btn:hover {
  background: #ffd893;
  transform: translateY(-2px);
}

/* ==================== WELCOME FLOW GUIDE ==================== */
.welcome-flow {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(106, 147, 201, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  animation: fadeIn 0.6s ease;
}

/* ==================== PERSONAL JOURNEY PANEL ==================== */
.mission-panel {
  margin-bottom: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid rgba(239, 68, 68, 0.12);
  border-top: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 16px 16px 0 0;
  background:
    linear-gradient(170deg, rgba(239, 68, 68, 0.06) 0%, rgba(124, 58, 237, 0.03) 40%, transparent 100%),
    rgba(10, 14, 22, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.mission-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), rgba(124, 58, 237, 0.3), transparent);
}

@media (max-width: 520px) {
  .mission-panel {
    padding: 1.2rem 1rem 1rem;
  }
}

@media (max-width: 520px) {
  body {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .container {
    width: 100vw;
    max-width: 100vw;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
  }

  .main-header {
    flex-direction: column;
    gap: 1rem;
  }

  .user-profile-header {
    position: fixed;
    top: 0.5rem;
    right: 4rem;
    width: auto;
  }

  .user-info-header {
    display: none;
  }

  header h1 {
    font-size: 1.6em;
  }

  .key-value {
    font-size: 1.1em;
  }

  .keys-list-section ul {
    max-height: 160px;
  }

  .achievement-popup {
    top: 4rem;
    right: 10px;
    left: 10px;
    transform: translateY(-100px);
  }

  .achievement-popup.show {
    transform: translateY(0);
  }

  .key-limit-info {
    font-size: 0.9rem;
  }

  .discord-widget {
    width: 100%;
    height: 400px;
  }

  .discord-widget-container {
    width: 95%;
    padding: 1rem;
  }

  .modal-stats {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .modal-header {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .modal-actions {
    flex-direction: column;
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
}

/* Waiting for Turnstile indicator */
.turnstile-container {
  position: relative;
}

.turnstile-container::after {
  content: '';
  display: none;
}

/* --- Confetti Effect --- */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #f00;
  animation: confetti-fall 3s linear forwards;
  pointer-events: none;
  z-index: var(--z-modal);
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* --- Help Button --- */

.help-button:hover {
  background: var(--panel-highlight-color);
  color: white;
  border-color: var(--panel-highlight-color);
}

/* --- Tutorial Modal --- */
.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  text-align: left;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--panel-highlight-color);
}

.step-item .step-number {
  background: var(--panel-highlight-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--text-color-light);
  margin-bottom: 0.3rem;
}

.step-content p {
  color: var(--text-color-medium);
  font-size: 0.9rem;
}

/* --- DOPAMINE ENHANCEMENTS --- */

/* Access Granted Overlay */
.access-granted-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 10, 20, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-skip-link);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.access-granted-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.access-granted-overlay.fading {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}

.access-text {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 900;
  color: var(--success-color);
  text-transform: uppercase;
  letter-spacing: 5px;
  position: relative;
  text-shadow: 0 0 20px var(--success-color), 0 0 40px var(--success-color);
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes glitch-skew {
  0% {
    transform: scale(1) skew(0deg);
  }

  10% {
    transform: scale(1) skew(-2deg);
  }

  20% {
    transform: scale(1.01) skew(1deg);
  }

  30% {
    transform: scale(1) skew(0deg);
  }

  40% {
    transform: scale(0.99) skew(2deg);
  }

  50% {
    transform: scale(1) skew(-1deg);
  }

  60% {
    transform: scale(1.01) skew(0deg);
  }

  70% {
    transform: scale(1) skew(-2deg);
  }

  80% {
    transform: scale(0.99) skew(1deg);
  }

  90% {
    transform: scale(1) skew(0deg);
  }

  100% {
    transform: scale(1) skew(-1deg);
  }
}

.access-granted-overlay.show .access-text {
  transform: scale(1);
  animation: glitch-skew 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.access-text::before,
.access-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.access-text::before {
  left: 2px;
  text-shadow: -2px 0 #ff00c1;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.access-text::after {
  left: -2px;
  text-shadow: -2px 0 #00fff9;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

/* Typing Cursor */
.typing-cursor::after {
  content: '▋';
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--key-id-color);
  font-size: 0.8em;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Enhanced Button Interactions */
button:active:not([disabled]) {
  transform: scale(0.96) translateY(2px) !important;
  box-shadow: 0 0 15px currentColor !important;
}

/* Key Container Pop Animation */
@keyframes keyContainerPopIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  60% {
    transform: scale(1.05);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.key-container

/* ========================================
   ANTI-BYPASS: Challenge Modal Styles
   ======================================== */
.challenge-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.93);
  display: none;
  z-index: var(--z-skip-link);
}

/* Quando visível, usa flexbox para centralizar */
.challenge-modal.modal-open {
  display: flex !important;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

.challenge-modal-content {
  background: linear-gradient(135deg, var(--panel-bg-color) 0%, #0d1520 100%);
  border: 2px solid var(--panel-highlight-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 40px rgba(106, 147, 201, 0.3),
    0 0 80px rgba(106, 147, 201, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: challengeSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

@keyframes challengeSlideIn {
  0% {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.challenge-header h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: #00ffc8;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.challenge-header h2::before {
  content: '🧑‍🚀';
  font-size: 1.4rem;
}

.challenge-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.1), transparent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.challenge-timer {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid var(--impostor-red);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-monospace);
}

.challenge-timer span:last-child {
  color: var(--impostor-red);
  font-weight: bold;
  font-size: 1.2rem;
  min-width: 50px;
}

.challenge-body {
  margin-bottom: 1.5rem;
}

.challenge-question {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.challenge-question-text {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-color-light);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

.challenge-option {
  background: linear-gradient(135deg, var(--panel-bg-color) 0%, #0d1520 100%);
  border: 2px solid var(--panel-border-color);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: var(--text-color-light);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  position: relative;
  overflow: hidden;
}

.challenge-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.challenge-option:hover:not([disabled]) {
  border-color: var(--crewmate-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 203, 116, 0.3);
}

.challenge-option:hover:not([disabled])::before {
  left: 100%;
}

.challenge-option:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 203, 116, 0.2);
}

.challenge-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Color Challenge Options */
.challenge-color-option {
  min-height: 70px;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  padding: 0;
  margin: 0 auto;
  border-width: 4px;
  border-color: rgba(255, 255, 255, 0.3);
  /* background é definido via JS com !important */
}

.challenge-color-option:hover:not([disabled]) {
  transform: scale(1.2);
  box-shadow: 0 0 30px currentColor;
  border-color: white;
}

/* Emoji options - bigger and clearer */
.challenge-emoji-option {
  font-size: 2.5rem !important;
  padding: 0.75rem 1.5rem !important;
  min-width: 80px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-emoji-option:hover:not([disabled]) {
  transform: scale(1.1);
}

/* Number options */
.challenge-option:not(.challenge-color-option):not(.challenge-emoji-option) {
  font-size: 1.5rem;
  padding: 1rem;
  font-weight: bold;
}

/* Question text larger */
.challenge-question-text {
  font-size: 3rem !important;
  display: block;
  margin-bottom: 0.5rem;
}

/* Click feedback */
.challenge-option:active:not([disabled]) {
  transform: scale(0.95) !important;
  opacity: 0.8;
}

.challenge-footer {
  color: var(--text-color-dark);
  font-size: 0.85rem;
}

.challenge-hint {
  margin-top: 0.75rem;
  color: var(--crewmate-yellow);
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Shake animation when trying to close */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.challenge-modal-content.shake {
  animation: shake 0.5s ease-in-out;
}

#challengeAttempts {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--panel-border-color);
}

/* Challenge Modal Responsive */
@media (max-width: 480px) {
  .challenge-modal-content {
    padding: 1.25rem;
    margin: 0.5rem;
    max-width: 95%;
  }

  .challenge-header h2 {
    font-size: 1.1rem;
  }

  .challenge-header p {
    font-size: 0.8rem;
  }

  .challenge-question-text {
    font-size: 2.5rem !important;
  }

  .challenge-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .challenge-option {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .challenge-emoji-option {
    font-size: 2rem !important;
    min-width: 65px;
    min-height: 55px;
  }

  .challenge-color-option {
    width: 55px;
    height: 55px;
  }

  .challenge-timer {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .challenge-hint {
    font-size: 0.7rem;
  }
}

/* ========================================
   MELHORIAS UX - NOVAS ANIMAÇÕES E EFEITOS
   ======================================== */

@keyframes statusPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0);
  }
}

@keyframes iconBounce {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

/* 3. Glow Effect na Key Gerada */
.key-value {
  position: relative;
}

.key-container.visible .key-value {
  animation: keyGlow 2s ease-in-out infinite alternate;
}

@keyframes keyGlow {
  0% {
    text-shadow: 0 0 5px var(--key-id-color), 0 0 10px var(--key-id-color);
  }

  100% {
    text-shadow: 0 0 10px var(--key-id-color), 0 0 20px var(--key-id-color), 0 0 30px var(--key-id-color);
  }
}

/* 4. Toast Notifications Melhoradas */
.message {
  position: relative;
  overflow: hidden;
}

.message::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: messageShine 2s ease-in-out infinite;
}

@keyframes messageShine {
  0% {
    transform: translateX(0);
  }

  50%,
  100% {
    transform: translateX(200%);
  }
}

.message.show {
  animation: messageSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes messageSlideIn {
  0% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 5. Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg,
      var(--panel-bg-color) 25%,
      rgba(106, 147, 201, 0.1) 50%,
      var(--panel-bg-color) 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: 4px;
}

/* 6. Contador de Keys com Animação */
.stat-value {
  transition: all var(--duration-slow) var(--ease-default);
}

.stat-value.updating {
  animation: countUpdate 0.5s ease;
}



/* 8. Botão Copiar com Feedback */
.copy-button {
  position: relative;
  overflow: hidden;
}

.copy-button::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  font-size: 1.5rem;
  transition: all var(--duration-slow) var(--ease-default);
}

.copy-button.copied {
  background: var(--success-color) !important;
}

.copy-button.copied span {
  opacity: 0;
}

.copy-button.copied::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* 20. Responsive Footer */
@media (max-width: 480px) {

  /* OLD .footer-links responsive rules removed */
}

/* ==================== 21. SEÇÃO PREMIUM - ==================== */
.premium-section {
  margin: 2rem auto;
  padding: 2.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(185, 28, 28, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(124, 58, 237, 0.05) 50%, rgba(139, 92, 246, 0.03) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(220, 38, 38, 0.06),
    inset 0 1px 0 rgba(220, 38, 38, 0.1);
  background-color: rgba(15, 15, 25, 0.95);
}

/* Static premium red gradient border */
.premium-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 50%, rgba(239, 68, 68, 0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.premium-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* OLD FOOTER STYLES REMOVED — replaced by 3-column footer at bottom of file */

/* ==================== KEYS EMPTY STATE ==================== */
.keys-empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-color-dark);
  opacity: 0.7;
}

.keys-empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.keys-empty-state p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-color-medium);
}

/* Hide empty state when list has items */
#keysList:not(:empty)~.keys-empty-state {
  display: none;
}

/* ==================== KEY NEXT STEPS HINT ==================== */
.key-next-steps {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px dashed rgba(46, 204, 113, 0.3);
  border-radius: 8px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.next-steps-label {
  color: var(--success-color);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 0.3rem 0;
}

.next-steps-text {
  color: var(--text-color-medium);
  font-size: 0.85rem;
  margin: 0;
}

/* OLD .footer-copyright/.footer-trademark rules removed — see redesign block at bottom */

/* 10. Melhorias de Focus/Acessibilidade */
*:focus-visible {
  outline: 2px solid var(--crewmate-yellow);
  outline-offset: 3px;
}

button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 203, 116, 0.5);
}

/* 11. Animação de Entrada das Keys na Lista */
#keysList li {
  animation: keyListSlide 0.4s ease backwards;
}

#keysList li:nth-child(1) {
  animation-delay: 0.05s;
}

#keysList li:nth-child(2) {
  animation-delay: 0.1s;
}

#keysList li:nth-child(3) {
  animation-delay: 0.15s;
}

#keysList li:nth-child(4) {
  animation-delay: 0.2s;
}

#keysList li:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes keyListSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 12. Hover nos Cards de Stats */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.5s ease;
}

.stat-card:hover::before {
  left: 100%;
}

/* 13. Botão Discord Melhorado */
.discord-auth-btn {
  position: relative;
  overflow: hidden;
}

.discord-auth-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.discord-auth-btn:hover::before {
  transform: scale(1);
}

/* 14. Animação do Confetti Success */
.key-container.success {
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* 15. Tooltip Customizado */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--panel-bg-color);
  border: 1px solid var(--panel-border-color);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-default);
  z-index: var(--z-dropdown);
  pointer-events: none;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* 16. Pulse Hint no Botão Copiar */
.pulse-hint {
  animation: pulseHint 1s ease-in-out infinite;
}

@keyframes pulseHint {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
}

/* 17. Pop-in Animation */
.pop-in {
  animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 18. Processing State */
.processing {
  animation: processingPulse 1.5s ease-in-out infinite;
}

@keyframes processingPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* 19. Help Button Melhorado */
.help-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--panel-highlight-color);
  color: var(--text-color-light);
  border: none;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-button:hover {
  transform: scale(1.15) rotate(15deg);
  background: var(--crewmate-yellow);
  color: var(--crewmate-yellow-text);
}

/* 20. Responsive Footer */
@media (max-width: 480px) {
  .site-footer {
    padding: 1.5rem 0.75rem;
  }

  /* OLD .footer-links responsive rules removed */
}

.premium-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
  margin: 0 auto 0.75rem;
  max-width: 100%;
}

/* Featured plans (Yearly + Lifetime) on second row, spanning 2 columns each */
.premium-plan[data-plan="yearly"],
.premium-plan[data-plan="lifetime"] {
  grid-column: span 2;
}

/* ===== PREMIUM PLAN CARDS ===== */
.premium-plan {
  background: linear-gradient(165deg,
      rgba(30, 40, 55, 0.95) 0%,
      rgba(20, 25, 35, 0.98) 50%,
      rgba(15, 18, 25, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 16px;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(250, 204, 21, 0.04);
}

/* Static red gradient border effect */
.premium-plan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3), transparent, rgba(185, 28, 28, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

/* Inner glow effect */
.premium-plan::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  pointer-events: none;
}

.premium-plan:hover {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(220, 38, 38, 0.15);
}

.premium-plan:hover::before {
  opacity: 1;
}

.premium-plan:hover::after {
  width: 200px;
  height: 200px;
}

/* Prevent hover ::after from breaking featured plan shimmer */
.plan-featured:hover::after {
  width: 200%;
  height: 200%;
}

/* ===== PLAN BADGES ===== */
.plan-popular,
.plan-popular-tag,
.plan-best {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 12px 12px;
  z-index: 2;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.plan-popular,
.plan-popular-tag {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
}

.plan-best {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
  color: #fca5a5;
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.3);
}
@keyframes popularPulse {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
  }

  50% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.6);
  }
}

/* ===== PLAN NAME ===== */
.plan-name {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--text-color-light);
  margin: 1.25rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* ===== PLAN PRICE ===== */
.plan-price {
  margin: 0.75rem 0;
  position: relative;
  z-index: 1;
}

.plan-price-value {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: #2ecc71;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.plan-price-value .currency {
  font-size: 0.9rem;
  opacity: 0.9;
}

.plan-price-hint {
  font-size: 0.7rem;
  color: rgba(255, 215, 0, 0.8);
  margin-top: 0.25rem;
  font-style: italic;
}

/* ===== PLAN BUY BUTTON ===== */
.plan-buy-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-default);
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-buy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.plan-buy-btn:hover {
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
  transform: translateY(-2px);
}

.plan-buy-btn:hover::before {
  left: 100%;
}

.btn-featured {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-featured:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

/* Lifetime button — regal purple-gold */
.btn-lifetime {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #9333ea 100%);
  color: #fff;
  border: 1px solid rgba(147, 51, 234, 0.5);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-lifetime:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #a855f7 100%);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5), 0 0 15px rgba(147, 51, 234, 0.3);
  border-color: rgba(167, 85, 247, 0.7);
}

.plan-buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.plan-buy-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ===== FEATURED PLAN (Monthly) - HERO PLAN ===== */
.plan-featured {
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: linear-gradient(165deg,
      rgba(45, 55, 70, 0.95) 0%,
      rgba(35, 40, 50, 0.98) 50%,
      rgba(25, 30, 40, 0.95) 100%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(220, 38, 38, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 1.5rem 1.25rem !important;
  transform: scale(1.02);
}

.plan-featured .plan-name {
  font-size: 1.15rem;
  color: #fca5a5;
}

.plan-featured .plan-price-value {
  font-size: 1.8rem;
}

.plan-featured:hover {
  border-color: rgba(255, 215, 0, 0.9);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 215, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Shimmer sweep on featured plan - only on hover */
.plan-featured::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(115deg,
      transparent 20%,
      rgba(255, 215, 0, 0.07) 40%,
      rgba(255, 215, 0, 0.13) 50%,
      rgba(255, 215, 0, 0.07) 60%,
      transparent 80%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.plan-featured:hover::after {
  opacity: 1;
  animation: featuredShimmer 1.5s ease-in-out;
}

@keyframes featuredShimmer {
  0% {
    transform: translateX(-60%) rotate(15deg);
  }

  100% {
    transform: translateX(60%) rotate(15deg);
  }
}

/* Static glow on featured plan - no breathing animation */

/* ===== COMPACT LAYOUT ADJUSTMENTS ===== */
.premium-plans-compact .premium-plan {
  padding: 1rem 0.75rem;
}

.premium-plans-compact .plan-name {
  font-size: 0.9rem;
  margin: 0.5rem 0 0.25rem;
}

.premium-plans-compact .plan-price-value {
  font-size: 1.3rem;
}

.premium-plans-compact .plan-buy-btn {
  padding: 0.6rem;
  font-size: 0.75rem;
  margin-top: 0.75rem;
}

/* ===== PLAN DETAILS (hover reveal) ===== */
.plan-details {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.6rem;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--text-color-medium);
  text-align: left;
  animation: slideDown 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.plan-details span {
  display: block;
  padding: 0.1rem 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.premium-plan:hover .plan-details {
  display: flex;
}

/* Touch devices: always show plan details since hover isn't reliable */
@media (hover: none) {
  .plan-details {
    display: flex;
  }
}

/* Desktop & small screens: always show details for comparison UX */
.plan-details {
  display: flex;
}

/* ===== NEW/ECONOMY/CROWN BADGES ===== */
.plan-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
  z-index: 2;
  letter-spacing: 0.3px;
}

.plan-economy {
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(39, 174, 96, 0.4);
}

.plan-crown {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(155, 89, 182, 0.4);
}
/* ===== LIFETIME PLAN - ULTRA PREMIUM ENHANCED ===== */
.plan-lifetime {
  background: linear-gradient(165deg,
      rgba(55, 40, 75, 0.95) 0%,
      rgba(40, 28, 55, 0.98) 50%,
      rgba(28, 18, 40, 0.95) 100%);
  border: 2px solid rgba(155, 89, 182, 0.5);
  box-shadow:
    0 8px 25px rgba(155, 89, 182, 0.15),
    0 0 40px rgba(155, 89, 182, 0.12);
  padding: 1.5rem 1.25rem !important;
  transform: scale(1.01);
}

.plan-lifetime .plan-name {
  font-size: 1.15rem;
  color: #c9a0ff;
}

.plan-lifetime .plan-price-value {
  font-size: 1.8rem;
  color: #b080d0 !important;
}

.plan-lifetime::before {
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.5), transparent, rgba(155, 89, 182, 0.3));
}

.plan-lifetime:hover {
  border-color: rgba(155, 89, 182, 0.8);
  box-shadow:
    0 12px 35px rgba(155, 89, 182, 0.2),
    0 0 50px rgba(155, 89, 182, 0.1);
  animation: none;
  transform: scale(1.03) translateY(-4px);
}

.btn-lifetime {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

.btn-lifetime:hover {
  background: linear-gradient(135deg, #a76bc4 0%, #9b59b6 100%);
  box-shadow: 0 8px 30px rgba(155, 89, 182, 0.7);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .premium-plans {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .premium-plan[data-plan="yearly"],
  .premium-plan[data-plan="lifetime"] {
    grid-column: span 2;
  }
}

@media (max-width: 550px) {
  .premium-plans {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .premium-plan[data-plan="yearly"],
  .premium-plan[data-plan="lifetime"] {
    grid-column: span 1;
  }

  /* Put best plans first on mobile */
  .premium-plan[data-plan="yearly"] {
    order: -2;
  }

  .premium-plan[data-plan="lifetime"] {
    order: -1;
  }

  .premium-section {
    padding: 1rem;
    margin: 1rem auto;
  }

  .premium-plan {
    padding: 1rem;
  }
}

/* ==================== 22. PREMIUM SUCCESS MODAL ==================== */
.premium-success-modal {
  text-align: center;
  max-width: 460px;
  padding: 2rem 1.5rem !important;
  background: linear-gradient(165deg, #1e2d42 0%, #151c28 100%) !important;
  border: 2px solid rgba(255, 215, 0, 0.5) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 215, 0, 0.15) !important;
  animation: successModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

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

.premium-success-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  animation: celebrateBounce 0.8s ease;
}

@keyframes celebrateBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.premium-success-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: #2ecc71;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.premium-success-subtitle {
  color: var(--text-color-medium);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.premium-key-display {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 170, 0, 0.06) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.premium-key-display::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 215, 0, 0.06) 50%, transparent 60%);
  animation: keyShimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes keyShimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.premium-key-label {
  color: var(--crewmate-yellow);
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  z-index: 1;
}

.premium-key-value {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 2.5px;
  word-break: break-all;
  user-select: all;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.premium-key-type {
  margin-top: 0.5rem;
  color: rgba(255, 215, 0, 0.7);
  font-size: 0.78rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.premium-copy-btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font-title);
  color: #1a1a1a;
  background: linear-gradient(135deg, var(--crewmate-yellow) 0%, #ffaa00 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-default);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: copyBtnPulse 2s ease-in-out 3;
}

@keyframes copyBtnPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 4px 25px rgba(255, 215, 0, 0.5); }
}

.premium-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.premium-copy-btn.copied {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  animation: none;
}

.premium-instructions {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-instructions h4 {
  color: var(--crewmate-yellow);
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.premium-instructions ol {
  margin-left: 1.2rem;
  color: var(--text-color-medium);
  font-size: 0.82rem;
  line-height: 1.6;
}

.premium-instructions li {
  margin-bottom: 0.4rem;
}

/* Premium Loading Modal */
.premium-loading-modal {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(145deg, #1e2d42 0%, #151c28 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.1);
}

.premium-loading-modal p {
  color: #c8d6e5;
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin: 0;
}

.premium-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 215, 0, 0.2);
  border-top: 4px solid var(--crewmate-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* ==================== 23. PREMIUM ACTIVE BANNER ==================== */
.premium-active-banner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 170, 0, 0.08) 100%);
  border: 2px solid var(--crewmate-yellow);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premium-active-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
  animation: premiumGlow 4s ease-in-out infinite;
}

@keyframes premiumGlow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.premium-badge-large {
  display: inline-block;
  background: linear-gradient(135deg, var(--crewmate-yellow) 0%, #ffaa00 100%);
  color: #1a1a1a;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
  font-family: var(--font-title);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
  }
}

.premium-status-text {
  color: var(--text-color-light);
  font-size: 1rem;
  margin: 0.5rem 0;
  position: relative;
  z-index: 1;
}

.premium-status-text strong {
  color: var(--crewmate-yellow);
}

.premium-status-sub {
  color: var(--text-color-medium);
  font-size: 0.85rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ==================== 24. PREMIUM KEYS LIST SECTION ==================== */
.premium-keys-section {
  margin: 1.5rem auto;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  max-width: 600px;
}

.premium-keys-section h2 {
  color: var(--crewmate-yellow);
  font-size: 1rem;
  font-family: var(--font-title);
  margin: 0 0 1rem 0;
  text-align: center;
}

#premiumKeysList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-key-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--panel-border-color);
  transition: all var(--duration-slow) var(--ease-default);
}

.premium-key-item:hover {
  border-color: var(--crewmate-yellow);
  background: rgba(255, 215, 0, 0.05);
}

.premium-key-item .premium-key-value {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--text-color-light);
  letter-spacing: 1px;
  flex: 1;
  min-width: 200px;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.premium-key-item .premium-key-type {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: linear-gradient(135deg, var(--crewmate-yellow) 0%, #ffaa00 100%);
  color: #1a1a1a;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 0;
}

.key-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.key-status.active {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.key-status.unused {
  background: rgba(255, 215, 0, 0.2);
  color: var(--crewmate-yellow);
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.key-status.expired {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.4);
}

@media (max-width: 480px) {
  .premium-key-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-key-item .premium-key-value {
    width: 100%;
    font-size: 0.8rem;
    word-break: break-all;
  }
}

/* ==================== CHALLENGE MODAL STYLES ==================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: linear-gradient(135deg, #1a2433 0%, #0f1219 100%);
  border: 2px solid #6a93c9;
  border-radius: 16px;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
  box-shadow: 0 0 50px rgba(106, 147, 201, 0.3), 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Challenge Header */
.challenge-header {
  background: linear-gradient(135deg, rgba(255, 203, 116, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 203, 116, 0.3);
  text-align: center;
}

.challenge-header h2 {
  font-family: var(--font-title, 'VT323', monospace);
  font-size: 1.4rem;
  color: #ffcb74;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 203, 116, 0.5);
}

.challenge-header p {
  color: #b0bec5;
  font-size: 0.9rem;
  margin: 0;
}

/* Challenge Timer */
.challenge-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(255, 100, 80, 0.05) 100%);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 30px;
  margin: 1rem 2rem 0 2rem;
  font-family: var(--font-title, 'VT323', monospace);
}

.challenge-timer span:first-child {
  color: #b0bec5;
  font-size: 0.85rem;
}

#challengeTimer {
  color: #e74c3c;
  font-size: 1.1rem;
  font-weight: bold;
  min-width: 50px;
  text-align: center;
  animation: timerPulse 1s ease-in-out infinite;
}

@keyframes timerPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Challenge Body */
.challenge-body {
  padding: 2rem;
  text-align: center;
}

/* Challenge Question */
#challengeQuestion,
.challenge-question {
  margin-bottom: 2rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.challenge-instruction {
  font-size: 1.3em !important;
  color: #ffcb74;
  font-family: var(--font-title, 'VT323', monospace);
  font-weight: 700 !important;
  margin-bottom: 1.2rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 203, 116, 0.4);
}

.challenge-visual {
  font-size: 3.5em !important;
  letter-spacing: 0.3em !important;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.2rem 2rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.challenge-question-text {
  font-size: 1.2em;
  line-height: 1.6;
  color: #e8f1f8;
}

/* Challenge Options */
#challengeOptions,
.challenge-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.challenge-option {
  background: linear-gradient(135deg, #2d3b52 0%, #1e2837 100%);
  border: 2px solid rgba(106, 147, 201, 0.4);
  color: #e8f1f8;
  padding: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-body, 'Space Grotesk', sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--duration-normal) var(--ease-default);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0;
}

.challenge-option:hover:not(:disabled) {
  background: linear-gradient(135deg, #3d4d66 0%, #2a3847 100%);
  border-color: #6a93c9;
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.25);
}

.challenge-option:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.challenge-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Emoji Options - Larger */
.challenge-emoji-option {
  font-size: 2.5rem !important;
  padding: 1.5rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(45, 59, 82, 0.9) 0%, rgba(26, 36, 51, 0.95) 100%);
}

.challenge-emoji-option:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(61, 77, 102, 0.95) 0%, rgba(42, 56, 71, 1) 100%);
  border-color: #ffcb74;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 0 25px rgba(255, 203, 116, 0.3);
}

/* Color Options */
.challenge-color-option {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 0;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 -3px 6px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

.challenge-color-option:hover:not(:disabled) {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px currentColor;
}

/* Challenge Footer */
.challenge-footer {
  padding: 1.2rem 2rem 1.5rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#challengeAttempts {
  color: #b0bec5;
  font-size: 0.9rem;
  font-family: var(--font-title, 'VT323', monospace);
}

.challenge-hint {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Shake Animation (when trying to close) */
.shake {
  animation: shakeModal 0.5s ease;
}

@keyframes shakeModal {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-8px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(8px);
  }
}

/* Responsive */
@media (max-width: 500px) {
  .modal-content {
    margin: 0 0.5rem;
  }

  .challenge-header {
    padding: 1rem 1.5rem;
  }

  .challenge-header h2 {
    font-size: 1.1rem;
  }

  .challenge-body {
    padding: 1.5rem;
  }

  .challenge-visual {
    font-size: 2.5em !important;
    padding: 1rem 1.5rem;
    letter-spacing: 0.15em !important;
  }

  .challenge-instruction {
    font-size: 1.1em !important;
  }

  #challengeOptions {
    gap: 0.8rem;
  }

  .challenge-emoji-option {
    font-size: 2rem !important;
    padding: 1rem;
  }

  .challenge-color-option {
    width: 55px;
    height: 55px;
  }
}

/* Tutorial Modal */
.tutorial-content {
  padding: 2rem;
}

.tutorial-content h2 {
  font-family: var(--font-title, 'VT323', monospace);
  color: #ffcb74;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tutorial-content .step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid #6a93c9;
}

.tutorial-content .step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6a93c9 0%, #4a73a9 100%);
  color: white;
  font-family: var(--font-title, 'VT323', monospace);
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tutorial-content .step-content h4 {
  color: #e8f1f8;
  margin-bottom: 0.3rem;
  font-family: var(--font-title, 'VT323', monospace);
  font-size: 0.95rem;
}

.tutorial-content .step-content p {
  color: #b0bec5;
  font-size: 0.85rem;
  margin: 0;
}

@keyframes borderGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

/* ==================== PREMIUM USER PANEL ==================== */
/* ==================== PREMIUM USER PANEL ==================== */
.premium-user-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.premium-key-info .info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.premium-key-info .info-label {
  min-width: 80px;
  flex-shrink: 0;
}

.premium-panel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.premium-panel-badge {
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  color: #000;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.premium-panel-title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
  background: linear-gradient(to right, var(--crewmate-yellow), #ff8c00);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-panel-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.premium-key-info {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.info-value {
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
}

#premiumActiveKey {
  color: var(--accent-color);
  letter-spacing: 1px;
  font-family: 'Space Mono', monospace;
}

.premium-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.premium-action-btn {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 160px;
  justify-content: center;
}

.premium-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
}

.premium-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.premium-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.premium-panel-hint {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 1rem;
}

/* Spinner animation */
.premium-action-btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 500px) {
  .premium-user-panel {
    padding: 1.2rem;
    margin: 1rem auto;
  }
}

/* ==================== KEY ITEM LIST WITH DELETE ==================== */
.key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all var(--duration-normal) var(--ease-default);
}

.key-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.key-item .key-value {
  font-family: var(--font-monospace, 'Consolas', monospace);
  font-size: 0.95em;
  font-weight: 600;
  color: #00ffc8;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 255, 200, 0.3);
  flex: 1;
  user-select: all;
  word-break: break-all;
}

.key-delete-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: rgba(239, 68, 68, 0.7);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--duration-normal) var(--ease-default);
  margin-left: 0.8rem;
  flex-shrink: 0;
  box-shadow: none;
}

.key-delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: scale(1.05);
}

.key-delete-btn:active {
  transform: scale(0.95);
}

/* No-keys message styling */
.no-keys {
  color: var(--text-secondary);
  font-style: italic;
  padding: 1rem;
  text-align: center;
}

/* ==================== TWO-STEP VERIFICATION MODAL (2026) ==================== */
.two-step-content {
  background: linear-gradient(145deg, #1a2433 0%, #0d1117 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 20px;
  max-width: 980px;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  position: relative;
  box-shadow:
    0 0 60px rgba(255, 215, 0, 0.15),
    0 25px 50px rgba(0, 0, 0, 0.5);
}

.twostep-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.twostep-main::after {
  content: '';
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(239, 68, 68, 0.15) 20%,
    rgba(255, 215, 0, 0.35) 50%,
    rgba(239, 68, 68, 0.15) 80%,
    transparent 100%);
  pointer-events: none;
}

/* Tutorial video sidebar */
.twostep-tutorial-video {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top right, rgba(239, 68, 68, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20, 12, 18, 0.6) 0%, rgba(10, 10, 15, 0.5) 100%);
  min-width: 0;
}

.twostep-video-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 170, 0, 0.08) 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  font-family: var(--font-title, 'VT323', monospace);
  font-size: 1.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
  /* match height with .two-step-header */
  min-height: 78px;
  box-sizing: border-box;
  /* leave space for the close button which sits on the modal corner */
  padding-right: 3.5rem;
}

.twostep-video-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
  line-height: 1;
}

.twostep-video-title {
  display: inline-block;
  line-height: 1;
}

.twostep-video-body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

/* Mini help CTA at bottom of sidebar — balances visual weight */
.twostep-video-help {
  margin-top: auto;
  padding: 0.875rem 1rem;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  line-height: 1.35;
  transition: all 0.2s ease;
}

.twostep-video-help:hover {
  background: rgba(88, 101, 242, 0.15);
  border-color: rgba(88, 101, 242, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.twostep-video-help-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #5865F2;
  border-radius: 8px;
  color: #fff;
}

.twostep-video-help-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.twostep-video-help-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.twostep-video-help-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: #fff;
}

.twostep-video-help-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}

.twostep-video-help-arrow {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, color 0.2s ease;
}

.twostep-video-help:hover .twostep-video-help-arrow {
  color: #5865F2;
  transform: translateX(2px);
}

.twostep-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 28px rgba(239, 68, 68, 0.1);
}

.twostep-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.twostep-video-caption {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
  line-height: 1.45;
  letter-spacing: 0.3px;
}

/* Close button — sit on top-right corner of full modal, above both columns */
.two-step-content > .close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.two-step-content > .close-modal:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(255, 215, 0, 0.6);
  color: #fff;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .two-step-content {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .twostep-main::after {
    display: none;
  }
  .twostep-tutorial-video {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
  }
  .twostep-video-header {
    padding: 1.25rem 1.5rem 1rem;
    min-height: 0;
  }
  .twostep-video-body {
    padding: 1rem 1.25rem 1.5rem;
  }
}

/* Two-Step Header */
.two-step-header {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 170, 0, 0.08) 100%);
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.two-step-header h2 {
  font-family: var(--font-title, 'VT323', monospace);
  font-size: 1.4rem;
  color: #ef4444;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.two-step-header p {
  color: #b0bec5;
  font-size: 0.9rem;
  margin: 0;
}

/* Step Progress Indicator */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  gap: 0;
}

.step-indicator {
  display: flex;
  align-items: center;
}

.step-indicator .step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d3b52 0%, #1e2837 100%);
  border: 3px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title, 'VT323', monospace);
  font-size: 1.1rem;
  font-weight: bold;
  color: #6b7a8f;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.step-line {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0.5rem;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--crewmate-yellow), #2ecc71);
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animated dots on step-line when pending */
.step-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  animation: lineDotPulse 1.5s ease-in-out infinite;
}

@keyframes lineDotPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* Completed state */
.step-indicator.completed .step-number {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-color: #2ecc71;
  color: #fff;
  box-shadow:
    0 0 20px rgba(46, 204, 113, 0.4),
    0 0 40px rgba(46, 204, 113, 0.2);
  animation: completedPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes completedPop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Replace number with checkmark on completed */
.step-indicator.completed .step-number::before {
  content: '✓';
  font-size: 1.4rem;
  font-weight: bold;
  animation: checkFadeIn 0.3s ease-out;
}

@keyframes checkFadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.step-indicator.completed .step-line::after {
  width: 100%;
}

.step-indicator.completed .step-line::before {
  display: none;
  /* Hide pulsing dot when complete */
}

.step-indicator.active .step-number {
  border-color: var(--crewmate-yellow);
  color: var(--crewmate-yellow);
  animation: stepPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

@keyframes stepPulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
  }
}

/* Step Cards Container */
.step-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
}

/* Step Card */
.step-card {
  background: linear-gradient(145deg, #1e2837 0%, #151c27 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-default);
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Step Card States */
.step-card.current {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow:
    0 0 30px rgba(239, 68, 68, 0.2),
    inset 0 0 30px rgba(239, 68, 68, 0.05);
  animation: currentStepGlow 2s ease-in-out infinite;
}

@keyframes currentStepGlow {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(239, 68, 68, 0.15),
      inset 0 0 20px rgba(239, 68, 68, 0.03);
  }

  50% {
    box-shadow:
      0 0 40px rgba(239, 68, 68, 0.3),
      inset 0 0 30px rgba(239, 68, 68, 0.08);
  }
}

.step-card.current::before {
  opacity: 1;
}

.step-card.current .step-badge {
  animation: stepBadgePulse 1.5s ease-in-out infinite;
}

@keyframes stepBadgePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.step-card.completed {
  border-color: rgba(46, 204, 113, 0.6);
  background: linear-gradient(145deg, rgba(46, 204, 113, 0.15) 0%, #151c27 100%);
  box-shadow: 0 0 25px rgba(46, 204, 113, 0.15);
}

.step-card.completed .step-status {
  animation: checkmarkBounce 0.5s ease-out;
}

@keyframes checkmarkBounce {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.step-card.completed .step-badge {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(39, 174, 96, 0.2));
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.5);
}

.step-card.completed .step-name {
  color: #2ecc71;
}

/* LOCKED STATE - Enhanced Visual Feedback */
.step-card.locked {
  opacity: 0.7;
  filter: brightness(0.85);
  border-color: rgba(255, 255, 255, 0.08);
  transform: scale(0.99);
  transition: all 0.4s ease;
}

.step-card.locked:hover {
  opacity: 0.8;
  transform: scale(1);
}

.step-card.locked .step-btn {
  pointer-events: none;
}

/* Step Card Header */
.step-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.step-badge {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.15));
  color: #ef4444;
  font-family: var(--font-title, 'VT323', monospace);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 1px;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.step-status {
  font-size: 1.2rem;
}

/* Step Card Body */
.step-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-card-body .step-icon {
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 12px;
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-name {
  font-family: var(--font-title, 'VT323', monospace);
  font-size: 1rem;
  color: #e8f1f8;
  font-weight: 600;
}

.step-desc {
  font-size: 0.85rem;
  color: #8892a0;
}

/* Step Button */
.step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-default);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.step-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.step-btn:active:not(:disabled) {
  transform: translateY(0);
}

.step-btn:disabled {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #718096;
  cursor: not-allowed;
  box-shadow: none;
}

.step-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.step-btn:hover:not(:disabled) .step-arrow {
  transform: translateX(3px);
}

/* Locked Overlay - Enhanced Visual */
.step-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 18, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 14px;
  z-index: 5;
  border: 2px dashed rgba(255, 255, 255, 0.15);
}

.step-locked-overlay span {
  font-size: 2rem;
  animation: none;
  filter: drop-shadow(0 0 8px rgba(255, 100, 100, 0.2));
}

.step-locked-overlay .step-locked-brand {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 126, 21, 0.2), rgba(255, 126, 21, 0.06));
  border: 1px solid rgba(255, 126, 21, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 22px rgba(255, 126, 21, 0.16);
  filter: none;
}

.step-locked-brand .linkvertise-logo {
  width: 40px;
  height: 40px;
}

.step-locked-overlay p {
  color: #a0aec0;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  padding: 0.5rem 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  animation: none;
}

/* Chain link visual between steps */
.step-locked-overlay::before {
  display: none;
}

/* Two-Step Hint */
.two-step-hint {
  text-align: center;
  color: #8892a0;
  font-size: 0.85rem;
  padding: 0 1.5rem 1.5rem;
  margin: 0;
}

/* Close Modal Button */
.two-step-content .close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #8892a0;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.two-step-content .close-modal:hover {
  color: var(--crewmate-yellow);
}

/* Responsive */
@media (max-width: 550px) {
  .two-step-content {
    margin: 0 0.5rem;
    max-width: 100%;
  }

  .step-line {
    width: 50px;
  }

  .step-cards {
    padding: 0 1rem 1rem;
  }

  .step-card {
    padding: 1rem;
  }
}

/* ============================================================
   PHASE 2A — PROFILE MODAL: CREWMATE ID CARD REDESIGN
   ============================================================ */

/* Turnstile wrapper */
.twostep-turnstile-wrapper {
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin: 0 1.5rem 1rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  overflow: hidden;
  max-width: 100%;
}

/* Premium banner in two-step modal */
.twostep-premium-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}

.twostep-prem-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.twostep-prem-icon {
  font-size: 1.5rem;
}

.twostep-prem-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.twostep-prem-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.twostep-prem-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.twostep-prem-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.twostep-prem-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Focus-visible accessibility */
.step-btn:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.close-modal:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.twostep-prem-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Performance hints */
.step-indicator.active .step-number {
  will-change: transform, box-shadow;
}

/* ID Card frame around the entire modal */
.profile-modal {
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: 18px;
  box-shadow:
    0 0 40px rgba(239, 68, 68, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* ID Card header — visor section */
.modal-header {
  background:
    linear-gradient(160deg, rgba(239, 68, 68, 0.15) 0%, rgba(79, 70, 229, 0.1) 50%, rgba(6, 182, 212, 0.08) 100%),
    rgba(10, 14, 22, 0.95);
  border-bottom: 2px solid rgba(239, 68, 68, 0.3);
  position: relative;
}

/* Subtle scan line on header */
.modal-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(239, 68, 68, 0.03) 2px,
      rgba(239, 68, 68, 0.03) 4px);
  pointer-events: none;
}

/* Avatar visor glow */
.modal-avatar {
  border: 3px solid var(--au-cyan);
  box-shadow:
    0 0 20px rgba(56, 254, 220, 0.3),
    0 0 40px rgba(56, 254, 220, 0.1);
  transition: box-shadow 0.4s ease;
}

.modal-avatar:hover {
  box-shadow:
    0 0 25px rgba(56, 254, 220, 0.5),
    0 0 50px rgba(56, 254, 220, 0.2);
}

/* Crewmate ID label */
.modal-user-info h3 {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: #eaf3ff;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* Stats cards — task completion style */
.stat-card {
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  transition: all 0.3s var(--ease-smooth);
}

.stat-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
  transform: translateY(-3px);
}

.stat-icon {
  background: rgba(239, 68, 68, 0.1);
  border-radius: 10px;
  color: var(--au-cyan);
}

.stat-value {
  color: #eaf3ff;
  font-family: var(--font-display);
}

/* Actions section — Among Us button style */
.modal-actions {
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.modal-action-btn {
  border-radius: 10px;
  transition: all 0.25s var(--ease-smooth);
}

/* ============================================================
   PHASE 2B — KEY DISPLAY: HOLOGRAPHIC ID BADGE
   ============================================================ */

.key-display-area {
  position: relative;
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(10, 18, 28, 0.7) 100%);
  overflow: hidden;
}

/* Holographic shimmer overlay */
.key-display-area::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(115deg,
      transparent 30%,
      rgba(239, 68, 68, 0.05) 45%,
      rgba(79, 70, 229, 0.08) 50%,
      rgba(239, 68, 68, 0.05) 55%,
      transparent 70%);
  animation: holoShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes holoShimmer {
  0% {
    transform: translateX(-60%) rotate(10deg);
  }

  100% {
    transform: translateX(60%) rotate(10deg);
  }
}

/* Key value enhanced glow */
.key-container.visible .key-value {
  text-shadow:
    0 0 8px var(--key-id-color),
    0 0 20px rgba(239, 68, 68, 0.3),
    0 0 40px rgba(239, 68, 68, 0.1);
}

/* Key value label — badge style */
.key-value-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  position: relative;
  z-index: 1;
}

/* Copy button enhanced */
.copy-button {
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   PHASE 2C — PREMIUM SECTION: ENHANCED GLASS EFFECTS
   ============================================================ */

/* Premium header enhanced */
.prem-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.prem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.3) 0%, rgba(185, 28, 28, 0.2) 100%);
  color: #fca5a5;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(220, 38, 38, 0.4);
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.2);
}

.prem-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #eaf3ff;
  margin: 0 0 0.4rem;
  letter-spacing: 0.5px;
}

.prem-subtitle {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
}

.prem-check {
  color: var(--success-color);
  font-weight: 700;
  flex-shrink: 0;
}

.prem-col-arsenal .prem-check {
  color: #ef4444;
  font-size: 1rem;
}

.prem-col-arsenal-item .prem-check {
  color: #ef4444;
}

/* Premium feature card highlight in features grid */
.cc-feature-card--premium {
  position: relative;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(15, 18, 25, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.18), inset 0 0 24px rgba(239, 68, 68, 0.06);
}

.cc-feature-card--premium .cc-feature-icon {
  color: #ef4444 !important;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.5));
}

.cc-feature-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  z-index: 2;
}

/* Trust footer */
.prem-trust-footer {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 520px) {
}

/* ============================================================
   PHASE 2D — PREMIUM USER PANEL STYLES
   ============================================================ */

.premium-user-panel {
  margin: 1.5rem auto;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 215, 0, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.premium-panel-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.premium-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--crewmate-yellow) 0%, #ff8c00 100%);
  color: #1a1a1a;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.premium-panel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #eaf3ff;
  margin: 0;
}

.premium-panel-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.premium-key-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.info-value {
  font-family: var(--font-monospace);
  font-size: 0.82rem;
  color: #eaf3ff;
  letter-spacing: 0.5px;
}

.premium-actions {
  display: flex;
  gap: 0.75rem;
}

.premium-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.05);
  color: var(--crewmate-yellow);
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-default);
  font-family: var(--font-main);
}

.premium-action-btn:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
}

.premium-action-btn .btn-icon {
  font-size: 1.2rem;
}

.premium-action-btn .btn-text {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.premium-action-btn .btn-subtitle {
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.premium-panel-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  opacity: 0.7;
  margin: 0;
}

/* ============================================================
   PHASE 2E — ENHANCED BUTTON MICRO-INTERACTIONS
   ============================================================ */

/* Generate button task-start feel */
.generate-button,
#btnOpenMethodMenu {
  position: relative;
  overflow: hidden;
}

.generate-button .button-icon,
#btnOpenMethodMenu .button-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.generate-button:hover:not([disabled]) .button-icon,
#btnOpenMethodMenu:hover:not([disabled]) .button-icon {
  transform: rotate(-8deg) scale(1.15);
}

/* Button text wrapper for stacked layout */
.button-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.button-subtitle {
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* Action button base enhancements */
.action-button {
  text-align: left;
}

/* View keys button satellite animation */
#viewKeysBtn:hover:not([disabled]) .button-text::before {
  animation: iconBounce 0.5s ease;
}

/* =========================================================================
   FIX: Emojis nativos e correção de cliques no Desafio Anti-Bypass
   ========================================================================= */
.challenge-visual,
.challenge-emoji-option,
.challenge-header h2::before {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Android Emoji", sans-serif !important;
}

.challenge-option::before,
.challenge-option::after {
  pointer-events: none !important;
}

.challenge-option {
  touch-action: manipulation !important;
  z-index: 1;
}

/* =========================================================================
   2026 REDESIGN: Tab Navigation — OLD RULES SUPERSEDED
   New tab nav styles are in the "PREMIUM LANDING PAGE REDESIGN" block
   at the bottom of this file.
   ========================================================================= */

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

/* =========================================================================
   2026 REDESIGN: Hero Section — OLD RULES SUPERSEDED
   New hero/button/section styles are in the "PREMIUM LANDING PAGE REDESIGN"
   block at the bottom of this file.
   ========================================================================= */

/* =========================================================================
   2026 REDESIGN: Terms Page (v2 — typographic upgrade + a11y + TOC layout)
   ========================================================================= */
.cc-terms-section {
  max-width: 720px;
  margin: 8px auto 28px;
  padding: 0 4px;
}

.cc-terms-content {
  background: rgba(15, 18, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px;
}

.cc-terms-block {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 110px;
}

.cc-terms-block:last-of-type {
  border-bottom: none;
  margin-bottom: 12px;
  padding-bottom: 0;
}

.cc-terms-block h3 {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  color: #e2f7fb;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.cc-terms-block h3::before {
  content: '';
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, #22d3ee 0%, #0ea5b8 100%);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
  border-radius: 2px;
  flex-shrink: 0;
}

.cc-terms-block p {
  color: #b6c0cf;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.cc-terms-block ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.cc-terms-block ul li {
  color: #b6c0cf;
  font-size: 15px;
  line-height: 1.7;
  padding: 4px 0 4px 18px;
  position: relative;
}

.cc-terms-block ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color, #6366f1);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
}

.cc-terms-block ul li strong,
.cc-terms-block p strong {
  color: #f1f5f9;
  font-weight: 700;
}

.cc-terms-block a {
  color: #67e8f9;
  text-decoration: none;
  border-bottom: 1px dashed rgba(103, 232, 249, 0.4);
  padding: 1px 2px;
  border-radius: 3px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cc-terms-block a:hover {
  color: #a5f3fc;
  border-bottom-color: rgba(165, 243, 252, 0.8);
  background: rgba(34, 211, 238, 0.08);
}

.cc-terms-block a:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
  background: rgba(34, 211, 238, 0.12);
  border-bottom-color: transparent;
}

.cc-terms-updated {
  text-align: center;
  color: #8a93a4;
  font-size: 12px;
  margin-top: 16px;
  font-style: italic;
}

/* =========================================================================
   2026 REDESIGN: Download Tab
   ========================================================================= */
.cc-download-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  text-align: left;
}

.cc-download-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(18, 20, 27, 0.88), rgba(7, 9, 14, 0.82)),
    radial-gradient(circle at 20% 0%, rgba(239, 68, 68, 0.12), transparent 42%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cc-download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%, rgba(239, 68, 68, 0.06));
  opacity: 0.55;
}

.cc-download-card > * {
  position: relative;
  z-index: 1;
}

.cc-download-product {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cc-download-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
}

.cc-download-hero::after {
  content: '';
  position: absolute;
  top: -56px;
  left: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: -1;
}

.cc-download-logo {
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.24);
  flex: 0 0 auto;
}

.cc-download-heading {
  min-width: 0;
}

.cc-download-title {
  font-family: var(--font-title);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.cc-download-version {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
}

.cc-version-tag {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.26), rgba(245, 158, 11, 0.16));
  color: #ff5555;
  padding: 3px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.cc-version-sep {
  opacity: 0.3;
}

.cc-download-action {
  margin-bottom: 18px;
}

.cc-download-main-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 16px;
  width: 100%;
  min-width: 0;
  white-space: normal;
  justify-content: center;
}

.cc-download-main-btn span {
  min-width: 0;
}

.cc-download-hint {
  color: var(--text-color-dark, #5a6270);
  font-size: 12px;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.cc-package-grid {
  display: grid;
  gap: 10px;
}

.cc-package-chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
}

.cc-package-chip-muted {
  background: rgba(255, 255, 255, 0.02);
}

.cc-package-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #ff5555;
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 800;
}

.cc-package-chip strong {
  display: block;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.2;
}

.cc-package-chip p {
  color: var(--text-color-dark, #8a8fa0);
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.cc-download-steps {
  padding: 26px;
  text-align: left;
}

.cc-download-steps h3 {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: #ff5555;
  margin: 0 0 20px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-install-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all var(--duration-slow) var(--ease-default);
}

.cc-install-step:hover {
  background: rgba(239, 68, 68, 0.045);
  border-color: rgba(239, 68, 68, 0.16);
}

.cc-install-step:last-child {
  margin-bottom: 0;
}

.cc-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(245, 158, 11, 0.1));
  color: #ff5555;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.cc-install-step strong {
  display: block;
  color: var(--text-primary, #f1f5f9);
  font-size: 14px;
  margin-bottom: 3px;
}

.cc-install-step p {
  color: var(--text-secondary, #94a3b8);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cc-bepinex-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.cc-bepinex-check h3 {
  color: #ffc247;
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cc-bepinex-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.cc-bepinex-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 99px;
  background: #2ecc71;
  box-shadow: 0 0 18px rgba(46, 204, 113, 0.45);
}

.cc-bepinex-dot-alt {
  background: #ff5555;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}

.cc-bepinex-row strong {
  display: block;
  color: #fff;
  font-size: 0.86rem;
  margin-bottom: 2px;
}

.cc-bepinex-row p,
.cc-install-note {
  color: var(--text-color-dark, #8a8fa0);
  font-size: 0.78rem;
  line-height: 1.42;
  margin: 0;
  overflow-wrap: anywhere;
}

.cc-install-note {
  grid-column: 1 / -1;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 12px;
}

@media (max-width: 900px) {
  .cc-download-section {
    grid-template-columns: 1fr;
    max-width: 640px;
    width: 100%;
  }

  .cc-bepinex-check {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cc-download-product,
  .cc-download-steps,
  .cc-bepinex-check {
    padding: 18px;
  }

  .cc-download-hero {
    align-items: flex-start;
  }

  .cc-download-main-btn {
    padding: 15px 18px;
    font-size: 14px;
  }

  .cc-package-chip,
  .cc-install-step {
    gap: 12px;
    padding: 12px;
  }

  .cc-package-chip {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

/* (old duplicate .bottom-buttons rule removed — single source is at L1518) */

/* Fix: Tab buttons active state reset */
.cc-tab-btn:active:not([disabled]) {
  transform: scale(0.97) !important;
  box-shadow: none !important;
}

.cc-tab-btn:hover {
  box-shadow: none;
}

/* Fix: Hero CTA buttons active state */
.cc-btn-primary:active:not([disabled]) {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
}

.cc-btn-secondary:active:not([disabled]) {
  transform: translateY(0) scale(0.98) !important;
  box-shadow: none !important;
}

/* Fix: Download tab button link style */
.cc-download-main-btn {
  text-transform: none;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
  min-height: auto;
}

/* Fix: Terms section link fix */
.cc-terms-block a:hover {
  color: var(--accent-color, #22d3ee);
}

/* =========================================================================
   CUSTOMER PORTAL — Premium Tab (subtle "already a subscriber?" link)
   ========================================================================= */
.cc-portal-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px auto 0;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.cc-portal-link-prefix {
  color: rgba(255, 255, 255, 0.45);
}

.cc-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  margin: -4px -4px -4px 0;
  border-radius: 6px;
  color: #22d3ee;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}

.cc-portal-link:hover {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.08);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-portal-link:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
  background: rgba(34, 211, 238, 0.1);
}

.cc-portal-link:visited {
  color: #06b6d4;
}

.cc-portal-link svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.cc-portal-link:hover svg {
  opacity: 1;
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .cc-portal-link,
  .cc-portal-link svg {
    transition: none;
  }
  .cc-portal-link:hover svg {
    transform: none;
  }
}

/* Portal link inside Premium User Panel (kept — used in #premiumUserPanel) */
.cc-panel-portal-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(34, 211, 238, 0.04) 100%);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 10px;
  color: #22d3ee;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.02em;
}

.cc-panel-portal-link:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0.06) 100%);
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.15);
  color: #67e8f9;
}

.cc-panel-portal-link:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

.cc-panel-portal-link:active {
  transform: translateY(0);
}

.cc-panel-portal-link svg {
  flex-shrink: 0;
}

/* ============================================================
   2026 PREMIUM LANDING PAGE REDESIGN
   Full-width scrollable architecture
   ============================================================ */

/* === MAIN LAYOUT === */
.cc-main {
  position: relative;
  /* z-index removed: was creating a stacking context that trapped
     fixed-position overlays (dl-overlay z-index:10000) below the
     nav bar (z-index:99). Content still renders above space-nebula
     (z-index:-1) because auto > -1. */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  flex: 1;
}

/* Content wrapper for contained tabs (Get Key, Download, Premium, Terms) */
.cc-content-wrap {
  background:
    linear-gradient(180deg, rgba(28, 32, 42, 0.10) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(180deg, rgba(15, 18, 25, 0.70) 0%, rgba(13, 16, 22, 0.76) 55%, rgba(12, 14, 20, 0.80) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 840px;
  margin: 3rem auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

/* Tab content visibility */
.cc-tab-content {
  display: none;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
  contain: layout style;
}
.cc-tab-content.cc-tab-visible {
  display: block;
  content-visibility: visible;
  animation: ccTabFadeIn 0.25s ease;
}

/* === SECTION SYSTEM === */
.cc-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Container for section inner content */
.cc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cc-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cc-section-kicker {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--elite-cyan, #ef4444);
  margin-bottom: 0.75rem;
  padding: 4px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 20px;
}

.cc-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.cc-section-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.75rem 0 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cc-text-accent {
  background: linear-gradient(135deg, #ef4444, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === HERO SECTION — FULL WIDTH === */
.cc-hero {
  padding: 4.75rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.cc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(239, 68, 68, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(124, 58, 237, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.cc-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cc-hero-content {
  text-align: left;
}

.cc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.3px;
  margin-bottom: 1.5rem;
}

.cc-hero-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.cc-hero-accent {
  background: linear-gradient(135deg, #ef4444 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.25));
}

.cc-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 480px;
}

.cc-hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cc-btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-default);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
}

.cc-btn-primary {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25);
}

.cc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.cc-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cc-btn-secondary:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
  color: #fff;
  transform: translateY(-2px);
}

/* === HERO SCREENSHOT CAROUSEL (3D PERSPECTIVE) === */
.cc-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  perspective: 1200px;
}

.cc-hero-carousel {
  width: 100%;
  max-width: 640px;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow:
    -20px 20px 60px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(239, 68, 68, 0.15),
    inset 0 0 20px rgba(239, 68, 68, 0.05);
  background: #080808;
  transform: rotateY(-8deg) rotateX(2deg) translateZ(0);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.cc-hero-carousel:hover {
  transform: rotateY(-5deg) rotateX(1deg) translateZ(16px);
  box-shadow:
    -30px 30px 80px rgba(0, 0, 0, 0.9),
    0 0 70px rgba(239, 68, 68, 0.25),
    inset 0 0 20px rgba(239, 68, 68, 0.1);
}

.cc-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 11px;
  overflow: hidden;
  contain: layout style paint;
  background: #050609;
}

.cc-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.03);
  z-index: 0;
  pointer-events: none;
}

.cc-carousel-slide.active {
  opacity: 1;
  transform: none;
  z-index: 1;
  pointer-events: auto;
}

.cc-carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
}

.cc-carousel-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14%;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.28) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Progress bar — auto-play indicator */
.cc-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff2140, #ff4466);
  z-index: 6;
  transition: none;
  box-shadow: 0 0 8px rgba(255, 33, 64, 0.4);
}

/* Arrows hidden — navigation via swipe/keyboard/autoplay */
.cc-carousel-arrow {
  display: none;
}

/* Carousel dots — hidden, navigation via arrows/swipe/keyboard only */
.cc-carousel-dots {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .cc-carousel-slide { transition: none; }
  .cc-carousel-track { transition: none; }
  .cc-carousel-dot { transition: none; }
  .cc-carousel-progress { display: none; }
}

/* === TRUST STRIP === */
.cc-trust-strip {
  padding: 1.25rem 2rem;
  background: rgba(10, 14, 22, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-trust-badges {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cc-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.cc-trust-item svg {
  color: rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
}

.cc-trust-item strong {
  color: #ef4444;
}

.cc-trust-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.08);
}

/* === ANNIVERSARY CAMPAIGN STRIP === */
.cc-anniversary-strip {
  padding: 1.4rem 2rem 0;
}

.cc-anniversary-inner {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  padding: 2.2rem;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(16, 185, 129, 0.08) 46%, rgba(239, 68, 68, 0.06)),
    rgba(10, 14, 22, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.cc-anniversary-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 9, 13, 0.96) 0%, rgba(3, 9, 13, 0.88) 34%, rgba(3, 9, 13, 0.36) 62%, rgba(3, 9, 13, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68) 0%, transparent 42%);
  pointer-events: none;
}

.cc-anniversary-copy {
  width: min(500px, 52%);
  min-width: 0;
  position: relative;
  z-index: 2;
}

.cc-anniversary-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.35rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #7cfac7;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-anniversary-copy strong {
  display: block;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.04;
  max-width: 12.5em;
}

.cc-anniversary-copy p {
  max-width: 440px;
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.5;
}

.cc-anniversary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
  max-width: 420px;
}

.cc-anniversary-metrics span {
  min-width: 0;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(5, 8, 14, 0.66);
  backdrop-filter: blur(10px);
}

.cc-anniversary-metrics b,
.cc-anniversary-metrics small {
  display: block;
  white-space: nowrap;
}

.cc-anniversary-metrics b {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
}

.cc-anniversary-metrics small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  line-height: 1.15;
}

.cc-anniversary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(88, 101, 242, 0.42);
  border-radius: 12px;
  background: rgba(88, 101, 242, 0.18);
  color: #f5f7ff;
  font-family: var(--font-body);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--duration-normal) var(--ease-default), border-color var(--duration-normal) var(--ease-default), background var(--duration-normal) var(--ease-default);
}

.cc-anniversary-cta:hover,
.cc-anniversary-cta:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(88, 101, 242, 0.78);
  background: rgba(88, 101, 242, 0.28);
}

.cc-anniversary-media {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: inherit;
  background: rgba(5, 8, 14, 0.62);
  box-shadow: none;
}

.cc-anniversary-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* === FEATURES SECTION === */
.cc-features-section {
  padding: 5rem 0;
}

.cc-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cc-feature-card {
  background: rgba(15, 18, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cc-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cc-feature-card:hover {
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-6px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(239, 68, 68, 0.05);
  background: rgba(15, 18, 25, 0.8);
}

.cc-feature-card:hover::before {
  opacity: 1;
}

.cc-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  margin-bottom: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cc-feature-card:hover .cc-feature-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
  border-color: transparent;
  transform: scale(1.1) rotate(5deg);
}

.cc-feature-card h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cc-feature-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin: 0;
}

/* === HOW IT WORKS === */
.cc-how-section {
  padding: 6rem 0;
  background: radial-gradient(ellipse at top, rgba(239, 68, 68, 0.03) 0%, transparent 60%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cc-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem auto 1.25rem;
}

.cc-quick-card {
  position: relative;
  min-height: 230px;
  padding: 1.25rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(10, 14, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.075);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.cc-quick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(239, 68, 68, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.cc-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.26);
  background-color: rgba(15, 18, 25, 0.86);
}

.cc-quick-card:hover::before {
  opacity: 1;
}

.cc-quick-card--accent {
  border-color: rgba(239, 68, 68, 0.24);
  background:
    linear-gradient(180deg, rgba(239, 68, 68, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(10, 14, 22, 0.82);
}

.cc-quick-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #ef4444;
  letter-spacing: 0.12em;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.cc-quick-card h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.55rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.cc-quick-card p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  position: relative;
  z-index: 1;
}

.cc-quick-link {
  margin-top: auto;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  background: rgba(239, 68, 68, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.cc-quick-link:hover,
.cc-quick-link:focus-visible {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.48);
  transform: translateY(-1px);
  color: #fff;
}

/* === DISCORD CTA SECTION === */
.cc-discord-section {
  padding: 4rem 0;
}

.cc-discord-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.08), rgba(239, 68, 68, 0.04));
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 20px;
}

.cc-discord-cta-text h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.cc-discord-cta-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.cc-discord-cta-text strong {
  color: #5865F2;
}

.cc-btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: #5865F2;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: all var(--duration-slow) var(--ease-default);
  white-space: nowrap;
  flex-shrink: 0;
}

.cc-btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.35);
}

/* === RESPONSIVE — LANDING PAGE === */
@media (max-width: 900px) {
  .cc-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .cc-hero-content {
    text-align: center;
  }

  .cc-hero-title {
    font-size: 2.5rem;
  }

  .cc-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .cc-hero-cta {
    justify-content: center;
  }

  .cc-hero-visual {
    perspective: none;
  }

  .cc-hero-carousel {
    max-width: 100%;
    transform: none;
  }

  .cc-hero-carousel:hover {
    transform: none;
  }

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

  .cc-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cc-hero {
    padding: 2rem 1rem 3rem;
  }

  .cc-hero-title {
    font-size: 2.05rem;
  }

  .cc-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-btn-lg {
    justify-content: center;
  }

  .cc-section-inner {
    padding: 0 1rem;
  }

  .cc-section-title {
    font-size: 1.6rem;
  }

  .cc-features-grid {
    grid-template-columns: 1fr;
  }

  .cc-quick-grid {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  .cc-quick-card {
    min-height: auto;
  }

  .cc-features-section,
  .cc-how-section,
  .cc-faq-section {
    padding: 3rem 0;
  }

  .cc-discord-cta {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .cc-trust-divider {
    display: none;
  }

  .cc-content-wrap {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 16px;
  }
}

/* === TAB NAV REDESIGN === */
.cc-tab-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-overlay);
  background: linear-gradient(
    180deg,
    rgba(40, 10, 10, 0.82) 0%,
    rgba(15, 5, 5, 0.88) 50%,
    rgba(5, 5, 5, 0.90) 100%
  );
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 12px 0;
  isolation: isolate;
  transform: translateZ(0);
}

.cc-tab-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.cc-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
}

.cc-tab-btn:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(239, 68, 68, 0.08);
  border-radius: 8px;
}

.cc-tab-btn:active {
  transform: scale(0.96);
}

.cc-tab-btn.cc-tab-active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25), inset 0 0 8px rgba(239, 68, 68, 0.08);
}

.cc-tab-btn.cc-tab-active::after {
  content: '';
  position: absolute;
  bottom: -0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 -2px 10px rgba(239, 68, 68, 0.5);
}

.cc-tab-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: all var(--duration-slow) var(--ease-default);
}

.cc-tab-btn.cc-tab-active svg {
  opacity: 1;
  color: #ef4444;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
}

/* === HEADER REDESIGN === */
.cc-header-modern {
  padding: 0;
}

.cc-logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  display: none; /* Hidden; logo now in nav or hero */
}

.cc-logo-accent {
  color: #ef4444;
}

/* === FOOTER REDESIGN (3-Column Premium) === */
.site-footer {
  max-width: 100%;
  border-radius: 0;
  background: rgba(8, 10, 18, 0.95);
  border-top: 1px solid rgba(239, 68, 68, 0.1);
  padding: 3rem 2rem 1.5rem;
}

/* === SEO ARTICLE SECTION (GEO Optimized) === */
.cc-seo-article {
  padding: 0 1.5rem;
}

.cc-seo-article-content {
  max-width: 800px;
  margin: 0 auto;
}

.cc-seo-article-content p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.cc-seo-article-content strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.cc-seo-article-content h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin: 2rem 0 0.5rem;
}

/* ============================================================
   TAB-LEVEL MINI-HERO HEADERS
   Gives each non-Home tab a visual opening with context
   ============================================================ */
.cc-tab-hero {
  text-align: center;
  padding: 0 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.cc-tab-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  border-radius: 2px;
}

.cc-tab-kicker {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 0.5rem;
}

.cc-tab-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.cc-tab-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  line-height: 1.5;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* === PREMIUM TAB: WIDER CONTENT WRAP === */
[data-tab-content="premium"] .cc-content-wrap {
  max-width: 960px;
}

/* === BUTTON STYLE CLEANUP: Remove old 3D push-button shadows === */
button {
  box-shadow: none;
}

#btnOpenMethodMenu,
.generate-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  --shadow-color: transparent;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
}

#btnOpenMethodMenu:hover:not([disabled]),
.generate-button:hover:not([disabled]) {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

#btnOpenMethodMenu:active:not([disabled]),
.generate-button:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

#viewKeysBtn {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  --shadow-color: transparent;
  box-shadow: none;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
}

#viewKeysBtn:hover:not([disabled]) {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

/* === VISUAL CONSISTENCY: Key display area refined border === */
.key-display-area {
  border-width: 1px;
}

/* === VISUAL CONSISTENCY: Keys list separator refined === */
.keys-list-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* === VISUAL CONSISTENCY: cc-content-wrap gradient top accent === */
.cc-content-wrap {
  position: relative;
}

.cc-content-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.4), rgba(124, 58, 237, 0.2), transparent);
  border-radius: 24px 24px 0 0;
  z-index: 1;
}

/* === MOBILE: cc-content-wrap reduced padding === */
@media (max-width: 640px) {
  .cc-content-wrap {
    padding: 1.25rem;
  }

  .cc-tab-title {
    font-size: 1.3rem;
  }

  .cc-tab-desc {
    font-size: 0.8rem;
  }

  [data-tab-content="premium"] .cc-content-wrap {
    max-width: 100%;
  }
}

/* Added via Megaprompt */
.is-enabled { opacity: 1; pointer-events: auto; cursor: pointer; }
.is-disabled { opacity: 0.5; pointer-events: none; }
.challenge-options-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 15px; }
.challenge-btn-base { position: relative; z-index: 2; min-width: 60px; min-height: 50px; font-size: 1.2em; border-radius: 10px; cursor: pointer; transition: all 0.2s; border: 2px solid #444; background: #2a2a2a; padding: 12px 20px; color: #e0e0e0; }
.challenge-btn-base:hover { transform: scale(1.05); border-color: #00ff88; }
.challenge-btn-color { width: 60px; height: 60px; border-radius: 50% !important; padding: 0; }

@media (max-width: 640px) {
  html,
  body,
  .cc-main,
  .cc-tab-content,
  .cc-hero,
  .cc-hero-inner,
  .cc-hero-content {
    max-width: 100%;
    overflow-x: hidden;
  }

  .cc-main {
    min-width: 0;
  }

  .cc-hero {
    width: 100%;
    padding: 2rem 1rem 2.5rem;
  }

  .cc-hero-inner {
    width: 100%;
    min-width: 0;
    gap: 1.5rem;
  }

  .cc-hero-content {
    min-width: 0;
  }

  .cc-hero-badge,
  .cc-hero-platform-notice,
  .cc-hero-stats {
    max-width: 100%;
  }

  .cc-hero-badge,
  .cc-hero-platform-notice {
    white-space: normal;
    justify-content: center;
  }

  .cc-hero-title {
    max-width: 100%;
    overflow-wrap: break-word;
    letter-spacing: 0;
    font-size: clamp(1.75rem, 9vw, 2.2rem);
  }

  .cc-hero-subtitle {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .cc-hero-cta {
    width: 100%;
  }

  .cc-hero-cta .cc-btn-lg {
    width: 100%;
    max-width: 100%;
  }

  .cc-tab-nav {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 6px 0;
  }

  .cc-tab-nav-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    justify-content: stretch;
    gap: 3px;
    padding: 6px 4px;
  }

  .cc-tab-btn {
    flex: initial;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0.4rem 0.1rem;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.62);
    border-radius: 8px;
    font-size: 0.58rem;
    gap: 2px;
    letter-spacing: 0;
  }

  .cc-tab-btn span {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0;
  }

  .cc-tab-btn span::after {
    content: attr(data-mobile-label);
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
  }

  .cc-tab-btn.cc-tab-active {
    width: 100%;
    padding: 0.4rem 0.1rem;
  }

  .cc-tab-btn svg {
    width: 15px;
    height: 15px;
    opacity: 0.86;
  }

  .cc-tab-btn.cc-tab-active::after {
    width: 58%;
    bottom: -1px;
  }
}

.skeleton-carousel {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1a1a2e 25%, #2a2a4e 50%, #1a1a2e 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 8px;
}

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

@media (max-width: 400px) {
    .cc-hero-title { font-size: 1.4rem; line-height: 1.2; }
    .cc-hero-subtitle { font-size: 0.85rem; }
}

@media (max-width: 1100px) {
  .cc-anniversary-inner {
    min-height: 390px;
  }

  .cc-anniversary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-anniversary-cta {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .cc-anniversary-strip {
    padding: 1rem 1rem 0;
  }

  .cc-anniversary-inner {
    display: grid;
    min-height: 0;
    padding: 0;
    border-radius: 14px;
  }

  .cc-anniversary-inner::before {
    display: none;
  }

  .cc-anniversary-copy {
    width: auto;
    padding: 1rem;
  }

  .cc-anniversary-copy strong {
    max-width: none;
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .cc-anniversary-copy p {
    max-width: none;
    font-size: 0.94rem;
  }

  .cc-anniversary-media {
    position: relative;
    inset: auto;
    order: -1;
    height: auto;
    border-radius: 14px 14px 0 0;
  }

  .cc-anniversary-media img {
    height: auto;
  }
}

@media (max-width: 520px) {
  .cc-anniversary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-anniversary-metrics b,
  .cc-anniversary-metrics small {
    white-space: normal;
  }
}

.cc-hero-stats {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 24px;
}

.cc-hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cc-hero-platform-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cc-hero-platform-notice svg {
  flex-shrink: 0;
  color: var(--text-tertiary);
}

/* === FAQ ACCORDION === */
.cc-accordion-item {
  border-bottom: 1px solid var(--glass-border);
}

.cc-accordion-header {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

.cc-accordion-icon {
  font-size: 24px;
  transition: transform 200ms;
}

.cc-accordion-item.open .cc-accordion-icon {
  transform: rotate(45deg);
}

.cc-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.cc-accordion-item.open .cc-accordion-content {
  max-height: 300px;
}

.cc-accordion-content p {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cc-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 18, 25, 0) 0%, #050811 30%, #030509 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 0 24px;
  margin-top: 80px;
  isolation: isolate;
}

.cc-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.4), rgba(124, 58, 237, 0.2), rgba(34, 211, 238, 0.25), transparent);
  z-index: 1;
}

.cc-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
}

.cc-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

a.cc-footer-logo,
a.cc-footer-logo:link,
a.cc-footer-logo:visited {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: linear-gradient(135deg, #ef4444 0%, #f87171 35%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transition: filter 200ms ease;
}

a.cc-footer-logo:hover,
a.cc-footer-logo:focus-visible {
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(239, 68, 68, 0.4));
  outline: none;
}

.cc-footer-tagline {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  max-width: 32ch;
}

.trustpilot-badge--footer {
  margin-top: 4px;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 10px;
  background: rgba(0, 182, 122, 0.06);
  border: 1px solid rgba(0, 182, 122, 0.22);
}

.trustpilot-badge--footer .trustpilot-badge-title {
  font-size: 12px;
}

.trustpilot-badge--footer .trustpilot-badge-cta {
  font-size: 10.5px;
}

.cc-footer-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cc-footer-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #22d3ee;
  margin: 0 0 18px;
  padding: 0;
}

.cc-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-footer-list-divider {
  height: 1px;
  margin: 10px 4px;
  background: rgba(255, 255, 255, 0.06);
  list-style: none;
}

.cc-footer-list a,
.cc-footer-list a:link,
.cc-footer-list a:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.cc-footer-link-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: color 180ms ease, transform 180ms ease;
}

.cc-footer-link-text {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-footer-link-chev {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.cc-footer-list a:hover,
.cc-footer-list a:focus-visible {
  color: #fff;
  background: rgba(239, 68, 68, 0.06);
  outline: none;
}

.cc-footer-list a:focus-visible {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55);
}

.cc-footer-list a:hover .cc-footer-link-icon,
.cc-footer-list a:focus-visible .cc-footer-link-icon {
  color: #ef4444;
  transform: translateX(1px);
}

.cc-footer-list a:hover .cc-footer-link-chev,
.cc-footer-list a:focus-visible .cc-footer-link-chev {
  color: #22d3ee;
  opacity: 1;
  transform: translateX(0);
}

.cc-footer-link--discord:hover .cc-footer-link-icon { color: #5865F2; }
.cc-footer-link--curseforge:hover .cc-footer-link-icon { color: #F16436; }
.cc-footer-link--trustpilot:hover .cc-footer-link-icon { color: #00B67A; }

@media (prefers-reduced-motion: reduce) {
  .cc-footer-list a,
  .cc-footer-link-icon,
  .cc-footer-link-chev,
  a.cc-footer-logo {
    transition: none;
  }
  .cc-footer-list a:hover .cc-footer-link-icon,
  .cc-footer-list a:focus-visible .cc-footer-link-icon {
    transform: none;
  }
}

a.trustpilot-badge,
a.trustpilot-badge:link,
a.trustpilot-badge:visited,
a.trustpilot-badge:active {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(0, 182, 122, 0.08);
  border: 1px solid rgba(0, 182, 122, 0.25);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 200ms, border-color 200ms, transform 200ms;
}

a.trustpilot-badge:hover {
  background: rgba(0, 182, 122, 0.15);
  border-color: rgba(0, 182, 122, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

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

.trustpilot-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trustpilot-badge-title {
  font-size: 15px;
  font-weight: 700;
  color: #00B67A;
  letter-spacing: 0.3px;
}

.trustpilot-badge-cta {
  font-size: 12px;
  color: var(--text-secondary);
}

.trustpilot-arrow {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: color 200ms, transform 200ms;
}

.trustpilot-badge:hover .trustpilot-arrow {
  color: #00B67A;
  transform: translateX(3px);
}

.trustpilot-badge--hero {
  align-self: flex-start;
  padding: 8px 16px;
  font-size: 13px;
  margin-top: 4px;
}

.trustpilot-badge--hero .trustpilot-badge-title {
  font-size: 13px;
}

.trustpilot-badge--hero .trustpilot-badge-cta {
  font-size: 11px;
}

@media (max-width: 768px) {
  .trustpilot-badge--hero {
    align-self: center;
  }
}

.cc-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-footer-bottom p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.cc-footer-trademark {
  text-align: left;
  max-width: 44ch;
}

.cc-footer-made-with {
  text-align: center;
  white-space: nowrap;
}

.cc-footer-made-with .footer-heart {
  color: #ef4444;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.45));
}

.cc-footer-made-with a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms ease;
}

.cc-footer-made-with a:hover,
.cc-footer-made-with a:focus-visible {
  color: #22d3ee;
  outline: none;
}

.cc-footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.cc-footer-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.cc-footer-version-label {
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.85);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 9.5px;
}

.cc-footer-version {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.cc-footer-copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 980px) {
  .cc-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .cc-footer-brand {
    grid-column: 1 / -1;
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .cc-footer {
    padding: 48px 0 24px;
    margin-top: 56px;
  }
  .cc-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 32px;
  }
  .cc-footer-brand {
    grid-column: 1 / -1;
  }
  .cc-footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
  .cc-footer-trademark,
  .cc-footer-made-with {
    text-align: center;
    white-space: normal;
  }
  .cc-footer-meta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cc-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cc-footer-tagline {
    font-size: 13px;
  }
  .cc-footer-kicker {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .cc-footer-list a {
    font-size: 13px;
    min-height: 40px;
  }
}

/* ==================== GUILD RETRY MODAL ==================== */
.guild-retry-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 8, 14, 0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10050;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
  padding: 20px;
}
.guild-retry-overlay.active { opacity: 1; pointer-events: auto; }
.guild-retry-card {
  background: linear-gradient(155deg, #1a1d28 0%, #10121a 100%);
  border: 1px solid rgba(255, 33, 64, 0.38);
  border-radius: 18px;
  padding: 28px 26px 22px;
  max-width: 440px; width: 100%;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.guild-retry-overlay.active .guild-retry-card { transform: translateY(0) scale(1); }
.guild-retry-close {
  position: absolute; top: 10px; right: 12px;
  background: transparent; border: 0; color: #8c92a3;
  font-size: 26px; line-height: 1; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.guild-retry-close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.guild-retry-title {
  margin: 0 0 10px; font-size: 18px; font-weight: 700; color: #fff;
  letter-spacing: -0.01em;
}
.guild-retry-body {
  margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: #b8bdcc;
}
.guild-retry-status {
  min-height: 20px; font-size: 13px; margin-bottom: 14px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); color: transparent;
  transition: color 0.18s ease, background 0.18s ease;
}
.guild-retry-status:empty { display: none; }
.guild-retry-status.is-checking { color: #c9ceda; background: rgba(120, 140, 255, 0.1); }
.guild-retry-status.is-ok { color: #7ae6a8; background: rgba(60, 200, 120, 0.12); }
.guild-retry-status.is-error { color: #ff9ea8; background: rgba(255, 70, 90, 0.12); }
.guild-retry-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.guild-retry-btn {
  flex: 1 1 160px; min-height: 42px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.guild-retry-btn:disabled { opacity: 0.55; cursor: wait; }
.guild-retry-invite {
  background: #5865F2; color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.guild-retry-invite:hover { background: #4752C4; transform: translateY(-1px); }
.guild-retry-primary {
  background: linear-gradient(135deg, #ff2140 0%, #ff4d67 100%);
  color: #fff;
  border-color: rgba(255, 33, 64, 0.6);
  box-shadow: 0 8px 20px rgba(255, 33, 64, 0.25);
}
.guild-retry-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 33, 64, 0.32); }
@media (max-width: 420px) {
  .guild-retry-card { padding: 22px 18px 18px; }
  .guild-retry-title { font-size: 16px; }
  .guild-retry-btn { flex: 1 1 100%; }
}

/* ==================== GET KEY LINKVERTISE FLOW ==================== */
.linkvertise-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.key-flow-card {
  width: min(100%, 540px);
  padding: 0.9rem;
  border: 1px solid rgba(255, 126, 21, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 126, 21, 0.12), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 32px rgba(0, 0, 0, 0.2);
}

.key-flow-eyebrow {
  display: block;
  margin: 0 0 0.65rem;
  color: #ff9d3a;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.key-flow-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1.12fr) 18px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.key-flow-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  background: rgba(7, 10, 16, 0.62);
  text-align: left;
}

.key-flow-step--brand {
  border-color: rgba(255, 126, 21, 0.26);
  background: linear-gradient(135deg, rgba(255, 126, 21, 0.1), rgba(7, 10, 16, 0.7));
}

.key-flow-mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.key-flow-mark--discord {
  color: #fff;
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(88, 101, 242, 0.28);
}

.key-flow-mark--linkvertise {
  padding: 0.25rem;
  background: rgba(255, 126, 21, 0.13);
  border-color: rgba(255, 126, 21, 0.34);
  box-shadow: 0 0 18px rgba(255, 126, 21, 0.12);
}

.key-flow-mark--key {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
}

.key-flow-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.key-flow-copy strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.key-flow-copy small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.73rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

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

.key-flow-separator::before {
  content: '>';
  color: rgba(255, 126, 21, 0.7);
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
}

.key-provider-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 126, 21, 0.18);
  border-radius: 14px;
  background: rgba(255, 126, 21, 0.055);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.35;
}

.key-provider-logo {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.key-provider-note + .button-group {
  margin-top: 0;
}

.step-icon--linkvertise {
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0.45rem;
  border: 1px solid rgba(255, 126, 21, 0.3);
  background: rgba(255, 126, 21, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(255, 126, 21, 0.1);
}

.step-icon--linkvertise .linkvertise-logo {
  width: 34px;
  height: 34px;
}

@media (max-width: 760px) {
  .key-flow-steps {
    grid-template-columns: 1fr;
  }

  .key-flow-separator {
    height: 10px;
  }

  .key-flow-separator::before {
    content: '';
    width: 1px;
    height: 10px;
    background: rgba(255, 126, 21, 0.35);
  }
}

@media (max-width: 420px) {
  .key-flow-card {
    padding: 0.75rem;
  }

  .key-flow-step {
    padding: 0.65rem;
  }

  .key-provider-note {
    align-items: flex-start;
  }
}

/* === HASHES / DMCA VERIFICATION SECTION === */
.cc-hashes-section {
  padding: 4rem 0;
  scroll-margin-top: 96px;
}

.cc-hashes-section .cc-section-subtitle {
  max-width: 720px;
}

.cc-hashes-section .cc-section-subtitle a {
  color: var(--elite-cyan, #ef4444);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 68, 68, 0.35);
  transition: border-color 200ms;
}

.cc-hashes-section .cc-section-subtitle a:hover {
  border-bottom-color: var(--elite-cyan, #ef4444);
}

.cc-hashes-table-wrap {
  max-width: 1100px;
  margin: 0 auto 2rem;
  background: var(--panel-bg-color, rgba(20, 20, 25, 0.6));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cc-hashes-table-wrap:focus-visible {
  outline: 2px solid var(--elite-cyan, #ef4444);
  outline-offset: 2px;
}

.cc-hashes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  color: var(--text-secondary, #b4b4bf);
}

.cc-hashes-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  white-space: nowrap;
}

.cc-hashes-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.cc-hashes-table tbody tr:last-child td {
  border-bottom: none;
}

.cc-hashes-table tbody tr:hover {
  background: rgba(239, 68, 68, 0.04);
}

.cc-hashes-table code {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  word-break: break-all;
}

.cc-hashes-sha {
  color: var(--elite-cyan, #ef4444) !important;
}

.cc-hashes-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cc-hashes-status-active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cc-hashes-status-revoked {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.cc-hashes-howto {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
}

.cc-hashes-howto h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

.cc-hashes-cmd {
  margin: 0 0 1rem;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary, #b4b4bf);
  white-space: pre;
}

.cc-hashes-cmd code {
  font-family: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
}

.cc-hashes-os {
  color: var(--elite-cyan, #ef4444);
  font-weight: 700;
}

.cc-hashes-legal {
  margin: 0;
  font-size: 0.825rem;
  color: var(--text-tertiary, #8a8fa0);
  line-height: 1.55;
}

.cc-hashes-legal code {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Verify-download link in download tab */
.cc-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.5);
  transition: color 180ms;
}

.cc-verify-link:hover,
.cc-verify-link:focus-visible {
  color: var(--elite-cyan, #ef4444);
  outline: none;
}

.cc-verify-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-verify-link svg {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cc-hashes-table thead {
    display: none;
  }

  .cc-hashes-table,
  .cc-hashes-table tbody,
  .cc-hashes-table tr,
  .cc-hashes-table td {
    display: block;
    width: 100%;
  }

  .cc-hashes-table tbody tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  }

  .cc-hashes-table tbody tr:last-child {
    border-bottom: none;
  }

  .cc-hashes-table tbody td {
    padding: 6px 16px;
    border-bottom: none;
  }

  .cc-hashes-table tbody td::before {
    content: attr(data-label) ': ';
    display: inline-block;
    min-width: 90px;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
  }
}

/* =========================================================================
   TERMS v2 — Kicker w/ icon, TOC sidebar, toolbar, lang switch, FAB, print
   ========================================================================= */

/* ---- Kicker icon (replaces emoji) ---- */
.cc-tab-kicker--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 999px;
}

.cc-tab-kicker--icon svg {
  stroke: #ef4444;
  flex-shrink: 0;
}

/* ---- Toolbar (meta only — site lang switcher handles language) ---- */
.cc-terms-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(99, 102, 241, 0.04) 100%);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 12px;
}

.cc-terms-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cc-terms-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(15, 18, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #b6c0cf;
  letter-spacing: 0.02em;
}

.cc-terms-meta-pill svg {
  stroke: #22d3ee;
  flex-shrink: 0;
}

.cc-terms-meta-pill #termsReadingTime {
  color: #f1f5f9;
  font-weight: 700;
}

.cc-terms-meta-version {
  font-family: var(--font-main);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cc-terms-meta-dot {
  color: rgba(255, 255, 255, 0.25);
  margin: 0 2px;
}

/* ---- ES fallback notice ---- */
.cc-terms-es-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  color: #fde68a;
  font-size: 13px;
  line-height: 1.5;
}

.cc-terms-es-notice svg {
  stroke: #f59e0b;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Layout: TOC sidebar + body ---- */
.cc-terms-layout {
  display: block;
}

.cc-terms-body {
  min-width: 0;
}

/* ---- TOC sidebar ---- */
.cc-terms-toc {
  margin: 0 0 18px;
}

.cc-terms-toc-inner {
  background: linear-gradient(180deg, rgba(15, 18, 25, 0.7) 0%, rgba(12, 14, 20, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
}

.cc-terms-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-terms-toc-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #22d3ee;
}

.cc-terms-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.cc-terms-toc-list li {
  counter-increment: toc;
  margin: 0;
}

.cc-terms-toc-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 1px 0;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 36px;
}

.cc-terms-toc-list li a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
  flex-shrink: 0;
  min-width: 18px;
}

.cc-terms-toc-list li a:hover {
  color: #e2f7fb;
  background: rgba(34, 211, 238, 0.06);
}

.cc-terms-toc-list li a:hover::before {
  color: #67e8f9;
}

.cc-terms-toc-list li a:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 1px;
}

.cc-terms-toc-list li a.is-active {
  color: #f1f5f9;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12) 0%, rgba(34, 211, 238, 0) 100%);
  border-left-color: #22d3ee;
  font-weight: 600;
}

.cc-terms-toc-list li a.is-active::before {
  color: #22d3ee;
}

/* ---- Back to top FAB ---- */
.cc-terms-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: #0a0f17;
  border: 0;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.35), 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 90;
  pointer-events: none;
}

.cc-terms-fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cc-terms-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.45), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cc-terms-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cc-terms-fab:active {
  transform: translateY(-1px);
}

/* ---- Desktop ≥ 1024: TOC sticky sidebar grid ---- */
@media (min-width: 1024px) {
  [data-tab-content="terms"] .cc-content-wrap {
    max-width: 1100px;
  }

  .cc-terms-section {
    max-width: 100%;
  }

  .cc-terms-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .cc-terms-toc {
    margin: 0;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
  }

  .cc-terms-toc::-webkit-scrollbar {
    width: 4px;
  }

  .cc-terms-toc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
  }

  .cc-terms-body {
    max-width: 720px;
  }

  .cc-terms-fab {
    right: 32px;
    bottom: 32px;
  }
}

/* ---- Mobile ≤ 640: compact padding + readable type ---- */
@media (max-width: 640px) {
  .cc-terms-section {
    padding: 0;
  }

  .cc-terms-content {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .cc-terms-toolbar {
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .cc-terms-meta-pill {
    font-size: 10px;
  }

  .cc-terms-block {
    margin-bottom: 28px;
    padding-bottom: 22px;
    scroll-margin-top: 90px;
  }

  .cc-terms-block h3 {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .cc-terms-block p,
  .cc-terms-block ul li {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Beefier tap targets on inline links */
  .cc-terms-block a {
    padding: 3px 4px;
    display: inline-block;
    min-height: 28px;
  }

  .cc-terms-toc-inner {
    padding: 12px;
  }

  .cc-terms-toc-list li a {
    padding: 10px 10px;
    min-height: 40px;
    font-size: 13px;
  }

  .cc-terms-fab {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* ---- Print stylesheet — long-form legal docs are saved to PDF ---- */
@media print {
  .cc-tab-nav,
  .bottom-buttons,
  .site-footer,
  .cc-terms-toolbar,
  .cc-terms-toc,
  .cc-terms-fab,
  .cc-terms-es-notice {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .cc-content-wrap,
  .cc-terms-content {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .cc-terms-block h3 {
    color: #000 !important;
    page-break-after: avoid;
  }

  .cc-terms-block h3::before {
    background: #000 !important;
    box-shadow: none !important;
  }

  .cc-terms-block,
  .cc-terms-block ul,
  .cc-terms-block li,
  .cc-terms-block p {
    color: #1a1a1a !important;
    page-break-inside: avoid;
  }

  .cc-terms-block a {
    color: #0066cc !important;
    border: 0 !important;
    text-decoration: underline;
  }

  .cc-terms-block a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  .cc-terms-lang-block.is-hidden {
    display: none !important;
  }

  .cc-terms-updated {
    color: #555 !important;
  }
}
