/* =========================================
   GANAMOSGOLD - NEXT GEN THEME (v3.0)
   ========================================= */

:root {
  /* --- CORE PALETTE --- */
  --bg-deep: #050505;
  --bg-surface: #0a0a0a;
  --bg-elevated: #141414;

  --accent-primary: #ff0033; /* Electric Red */
  --accent-glow: rgba(255, 0, 51, 0.6);

  --gold-primary: #ffd700;
  --gold-secondary: #d4af37;
  --gold-gradient: linear-gradient(
    135deg,
    #ffd700 0%,
    #fdb931 50%,
    #d4af37 100%
  );

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  /* --- UI ELEMENTS --- */
  --nav-bg: rgba(10, 10, 10, 0.7);
  --nav-blur: blur(20px);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);

  /* --- SPACING & LAYOUT --- */
  --container-max: 1440px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* --- FONTS --- */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ================== RESET & BASE ================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* ================== BACKGROUND FX ================== */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(255, 0, 51, 0.08) 0%,
    transparent 70%
  );
  filter: blur(80px);
  z-index: -2;
  animation: floatGlow 15s infinite alternate;
}

.bg-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.05) 0%,
    transparent 70%
  );
  filter: blur(100px);
  z-index: -2;
  animation: floatGlow 20s infinite alternate-reverse;
}

@keyframes floatGlow {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* ================== UTILS ================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================== NAVIGATION (FLOATING) ================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--nav-bg);
  backdrop-filter: var(--nav-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  height: 80px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-center {
  display: flex;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.balance-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 600;
}

.currency {
  color: var(--gold-primary);
}

.deposit-btn-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.deposit-btn-mini:hover {
  transform: scale(1.1);
}

.profile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-link {
  font-weight: 600;
  padding: 0 12px;
}

.signup-btn {
  background: var(--accent-primary);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.signup-btn:hover {
  transform: translateY(-2px);
}

.mobile-menu-toggle {
  display: none;
}

/* Mobile Auth Actions (Desktop: Hidden) */
.mobile-auth-actions {
  display: none;
}

/* Panel Dropdown */
.panel-trigger {
  font-size: 1.2rem;
  color: var(--gold-primary);
  padding: 0 8px;
}

.panel-dropdown {
  position: absolute;
  top: 100%;
  right: 24px;
  margin-top: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.panel-dropdown.visible {
  display: flex;
}

.panel-dropdown a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.panel-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.logout-link {
  color: #ff4444 !important;
}

/* ================== HERO SECTION (MODERN) ================== */
.hero-modern {
  padding-top: 160px; /* Space for navbar */
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  color: var(--gold-primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse 2s infinite;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 24px;
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
  color: transparent;
}

.text-highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-cta-wrapper {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-button.primary {
  background: var(--text-primary);
  color: #000;
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary {
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
}

.cta-button.secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Hero Visual (Card Stack 3D Animated) */
.hero-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-card-stack {
  position: relative;
  width: 340px;
  height: 480px;
  perspective: 1500px;
  transform-style: preserve-3d;
}

.card-3d-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: 50% 100%;
  overflow: hidden;
  will-change: transform, opacity;
}

.card-3d-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-3d-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  gap: 15px;
}

.card-3d-info {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.card-3d-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  display: block;
  margin-top: 10px;
}

.hero-play-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-play-btn:hover {
  transform: scale(1.15);
}

/* --- ESTADOS DE LAS CARTAS --- */

/* ACTIVA (Frente) */
.card-3d-item.pos-0 {
  z-index: 10;
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  filter: brightness(1);
  border-color: var(--gold-primary);
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.15),
    0 30px 60px rgba(0, 0, 0, 0.7);
}

.card-3d-item.pos-0:hover .card-3d-overlay {
  opacity: 1;
}
.card-3d-item.pos-0:hover .card-3d-info {
  transform: translateY(0);
}
.card-3d-item.pos-0:hover .card-3d-img {
  transform: scale(1.1);
}

/* SIGUIENTE 1 */
.card-3d-item.pos-1 {
  z-index: 9;
  transform: translate3d(40px, 15px, -50px) scale(0.95) rotate(3deg);
  opacity: 0.6;
  filter: brightness(0.6) blur(0.5px);
  pointer-events: none;
}

/* SIGUIENTE 2 */
.card-3d-item.pos-2 {
  z-index: 8;
  transform: translate3d(80px, 30px, -100px) scale(0.9) rotate(6deg);
  opacity: 0.3;
  filter: brightness(0.4) blur(1px);
  pointer-events: none;
}

/* OCULTAS / ATRÁS */
.card-3d-item.pos-hidden {
  z-index: 0;
  transform: translate3d(0, 60px, -200px) scale(0.8);
  opacity: 0;
  pointer-events: none;
}

/* --- Elementos Flotantes --- */
.floating-element {
  position: absolute;
  font-size: 3.5rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
  z-index: 20;
  animation: floatElement 6s ease-in-out infinite;
}

.coin-1 {
  top: -40px;
  right: -40px;
  animation-delay: 0s;
  transform: rotate(15deg);
}
.coin-2 {
  bottom: 20px;
  left: -60px;
  animation-delay: 2s;
  font-size: 2.5rem;
  transform: rotate(-10deg);
}

@keyframes floatElement {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r, 0deg));
  }
  50% {
    transform: translateY(-25px) rotate(var(--r, 0deg));
  }
}

