/* ==========================================================================
   ArenaStorm — Design System (Cyberpunk eSports / Glassmorphism)
   ========================================================================== */

:root {
  /* Paleta */
  --bg-main: #08080f;
  --bg-elevated: #0e0e1a;
  --bg-card: #12121f;
  --bg-card-hover: #171728;
  --bg-chat-body: #0c0c16;
  --bg-input: #1c1c2e;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.07);

  --neon-purple: #a78bfa;
  --neon-purple-strong: #8b5cf6;
  --neon-purple-dark: #6d28d9;
  --neon-cyan: #22d3ee;
  --neon-cyan-dark: #0891b2;
  --neon-pink: #f472b6;
  --neon-red: #fb7185;
  --neon-amber: #fbbf24;

  --text-main: #f1f5f9;
  --text-muted: #a1aab9;
  --text-dim: #7d8698;

  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --blue: #38bdf8;

  --gradient-primary: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-cyan) 100%);
  --gradient-hot: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
  --gradient-text: linear-gradient(120deg, var(--neon-purple) 0%, var(--neon-cyan) 50%, var(--neon-pink) 100%);

  /* Tipografia */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Métricas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-purple: 0 10px 34px rgba(139, 92, 246, 0.28);
  --glow-purple: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 0 28px rgba(139, 92, 246, 0.18);

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(244, 114, 182, 0.07), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  font-weight: 700;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--neon-purple-strong);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #26263a;
  border-radius: 10px;
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: #35354e;
}

:focus-visible {
  outline: 2px solid var(--neon-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Background FX — grid + orbs + noise
   -------------------------------------------------------------------------- */
.fx-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.fx-orb {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  animation: orbFloat 18s ease-in-out infinite;
}

.fx-orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
}

.fx-orb-2 {
  width: 460px;
  height: 460px;
  top: 40%;
  left: -200px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%);
  animation-delay: -6s;
}

.fx-orb-3 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: 10%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.32), transparent 70%);
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 24px) scale(0.94); }
}

/* --------------------------------------------------------------------------
   Keyframes globais
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

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

@keyframes shine {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Scroll-reveal (ativa via JS) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Componentes utilitários
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.2rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header h2 .gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientMove 6s linear infinite;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.8rem;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 8s linear infinite;
}

/* Botões */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              background var(--transition-fast),
              border-color var(--transition-fast);
  white-space: nowrap;
}

.btn svg, .btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  background-size: 160% auto;
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(139, 92, 246, 0.45);
  background-position: right center;
}

.btn-ghost {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(167, 139, 250, 0.5);
  transform: translateY(-2px);
}

.btn .shine::after,
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header / Navbar
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-smooth),
              border-color var(--transition-smooth),
              backdrop-filter var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(8, 8, 15, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-main);
  background: var(--bg-surface);
}

.nav-links a.is-active {
  color: var(--neon-purple);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--bg-surface);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile drawer */
@media (max-width: 768px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: rgba(14, 14, 26, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 1.4rem;
    transform: translateX(110%);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
  }

  .nav-overlay {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    z-index: 98;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 2rem) 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--bg-main) 96%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 1.4rem;
  animation: fadeInUp 0.6s ease-out both;
}

.hero .tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.3rem;
  animation: fadeInUp 0.6s ease-out 0.08s both;
}

