/* Competition Cards - Override Bootstrap col-xl-3 to use 33% width ONLY on desktop */
@media (min-width: 1200px) {
  .col-xl-3 {
    flex: 0 0 auto;
    width: 33.333333% !important;
  }
}

/* Ensure mobile still shows 1 card per row */
@media (max-width: 1199px) {
  .col-xl-3 {
    flex: 0 0 auto;
    width: 100% !important;
  }
}

/* Base Styles */
:root {
  /* Common variables (shared across themes) */
  --border-radius: 8px;
  --transition-speed: 0.2s;

  /* Font families */
  --font-primary: "Rajdhani", sans-serif;
  --font-heading: "Orbitron", sans-serif;

  /* Transitions for theme switching */
  --theme-transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

  --bs-nav-pills-link-active-bg: var(--primary);
  --bs-nav-pills-link-active-color: #fff;
}

/* Dark theme variables (default) */
.dark-theme {
  --primary: #d12026;
  --primary-hover: #b21a20;
  --secondary: #ff5a60;
  --dark-bg: #0d0d0d;
  /* Near black with slight warmth */
  --darker-bg: #050505;
  /* Very close to pure black */
  --card-bg: rgba(25, 25, 25, 0.8);
  /* Dark gray, closer to black */
  --text-color: #ffffff;
  --text-muted: #888888;
  /* Lighter muted text */
  --border-color: rgba(209, 32, 38, 0.2);
  --glass-border: rgba(255, 255, 255, 0.08);
  /* Subtle borders */
  --glass-bg: rgba(18, 18, 18, 0.95);
  /* Slightly different from dark-bg */
  --glass-bg-hover: rgba(25, 25, 25, 0.95);
  /* Slightly lighter gray */
  --section-bg-alt: rgba(15, 15, 15, 0.9);
  /* Alternative section background */
  --section-bg-alt2: rgba(22, 22, 22, 0.85);
  /* Another variation */
  --glow-color: rgba(209, 32, 38, 0.6);
  --gradient-start: #d12026;
  --gradient-mid: #e33e44;
  --gradient-end: #ff5a60;

  /* Navbar specific */
  --navbar-bg: rgba(13, 13, 13, 0.98);
  /* Close to dark-bg */
  --navbar-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

  /* Footer specific */
  --footer-bg: var(--darker-bg);
  --footer-text: var(--text-color);
  --footer-link: var(--text-color);
  --footer-link-hover: var(--secondary);

  /* Form controls */
  --input-bg: rgba(25, 25, 25, 0.6);
  /* Dark gray input backgrounds */
  --input-border: var(--glass-border);
  --input-text: var(--text-color);
  --input-placeholder: var(--text-muted);

  /* Buttons */
  --btn-primary-bg: linear-gradient(90deg, var(--primary), var(--gradient-mid));
  --btn-primary-hover-bg: linear-gradient(90deg, var(--primary-hover), var(--gradient-mid));

  /* Override Bootstrap btn-primary disabled CSS variables to make disabled states red */
  --bs-btn-disabled-bg: #d12026;
  --bs-btn-disabled-border-color: #d12026;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-opacity: 0.6;
}

/* Light theme variables */
.light-theme {
  --primary: #c41c22;
  --primary-hover: #a4171c;
  --secondary: #ff5a60;
  --dark-bg: #f5f5f7;
  --darker-bg: #e5e5e7;
  --card-bg: rgba(255, 255, 255, 0.7);
  --text-color: #333344;
  --text-muted: #1d1d1d;
  --border-color: rgba(196, 28, 34, 0.2);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.945);
  --glass-bg-hover: rgba(245, 245, 255, 0.7);
  --glow-color: rgba(196, 28, 34, 0.3);
  --gradient-start: #c41c22;
  --gradient-mid: #d93438;
  --gradient-end: #ff5a60;

  /* Navbar specific */
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

  /* Footer specific */
  --footer-bg: var(--darker-bg);
  --footer-text: var(--text-color);
  --footer-link: var(--text-color);
  --footer-link-hover: var(--secondary);

  /* Form controls */
  --input-bg: rgba(255, 255, 255, 0.8);
  --input-border: var(--glass-border);
  --input-text: var(--text-color);
  --input-placeholder: var(--text-muted);

  /* Buttons */
  --btn-primary-bg: linear-gradient(90deg, var(--primary), var(--gradient-mid));
  --btn-primary-hover-bg: linear-gradient(90deg, var(--primary-hover), var(--gradient-mid));

  /* Override Bootstrap btn-primary disabled CSS variables to make disabled states red */
  --bs-btn-disabled-bg: #c41c22;
  --bs-btn-disabled-border-color: #c41c22;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-opacity: 0.6;
}

/* Override Bootstrap btn-primary disabled states - must be after theme definitions */
.btn-primary:disabled,
.btn-primary.disabled,
fieldset:disabled .btn-primary {
  --bs-btn-disabled-bg: var(--primary) !important;
  --bs-btn-disabled-border-color: var(--primary) !important;
  --bs-btn-disabled-color: #fff !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  opacity: 0.6 !important;
}

/* Override Bootstrap btn-primary active/clicked states to remain red */
.btn-primary:active,
.btn-primary.active,
.btn-primary:focus:active,
.btn-check:checked+.btn-primary,
.btn-primary.show {
  --bs-btn-active-bg: var(--primary) !important;
  --bs-btn-active-border-color: var(--primary) !important;
  --bs-btn-active-color: #fff !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Override Bootstrap btn-outline-primary hover states to remain red */
.btn-outline-primary:hover:not(:disabled):not(.disabled) {
  --bs-btn-hover-bg: var(--primary) !important;
  --bs-btn-hover-border-color: var(--primary) !important;
  --bs-btn-hover-color: #fff !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Override Bootstrap btn-outline-primary active/clicked states to remain red */
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:focus:active,
.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.show {
  --bs-btn-active-bg: var(--primary) !important;
  --bs-btn-active-border-color: var(--primary) !important;
  --bs-btn-active-color: #fff !important;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--dark-bg);
  transition: var(--theme-transition);
  /* Pre-apply header spacing to prevent layout shifts */
  padding-top: 100px;
  /* 70px navbar + 30px trustpilot section */
}

/* Paragraph styles */
p {
  font-size: 1.25rem;
}

/* Dark theme specific background */
.dark-theme {
  background-image: radial-gradient(circle at 10% 20%, rgba(209, 32, 38, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 90, 96, 0.1) 0%, transparent 20%),
    linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
  background-attachment: fixed;
  min-height: 100vh;
}

/* Light theme specific background */
.light-theme {
  background-image: radial-gradient(circle at 10% 20%, rgba(196, 28, 34, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 90, 96, 0.05) 0%, transparent 20%),
    linear-gradient(to bottom, var(--darker-bg), var(--dark-bg));
  background-attachment: fixed;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-color);
  transition: var(--theme-transition);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
}

/* Navbar Styles */
.navbar {
  background-color: transparent;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

/* Removed scroll effect - navbar stays consistent */

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--text-color) !important;
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--theme-transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Header icon colors for both themes */
.site-header .text-white {
  color: var(--text-color) !important;
  transition: var(--theme-transition);
}

/* Navbar dropdown menu adjustments for light theme */
.light-theme .dropdown-menu.glass-card {
  background: rgba(255, 255, 255, 0.95);
}

.light-theme .dropdown-item {
  color: var(--text-color);
}

.light-theme .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Fix dropdown menu text color in light theme */
.light-theme #wallet-dropdown-content h6,
.light-theme #wallet-dropdown-content .text-white,
.light-theme #wallet-dropdown-content-mobile h6,
.light-theme #wallet-dropdown-content-mobile .text-white {
  color: var(--text-color) !important;
}

/* Fix navbar toggler icon in light theme */
.light-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 68, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Button Styles */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-width: 2px;
  border-style: solid;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 6px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(0);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 8px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 3px 5px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-width: 1px;
  background-color: transparent;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(0);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary.active {
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-color: var(--primary);

  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.2),
    0 6px 12px rgba(209, 32, 38, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 3px 5px rgba(209, 32, 38, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  border-color: var(--glass-border);
  color: var(--text-color);
  border-width: 2px;
  background-color: transparent;
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: translateY(0);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-outline-light:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.1),
    0 3px 5px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Login button - Dark theme: white background, black text */
.dark-theme #auth-buttons .btn-outline-light {
  background-color: #ffffff;
  color: #0d0d0d;
  border-color: #ffffff;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 6px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dark-theme #auth-buttons .btn-outline-light:hover {
  background-color: #f5f5f5;
  color: #0d0d0d;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 8px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Login button - Light theme: black background, white text */
.light-theme #auth-buttons .btn-outline-light {
  background-color: #0d0d0d;
  color: #ffffff;
  border-color: #0d0d0d;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 6px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.light-theme #auth-buttons .btn-outline-light:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #0d0d0d;
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 8px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.glow-button {
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.2),
    0 6px 12px rgba(0, 0, 0, 0.15),
    0 0 15px var(--glow-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(0);
  border-width: 2px;
}

.glow-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.2),
    0 8px 18px rgba(0, 0, 0, 0.2),
    0 0 25px var(--glow-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.glow-button:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15),
    0 0 12px var(--glow-color),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--primary);
}