/* ================== LIVE WINNERS TICKER ================== */
.marquee-container {
  background: linear-gradient(
    90deg,
    #000 0%,
    rgba(20, 0, 0, 0.9) 50%,
    #000 100%
  );
  border-top: 1px solid var(--accent-primary);
  border-bottom: 1px solid var(--accent-primary);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 20;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.15);
}

.marquee-content {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  align-items: center;
}

.winner-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.winner-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border: 1px solid var(--gold-primary);
}

.winner-name {
  font-weight: 600;
  color: var(--text-primary);
}

.winner-amount {
  color: var(--gold-primary);
  font-weight: 700;
  font-family: var(--font-display);
}

.winner-game {
  color: var(--accent-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

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

/* ================== CATEGORIES (SCROLL) ================== */
.section-categories {
  margin-bottom: 60px;
}

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
  background: var(--bg-elevated);
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* ================== LOBBY VIEW (HORIZONTAL ROWS) ================== */
.lobby-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-bottom: 80px;
}

.provider-row-section {
  position: relative;
}

.row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding: 0 10px;
}

.row-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-header .view-all-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.row-header .view-all-link:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.lobby-scroll-wrapper {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 10px 30px 10px; /* Bottom padding for hover effects */
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.lobby-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.lobby-scroll-wrapper .game-card-modern {
  flex: 0 0 200px; /* Fixed width for horizontal scroll items */
  scroll-snap-align: start;
}

@media (max-width: 768px) {
  .lobby-scroll-wrapper .game-card-modern {
    flex: 0 0 160px;
    height: 220px;
  }

  .row-header h3 {
    font-size: 1.2rem;
  }
}

/* ================== GAMES GRID (MODERN) ================== */
.section-games {
  margin-bottom: 100px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
}

.section-headline.small {
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.section-headline .highlight {
  color: var(--gold-primary);
}

.nav-arrows {
  display: flex;
  gap: 12px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.arrow-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--text-primary);
}

.game-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  grid-auto-rows: 300px; /* Base height */
}

.game-card-modern {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.game-card-modern.span-2 {
  grid-column: span 2;
  grid-row: span 1;
}

.card-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.game-card-modern:hover .card-media img {
  transform: scale(1.1);
}

.game-card-modern:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 5;
  transform: translateY(-5px);
}

