:root {
  --primary: #174C3C;
  --primary-dark: #0f3328;
  --primary-light: #236853;
  --secondary: #2767A5;
  --secondary-hover: #1f5387;
  --accent: #E4B94F;
  --accent-light: #fef8e7;
  --accent-dark: #b89132;
  --bg-color: #F4F6F3;
  --surface: #FFFFFF;
  --text-main: #202B27;
  --muted: #718078;
  --border: #DDE5DF;
  --border-light: #eef2ef;
  --success: #1e824c;
  --danger: #c0392b;
  --shadow-sm: 0 2px 4px rgba(23, 76, 60, 0.05);
  --shadow-md: 0 4px 12px rgba(23, 76, 60, 0.08);
  --shadow-lg: 0 10px 24px rgba(23, 76, 60, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Accessible focus styling */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.section {
  padding: 3rem 0;
}

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

/* Strict Non-Sticky Header Directive */
.site-header {
  position: static;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.top-bar {
  background-color: var(--primary-dark);
  color: #d1ded8;
  font-size: 0.825rem;
  padding: 0.4rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--accent);
}

.header-main {
  padding: 1rem 0;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
}

.brand-link:hover {
  text-decoration: none;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.brand-text h1 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
  display: block;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--bg-color);
  color: var(--primary);
  text-decoration: none;
}

.nav-link.highlight {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.nav-link.highlight:hover {
  background-color: var(--accent-dark);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  color: var(--primary);
}

/* Number Balls System */
.number-balls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f0f0f0 25%, #d1ded8 100%);
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.2), 0 3px 6px rgba(0,0,0,0.12);
  user-select: none;
  position: relative;
  transition: transform 0.2s ease;
}

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