.hero-sub {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.16s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
  animation: fadeInUp 0.6s ease-out 0.24s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.32s both;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat span {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero chat card */
.hero-card-wrap {
  perspective: 1200px;
  animation: fadeInScale 0.7s ease-out 0.2s both;
  will-change: transform;
}

.hero-card-windowbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-dots {
  display: flex;
  gap: 5px;
}

.hero-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a52;
  transition: background var(--transition-fast);
}

.hero-dots i:nth-child(1) { background: #ff5f57; }
.hero-dots i:nth-child(2) { background: #febc2e; }
.hero-dots i:nth-child(3) { background: #28c840; }

.hero-window-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.hero-card {
  position: relative;
  background: rgba(18, 18, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xl);
  padding: 1.6rem;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(139, 92, 246, 0.12);
  animation: floatY 7s ease-in-out infinite;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), transparent 40%, rgba(34, 211, 238, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.bot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient-hot);
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(244, 114, 182, 0.4);
  flex-shrink: 0;
}

.hero-card-head .meta strong {
  display: block;
  font-size: 0.95rem;
}

.hero-card-head .meta .online {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 600;
}

.hero-card-head .meta .online::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat-bubble {
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: slideInRight 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 4px;
  max-width: 85%;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  max-width: 85%;
  box-shadow: var(--shadow-purple);
}

.chat-bubble:nth-child(2) { animation-delay: 0.1s; }
.chat-bubble:nth-child(3) { animation-delay: 0.2s; }

.hero-typing {
  display: flex;
  gap: 4px;
  padding: 0.7rem 1rem;
  width: fit-content;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.hero-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-purple);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.hero-typing span:nth-child(2) { animation-delay: 0.15s; }
.hero-typing span:nth-child(3) { animation-delay: 0.3s; }

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-card { max-width: 460px; margin: 0 auto; }
  .hero { padding-top: calc(var(--header-height) + 1rem); }
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  overflow: hidden;
  transition: transform var(--transition-smooth),
              border-color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-smooth);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.35);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md), 0 16px 40px rgba(139, 92, 246, 0.12);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1.2rem;
  transition: transform var(--transition-spring), box-shadow var(--transition-smooth);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25);
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: var(--shadow-md);
}

.price-card.is-featured {
  border-color: transparent;
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              var(--gradient-primary) border-box;
  box-shadow: var(--shadow-purple);
}

.price-card.is-featured::before {
  content: 'MAIS ESCOLHIDO';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-hot);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(244, 114, 182, 0.4);
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.price-card .price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
}

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
  flex: 1;
}

.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-card li::before {
  content: '✓';
  color: var(--neon-purple);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 2rem;
}

.pricing-note a {
  color: var(--neon-cyan);
  font-weight: 600;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--neon-cyan);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.text-link:hover {
  color: var(--neon-purple);
}

/* --------------------------------------------------------------------------
   Torneios (events)
   -------------------------------------------------------------------------- */
.events-list {
  display: grid;
  gap: 1.2rem;
  max-width: 860px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
}

.event-card:hover {
  transform: translateX(8px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: var(--shadow-md);
}

.event-date {
  min-width: 74px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.5rem;
  flex-shrink: 0;
}

.event-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.event-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.event-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.event-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .event-card { flex-wrap: wrap; gap: 1rem; }
  .event-tag { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   Localização / Info
   -------------------------------------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition-fast), transform var(--transition-smooth);
}

.info-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-4px);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}

.info-card h3 .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 1.1rem;
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

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

.info-row strong {
  color: var(--text-main);
  text-align: right;
}

.info-row .badge-green {
  color: var(--green);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.is-open {
  border-color: rgba(167, 139, 250, 0.35);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-smooth), background var(--transition-fast);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(139, 92, 246, 0.2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 3.2rem 2.5rem;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.1), rgba(244, 114, 182, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}

.cta-banner h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  position: relative;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.8rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3.5rem 0 2.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-grid .brand {
  margin-bottom: 0.9rem;
}

.footer-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neon-purple);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.footer-social a:hover {
  transform: translateY(-3px);
  border-color: var(--neon-purple);
  background: rgba(139, 92, 246, 0.15);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: rgba(18, 18, 31, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
  position: relative;
}

.toast.is-leaving {
  animation: toastOut 0.3s ease-in both;
}

.toast::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--toast-accent, var(--neon-purple));
  animation: toastProgress var(--toast-duration, 4s) linear forwards;
}

.toast .toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
}

.toast.toast-success { --toast-accent: var(--green); }
.toast.toast-error { --toast-accent: var(--red); }
.toast.toast-info { --toast-accent: var(--blue); }

.toast strong {
  display: block;
  font-size: 0.88rem;
}

.toast span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px) scale(0.96); }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */
.admin-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-header h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  cursor: pointer;
  transition: transform var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.btn-icon:hover {
  color: var(--text-main);
  border-color: var(--neon-purple);
  transform: translateY(-2px);
}

.btn-icon.is-spinning svg {
  animation: spin 0.9s linear infinite;
}

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

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