.card-actions {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.game-card-modern:hover .card-actions {
  opacity: 1;
}

.play-button {
  padding: 12px 28px;
  background: var(--text-primary);
  color: #000;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  transform: translateY(20px);
  transition: all 0.3s;
}

.game-card-modern:hover .play-button {
  transform: translateY(0);
}

.provider-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.card-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.game-card-modern:hover .card-meta {
  transform: translateY(0);
}

.game-name {
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

/* ================== POPULAR SLIDER ================== */
.section-popular {
  margin-bottom: 100px;
}

.popular-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
}

.popular-item {
  flex: 0 0 160px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
}

.popular-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.pop-overlay span {
  font-size: 2rem;
  color: white;
}

.popular-item:hover {
  transform: scale(1.05);
  border-color: var(--gold-primary);
}

.popular-item:hover .pop-overlay {
  opacity: 1;
}

/* ================== FOOTER (MODERN) ================== */
.modern-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
  background: var(--bg-surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo-text .gold {
  color: var(--gold-primary);
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.f-col h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 20px;
}

.f-col a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.f-col a:hover {
  color: var(--gold-primary);
  transform: translateX(5px);
}

.footer-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-icons {
  font-size: 1.5rem;
  display: flex;
  gap: 12px;
  filter: grayscale(1);
  opacity: 0.5;
}

/* ================== APP BAR (MOBILE) ================== */
.app-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 65px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(15px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-highlight);
  z-index: 2000;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.app-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 8px 0;
  gap: 4px;
  text-decoration: none;
}

.app-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-item.active {
  color: var(--gold-primary);
  transform: translateY(-5px);
}

.app-item.active .app-label {
  color: var(--gold-primary);
}

.app-item.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-primary);
}

