/* ===== XCAPEER — Coming Soon · "Wanderlust" Design System ===== */

/* ---- Design Tokens ---- */
:root {
  --deep: #0b0f1a;
  --deep-2: #111827;
  --surface: #1a1f2e;
  --surface-2: #242938;
  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --teal: #14b8a6;
  --teal-glow: rgba(20, 184, 166, 0.12);
  --coral: #f97316;
  --ink: #f1f5f9;
  --ink-soft: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
  --glow: 0 0 40px rgba(245, 158, 11, 0.25);
  --max: 1200px;
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fh: 'Plus Jakarta Sans', var(--ff);
  --fm: 'Space Grotesk', var(--fh);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  color: var(--ink);
  background: var(--deep);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: var(--fh);
  color: var(--ink);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.015em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }

/* ---- Animated Background ---- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(20, 184, 166, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 60%);
  animation: bgPulse 12s ease-in-out infinite alternate;
}
@keyframes bgPulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.1); }
}

/* Floating particles */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0;
  animation: float linear infinite;
}
@keyframes float {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ---- Noise overlay ---- */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---- Header / Nav ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .logo-img {
  width: 44px;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}
.brand-text {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line-2);
  color: var(--ink-soft);
  transition: all 0.25s ease;
  font-size: 1.1rem;
}
.nav-social a:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-glow);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.nav-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 140px;
}
.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 8px 20px 8px 14px;
  font-family: var(--fm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--teal); }
  50% { opacity: 0.5; box-shadow: 0 0 24px var(--teal); }
}

/* Hero Title */
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--amber) 0%, var(--coral) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Countdown */
.countdown-section {
  animation: fadeInUp 0.8s ease-out 0.45s both;
  margin-bottom: 48px;
}
.countdown-label {
  font-family: var(--fm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--amber);
  margin-bottom: 20px;
}
.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.countdown-item {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px 12px;
  min-width: 88px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.countdown-item:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: var(--glow);
}
.countdown-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.countdown-item .num {
  font-family: var(--fm);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  position: relative;
}
.countdown-item .unit {
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* CTA Buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: #fff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.4);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
  transform: translateY(-3px);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---- Trips Section ---- */
.trips-section {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}
.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}
.eyebrow {
  font-family: var(--fm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--amber);
  opacity: 0.5;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 14px 0 12px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Trip Cards Grid */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.trip-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.trip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--coral));
  opacity: 0;
  transition: opacity 0.3s;
}
.trip-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.trip-card:hover::before { opacity: 1; }

.trip-category {
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}
.trip-category.weekend {
  background: rgba(92, 148, 13, 0.15);
  color: #84cc16;
}
.trip-category.domestic {
  background: rgba(230, 119, 0, 0.15);
  color: #f59e0b;
}
.trip-category.beach {
  background: rgba(54, 79, 199, 0.15);
  color: #818cf8;
}
.trip-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.trip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-family: var(--fm);
  font-weight: 500;
}
.trip-meta svg {
  width: 16px;
  height: 16px;
  fill: var(--ink-soft);
  flex-shrink: 0;
}
.trip-cta {
  font-family: var(--fm);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.trip-card:hover .trip-cta { gap: 10px; }

/* ---- About Band ---- */
.about-band {
  position: relative;
  z-index: 2;
  padding: 0 0 100px;
}
.about-inner {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.about-inner::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  right: -100px;
  top: -100px;
  pointer-events: none;
}
.about-text .eyebrow { margin-bottom: 12px; }
.about-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.stat-card .stat-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.stat-card .stat-num {
  font-family: var(--fm);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 4px;
  font-family: var(--fm);
  font-weight: 500;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-img {
  width: 32px;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
}
.footer-brand span {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--fm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.footer-links a.icon-only {
  width: 34px;
  padding: 0;
}
.footer-links a:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-glow);
}
.footer-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer-links a .social-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-family: var(--fm);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 1s both;
}
.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--line-2);
  border-radius: 12px;
  position: relative;
}
.scroll-mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--amber);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ---- Hero Image Section ---- */
.hero-image-section {
  position: relative;
  z-index: 2;
  padding: 0 0 100px;
}
.hero-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,26,0.3) 0%, rgba(11,15,26,0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.hero-image-overlay blockquote {
  font-family: var(--fh);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  max-width: 500px;
  line-height: 1.35;
}
.hero-image-overlay blockquote span {
  color: var(--amber);
}

/* ---- Email Subscribe ---- */
.subscribe-wrap {
  animation: fadeInUp 0.8s ease-out 0.75s both;
  margin-top: 44px;
}
.subscribe-card {
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.subscribe-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  text-align: center;
}
.subscribe-title {
  font-family: var(--fh);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.subscribe-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.subscribe-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: var(--ff);
  font-size: 0.94rem;
  padding: 14px 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.subscribe-form input[type="email"]::placeholder {
  color: var(--ink-soft);
}
.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-glow);
}
.subscribe-form .btn-primary {
  white-space: nowrap;
  flex-shrink: 0;
}
.subscribe-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 14px;
  text-align: center;
}

