/* ============================================================
   ReservaJá — Glassmorphism Design System
   Theme: Dynamic (fiel = Corinthians dark | avanti = Palmeiras green)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --rj-font: 'Outfit', 'Inter', sans-serif;
  --rj-radius: 16px;
  --rj-radius-sm: 10px;
  --rj-radius-lg: 24px;
  --rj-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --rj-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --rj-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);

  /* Default Theme: Corinthians (fiel) */
  --rj-bg: #030406;
  --rj-bg-secondary: #080a0f;
  --rj-surface: rgba(18, 22, 30, 0.85);
  --rj-glass: rgba(25, 30, 45, 0.6);
  --rj-glass-border: rgba(255, 255, 255, 0.15);
  --rj-glass-hover: rgba(35, 42, 55, 0.7);
  --rj-primary: #ffffff;
  --rj-accent: #ffffff;
  --rj-accent-glow: rgba(255, 255, 255, 0.4);
  --rj-text: #ffffff;
  --rj-text-secondary: #e2e8f0;
  --rj-text-muted: #94a3b8;
  --rj-border: rgba(255, 255, 255, 0.12);
  --rj-card-bg: rgba(12, 16, 22, 0.9);
  --rj-sidebar-bg: rgba(5, 7, 10, 0.98);
  --rj-navbar-bg: rgba(5, 7, 10, 0.9);
  --rj-btn-primary-bg: #ffffff;
  --rj-btn-primary-text: #030406;
  --rj-btn-secondary-bg: rgba(255, 255, 255, 0.08);
  --rj-btn-secondary-text: #ffffff;
  --rj-stadium-bg: #030406;
  --rj-stadium-sector: #ffffff;
  --rj-stadium-sector-glow: rgba(255, 255, 255, 0.3);
  --rj-countdown-bg: rgba(255, 255, 255, 0.05);
  --rj-hero-gradient: linear-gradient(135deg, #030406 0%, #111520 50%, #030406 100%);
}

/* ── Theme: Corinthians (fiel) - Kept for explicit theme switching ── */
[data-theme="fiel"] {
  opacity: 1; /* Non-empty to avoid lint warning */
}

/* ── Theme: Palmeiras (avanti) ── */
[data-theme="avanti"] {
  --rj-bg: #071a0e;
  --rj-bg-secondary: #0c2415;
  --rj-surface: rgba(12, 36, 21, 0.85);
  --rj-glass: rgba(15, 45, 28, 0.6);
  --rj-glass-border: rgba(200, 170, 80, 0.12);
  --rj-glass-hover: rgba(20, 55, 35, 0.7);
  --rj-primary: #c8aa50;
  --rj-accent: #4ade80;
  --rj-accent-glow: rgba(74, 222, 128, 0.3);
  --rj-text: #f0e6c8;
  --rj-text-secondary: #8fac7a;
  --rj-text-muted: #5a7a4a;
  --rj-border: rgba(200, 170, 80, 0.1);
  --rj-card-bg: rgba(12, 30, 18, 0.9);
  --rj-sidebar-bg: rgba(8, 22, 14, 0.95);
  --rj-navbar-bg: rgba(7, 26, 14, 0.9);
  --rj-btn-primary-bg: linear-gradient(135deg, #c8aa50, #a88a30);
  --rj-btn-primary-text: #071a0e;
  --rj-btn-secondary-bg: rgba(74, 222, 128, 0.15);
  --rj-btn-secondary-text: #4ade80;
  --rj-stadium-bg: #0a1f12;
  --rj-stadium-sector: #4ade80;
  --rj-stadium-sector-glow: rgba(74, 222, 128, 0.4);
  --rj-countdown-bg: rgba(200, 170, 80, 0.08);
  --rj-hero-gradient: linear-gradient(135deg, #071a0e 0%, #0f3520 50%, #071a0e 100%);
}

/* ── Global Reset for RJ pages ── */
.rj-app {
  font-family: var(--rj-font) !important;
  background: var(--rj-bg);
  color: var(--rj-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.rj-app *, .rj-app *::before, .rj-app *::after {
  font-family: var(--rj-font) !important;
}

/* ── Prevent Font Awesome/Material Symbols from being overridden ── */
.rj-app .material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;
}

.rj-app [class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
  font-weight: 900;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--rj-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rj-glass-border);
  border-radius: var(--rj-radius);
  transition: var(--rj-transition);
}

.glass-card:hover {
  background: var(--rj-glass-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 20px var(--rj-accent-glow);
}

/* ── Premium Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Glow Effects ── */
.glow-mesh {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, var(--rj-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.05; /* Deeply softened for better readability and UI parity */
}

/* ── Floating Animation ── */
@keyframes rjFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.rj-floating {
  animation: rjFloat 6s ease-in-out infinite;
}

.glass-card-solid {
  background: var(--rj-card-bg);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-radius);
  transition: var(--rj-transition);
}

/* ── Top Bar ── */
.rj-topbar {
  background: var(--rj-navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rj-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

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

.rj-topbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.rj-topbar-brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rj-text);
}

.rj-topbar-center {
  color: var(--rj-text-muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.rj-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rj-topbar-actions .rj-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rj-glass);
  border: 1px solid var(--rj-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rj-text-secondary);
  cursor: pointer;
  transition: var(--rj-transition);
}

.rj-topbar-actions .rj-icon-btn:hover {
  background: var(--rj-glass-hover);
  color: var(--rj-text);
}

/* ── Sub Navbar (Corinthians style tabs) ── */
.rj-subnav {
  background: var(--rj-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rj-glass-border);
  border-radius: var(--rj-radius);
  padding: 12px 20px;
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.rj-subnav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.rj-subnav-brand span {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rj-text);
}

.rj-subnav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rj-subnav-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rj-text-secondary);
  text-decoration: none;
  transition: var(--rj-transition);
  cursor: pointer;
  border: none;
  background: none;
}

.rj-subnav-tab:hover {
  color: var(--rj-text);
  background: rgba(255, 255, 255, 0.05);
}

.rj-subnav-tab.active {
  color: var(--rj-text);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.rj-subnav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rj-subnav-user .rj-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rj-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rj-text-secondary);
}

