/* =========================================================================
   ATLAS V2.0 — MODERN HIGH-LUMINOSITY DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Cosmic Obsidian + Frosted Glass + Radiant Status Lighting
   ========================================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Cosmic Obsidian Dark Surfaces */
  --bg-base:          #070a12;
  --bg-base-alt:      #0b0f19;
  --bg-surface:       #0f1626;
  --bg-surface-elev:  #141d33;
  --bg-surface-hover: #1b2744;
  --bg-glass:         rgba(15, 22, 38, 0.75);
  --bg-glass-card:    rgba(20, 29, 51, 0.65);
  --bg-glass-input:   rgba(10, 15, 26, 0.7);

  /* Luminous Borders & Glass Rims */
  --line-subtle:      rgba(255, 255, 255, 0.07);
  --line-glass:       rgba(255, 255, 255, 0.12);
  --line-bright:      rgba(255, 255, 255, 0.22);
  --line-focus:       #00e5ff;

  /* Typography Colors */
  --text-pure:        #ffffff;
  --text-primary:     #f8fafc;
  --text-secondary:   #94a3b8;
  --text-muted:       #64748b;
  --text-disabled:    #475569;

  /* Radiant Status & Accent Lighting */
  --accent-emerald:   #00e676;
  --accent-emerald-glow: rgba(0, 230, 118, 0.35);
  --accent-cyan:      #00e5ff;
  --accent-cyan-glow: rgba(0, 229, 255, 0.35);
  --accent-amber:     #fbbf24;
  --accent-amber-glow: rgba(251, 191, 36, 0.35);
  --accent-purple:    #818cf8;
  --accent-danger:    #f43f5e;

  /* Cinema Status Specifics */
  --color-watched:    #00e676;
  --color-watchlist:  #00e5ff;
  --color-unmarked:   #2a354a;

  /* Typography Scales */
  --font-display:     "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body:        "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:        "JetBrains Mono", "IBM Plex Mono", monospace;

  /* Radii & Shadows */
  --radius-xs:        4px;
  --radius-sm:        8px;
  --radius-md:        12px;
  --radius-lg:        16px;
  --radius-xl:        22px;
  --radius-full:      9999px;

  --shadow-glass:     0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-elevated:  0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 24px rgba(0, 229, 255, 0.2);
  --shadow-glow-emerald: 0 0 24px rgba(0, 230, 118, 0.2);

  /* Legacy Variable Aliases for Script Compatibility */
  --ink:              var(--bg-base);
  --ink-raised:       var(--bg-surface);
  --ink-panel:        var(--bg-surface-elev);
  --line:             var(--line-subtle);
  --paper:            var(--text-primary);
  --paper-dim:        var(--text-secondary);
  --brass:            var(--accent-amber);
  --brass-dim:        rgba(251, 191, 36, 0.5);
  --emerald-glow:     var(--accent-emerald-glow);
  --cyan-accent:      var(--accent-cyan);
  --blue-watchlist:   var(--accent-cyan);
  --green-watched:    var(--accent-emerald);
  --gray-none:        var(--color-unmarked);
  --red:              var(--accent-danger);
  --radius:           var(--radius-sm);
}

/* ---------- 2. Base Reset & Structure ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

/* Lucide Icon Integration */
.lucide, svg.lucide {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.brand-emblem-icon .lucide {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan, #00e5ff);
}

.tab-btn__icon .lucide {
  width: 16px;
  height: 16px;
}

.action-icon .lucide {
  width: 16px;
  height: 16px;
}

.dropdown-icon .lucide {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
}

.user-dropdown-item:hover .dropdown-icon .lucide {
  color: #ffffff;
}

.user-dropdown-item--danger .dropdown-icon .lucide {
  color: #f87171;
}

.view-hero-badge .lucide {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}

.metric-icon-badge .lucide {
  width: 24px;
  height: 24px;
}

.feature-card-icon-box .lucide {
  width: 26px;
  height: 26px;
}

.modal-header-icon-wrap .lucide {
  width: 22px;
  height: 22px;
  color: var(--accent-cyan, #00e5ff);
}

.auth-modal-brand-badge .lucide {
  width: 36px;
  height: 36px;
  color: var(--accent-cyan, #00e5ff);
}

.dropzone-icon .lucide {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
}

.globe-search__icon .lucide {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
}

.account-tab-btn .lucide {
  width: 15px;
  height: 15px;
}

.device-card-icon .lucide {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan, #00e5ff);
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  user-select: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Custom Sleek Dark Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ---------- 3. Layout Shell ---------- */
body {
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* ---------- 4. Modern App Header & Navigation ---------- */
.app-header {
  position: relative;
  z-index: 100;
  padding: 10px 20px;
  background: rgba(7, 10, 18, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
}

/* Brand Cluster */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}
/* Brand Logo Emblem & Distinctive Wordmark */
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.18), inset 0 0 12px rgba(0, 229, 255, 0.1);
  transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.brand-cluster:hover .brand-emblem {
  transform: scale(1.08) rotate(2deg);
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.4), inset 0 0 16px rgba(0, 229, 255, 0.2);
}

.brand-emblem-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Distinctive Unified Wordmark (Solid Luminous Monolithic Typography) */
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  position: relative;
}

.wordmark-text {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.25), 0 0 20px rgba(0, 229, 255, 0.18);
}

/* Destination Pin Dot Accent */
.wordmark-pin-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 4px;
  margin-bottom: 2px;
  align-self: flex-end;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e5ff, 0 0 16px rgba(0, 229, 255, 0.8);
  animation: pinPulse 2.4s ease-in-out infinite;
}

@keyframes pinPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px #00e5ff, 0 0 14px rgba(0, 229, 255, 0.6);
  }
  50% {
    transform: scale(1.35);
    background: #38bdf8;
    box-shadow: 0 0 14px #00e5ff, 0 0 24px rgba(0, 229, 255, 0.9);
  }
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 229, 255, 0.22);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
  text-transform: uppercase;
}

/* Center Nav Island (Pill Control) */
.nav-island, .marquee__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 22, 38, 0.65);
  border: 1px solid var(--line-glass);
  padding: 4px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 180ms ease;
}
.tab-btn__icon {
  font-size: 14px;
  opacity: 0.8;
}
.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.tab-btn.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22) 0%, rgba(14, 165, 233, 0.15) 100%);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}
.tab-btn.is-active .tab-btn__icon {
  opacity: 1;
}

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-action-glow, .btn-icon-nav#nav-challenge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-action-glow:hover, .btn-icon-nav#nav-challenge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}
.btn-action-glass, .btn-icon-nav:not(#nav-challenge) {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-glass);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 160ms ease;
}
.btn-action-glass:hover, .btn-icon-nav:not(#nav-challenge):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-action-pro {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.22) 100%);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fbbf24;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
  transition: all 160ms ease;
}
.btn-action-pro .action-icon {
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
}
.btn-action-pro:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #05070d !important;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.5);
  transform: translateY(-1px);
}
.btn-action-pro:hover .action-icon,
.btn-action-pro:hover .action-label {
  color: #05070d !important;
}

/* Active Pro State (Bright Electric Blue / Cyan) */
.btn-action-pro.is-pro-active,
.is-pro-user .btn-action-pro {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(56, 189, 248, 0.25) 100%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #00e5ff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}
.btn-action-pro.is-pro-active .action-icon,
.is-pro-user .btn-action-pro .action-icon {
  color: #00e5ff;
}
.btn-action-pro.is-pro-active:hover,
.is-pro-user .btn-action-pro:hover {
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  color: #05070d !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
}
.btn-action-pro.is-pro-active:hover .action-icon,
.is-pro-user .btn-action-pro:hover .action-icon,
.btn-action-pro.is-pro-active:hover .action-label,
.is-pro-user .btn-action-pro:hover .action-label {
  color: #05070d !important;
}
.btn-action-icon-only {
  padding: 7px 10px;
}

/* Globe Hero Value Proposition Pill */
.globe-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 16, 28, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  text-align: center;
  pointer-events: auto;
  white-space: nowrap;
}
.globe-hero-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.globe-hero-sub {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* App Legal & Compliance Glass Footer */
.app-glass-footer {
  margin-top: 48px;
  padding: 24px 28px;
  background: rgba(11, 16, 28, 0.65);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nav-links a {
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-nav-links a:hover {
  color: #00e5ff;
}
.footer-nav-links .footer-pro-link {
  color: #00e5ff;
  font-weight: 700;
}

/* ---------- 6. General View System ---------- */
.view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.view.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.list-view {
  overflow-y: auto;
  padding: 32px 24px 60px;
  background: radial-gradient(circle at 50% 0%, #10172a 0%, #070a12 60%);
}
.list-container {
  max-width: 1280px;
  margin: 0 auto;
}

/* View Hero Header */
.view-hero-header, .list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-subtle);
}

.view-hero-info {
  flex: 1;
  min-width: 240px;
}

.view-hero-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.view-hero-title, .list-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
}

.view-hero-desc, .list-header p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-top: 6px;
  line-height: 1.4;
}

.view-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  justify-content: flex-end;
}

#btn-toggle-all-watched,
#btn-toggle-all-watchlist {
  min-width: 124px;
  justify-content: center;
}

@media (max-width: 960px) {
  .view-hero-header, .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .view-hero-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---------- 7. Buttons Design System ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  color: #061e11;
  font-weight: 700;
  border: 1px solid rgba(0, 230, 118, 0.4);
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
}
.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 24px rgba(0, 230, 118, 0.45);
  background: linear-gradient(135deg, #0df582 0%, #00e676 100%);
}
.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: inherit;
  filter: blur(8px);
  opacity: 0.4;
  z-index: -1;
  transition: opacity 180ms ease;
}
.btn-glow:hover::after {
  opacity: 0.7;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-glass);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(244, 63, 94, 0.7);
  color: #ffffff;
}
.btn-sm {
  padding: 8px 15px;
  font-size: 12.5px;
}
.btn-xs {
  padding: 5px 10px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
}