/* Glass Card Styles */
.glass-card {
  background: var(--glass-bg);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  color: var(--text-color);
}

.glass-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  background: var(--glass-bg-hover);
}

.glass-section {
  background: var(--section-bg-alt);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* Site Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  transition: var(--theme-transition);
  padding-bottom: 2rem !important;
  /* Reduce bottom padding from py-5 default */
}

.footer-links a {
  color: var(--footer-link);
  transition: var(--theme-transition);
}

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

/* Mobile footer text sizing */
@media (max-width: 768px) {
  .site-footer p {
    font-size: 0.875rem;
    /* Match footer links font size on mobile */
  }
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn .icon-moon,
.theme-toggle-btn .icon-sun {
  font-size: 1.2rem;
}

/* Visually hidden text for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Rest of the existing CSS... */

/* Competition Card Styles */
.competition-card {
  width: 100%;
  height: 100%;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, .09);
  overflow: hidden;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.dark-theme .competition-card {
  background-color: #1e2124;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.competition-image {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.competition-image a {
  position: relative;
  display: block;
  width: 100%;
}

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

.competition-card:hover .competition-image img {
  transform: scale(1.05);
}

/* Sold Out Styles - Banner Label Design */
.sold-out-banner {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  pointer-events: none;
}

.sold-out-text {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(-2deg);
  pointer-events: auto;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for very small screens */
@media (max-width: 768px) {
  .sold-out-text {
    font-size: 10px;
    padding: 5px 10px;
  }
}

@media (max-width: 576px) {
  .sold-out-banner {
    top: 6px;
    right: 6px;
  }

  .sold-out-text {
    font-size: 9px;
    padding: 4px 8px;
  }
}

@media (max-width: 375px) {
  .sold-out-banner {
    top: 4px;
    right: 4px;
  }

  .sold-out-text {
    font-size: 8px;
    padding: 3px 6px;
  }
}

.sold-out .competition-image img {
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.8;
}

.sold-out .competition-info {
  opacity: 0.7;
}

.category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: linear-gradient(45deg, #d12026, #ff5a60);
  color: white;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 3px;
  margin: 0;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cash-alternative-badge {
  margin-left: auto;
  background: #28a745;
  color: white;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 3px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cash-alternative-badge i {
  font-size: 0.65rem;
  transform: translateY(-2px);
  display: inline-block;
}

.ending-today-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(135deg, rgba(209, 32, 38, 0.95) 0%, rgba(204, 0, 0, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 8px 15px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(209, 32, 38, 0.8),
    0 0 40px rgba(209, 32, 38, 0.6),
    0 0 60px rgba(209, 32, 38, 0.4);
  pointer-events: none;
  animation: pulseGlow 1s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(255, 255, 255, 0.3);
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(209, 32, 38, 0.8),
      0 0 40px rgba(209, 32, 38, 0.6),
      0 0 60px rgba(209, 32, 38, 0.4);
  }

  50% {
    box-shadow: 0 0 30px rgba(209, 32, 38, 1),
      0 0 60px rgba(209, 32, 38, 0.8),
      0 0 90px rgba(209, 32, 38, 0.6);
  }
}

.ending-today-banner .ending-today-text {
  display: block;
  animation: textShake 1.5s ease-in-out infinite;
}

@keyframes textShake {

  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  10% {
    transform: translateX(-2px) rotate(-0.5deg);
  }

  20% {
    transform: translateX(2px) rotate(0.5deg);
  }

  30% {
    transform: translateX(-2px) rotate(-0.5deg);
  }

  40% {
    transform: translateX(2px) rotate(0.5deg);
  }

  50% {
    transform: translateX(-2px) rotate(-0.5deg);
  }

  60% {
    transform: translateX(2px) rotate(0.5deg);
  }

  70% {
    transform: translateX(-2px) rotate(-0.5deg);
  }

  80% {
    transform: translateX(2px) rotate(0.5deg);
  }

  85%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
}

.ending-today-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 100%);
  animation: scanline 2s linear infinite;
  z-index: 1;
  pointer-events: none;
}

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

  100% {
    transform: translateY(200%);
  }
}

@media (max-width: 768px) {
  .ending-today-banner {
    padding: 0.2rem;
    font-size: 0.7rem;
  }

  .cash-alt-text-desktop {
    display: none;
  }

  .cash-alt-text-mobile {
    display: inline;
  }

  .ticket-price {
    flex-wrap: wrap;
    gap: 0.5rem;
    letter-spacing: 0.2px;
  }

  .ticket-price .price-text {
    letter-spacing: 0.1px;
  }

  .ticket-price .per-ticket {
    font-size: 0.65rem !important;
    margin-left: 1px !important;
    font-weight: 400 !important;
    letter-spacing: -0.3px;
  }

  .cash-alternative-badge {
    font-size: 0.65rem;
    padding: 0px 3px;
    margin-left: 0;

  }

  .cash-alternative-badge i {
    transform: translateY(0px);
  }


  .tickets-info {
    font-size: 0.7rem !important;
  }

  .tickets-info strong {
    font-size: 0.7rem !important;
  }
}

@media (min-width: 769px) {
  .cash-alt-text-mobile {
    display: none;
  }

  .cash-alt-text-desktop {
    display: inline;
  }

}

.countdown-timer {
  display: flex;
  justify-content: space-between;
  background: none;
  padding: 4px;
  border-radius: 4px;
  width: 100%;
  border: 1px solid rgba(209, 32, 38, 0.1);
  background-color: rgba(209, 32, 38, 0.02);
  position: relative;

}

/* Remove the "Ends in:" text */
.countdown-timer::before {
  display: none;
}

.dark-theme .countdown-timer::before {
  display: none;
}



/* Keep absolute positioning for the countdown timer only on the competition detail page */
.competition-image .countdown-timer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  z-index: 2;
  border: none;
}

/* Specific style for countdown in competition image in light theme */
.light-theme .competition-image .countdown-timer {
  background: linear-gradient(to right, rgba(209, 32, 38, 0.8), rgba(255, 90, 96, 0.8));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.light-theme .competition-image .countdown-timer .time-label {
  color: rgba(255, 255, 255, 0.9);
}

.countdown-timer .time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  padding: 2px 0;
}

.countdown-timer .time-unit:not(:last-child):after {
  content: ":";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-60%);
  font-weight: bold;
  color: #d12026;
  font-size: 1rem;
}

.dark-theme .countdown-timer .time-unit:not(:last-child):after {
  color: #ff5a60;
}

.countdown-timer .time-value {
  font-size: 1rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  font-family: 'Orbitron', sans-serif;
  color: #d12026;
  -webkit-text-fill-color: #d12026;
}

/* Dark theme color is handled by theme variables; redundant override removed */

.countdown-timer .time-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  display: block;
  color: var(--text-color);
  margin-top: 2px;
}

/* Countdown loading animation */
.countdown-timer .loading-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 30px;
  height: 1.2em;
}

.countdown-timer .loading-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: countdown-loading 1.4s infinite ease-in-out both;
}

.countdown-timer .loading-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.countdown-timer .loading-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

.countdown-timer .loading-dots span:nth-child(3) {
  animation-delay: 0;
}

@keyframes countdown-loading {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Dark theme loading dots - use red for both themes */
.dark-theme .countdown-timer .loading-dots span {
  background-color: var(--primary);
}

/* Light theme adjustments for countdown labels */
.light-theme .countdown-timer .time-label {
  color: var(--text-color);
}

.dark-theme .countdown-timer .time-label {
  color: white;
}

/* Smiley separator in countdown timer */
.countdown-timer .smiley-separator {
  display: none;
}

.competition-info {
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Ensure progress container and button are pushed to bottom */
.competition-info .progress-container {
  margin-top: auto;
  margin-bottom: 0;
}


.competition-title {
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 0;
  color: var(--text-color);
}

/* Enhanced styles for detail page */
.competition-detail .competition-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments for different screen sizes */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .competition-title {
    font-size: 0.85rem;
    height: 2.6em;
  }

  .competition-info {
    padding: 0.6rem;
  }

  .countdown-timer .time-value {
    font-size: 0.9rem;
  }

  .countdown-timer .time-label {
    font-size: 0.55rem;
  }

  .ticket-price {
    font-size: 1rem;
  }

  .ticket-price .per-ticket {
    font-size: 0.7rem;
  }

  .competition-info .btn-primary {
    font-size: 0.75rem;
    padding: 0.35rem 0.5rem;
  }
}

@media (max-width: 991.98px) {

  /* Smaller notification/cart bubbles in mobile header */
  .site-header .badge.cart-count,
  .site-header .badge.notification-count {
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    top: 2px !important;
    right: 2px !important;
  }

  .site-header .cart-count,
  .site-header .notification-count {
    line-height: 16px;
  }
}

@media (max-width: 768px) {

  /* Hero section container adjustments for mobile */
  .container.mt-5.pt-5 {
    margin-top: 0.25rem !important;
    padding-top: 0.25rem !important;
  }
}

@media (max-width: 576px) {
  .competition-card {
    margin-bottom: 1rem;
  }
}

.ticket-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #d12026;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.dark-theme .ticket-price {
  color: #ff5a60;
}