/* Admin filters */
.admin-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.admin-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-search:focus-within {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.admin-search svg {
  width: 17px;
  height: 17px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.admin-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.9rem;
}

.admin-search input::placeholder {
  color: var(--text-dim);
}

.filter-tabs {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-tab .count {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
}

.filter-tab:hover {
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--text-main);
}

.filter-tab.is-active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-purple);
}

.filter-tab.is-active .count {
  background: rgba(255, 255, 255, 0.22);
}

/* Admin stats */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-fast);
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.3);
}

.admin-stat-card .stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-icon-purple { background: rgba(139, 92, 246, 0.15); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.2); }
.stat-icon-yellow { background: rgba(251, 191, 36, 0.15); box-shadow: 0 6px 18px rgba(251, 191, 36, 0.18); }
.stat-icon-green { background: rgba(52, 211, 153, 0.15); box-shadow: 0 6px 18px rgba(52, 211, 153, 0.18); }
.stat-icon-cyan { background: rgba(56, 189, 248, 0.15); box-shadow: 0 6px 18px rgba(56, 189, 248, 0.18); }
.stat-icon-red { background: rgba(248, 113, 113, 0.15); box-shadow: 0 6px 18px rgba(248, 113, 113, 0.18); }

.admin-stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.admin-stat-card span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Reservation cards */
.reservations-list {
  display: grid;
  gap: 1rem;
}

.reservation-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition-fast), transform var(--transition-smooth), box-shadow var(--transition-smooth);
  animation: fadeInUp 0.4s ease-out both;
}

.reservation-card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: var(--shadow-md);
}

.reservation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reservation-header h3 {
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.reservation-header .sub {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.setup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
}

.setup-badge-pc {
  background: rgba(139, 92, 246, 0.14);
  color: var(--neon-purple);
}

.setup-badge-ps5 {
  background: rgba(56, 189, 248, 0.14);
  color: var(--blue);
}

.setup-badge-simulador {
  background: rgba(244, 114, 182, 0.14);
  color: var(--neon-pink);
}

.reservation-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.reservation-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pending { background: rgba(251, 191, 36, 0.12); color: var(--yellow); }
.status-confirmed { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.status-cancelled { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.status-completed { background: rgba(56, 189, 248, 0.12); color: var(--blue); }

.reservation-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.reservation-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.reservation-info p strong {
  color: var(--text-main);
  font-weight: 700;
}

.reservation-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.reservation-actions button {
  border: 1px solid transparent;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.reservation-actions button:hover {
  transform: translateY(-1px);
}

.reservation-actions button:active {
  transform: scale(0.97);
}

.btn-confirm { background: rgba(52, 211, 153, 0.14); color: var(--green); }
.btn-confirm:hover { box-shadow: 0 6px 16px rgba(52, 211, 153, 0.25); }
.btn-complete { background: rgba(56, 189, 248, 0.14); color: var(--blue); }
.btn-complete:hover { box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25); }
.btn-cancel { background: rgba(248, 113, 113, 0.14); color: var(--red); }
.btn-cancel:hover { box-shadow: 0 6px 16px rgba(248, 113, 113, 0.25); }
.btn-delete { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.btn-delete:hover { background: rgba(248, 113, 113, 0.18); color: var(--red); }

.reservation-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  transform: none !important;
  box-shadow: none !important;
}

/* Skeleton */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #1a1a2c 25%, #222238 50%, #1a1a2c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

.skeleton-line { height: 14px; margin-bottom: 12px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.mid { width: 65%; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: floatY 4s ease-in-out infinite;
}

.empty-state h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Formulário de reserva (landing page)
   -------------------------------------------------------------------------- */
.btn-block {
  width: 100%;
}

.reserve-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}

.reserve-form {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  gap: 1.2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.reserve-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), transparent 45%, rgba(34, 211, 238, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field label small {
  text-transform: none;
  color: var(--text-dim);
  font-weight: 500;
}

.field input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field input:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

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

.field input[type="date"],
.field input[type="time"] {
  color-scheme: dark;
}

.setup-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.setup-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.setup-option .setup-emoji {
  font-size: 1.4rem;
}

.setup-option:hover {
  border-color: rgba(167, 139, 250, 0.5);
  color: var(--text-main);
}

.setup-option.is-selected {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--neon-purple-strong);
  color: var(--neon-purple);
  box-shadow: var(--glow-purple);
}

.form-error {
  color: var(--red);
  font-size: 0.85rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
}

.form-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.5;
}

/* Aside de apoio do formulário */
.reserve-info {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.reserve-info-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--transition-fast), transform var(--transition-smooth);
}

.reserve-info-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-3px);
}