/* ---------- 8. 3D Globe HUD & Search Bar ---------- */
#panel-globe {
  background: #000000 !important;
}
#globe-mount {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000000 !important;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}
#globe-mount canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Floating 3D Search Bar */
.globe-search {
  position: relative;
  z-index: 52;
  width: 280px;
  max-width: calc(100vw - 32px);
  flex-shrink: 0;
}
.globe-search__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 22, 38, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  box-shadow: var(--shadow-glass);
  transition: all 200ms ease;
}
.globe-search__bar:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.3), var(--shadow-glass);
  background: rgba(18, 27, 48, 0.95);
}
.globe-search__icon {
  font-size: 14px;
  opacity: 0.7;
}
.globe-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
}
.globe-search__input::placeholder {
  color: var(--text-muted);
}
.globe-search__clear {
  color: var(--text-secondary);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.globe-search__clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Autocomplete Results Dropdown */
.globe-search__results {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 22, 38, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  max-height: 340px;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  display: none;
  z-index: 99999;
}
.globe-search__results.is-open {
  display: block;
  animation: pop-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop-in {
  0% { opacity: 0; transform: translateY(-6px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.globe-search__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 120ms ease;
}
.globe-search__item:last-child {
  border-bottom: none;
}
.globe-search__item:hover, .globe-search__item.is-selected {
  background: rgba(0, 229, 255, 0.12);
}
.globe-search__item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
}
.globe-search__item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.globe-search__item-flag-img {
  width: 22px !important;
  height: 15px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
.globe-search__match {
  color: var(--accent-cyan);
  font-weight: 700;
}
.globe-search__item-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(0, 230, 118, 0.12);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 230, 118, 0.25);
}
.globe-search__item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.globe-search__item-dot--watched {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.globe-search__item-dot--watchlist {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.globe-search__empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Floating Bottom HUD */
.globe-hud-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 50;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.globe-hud-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.legend {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 22, 38, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-glass);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glass);
  pointer-events: auto;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.legend-swatch--none { background: #111827; border: 1px solid rgba(255,255,255,0.25); }
.legend-swatch--watchlist { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.legend-swatch--watched { background: var(--accent-emerald); box-shadow: 0 0 8px var(--accent-emerald); }

.globe-hint {
  background: rgba(15, 22, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-glass);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  transition: opacity 300ms ease;
}
.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* Floating Top Controls Header (Search, Exploration Badge, Projection & Themes) */
.globe-top-controls {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 50;
  pointer-events: none;
}

.globe-top-controls > * {
  pointer-events: auto;
}

/* Floating Projection Toggle (3D Globe vs 2D Map) & Themes */
.globe-projection-toggle {
  position: relative;
  z-index: 51;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  max-width: 100%;
}

@media (max-width: 1380px) {
  .globe-top-controls {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
  .globe-search {
    order: 1;
    width: 250px;
  }
  .globe-projection-toggle {
    order: 2;
  }
  .globe-exploration-counter {
    order: 3;
    margin: 4px auto 0 !important;
    width: auto;
  }
}

@media (max-width: 900px) {
  .globe-top-controls {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 8px;
  }
  .globe-search {
    order: 1;
    width: 100%;
    max-width: 100%;
  }
  .globe-projection-toggle {
    order: 2;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }
  .globe-exploration-counter {
    order: 3;
    margin: 2px auto 0 !important;
  }
}

/* 2D Flat Map Container & SVG Layer */
.map2d-mount {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #061126 0%, #020612 70%, #000208 100%);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none !important;
  cursor: grab;
}

.map2d-mount.is-panning,
.map2d-mount.is-panning * {
  cursor: grabbing !important;
}

.map2d-svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
}

#map2d-viewport {
  transform-origin: 0 0;
  will-change: transform;
}

/* Suppress broken image icon placeholders across all mobile browsers */
img[src=""], img:not([src]) {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Graticule lines */
.map2d-graticule {
  stroke: rgba(0, 229, 255, 0.04);
  stroke-width: 0.8px;
  fill: none;
}

.map2d-equator {
  stroke: rgba(0, 229, 255, 0.12);
  stroke-width: 1.2px;
  stroke-dasharray: 4 3;
}

/* Country Polygons */
.map2d-country {
  transition: fill 200ms ease, stroke 180ms ease, filter 200ms ease;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.map2d-country.status-none {
  fill: #111d33;
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 0.6px;
}

.map2d-country.status-watchlist {
  fill: rgba(0, 229, 255, 0.72);
  stroke: #00e5ff;
  stroke-width: 1.2px;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}

.map2d-country.status-watched {
  fill: rgba(0, 230, 118, 0.82);
  stroke: #00e676;
  stroke-width: 1.4px;
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.5));
}

/* Real desktop mouse hover only (prevents accidental touch hover on mobile) */
@media (hover: hover) and (pointer: fine) {
  .map2d-country:hover {
    fill-opacity: 1 !important;
    stroke: #ffffff !important;
    stroke-width: 2.2px !important;
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.85)) !important;
  }

  .map2d-micro-pin:hover {
    r: 6 !important;
    stroke: #ffffff !important;
    stroke-width: 2.5px !important;
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) !important;
  }
}

/* Explicit class-driven hover strictly from the center crosshair */
.map2d-country.is-hovered,
.map2d-country.is-targeted {
  fill-opacity: 1 !important;
  stroke: #ffffff !important;
  stroke-width: 2.2px !important;
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, 0.85)) !important;
}

/* Micro-country pins on 2D map */
.map2d-micro-pin {
  cursor: pointer;
  transition: all 180ms ease;
}

.map2d-micro-pin.status-none {
  fill: #1e293b;
  stroke: rgba(148, 163, 184, 0.5);
  stroke-width: 0.8px;
}

.map2d-micro-pin.status-watchlist {
  fill: #00e5ff;
  stroke: #ffffff;
  stroke-width: 1.2px;
  filter: drop-shadow(0 0 6px #00e5ff);
}

.map2d-micro-pin.status-watched {
  fill: #00e676;
  stroke: #ffffff;
  stroke-width: 1.2px;
  filter: drop-shadow(0 0 6px #00e676);
}

.map2d-micro-pin.is-hovered,
.map2d-micro-pin.is-targeted {
  r: 6 !important;
  stroke: #ffffff !important;
  stroke-width: 2.5px !important;
  filter: brightness(1.3) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9)) !important;
}

/* 2D Map On-Screen Zoom Controls */
.map2d-zoom-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map2d-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 38, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 160ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.map2d-zoom-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

.map2d-zoom-btn svg,
.map2d-zoom-btn i {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   MOBILE VIEWPORT CENTER CROSSHAIR & TARGET LOCK HUD
   ========================================================================== */
.map-crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 220ms ease;
}

@media (max-width: 820px), (hover: none) {
  .map-crosshair {
    display: flex;
  }
}

.crosshair-reticle {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crosshair-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.2px solid rgba(0, 229, 255, 0.45);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(7, 10, 18, 0.3) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2), inset 0 0 6px rgba(0, 229, 255, 0.12);
  transition: all 200ms ease;
}

.crosshair-axis {
  position: absolute;
  background: rgba(0, 229, 255, 0.85);
  border-radius: 1px;
  transition: all 200ms ease;
}

.crosshair-axis--top {
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.2px;
  height: 6px;
}

.crosshair-axis--bottom {
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.2px;
  height: 6px;
}

.crosshair-axis--left {
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.2px;
}

.crosshair-axis--right {
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.2px;
}

.crosshair-center-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 6px #00e5ff, 0 0 10px rgba(0, 229, 255, 0.7);
  z-index: 2;
  transition: all 200ms ease;
}

/* Locked / Hovered State */
.map-crosshair.is-locked .crosshair-reticle {
  transform: scale(1.08);
}

.map-crosshair.is-locked .crosshair-ring {
  border-color: #00e5ff;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, rgba(7, 10, 18, 0.45) 100%);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5), inset 0 0 10px rgba(0, 229, 255, 0.35);
  animation: reticlePulse 1.8s infinite ease-in-out;
}

.map-crosshair.is-locked.status-watched .crosshair-ring {
  border-color: #00e676;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.2) 0%, rgba(7, 10, 18, 0.45) 100%);
  box-shadow: 0 0 22px rgba(0, 230, 118, 0.6), inset 0 0 12px rgba(0, 230, 118, 0.4);
}

.map-crosshair.is-locked.status-watched .crosshair-axis {
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
}

.map-crosshair.is-locked.status-watched .crosshair-center-dot {
  background: #00e676;
  box-shadow: 0 0 10px #00e676, 0 0 18px rgba(0, 230, 118, 0.8);
}

.map-crosshair.is-locked.status-watchlist .crosshair-ring {
  border-color: #00e5ff;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(7, 10, 18, 0.45) 100%);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.6), inset 0 0 12px rgba(0, 229, 255, 0.4);
}

.map-crosshair.is-locked.status-none .crosshair-ring {
  border-color: #ffd700;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, rgba(7, 10, 18, 0.45) 100%);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.3);
}

.map-crosshair.is-locked.status-none .crosshair-axis {
  background: #ffd700;
  box-shadow: 0 0 6px #ffd700;
}

.map-crosshair.is-locked.status-none .crosshair-center-dot {
  background: #ffd700;
  box-shadow: 0 0 10px #ffd700, 0 0 16px rgba(255, 215, 0, 0.7);
}

@keyframes reticlePulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* Floating Target Card underneath Crosshair */
.crosshair-target-card {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 170px;
  max-width: 270px;
  padding: 7px 12px 7px 10px;
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  animation: targetCardPop 200ms cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 140ms ease, border-color 200ms ease;
}

.crosshair-target-card:active {
  transform: translateX(-50%) scale(0.96);
}

@keyframes targetCardPop {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.92); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.target-card-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.target-card-info {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  flex: 1 1 auto;
}

.target-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.target-card-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(224, 242, 254, 0.75);
  line-height: 1.2;
  margin-top: 1px;
}

.target-card-action {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e5ff;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  margin-left: 2px;
}

/* ==========================================================================
   2D FLAT MAP — THEME SKINS
   Activated via data-skin attribute on .map2d-mount
   ========================================================================== */