.app-item.fab {
  background: var(--gold-gradient);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: 0 0 56px;
  color: #000;
  font-weight: bold;
  font-size: 1.8rem;
  transform: translateY(-25px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
  border: 4px solid var(--bg-deep);
  justify-content: center;
  align-items: center;
  padding: 0;
}

.app-item.fab .icon {
  margin-top: -2px; /* Optical adjustment */
}

.app-item.fab .app-label {
  display: none;
}

/* ================== GAMES PAGE SPECIFIC ================== */
.page-header-modern {
  padding-top: 140px;
  padding-bottom: 40px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 215, 0, 0.05) 0%,
    transparent 70%
  );
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-title .highlight {
  color: var(--gold-primary);
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.filters-section {
  margin-bottom: 60px;
}

.search-bar-modern {
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 60px;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
  outline: none;
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

.filters-scroll {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--bg-elevated);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.load-more-wrapper {
  margin-top: 60px;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-highlight);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ================== AUTH PAGE SPECIFIC ================== */
.auth-page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-card-modern {
  width: 100%;
  max-width: 440px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--bg-elevated);
  border-radius: 50%;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-form-group {
  margin-bottom: 24px;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.auth-btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold-gradient);
  color: #000;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
}

.auth-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

.auth-footer-links {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.auth-link-highlight {
  color: var(--gold-primary);
  font-weight: 600;
  margin-left: 5px;
}

.auth-link-highlight:hover {
  text-decoration: underline;
}

.auth-back-link {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  z-index: 20;
}

.auth-back-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text-content {
    align-items: center;
    display: flex;
    flex-direction: column;
  }
  .hero-visual {
    display: none;
  } /* Simplify for tablet/mobile */
  .hero-headline {
    font-size: 3.5rem;
  }
  .hero-modern {
    padding-top: 120px;
  }
  .page-header-modern {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
    padding: 0;
  }
  .nav-container {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(5, 5, 5, 0.9);
    padding: 0 16px;
    justify-content: space-between; /* Ensure space between brand and right items */
  }
  .nav-center {
    display: none;
  } /* Hide desktop menu */

  .nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand-text-mobile {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1;
    display: flex !important;
    flex-direction: column;
  }
  .brand-text-mobile span {
    color: var(--gold-primary);
  }

  /* Show Mobile Auth */
  .mobile-auth-actions {
    display: flex;
    align-items: center;
    margin-right: 0;
  }
  .mobile-login-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
  }
  .mobile-login-btn:active {
    background: var(--gold-primary);
    color: #000;
  }

  /* Ensure nav-right is displayed in flex for mobile to hold the auth button */
  .nav-right {
    display: flex !important;
    align-items: center;
    gap: 8px; /* Ajuste espacio */
  }

  /* Ocultar elementos desktop */
  .nav-right > .balance-pill,
  .nav-right > .profile-btn,
  .nav-right > .deposit-btn-mini,
  .nav-right > .panel-trigger,
  .nav-right > .login-link,
  .nav-right > .signup-btn {
    display: none !important;
  }

  /* But show the mobile-specific ones */
  .nav-right .mobile-auth-actions {
    display: flex;
  }
  .mobile-panel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-right: 8px;
    text-decoration: none;
  }
  .mobile-profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-highlight);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
  }

  .mobile-menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 6px auto;
  }

  .nav-center.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 999;
  }

  .app-bar {
    display: flex;
  }

  /* Mobile Hero Improvements */
  .hero-modern {
    padding-top: 110px;
    padding-bottom: 60px;
    /* Add a subtle mobile background since 3D stack is hidden */
    background-image: radial-gradient(
      circle at 50% 20%,
      rgba(255, 0, 51, 0.15) 0%,
      transparent 60%
    );
  }
  .hero-headline {
    font-size: 3rem;
    text-align: center;
    line-height: 1.1;
  }
  .hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: fit-content;
  }
  .hero-cta-wrapper {
    justify-content: center;
    gap: 12px;
  }
  .cta-button {
    padding: 14px 24px;
    font-size: 0.9rem;
  }
  .hero-stats {
    justify-content: center;
    gap: 20px;
  }
  .stat-item {
    align-items: center;
  }
  .stat-num {
    font-size: 1.2rem;
  }

  .game-grid-modern {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    grid-auto-rows: 220px;
  }
  .game-card-modern.span-2 {
    grid-column: span 1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }
  .footer {
    padding-bottom: 100px;
  } /* Space for app bar */

  /* Games Page Mobile */
  .page-header-modern {
    padding-top: 100px;
  }
  .page-title {
    font-size: 2rem;
  }
  .filters-scroll {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
  }
  .filter-pill {
    flex: 0 0 auto;
  }

  /* Auth Page Mobile */
  .auth-card-modern {
    padding: 32px 24px;
  }
  .auth-back-link {
    top: 20px;
    left: 20px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .game-grid-modern {
    grid-template-columns: 1fr 1fr;
  }
}

/* ================== PROVIDERS HEADER & MODAL ================== */
.section-providers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.section-providers-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.btn-view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 215, 0, 0.05);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.btn-view-all:hover {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Update Provider Card for Name */
.provider-card {
  flex-direction: column;
  gap: 8px;
  height: 110px; /* Increased height */
  padding: 15px 10px;
}

.provider-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0.8;
  transition: color 0.3s;
}

.provider-card:hover .provider-name {
  color: var(--text-primary);
  opacity: 1;
}

.provider-card img {
  max-height: 50px; /* Limit logo height */
}

/* Modal Styles */
.providers-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.providers-modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.providers-modal.open .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 5px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-primary);
}

.modal-search-bar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.modal-search-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.modal-search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

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

/* Provider Mini Card in Modal */
.provider-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  text-decoration: none;
}

.provider-mini:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  background: rgba(255, 215, 0, 0.05);
}

.provider-mini img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  transition: 0.2s;
}

.provider-mini:hover img {
  filter: grayscale(0);
}

.provider-mini span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