.reserve-info-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.reserve-info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.reserve-info-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.reserve-info-card li {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reserve-info-card li strong {
  color: var(--neon-purple);
}

.reserve-info-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

@media (max-width: 900px) {
  .reserve-layout {
    grid-template-columns: 1fr;
  }

  .reserve-info {
    position: static;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .reserve-form { padding: 1.4rem; }
  .field-grid { grid-template-columns: 1fr; }
  .setup-option { font-size: 0.72rem; }
}

/* --------------------------------------------------------------------------
   Tela de login do admin
   -------------------------------------------------------------------------- */
.auth-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  font-size: 1.6rem;
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.auth-card .auth-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.6rem;
}

.auth-card form {
  display: grid;
  gap: 0.9rem;
  text-align: left;
}

.auth-card label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-card input[type="password"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-card input[type="password"]:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.auth-error {
  color: var(--red);
  font-size: 0.82rem;
  text-align: center;
  min-height: 1rem;
}

.auth-back {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--text-dim);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.auth-back:hover {
  color: var(--neon-purple);
}

/* --------------------------------------------------------------------------
   Paginação do admin
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
  color: var(--text-main);
  border-color: var(--neon-purple);
  transform: translateY(-1px);
}

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

.pagination-info {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin: 0 0.3rem;
}

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin: -1rem 0 1.5rem;
}

.last-updated .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Responsivo global
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .info-grid { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero-stats { gap: 1.6rem; }
  .admin-page { padding: calc(var(--header-height) + 1.5rem) 1rem 3rem; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   UI/UX v2 — Scroll progress, cursor glow, back-to-top
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 300;
  background: var(--gradient-text);
  background-size: 200% auto;
  transform-origin: left;
  transform: scaleX(0);
  animation: gradientMove 6s linear infinite;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 18, 31, 0.85);
  backdrop-filter: blur(12px);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth),
              color var(--transition-fast), border-color var(--transition-fast),
              box-shadow var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  color: #fff;
  border-color: var(--neon-purple);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.35);
  transform: translateY(-3px);
}

@media (max-width: 560px) {
  .back-to-top {
    bottom: 5.4rem;
    right: 1rem;
  }
}

/* ==========================================================================
   UI/UX v2 — Marquee de jogos
   ========================================================================== */

.games-strip {
  padding: 2.2rem 0 3.5rem;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.games-marquee {
  overflow: hidden;
}

.games-track {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

.games-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.games-track span:hover {
  color: var(--neon-cyan);
}

.games-track i {
  font-style: normal;
  color: var(--neon-purple);
  opacity: 0.5;
  font-size: 0.7rem;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .games-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   UI/UX v2 — Depoimentos
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.testimonial-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-smooth), border-color var(--transition-fast),
              box-shadow var(--transition-smooth);
  overflow: hidden;
}

.testimonial-card::after {
  content: '“';
  position: absolute;
  top: 0.2rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--neon-purple);
  opacity: 0.14;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: var(--shadow-md), 0 16px 40px rgba(139, 92, 246, 0.1);
}

.testimonial-stars {
  color: var(--yellow);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.testimonial-card blockquote {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.testimonial-card figcaption strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial-card figcaption span {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ==========================================================================
   UI/UX v2 — Formulario: estimativa + spinner
   ========================================================================== */

.reserve-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.08));
  border: 1px dashed rgba(167, 139, 250, 0.35);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}

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

.estimate-pill strong {
  color: var(--neon-purple);
}

.estimate-total {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-main);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.estimate-total small {
  font-size: 0.75rem;
  -webkit-text-fill-color: var(--text-dim);
  color: var(--text-dim);
  font-weight: 600;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* ==========================================================================
   UI/UX v2 — Chatbot proprietario ("Storm")
   ========================================================================== */

.chatbot {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 150;
}

/* ---- Launcher ---- */

.chatbot-launcher {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--gradient-hot);
  background-size: 180% auto;
  color: #fff;
  box-shadow: 0 10px 34px rgba(139, 92, 246, 0.5), 0 4px 16px rgba(244, 114, 182, 0.3);
  transition: transform var(--transition-spring), box-shadow var(--transition-smooth);
}

.chatbot-launcher:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 16px 44px rgba(139, 92, 246, 0.65), 0 6px 22px rgba(244, 114, 182, 0.4);
}

.chatbot-launcher:active {
  transform: scale(0.94);
}

.chatbot-launcher-icon {
  display: grid;
  place-items: center;
  transition: transform var(--transition-smooth);
}

.chatbot-launcher-icon svg {
  width: 28px;
  height: 28px;
}

.chatbot.is-open .chatbot-launcher-icon {
  transform: scale(0.7);
  opacity: 0;
}

.chatbot.is-open .chatbot-launcher {
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.chatbot.is-open .chatbot-launcher::before {
  content: '✕';
  position: absolute;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Pulse rings */
.chatbot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.7);
  animation: pulseRing 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.chatbot-pulse-2 {
  animation-delay: 1.2s;
}

.chatbot.is-open .chatbot-pulse {
  display: none;
}

/* Notification badge */
.chatbot-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--neon-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-main);
  animation: fadeInScale 0.4s ease-out both;
}