/* ── AMOLED THEME ── */
.map2d-mount[data-skin="amoled"] {
  background: #000000;
}
.map2d-mount[data-skin="amoled"] .map2d-graticule {
  stroke: rgba(255, 215, 0, 0.05);
}
.map2d-mount[data-skin="amoled"] .map2d-equator {
  stroke: rgba(255, 215, 0, 0.18);
  stroke-dasharray: 6 3;
}
.map2d-mount[data-skin="amoled"] .map2d-country.status-none {
  fill: #060608;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 0.6px;
}
.map2d-mount[data-skin="amoled"] .map2d-country.status-watchlist {
  fill: url(#amoled-plat-grad) !important;
  stroke: #f8fafc;
  stroke-width: 1.2px;
  filter: drop-shadow(0 0 8px rgba(248, 250, 252, 0.5));
}
.map2d-mount[data-skin="amoled"] .map2d-country.status-watched {
  fill: url(#amoled-gold-grad) !important;
  stroke: #ffd700;
  stroke-width: 1.4px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.65)) drop-shadow(0 0 2px #fff8db);
}
.map2d-mount[data-skin="amoled"] .map2d-micro-pin.status-none {
  fill: #0a0a0c;
  stroke: rgba(255, 215, 0, 0.2);
}
.map2d-mount[data-skin="amoled"] .map2d-micro-pin.status-watchlist {
  fill: #94a3b8;
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px #ffffff);
}
.map2d-mount[data-skin="amoled"] .map2d-micro-pin.status-watched {
  fill: #ffd700;
  stroke: #fff8db;
  filter: drop-shadow(0 0 8px #ffd700);
}

/* ── CYBERPUNK THEME ── */
.map2d-mount[data-skin="cyberpunk"] {
  background: radial-gradient(ellipse at 50% 50%, #060014 0%, #02000a 70%, #000005 100%);
}
.map2d-mount[data-skin="cyberpunk"] .map2d-graticule {
  stroke: rgba(255, 0, 128, 0.12);
}
.map2d-mount[data-skin="cyberpunk"] .map2d-equator {
  stroke: rgba(0, 240, 255, 0.35);
  stroke-dasharray: 8 4;
}
.map2d-mount[data-skin="cyberpunk"] .map2d-country.status-none {
  fill: #0c031c;
  stroke: rgba(168, 85, 247, 0.35);
  stroke-width: 0.7px;
}
.map2d-mount[data-skin="cyberpunk"] .map2d-country.status-watchlist {
  fill: url(#cyber-mag-grad) !important;
  stroke: #ff007f;
  stroke-width: 1.4px;
  filter: drop-shadow(0 0 10px #ff007f) drop-shadow(0 0 16px rgba(0, 240, 255, 0.5));
}
.map2d-mount[data-skin="cyberpunk"] .map2d-country.status-watched {
  fill: url(#cyber-cyan-grad) !important;
  stroke: #00f0ff;
  stroke-width: 1.6px;
  filter: drop-shadow(0 0 12px #00f0ff) drop-shadow(0 0 20px rgba(255, 0, 128, 0.7));
}
.map2d-mount[data-skin="cyberpunk"] .map2d-micro-pin.status-none {
  fill: #0c031c;
  stroke: rgba(168, 85, 247, 0.4);
}
.map2d-mount[data-skin="cyberpunk"] .map2d-micro-pin.status-watchlist {
  fill: #ff007f;
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px #ff007f);
}
.map2d-mount[data-skin="cyberpunk"] .map2d-micro-pin.status-watched {
  fill: #00ffa2;
  stroke: #00f0ff;
  filter: drop-shadow(0 0 8px #00ffa2);
}

/* ── VINTAGE THEME ── */
.map2d-mount[data-skin="vintage"] {
  background: radial-gradient(ellipse at 50% 40%, #24180c 0%, #150e06 70%, #0c0703 100%);
}
.map2d-mount[data-skin="vintage"] .map2d-graticule {
  stroke: rgba(197, 160, 89, 0.12);
}
.map2d-mount[data-skin="vintage"] .map2d-equator {
  stroke: rgba(212, 175, 55, 0.32);
  stroke-dasharray: 6 4;
}
.map2d-mount[data-skin="vintage"] .map2d-country.status-none {
  fill: #24180d;
  stroke: rgba(180, 130, 80, 0.35);
  stroke-width: 0.7px;
}
.map2d-mount[data-skin="vintage"] .map2d-country.status-watchlist {
  fill: url(#vintage-sapphire-grad) !important;
  stroke: #cbd5e1;
  stroke-width: 1.3px;
  filter: drop-shadow(0 0 6px rgba(203, 213, 225, 0.35));
}
.map2d-mount[data-skin="vintage"] .map2d-country.status-watched {
  fill: url(#vintage-emerald-grad) !important;
  stroke: #d4af37;
  stroke-width: 1.5px;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.55));
}
.map2d-mount[data-skin="vintage"] .map2d-micro-pin.status-none {
  fill: #24180d;
  stroke: rgba(180, 130, 80, 0.4);
}
.map2d-mount[data-skin="vintage"] .map2d-micro-pin.status-watchlist {
  fill: #1a365d;
  stroke: #cbd5e1;
}
.map2d-mount[data-skin="vintage"] .map2d-micro-pin.status-watched {
  fill: #2e7045;
  stroke: #d4af37;
  filter: drop-shadow(0 0 6px #d4af37);
}

/* ── SATELLITE THEME ── */
.map2d-mount[data-skin="satellite"] {
  background: #000208;
}
/* Hide graticule for clean satellite look */
.map2d-mount[data-skin="satellite"] .map2d-graticule {
  display: none;
}
/* Unexplored: dark fog-of-war overlay */
.map2d-mount[data-skin="satellite"] .map2d-country.status-none {
  fill: rgba(4, 7, 16, 0.76);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.5px;
}
/* Watchlist: transparent with cyan outline so satellite shows through */
.map2d-mount[data-skin="satellite"] .map2d-country.status-watchlist {
  fill: transparent;
  stroke: #00e5ff;
  stroke-width: 1.8px;
  filter: drop-shadow(0 0 8px #00e5ff);
}
/* Watched: completely transparent with gold/white outline — reveals real satellite Earth */
.map2d-mount[data-skin="satellite"] .map2d-country.status-watched {
  fill: transparent;
  stroke: rgba(255, 235, 160, 0.9);
  stroke-width: 1.2px;
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}
.map2d-mount[data-skin="satellite"] .map2d-micro-pin.status-none {
  fill: rgba(4, 7, 16, 0.85);
  stroke: rgba(255, 255, 255, 0.25);
}
.map2d-mount[data-skin="satellite"] .map2d-micro-pin.status-watchlist {
  fill: #00e5ff;
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px #00e5ff);
}
.map2d-mount[data-skin="satellite"] .map2d-micro-pin.status-watched {
  fill: #ffd700;
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px #ffd700);
}

/* ── FLAGS THEME ── */
.map2d-mount[data-skin="flags"] {
  background: radial-gradient(ellipse at 50% 50%, #0a1020 0%, #050a18 100%);
}
.map2d-mount[data-skin="flags"] .map2d-country.status-none {
  fill: #0d1526;
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 0.6px;
}
.map2d-mount[data-skin="flags"] .map2d-country.status-watchlist {
  stroke: #00e5ff;
  stroke-width: 1.4px;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
}
.map2d-mount[data-skin="flags"] .map2d-country.status-watched {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.0px;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}
.map2d-mount[data-skin="flags"] .map2d-micro-pin.status-none {
  fill: #0d1526;
  stroke: rgba(148, 163, 184, 0.3);
}
.map2d-mount[data-skin="flags"] .map2d-micro-pin.status-watchlist {
  fill: #00e5ff;
  stroke: #ffffff;
  filter: drop-shadow(0 0 6px #00e5ff);
}
.map2d-mount[data-skin="flags"] .map2d-micro-pin.status-watched {
  fill: #ffc800;
  stroke: #ffffff;
  filter: drop-shadow(0 0 7px #ffc800);
}

/* Hover overrides work for all themes */
.map2d-mount .map2d-country:hover {
  fill-opacity: 1 !important;
  stroke: #ffffff !important;
  stroke-width: 1.8px !important;
  filter: brightness(1.25) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) !important;
}
.map2d-mount[data-skin="satellite"] .map2d-country:hover {
  fill: rgba(255, 255, 255, 0.12) !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) !important;
}


/* Floating Hover Tooltip (Shared across 3D Globe & 2D Map) */
.country-label {
  position: fixed !important;
  pointer-events: none !important;
  z-index: 99999 !important;
  background: rgba(10, 15, 26, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(0, 229, 255, 0.6) !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-full) !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 229, 255, 0.25) !important;
  transform: translate(-50%, -140%) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.country-label[hidden] {
  display: none !important;
}

/* ---------- 9. Empty States (High Luminosity Cards) ---------- */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.08) 0%, rgba(15, 22, 38, 0.7) 100%);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.empty-state-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
}
.empty-state-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}
.empty-state-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.empty-state-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.empty-state-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- 10. Country Groups (Collapsible Accordion & Stacked Thumbnails) ---------- */
.country-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.country-group {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.country-group:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.country-group.is-open {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 255, 0.05);
}

.country-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: background 180ms ease;
}

.country-group__head:hover {
  background: rgba(255, 255, 255, 0.025);
}

.country-group.is-open .country-group__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.country-group__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.country-group__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.country-group__flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-group__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-group__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.country-group__preview-box {
  display: flex;
  align-items: center;
}

/* Stacked Thumbnails Preview */
.country-group__thumbnails {
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.stacked-thumb {
  width: 24px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1.5px solid #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  background: #1e293b;
  transition: transform 180ms ease, z-index 180ms ease;
  flex-shrink: 0;
}

.stacked-thumb:not(:first-child) {
  margin-left: -12px;
}

.stacked-thumb-1 { z-index: 3; }
.stacked-thumb-2 { z-index: 2; }
.stacked-thumb-3 { z-index: 1; }

.country-group__head:hover .stacked-thumb-1 {
  transform: translateY(-2px);
}
.country-group__head:hover .stacked-thumb-2 {
  transform: translateY(-2px) rotate(3deg);
}
.country-group__head:hover .stacked-thumb-3 {
  transform: translateY(-2px) rotate(6deg);
}

.country-group__count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.22);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.country-group__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease, color 180ms ease;
}

.country-group__chevron svg,
.country-group__chevron i {
  width: 16px;
  height: 16px;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.country-group__head:hover .country-group__chevron {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
}

.country-group.is-open .country-group__chevron svg,
.country-group.is-open .country-group__chevron i {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.country-group__body {
  padding: 20px 22px 24px 22px;
  animation: expandFadeIn 220ms ease-out forwards;
}

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

/* List Live Search Bar (Watched & Watchlist) */
.list-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.list-search-icon {
  position: absolute;
  left: 11px;
  color: var(--accent-cyan);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.list-search-icon svg,
.list-search-icon i {
  width: 14px;
  height: 14px;
}

.list-search-input {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 7px 28px 7px 32px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  outline: none;
  width: 160px;
  transition: all 220ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.list-search-input:focus {
  width: 210px;
  border-color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.list-search-input::placeholder {
  color: var(--text-muted);
  font-size: 12px;
}

.list-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  line-height: 1;
}

.list-search-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Segmented View Mode Switcher [ By Country | All Films ] */
.view-mode-segmented {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 180ms ease;
  white-space: nowrap;
  user-select: none;
}

.view-mode-btn svg,
.view-mode-btn i {
  width: 14px;
  height: 14px;
}

.view-mode-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.view-mode-btn.is-active {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.22);
  border-color: rgba(0, 229, 255, 0.35);
  font-weight: 700;
}

/* Custom Luxury Select Component */
.lux-custom-select {
  position: relative;
  display: inline-block;
}

.lux-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 180ms ease;
  user-select: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lux-select-trigger:hover,
.lux-custom-select.is-open .lux-select-trigger {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.18), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.lux-select-icon {
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lux-select-icon svg,
.lux-select-icon i {
  width: 15px;
  height: 15px;
}

.lux-select-label {
  letter-spacing: -0.01em;
}

.lux-select-chevron {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
  margin-left: 2px;
}

.lux-select-chevron svg,
.lux-select-chevron i {
  width: 14px;
  height: 14px;
}

.lux-custom-select.is-open .lux-select-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.lux-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: rgba(11, 17, 33, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 229, 255, 0.1);
  padding: 6px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: luxMenuFadeIn 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lux-select-menu[hidden] {
  display: none !important;
}

@keyframes luxMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lux-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 140ms ease;
  width: 100%;
}

.lux-select-option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.lux-select-option.is-selected {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  font-weight: 700;
}

.lux-select-option .opt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.85;
}

.lux-select-option .opt-icon svg,
.lux-select-option .opt-icon i {
  width: 15px;
  height: 15px;
}

.lux-select-option .opt-label {
  flex: 1;
  white-space: nowrap;
}

.lux-select-option .opt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: var(--accent-cyan);
  transition: opacity 140ms ease;
}

.lux-select-option .opt-check svg,
.lux-select-option .opt-check i {
  width: 14px;
  height: 14px;
}

.lux-select-option.is-selected .opt-check {
  opacity: 1;
}

/* Flat Stream View Header */
.flat-stream-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-glass);
}

.flat-stream-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.25);
  letter-spacing: 0.04em;
}

.flat-stream-count svg,
.flat-stream-count i {
  width: 13px;
  height: 13px;
}

.flat-stream-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .country-group__head {
    padding: 13px 15px;
    gap: 10px;
  }
  .country-group__name {
    font-size: 15.5px;
  }
  .stacked-thumb {
    width: 20px;
    height: 30px;
  }
  .stacked-thumb:not(:first-child) {
    margin-left: -9px;
  }
  .country-group__right {
    gap: 8px;
  }
  .country-group__count {
    font-size: 10px;
    padding: 3px 8px;
  }
  .country-group__chevron {
    width: 24px;
    height: 24px;
  }
  .lux-select-menu {
    min-width: 230px;
  }
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
}
.movie-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-elev);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.movie-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.2);
}
.movie-card__poster-wrap {
  position: relative;
  width: 100%;
  padding-top: 150%; /* 2:3 aspect ratio */
  background: #0d1320;
  overflow: hidden;
}
.movie-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}
.movie-card:hover .movie-card__poster {
  transform: scale(1.04);
}

/* Floating Flag Badge on Poster */
.movie-card__flag-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 17px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 2;
  transition: transform 180ms ease;
}

.movie-card__flag-badge img,
.movie-card__flag-badge svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card:hover .movie-card__flag-badge {
  transform: scale(1.08);
}

.movie-card__info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.movie-card__title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card__meta-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.movie-card__meta-flag img,
.movie-card__meta-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-card__meta-country {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card__meta-dot {
  color: rgba(255, 255, 255, 0.25);
  font-weight: bold;
}

/* ---------- 11. Passport & Stats Dashboard ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.metric-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.metric-card--gauge {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.metric-gauge-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}
.metric-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.metric-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-emerald);
}
.metric-number {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}
.metric-number--rank {
  font-size: 26px;
  color: var(--accent-amber);
}
.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.metric-sub-badge {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(0, 229, 255, 0.25);
}
.metric-footer-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.metric-icon-badge {
  font-size: 22px;
  margin-bottom: 12px;
}

/* Feature Cards (Roll, Challenge, Data) */
.feature-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glass);
}
.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.feature-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.feature-card-icon-box--purple {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}
.feature-card-text {
  flex: 1;
  min-width: 260px;
}
.feature-card-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}
.feature-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---------- 2-Step Roll the Globe & Film Roulette ---------- */
.suggestion-tray {
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: none;
}
.roll-country-card {
  padding: 22px;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.08);
  animation: fadeIn 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.roll-country-top {
  display: flex;
  align-items: center;
  gap: 18px;
}
.roll-country-flag {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.roll-country-meta {
  flex: 1;
}
.roll-step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}
.roll-country-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 6px;
}
.roll-country-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}
.roll-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.3), rgba(255, 255, 255, 0.06), transparent);
  margin: 18px 0;
}
.roll-step2-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.roll-step2-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-subtle);
}
.roll-step2-icon {
  font-size: 28px;
}
.roll-step2-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}
.roll-step2-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.roll-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.roll-winner-card {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.12);
  animation: slideUp 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.roll-winner-poster-wrap {
  width: 110px;
  min-width: 110px;
  height: 165px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.roll-winner-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.roll-winner-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.roll-winner-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
}
.roll-winner-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 8px;
}
.roll-winner-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.roll-winner-overview {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.roll-winner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-emerald {
  background: #00e676 !important;
  color: #0b0f16 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.35) !important;
}
.btn-cyan {
  background: #00e5ff !important;
  color: #0b0f16 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35) !important;
}
.roll-roulette-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-top: 10px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-cyan);
}
.roll-ticker-flag {
  font-size: 32px;
}
.roll-ticker-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-cyan);
}
.roll-movie-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-md);
}
@media (max-width: 600px) {
  .roll-winner-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .roll-winner-badges, .roll-winner-actions {
    justify-content: center;
  }
}

