:root {
  --primary-color: #ff5722; /* Vibrant Orange */
  --secondary-color: #ffd700; /* Yellow */
  --bg-color: #0d1b2a; /* Deep Blue */
  --bg-color-light: #1b263b; /* Lighter Deep Blue */
  --text-color: #ffffff;
  --text-muted: #a0aab2;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #e2e8ce;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  background-color: #e2e8ce;
}

.nav-wrapper .menu-btn {
  color: #0d1b2a;
}

.nav-wrapper .nav-links a {
  color: #0d1b2a;
}

.nav-wrapper .nav-links a:hover,
.nav-wrapper .nav-links a.active {
  color: var(--primary-color);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, var(--primary-color), #ff9800);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--bg-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Hero Section */
.hero {
  padding: 7rem 0 5rem 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,87,34,0.3) 0%, rgba(13,27,42,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  flex: 1;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(to right, #fff, var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  z-index: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 0px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Sections */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.section {
  padding: 5rem 0;
}

.bg-alt {
  background-color: var(--bg-color-light);
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(255, 87, 34, 0.2);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: 8px;
  font-family: var(--font-main);
}

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

/* Footer */
footer {
  background-color: #08111a;
  padding: 3rem 0 1rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  margin: 1.5rem 0;
}

.footer-links a {
  margin: 0 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.copyright {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}

/* Mobile Menu */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: var(--bg-color-light);
    width: 100%;
    height: calc(100vh - 70px);
    text-align: center;
    padding: 2rem 0;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-wrapper .nav-links a {
    color: #ffffff;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-btn {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 15px 0 3rem 0;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero-image {
    width: 100%;
    margin-top: 0;
    margin-bottom: 2rem;
  }

  .hero-content {
    width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    gap: 0.5rem;
  }
  .hero-buttons .btn {
    padding: 0.7rem 1.1rem;
    font-size: 0.8rem;
  }
}

/* Tables for results */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

table th, table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

table th {
  background-color: rgba(255,255,255,0.05);
  color: var(--secondary-color);
  text-transform: uppercase;
}

table tr:hover {
  background-color: rgba(255,255,255,0.02);
}

/* Custom jQuery Confirm UI Improvements */
.jconfirm.jconfirm-dark .jconfirm-bg {
    background-color: rgba(13, 27, 42, 0.8) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.jconfirm.jconfirm-dark .jconfirm-box {
    background: rgba(27, 38, 59, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 87, 34, 0.25) !important;
    padding: 25px !important;
}
.jconfirm.jconfirm-dark .jconfirm-title-c {
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 15px !important;
}
.jconfirm.jconfirm-dark .jconfirm-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    color: #ffd700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 1.5rem !important;
}
.jconfirm.jconfirm-dark .jconfirm-content {
    font-family: 'Outfit', sans-serif !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}
.jconfirm.jconfirm-dark .jconfirm-buttons {
    margin-top: 20px !important;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.jconfirm.jconfirm-dark .jconfirm-buttons button {
    border-radius: 50px !important;
    padding: 0.6rem 1.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
.jconfirm.jconfirm-dark .jconfirm-buttons button.btn-success {
    background: linear-gradient(45deg, #ff5722, #ff9800) !important;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4) !important;
    color: #fff !important;
}
.jconfirm.jconfirm-dark .jconfirm-buttons button.btn-success:hover {
    transform: translateY(-2px) !important;
         box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6) !important;
}
.jconfirm.jconfirm-dark .jconfirm-buttons button.btn-default,
.jconfirm.jconfirm-dark .jconfirm-buttons button:not(.btn-success) {
    background: transparent !important;
    border: 2px solid #ffd700 !important;
    color: #ffd700 !important;
}
.jconfirm.jconfirm-dark .jconfirm-buttons button.btn-default:hover,
.jconfirm.jconfirm-dark .jconfirm-buttons button:not(.btn-success):hover {
    background: #ffd700 !important;
    color: #0d1b2a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

@media (max-width: 576px) {
  .pay-card {
    padding: 1.5rem 1rem !important;
    margin: 20px auto !important;
  }
  .booking-card {
    padding: 1.5rem 1.25rem !important;
    margin: 20px auto !important;
  }
}

/* Directorate Section Redesign */
.directorate-wrapper {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.directorate-content {
  flex: 1.2;
}

.directorate-content .section-title {
  text-align: left;
  text-transform: none;
  margin-bottom: 2rem;
}

.directorate-content .section-title span {
  color: var(--primary-color);
}

.directorate-text-block {
  border-left: 3px solid var(--secondary-color);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.directorate-text-block p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.officials-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.official-card {
  text-align: center;
}

.official-img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.official-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.official-card:hover .official-img {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 12px 25px rgba(255, 215, 0, 0.2);
}

.official-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.official-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .directorate-wrapper {
    flex-direction: column;
    gap: 3rem;
  }
  
  .directorate-content {
    text-align: center;
    width: 100%;
  }

  .directorate-content .section-title {
    text-align: center;
  }

  .directorate-text-block {
    border-left: none;
    border-top: 2px solid var(--secondary-color);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .officials-grid {
    width: 100%;
    gap: 1.5rem;
  }
}

/* Footer Redesign */
footer {
  background-color: #07121c; /* very dark blue, matching theme */
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.brand-col h3 {
  text-transform: none;
  font-size: 1.25rem;
  color: var(--secondary-color); /* Yellow to stand out beautifully */
}

.footer-address p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-address p.email {
  color: var(--text-color);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--secondary-color);
  color: #0d1b2a;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
}

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

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

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* Visitors Counter styling */
.counter-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.visitors-counter-container {
  text-align: right;
  margin-top: 1rem;
}

.visitor-counter {
  display: inline-flex;
  background: #0d1b2a;
  border: 1px solid rgba(0, 191, 255, 0.3);
  padding: 0.5rem;
  border-radius: 6px;
  gap: 4px;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.15);
}

.visitor-counter span {
  background: linear-gradient(180deg, #1b263b 0%, #0d1b2a 100%);
  color: #00bfff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
}

.counter-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.admin-login-link a {
  color: var(--secondary-color);
  transition: var(--transition);
}

.admin-login-link a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* Mobile responsive styles */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .counter-col {
    align-items: flex-start;
  }
  
  .visitors-counter-container {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .social-links {
    justify-content: center;
  }
  
  .counter-col {
    align-items: center;
  }
  
  .visitors-counter-container {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-meta {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  
  footer {
    padding: 3rem 0 1.5rem;
  }
}

/* ==========================================
   WINNER LANDING PAGE & CERTIFICATE STYLES
   ========================================== */

/* Live Indicator */
.live-indicator-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 76, 76, 0.1);
  border: 1px solid rgba(255, 76, 76, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ff4c4c;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #ff4c4c;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff4c4c;
  animation: live-blink 1.2s infinite ease-in-out;
}

@keyframes live-blink {
  0% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.3; transform: scale(0.9); }
}

/* Balloons Container & Animation */
.winner-header-area {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 3rem 0 2rem;
}

.balloon-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.balloon-svg {
  position: absolute;
  bottom: -100px;
  width: 60px;
  height: 90px;
  opacity: 0.8;
  animation: balloon-float 12s infinite linear;
}

.balloon-svg:nth-child(1) { left: 10%; width: 50px; animation-duration: 10s; animation-delay: 0s; }
.balloon-svg:nth-child(2) { left: 25%; width: 70px; animation-duration: 14s; animation-delay: 2s; }
.balloon-svg:nth-child(3) { left: 70%; width: 55px; animation-duration: 11s; animation-delay: 1s; }
.balloon-svg:nth-child(4) { left: 85%; width: 65px; animation-duration: 13s; animation-delay: 3s; }

@keyframes balloon-float {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-110vh) rotate(15deg); opacity: 0; }
}

/* Winner Card Styles */
.winner-details-card {
  background: rgba(27, 38, 59, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.05);
  margin-bottom: 3rem;
}

/* Table Details styling */
.winner-info-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
}

.winner-info-table td {
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(13, 27, 42, 0.3);
}

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

.winner-info-table td.label-cell {
  font-weight: 700;
  color: var(--text-muted);
  width: 35%;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.winner-info-table td.value-cell {
  font-weight: 600;
  color: #ffffff;
  font-size: 1.1rem;
}

/* Claim / Win Callout */
.win-callout {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 215, 0, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  margin: 2rem 0;
}

.win-callout h2 {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.win-callout p {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* --- Winner Certificate --- */
.certificate-wrapper {
  display: flex;
  justify-content: center;
  margin: 4rem 0;
}

.certificate-box {
  background: #fdfbf7; /* Cream/parchment background */
  color: #2b2b2b;
  width: 100%;
  max-width: 800px;
  padding: 3rem;
  border: 20px solid #1b263b; /* Dark-blue outer border */
  outline: 6px double #ffd700; /* Gold double inner line */
  outline-offset: -15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  font-family: 'Cinzel', 'Playfair Display', 'Georgia', serif;
  text-align: center;
}

.cert-header {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #666;
  text-transform: uppercase;
  margin-top: 10px;
}

.cert-logo-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0d1b2a;
  text-transform: uppercase;
  margin: 10px 0 20px;
  letter-spacing: 1px;
}

/* Green Ribbon Styling */
.cert-ribbon-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

.cert-ribbon {
  background: #1e4620; /* Deep rich green */
  color: #ffd700; /* Gold text */
  padding: 10px 40px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cert-ribbon::before,
.cert-ribbon::after {
  content: '';
  position: absolute;
  border-style: solid;
  width: 0;
  height: 0;
  top: 5px;
}

.cert-ribbon::before {
  left: -20px;
  border-width: 20px 20px 20px 0;
  border-color: #1e4620 #1e4620 #1e4620 transparent;
}

.cert-ribbon::after {
  right: -20px;
  border-width: 20px 0 20px 20px;
  border-color: #1e4620 transparent #1e4620 #1e4620;
}

.cert-body-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
}

.cert-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #000;
  margin: 15px 0;
  border-bottom: 2px solid #ddd;
  display: inline-block;
  padding: 0 30px 5px;
  font-family: 'Alex Brush', 'Great Vibes', 'Playfair Display', cursive, serif;
}

.cert-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 15px auto 30px;
  color: #444;
}

.cert-desc strong {
  color: #000;
}

/* Bottom Grid for Signature and Stamp */
.cert-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin-top: 40px;
}

.cert-footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-signature-line {
  width: 80%;
  border-top: 1px solid #777;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
}

.cert-sig-img {
  height: 50px;
  margin-bottom: 5px;
}

.cert-date-val {
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}

/* Red Scalloped Stamp/Seal */
.cert-stamp-seal {
  width: 90px;
  height: 90px;
  background: #c0392b; /* Vibrant Red */
  border-radius: 50%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #f1c40f; /* Gold dash border */
}

/* Scalloped edge simulation */
.cert-stamp-seal::before {
  content: '';
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid #fdfbf7;
}

.cert-stamp-inner {
  color: #f1c40f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
  z-index: 2;
}

/* --- Bumper Lottery Promo Banner --- */
.bumper-banner-container {
  margin: 4rem 0;
}

.bumper-banner-box {
  background: linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.bumper-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .bumper-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bumper-right {
    display: flex;
    justify-content: center;
  }
}

.bumper-left h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  font-weight: 800;
  text-transform: uppercase;
}

.bumper-left p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.prize-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.prize-tag-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
  text-align: left;
}

.prize-tag-item .title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.prize-tag-item .amount {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 800;
}

.bumper-right {
  display: flex;
  justify-content: flex-end;
}

.bumper-ticket-highlight {
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%);
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  border: 2px dashed #ffffff;
  box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
  text-align: center;
}