/* Launcher label (desktop) */
.chatbot-launcher-label {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: rgba(14, 14, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.chatbot-launcher-label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(14, 14, 26, 0.92);
}

.chatbot-launcher:hover .chatbot-launcher-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---- Panel ---- */

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 1.1rem);
  width: 384px;
  height: min(620px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: rgba(14, 14, 26, 0.9);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(139, 92, 246, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.55), transparent 40%, rgba(34, 211, 238, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

.chatbot.is-open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.06));
  flex-shrink: 0;
}

.chatbot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: var(--gradient-hot);
  color: #fff;
  box-shadow: 0 6px 18px rgba(244, 114, 182, 0.4);
  flex-shrink: 0;
}

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

.chatbot-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.3;
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--green);
  font-weight: 600;
}

.chatbot-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

.chatbot-status.is-human {
  color: var(--neon-purple);
}

.chatbot-status.is-human i {
  background: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
}

.chatbot.is-human .chatbot-avatar {
  background: linear-gradient(135deg, #34d399, #22d3ee);
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.35);
}

.chatbot-msg-system {
  justify-content: center;
}

.chatbot-msg-system .chatbot-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
  max-width: 92%;
  padding: 0.5rem 0.95rem;
}

.chatbot.is-human .chatbot-quickreplies {
  display: none;
}

.chatbot-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast);
}

.chatbot-icon-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.3);
}

.chatbot-icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Body */
.chatbot-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(8, 8, 15, 0.35);
}

.chatbot-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  scroll-behavior: smooth;
}

.chatbot-scroll::-webkit-scrollbar { width: 6px; }
.chatbot-scroll::-webkit-scrollbar-track { background: transparent; }
.chatbot-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

/* Messages */
.chatbot-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  animation: slideInUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.chatbot-msg-user {
  justify-content: flex-end;
}

.chatbot-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: var(--gradient-hot);
  flex-shrink: 0;
}

.chatbot-bubble {
  position: relative;
  max-width: 82%;
  padding: 0.7rem 0.85rem 1.25rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-main);
  word-break: break-word;
}

.chatbot-msg-bot .chatbot-bubble {
  background: rgba(28, 28, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom-left-radius: 4px;
}

.chatbot-msg-user .chatbot-bubble {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-purple);
}

.chatbot-time {
  position: absolute;
  right: 0.85rem;
  bottom: 0.3rem;
  font-size: 0.62rem;
  color: var(--text-dim);
}

.chatbot-msg-user .chatbot-time {
  color: rgba(255, 255, 255, 0.75);
}

/* Rich content dentro das respostas */
.chatbot-bubble p { margin-bottom: 0.4rem; }
.chatbot-bubble p:last-child { margin-bottom: 0; }