/* Data Actions Row */
.data-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---------- 12. Modals & Drawers ---------- */
.scrim, .modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: opacity 250ms ease;
}
.scrim[hidden], .modal-scrim[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1001;
  overflow-y: auto;
  box-sizing: border-box;
}
.modal-overlay[hidden] {
  display: none !important;
}
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #0d1527;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 32px rgba(0, 229, 255, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1002;
  box-sizing: border-box;
  animation: modal-enter 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-enter {
  0% { opacity: 0; transform: scale(0.95) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-card--import {
  max-width: 580px;
}
.share-card-modal {
  max-width: 680px;
  width: 95%;
}
.share-preview-container {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
}
#share-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.15);
  display: block;
}
.modal-card--new-list,
#list-add-film-modal .modal-card,
#new-list-modal .modal-card {
  max-width: 620px;
  overflow: visible !important;
}
#list-add-film-scrim,
#stamp-inspector-scrim {
  z-index: 1090 !important;
}
#list-add-film-modal,
#stamp-inspector-modal {
  z-index: 1100 !important;
}
#list-add-film-modal .modal-card,
#stamp-inspector-modal .modal-card {
  z-index: 1102 !important;
}
#list-add-film-modal .modal-body-form,
#new-list-modal .modal-body-form {
  overflow: visible !important;
  min-height: 220px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-subtle);
}
.modal-header-icon-wrap {
  font-size: 24px;
}
.modal-header-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.modal-header-sub {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  transition: all 150ms ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.modal-body-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
/* Searchable Country Picker */
.searchable-country-picker {
  position: relative;
  width: 100%;
}

.country-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass-input);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  outline: none;
  transition: all 180ms ease;
  text-align: left;
}

.country-picker-trigger:hover,
.searchable-country-picker.is-open .country-picker-trigger {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}

.country-picker-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.country-picker-flag img,
.country-picker-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-picker-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.country-picker-name.is-placeholder {
  color: var(--text-muted);
}

.country-picker-chevron {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease;
}

.country-picker-chevron svg,
.country-picker-chevron i {
  width: 15px;
  height: 15px;
}

.searchable-country-picker.is-open .country-picker-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.country-picker-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(11, 17, 33, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 229, 255, 0.1);
  padding: 8px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: countryDropdownFadeIn 180ms ease-out forwards;
}

.country-picker-dropdown[hidden] {
  display: none !important;
}

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

.country-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.country-search-icon {
  position: absolute;
  left: 10px;
  color: var(--accent-cyan);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.country-search-icon svg,
.country-search-icon i {
  width: 14px;
  height: 14px;
}

.country-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-md);
  padding: 8px 30px 8px 32px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: border-color 150ms ease;
}

.country-search-input:focus {
  border-color: var(--accent-cyan);
}

.country-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
}

.country-search-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.country-picker-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 4px;
}

.country-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 120ms ease;
}

.country-picker-item:hover,
.country-picker-item.is-highlighted {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
}

.country-picker-item.is-selected {
  background: rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
  font-weight: 700;
}

.country-picker-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.country-picker-item-flag img,
.country-picker-item-flag svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-picker-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-picker-empty {
  padding: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: var(--bg-glass-input);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-textarea {
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.5;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}
.form-hint {
  font-size: 11px;
  color: var(--text-muted);
}
.file-dropzone {
  position: relative;
  border: 2px dashed var(--line-glass);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: center;
  background: rgba(10, 15, 26, 0.5);
  transition: border-color 150ms ease, background 150ms ease;
}
.file-dropzone:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.04);
}
.file-dropzone.is-dragover {
  border-color: var(--accent-cyan, #00e5ff) !important;
  background: rgba(0, 229, 255, 0.12) !important;
  transform: scale(1.01);
}
.file-dropzone.has-file {
  border-color: var(--accent-green, #00e676) !important;
  background: rgba(0, 230, 118, 0.08) !important;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.18);
}
.file-dropzone.has-file .dropzone-text {
  color: #00e676 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
.file-dropzone.has-file .dropzone-sub {
  color: #a7f3d0 !important;
  font-weight: 500 !important;
}
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.dropzone-icon {
  font-size: 24px;
}
.dropzone-text {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}
.dropzone-sub {
  font-size: 11px;
  color: var(--text-secondary);
}
.segmented-control {
  display: flex;
  background: var(--bg-glass-input);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 3px;
  gap: 4px;
}
.segmented__opt {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 150ms ease;
}
.segmented__opt.is-active {
  background: var(--bg-surface-elev);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
/* Live Movie Database Search & Autocomplete in Modal */
.movie-search-container {
  position: relative;
}
.movie-search-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.movie-search-field-wrap .form-input {
  width: 100%;
  padding-right: 36px;
}
.movie-search-loader {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 229, 255, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin-loader 600ms linear infinite;
  pointer-events: none;
}
@keyframes spin-loader {
  to { transform: rotate(360deg); }
}

/* Movie Autocomplete Results Dropdown */
.movie-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(13, 21, 39, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  max-height: 330px;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 28px rgba(0, 229, 255, 0.25);
  z-index: 99999;
}
.movie-search-dropdown-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 14px !important;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 120ms ease;
  box-sizing: border-box;
}
.movie-search-dropdown-item:last-child {
  border-bottom: none;
}
.movie-search-dropdown-item:hover, .movie-search-dropdown-item.is-selected {
  background: rgba(0, 229, 255, 0.16) !important;
}
.movie-search-item-poster {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 64px !important;
  border-radius: var(--radius-xs);
  background: #182235;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.movie-search-item-poster img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.movie-search-item-poster-empty {
  font-size: 20px;
}
.movie-search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.movie-search-item-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.movie-search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}
.search-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}
.search-tag--country {
  color: #cbd5e1;
  font-weight: 500;
}
.search-tag--year {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}
.search-tag--rating {
  color: #fbbf24;
  font-weight: 600;
}
.search-tag--status-watched {
  color: #00e676;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.search-tag--status-watchlist {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Movie Selected Preview Box */
.movie-card-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  margin-top: 4px;
  margin-bottom: 8px;
  animation: pop-in 180ms ease;
}
.preview-poster-img {
  width: 48px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.preview-meta-wrap {
  flex: 1;
  min-width: 0;
}
.preview-movie-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preview-movie-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.preview-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}
.preview-badge--year {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.preview-badge--country {
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.preview-badge--rating {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.preview-clear-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 120ms ease;
}
.preview-clear-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line-subtle);
  background: rgba(10, 15, 26, 0.6);
}

/* Import Progress Console */
.import-progress-box {
  background: #080c14;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}
.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #00e676);
  transition: width 150ms ease;
}
.progress-status-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.progress-log-console {
  height: 110px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  white-space: pre-wrap;
  line-height: 1.4;
}

/* Country Detail Sidebar (Drawer) */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 90vw;
  background: rgba(15, 22, 38, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--line-bright);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: drawer-in 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawer-in {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}
.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-subtle);
}
.sidebar__region {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
}
.sidebar__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}
.sidebar__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
}
.sidebar__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.sidebar__subtabs {
  display: flex;
  background: rgba(10, 15, 26, 0.7);
  border-bottom: 1px solid var(--line-subtle);
}
.ticket-tab {
  flex: 1;
  padding: 12px;
  border-radius: 0;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.ticket-tab.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 2px solid var(--accent-cyan);
}
.sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface-elev);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
}
.side-card__poster {
  width: 48px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.side-card__body {
  flex: 1;
  min-width: 0;
}
.side-card__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-card__actions button {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}
.sidebar__actions {
  padding: 20px 24px;
  border-top: 1px solid var(--line-subtle);
  background: rgba(10, 15, 26, 0.7);
}

/* ---------- Sidebar Curated Suggestions Section ---------- */
.sidebar-suggestions-wrap {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
}
.sidebar-suggestions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sidebar-suggestions-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-suggestion-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.sidebar-suggestion-card:hover {
  background: rgba(20, 30, 55, 0.85);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}
.sidebar-suggestion-poster {
  width: 52px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  background: #090e1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-suggestion-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-suggestion-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.sidebar-suggestion-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.sidebar-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.btn-quick-watchlist {
  padding: 5px 11px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.btn-quick-watchlist:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}
.btn-quick-watched {
  padding: 5px 11px;
  background: rgba(0, 230, 118, 0.16);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.btn-quick-watched:hover {
  background: rgba(0, 230, 118, 0.35);
  border-color: #00e676;
  box-shadow: 0 0 14px rgba(0, 230, 118, 0.35);
  transform: translateY(-1px);
}
.badge-already-added {
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* ---------- 13. Toast Notification ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(15, 22, 38, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.25);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 200ms ease;
}
@keyframes toast-in {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---------- 14. Responsive Layout Adjustments ---------- */
@media (max-width: 768px) {
  .app-header {
    padding: 8px 12px;
  }
  .brand-text {
    display: none;
  }
  .nav-actions .action-label {
    display: none;
  }
  .btn-action-glow, .btn-action-glass {
    padding: 7px 10px;
  }
  .tab-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .tab-btn__label {
    display: none;
  }
  .globe-search {
    top: 12px;
    left: 12px;
    width: calc(100vw - 24px);
  }
  .globe-hud-bottom {
    bottom: 12px;
    flex-direction: column;
    gap: 8px;
  }
  .globe-hint {
    display: none;
  }
  .sidebar {
    width: 100vw;
    max-width: 100vw;
  }
}

/* =========================================================================
   15. WORLD CINEMA CHALLENGE & LIST MAKER MODAL STYLES
   ========================================================================= */
.challenge-modal-card {
  max-width: 960px;
  width: min(960px, 95vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0d1527 !important;
  border: 1px solid rgba(0, 229, 255, 0.35) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 32px rgba(0, 229, 255, 0.2) !important;
  position: relative !important;
  z-index: 1002 !important;
}
.challenge-lux-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-subtle);
  background: rgba(10, 15, 26, 0.7);
}
.challenge-lux-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.challenge-lux-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.2);
}
.challenge-lux-icon-badge i {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.challenge-lux-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.challenge-lux-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.challenge-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.challenge-lux-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(10, 15, 26, 0.5);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.lux-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lux-filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}
.lux-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
}
.lux-label-with-icon i {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  color: var(--accent-cyan);
}
.lux-filter-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}
.lux-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.lux-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-glass);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 160ms ease;
  cursor: pointer;
}
.lux-pill i {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  opacity: 0.85;
}
.lux-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.lux-pill.is-active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.18) 0%, rgba(56, 189, 248, 0.1) 100%);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}
.lux-pill.is-active i {
  color: #00e5ff;
  opacity: 1;
}

.lux-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
}
.lux-toggle-info strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}
.lux-toggle-info span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
}
.lux-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.lux-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.lux-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .2s;
  border-radius: 24px;
}
.lux-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
.lux-switch input:checked + .lux-slider {
  background: linear-gradient(90deg, var(--accent-cyan), #00b4d8);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}
.lux-switch input:checked + .lux-slider:before {
  transform: translateX(20px);
}

.btn-lux-hero {
  width: 100%;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #00e5ff 0%, #00b4d8 100%);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #05070d;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
  cursor: pointer;
  transition: all 180ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-lux-hero i {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
}
.btn-lux-hero:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 28px rgba(0, 229, 255, 0.6);
  background: linear-gradient(135deg, #38bdf8 0%, #00e5ff 100%);
}

/* Challenge Results Section */
.challenge-results-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.challenge-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-subtle);
}
.challenge-itinerary-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.itinerary-title-icon {
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
}
.itinerary-title-icon i {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}
.challenge-itinerary-sub {
  display: flex;
  align-items: center;
  margin-top: 4px;
  flex-wrap: wrap;
}
.itinerary-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  font-size: 11.5px;
  font-weight: 700;
  color: #00e5ff;
  font-family: var(--font-display);
}
.itinerary-sub-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 8px;
}
.itinerary-progress-text {
  font-size: 12px;
  color: var(--accent-emerald);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.itinerary-progress-text i {
  width: 14px;
  height: 14px;
}

.challenge-progress-bar-wrap {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.challenge-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #00e676 100%);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
  transition: width 200ms ease;
}
.challenge-results-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-challenge-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}
.btn-challenge-primary i {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}
.btn-challenge-primary:hover {
  background: rgba(0, 229, 255, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.35);
}

.btn-challenge-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 160ms ease;
}
.btn-challenge-action i {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.btn-challenge-action:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Timeline Ticket Cards - 2-Column Responsive Cinema Grid */
.challenge-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 768px) {
  .challenge-timeline {
    grid-template-columns: 1fr;
  }
}