.ticket-price .per-ticket {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 500;
  margin-left: 2px;
  opacity: 0.95;
}

.dark-theme .ticket-price .per-ticket {
  color: var(--text-color);
  opacity: 0.9;
}

.progress-container {
  margin-top: auto;
  margin-bottom: 0.6rem;
}

.progress {
  height: 24px;
  background-color: rgba(209, 32, 38, 0.12);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3px;
  position: relative;
  display: flex;
  align-items: center;
}

.dark-theme .progress {
  background-color: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d12026, #ff5a60);
  transition: width 0.6s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
  100% {
    left: 100%;
  }
}

.percentage-sold-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 991.98px) {
  .progress {
    height: 1rem;
    border-radius: 0.5rem;
  }

  .percentage-sold-overlay {
    font-size: 0.7rem;
  }
}


/* Button styling */
.competition-info .btn-primary {
  background: linear-gradient(90deg, #d12026, #e54146);
  border: none;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-top: 0;
  border-radius: 4px;
}

.competition-info .btn-primary:hover {
  background: linear-gradient(90deg, #b01c21, #d12026);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(209, 32, 38, 0.25);
}

/* General hover effects for competition cards */
.competition-card:hover,
.competition-card.touch-active {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(209, 32, 38, 0.12);
  border-color: rgba(209, 32, 38, 0.2);
}

/* Dark theme competition card hover */
.dark-theme .competition-card:hover,
.dark-theme .competition-card.touch-active {
  background-color: #1e2124;
  box-shadow: 0 8px 16px rgba(209, 32, 38, 0.15);
  border-color: rgba(255, 90, 96, 0.2);
  animation: none;
}

/* Remove pseudo-element for competition cards */
.competition-card:hover::before,
.competition-card.touch-active::before {
  display: none;
}

/* Remove pseudo-element for dark theme */
.dark-theme .competition-card:hover::before,
.dark-theme .competition-card.touch-active::before {
  display: none;
}

/* Skeleton Loading Styles */
.skeleton-card {
  pointer-events: none;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.dark-theme .skeleton-shimmer {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
  background-size: 200% 100%;
}

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

  100% {
    background-position: 200% 0;
  }
}

.skeleton-image {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.skeleton-image .skeleton-shimmer {
  width: 100%;
  height: 100%;
}

.skeleton-price {
  height: 24px;
  width: 100px;
  margin-bottom: 4px;
}

.skeleton-cash-alt {
  height: 16px;
  width: 120px;
}

.skeleton-title {
  height: 20px;
  width: 100%;
  margin-bottom: 1rem;
}

.skeleton-time {
  height: 20px;
  width: 24px;
}

.skeleton-label {
  height: 12px;
  width: 20px;
  margin-top: 2px;
}

.skeleton-progress {
  height: 8px;
  width: 100%;
  border-radius: 4px;
}

.skeleton-tickets {
  height: 14px;
  width: 100px;
}

.skeleton-button {
  height: 38px;
  width: 100%;
  margin-top: 1rem;
  border-radius: 6px;
}

/* Winner Card Styles */
.winner-card {
  transition: all 0.3s ease;
  border-radius: 15px;
}

.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.winner-image {
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.winner-image img {
  transition: transform 0.5s ease;
}

.winner-card:hover .winner-image img {
  transform: scale(1.05);
}

.icon-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Icon circle background colors - using project colors */
.icon-circle.bg-primary-opacity {
  background-color: rgba(209, 32, 38, 0.1);
}

.icon-circle.bg-success-opacity {
  background-color: rgba(40, 167, 69, 0.1);
}

/* Dark theme adjustments - using dark theme primary color (209, 32, 38) */
.dark-theme .icon-circle.bg-primary-opacity {
  background-color: rgba(209, 32, 38, 0.15);
  border: 1px solid rgba(209, 32, 38, 0.2);
}

.dark-theme .icon-circle.bg-success-opacity {
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* Light theme adjustments - using light theme primary color (196, 28, 34) */
.light-theme .icon-circle.bg-primary-opacity {
  background-color: rgba(196, 28, 34, 0.08);
  border: 1px solid rgba(196, 28, 34, 0.15);
}

.light-theme .icon-circle.bg-success-opacity {
  background-color: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.15);
}

.winner-text {
  font-weight: 500;
}

.ribbon-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.ribbon {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  text-align: center;
  line-height: 20px;
  transform: rotate(0);
  padding: 2px 12px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.ribbon-success {
  background: linear-gradient(90deg, #28a745, #20c997);
}

.ribbon-warning {
  background: linear-gradient(90deg, #ffc107, #fd7e14);
}

/* Removed gradient text on generic .countdown to avoid conflict; countdowns use .countdown-timer styles */

/* Light theme adjustments for countdown timer values */
.light-theme .countdown .time-value,
.light-theme .countdown-timer .time-value {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Light theme competition card adjustments */
.light-theme .competition-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, .09);
}

/* Keep light theme hover styles with background color change but match dark theme border effect */
.light-theme .competition-card:hover,
.light-theme .competition-card.touch-active {
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(209, 32, 38, 0.12);
  transform: translateY(-5px);
  animation: none;
  border-color: rgba(209, 32, 38, 0.2);
}

/* Update light theme pseudo-element to match dark theme styling */
.light-theme .competition-card:hover::before,
.light-theme .competition-card.touch-active::before {
  display: none;
}

/* Adjust the progress bar background for light theme */
.light-theme .progress {
  background-color: rgba(209, 32, 38, 0.08);
}

/* Light theme neon pulse animation - updated to match dark theme */
@keyframes neonPulseLight {
  0% {
    box-shadow: 0 0 10px 0px rgba(209, 32, 38, 0.2),
      0 0 20px 0px rgba(255, 90, 96, 0.1);
  }

  50% {
    box-shadow: 0 0 15px 5px rgba(209, 32, 38, 0.3),
      0 0 30px 5px rgba(255, 90, 96, 0.2);
  }

  100% {
    box-shadow: 0 0 10px 0px rgba(209, 32, 38, 0.2),
      0 0 20px 0px rgba(255, 90, 96, 0.1);
  }
}

/* Fix empty cart icon color in light theme */
.light-theme .empty-cart-icon {
  color: var(--text-color);
}

/* Fix notification and dropdown text in light theme */
.light-theme .dropdown-menu p,
.light-theme .empty-cart-message p {
  color: var(--text-color);
}

/* Additional navbar styles for light theme - removed scroll effect */
.light-theme .navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Dark theme navbar background */
.dark-theme .navbar {
  background-color: var(--dark-bg);
}

/* Make mobile menu toggle icon white in dark theme */
.dark-theme .navbar-toggler .fa-bars-staggered {
  color: var(--text-color) !important;
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--dark-bg);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

/* Light theme mobile menu */
.light-theme .mobile-menu-overlay {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.mobile-menu-overlay.active {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-menu-container {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--dark-bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Light theme mobile menu container */
.light-theme .mobile-menu-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.mobile-menu-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 10001;
}

.mobile-menu-close {
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Mobile Theme Toggle Styles */
.mobile-theme-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-theme-toggle .fa-sun,
.mobile-theme-toggle .fa-moon {
  font-size: 20px;
  transition: all 0.3s ease;
}

.theme-switch {
  width: 40px;
  height: 20px;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.theme-knob {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  position: absolute;
  top: 2.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease !important;
}

/* Light Theme (default) */
.mobile-theme-toggle .fa-sun {
  color: #f1c40f;
  opacity: 1;
}

.mobile-theme-toggle .fa-moon {
  color: #666;
  opacity: 0.6;
}

.theme-switch {
  background: #e0e0e0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-knob {
  left: 2.5px !important;
  background: white !important;
}

/* Dark Theme */
.mobile-theme-toggle.dark-mode .fa-sun {
  color: white;
  opacity: 0.6;
}

.mobile-theme-toggle.dark-mode .fa-moon {
  color: #f1c40f;
  opacity: 1;
}

.mobile-theme-toggle.dark-mode .theme-switch {
  background: #2a2827;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-theme-toggle.dark-mode .theme-knob {
  left: 22.5px !important;
  background: #f1c40f !important;
}

.mobile-menu-header {
  margin-top: 60px;

}

.user-info-card {

  padding: 0.75rem 1rem;

}



.welcome-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
  display: block;
}

.light-theme .welcome-text {
  color: rgba(0, 0, 0, 0.6);
}

.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.user-balances {
  display: flex;
  gap: 0.5rem;
}

.balance-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.light-theme .balance-card {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.balance-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.light-theme .balance-card:hover {
  background: rgba(0, 0, 0, 0.1);
}

.balance-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.light-theme .balance-label {
  color: rgba(0, 0, 0, 0.6);
}

.balance-amount {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.balance-amount.display-5 {
  font-size: 3rem !important;
  font-weight: 700;
  line-height: 1.2;
}

.mobile-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.navigation-section {
  flex: 1;
}

.menu-links {
  display: flex;
  flex-direction: column;

}

.menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.6rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transform: translateX(5px);
}

.light-theme .menu-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-link i {
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.guest-auth-section {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .guest-auth-section {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.login-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-color);
}

.light-theme .login-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  transform: translateY(-2px);
}

.light-theme .login-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.register-btn {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
}

.register-btn:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
}

/* Mobile menu display control */
@media (min-width: 992px) {
  .mobile-menu-overlay {
    display: none;
  }
}

.mobile-menu-overlay:not(.active) {
  pointer-events: none;
}

/* Desktop user dropdown specific styles */
@media (min-width: 992px) {
  #user-dropdown-container .dropdown-toggle {
    padding: 0.375rem 0.75rem;
    border: none;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
  }

  #user-dropdown-container .dropdown-toggle:hover,
  #user-dropdown-container .dropdown-toggle:focus {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
  }

  #user-dropdown-container .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
  }

  #user-dropdown-container .user-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0;
  }
}

/* Fix auth buttons in light theme */

/* Ensure badges are visible in light theme */
.light-theme .badge.bg-primary {
  background-color: var(--primary) !important;
  color: white;
}

.light-theme .badge.bg-danger {
  background-color: #dc3545 !important;
  color: white;
}

/* Dropdown menu styling for light theme */
.light-theme .dropdown-menu {
  background-color: #ffffff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.75rem 0;
  color: var(--text-color);
}

.light-theme .dropdown-menu.glass-card {
  background-color: #ffffff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.light-theme .dropdown-divider {
  border-top-color: var(--glass-border);
  margin: 0.5rem 0;
}

/* Fix text-danger color in dropdowns for light theme */
.light-theme .dropdown-item.text-danger {
  color: #dc3545 !important;
}

/* Dropdown menu styles for dark theme */
.dark-theme .dropdown-menu {
  background-color: var(--dark-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 0.75rem 0;
  color: var(--text-color);
}

.dark-theme .dropdown-menu.glass-card {
  background-color: var(--dark-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .dropdown-divider {
  border-top-color: var(--glass-border);
  margin: 0.5rem 0;
}

.dark-theme .dropdown-item {
  color: var(--text-color);
}

.dark-theme .dropdown-item:hover,
.dark-theme .dropdown-item:focus {
  background-color: rgba(40, 40, 70, 0.7);
  color: var(--text-color);
}

/* Mobile theme toggle in dropdown menu */
.dropdown-item .theme-toggle-btn {
  margin-left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--primary);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
}

.dropdown-item .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(209, 32, 38, 0.5);
}

.dropdown-item .theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Dark theme specific dropdown styles */
.dark-theme .dropdown-item .theme-toggle-btn {
  color: var(--text-color);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.dark-theme .dropdown-item .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(255, 90, 96, 0.5);
}

/* Light theme specific dropdown styles */
.light-theme .dropdown-item .theme-toggle-btn {
  color: var(--text-color);
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.05);
}

.light-theme .dropdown-item .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 10px rgba(209, 32, 38, 0.3);
}

/* Make the icons inside the theme toggle button larger and more visible */
.dropdown-item .theme-toggle-btn i {
  font-size: 1.2rem;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  background-color: var(--primary) !important;
  color: #fff !important;
}

.light-theme .text-primary,
.dark-theme .text-primary {
  color: var(--primary) !important;
}

.dark-theme .badge.bg-primary {
  background-color: var(--primary) !important;
  color: white !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .show>.nav-link,
.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

/* Enhanced mobile dropdown styling */
@media (max-width: 991.98px) {

  /* Enhanced navbar collapse for mobile - make it match other dropdowns exactly */
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    /* Prevent content from overflowing */
  }

  /* Match dropdown styling exactly */
  .light-theme .navbar-collapse {
    background-color: #ffffff !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;

  }

  .dark-theme .navbar-collapse {
    background-color: var(--dark-bg) !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3) !important;

  }

  /* Make sure navbar items have the same styling as dropdown items */
  .navbar-nav {
    padding: 0.5rem 0;
  }

  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-color) !important;
    margin-bottom: 0.25rem;
  }

  .light-theme .navbar-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(3px);
  }

  .dark-theme .navbar-nav .nav-link:hover {
    background-color: rgba(40, 40, 70, 0.7);
    transform: translateX(3px);
  }

  /* Enhanced dropdown toggle button - Mobile only */
  @media (max-width: 991.98px) {
    .dropdown-toggle {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .dropdown-toggle::after {
      margin-left: 0.5rem;
      transition: transform 0.2s ease;
      border-top: 0.3em solid;
      border-right: 0.3em solid transparent;
      border-left: 0.3em solid transparent;
    }

    .dropdown-toggle[aria-expanded="true"]::after {
      transform: rotate(180deg);
    }

    .light-theme .dropdown-toggle::after {
      color: var(--primary);
    }

    .dark-theme .dropdown-toggle::after {
      color: var(--primary);
    }
  }

  /* Highlight active dropdown */
  .dropdown.show .nav-link {
    position: relative;
  }

  .light-theme .dropdown.show .nav-link {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .dark-theme .dropdown.show .nav-link {
    background-color: rgba(40, 40, 70, 0.7);
  }

  .dropdown.show .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary);
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
  }

  /* Dropdown menu styling */
  .dropdown-menu {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    width: 100%;
  }

  .dropdown-menu.glass-card {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
  }

  .light-theme .dropdown-menu,
  .light-theme .dropdown-menu.glass-card {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border: none;
  }

  .dark-theme .dropdown-menu,
  .dark-theme .dropdown-menu.glass-card {
    background-color: var(--dark-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: none;
  }

  .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
  }

  .light-theme .dropdown-item {
    color: var(--text-color);
    font-weight: 500;
  }

  .dark-theme .dropdown-item {
    color: var(--text-color);
    font-weight: 500;
  }

  .light-theme .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(3px);
  }

  .dark-theme .dropdown-item:hover,
  .dark-theme .dropdown-item:focus {
    background-color: rgba(40, 40, 70, 0.7);
    transform: translateX(3px);
  }

  /* Mobile dropdown buttons */
  .dropdown-menu .btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  /* Make theme toggle dropdown item clickable */
  .dropdown-item .theme-toggle-btn {
    margin-left: auto;
    /* Push to the right */
    width: 36px;
    height: 36px;
  }

  /* Make the entire dropdown item for theme toggle clickable */
  .dropdown-item.theme-toggle {
    cursor: pointer;
  }

  /* Notification items styling */
  .notification-item {
    border-radius: 8px;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
  }

  .light-theme #notification-dropdown-content .notification-item,
  .light-theme #notification-dropdown-content-mobile .notification-item {
    background-color: #ffffff;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
  }

  .dark-theme #notification-dropdown-content .notification-item,
  .dark-theme #notification-dropdown-content-mobile .notification-item {
    background-color: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: var(--text-color);
  }

  .light-theme #notification-dropdown-content .notification-item:hover,
  .light-theme #notification-dropdown-content-mobile .notification-item:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(3px);
  }

  .dark-theme #notification-dropdown-content .notification-item:hover,
  .dark-theme #notification-dropdown-content-mobile .notification-item:hover {
    background-color: rgba(40, 40, 70, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateX(3px);
  }
}

