/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: linear-gradient(135deg, #f5f0ff 0%, #fff0f5 50%, #f0f8ff 100%);
  min-height: 100vh;
}

a { color: #6d28d9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Page wrapper ── */
.page-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, #6b1a1a, #9b2c2c);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(80,10,10,0.35);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-flag svg {
  width: 56px;
  height: 37px;
  border-radius: 5px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-link { text-decoration: none !important; display: flex; flex-direction: column; gap: 3px; }
.logo-text {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ── Country nav ── */
.country-nav {
  background: #1e1b4b;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(30,27,75,0.3);
}

.country-nav a {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #c4b5fd;
  background: rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.country-nav a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
.country-nav a.active {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}

.country-nav .nav-sep {
  color: #4c4580;
  font-size: 16px;
}

/* ── Main content grid ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Lottery card ── */
.lottery-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.lottery-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

/* Card accent colors */
.card-red    .card-header { background: linear-gradient(135deg, #dc2626, #f87171); }
.card-purple .card-header { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.card-teal   .card-header { background: linear-gradient(135deg, #0d9488, #34d399); }
.card-orange .card-header { background: linear-gradient(135deg, #d97706, #fbbf24); }

.card-red    .card-links li a:hover { background: #fff5f5; color: #dc2626; }
.card-purple .card-links li a:hover { background: #f5f0ff; color: #7c3aed; }
.card-teal   .card-links li a:hover { background: #f0fdfb; color: #0d9488; }
.card-orange .card-links li a:hover { background: #fffbeb; color: #d97706; }

.card-red    .card-links li a::before { color: #fca5a5; }
.card-purple .card-links li a::before { color: #c4b5fd; }
.card-teal   .card-links li a::before { color: #6ee7b7; }
.card-orange .card-links li a::before { color: #fcd34d; }

.card-header {
  padding: 13px 18px;
}
.card-header a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.card-header a:hover { text-decoration: none; opacity: 0.92; }

.card-links { list-style: none; padding: 6px 0; }
.card-links li { border-bottom: 1px solid #f5f5f5; }
.card-links li:last-child { border-bottom: none; }
.card-links li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: #555;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.card-links li a:hover { text-decoration: none; }
.card-links li a::before {
  content: '›';
  font-size: 20px;
  line-height: 1;
  font-weight: bold;
  flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
  background: #1e1b4b;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 3px 10px rgba(30,27,75,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  align-items: center;
  font-size: 12px;
  color: #a5b4fc;
}
.footer-links a {
  color: #c4b5fd;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.footer-links a:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }
.footer-sep { color: #4c4580; }

.to-top {
  background: linear-gradient(135deg, #f97316, #dc2626);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(249,115,22,0.4);
}
.to-top:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .main-grid { grid-template-columns: 1fr; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