.lux-ticket-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: rgba(14, 21, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.lux-ticket-card:hover {
  background: rgba(18, 27, 48, 0.98);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.lux-card-poster-col {
  flex-shrink: 0;
}

.lux-ticket-poster {
  width: 92px;
  height: 138px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #090e18;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.lux-ticket-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.lux-ticket-card:hover .lux-ticket-poster img {
  transform: scale(1.05);
}

.lux-poster-day-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: 0.5px;
}

.lux-card-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lux-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.lux-card-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}
.lux-ticket-badge-country {
  color: #e2e8f0;
  font-weight: 700;
}
.lux-ticket-year {
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.lux-ticket-title-row {
  margin: 4px 0 2px;
}
.lux-ticket-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.35;
}
.lux-ticket-title:hover {
  color: var(--accent-cyan);
}
.lux-link-icon {
  width: 13px;
  height: 13px;
  opacity: 0.6;
  stroke-width: 2;
  flex-shrink: 0;
}

.lux-ticket-director {
  font-size: 11.5px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lux-ticket-director-spacer {
  height: 8px;
}

.lux-ticket-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-icon-ticket {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-glass);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 140ms ease;
}
.btn-icon-ticket i {
  width: 13px;
  height: 13px;
}
.btn-icon-ticket:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(45deg);
}

.btn-ticket-log {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}
.btn-ticket-log i {
  width: 13px;
  height: 13px;
}
.btn-ticket-log:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn-ticket-watched {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.45);
  color: #00e676;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-ticket-watched i {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.btn-ticket-queue {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: #00e5ff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
}
.btn-ticket-queue i {
  width: 13px;
  height: 13px;
}
.btn-ticket-queue:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.4);
}

.btn-ticket-queued {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.55);
  color: #00e5ff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-ticket-queued i {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

/* =========================================================================
   16. PWA INSTALL BANNER STYLES
   ========================================================================= */
.pwa-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  background: rgba(15, 22, 38, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-elevated);
  z-index: 99999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pwa-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pwa-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pwa-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pwa-text {
  flex: 1;
  min-width: 0;
}
.pwa-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}
.pwa-text span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}
.pwa-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pwa-close-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 140ms ease;
}
.pwa-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* =========================================================================
   USER AUTHENTICATION & MULTI-DEVICE CLOUD SYNC
   ========================================================================= */
.nav-auth-container {
  display: flex;
  align-items: center;
}

.btn-auth-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.btn-auth-login:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.45));
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

/* Header User Profile Menu */
.user-menu-wrapper {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f3f4f6;
  cursor: pointer;
  transition: all 0.18s ease;
}