/* Fix notification dropdown styling in light theme */
.light-theme #notification-dropdown-content,
.light-theme #notification-dropdown-content-mobile {
  color: var(--text-color);
}

.light-theme #notification-dropdown-content .notification-title,
.light-theme #notification-dropdown-content-mobile .notification-title {
  color: var(--text-color);
}

.light-theme #notification-dropdown-content .notification-message,
.light-theme #notification-dropdown-content-mobile .notification-message {
  color: var(--text-muted);
}

.light-theme #notification-dropdown-content .notification-time,
.light-theme #notification-dropdown-content-mobile .notification-time {
  color: var(--text-muted);
}

/* Fix "See All Notifications" button in light theme */
.light-theme .dropdown-menu .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.light-theme .dropdown-menu .btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

/* Form controls in light theme */
.light-theme .form-control {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--glass-border);
  color: var(--text-color);
}

.light-theme .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(209, 32, 38, 0.25);
}

.light-theme .form-label {
  color: var(--text-color);
}

/* Accordion styling for light theme */
.light-theme .accordion-item {
  background-color: var(--glass-bg);
  border-color: var(--glass-border);
}

/* Fix pagination in light theme */
.light-theme .pagination .page-link {
  background-color: rgba(255, 255, 255, 0.7);
  border-color: var(--glass-border);
  color: var(--text-color);
}