.rj-subnav-user .rj-user-info {
  font-size: 0.8rem;
  line-height: 1.3;
}

.rj-subnav-user .rj-user-info .rj-user-label {
  color: var(--rj-text-muted);
  font-size: 0.7rem;
}

.rj-subnav-user .rj-user-info .rj-user-name {
  color: var(--rj-text);
  font-weight: 600;
}

/* ── Active Bot Badge ── */
.rj-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.rj-badge-active .rj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: rjPulse 2s infinite;
}

.rj-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(200, 170, 80, 0.15);
  color: #c8aa50;
  border: 1px solid rgba(200, 170, 80, 0.3);
}

.rj-badge-running {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  text-transform: uppercase;
}

.rj-badge-pending-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(200, 170, 80, 0.2);
  color: #c8aa50;
  border: 1px solid rgba(200, 170, 80, 0.35);
  text-transform: uppercase;
}

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

/* ── Sidebar (Palmeiras style) ── */
.rj-sidebar {
  width: 200px;
  min-height: calc(100vh - 60px);
  background: var(--rj-sidebar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--rj-border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 50;
}

.rj-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 20px;
}

.rj-sidebar-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.rj-sidebar-brand span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rj-text);
}

.rj-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--rj-radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--rj-text-secondary);
  text-decoration: none;
  transition: var(--rj-transition);
  cursor: pointer;
  border: none;
  background: none;
}

.rj-sidebar-link:hover {
  color: var(--rj-text);
  background: rgba(255, 255, 255, 0.05);
}

.rj-sidebar-link.active {
  color: var(--rj-text);
  font-weight: 700;
  background: var(--rj-accent);
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

[data-theme="avanti"] .rj-sidebar-link.active {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.rj-sidebar-link .material-symbols-rounded {
  font-size: 20px;
}

.rj-sidebar-bots {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rj-border);
}

.rj-sidebar-bots-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rj-text);
  padding: 0 14px;
  margin-bottom: 8px;
}

.rj-bot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--rj-radius-sm);
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.1);
  margin-bottom: 6px;
}

.rj-bot-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rj-bot-item-info .rj-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: rjPulse 2s infinite;
}

.rj-bot-item-info .rj-bot-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rj-text);
}

.rj-bot-item-info .rj-bot-game {
  font-size: 0.7rem;
  color: var(--rj-text-muted);
}

/* ── Dashboard Layout ── */
.rj-dashboard {
  display: flex;
  min-height: calc(100vh - 60px);
}

.rj-dashboard-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

/* Corinthians layout: left sidebar + center + right */
.rj-dashboard-fiel {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  grid-template-rows: auto auto; /* row 1 for panels, row 2 for bottom matches */
  gap: 0;
  min-height: calc(100vh - 120px);
}

/* Stadium + Ticket wrapper: on desktop, be transparent so grid works */
.rj-stadium-ticket-row {
  display: contents;
}

.rj-dashboard-fiel .rj-left-panel {
  grid-row: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--rj-border);
}

.rj-dashboard-fiel .rj-center-panel {
  grid-row: 1;
  padding: 16px;
  overflow-y: auto;
}

.rj-dashboard-fiel .rj-right-panel {
  grid-row: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 1px solid var(--rj-border);
  overflow-y: auto;
}