/* ---- Protected class ---- */
.protected {
  -webkit-user-select: none;
  user-select: none;
}
.protected input,
.protected textarea,
.protected select,
.protected [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-inner { padding: 44px 36px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 100px 0 72px; min-height: auto; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero .tagline { margin-bottom: 32px; }
  .countdown-section { margin-bottom: 40px; }
  .countdown { gap: 10px; }
  .countdown-item { min-width: 0; flex: 1 1 0; max-width: 100px; padding: 16px 8px; }
  .countdown-item .num { font-size: 1.8rem; }
  .about-band { padding-bottom: 72px; }
  .about-inner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 32px;
  }
  .hero-image-section { padding-bottom: 72px; }
  .hero-image-wrapper img { height: 280px; }
  .hero-image-overlay { padding: 24px; }
  .subscribe-input-group { flex-direction: column; }
  .subscribe-form .btn { width: 100%; justify-content: center; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { margin-top: 4px; }
  .footer-legal-links { margin-right: 0 !important; }
  .trips-section { padding: 64px 0 72px; }
  .trips-grid {
    grid-template-columns: 1fr;
  }
  .nav-social { gap: 6px; }
  .nav-social a { width: 34px; height: 34px; }
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand { font-size: 1.25rem; }
  .brand .logo-img { width: 38px; }
  .status-badge { font-size: 0.72rem; padding: 6px 14px 6px 10px; margin-bottom: 24px; }
  .countdown { gap: 8px; }
  .countdown-item { padding: 14px 4px; border-radius: 12px; }
  .countdown-item .num { font-size: 1.5rem; }
  .countdown-item .unit { font-size: 0.58rem; letter-spacing: 0.1em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-inner { padding: 28px 20px; }
  .subscribe-card { padding: 22px 18px 18px; }
  .hero-image-wrapper img { height: 220px; }
}

@media (max-width: 360px) {
  .countdown-item .num { font-size: 1.3rem; }
  .about-stats { grid-template-columns: 1fr; }
}

/* ---- Smooth loading ---- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fh);
  font-weight: 800;
  font-size: 2rem;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader-logo .logo-img {
  width: 60px;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.98); }
}

/* ---- Human Check (slide-to-verify captcha) ---- */
.xc-captcha { position: relative; margin: 12px 0; }
.xc-captcha .cap-track {
  position: relative;
  height: 46px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
}
.xc-captcha .cap-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(245, 158, 11, .2), rgba(245, 158, 11, .4));
}
.xc-captcha .cap-text {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  pointer-events: none;
}
.xc-captcha .cap-handle {
  position: absolute;
  left: 3px; top: 3px;
  width: 40px; height: 40px;
  border-radius: 9px;
  border: none;
  cursor: grab;
  background: linear-gradient(120deg, var(--amber), #fbbf24);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(245, 158, 11, .4);
  touch-action: none;
}
.xc-captcha.dragging .cap-handle { cursor: grabbing; }
.xc-captcha.working .cap-handle { cursor: wait; }
.xc-captcha.verified .cap-track { border-color: rgba(20, 184, 166, .5); }
.xc-captcha.verified .cap-fill { background: linear-gradient(90deg, rgba(20, 184, 166, .2), rgba(20, 184, 166, .4)); }
.xc-captcha .cap-target {
  position: absolute;
  top: 2px; bottom: 2px; width: 44px;
  border-radius: 9px;
  border: 2px dashed rgba(245, 158, 11, .5);
  pointer-events: none;
  animation: cap-target-pulse 1.6s ease-in-out infinite;
}
.xc-captcha.verified .cap-target { display: none; }
@keyframes cap-target-pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}
@keyframes xc-cap-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.xc-captcha.shake .cap-track { animation: xc-cap-shake .5s; }
.xc-captcha-mini .cap-track { height: 38px; }
.xc-captcha-mini .cap-handle { width: 32px; height: 32px; font-size: 15px; }
.xc-captcha-mini .cap-text { font-size: 11.5px; }

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed !important;
  bottom: 24px;
  left: 50%;
  width: max-content;
  max-width: calc(100% - 32px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 8px 8px 24px;
  z-index: 99999;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}
.cookie-banner.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: auto;
}
.cookie-content p {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .cookie-banner {
    padding: 8px 8px 8px 16px;
    bottom: env(safe-area-inset-bottom, 16px);
  }
  .cookie-content {
    gap: 12px;
  }
  .cookie-content p {
    font-size: 0.75rem;
  }
}