.light-theme .pagination .page-link:hover {
  background-color: rgba(214, 0, 214, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.light-theme .pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

.light-theme .pagination .page-item.disabled .page-link {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--glass-border);
  color: rgba(0, 0, 0, 0.3);
  opacity: 0.6;
  cursor: not-allowed;
}

/* Fix alert styling in light theme */
.light-theme .alert-success {
  background-color: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.2);
  color: #0f5132;
}

.light-theme .alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
  color: #842029;
}

/* Sold Out Alert Styling - Dark Theme */
.alert-sold-out {
  background-color: rgba(209, 32, 38, 0.15);
  border: 1px solid rgba(209, 32, 38, 0.4);
  border-left: 4px solid var(--primary);
  color: #ff5a60;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: var(--theme-transition);
}

.alert-sold-out i {
  color: var(--primary);
}

.alert-sold-out strong {
  color: var(--primary);
  font-weight: 700;
}

/* Sold Out Alert Styling - Light Theme */
.light-theme .alert-sold-out {
  background-color: rgba(196, 28, 34, 0.12);
  border: 1px solid rgba(196, 28, 34, 0.35);
  border-left: 4px solid var(--primary);
  color: #c41c22;
}

.light-theme .alert-sold-out i {
  color: var(--primary);
}

.light-theme .alert-sold-out strong {
  color: var(--primary);
}

/* Page header styling for light theme */
.light-theme .page-header {
  background-color: rgba(245, 245, 247, 0.5);
}

/* Fix icon colors in light theme */
.light-theme .text-primary {
  color: var(--primary) !important;
}

/* Fix spinner color in light theme */
.light-theme .spinner-border.text-primary {
  color: var(--primary) !important;
}

/* Fix contact info in light theme */
.light-theme .contact-info h5,
.light-theme .contact-info p {
  color: var(--text-color);
}

/* Fix filter section in light theme */
.light-theme .filters.glass-card {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Fix select dropdown in light theme */
.light-theme .form-select {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--glass-border);
  color: var(--text-color);
}

.light-theme .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(214, 0, 214, 0.25);
}

/* Fix modal in light theme */
.light-theme .modal-content {
  background-color: var(--glass-bg);
  border-color: var(--glass-border);
}

.light-theme .modal-header,
.light-theme .modal-footer {
  border-color: var(--glass-border);
}

/* Fix footer in light theme */
.light-theme .site-footer {
  background-color: var(--footer-bg);
}

.light-theme .site-footer h5 {
  color: var(--text-color);
}

.light-theme .site-footer p {
  color: var(--text-color);
}

.light-theme .site-footer .text-white {
  color: var(--text-color) !important;
}

.light-theme .site-footer .border-secondary {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Social links - red background with white icons by default (for footer icons) */
.social-links a:not(.btn-facebook):not(.btn-x):not(.btn-whatsapp) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary) !important;
  color: white !important;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.social-links a:not(.btn-facebook):not(.btn-x):not(.btn-whatsapp) i {
  color: white !important;
}

.social-links a:not(.btn-facebook):not(.btn-x):not(.btn-whatsapp):hover {
  background-color: var(--primary-hover) !important;
  color: white !important;
  transform: scale(1.1);
}

.light-theme .social-links a:not(.btn-facebook):not(.btn-x):not(.btn-whatsapp) {
  background-color: var(--primary) !important;
  color: white !important;
}

.light-theme .social-links a:not(.btn-facebook):not(.btn-x):not(.btn-whatsapp):hover {
  background-color: var(--primary-hover) !important;
  color: white !important;
}

/* Exception for social buttons to maintain white text on hover */
.light-theme .social-links .btn-facebook:hover,
.light-theme .social-links .btn-x:hover,
.light-theme .social-links .btn-whatsapp:hover {
  color: white !important;
}

/* Ensure social buttons maintain brand colors in light theme */
.light-theme .social-links .btn-facebook {
  background-color: #3b5998 !important;
  color: white !important;
}

.light-theme .social-links .btn-x {
  background-color: #000000 !important;
  color: white !important;
}

.light-theme .social-links .btn-whatsapp {
  background-color: #25d366 !important;
  color: white !important;
}

/* Fix lead text in light theme */
.light-theme .lead {
  color: var(--text-muted);
  font-weight: 400;
}

/* Fix inline code in light theme */
.light-theme code {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

/* Fix table in light theme */
.light-theme table {
  color: var(--text-color);
}

.light-theme .table {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-striped-bg: rgba(0, 0, 0, 0.02);
  --bs-table-active-bg: rgba(0, 0, 0, 0.05);
  --bs-table-hover-bg: rgba(0, 0, 0, 0.03);
  --bs-table-border-color: var(--glass-border);
}


/* Category filters styling */
#category-filters-container {
  margin: 20px 0;
}

#category-filters-container .btn {
  min-width: 90px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

#category-filters-container .btn.active {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(209, 32, 38, 0.3);
}

/* Smiley separator in countdown timer */
.countdown-timer .smiley-separator {
  display: none;
}

/* Entry List Modal Styles */
.entry-list-title {
  color: var(--text-color);
}

.light-theme .entry-list-title {
  color: white;
}

.dark-theme #entryListTableBody {
  color: var(--text-color);
}

.dark-theme #entryListTableBody td {
  color: black;
}

/* Pagination styling for dark theme */
.dark-theme .pagination .page-link {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--glass-border);
  color: var(--text-color);
}

.dark-theme .pagination .page-link:hover {
  background-color: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary);
  color: var(--primary);
}

.dark-theme .pagination .page-item.active .page-link {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: white !important;
}

.dark-theme .pagination .page-item.disabled .page-link {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--glass-border);
  color: rgba(255, 255, 255, 0.3);
  opacity: 0.5;
  cursor: not-allowed;
}


/* Make winner info heading smaller */
.winner-info h3 {
  font-size: 1rem !important;
  line-height: 1.3;
}


