:root {

  --primary-dark: #0f172a;
  --primary-light: #1e293b;
  --canadian-red: #dc2626;
  --red-hover: #b91c1c;
  --accent-gold: #fbbf24;
  --text-main: #334155;
  --text-light: #94a3b8;
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --success: #10b981;
  --error: #ef4444;


  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;


  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.75em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--canadian-red);
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.2em;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


header {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.logo i {
  color: var(--canadian-red);
  font-size: 1.6rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: #e2e8f0;
  font-weight: 500;
  padding: 8px 0;
  font-size: 0.95rem;
  position: relative;
}

nav a:hover,
nav a.active {
  color: #fff;
  background-color: transparent;
}


nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--canadian-red);
  transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}


.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

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

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    padding: 1.5rem;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav a {
    display: block;
    padding: 10px;
    border-radius: 6px;
  }

  nav a:hover,
  nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  nav a::after {
    display: none;
  }
}


main {
  flex: 1;
  padding-bottom: 4rem;
}


.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #334155a4), url('../img/hero.png') center center/cover no-repeat;
  color: #fff;
  padding: 6rem 20px;
  text-align: center;
  margin-bottom: 3rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #cbd5e1;
}


.btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(to right, var(--canadian-red), #ef4444);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 1rem;
}

.btn:hover {
  background: linear-gradient(to right, #b91c1c, #dc2626);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
  background: #334155;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: #1e293b;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--canadian-red);
  color: var(--bg-body);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--canadian-red);
  color: #fff;
}


.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}


.card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

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


.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--canadian-red), var(--primary-dark));
  opacity: 0.8;
}

.card img {
  max-width: 160px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

.card-icon {
  font-size: 2.5rem;
  color: var(--canadian-red);
  background: #fef2f2;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: inline-block;
}


.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--canadian-red);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--canadian-red);
  cursor: pointer;
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 6px;
  font-weight: 600;
  display: none;
}

.success-message {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  text-align: center;
  font-weight: 600;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  font-size: 0.85rem;
}




.lottery-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 15px;
  background: #f8fafc;
  padding: 10px;
  border-radius: 50px;
  display: inline-flex;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 30px;
  transition: all 0.3s;
  font-family: var(--font-heading);
}

.tab-btn:hover {
  color: var(--canadian-red);
}

.tab-btn.active {
  background-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lottery-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lottery-panel.active {
  display: block;
}


.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
  gap: 12px;
  margin: 25px 0;
}

.num-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.num-btn:hover {
  border-color: var(--canadian-red);
  color: var(--canadian-red);
  transform: scale(1.1);
}

.num-btn.selected {
  background: radial-gradient(circle at 30% 30%, var(--canadian-red), #991b1b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.grand-number-grid {
  border-top: 2px dashed #cbd5e1;
  padding-top: 20px;
  margin-top: 20px;
}


.ticket-cart {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-dark);
}

.ticket-cart h3 {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}

.remove-btn {
  color: var(--text-light);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.1rem;
  padding: 5px;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: var(--error);
}

.total-price {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: right;
  margin-top: 1.5rem;
  color: var(--primary-dark);
}


@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .lottery-tabs {
    flex-direction: column;
    left: 0;
    transform: none;
    width: 100%;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }
}

.footer-imgs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-imgs img {

  padding: 12px;
  margin: 12px;
  height: 55px;
  background: white;
  border-radius: 10px;
}

body.cnr-locked {
  overflow: hidden;
}

.cnr-age-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.cnr-age-modal {
  background: #0f172a;
  border: 1px solid #dc2626;
  border-radius: 16px;
  padding: 24px 24px 20px;
  max-width: 420px;
  width: 100%;
  color: #f9fafb;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.cnr-age-modal h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.cnr-age-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #e5e7eb;
}

.cnr-age-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.cnr-age-warning {
  font-size: 12px;
  color: #fca5a5;
}

.cnr-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cnr-btn-primary {
  background: #dc2626;
  color: #f9fafb;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.cnr-btn-primary:hover {
  background: #b91c1c;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.5);
}

.cnr-btn-secondary {
  background: transparent;
  border: 1px solid #dc2626;
  color: #f9fafb;
}

.cnr-btn-secondary:hover {
  background: rgba(220, 38, 38, 0.1);
}

.cnr-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f172a;
  color: #e5e7eb;
  padding: 16px;
  z-index: 9998;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

.cnr-cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cnr-cookie-main h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #f9fafb;
}

.cnr-cookie-main p {
  margin: 0 0 8px;
  line-height: 1.4;
}

.cnr-cookie-link {
  background: transparent;
  border: none;
  color: #dc2626;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.cnr-cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cnr-cookie-settings {
  margin-top: 12px;
  border-top: 1px solid rgba(229, 231, 235, 0.1);
  padding-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cnr-cookie-settings.open {
  max-height: 400px;
}

.cnr-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.cnr-cookie-label strong {
  display: block;
  margin-bottom: 2px;
  color: #f9fafb;
}

.cnr-cookie-label p {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.cnr-cookie-state {
  font-size: 12px;
  color: #9ca3af;
}

.cnr-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cnr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cnr-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #4b5563;
  transition: 0.3s;
  border-radius: 999px;
}

.cnr-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #f9fafb;
  transition: 0.3s;
  border-radius: 50%;
}

.cnr-switch input:checked+.cnr-slider {
  background-color: #dc2626;
}

.cnr-switch input:checked+.cnr-slider:before {
  transform: translateX(20px);
}

@media (min-width: 768px) {
  .cnr-cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cnr-cookie-main {
    max-width: 60%;
  }

  .cnr-cookie-actions {
    justify-content: flex-end;
  }
}