.rj-dashboard-fiel .rj-bottom-panel {
  grid-row: 2;
  grid-column: 1 / 4;
  padding: 20px 16px;
  border-top: 1px solid var(--rj-border);
  background: rgba(255, 255, 255, 0.02); /* Subtle separation */
}

/* ── Stadium Map Container ── */
.rj-panel-card {
  background: var(--rj-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--rj-glass-border);
  border-radius: var(--rj-radius-md);
  padding: 16px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.rj-panel-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--rj-text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rj-panel-list {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.rj-panel-list::-webkit-scrollbar {
  width: 3px;
}

.rj-panel-list::-webkit-scrollbar-track {
  background: transparent;
}

.rj-panel-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.rj-panel-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rj-stadium-container {
  background: var(--rj-stadium-bg);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-radius);
  padding: 20px;
  position: relative;
}

.rj-stadium-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rj-text);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rj-stadium-subtitle {
  font-size: 0.78rem;
  color: var(--rj-text-muted);
  margin-bottom: 16px;
}

.rj-stadium-map svg {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.1));
}

.rj-stadium-label {
  text-align: center;
  margin-top: 16px;
}

.rj-stadium-label h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--rj-text);
  margin: 0;
}

.rj-stadium-label p {
  font-size: 0.8rem;
  color: var(--rj-text-muted);
  margin: 4px 0 0 0;
}

.rj-stadium-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.rj-stadium-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rj-text-muted);
  opacity: 0.4;
}

.rj-stadium-dots .dot.active {
  opacity: 1;
  background: var(--rj-text);
}

/* ── Stadium SVG Sector styles (dark theme) ── */
.rj-app .sector {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1px;
  fill: rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
}

/* AVANTI (Verde) */
[data-theme="avanti"] .sector:hover {
  stroke: rgba(74, 222, 128, 0.8);
  fill: rgba(74, 222, 128, 0.2);
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, 0.6));
}
[data-theme="avanti"] .sector.active-pulse {
  animation: rjSectorPulseAvanti 2s infinite;
  opacity: 1 !important;
  stroke: #4ade80 !important;
  stroke-width: 2px !important;
  fill: rgba(74, 222, 128, 0.3) !important;
}
@keyframes rjSectorPulseAvanti {
  0% { filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.6)); stroke-width: 1.5px; }
  50% { filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.9)); stroke-width: 2.5px; }
  100% { filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.6)); stroke-width: 1.5px; }
}
[data-theme="avanti"] .field-bg { fill: rgba(74, 222, 128, 0.08); }

/* FIEL (Branco/Prata) */
[data-theme="fiel"] .sector:hover {
  stroke: rgba(255, 255, 255, 0.8);
  fill: rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}
[data-theme="fiel"] .sector.active-pulse {
  animation: rjSectorPulseFiel 2s infinite;
  opacity: 1 !important;
  stroke: #ffffff !important;
  stroke-width: 2px !important;
  fill: rgba(255, 255, 255, 0.2) !important;
}
@keyframes rjSectorPulseFiel {
  0% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)); stroke-width: 1.5px; }
  50% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)); stroke-width: 2.5px; }
  100% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)); stroke-width: 1.5px; }
}
[data-theme="fiel"] .field-bg { fill: rgba(255, 255, 255, 0.03); }

/* Generic Disable & Stadium logic */
.rj-app .sector.disabled {
  fill: rgba(255, 255, 255, 0.06) !important;
  opacity: 0.3 !important;
  cursor: not-allowed;
}

.rj-app .stadium-outline {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
}

.rj-app .field-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
}

.rj-app .label-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  fill: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