.provider-mini:hover span {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.section-providers {
  margin-bottom: 80px;
  position: relative;
}

.providers-scroll-wrapper {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.providers-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollProviders 60s linear infinite;
  padding-left: 20px;
  /* Pause animation on hover */
}

.providers-track:hover {
  animation-play-state: paused;
}

@keyframes scrollProviders {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.provider-card {
  flex: 0 0 160px;
  height: 90px;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.provider-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.provider-card:hover {
  background: rgba(30, 30, 30, 0.9);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.3);
  z-index: 5;
}

.provider-card:hover::before {
  transform: scaleX(1);
}

.provider-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: all 0.4s ease;
}

.provider-card:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

@media (max-width: 768px) {
  .provider-card {
    flex: 0 0 120px;
    height: 70px;
    padding: 15px;
  }
}

/* ================== PANEL & DASHBOARD STYLES (Global) ================== */

/* Topbar Modern */
.topbar-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}
.btn-back:hover {
  color: var(--text-primary);
}

.panel-brand,
.cashier-brand {
  height: 40px;
  width: auto;
}

.balance-display {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

/* Panel Containers */
.panel-container,
.cashier-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 80vh;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.page-title-icon {
  font-size: 2rem;
}

.page-title-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Grids */
.panel-grid,
.cashier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Cards */
.panel-card,
.cashier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.panel-card:hover,
.cashier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--gold-primary);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--gold-primary);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* Buttons */
.btn-action {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-display);
  border: none;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
}

.btn-primary-gold,
.btn-deposit {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}
.btn-primary-gold:hover,
.btn-deposit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary-dark,
.btn-withdraw {
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
}
.btn-secondary-dark:hover,
.btn-withdraw:hover {
  background: var(--text-primary);
  color: #000;
  border-color: var(--text-primary);
}

.btn-danger-modern {
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
}
.btn-danger-modern:hover {
  background: #ff4444;
  color: white;
}

/* Tables */
.table-card,
.transactions-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.table-tools {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 700px;
}

.modern-table th {
  text-align: left;
  padding: 16px;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.modern-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  vertical-align: middle;
}

.modern-table tr:last-child td {
  border-bottom: none;
}
.modern-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

.input-mini {
  padding: 8px 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  width: 120px;
}

.btn-mini {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.btn-mini.danger {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}
.btn-mini.danger:hover {
  background: #ff4444;
  color: white;
}
.btn-mini.primary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-highlight);
  color: var(--text-primary);
}
.btn-mini.primary:hover {
  background: var(--text-primary);
  color: #000;
}

/* Status Badges */
.status-badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-approved,
.status-paid {
  background: rgba(0, 255, 127, 0.15);
  color: #00ff7f;
}
.status-pending,
.status-submitted,
.status-requested {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}
.status-rejected,
.status-cancelled {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
}

/* Reclaim Section Specifics */
.reclaim-section {
  border: 1px solid rgba(255, 68, 68, 0.3) !important;
  background: linear-gradient(
    to bottom right,
    var(--bg-surface),
    rgba(255, 68, 68, 0.05)
  );
}
.reclaim-header .card-title {
  color: #ff4444 !important;
}

/* Mobile Adjustments for Panel */
@media (max-width: 768px) {
  .topbar-modern {
    padding: 16px;
  }
  .panel-container,
  .cashier-container {
    padding: 0 16px;
    margin-top: 20px;
    margin-bottom: 100px;
  }
  .page-title-text {
    font-size: 1.5rem;
  }
  .modern-table {
    min-width: 600px;
  }
  .btn-mini {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .input-mini {
    width: 80px;
  }
}

/* ================== EXTRA POLISH ================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Custom Select Styling */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0a0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}

/* Table Row Animation */
.modern-table tbody tr {
  animation: fadeInRow 0.5s ease forwards;
  opacity: 0;
}
.modern-table tbody tr:nth-child(1) {
  animation-delay: 0.1s;
}
.modern-table tbody tr:nth-child(2) {
  animation-delay: 0.15s;
}
.modern-table tbody tr:nth-child(3) {
  animation-delay: 0.2s;
}
.modern-table tbody tr:nth-child(4) {
  animation-delay: 0.25s;
}
.modern-table tbody tr:nth-child(5) {
  animation-delay: 0.3s;
}
.modern-table tbody tr:nth-child(n + 6) {
  animation-delay: 0.35s;
}

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