/* Enhanced carousel controls */
.winner-card .carousel-control-prev,
.winner-card .carousel-control-next {
  width: 32px !important;
  height: 32px !important;
  background-color: var(--primary) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.winner-card .carousel-control-prev {
  left: 10px !important;
}

.winner-card .carousel-control-next {
  right: 10px !important;
}

.winner-card .carousel-control-prev:hover,
.winner-card .carousel-control-next:hover {
  background-color: var(--primary-hover) !important;
}

.winner-card .carousel-control-prev-icon,
.winner-card .carousel-control-next-icon {
  width: 16px !important;
  height: 16px !important;
  filter: brightness(1.2) !important;
  background-size: 100% !important;
}

/* Cart dropdown close button styling */
.remove-cart-item.btn-close {
  filter: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.remove-cart-item.btn-close:hover {
  opacity: 1;
}

/* Dark theme: white X button */
.dark-theme .remove-cart-item.btn-close {
  filter: invert(1) brightness(1.2);
}

/* Light theme: black X button */
.light-theme .remove-cart-item.btn-close {
  filter: none;
}


.draw-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.draw-info-section .container {
  position: relative;
  z-index: 2;
}

.draw-info-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.draw-info-section .section-header h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.draw-info-section .section-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

.draw-info-section .draw-card {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.draw-info-section .draw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.draw-info-section .draw-card:hover::before {
  left: 100%;
}

.draw-info-section .draw-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.draw-info-section .draw-icon {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  position: relative;
}

.draw-info-section .draw-icon i {
  color: #333;
  font-size: 2rem;
  font-weight: 600;
}

.draw-info-section .draw-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

.draw-info-section .text-gradient {
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: shimmer 3s ease-in-out infinite;
  margin-bottom: 1rem;
}

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

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.draw-info-section p {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  line-height: 1.6;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Facebook button styling for draw section */
.draw-info-section .btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: var(--primary) !important;
  border: none !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.draw-info-section .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.draw-info-section .btn-primary:hover::before {
  left: 100%;
}

.draw-info-section .btn-primary:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.draw-info-section .btn-primary:focus {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

.draw-info-section .btn-primary i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Light theme specific adjustments */
.light-theme .draw-info-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

.light-theme .draw-info-section .text-gradient {
  background: linear-gradient(45deg, #ff0000, #ff3333, #ff0000, #ff3333);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

}

.light-theme .draw-info-section .draw-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--dark-text);
}

.light-theme .draw-info-section .draw-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.2);
}

.light-theme .draw-info-section p {
  color: var(--dark-text);
}

.light-theme .draw-info-section .section-header p {
  color: #ffffff;
}

/* Dark theme specific adjustments */
.dark-theme .draw-info-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

.dark-theme .draw-info-section .draw-card {
  background: var(--dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-color);
}

.dark-theme .draw-info-section .draw-card:hover {
  background: var(--dark-bg);
  border-color: rgba(255, 255, 255, 0.25);
}

.dark-theme .draw-info-section .section-header h2 {
  color: var(--text-color);
}

.dark-theme .draw-info-section .section-header p {
  color: var(--text-color);
}

.dark-theme .draw-info-section p {
  color: var(--text-color);
}

/* How It Works Section - Professional Styling */
.how-it-works {
  background-color: var(--bg-color);
  position: relative;
}

.how-it-works .section-header h2 {
  color: var(--text-color);
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.how-it-works .section-header h2 em {
  color: var(--primary);
  font-style: normal;
  font-weight: 800;
}

.how-it-works .step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.how-it-works .step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.how-it-works .step-number {
  margin-bottom: 1.5rem;
}

.how-it-works .step-number h4 {
  color: var(--primary);
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
}

.how-it-works .step-image {
  margin-bottom: 1.5rem;
}

.how-it-works .step-image img {
  max-height: 80px;
  transition: transform 0.3s ease;
}

.how-it-works .step-card:hover .step-image img {
  transform: scale(1.05);
}

.how-it-works .step-card h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.how-it-works .step-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Light theme adjustments */
.light-theme .how-it-works {
  background-color: var(--bg-color);
}

.light-theme .how-it-works .step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.light-theme .how-it-works .step-card:hover {
  border-color: var(--primary);
}

/* Dark theme adjustments */
.dark-theme .how-it-works {
  background-color: var(--bg-color);
}

.dark-theme .how-it-works .step-card {
  background: var(--section-bg-alt);
  border: 1px solid var(--glass-border);
}

.dark-theme .how-it-works .step-card:hover {
  border-color: var(--primary);
}

.dark-theme .how-it-works .step-card p {
  color: var(--text-color);
}

/* Fix affiliate tab text colors for dark theme */
.dark-theme .glass-card .text-muted {
  color: rgba(31, 31, 31, 0.7) !important;
}

/* Live Draw Countdown Section */
.live-draw-countdown {
  background-color: var(--bg-color);
  position: relative;
  padding: 2rem 0;
}

.live-draw-countdown .countdown-widget {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

/* Countdown Header */
.live-draw-countdown .countdown-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  padding: 1rem 1.5rem;
  text-align: center;
  border-radius: 15px 15px 0 0;
  position: relative;
  overflow: hidden;
}

.live-draw-countdown .countdown-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

.live-draw-countdown .countdown-header h3 {
  font-size: 1rem;
  letter-spacing: 1px;
  margin: 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

/* Countdown Timer */
.live-draw-countdown .countdown-timer {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 0;
  position: relative;
}

.live-draw-countdown .countdown-timer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  animation: shimmer 4s ease-in-out infinite reverse;
}

.live-draw-countdown .countdown-item {
  flex: 1;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.live-draw-countdown .countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.live-draw-countdown .countdown-item:hover::before {
  left: 100%;
}

.live-draw-countdown .countdown-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.live-draw-countdown .countdown-number {
  font-size: 1.8rem;
  font-weight: 900;
  background: gold;
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Orbitron', monospace;
  margin-bottom: 0.25rem;

  position: relative;
  z-index: 1;
  animation: shimmer 3s ease-in-out infinite;
}

.live-draw-countdown .countdown-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

/* Countdown Banner */
.live-draw-countdown .countdown-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
  padding: 1.5rem;
  border-radius: 0 0 15px 15px;
  position: relative;
  overflow: hidden;
}

.live-draw-countdown .countdown-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

.live-draw-countdown .banner-content {
  display: flex;
  gap: 1rem;
  position: relative;
  z-index: 1;
  flex-direction: column;
}

.live-draw-countdown .banner-text h4 {
  font-size: 1rem;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

.live-draw-countdown .banner-text h4 .highlight-gold {
  color: gold;
  font-weight: 800;
}


/* Theme-specific adjustments */
.light-theme .live-draw-countdown .countdown-widget {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-theme .live-draw-countdown .countdown-timer {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .live-draw-countdown .countdown-item {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 40, 0.9) 100%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.light-theme .live-draw-countdown .countdown-item:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 40, 1) 100%);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.light-theme .live-draw-countdown .countdown-label {
  color: rgba(255, 255, 255, 0.95);
}

.dark-theme .live-draw-countdown .countdown-widget {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

/* Responsive Design */
@media (max-width: 768px) {
  .live-draw-countdown .countdown-timer {
    flex-direction: row;
    gap: 0.25rem;
    padding: 1rem;
  }

  .live-draw-countdown .countdown-item {
    padding: 0.5rem 0.25rem;
    flex: 1;
  }

  .live-draw-countdown .countdown-number {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
  }

  .live-draw-countdown .countdown-label {
    font-size: 0.6rem;
  }

  .live-draw-countdown .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .live-draw-countdown .banner-text h4 {
    font-size: 0.9rem;
  }

  .live-draw-countdown .countdown-header h3 {
    font-size: 0.9rem;
  }

  .live-draw-countdown .countdown-header {
    padding: 0.75rem 1rem;
  }

  .live-draw-countdown .countdown-banner {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .live-draw-countdown .countdown-timer {
    padding: 0.75rem;
    gap: 0.15rem;
  }

  .live-draw-countdown .countdown-item {
    padding: 0.4rem 0.15rem;
  }

  .live-draw-countdown .countdown-banner {
    padding: 0.75rem;
  }

  .live-draw-countdown .countdown-number {
    font-size: 1rem;
    margin-bottom: 0.05rem;
  }

  .live-draw-countdown .countdown-label {
    font-size: 0.5rem;
  }

  .live-draw-countdown .banner-text h4 {
    font-size: 0.8rem;
  }

  .live-draw-countdown .countdown-header h3 {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }
}

/* App Download Section - Custom Buttons */
.app-store-button {
  display: inline-block;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(0);
}

.app-store-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.app-store-button:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.button-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button-icon {
  flex-shrink: 0;
}

.button-text {
  text-align: left;
  line-height: 1.2;
}

.button-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.button-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

/* Google Play Button */
.google-play-button {
  background: linear-gradient(135deg, #0f9d58 0%, #00c851 100%);
  color: white;
  border: 1px solid #0f9d58;
}

.google-play-button:hover {
  background: linear-gradient(135deg, #0e8944 0%, #00a142 100%);
  color: white;
}

/* Apple Store Button */
.apple-store-button {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
  border: 1px solid #000000;
}

.apple-store-button:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #404040 100%);
  color: white;
}

/* App Download Section - Mobile Fix */
@media (max-width: 768px) {
  .app-download-buttons {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 1rem !important;
  }

  .app-store-button {
    min-width: 140px;
    padding: 10px 12px;
  }

  .button-content {
    gap: 8px;
  }

  .button-label {
    font-size: 8px;
  }

  .button-name {
    font-size: 16px;
  }

  .button-icon svg {
    width: 20px;
    height: 20px;
  }
}




/* Professional App Download Section */
.professional-app-section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.professional-app-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--gradient-mid), var(--primary));
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.app-badge {
  display: inline-block;
}

.badge-text {
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.app-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 1rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}



.feature-icon {
  width: 45px;
  height: 45px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-text h6 {
  margin: 0 0 5px 0;
  font-weight: 600;
  color: var(--text-primary);
}

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

.app-store-button {
  display: inline-flex;
  align-items: center;
  padding: 15px 25px;
  background: #000;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  min-width: 180px;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.3),
    0 6px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(0);
}

.app-store-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.app-store-button:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 3px 6px rgba(0, 0, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-store-button.google-play {
  background: linear-gradient(135deg, #01875f 0%, #00a86b 50%, #01875f 100%);
  border-color: rgba(255, 255, 255, 0.15);
}

.app-store-button.apple-store {
  background: linear-gradient(135deg, #000 0%, #333 50%, #000 100%);
  border-color: rgba(255, 255, 255, 0.1);
}


.button-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.button-label {
  font-size: 11px;
  opacity: 0.8;
  line-height: 1;
}

.button-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.app-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-container {
  position: relative;
  max-width: 300px;
}

.phone-frame {
  position: relative;
  z-index: 2;
}

.phone-image {
  width: 100%;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 10px 20px rgba(209, 32, 38, 0.3);
}

.floating-icon.icon-1 {
  top: 20%;
  right: -20px;
  animation-delay: 0s;
}

.floating-icon.icon-2 {
  bottom: 30%;
  left: -25px;
  animation-delay: 1s;
}

.floating-icon.icon-3 {
  top: 60%;
  right: -15px;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Light theme adjustments */
.light-theme .professional-app-section {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}



/* Mobile responsiveness */
@media (max-width: 768px) {
  .professional-app-section {
    padding: 2rem 1.5rem;
  }

  .app-features .row {
    flex-direction: column;
  }

  .feature-item {
    padding: 0.75rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .app-store-button {
    padding: 12px 20px;
    min-width: 160px;
  }

  .phone-mockup-container {
    max-width: 250px;
    margin-top: 2rem;
  }

  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .floating-icon.icon-1 {
    right: -15px;
  }

  .floating-icon.icon-2 {
    left: -20px;
  }

  .floating-icon.icon-3 {
    right: -10px;
  }
}


/* Featured Competitions Section */
.featured-competitions {
  background: white;
  transition: var(--theme-transition);
}

.dark-theme .featured-competitions {
  background: var(--section-bg-alt2);
}

.dark-theme .app-download-section {
  background: var(--section-bg-alt);
}

.dark-theme .winners-section {
  background: var(--dark-bg);
}

.featured-competitions .container {
  position: relative;
}

.featured-competitions .section-header {
  position: relative;
  z-index: 2;
}

.featured-competitions .category-filters {
  position: relative;
  z-index: 2;
}

/* Ensure mobile filters are above competition cards */
@media (max-width: 991.98px) {
  .featured-competitions .category-filters {
    z-index: 1;
  }
}

.featured-competitions #featured-competitions-container {
  position: relative;
  z-index: 2;
}

/* ========================================
   HOMEPAGE MOBILE FILTERS & GRID SYSTEM
   ======================================== */

/* Mobile filters container */
.homepage-mobile-filters {
  margin-bottom: 1rem;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.mobile-category-dropdown {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.mobile-category-dropdown .dropdown-toggle {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 2;
}

.mobile-category-dropdown .dropdown-menu {
  font-size: 0.875rem;
  max-height: 50vh;
  overflow-y: auto;
  z-index: 3 !important;
  position: absolute !important;
  margin-top: 0.125rem;
}

.mobile-category-dropdown .dropdown-item {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

.mobile-category-dropdown .dropdown-item.active {
  background-color: #d12026;
  color: white;
}

.mobile-category-dropdown .dropdown-item.active:hover {
  background-color: #d12026;
  color: white;
}

/* Red background for dropdown button when active/show */
.mobile-category-dropdown .dropdown-toggle.show {
  background-color: #d12026;
  border-color: #d12026;
  color: white;
}

.mobile-category-dropdown .dropdown-toggle.show:hover {
  background-color: #b01d22;
  border-color: #b01d22;
  color: white;
}

/* Mobile grid toggle buttons */
.mobile-grid-toggle .btn-group {
  display: flex;
}

.mobile-grid-toggle .btn {
  font-size: 0.875rem;
  padding: 0.5rem 0.65rem;
  border-width: 1px;
  min-width: 40px;
}

.mobile-grid-toggle .btn i {
  font-size: 0.875rem;
}

.mobile-grid-toggle .btn.active {
  background-color: #d12026;
  border-color: #d12026;
  color: white;
}

.mobile-grid-toggle .btn-group .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.mobile-grid-toggle .btn-group .btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}

/* Mobile grid layout - ONLY ON MOBILE & TABLET (< 992px) */
@media (max-width: 991.98px) {

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

  /* Container padding for mobile */
  .featured-competitions .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }

  /* Reset Bootstrap grid for mobile */
  .homepage-mobile-grid.row {
    display: grid;
    margin-left: 0;
    margin-right: 0;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
  }

  /* Remove Bootstrap column classes on mobile */
  .homepage-mobile-grid.row>* {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    max-width: 100%;
    flex: none;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
  }

  /* 1-column grid (full width) */
  .homepage-mobile-grid.grid-1-mobile {
    grid-template-columns: 1fr;
  }

  /* 2-column grid (default) - ensure proper sizing */
  .homepage-mobile-grid.grid-2-mobile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  /* Ensure competition cards fit properly within grid cells */
  .homepage-mobile-grid .competition-card {
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
    position: relative;
    z-index: 1;
  }

  /* Ensure images inside cards don't overflow */
  .homepage-mobile-grid .competition-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .homepage-mobile-grid .competition-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
  }

  /* Ensure competition info doesn't overflow */
  .homepage-mobile-grid .competition-info {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.75rem !important;
    overflow: hidden;
  }

  /* Scale down font sizes for 2-grid layout */
  .homepage-mobile-grid.grid-2-mobile .competition-title {
    font-size: 0.875rem !important;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
  }

  .homepage-mobile-grid.grid-2-mobile .ticket-price {
    font-size: 1rem !important;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .homepage-mobile-grid.grid-2-mobile .competition-info {
    padding: 0.5rem !important;
  }

  .homepage-mobile-grid.grid-2-mobile .category-badge {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    top: 5px !important;
    left: 5px !important;
    max-width: calc(100% - 10px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Skeleton loader animation */
  @keyframes loading {
    0% {
      background-position: -200px 0;
    }

    100% {
      background-position: 200px 0;
    }
  }

  /* Ensure skeleton loaders work properly with grid layout */
  .homepage-mobile-grid .skeleton-loader {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Fix countdown spacing for 2-grid layout - override inline styles */
  .homepage-mobile-grid.grid-2-mobile .countdown-timer.countdown {
    gap: 2px !important;
    padding: 2px !important;
    justify-content: space-around !important;
  }

  .homepage-mobile-grid.grid-2-mobile .countdown-timer .time-unit {
    min-width: auto !important;
    max-width: 20% !important;
    flex: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .homepage-mobile-grid.grid-2-mobile .countdown-timer .time-value {
    font-size: 0.65rem !important;
    line-height: 1;
  }

  .homepage-mobile-grid.grid-2-mobile .countdown-timer .time-label {
    font-size: 0.4rem !important;
    line-height: 1;
    margin-top: 0;
  }

  /* Ensure all text elements wrap properly */
  .homepage-mobile-grid .competition-card * {
    max-width: 100%;
    box-sizing: border-box;
  }

  .homepage-mobile-grid .competition-card p,
  .homepage-mobile-grid .competition-card span,
  .homepage-mobile-grid .competition-card div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

/* Small mobile devices (≤ 576px) */
@media (max-width: 575.98px) {
  .featured-competitions .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .homepage-mobile-filters {
    gap: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .mobile-category-dropdown .dropdown-toggle {
    font-size: 0.8125rem;
    padding: 0.45rem 0.65rem;
  }

  .mobile-grid-toggle .btn {
    font-size: 0.8125rem;
    padding: 0.45rem 0.6rem;
    min-width: 38px;
  }

  .homepage-mobile-grid.row {
    gap: 0.5rem;
  }

  /* Even tighter constraints for very small screens */
  .homepage-mobile-grid.grid-2-mobile {
    gap: 0.5rem;
  }

  .homepage-mobile-grid.grid-2-mobile .competition-info {
    padding: 0.4rem !important;
  }

  .homepage-mobile-grid.grid-2-mobile .competition-title {
    font-size: 0.8125rem !important;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .homepage-mobile-grid.grid-2-mobile .ticket-price {
    font-size: 0.9rem !important;
  }

  /* Ensure buttons don't overflow */
  .homepage-mobile-grid .competition-card .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Ensure progress bars don't overflow */
  .homepage-mobile-grid .progress {
    height: 1rem !important;
    font-size: 0.65rem !important;
  }

  /* Even tighter countdown for very small screens in 2-grid */
  .homepage-mobile-grid.grid-2-mobile .countdown-timer.countdown {
    gap: 0 !important;
    padding: 0 !important;
  }

  .homepage-mobile-grid.grid-2-mobile .countdown-timer .time-value {
    font-size: 1rem !important;
  }

  .homepage-mobile-grid.grid-2-mobile .countdown-timer .time-label {
    font-size: 0.7rem !important;
  }

  .homepage-mobile-grid.grid-2-mobile .countdown-timer .time-unit {
    max-width: fit-content !important;
  }
}


/* Simple App Download Section */
.simple-app-section {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 3rem 2rem;
}

.light-theme .simple-app-section {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
}

.app-buttons .btn {
  min-width: 160px;
  transition: all 0.3s ease;
}

.app-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .simple-app-section {
    padding: 2rem 1rem;
  }
}

/* Color Flow Animation for Header Tombstones */
@keyframes colorFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


/* Win Big Section Social Buttons - Mobile/Tablet Optimization */
@media (max-width: 991.98px) {
  .social-buttons {

    width: 100%;


  }

  .social-btn {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
  }
}

@media (min-width: 768px) {
  .social-buttons {
    gap: 1.5rem !important;
  }

  .social-btn {
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
  }
}



/* Trustpilot Section Styling */
.trustpilot-section {
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  /* Start at the very top */
  left: 0;
  right: 0;
  z-index: 1050;
  /* Above navbar (1040) */
  width: 100%;
  padding: 0;
  /* Vertical padding only */
  transition: all 0.3s ease;
  /* Smooth transition for all properties */
  transform: translateY(0);
  /* Initial position */
  color: #ffffff !important;
  /* Always white text */

}

/* Ensure all text in news ticker is white */
.trustpilot-section,
.trustpilot-section *,
.trustpilot-section .text-muted,
.news-ticker-content,
.news-ticker-item {
  color: #ffffff !important;
  font-size: 1.15rem !important;
}

/* News Ticker Styling */
.trustpilot-section {
  overflow: hidden;
  /* Hide overflow for ticker */
}

.news-ticker-content {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  position: relative;
  left: 0;
  width: 100vw;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
}

.news-ticker-content.paused {
  animation-play-state: paused;
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-33.333%);
  }
}

.news-ticker-item {
  display: inline-block;
  padding: 0 3rem;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;

}

/* Navbar always stays in the same position */
.navbar {
  top: 29px;
  /* Always positioned below Trustpilot section */
  z-index: 1040;
  /* Below Trustpilot */
}

/* Mobile-specific navbar positioning */
@media (max-width: 768px) {
  .navbar {
    top: 29px;
    /* Slightly higher on mobile devices */
  }
}

/* News ticker always uses primary color and white text regardless of theme */
.dark-theme .trustpilot-section,
.light-theme .trustpilot-section {
  background: var(--primary);
  color: #ffffff !important;
}

/* Only target Trustpilot widget links, not social icons */
.light-theme .trustpilot-widget a {
  color: #6c757d !important;
  /* Dark gray for light theme */
}

.light-theme .trustpilot-widget a:hover {
  color: #495057 !important;
  /* Darker gray on hover */
}

/* Trustpilot widget specific styling for light theme */
.light-theme .tp-widget-wrapper {
  color: #6c757d !important;
}

.light-theme .tp-widget-wrapper a {
  color: #6c757d !important;
}

.light-theme .tp-widget-wrapper span {
  color: #6c757d !important;
}

.light-theme .tp-widget-wrapper strong {
  color: #495057 !important;
}

/* Override Trustpilot's inline styles for light theme */
.light-theme .tp-widget-wrapper * {
  color: #6c757d !important;
}

.light-theme .tp-widget-wrapper strong {
  color: #495057 !important;
}

.social-follow-text small {
  font-weight: 500;
  letter-spacing: 0.5px;
  font-family: 'Orbitron', sans-serif;
}

/* Apply Orbitron font to navigation menu items */
.navbar-nav .nav-link {
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Apply Orbitron font to social follow text */
.social-follow-text {
  font-family: 'Orbitron', sans-serif;
}

/* Social follow text theme colors */
.light-theme .social-follow-text .text-muted {
  color: #1d1d1d !important;
}

.dark-theme .social-follow-text .text-muted {
  color: #ffffff !important;
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  vertical-align: middle;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon i {
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dark-theme .social-icon {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.dark-theme .social-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.light-theme .social-icon {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.9);
}

.light-theme .social-icon:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #000000;
}

.dark-theme .social-follow-text small {
  color: rgba(255, 255, 255, 0.7) !important;
}

.light-theme .social-follow-text small {
  color: rgba(0, 0, 0, 0.6) !important;
}

.trustpilot-widget a {
  transition: all 0.3s ease;
}

.trustpilot-widget a:hover {
  transform: translateY(-1px);
}

.dark-theme .trustpilot-widget a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.light-theme .trustpilot-widget a {
  color: rgba(0, 0, 0, 0.6) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
  .trustpilot-section {
    padding: 0;
  }

  .social-follow-text {
    margin-bottom: 0.5rem;
  }

  .trustpilot-widget {
    text-align: center !important;
  }
}

/* Style for navbar toggler icon in dark theme */
.dark-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Style for navbar toggler icon in light theme */
.light-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Global dropdown styling */
.dropdown-menu.glass-card {
  background-color: #212529;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Desktop styles */
@media (min-width: 992px) {
  /* Body padding-top moved to main style.css to prevent layout shifts */
}

/* Mobile styles */
@media (max-width: 991.98px) {
  /* Body padding-top moved to main style.css to prevent layout shifts */

  /* Hide social follow section on mobile, keep only Trustpilot */
  .trustpilot-section .col-md-6:first-child {
    display: none;
  }

  /* Make Trustpilot section full width on mobile */
  .trustpilot-section .col-md-6:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .navbar .container {
    padding-left: 0;
    padding-right: 0;
  }

  #main-navbar .navbar-brand {
    margin-right: auto;
    padding-left: 8px;
    font-size: 1.2rem;
    /* Smaller font size on mobile */
  }

  #main-navbar .fas {
    font-size: 1.4rem;
    /* Smaller icons on mobile */
  }

  /* More compact navbar on mobile */
  .navbar {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }

  /* Style the collapsible navbar */
  .navbar-collapse {
    position: fixed !important;
    top: 100px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 1050 !important;
    margin: 0 !important;
    padding: 1rem !important;
    border-radius: 0 !important;
    background-color: #212529 !important;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Dark theme mobile menu styling */
  .dark-theme .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .dark-theme .navbar-nav .nav-link:hover {
    color: #ffffff !important;
  }

  /* Light theme mobile menu styling */
  .light-theme .navbar-collapse {
    background-color: rgba(248, 249, 250, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  }

  /* Both themes - improve nav item spacing */
  .navbar-nav .nav-item {
    padding: 0.25rem 0;
  }

  /* Reduce padding on mobile icons container */
  .navbar .d-flex.align-items-center.d-lg-none {
    margin-right: 10px !important;
  }

  /* More compact mobile dropdown toggles */
  .navbar-toggler {
    padding: 0 !important;
    margin-right: 8px;
    z-index: 5;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Remove any focus outline or border from the navbar toggler */
  .navbar-toggler:focus,
  .navbar-toggler:active,
  .navbar-toggler-icon:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* This is specifically needed for Bootstrap 5 */
  .navbar-toggler:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }

  .navbar-toggler-icon {
    width: 1.7rem !important;
    height: 1.7rem !important;
  }

  /* Mobile dropdowns */
  .dropdown-menu.glass-card {
    border-radius: 0;
    position: fixed !important;
    top: 100px !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 1060 !important;
    /* Higher than navbar-collapse */
    margin: 0;
    padding: 1rem;
  }

  /* Fix for dropdown positioning */
  .dropdown {
    position: static !important;
  }

  /* Ensure proper z-index stacking for both navbar and dropdowns */
  .dropdown.show .dropdown-menu {
    z-index: 1060 !important;
    /* Ensure it's higher than navbar-collapse */
  }

  /* Hide any dropdowns when navbar is expanded */
  .navbar-collapse.show~.dropdown-menu.show {
    display: none !important;
  }
}

/* Even smaller screens */
@media (max-width: 360px) {
  #main-navbar .navbar-brand {
    font-size: 1.1rem;
    /* Even smaller font on tiny screens */
  }

  #main-navbar .fas {
    font-size: 1.1rem;
    /* Even smaller icons on tiny screens */
  }

  .navbar .d-flex.align-items-center.d-lg-none {
    gap: 5px !important;
    /* Slightly reduced gap on tiny screens */
  }

  .navbar-toggler-icon {
    width: 1.7rem !important;
    height: 1.7rem !important;
  }
}

/* Discount Notification - Special Styling */
.discount-notification-special {
  border-left: 2px solid var(--primary);
  padding: 6px 8px;
  margin-bottom: 6px;
  cursor: default;
  pointer-events: none;
}

.discount-notification-content {
  display: flex;
  align-items: center;
  gap: 6px;
}

.discount-notification-icon {
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
}

.discount-notification-text {
  flex: 1;
  min-width: 0;
}

.discount-notification-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.2;
}

.discount-notification-message {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 1px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 2000;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
  padding: 0 5px;
  padding-bottom: env(safe-area-inset-bottom);
}

.dark-theme .mobile-bottom-nav {
  background-color: rgba(13, 13, 13, 0.85);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.4);
}

.light-theme .mobile-bottom-nav {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.05);
}

.nav-item-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none !important;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  height: 100%;
  opacity: 0.6;
  position: relative;
  overflow: hidden;
}

.nav-item-bottom i {
  font-size: 1.25rem;
  margin-bottom: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item-bottom:active {
  transform: scale(0.9);
}

.nav-item-bottom.active {
  opacity: 1;
  color: var(--primary);
}

.nav-item-bottom.active i {
  transform: translateY(-2px);
  color: var(--primary);
  text-shadow: 0 0 10px var(--glow-color);
}

/* Active Indicator */
.nav-item-bottom.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 0 10px var(--primary);
}

/* Dynamic colors for icons */
.dark-theme .nav-item-bottom i {
  color: #fff;
}

.light-theme .nav-item-bottom i {
  color: #333344;
}

/* Prevent body content from being cut off by the bottom nav */
@media (max-width: 991px) {
  body {
    padding-bottom: 75px !important;
  }
}

/* Only show on mobile devices */
@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}