/* Sector colors - default is green for Avanti, but overridden for Fiel */
.rj-app .sector { fill: #2dd36f; }
[data-theme="fiel"] .sector { fill: #ffffff !important; }
[data-theme="fiel"] .sector:hover { fill: rgba(255, 255, 255, 0.3) !important; }

/* ── Match Cards ── */
/* ── Ticket-Style Match Card ── */
.rj-match-card {
  background: linear-gradient(145deg, rgba(20, 24, 33, 0.95), rgba(12, 15, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px;
  transition: var(--rj-transition);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Ticket perforated edge decoration */
.rj-match-card::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--rj-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.rj-match-card::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--rj-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* Dashed perforation line across the ticket */
.rj-ticket-perforation {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 14px -18px;
  padding: 0;
}

.rj-match-card-header {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--rj-accent, #4ade80);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

[data-theme="fiel"] .rj-match-card-header {
  color: rgba(255, 255, 255, 0.6);
}

/* ── Bots Searching Section ── */
.rj-bots-searching {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  min-height: 24px;
}

.rj-bot-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  animation: rjChipGlow 3s ease-in-out infinite;
}

[data-theme="fiel"] .rj-bot-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

[data-theme="avanti"] .rj-bot-chip {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
}

.rj-bot-chip .rj-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
  animation: rjPulse 2s infinite;
}

[data-theme="fiel"] .rj-bot-chip .rj-chip-dot {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

@keyframes rjChipGlow {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.rj-bots-searching-empty {
  font-size: 0.62rem;
  color: var(--rj-text-muted);
  opacity: 0.5;
  font-style: italic;
}

/* ── Sector Radio Buttons ── */
.rj-sector-radios {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.rj-sector-radios::-webkit-scrollbar {
  width: 3px;
}

.rj-sector-radios::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.rj-sector-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.rj-sector-radio:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.rj-sector-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rj-sector-radio input[type="radio"]:checked {
  border-color: #ffffff;
}

[data-theme="avanti"] .rj-sector-radio input[type="radio"]:checked {
  border-color: var(--rj-accent);
}

.rj-sector-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

[data-theme="avanti"] .rj-sector-radio input[type="radio"]:checked::after {
  background: var(--rj-accent);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.5);
}

.rj-sector-radio .rj-sector-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rj-text);
}

.rj-sector-radio input[type="radio"]:checked ~ .rj-sector-label {
  font-weight: 700;
  color: #ffffff;
}

.rj-match-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rj-match-vs img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.rj-match-vs .vs-text {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--rj-text-secondary);
}

.rj-match-info {
  text-align: center;
  margin-bottom: 12px;
}

.rj-match-info .rj-match-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rj-text);
}

.rj-match-info .rj-match-venue {
  font-size: 0.75rem;
  color: var(--rj-text-muted);
}

/* ── Countdown Timer ── */
.rj-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--rj-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 16px;
  font-family: 'Outfit', monospace;
}

.rj-countdown-segment {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
}

.rj-countdown-sep {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* ── Reservar Button ── */
.rj-btn-reservar {
  width: 100%;
  padding: 10px;
  border-radius: var(--rj-radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--rj-transition);
  text-align: center;
  display: block;
  text-decoration: none;
}

[data-theme="fiel"] .rj-btn-reservar {
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

[data-theme="fiel"] .rj-btn-reservar:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

[data-theme="fiel"] .rj-btn-reservar.rj-btn-green {
  background: #4ade80;
  color: #0a0d12;
}

[data-theme="avanti"] .rj-btn-reservar {
  background: linear-gradient(135deg, #c8aa50, #a88a30);
  color: #071a0e;
  border: none;
}

[data-theme="avanti"] .rj-btn-reservar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 170, 80, 0.3);
}

/* ── Match Details ── */
.rj-match-details {
  margin-top: 12px;
  font-size: 0.75rem;
}

.rj-match-details-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid var(--rj-border);
}

.rj-match-details-row:last-child {
  border-bottom: none;
}

.rj-match-details-label {
  color: var(--rj-text-muted);
}

.rj-match-details-value {
  color: var(--rj-text);
  font-weight: 600;
}

/* ── Panel Cards ── */
.rj-panel-card {
  background: var(--rj-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rj-glass-border);
  border-radius: var(--rj-radius-sm);
  padding: 14px;
}

.rj-panel-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rj-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rj-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--rj-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rj-panel-item:last-child {
  border-bottom: none;
}

.rj-panel-item-content {
  flex: 1;
  overflow: hidden;
}

.rj-panel-item-title {
  color: var(--rj-text);
  font-weight: 600;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 2px;
}

.rj-panel-item-subtitle {
  font-size: 0.72rem;
  color: var(--rj-text-muted);
  display: block;
}

.rj-panel-item .material-symbols-rounded {
  font-size: 16px;
  color: var(--rj-text-muted);
}

.rj-panel-item .rj-highlight {
  color: #4ade80;
  font-weight: 600;
}

/* ── Activity Feed ── */
.rj-activity {
  background: var(--rj-card-bg);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-radius);
  padding: 16px;
}

.rj-activity-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rj-text);
  margin-bottom: 12px;
}

.rj-activity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  text-align: center;
}

.rj-activity-stat .rj-stat-label {
  font-size: 0.68rem;
  color: var(--rj-text-muted);
  margin-bottom: 4px;
}

.rj-activity-stat .rj-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rj-text);
}

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

.rj-activity-table th {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rj-text-muted);
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--rj-border);
}

.rj-activity-table td {
  font-size: 0.78rem;
  color: var(--rj-text-secondary);
  padding: 8px;
  border-bottom: 1px solid var(--rj-border);
}

.rj-activity-table tr:last-child td {
  border-bottom: none;
}

/* ── Upcoming Matches Section Title ── */
.rj-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rj-text);
  margin-bottom: 12px;
}