.bumper-ticket-highlight span {
  display: block;
}

.bumper-ticket-highlight .ticket-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.bumper-ticket-highlight .ticket-val {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 5px 0;
  letter-spacing: 2px;
}

.bumper-ticket-highlight .prize-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-transform: uppercase;
}

/* --- Live Results Board --- */
.results-board-container {
  margin: 4rem 0;
}

.board-card {
  background: rgba(27, 38, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
}

.board-groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.board-group-item {
  background: rgba(13, 27, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 15px;
  padding: 1.5rem;
}

.board-group-header {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--secondary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

.board-group-header .prize-amt {
  color: #fff;
  font-weight: 700;
}

.board-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.board-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.board-badge:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* User's winning ticket badge HIGHLIGHT in orange */
.winning-badge-highlight {
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.8);
  font-weight: 800 !important;
  transform: scale(1.08);
  animation: badge-pulse 1.5s infinite alternate;
}

@keyframes badge-pulse {
  0% { transform: scale(1.03); box-shadow: 0 0 10px rgba(255, 87, 34, 0.6); }
  100% { transform: scale(1.1); box-shadow: 0 0 20px rgba(255, 87, 34, 1); }
}

/* Modal styling overrides to match theme and keep beautiful */
.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.payment-modal.active {
  display: flex;
  opacity: 1;
}

.payment-modal-box {
  background: #1b263b;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  margin: auto;
}

.payment-modal.active .payment-modal-box {
  transform: scale(1);
}

.payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.payment-modal-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.payment-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.payment-modal-close:hover {
  color: #fff;
}