.chatbot-reply-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.chatbot-reply-hint {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.chatbot-plans {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chatbot-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.chatbot-plan div {
  display: flex;
  flex-direction: column;
}

.chatbot-plan strong {
  font-size: 0.85rem;
}

.chatbot-plan div span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.chatbot-plan em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--neon-cyan);
  white-space: nowrap;
}

.chatbot-plan em small {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-dim);
}

.chatbot-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.chatbot-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.chatbot-rows span { color: var(--text-muted); }
.chatbot-rows strong { color: var(--text-main); }

.chatbot-events {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chatbot-event {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.chatbot-event-date {
  min-width: 42px;
  text-align: center;
  background: var(--bg-input);
  border-radius: 9px;
  padding: 0.35rem 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.05;
  flex-shrink: 0;
}

.chatbot-event-date i {
  font-style: normal;
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.chatbot-event div {
  display: flex;
  flex-direction: column;
}

.chatbot-event strong { font-size: 0.84rem; }
.chatbot-event div span { font-size: 0.72rem; color: var(--text-dim); }

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chatbot-chips span {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--neon-purple);
}

/* Botoes de acao dentro do chat */
.chatbot-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.4s ease-out both;
}

.chatbot-action {
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.12);
  color: var(--neon-purple);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.chatbot-action:hover {
  background: rgba(139, 92, 246, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.chatbot-action-primary {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.chatbot-action-primary:hover {
  background: var(--gradient-primary);
}

/* Typing indicator */
.chatbot-typing-wrap {
  animation: fadeInUp 0.25s ease-out both;
}

.chatbot-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0.85rem 1rem;
  width: fit-content;
}

.chatbot-typing i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-purple);
  animation: typingBounce 1.1s infinite ease-in-out;
}

.chatbot-typing i:nth-child(2) { animation-delay: 0.14s; }
.chatbot-typing i:nth-child(3) { animation-delay: 0.28s; }

/* Quick replies */
.chatbot-quickreplies {
  display: flex;
  gap: 0.45rem;
  padding: 0.6rem 1rem 0.85rem;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.chatbot-quickreplies::-webkit-scrollbar { display: none; }

.chatbot-chip {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast);
}

.chatbot-chip:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}

/* Footer */
.chatbot-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(12, 12, 22, 0.6);
  flex-shrink: 0;
}

.chatbot-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chatbot-form:focus-within {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.chatbot-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

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

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  color: #fff;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.chatbot-send:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
}

.chatbot-send svg {
  width: 17px;
  height: 17px;
}

.chatbot-handoff {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.chatbot-handoff:hover {
  background: rgba(52, 211, 153, 0.12);
  transform: translateY(-1px);
}

.chatbot-handoff svg {
  width: 15px;
  height: 15px;
}

/* Ocultar bubble nativo do Chatwoot (nosso Storm assume o primeiro contato);
   o painel de conversa (.woot--conversation-holder) continua visivel p/ handoff */
.woot--bubble-holder,
.woot-widget-holder.woot--bubble-holder {
  display: none !important;
}

/* ==========================================================================
   UI/UX v2 — Modal de confirmacao (admin)
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease-out both;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem 1.7rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.modal-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.modal-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.modal-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}

.modal-actions .btn {
  flex: 1;
}

.btn-danger {
  background: linear-gradient(135deg, #f87171, #ef4444);
  color: #fff;
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(239, 68, 68, 0.5);
}

body.modal-open {
  overflow: hidden;
}

/* Mobile: bottom sheet em tela cheia */
@media (max-width: 520px) {
  .chatbot {
    right: 1rem;
    bottom: 1rem;
  }

  .chatbot-launcher {
    width: 58px;
    height: 58px;
  }

  .chatbot-launcher-label {
    display: none;
  }

  .chatbot-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    transform: translateY(30px);
  }

  .chatbot.is-open .chatbot-panel {
    transform: translateY(0);
  }

  .chatbot.is-open .chatbot-launcher {
    opacity: 0;
    pointer-events: none;
  }

  .chatbot-panel::before {
    display: none;
  }

  .chatbot-scroll {
    padding-bottom: 1rem;
  }
}