/* ── HOME PAGE ── */
.rj-home {
  background: var(--rj-hero-gradient);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.rj-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(74, 222, 128, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(200, 170, 80, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Particles */
.rj-home .rj-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: rjFloat 6s infinite;
}

@keyframes rjFloat {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-20px); opacity: 1; }
}

.rj-home-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: relative;
  z-index: 10;
}

.rj-home-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.rj-home-logo .rj-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #0a0d12;
}

.rj-home-logo span {
  font-weight: 800;
  font-size: 1.3rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.rj-home-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.rj-home-nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.rj-home-nav-links a:hover {
  color: #ffffff;
}

.rj-home-nav-links .rj-btn-demo {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--rj-transition);
}

.rj-home-nav-links .rj-btn-demo:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Home Cards Container */
.rj-home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

/* Club Card */
.rj-club-card {
  border-radius: var(--rj-radius-lg);
  overflow: hidden;
  transition: var(--rj-transition);
  position: relative;
}

.rj-club-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--rj-shadow-lg);
}

.rj-club-card.corinthians {
  background: linear-gradient(180deg, #1a1f2e 0%, #0a0d12 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rj-club-card.palmeiras {
  background: linear-gradient(180deg, #0f3520 0%, #071a0e 100%);
  border: 1px solid rgba(74, 222, 128, 0.12);
}

.rj-club-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 20px 20px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.rj-club-card.palmeiras .rj-club-badge {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
}

.rj-club-badge img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.rj-club-headline {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  color: #ffffff;
}

.rj-club-card.palmeiras .rj-club-headline {
  color: #c8aa50;
}

.rj-club-stadium-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
  padding: 0 16px;
}

.rj-club-bottom {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 16px;
  border-radius: var(--rj-radius);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rj-club-card.palmeiras .rj-club-bottom {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(200, 170, 80, 0.1);
}

.rj-club-bottom-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rj-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.rj-club-bottom-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 16px;
}

.rj-club-features {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.rj-club-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--rj-text-secondary);
}

.rj-club-feature .rj-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.rj-club-cta {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--rj-radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: var(--rj-transition);
  cursor: pointer;
}

.rj-club-card.corinthians .rj-club-cta {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rj-club-card.corinthians .rj-club-cta:hover {
  background: rgba(255, 255, 255, 0.2);
}

.rj-club-card.palmeiras .rj-club-cta {
  background: linear-gradient(135deg, #c8aa50, #a88a30);
  color: #071a0e;
  border: none;
}

.rj-club-card.palmeiras .rj-club-cta:hover {
  box-shadow: 0 4px 20px rgba(200, 170, 80, 0.4);
  transform: translateY(-2px);
}

/* ── Home Footer ── */
.rj-home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: relative;
  z-index: 10;
  margin-top: 40px;
}

.rj-home-footer-links {
  display: flex;
  gap: 20px;
}

.rj-home-footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.rj-home-footer-social {
  display: flex;
  gap: 16px;
}

.rj-home-footer-social a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  transition: color 0.3s;
}

.rj-home-footer-social a:hover {
  color: #ffffff;
}

/* ── Login / Cadastro Glass ── */
.rj-auth-card {
  background: var(--rj-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--rj-glass-border);
  border-radius: var(--rj-radius-lg);
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  margin: auto;
}

.rj-auth-card .rj-auth-logos {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.rj-auth-card .rj-auth-logos img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--rj-glass-border);
  background: #fff;
  object-fit: contain;
  padding: 4px;
}

.rj-auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rj-text);
  margin-bottom: 24px;
}

.rj-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--rj-radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rj-glass-border);
  color: var(--rj-text);
  font-size: 0.95rem;
  font-family: var(--rj-font);
  transition: var(--rj-transition);
  text-align: center;
}

.rj-input:focus {
  outline: none;
  border-color: var(--rj-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--rj-accent-glow);
}

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

.rj-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rj-text-secondary);
  margin-bottom: 6px;
}

.rj-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--rj-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--rj-transition);
  text-align: center;
  display: block;
  text-decoration: none;
  border: none;
}

.rj-btn-primary {
  background: var(--rj-accent);
  color: #0a0d12;
}

.rj-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--rj-accent-glow);
}

.rj-btn-outline {
  background: transparent;
  color: var(--rj-text-secondary);
  border: 1px solid var(--rj-glass-border);
}

.rj-btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--rj-text);
}

/* ── Header for Palmeiras dashboard ── */
.rj-header-palmeiras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: relative;
  z-index: 10;
}

.rj-header-palmeiras .rj-header-left {
  display: flex;
  flex-direction: column;
}

.rj-header-palmeiras .rj-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rj-text);
  text-transform: uppercase;
}

.rj-header-palmeiras .rj-header-welcome {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--rj-text);
}