.user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.user-avatar-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.user-name-label {
  font-size: 13px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.user-sync-dot--syncing, .user-sync-dot--pending {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: pulseSync 1.2s infinite;
}

.user-sync-dot--error {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.user-caret {
  font-size: 10px;
  opacity: 0.7;
}

@keyframes pulseSync {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: rgba(15, 20, 32, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 8px;
  z-index: 1000;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-header {
  padding: 10px 12px;
}

.user-dropdown-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.user-dropdown-email {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.user-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.user-dropdown-item--danger {
  color: #f87171;
}

.user-dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* =========================================================================
   MODAL WRAPPER SYSTEM (.modal pattern — used by Auth & Account modals)
   ========================================================================= */

/* The full-screen backdrop wrapper */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: modalFadeIn 0.22s ease;
}

.modal.is-open,
.modal:not([hidden]) {
  display: flex;
}

/* Invisible overlay for click-outside close */
.modal__overlay {
  position: absolute;
  inset: 0;
  cursor: default;
}

/* Dialog card container */
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  animation: modal-enter 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shared modal header */
.modal__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.modal__subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.modal__close {
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  transition: all 150ms ease;
  cursor: pointer;
  border: none;
  background: transparent;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Scrollable body for tall modals */
.modal-body-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Auth Modal Styles */
.modal__dialog--auth {
  max-width: 420px;
  width: 92vw;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.96) 0%, rgba(11, 15, 25, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 40px rgba(99, 102, 241, 0.15);
  padding: 30px;
  text-align: center;
}

.auth-modal-brand-badge {
  font-size: 36px;
  margin-bottom: 8px;
}

.auth-tabs-nav {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: var(--radius-md);
  margin: 20px 0 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-tab-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-error-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.4;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.auth-switch-prompt {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.auth-switch-prompt a {
  color: var(--brand-accent, #6366f1);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch-prompt a:hover {
  text-decoration: underline;
}

/* Sync Status Badges */
.sync-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sync-badge--synced {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.sync-badge--syncing, .sync-badge--pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.sync-badge--error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.sync-badge--guest {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.feature-card--highlight {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.8), 0 0 24px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}

/* =========================================================================
   ACCOUNT & MULTI-DEVICE MANAGEMENT MODAL STYLES
   ========================================================================= */

.modal__dialog--account {
  max-width: 580px;
  width: 94vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 27, 45, 0.98) 0%, rgba(10, 15, 26, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 40px rgba(99, 102, 241, 0.12);
  padding: 24px 28px;
  overflow: hidden;
}

.account-nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: var(--radius-md);
  margin: 16px 0 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.account-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
}

.account-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.account-tab-btn.is-active {
  background: rgba(99, 102, 241, 0.25);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.account-section-heading {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

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

.account-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 20px 0;
}

.account-msg-box {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.account-msg-box--success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.account-msg-box--error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Cloud Metrics Grid */
.cloud-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.cloud-metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
}

.cloud-metric-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.cloud-metric-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.cloud-sync-info-box {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.account-actions-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
}

/* Danger Zone */
.account-danger-zone {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
}

.account-danger-title {
  color: #f87171;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.danger-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Connected Devices List */
.devices-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.device-item-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.18s ease;
}

.device-item-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.device-item-card--current {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.device-icon-box {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.device-meta-wrap {
  flex: 1;
  min-width: 0;
}

.device-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.device-badge-current {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.device-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.device-time-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #94a3b8;
}

.device-btn-revoke {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .modal__dialog--account {
    padding: 18px 16px;
  }
  .account-tab-btn {
    font-size: 11.5px;
    padding: 7px 6px;
  }
  .cloud-metrics-grid {
    grid-template-columns: 1fr;
  }
  .danger-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================================
   10. Past Due / Grace Period Warning Banner & Notice
   ========================================================================= */
.grace-period-banner {
  position: sticky;
  top: 0;
  z-index: 99998;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  font-family: var(--font-sans);
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  animation: slideDownBanner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBanner {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.grace-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.grace-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.grace-banner-text {
  line-height: 1.45;
  color: #fffbeb;
}

.grace-banner-text strong {
  color: #ffffff;
  font-weight: 700;
}

.grace-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-grace-action {
  background: #ffffff !important;
  color: #b45309 !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-grace-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
  background: #fffbeb !important;
}

.btn-grace-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.btn-grace-close:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .grace-period-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 10px;
  }
  .grace-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================================
   11. Subscription Tab & Customer Portal Modal Styling
   ========================================================================= */
.account-subscription-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-hero-card {
  background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.12), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-lg, 14px);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.sub-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.badge-plan-free {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-plan-pro {
  background: rgba(0, 229, 255, 0.18);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.badge-plan-lifetime {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.25));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.badge-plan-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.sub-plan-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-display);
}

.sub-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e5ff;
  font-size: 20px;
  flex-shrink: 0;
}

.sub-plan-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
}

.sub-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  margin-top: 6px;
}

.sub-meta-row--warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.sub-meta-label {
  color: #94a3b8;
}

.sub-meta-row--warning .sub-meta-label {
  color: #fde68a;
}

.sub-meta-value {
  font-weight: 600;
  color: #ffffff;
}

.subscription-syncing-notice {
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px dashed rgba(0, 229, 255, 0.4);
  border-radius: 8px;
  font-size: 12px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseNotice 2s infinite ease-in-out;
}

@keyframes pulseNotice {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.55; }
}

.spinner-inline {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 229, 255, 0.3);
  border-top-color: #00e5ff;
  border-radius: 50%;
  animation: spinInline 0.8s linear infinite;
  display: inline-block;
}

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

.sub-benefits-ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sub-benefits-ul li {
  font-size: 12.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-benefits-ul li.benefit-active {
  color: #e2e8f0;
}

/* =========================================================================
   FREEMIUM UX, PRO TEASER BADGES & UPGRADE MODAL STYLES
   ========================================================================= */

/* Luxury Gold & Neon PRO Micro Badges */
.badge-pro-micro {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* For Active Pro Members: Hide redundant teaser badges across all toolbars and modals */
body.is-pro-user .badge-pro-micro,
body.is-pro-user .lux-pill--pro .badge-pro-micro,
body.is-pro-user .badge-pro-gold,
body.is-pro-user .badge-pro-neon {
  display: none !important;
}

body.is-pro-user .lux-pill--pro {
  border-color: rgba(255, 255, 255, 0.12) !important;
}
body.is-pro-user .lux-pill--pro:hover {
  border-color: rgba(0, 229, 255, 0.4) !important;
  background: rgba(0, 229, 255, 0.08) !important;
}

.badge-pro-gold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.badge-pro-neon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #00e5ff;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 9999px;
}

/* Locked Pill & Teaser Controls */
.lux-pill--pro {
  position: relative;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.lux-pill--pro:hover {
  border-color: rgba(245, 158, 11, 0.6) !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

.pro-locked-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pro-locked-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-style: solid;
  transform: translateY(-1px);
}

/* Glassmorphism Teaser Overlay */
.pro-teaser-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.pro-teaser-blur {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.65;
}

.pro-teaser-lock-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 16, 28, 0.7) 0%, rgba(6, 9, 17, 0.9) 100%);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  z-index: 10;
}

/* Upgrade Modal Overlays */
.upgrade-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.upgrade-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.upgrade-modal-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.15);
  border-radius: 20px;
  padding: 32px 28px 28px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.upgrade-modal-overlay.active .upgrade-modal-card {
  transform: scale(1) translateY(0);
}

.upgrade-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.upgrade-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.upgrade-hero-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(0, 229, 255, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.upgrade-hero-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.upgrade-hero-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 420px;
}

.upgrade-feature-highlight {
  padding: 10px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  font-size: 12.5px;
  color: #fde68a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.upgrade-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

.upgrade-check-icon {
  color: #00e676;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

.upgrade-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-upgrade-cta {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0f19;
  font-family: var(--font-display, sans-serif);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
  text-decoration: none;
}

.btn-upgrade-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
  filter: brightness(1.08);
}

.btn-upgrade-secondary {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12.5px;
  cursor: pointer;
  transition: color 0.2s;
  text-align: center;
}

.btn-upgrade-secondary:hover {
  color: #cbd5e1;
}

.upgrade-guarantee-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #00e676;
  text-align: center;
  font-weight: 600;
}

/* =========================================================================
   PRO FEATURE GATES: CONTINENTAL ANALYTICS & 3D GLOBE THEMES
   ========================================================================= */
.feature-card--analytics {
  border-color: rgba(0, 229, 255, 0.2);
  background: linear-gradient(180deg, rgba(14, 21, 37, 0.9) 0%, rgba(9, 14, 26, 0.95) 100%);
}

.continent-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.continent-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.continent-stat-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.25);
}

.continent-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.continent-pct-pill {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.continent-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.continent-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff 0%, #00e676 100%);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.continent-stat-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
}

/* 3D Globe Theme / Skin Selector */
.globe-skin-segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(11, 16, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  margin-left: 8px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.globe-skin-segmented::-webkit-scrollbar {
  display: none;
}

.globe-skin-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.globe-skin-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.globe-skin-btn.is-active {
  background: rgba(0, 229, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  font-weight: 700;
}

.globe-skin-btn[data-skin="flags"].is-active {
  background: rgba(0, 230, 118, 0.16);
  border-color: rgba(0, 230, 118, 0.5);
  color: #00e676;
}

.globe-skin-btn[data-skin="amoled"].is-active {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd700;
}

.globe-skin-btn[data-skin="cyberpunk"].is-active {
  background: rgba(255, 0, 127, 0.18);
  border-color: rgba(255, 0, 127, 0.5);
  color: #ff007f;
}

.globe-skin-btn[data-skin="vintage"].is-active {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(217, 119, 6, 0.5);
  color: #fbbf24;
}

.globe-skin-btn[data-skin="satellite"].is-active {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
}

/* =========================================================================
   LISTS HUB & CUSTOM CINEMA CHALLENGES SYSTEM
   ========================================================================= */

.lists-panel {
  padding-bottom: 80px;
}

/* Lists Hub Hero Metrics Bar */
.lists-stats-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.lists-stat-card {
  background: rgba(14, 21, 38, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lists-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.lists-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-display);
  line-height: 1.1;
}

.lists-stat-val--active {
  color: #38bdf8;
}

.lists-stat-val--gold {
  color: #fbbf24;
}

.lists-stat-val--cyan {
  color: #00e5ff;
}

.lists-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.lists-stat-card--progress {
  grid-column: span 1;
}

@media (min-width: 900px) {
  .lists-stat-card--progress {
    grid-column: span 2;
  }
}

.lists-progress-header-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lists-hero-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.lists-hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #00e676);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
}

.lists-hero-progress-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 6px;
  font-family: monospace;
}

/* Controls & Filter Bar */
.lists-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.lists-filters-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(14, 21, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lists-filters-group::-webkit-scrollbar {
  display: none;
}

.lists-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lists-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.lists-filter-btn.is-active {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.lists-search-wrap {
  max-width: 320px;
}


/* Custom Lists Grid */
.custom-lists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

/* List Card */
.list-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.15);
}

.list-card.is-complete {
  border-color: rgba(251, 191, 36, 0.35);
}

.list-card.is-complete:hover {
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(251, 191, 36, 0.2);
}

.list-card.is-archived {
  opacity: 0.65;
  filter: grayscale(0.2);
}

.list-card.is-archived:hover {
  opacity: 0.95;
  filter: none;
}

/* Posters Collage */
.list-card-header {
  position: relative;
  height: 140px;
  background: #090d16;
  overflow: hidden;
}

.list-collage {
  display: grid;
  height: 100%;
  width: 100%;
  gap: 2px;
  background: rgba(0, 0, 0, 0.4);
}

.list-collage.count-1 { grid-template-columns: 1fr; }
.list-collage.count-2 { grid-template-columns: 1fr 1fr; }
.list-collage.count-3 { grid-template-columns: 1fr 1fr 1fr; }
.list-collage.count-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.collage-item {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.list-card:hover .collage-item img {
  transform: scale(1.05);
}

.collage-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

/* Badges on Card Header */
.list-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.list-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.list-badge--challenge {
  background: rgba(168, 85, 247, 0.85);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.list-badge--custom {
  background: rgba(14, 165, 233, 0.85);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.list-badge--completed {
  background: rgba(245, 158, 11, 0.9);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.list-badge--archived {
  background: rgba(100, 116, 139, 0.85);
  color: #ffffff;
}

/* Card Body */
.list-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.list-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.list-card-desc {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0 0 14px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-progress-section {
  margin-top: auto;
}

.list-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.list-progress-label {
  color: #94a3b8;
}

.list-progress-label strong {
  color: #ffffff;
}

.list-progress-pct {
  font-weight: 800;
  font-family: monospace;
  color: #00e5ff;
}

.list-progress-pct.is-gold {
  color: #fbbf24;
}

.list-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.list-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #00e676);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.list-progress-fill.is-gold {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.list-card-footer {
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.list-card-action {
  font-weight: 700;
  color: #00e5ff;
  transition: transform 0.16s ease;
}

.list-card:hover .list-card-action {
  transform: translateX(3px);
}

/* Empty State */
.lists-empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  background: rgba(14, 21, 38, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
}

.lists-empty-icon {
  font-size: 48px;
  color: #64748b;
  margin-bottom: 14px;
}

.lists-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.lists-empty-desc {
  font-size: 14px;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto 24px auto;
  line-height: 1.5;
}

.lists-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================================================
   LIST DETAIL MODAL / DRAWER
   ========================================================================= */

.list-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 780px;
  max-height: 88vh;
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.15);
}

.list-detail-header {
  padding: 22px 24px 16px 24px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.list-detail-title-wrap {
  flex: 1;
  min-width: 0;
}

.list-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.list-detail-title-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  padding: 4px 6px;
  outline: none;
  transition: all 0.16s ease;
}

.list-detail-title-input:hover,
.list-detail-title-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.list-detail-desc-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 13.5px;
  padding: 4px 6px;
  outline: none;
  margin-top: 4px;
  transition: all 0.16s ease;
}

.list-detail-desc-input:hover,
.list-detail-desc-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Detail Progress Bar */
.list-detail-progress-bar-wrap {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-detail-progress-info {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.list-detail-progress-info strong {
  color: #ffffff;
}

.detail-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.detail-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #00e676);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.detail-progress-fill.is-gold {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

/* Detail Toolbar */
.list-detail-toolbar {
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-danger-hover:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Checklist Items */
.list-detail-checklist-wrap {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(88vh - 260px);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
}

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

.checklist-item.is-watched {
  background: rgba(0, 230, 118, 0.05);
  border-color: rgba(0, 230, 118, 0.25);
}

.checklist-check-col {
  flex-shrink: 0;
}

.checklist-checkbox {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.checklist-checkbox:hover {
  border-color: #00e676;
  background: rgba(0, 230, 118, 0.1);
}

.checklist-checkbox.is-checked {
  background: #00e676;
  border-color: #00e676;
  color: #040810;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.checklist-day-badge {
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 3px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.checklist-poster-col {
  width: 44px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.checklist-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checklist-info-col {
  flex: 1;
  min-width: 0;
}

.checklist-film-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.checklist-film-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.checklist-item.is-watched .checklist-film-title {
  color: #e2e8f0;
}

.checklist-film-year {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}

.checklist-film-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}

.checklist-flag {
  font-size: 14px;
}

.checklist-country {
  color: #38bdf8;
  font-weight: 600;
}

.checklist-director {
  color: #64748b;
}

.checklist-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-item-action {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-item-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-item-reroll:hover {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.3);
}

.btn-item-delete:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

@media (max-width: 600px) {
  .btn-label-desktop {
    display: none;
  }
}

/* Completion Celebration Modal / Overlay */
.challenge-completion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInCelebration 0.3s ease-out;
}

@keyframes fadeInCelebration {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.completion-card {
  background: linear-gradient(135deg, #0e1526, #060912);
  border: 2px solid rgba(251, 191, 36, 0.6);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  text-align: center;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(251, 191, 36, 0.3);
}

.completion-trophy {
  font-size: 64px;
  margin-bottom: 12px;
  animation: bounceTrophy 1.2s infinite alternate ease-in-out;
}

@keyframes bounceTrophy {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.completion-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  font-family: var(--font-display);
}

.completion-desc {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.completion-badge-gold {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 8px;
  color: #fbbf24;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

/* =========================================================================
   DIGITAL CINEMA PASSPORT & DISTRESSED INK STAMP SYSTEM
   ========================================================================= */

/* Showcase Container */
.passport-showcase-wrap {
  margin-bottom: 36px;
  perspective: 1200px;
}

.passport-booklet-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .passport-booklet-container {
    grid-template-columns: 380px 1fr;
    gap: 0;
    background: #070b14;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 229, 255, 0.08);
  }
}

/* Section Divider */
.passport-section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 24px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.divider-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

/* Left Column: Passport Cover & ID Page */
.passport-booklet-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================
   PASSPORT COVER (4 Gamification Tiers)
   ========================================== */
.passport-cover-wrap {
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.passport-cover-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* 1. Navy Leather (Explorer) */
.passport-cover--navy {
  background: radial-gradient(circle at 50% 30%, #152238, #090f1a);
  border-color: rgba(56, 189, 248, 0.3);
}

.passport-cover--navy .cover-gold-text,
.passport-cover--navy .emblem-svg,
.passport-cover--navy .cover-bearer-name {
  color: #e2e8f0;
  text-shadow: 0 0 12px rgba(226, 232, 240, 0.4);
}

/* 2. Emerald Silk (Traveler) */
.passport-cover--emerald {
  background: radial-gradient(circle at 50% 30%, #06382b, #021a13);
  border-color: rgba(16, 185, 129, 0.4);
}

.passport-cover--emerald .cover-gold-text,
.passport-cover--emerald .emblem-svg,
.passport-cover--emerald .cover-bearer-name {
  color: #facc15;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.5);
}

/* 3. Royal Burgundy (Globetrotter) */
.passport-cover--burgundy {
  background: radial-gradient(circle at 50% 30%, #401026, #1c0510);
  border-color: rgba(244, 63, 94, 0.4);
}

.passport-cover--burgundy .cover-gold-text,
.passport-cover--burgundy .emblem-svg,
.passport-cover--burgundy .cover-bearer-name {
  color: #fbbf24;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
}

/* 4. Obsidian Titanium (World Cinema Master) */
.passport-cover--obsidian {
  background: radial-gradient(circle at 50% 30%, #171724, #06060a);
  border-color: rgba(251, 191, 36, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(251, 191, 36, 0.25);
}

.passport-cover--obsidian .cover-gold-text,
.passport-cover--obsidian .emblem-svg,
.passport-cover--obsidian .cover-bearer-name {
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Cover Texture Pattern */
.cover-emboss-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}

.cover-header {
  text-align: center;
  margin-bottom: 18px;
}

.cover-nation-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 4px;
  font-family: var(--font-display);
}

.cover-gold-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.cover-emblem-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.cover-emblem-gold {
  width: 90px;
  height: 90px;
}

.cover-footer {
  text-align: center;
  margin-top: 14px;
}

.cover-passport-label {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 5px;
}

.cover-bearer-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 6px;
}

.cover-passport-no {
  font-size: 12px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin-top: 2px;
}

.cover-chip-symbol {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.bio-chip-rect {
  width: 28px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.bio-chip-rect::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  right: 6px;
  bottom: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* ==========================================
   IDENTIFICATION (BIO) PAGE
   ========================================== */
.passport-id-wrap {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.id-page-container {
  position: relative;
}

.id-page-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  pointer-events: none;
}

.id-page-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.id-page-state-seal {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #38bdf8;
}

.id-page-doc-type {
  font-size: 9.5px;
  font-family: monospace;
  color: #64748b;
  margin-top: 2px;
}

.id-page-body {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.id-photo-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.id-photo-inner {
  width: 86px;
  height: 108px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.id-avatar-silhouette {
  font-size: 38px;
  color: #64748b;
}

.id-photo-stamp-overlay {
  position: absolute;
  bottom: 4px;
  right: -8px;
  transform: rotate(-15deg);
  border: 1px solid rgba(239, 68, 68, 0.6);
  padding: 1px 6px;
  border-radius: 3px;
  color: rgba(239, 68, 68, 0.8);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.id-bearer-signature {
  font-family: 'Brush Script MT', cursive, sans-serif;
  font-size: 16px;
  color: #94a3b8;
  margin-top: 6px;
  text-align: center;
}

.id-details-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.id-field label {
  display: block;
  font-size: 8.5px;
  color: #64748b;
  font-family: monospace;
  letter-spacing: 0.4px;
}

.id-field .id-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.id-field .id-val--highlight {
  color: #38bdf8;
  font-family: monospace;
  font-weight: 800;
}

.id-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.id-mrz-zone {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mrz-line {
  font-family: 'OCR-B', monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* ==========================================
   VISA STAMP BOOKLET (Right Page)
   ========================================== */
.passport-booklet-right {
  display: flex;
  flex-direction: column;
}

.passport-stamps-booklet {
  background: #090e1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.booklet-page-surface {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.booklet-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  font-family: monospace;
}

.booklet-watermark-text {
  color: #38bdf8;
  letter-spacing: 1px;
}

.booklet-stamps-content {
  flex: 1;
}

.passport-stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* Empty State */
.passport-empty-stamps {
  text-align: center;
  padding: 40px 20px;
}

.empty-stamp-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

.passport-empty-stamps h4 {
  color: #ffffff;
  margin: 0 0 6px 0;
}

.passport-empty-stamps p {
  color: #94a3b8;
  font-size: 13px;
  max-width: 360px;
  margin: 0 auto 16px auto;
}

/* ==========================================
   AUTHENTIC DISTRESSED INK VISA STAMPS
   ========================================== */
.stamp-slot {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.stamp-slot:hover {
  transform: scale(1.04) rotate(0deg) !important;
  z-index: 10;
  filter: drop-shadow(0 8px 20px rgba(0, 229, 255, 0.25));
}

.stamp-ink {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  position: relative;
  background: rgba(14, 21, 38, 0.4);
  border: 2px solid var(--ink-color, #2563eb);
  color: var(--ink-color, #2563eb);
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Distressed Border Outline */
.stamp-border-distressed {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px dashed var(--ink-color, #2563eb);
  opacity: 0.6;
  border-radius: 6px;
  pointer-events: none;
}

/* Continent Stamp Geometries */
.stamp-shape--circle {
  border-radius: 999px;
  padding: 16px 20px;
}

.stamp-shape--circle .stamp-border-distressed {
  border-radius: 999px;
}

.stamp-shape--square-cut {
  border-radius: 4px;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
}

.stamp-shape--hexagon {
  border-radius: 8px;
  border-style: double;
  border-width: 3px;
}

.stamp-shape--oval-diamond {
  border-radius: 18px;
}

.stamp-shape--octagon {
  border-radius: 12px;
  border-style: dashed;
}

.stamp-shape--capsule {
  border-radius: 20px;
}

/* Special Genesis Gold Stamp */
.stamp-ink--genesis {
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

/* Stamp Internal Typography */
.stamp-inner-content {
  position: relative;
  z-index: 1;
}

.stamp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
  margin-bottom: 4px;
}

.stamp-flag {
  font-size: 16px;
}

.stamp-intl-code {
  font-size: 8px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.stamp-country-title {
  font-size: 14px;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.stamp-first-film-title {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 2px 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stamp-date-line {
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.stamp-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  font-family: monospace;
  margin-top: 4px;
  opacity: 0.85;
}

/* Pending Visa Stamp (Watchlist) */
.stamp-ink--pending {
  border-color: rgba(148, 163, 184, 0.4);
  color: rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.02);
}

.stamp-ink--pending .stamp-border-distressed {
  border-color: rgba(148, 163, 184, 0.3);
}

.stamp-visa-type {
  font-size: 9px;
  font-family: monospace;
  color: #38bdf8;
  margin-top: 2px;
}

/* Special Floating Badges */
.stamp-special-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  z-index: 5;
}

.stamp-special-badge--genesis {
  background: #f59e0b;
  color: #000000;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}

.stamp-special-badge--gem {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

/* ==========================================
   BOOKLET PAGINATION CONTROLS
   ========================================== */
.booklet-page-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.booklet-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-page-nav {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-page-nav:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-pills-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-pill {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.page-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.page-pill.is-active {
  background: rgba(0, 229, 255, 0.2);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
}

/* Passport Tier Pill in Metrics Grid */
.passport-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ==========================================
   STAMP INSPECTOR MODAL
   ========================================== */
.modal-card--stamp-inspector {
  max-width: 680px;
}

.stamp-inspect-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stamp-inspect-flag {
  font-size: 28px;
}

.stamp-inspect-sub {
  font-size: 12px;
  color: #94a3b8;
  font-family: monospace;
}

.stamp-inspect-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 16px 20px;
}

@media (min-width: 600px) {
  .stamp-inspect-body {
    grid-template-columns: 240px 1fr;
  }
}

.stamp-inspect-graphic-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stamp-ink--large {
  min-height: 160px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stamp-shape--circle.stamp-ink--large {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 20px 22px;
}

.stamp-shape--circle .stamp-inner-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stamp-shape--circle .stamp-header-row,
.stamp-shape--circle .stamp-footer-row {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.stamp-details-heading {
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stamp-film-card {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
}

.stamp-film-poster {
  width: 60px;
  height: 90px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.stamp-film-poster-fallback {
  width: 60px;
  height: 90px;
  border-radius: 4px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stamp-film-meta {
  flex: 1;
  min-width: 0;
}

.stamp-film-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.stamp-film-director,
.stamp-film-date {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.stamp-film-status {
  margin-top: 8px;
}

.stamp-country-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.stamp-history-stat {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
}

.history-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #00e5ff;
  font-family: var(--font-display);
}

.history-lbl {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* =========================================================================
   FLOATING MAP EXPLORATION COUNTER & PROGRESS BAR (3D GLOBE & 2D FLAT MAP)
   ========================================================================= */

.globe-exploration-counter {
  position: relative;
  z-index: 51;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.globe-exploration-counter:hover {
  transform: translateY(-2px);
}

.exploration-counter-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(11, 16, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.08);
  transition: all 0.22s ease;
}

.globe-exploration-counter:hover .exploration-counter-inner {
  border-color: rgba(0, 230, 118, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 230, 118, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.exploration-counter-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #00e676;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.globe-exploration-counter:hover .exploration-counter-icon {
  transform: rotate(45deg);
}

.exploration-counter-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 175px;
}

.exploration-counter-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.2;
}

.exploration-countries-text {
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
}

.exploration-countries-text strong {
  color: #00e676;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-display);
}

.exploration-countries-text--empty {
  color: #f1f5f9;
  font-size: 12px;
}

.exploration-countries-text--empty strong {
  color: #fbbf24;
  font-size: 12.5px;
}

.exploration-percentage-pill {
  color: #00e5ff;
  font-size: 12px;
  font-weight: 800;
  font-family: monospace;
}

.exploration-percentage-pill--import {
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #00e5ff;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.exploration-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.exploration-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00e5ff, #00e676);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exploration-counter-chevron {
  color: #64748b;
  font-size: 14px;
  display: flex;
  align-items: center;
  transition: all 0.18s ease;
}

.globe-exploration-counter:hover .exploration-counter-chevron {
  color: #00e5ff;
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .exploration-counter-inner {
    padding: 6px 12px;
    gap: 8px;
  }
  .exploration-counter-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .exploration-counter-content {
    min-width: 115px;
  }
  .exploration-countries-text {
    font-size: 11px;
  }
  .exploration-countries-text strong {
    font-size: 12px;
  }
  .exploration-percentage-pill {
    font-size: 10.5px;
  }
  .exploration-counter-chevron {
    display: none;
  }
}

/* =========================================================================
   ONBOARDING TOUR MODAL & SPOTLIGHT SYSTEM
   ========================================================================= */

.onboarding-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.onboarding-tour-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.onboarding-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(135deg, rgba(14, 21, 38, 0.96), rgba(6, 10, 20, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 229, 255, 0.15);
  overflow: hidden;
  animation: tourCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tourCardPop {
  from {
    transform: scale(0.92) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.onboarding-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.onboarding-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}

.onboarding-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.onboarding-card-body {
  padding: 20px 24px;
}

/* Visual illustration container */
.onboarding-visual-container {
  margin-bottom: 20px;
}

/* Step 0: Welcome visual */
.tour-visual-welcome {
  text-align: center;
}

.tour-globe-glow-card {
  background: radial-gradient(circle at 50% 40%, rgba(0, 229, 255, 0.15), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 16px;
  padding: 24px 20px;
}

.tour-globe-emblem {
  font-size: 54px;
  margin-bottom: 12px;
  animation: floatEmblem 3s ease-in-out infinite alternate;
}

@keyframes floatEmblem {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.tour-welcome-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Step 1: Letterboxd hook visual */
.tour-visual-import-hook {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tour-import-preview-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
}

.tour-lb-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
}

.lb-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.lb-circle-green { background: #00e054; }
.lb-circle-orange { background: #ff8000; }
.lb-circle-blue { background: #40bcf4; }

.tour-import-arrow-wrap {
  color: #00e5ff;
  font-size: 20px;
  animation: pulseArrow 1.5s infinite alternate ease-in-out;
}

@keyframes pulseArrow {
  from { transform: translateX(0); }
  to { transform: translateX(4px); }
}

.tour-flm-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #00e676;
  font-size: 14px;
}

.tour-feature-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.point-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #94a3b8;
}

.point-item svg {
  color: #00e676;
  width: 15px;
  height: 15px;
}

/* Step 2: Export steps stepper */
.tour-visual-export-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tour-export-stepper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 12px;
}

.export-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.2);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: #00e5ff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-desc strong {
  display: block;
  font-size: 11.5px;
  color: #ffffff;
}

.step-desc span {
  font-size: 10px;
  color: #94a3b8;
}

.export-step-divider {
  color: #64748b;
  font-size: 14px;
}

.tour-export-direct-link {
  text-align: center;
}

/* Step 3: Magic visual */
.tour-visual-magic {
  text-align: center;
}

.magic-pipeline-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.magic-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 8px;
}

.magic-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.magic-card-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.magic-sub {
  font-size: 9.5px;
  color: #94a3b8;
}

.magic-sparkle-arrow {
  color: #fbbf24;
  font-size: 16px;
}

/* Step 4: Launch visual */
.tour-visual-launch {
  text-align: center;
  padding: 6px 0;
}

.launch-rocket-icon {
  font-size: 42px;
  margin-bottom: 10px;
  animation: rocketBob 1.5s ease-in-out infinite alternate;
}

.launch-feature-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.launch-badge {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00e5ff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

@keyframes rocketBob {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-8px) rotate(4deg); }
}

.launch-heading {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  font-family: var(--font-display);
}

.launch-p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 0;
}

/* Text elements */
.onboarding-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.onboarding-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: #00e5ff;
  margin: 0 0 10px 0;
}

.onboarding-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

/* Footer & Dots */
.onboarding-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.onboarding-dots-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-dot.is-active {
  width: 22px;
  background: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.onboarding-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-tour-launch {
  background: linear-gradient(135deg, #00e676, #00e5ff) !important;
  color: #040812 !important;
  font-weight: 800 !important;
}

/* Spotlight Highlight Effect */
.tour-spotlight-active {
  position: relative !important;
  z-index: 2605 !important;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.5), 0 0 25px rgba(0, 229, 255, 0.8) !important;
  border-color: #00e5ff !important;
  animation: spotlightPulse 1.5s infinite alternate ease-in-out !important;
}

@keyframes spotlightPulse {
  from { box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.4), 0 0 15px rgba(0, 229, 255, 0.5); }
  to { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.8), 0 0 30px rgba(0, 229, 255, 0.9); }
}

@media (max-width: 600px) {
  .onboarding-card {
    border-radius: 18px;
  }
  .onboarding-card-header {
    padding: 16px 18px 10px 18px;
  }
  .onboarding-card-body {
    padding: 16px 18px;
  }
  .onboarding-card-footer {
    padding: 14px 18px 16px 18px;
    flex-direction: column-reverse;
    gap: 14px;
  }
  .onboarding-actions-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .tour-export-stepper,
  .magic-pipeline-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .export-step-divider,
  .magic-sparkle-arrow {
    display: none;
  }
}

/* =========================================================================
   APP PRELOADER & LUXURY LOADING SCREEN
   ========================================================================= */

.app-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060911;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.app-preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 380px;
}

.preloader-emblem-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.preloader-orbital-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid transparent;
  border-top-color: #00e5ff;
  border-right-color: #00e676;
  border-radius: 50%;
  animation: preloaderOrbit 1.2s linear infinite;
}

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

.preloader-emblem {
  font-size: 42px;
  animation: preloaderPulse 1.8s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
  from { transform: scale(0.92); }
  to { transform: scale(1.08); filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6)); }
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.preloader-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  margin-left: 2px;
  box-shadow: 0 0 8px #00e5ff;
}

.preloader-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.preloader-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00e5ff 0%, #00e676 100%);
  border-radius: 999px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

/* =========================================================================
   MOBILE BOTTOM SHEET DRAWER & DRAG HANDLE
   ========================================================================= */

.sidebar__drag-handle {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    border-left: none !important;
    border-top: 1px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 229, 255, 0.15);
    animation: bottomSheetIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    touch-action: pan-y;
  }

  @keyframes bottomSheetIn {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
  }

  .sidebar__drag-handle {
    display: block;
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    margin: 12px auto 2px auto;
    cursor: grab;
    flex-shrink: 0;
  }
}

/* =========================================================================
   MICRO-INTERACTIONS & HAPTIC TOUCH PHYSICS
   ========================================================================= */

.btn:active,
.tab-btn:active,
.globe-skin-btn:active,
.view-mode-btn:active,
.btn-plan:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s ease !important;
}

.movie-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.movie-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 229, 255, 0.15) !important;
}

.metric-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS SYSTEM (375px, 430px, 768px)
   ========================================================================= */

/* Prevent horizontal overflow globally */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  /* 1. Typography & Inputs: Prevent iOS Safari Auto-Zoom */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* 2. Top Header: Compact & Uncluttered */
  .app-header {
    padding: 8px 12px !important;
    background: rgba(7, 10, 18, 0.92) !important;
  }

  .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .brand-cluster {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .brand-emblem {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }

  .brand-emblem-svg {
    width: 20px !important;
    height: 20px !important;
  }

  .brand-wordmark {
    font-size: 17px !important;
  }

  .brand-badge {
    display: none !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  .nav-actions .action-label {
    display: none !important;
  }

  .btn-action-glass, 
  .btn-action-pro, 
  .btn-challenge-nav {
    padding: 7px 10px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 9px !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .badge-pro-micro {
    display: none !important;
  }

  /* 3. Bottom Navigation Bar */
  .nav-island, 
  .marquee__tabs {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 60px !important;
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(7, 10, 18, 0.94) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .tab-btn {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 2px !important;
    min-height: 48px !important;
    min-width: 44px !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    gap: 2px !important;
  }

  .tab-btn__icon {
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .tab-btn__icon .lucide, 
  .tab-btn__icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  .tab-btn__label {
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }

  .tab-btn.is-active {
    color: #00e5ff !important;
    background: rgba(0, 229, 255, 0.12) !important;
    border-color: rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2) !important;
  }

  /* 4. Bottom Clearance for scrollable views & Global Overflow Protection */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .view,
  .list-view, 
  #panel-watched, 
  #panel-watchlist, 
  #panel-lists, 
  #panel-profile {
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 16px 14px calc(78px + env(safe-area-inset-bottom, 0px)) 14px !important;
  }

  .list-container {
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .view-hero-header, 
  .list-header {
    margin-bottom: 16px !important;
    gap: 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .view-hero-title, 
  .list-header h2 {
    font-size: 24px !important;
  }

  .view-hero-desc, 
  .list-header p {
    font-size: 12.5px !important;
  }

  .view-hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .view-hero-actions .list-search-wrap {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .view-hero-actions .list-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .view-hero-actions .view-mode-segmented {
    flex-shrink: 0 !important;
  }

  .view-hero-actions .lux-custom-select {
    flex: 1 1 auto !important;
    min-width: 120px !important;
  }

  .view-hero-actions .lux-select-trigger {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
  }

  .lux-select-menu {
    max-width: calc(100vw - 28px) !important;
    min-width: 200px !important;
    box-sizing: border-box !important;
    left: 0 !important;
    right: auto !important;
  }

  .view-hero-actions #btn-toggle-all-watched,
  .view-hero-actions #btn-toggle-all-watchlist {
    flex: 1 1 auto !important;
    min-width: 90px !important;
    padding: 7px 10px !important;
    font-size: 11.5px !important;
  }

  .view-hero-actions #add-from-watched,
  .view-hero-actions #add-from-watchlist {
    flex: 1 1 100% !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
    justify-content: center !important;
  }

  /* 5. Globe/Map: Keep top controls COMPACT and pointer-events pass-through */
  .globe-top-controls {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
    gap: 6px !important;
    pointer-events: none !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    max-width: calc(100vw - 16px) !important;
  }

  .globe-top-controls > * {
    pointer-events: auto !important;
  }

  .globe-search {
    width: calc(100% - 0px) !important;
    max-width: 100% !important;
    order: 1 !important;
  }

  .globe-search__bar {
    height: 36px !important;
    padding: 5px 12px !important;
    border-radius: 10px !important;
  }

  .globe-search__input {
    font-size: 13px !important;
  }

  .globe-projection-toggle {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .globe-projection-toggle::-webkit-scrollbar {
    display: none !important;
  }

  .view-mode-segmented {
    flex-shrink: 0 !important;
    gap: 2px !important;
    padding: 2px !important;
  }

  .view-mode-btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-height: 28px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .globe-skin-segmented {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
    overflow-x: visible !important;
    gap: 2px !important;
    padding: 2px !important;
  }

  .globe-skin-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 3px 6px !important;
    font-size: 10px !important;
    min-height: 28px !important;
    border-radius: 6px !important;
  }

  .globe-exploration-counter {
    display: none !important;
  }

  /* 6. Globe HUD Bottom - raise above bottom nav */
  .globe-hud-bottom {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 4px !important;
    max-width: calc(100vw - 16px) !important;
    width: auto !important;
  }

  .globe-hero-pill {
    padding: 4px 12px !important;
    font-size: 11px !important;
  }

  .globe-hero-sub {
    display: none !important;
  }

  .legend {
    padding: 5px 10px !important;
    gap: 8px !important;
    font-size: 11px !important;
  }

  .globe-hint {
    display: none !important;
  }

  .map2d-zoom-controls {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px)) !important;
    right: 10px !important;
  }

  /* 7. Grids across tabs & Lists Hub */
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 12px !important;
  }

  .lists-grid,
  .custom-lists-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .lists-stats-hero {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .lists-stat-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .lists-stat-val {
    font-size: 20px !important;
  }

  .lists-stat-lbl {
    font-size: 10px !important;
  }

  .lists-stat-card--progress {
    grid-column: span 2 !important;
  }

  .lists-controls-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
  }

  .lists-filters-group {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 3px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  .lists-filters-group::-webkit-scrollbar {
    display: none !important;
  }

  .lists-filter-btn {
    flex: 1 0 auto !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    font-size: 11.5px !important;
    gap: 4px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }

  .lists-filter-btn svg,
  .lists-filter-btn i {
    width: 13px !important;
    height: 13px !important;
  }

  .lists-controls-bar .list-search-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }

  .lists-controls-bar .list-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .passport-booklet-container {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
  }

  .passport-cover-wrap, 
  .passport-id-wrap,
  .passport-stamps-booklet {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .passport-stamps-booklet {
    padding: 14px 12px !important;
  }

  .passport-stamp-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .booklet-pagination-controls {
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }

  .passport-metrics-grid, 
  .passport-stats-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .metric-card {
    padding: 12px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .metric-number {
    font-size: 20px !important;
  }

  .metric-label {
    font-size: 10.5px !important;
  }

  .continent-analytics-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* 8. Modals & Sidebar */
  .modal-overlay {
    padding: 8px !important;
  }

  .modal-card, 
  .modal-container, 
  .auth-modal-card {
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
    margin: auto !important;
    max-height: calc(100vh - 32px) !important;
    border-radius: 18px !important;
    box-sizing: border-box !important;
  }

  .modal-body,
  .modal-body-form {
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    padding: 14px 16px !important;
  }

  .modal-footer {
    padding: 12px 16px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .modal-footer .btn {
    flex: 1 1 110px !important;
  }

  .sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .sidebar__actions {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Small mobile (~375px & ~430px) */
@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .country-group__head {
    padding: 10px 12px !important;
    gap: 8px !important;
    min-height: 46px !important;
  }

  .country-group__name {
    font-size: 14px !important;
  }

  .country-group__count {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }

  .movie-card__info {
    padding: 8px !important;
  }

  .movie-card__title {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }

  .movie-card__year {
    font-size: 10px !important;
  }

  .globe-hero-pill {
    max-width: calc(100vw - 24px) !important;
  }

/* =========================================================================
   UNIVERSAL LEGAL & PRIVACY FOOTER & DATA TRUST COMPONENTS
   ========================================================================= */

.app-glass-footer {
  margin-top: 48px;
  padding: 28px 24px;
  background: rgba(8, 12, 22, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff;
  display: inline-block;
}

.footer-tagline {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.footer-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 9px;
  border-radius: 9999px;
  margin-top: 4px;
  width: fit-content;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav-links a,
.footer-nav-links button {
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-nav-links a:hover,
.footer-nav-links button:hover {
  color: #00e5ff;
}

.footer-pro-link {
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.footer-pro-link:hover {
  color: #fde047 !important;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

/* Import Modal Trust Banner */
.import-privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 12px;
  margin-bottom: 16px;
}

.import-privacy-icon {
  font-size: 18px;
  color: #38bdf8;
  flex-shrink: 0;
  margin-top: 1px;
}

.import-privacy-text {
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

.import-privacy-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.import-privacy-text a {
  color: #00e5ff;
  text-decoration: underline;
}

/* Auth Modal Legal Notice */
.auth-legal-notice {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-legal-notice a {
  color: #94a3b8;
  text-decoration: underline;
}

.auth-legal-notice a:hover {
  color: #00e5ff;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-nav-links {
    gap: 12px;
  }
}

/* TMDB Attribution & Compliance */
.footer-bottom-row {
  max-width: 1100px;
  margin: 18px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-tmdb-attribution {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.footer-tmdb-attribution a,
.footer-tmdb-attribution span {
  color: #64748b;
}

.tmdb-badge-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #90cea1 0%, #01b4e4 50%, #0d253f 100%);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-copyright-pill {
  font-size: 11px;
  color: #475569;
}

.modal-tmdb-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
}

/* Co-Production Selection Chips */
.co-production-chips-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.co-prod-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
}

.co-production-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.co-prod-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.co-prod-chip:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.4);
  color: #00e5ff;
  transform: translateY(-1px);
}

.co-prod-chip.is-active {
  background: rgba(0, 229, 255, 0.2);
  border-color: #00e5ff;
  color: #00e5ff;
  font-weight: 700;
}

/* =========================================================================
   ONBOARDING STORYTELLER MODAL (V3)
   ========================================================================= */
.onboarding-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.onboarding-tour-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.onboarding-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.onboarding-tour-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: linear-gradient(175deg, rgba(16, 24, 40, 0.96) 0%, rgba(8, 12, 22, 0.98) 100%);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 229, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.onboarding-tour-overlay.is-visible .onboarding-tour-card {
  transform: translateY(0) scale(1);
}

.onboarding-tour-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.onboarding-tour-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.onboarding-tour-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.onboarding-tour-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: rotate(90deg);
}

.onboarding-tour-card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Vector Illustration Scenes */
.tour-illustration-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 0;
}

.tour-svg-scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 520 / 180;
}

/* Visual Containers */
.tour-visual-card {
  width: 100%;
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

/* Step 1: Globe Odyssey Visual */
.tour-visual-globe {
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, rgba(6, 11, 25, 0.4) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tour-globe-halo {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-globe-icon-sphere {
  font-size: 58px;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.6));
  animation: floatSphere 3.5s ease-in-out infinite alternate;
}

@keyframes floatSphere {
  0% { transform: translateY(-4px) scale(0.98); }
  100% { transform: translateY(4px) scale(1.02); }
}

.tour-orbit-badge {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tour-orbit-1 { top: 0; left: -30px; }
.tour-orbit-2 { top: 10px; right: -30px; }
.tour-orbit-3 { bottom: 8px; left: -25px; }
.tour-orbit-4 { bottom: 0; right: -25px; }

.tour-globe-feature-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tour-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Step 2: Privacy Import Pipeline */
.tour-visual-import {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.06) 0%, rgba(6, 11, 25, 0.5) 70%);
}

.tour-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tour-pipe-box {
  flex: 1;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.pipe-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pipe-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.pipe-sub {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.2;
}

.tour-pipe-arrow {
  color: #00e5ff;
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-privacy-guarantee-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 14px;
  border-radius: 10px;
  text-align: center;
}

/* Step 3: Passport & Challenges */
.tour-visual-passport {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.06) 0%, rgba(6, 11, 25, 0.5) 70%);
}

.tour-passport-mock {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.tour-stamp-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 12px;
  border: 1.5px dashed;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.tour-stamp-jp {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.tour-stamp-fr {
  border-color: rgba(59, 130, 246, 0.6);
  color: #93c5fd;
}

.tour-stamp-br {
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
}

.stamp-flag {
  font-size: 20px;
  margin-bottom: 3px;
}

.stamp-name {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.stamp-sub {
  font-size: 8px;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

.tour-challenge-pill-preview {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.challenge-preview-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #c084fc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.challenge-preview-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border: 1px solid rgba(244, 114, 182, 0.25);
  padding: 2px 7px;
  border-radius: 9999px;
}

.challenge-route-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 11px;
}

.route-node {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 7px;
  border-radius: 6px;
  color: #f1f5f9;
  font-size: 10.5px;
}

.route-arrow {
  color: #c084fc;
  font-size: 10px;
}

  line-height: 1.35;
}

/* Story Text Block */
.onboarding-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onboarding-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.onboarding-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: #00e5ff;
  line-height: 1.35;
}

.onboarding-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Footer & Actions */
.onboarding-tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.onboarding-dots-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tour-dot.is-active {
  width: 24px;
  background: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.onboarding-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .onboarding-tour-card {
    border-radius: 18px;
  }
  .onboarding-title {
    font-size: 17px;
  }
  .tour-orbit-badge {
    display: none;
  }
  .onboarding-tour-card-footer {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .onboarding-dots-indicator {
    justify-content: center;
  }
  .onboarding-footer-actions {
    justify-content: space-between;
  }
}

/* =========================================================================
   IMPORT MODAL PRIVACY & CONFLICT RESOLUTION STYLES
   ========================================================================= */
.import-privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 0;
}

.import-privacy-icon {
  color: #10b981;
  font-size: 16px;
  line-height: 1;
  margin-top: 1px;
  display: flex;
  align-items: center;
}

.import-privacy-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #e2e8f0;
}

.import-privacy-text strong {
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
}

.import-privacy-text a {
  color: #38bdf8;
  text-decoration: underline;
}

.import-features-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 0;
}

.import-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.import-feat-icon {
  font-size: 13px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
}

.import-feat-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  line-height: 1.3;
  color: #cbd5e1;
}

.import-feat-text strong {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 11.5px;
}

@media (max-width: 520px) {
  .import-features-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}