.ball.plus-ball {
  background: radial-gradient(circle at 35% 30%, #fffbf0 0%, #fdeebf 25%, #dfb448 100%);
  border-color: #a8811d;
  color: #523f05;
}

.ball.matched {
  background: radial-gradient(circle at 35% 30%, #5ce2a5 0%, #177f52 80%, #0d4e32 100%);
  border-color: #0b3d27;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(23, 127, 82, 0.5);
}

.ball-sm {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  border-width: 1.5px;
}

.ball-lg {
  width: 58px;
  height: 58px;
  font-size: 1.55rem;
  border-width: 2.5px;
}

/* Hero Section & Reveal Animation */
.hero-results-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, #1e5c49 100%);
  color: #ffffff;
  padding: 3rem 0;
  border-bottom: 4px solid var(--accent);
}

.hero-results-banner h1, .hero-results-banner h2, .hero-results-banner h3 {
  color: #ffffff;
}

.hero-card {
  background: var(--surface);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
}

.latest-draw-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.badge-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-official {
  background-color: #e6f6ee;
  color: #0e5b38;
  border: 1px solid #b7e8d0;
}

.badge-plus {
  background-color: #fbf5e6;
  color: #8c640e;
  border: 1px solid #ecd89d;
}

.reveal-balls-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

@keyframes ballPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.stagger-1 { animation: ballPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both; }
.stagger-2 { animation: ballPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both; }
.stagger-3 { animation: ballPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both; }
.stagger-4 { animation: ballPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s both; }
.stagger-5 { animation: ballPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s both; }

@media (prefers-reduced-motion: reduce) {
  .stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5 {
    animation: none;
  }
}

/* Prize Breakdown Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.lottery-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.lottery-table th {
  background-color: #ebf1ed;
  color: var(--primary-dark);
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.lottery-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

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

.lottery-table tr:hover td {
  background-color: #f7faf8;
}

.text-right { text-align: right; }
.text-center { text-align: center; }

/* Result Cards & Strict Button Requirements */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.result-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.card-draw-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.card-date {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.card-balls-wrap {
  margin: 1.25rem 0;
}

.card-meta-info {
  background-color: var(--bg-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Strict card buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-secondary {
  background-color: #eaf1f7;
  color: var(--secondary);
  border-color: #cbdbe9;
}

.btn-secondary:hover {
  background-color: #d6e5f3;
  color: var(--secondary-hover);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: #ffffff;
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-verify {
  background-color: #f7faf8;
  color: var(--primary);
  border-color: var(--border);
  font-size: 0.8rem;
}

.btn-verify:hover {
  background-color: #ebf2ee;
  border-color: var(--primary-light);
}

/* Search and Filters Bar */
.filter-bar {
  background-color: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 200px;
}

.filter-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
}

/* Number Checker Utility Grid */
.checker-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.number-input-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.number-input-slot {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  background: var(--bg-color);
  transition: border-color 0.2s, background-color 0.2s;
}

.number-input-slot:focus {
  border-color: var(--accent);
  background: #ffffff;
}

/* Statistics Charts and Frequency Matrix */
.stats-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.stat-ball-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.stat-ball-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.stat-num {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}

.stat-count {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  width: 40px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.bar-track {
  flex: 1;
  height: 18px;
  background-color: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.bar-value {
  width: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.page-btn {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.page-btn:hover {
  background-color: var(--bg-color);
  border-color: var(--muted);
}

.page-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Compliance Notice Panels */
.notice-box {
  background-color: #f7f9f7;
  border-left: 4px solid var(--primary);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #31423a;
}

.notice-box.warning {
  background-color: #fcf9ef;
  border-left-color: var(--accent);
  color: #554418;
}

/* ========================================================
   REAL-TIME MALTA LOTTERY LOCATIONS MAP STYLING
   ======================================================== */
.map-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.map-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.realtime-ticker {
  background: var(--bg-color);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #27ae60;
  box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
  animation: pulseLive 1.6s infinite;
  display: inline-block;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.map-controls-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.25rem;
  min-height: 580px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--surface);
}

.map-viewport {
  width: 100%;
  min-height: 580px;
  position: relative;
  z-index: 1;
}

#maltaLotteryMap {
  width: 100%;
  height: 100%;
  min-height: 580px;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  background-color: #fafbf9;
  border-left: 1px solid var(--border);
  max-height: 580px;
}

.map-sidebar-head {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-sidebar-head h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--primary);
}

.outlets-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.outlet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.outlet-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.outlet-card.active {
  border-color: var(--primary);
  background-color: #f2f7f4;
  box-shadow: inset 3px 0 0 var(--primary);
}

.outlet-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.outlet-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.status-open {
  background-color: #e8f7ee;
  color: #17834a;
  border: 1px solid #b7e8d0;
}

.status-closed {
  background-color: #faeceb;
  color: #b3392f;
  border: 1px solid #f2c2be;
}

.outlet-address {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.outlet-hours-live {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.outlet-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.45rem;
}

.distance-badge {
  font-weight: 700;
  color: var(--secondary);
}

/* Custom Marker on Leaflet */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-sans) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.popup-outlet-card {
  padding: 1.25rem;
  min-width: 260px;
}

.popup-outlet-card h4 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.popup-outlet-card p {
  margin-bottom: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-main);
}

.services-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.services-tags span {
  font-size: 0.7rem;
  background-color: var(--bg-color);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--primary);
  font-weight: 600;
}

/* Marker SVG Pin styles */
.custom-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
  transition: transform 0.2s ease;
}

.custom-map-pin:hover {
  transform: scale(1.15);
}

/* Universal Footer Strict Compliance */
.site-footer {
  background-color: #121c17;
  color: #becbc4;
  margin-top: auto;
  font-size: 0.875rem;
  border-top: 3px solid var(--primary);
}

.footer-top {
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #becbc4;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-middle {
  background-color: #0b130f;
  padding: 2rem 0;
  border-top: 1px solid #1c2b23;
  border-bottom: 1px solid #1c2b23;
}

.footer-disclaimers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.825rem;
  line-height: 1.6;
}

.platform-notice-box {
  background-color: #13201a;
  border: 1px solid #233a2e;
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: #cbd8d1;
}

.responsible-gambling-box {
  background-color: #1a1b15;
  border: 1px solid #3d3b23;
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: #e2dfcf;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #7b8f84;
}

/* ========================================================
   UNIVERSAL COOKIE CONSENT BANNER (ALL PAGES)
   ======================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  z-index: 99999;
  display: none; /* Managed by js/main.js - will display: flex if unset */
  flex-direction: column;
  gap: 1rem;
  border-left: 5px solid var(--primary);
  animation: slideInCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.cookie-content h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-content p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-main);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .map-sidebar {
    max-height: 380px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .map-controls-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .map-controls-bar {
    grid-template-columns: 1fr;
  }

  .header-main .container {
    flex-wrap: wrap;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1.15rem;
  }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }
}