.rj-header-palmeiras .rj-header-welcome .rj-online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  margin-left: 8px;
  vertical-align: middle;
}

.rj-header-palmeiras .rj-header-actions {
  display: flex;
  gap: 10px;
}

/* ── Background watermark ── */
.rj-watermark {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(200, 170, 80, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 8px;
}

/* ── Responsive ── */

/* ── Hide scrollbar utility ── */
.rj-hide-scrollbar::-webkit-scrollbar { display: none; }
.rj-hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Large desktop: constrain max widths for ultra-wide screens */
@media (min-width: 1600px) {
  .rj-dashboard-fiel {
    max-width: 1600px;
    margin: 0 auto;
  }
}

/* ── Tablet / Smaller desktops ── */
@media (max-width: 1200px) {
  .rj-dashboard-fiel {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rj-dashboard-fiel .rj-left-panel {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid var(--rj-border);
    overflow-x: hidden;
  }
  .rj-dashboard-fiel .rj-left-panel .rj-panel-card {
    flex: 1;
    min-width: 280px;
  }
  .rj-dashboard-fiel .rj-right-panel {
    border-left: none;
    border-top: 1px solid var(--rj-border);
  }
  .rj-dashboard-fiel .rj-center-panel {
    overflow-x: hidden;
  }
  .rj-dashboard-main {
    grid-template-columns: 1fr;
  }
  .rj-sidebar {
    width: 240px;
    min-width: 240px;
  }
}

/* ── Mobile layout (≤ 768px) ── */
@media (max-width: 768px) {
  /* ── Avanti dashboard (Palmeiras) mobile ── */
  .rj-app[data-theme="avanti"] .rj-dashboard {
    flex-direction: column;
    min-height: auto;
  }
  .rj-app[data-theme="avanti"] .rj-sidebar {
    display: block;
    width: 100%;
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--rj-border);
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
  }
  .rj-app[data-theme="avanti"] .rj-dashboard-main {
    padding: 10px;
    max-height: none;
  }

  /* ── Fiel dashboard (Corinthians) mobile ── */
  .rj-dashboard-fiel {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  /* ── Left panel: compact single column ── */
  .rj-dashboard-fiel .rj-left-panel {
    flex-direction: column;
    padding: 10px;
    border-right: none;
    border-bottom: 1px solid var(--rj-border);
    overflow-x: hidden;
    gap: 10px;
  }
  .rj-dashboard-fiel .rj-left-panel .rj-panel-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }

  /* Limit "Meus Ingressos" list on mobile — scrollable, not infinite */
  .rj-dashboard-fiel .rj-left-panel #agendamentosSection .rj-panel-list {
    max-height: 180px !important;
    overflow-y: auto !important;
  }

  /* Limit "Contas Bots" list on mobile */
  .rj-dashboard-fiel .rj-left-panel .rj-panel-list {
    max-height: 350px !important;
    overflow-y: auto !important;
  }

  /* Activity log card — make sure it stays as its own block, never overlaps */
  .rj-activity-log-card {
    margin-top: 8px !important;
    position: relative;
    z-index: 1;
  }
  .rj-log-container {
    max-height: 180px;
  }

  /* ── CENTER + RIGHT: side by side via wrapper ── */
  .rj-dashboard-fiel .rj-center-panel,
  .rj-dashboard-fiel .rj-right-panel {
    border-left: none;
    border-right: none;
    overflow-x: hidden;
  }

  /* The wrapper switches from display:contents to display:flex on mobile */
  .rj-stadium-ticket-row {
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid var(--rj-border);
    overflow: hidden;
  }

  /* Stadium: takes ~55% width */
  .rj-stadium-ticket-row .rj-center-panel {
    flex: 1.1;
    min-width: 0;
    padding: 0 !important;
    overflow-y: auto;
  }

  /* Match Ticket: takes ~45% width */
  .rj-stadium-ticket-row .rj-right-panel {
    flex: 0.9;
    min-width: 0;
    padding: 0 !important;
    border-top: none !important;
    overflow-y: auto;
  }

  /* ── Subnav ── */
  .rj-subnav {
    margin: 8px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .rj-subnav-brand {
    justify-content: center;
  }
  .rj-subnav-tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }
  .rj-subnav-tab {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .rj-subnav-user {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ── Topbar ── */
  .rj-topbar {
    padding: 10px 14px;
  }
  .rj-topbar-brand span {
    font-size: 0.95rem;
  }

  /* ── Stadium map — compact ── */
  .rj-stadium-title {
    font-size: 0.7rem;
    letter-spacing: 0;
  }
  .rj-stadium-subtitle {
    font-size: 0.6rem;
    margin-bottom: 8px;
  }
  .rj-stadium-container {
    padding: 10px 8px;
  }
  .rj-stadium-map svg {
    max-width: 100%;
  }

  /* ── Match ticket: countdown timer smaller ── */
  .rj-countdown {
    padding: 8px 4px;
    gap: 3px;
  }
  .rj-countdown-segment {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
  .rj-countdown-sep {
    font-size: 0.7rem;
  }

  /* Match card header */
  .rj-match-card-header {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
  }

  /* Match card general */
  .rj-match-card {
    padding: 12px 10px;
    margin-bottom: 10px;
  }
  .rj-match-card::before,
  .rj-match-card::after {
    width: 10px;
    height: 10px;
  }

  /* Match VS section */
  .rj-match-vs {
    gap: 8px;
    margin-bottom: 6px;
  }
  .rj-match-vs img {
    width: 32px;
    height: 32px;
  }
  .rj-match-vs .vs-text {
    font-size: 0.65rem;
  }

  /* Match date/info */
  .rj-match-info .rj-match-date {
    font-size: 0.68rem;
  }
  .rj-match-info {
    margin-bottom: 8px;
  }

  /* Match details */
  .rj-match-details {
    font-size: 0.65rem;
  }
  .rj-match-details-value {
    font-size: 0.65rem;
    word-break: break-word;
  }

  /* Sector radios — compact */
  .rj-sector-radios {
    max-height: 120px;
  }
  .rj-sector-radio {
    padding: 4px 6px;
  }
  .rj-sector-radio .rj-sector-label {
    font-size: 0.65rem;
  }

  /* Reservar button */
  .rj-btn-reservar {
    padding: 8px;
    font-size: 0.78rem;
  }

  /* ── Upcoming Matches (horizontal scroll) ── */
  .rj-matches-integrated {
    overflow: hidden;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .rj-matches-integrated > div:last-child {
    padding-left: 10px !important;
    padding-right: 10px;
  }
  .rj-matches-integrated .glass-card {
    min-width: 170px !important;
    max-width: 170px !important;
    padding: 10px !important;
  }

  /* ── Panel items — readable but compact ── */
  .rj-panel-item-title {
    font-size: 0.72rem;
    word-break: break-word;
  }
  .rj-panel-item-subtitle {
    font-size: 0.62rem;
  }
  .rj-panel-card-title {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }

  /* Bot chips */
  .rj-bot-chip {
    font-size: 0.55rem;
    padding: 2px 7px;
  }

  /* ── Home page responsive ── */
  .rj-home-cards {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .rj-home-navbar {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .rj-home-nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  .rj-club-headline {
    font-size: 1.4rem;
  }
  .rj-club-bottom-title {
    font-size: 1.1rem;
  }
  .rj-home-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  /* Avanti dashboard */
  .rj-dashboard-main {
    grid-template-columns: 1fr;
    padding: 10px;
    max-height: none;
  }

  /* Palmeiras header */
  .rj-header-palmeiras {
    padding: 10px 14px;
  }
  .rj-header-palmeiras .rj-header-title {
    font-size: 0.75rem;
  }
  .rj-header-palmeiras .rj-header-welcome {
    font-size: 0.95rem;
  }
}

/* ── Extra small phones (≤ 480px) ── */
@media (max-width: 480px) {
  .rj-subnav {
    margin: 6px;
    padding: 8px 10px;
  }
  .rj-subnav-tab {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .rj-subnav-brand span {
    font-size: 0.85rem;
  }
  .rj-badge-active {
    font-size: 0.65rem;
    padding: 4px 10px;
  }

  /* Countdown even smaller */
  .rj-countdown {
    padding: 6px 3px;
    gap: 2px;
  }
  .rj-countdown-segment {
    font-size: 0.72rem;
    letter-spacing: 0.3px;
  }
  .rj-countdown-sep {
    font-size: 0.6rem;
  }

  /* Stadium */
  .rj-stadium-title {
    font-size: 0.65rem;
  }
  .rj-stadium-container {
    padding: 8px 6px;
  }

  /* Match card even more compact */
  .rj-match-card {
    padding: 10px 8px;
  }
  .rj-match-vs img {
    width: 28px;
    height: 28px;
  }
  .rj-match-vs .vs-text {
    font-size: 0.6rem;
  }
  .rj-match-info .rj-match-date {
    font-size: 0.6rem;
  }
  .rj-match-card-header {
    font-size: 0.5rem;
  }

  /* Sector labels extra small */
  .rj-sector-radio .rj-sector-label {
    font-size: 0.6rem;
  }

  /* Upcoming matches cards smaller */
  .rj-matches-integrated .glass-card {
    min-width: 150px !important;
    max-width: 150px !important;
    padding: 8px !important;
  }

  /* Topbar */
  .rj-topbar {
    padding: 8px 10px;
  }
  .rj-topbar-brand img {
    width: 26px;
    height: 26px;
  }
  .rj-topbar-brand span {
    font-size: 0.9rem;
  }

  /* Panel cards side padding */
  .rj-dashboard-fiel .rj-left-panel,
  .rj-dashboard-fiel .rj-center-panel,
  .rj-dashboard-fiel .rj-right-panel {
    padding: 6px;
  }

  /* Meus Ingressos even more compact */
  .rj-dashboard-fiel .rj-left-panel #agendamentosSection .rj-panel-list {
    max-height: 140px !important;
  }
}

/* ── Form switch override for dark theme ── */
.rj-app .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.rj-app .form-check-input:checked {
  background-color: #4ade80;
  border-color: #4ade80;
}

.rj-app .form-select {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--rj-text);
  border: 1px solid var(--rj-glass-border);
  border-radius: var(--rj-radius-sm);
}

/* ── Modal glassmorphism ── */
.rj-app .modal-content {
  background: var(--rj-surface) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--rj-glass-border) !important;
  border-radius: var(--rj-radius-lg) !important;
  color: var(--rj-text) !important;
}

.rj-app .modal-header {
  border-bottom: 1px solid var(--rj-border) !important;
  background: transparent !important;
}

.rj-app .modal-footer {
  border-top: 1px solid var(--rj-border) !important;
}

/* ── Notification bell ── */
.rj-notif-bell {
  position: relative;
}

.rj-notif-bell .rj-notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--rj-bg);
}
/* ── Mobile Optimization (MAX 768px) ── */
@media (max-width: 768px) {
  /* Reordering: Match cards (TheSportsDB) on top, others at the bottom */
  .rj-dashboard-fiel {
    display: flex !important;
    flex-direction: column !important;
  }

  /* 1. Bottom Panel (Partidas) -> Order 1 (TOP) */
  .rj-dashboard-fiel .rj-bottom-panel {
    order: 1 !important;
    border-top: none !important;
    border-bottom: 1px solid var(--rj-border) !important;
    padding-top: 0 !important;
  }

  /* 2. Right Panel (Match Cards) -> Order 2 */
  .rj-dashboard-fiel .rj-right-panel {
    order: 2 !important;
    border-left: none !important;
  }

  /* 3. Center Panel (Stadium) -> Order 3 */
  .rj-dashboard-fiel .rj-center-panel {
    order: 3 !important;
  }

  /* 4. Left Panel (Bots/Ingressos) -> Order 4 (BOTTOM) */
  .rj-dashboard-fiel .rj-left-panel {
    order: 4 !important;
    border-right: none !important;
  }

  /* Mobile Subnav (Dropdown Style) */
  .rj-subnav {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .rj-subnav-tabs {
    display: none; /* Hidden by default on mobile, can be toggled or converted to select */
    flex-direction: column;
    width: 100%;
    background: var(--rj-card-bg);
    border: 1px solid var(--rj-border);
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
  }

  .rj-subnav-tabs.show {
    display: flex;
  }

  .rj-mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--rj-glass-border);
    border-radius: 12px;
    color: var(--rj-text);
    font-weight: 700;
    cursor: pointer;
  }

  .rj-subnav-tab {
    width: 100%;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .rj-subnav-tab:last-child {
    border-bottom: none;
  }
}

/* Base style for toggle (hidden on desktop) */
.rj-mobile-menu-toggle {
  display: none;
}

/* ── Pricing Page (New Landing Design) ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.price-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 44px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.price-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-15px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.price-card.featured {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.badge-premium {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--rj-primary);
  color: var(--rj-bg);
  padding: 12px 45px;
  transform: rotate(45deg);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.p-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rj-text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.p-price {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 0px;
  letter-spacing: -4px;
  font-style: italic;
  color: var(--rj-text);
}

.p-currency {
  font-size: 1.5rem;
  vertical-align: top;
  margin-right: 5px;
  opacity: 0.6;
}

.p-period {
  font-size: 1rem;
  color: var(--rj-text-muted);
  margin-bottom: 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.p-features {
  list-style: none;
  text-align: left;
  margin-bottom: 40px;
  padding: 0 10px;
}

.p-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--rj-text-secondary);
  font-weight: 500;
  font-size: 1.1rem;
}

.p-features li i {
  font-size: 20px;
  opacity: 0.4;
  color: var(--rj-text);
}

.p-features li.premium i {
  opacity: 1 !important;
  filter: drop-shadow(0 0 10px var(--rj-primary));
}

.p-cta {
  margin-top: auto;
  padding: 20px;
  border-radius: 20px;
  background: var(--rj-btn-primary-bg);
  color: var(--rj-btn-primary-text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.p-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* ── Starfield Animation ── */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur, 4s) var(--delay, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
