/* ============================
   CISA - Chrome Indoor Sports Arena
   Color Scheme: Maroon & White
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  /* Logo-exact gradient: deep dark maroon → rich maroon-crimson */
  --maroon-dark:   #4a0818;   /* darkest – left edge of logo arrow */
  --maroon:        #7B1034;   /* core brand maroon */
  --maroon-mid:    #9b1942;   /* right/bright edge of logo gradient */
  --maroon-light:  #b5215a;   /* hover / accent */
  --maroon-pale:   #fdf0f4;
  --white:         #ffffff;
  --off-white:     #f7f7f7;
  --gray-light:    #e6e6e6;
  --gray:          #888888;
  --text-dark:     #1a1a1a;
  --gold:          #d4a843;   /* gold accent for totals / labels */
  /* Logo gradient shorthand (used everywhere) */
  --logo-gradient: linear-gradient(135deg, #4a0818 0%, #7B1034 55%, #9b1942 100%);
  --logo-gradient-h: linear-gradient(90deg, #4a0818 0%, #9b1942 100%);
  --shadow:        0 4px 24px rgba(74,8,24,0.18);
  --shadow-lg:     0 8px 40px rgba(74,8,24,0.26);
  --radius:        10px;
  --radius-lg:     18px;
  --transition:    all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- CONTACT STRIP ---- */
.contact-strip {
  background: var(--logo-gradient-h);
  color: var(--white);
  padding: 7px 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  flex-wrap: wrap;
}
.contact-strip a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.contact-strip a:hover { color: var(--gold); }
.contact-strip a i { font-size: 0.95rem; }
.contact-strip a i.fa-whatsapp { color: #4fde7b; }
.strip-sep { color: rgba(255,255,255,0.3); font-size: 0.75rem; }

/* ---- HEADER ---- */
.site-header {
  background: var(--white);
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(123,16,52,0.10);
  position: sticky;
  top: 0;
  z-index: 999;
}
.site-header .logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* ---- NAVBAR ---- */
.navbar {
  background: var(--logo-gradient-h);
  padding: 0 30px;
  box-shadow: 0 2px 8px rgba(74,8,24,0.18);
}
.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}
.navbar ul li.nav-admin {
  margin-left: auto;
}
.navbar ul li.nav-admin a {
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold); /* Highlighted for easier recognition */
  background: rgba(0,0,0,0.15);
}
.navbar ul li.nav-admin a i {
  font-size: 1.1rem;
}
.navbar ul li.nav-admin a span {
  display: inline;
}
.navbar ul li a {
  display: block;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 3px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 3px 3px 0 0;
}
.navbar ul li a:hover,
.navbar ul li a.active {
  background: rgba(0,0,0,0.25);
  color: var(--gold);
}
.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  left: 0; right: 0;
}

/* ---- BANNER SLIDER ---- */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--maroon-dark);
}
.slides-wrapper {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.77,0,0.18,1);
}
.slide {
  min-width: 100%;
  position: relative;
}
.slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}
.slide-placeholder {
  width: 100%;
  height: 480px;
  background: var(--logo-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--white);
  text-align: center;
  gap: 12px;
  padding: 20px;
}
.slide-placeholder h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.slide-placeholder p { font-size: 1.1rem; opacity: 0.88; }

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(92,10,36,0.75);
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 50%;
  width: 46px; height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--maroon); transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.dot.active { background: var(--white); border-color: var(--gold); transform: scale(1.3); }

/* ---- EVENT SECTION ---- */
.event-section {
  padding: 60px 30px;
  background: var(--off-white);
}
.event-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}
.event-poster {
  position: sticky;
  top: 100px;
  perspective: 1000px;
}

.flip-card {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.4;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  border: 4px solid var(--maroon);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
}

.flip-card-front img, .flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* ---- EVENT DETAILS CARDS ---- */
.event-details { display: flex; flex-direction: column; gap: 18px; }

.event-title-card {
  background: var(--logo-gradient);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.event-title-card .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.event-title-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 6px;
}
.event-title-card .sub { font-size: 0.95rem; opacity: 0.85; }

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(123,16,52,0.08);
  border-left: 5px solid var(--maroon);
}
.info-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--maroon);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card h3 .ic { font-size: 1rem; }
.info-card p, .info-card li { font-size: 0.92rem; color: var(--text-dark); margin-bottom: 4px; }
.info-card ul { list-style: none; padding: 0; }
.info-card ul li { padding: 3px 0; border-bottom: 1px solid var(--gray-light); }
.info-card ul li:last-child { border-bottom: none; }
.info-card .highlight { font-weight: 700; color: var(--maroon); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.prize-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.prize-table th {
  background: var(--maroon);
  color: var(--white);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
}
.prize-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--gray-light);
}
.prize-table tr:nth-child(even) td { background: var(--maroon-pale); }
.prize-table tr:hover td { background: var(--maroon-pale); }

.note-card {
  background: var(--maroon-pale);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--maroon-dark);
  border: 1px solid rgba(123,16,52,0.2);
}
.note-card strong { display: block; margin-bottom: 4px; }

/* ---- REGISTRATION FORM ---- */
.registration-section {
  background: var(--logo-gradient);
  padding: 70px 30px;
}
.registration-section .section-heading {
  text-align: center;
  color: var(--white);
  margin-bottom: 40px;
}
.registration-section .section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.registration-section .section-heading p { opacity: 0.8; font-size: 1rem; }

.reg-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--maroon-dark);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form-group label .required { color: #c0392b; margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(123,16,52,0.12);
}
.form-control.error { border-color: #e74c3c; }
.form-control.success { border-color: #27ae60; }
.field-msg {
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
  min-height: 16px;
}
.field-msg.error-msg { color: #e74c3c; }
/* Registration Closed Notification */
.closed-notification {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 3px dashed var(--maroon-light);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease-out;
}
.closed-notification .icon {
  font-size: 4.5rem;
  margin-bottom: 25px;
  display: block;
}
.closed-notification h3 {
  color: var(--maroon-dark);
  margin-bottom: 20px;
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
}
.closed-notification p {
  color: var(--text-dark);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 15px;
}
.closed-notification .btn-back {
  margin-top: 35px;
  display: inline-block;
  background: var(--logo-gradient-h);
  color: var(--white);
  padding: 14px 35px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.closed-notification .btn-back:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

/* Category Checkboxes */
.category-list { display: flex; flex-direction: column; gap: 10px; }
.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.category-item:hover { border-color: var(--maroon-light); background: var(--maroon-pale); }
.category-item.selected { border-color: var(--maroon); background: var(--maroon-pale); }
.category-item input[type="checkbox"] { display: none; }
.cat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.cat-check-icon {
  width: 24px; height: 24px;
  border: 2px solid var(--gray);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--white);
}
.cat-check-icon svg { opacity: 0; transition: opacity 0.2s ease; }
.category-item.selected .cat-check-icon {
  background: var(--maroon);
  border-color: var(--maroon);
}
.category-item.selected .cat-check-icon svg { opacity: 1; }
.cat-fee {
  font-weight: 700;
  color: var(--maroon);
  font-size: 0.9rem;
  white-space: nowrap;
}

.category-notes {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--maroon-pale);
  border-radius: var(--radius);
  border-left: 4px solid var(--maroon);
  font-size: 0.83rem;
  color: var(--maroon-dark);
  line-height: 1.7;
  display: none;
}

/* Admin Dashboard Enhancements */
.header-actions {
  display: flex;
  gap: 10px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.btn-action {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.btn-action.edit {
  background: #2c3e50;
}

.btn-action.delete {
  background: #e74c3c;
}

.btn-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.admin-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: #fff;
  transition: 0.3s;
}

.admin-header-btn:hover {
  background: #333;
  transform: scale(1.02);
}

#export-btn {
  box-shadow: 0 4px 10px rgba(29, 111, 66, 0.3);
}

@media print {
  .no-print {
    display: none !important;
  }
}


.category-notes.visible { display: block; }

.fee-summary {
  background: var(--logo-gradient-h);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
}
.fee-summary .amount { font-size: 1.4rem; font-weight: 800; color: var(--gold); }

/* Partner Fields */
.partner-fields {
  background: var(--maroon-pale);
  border: 2px solid var(--maroon-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 6px;
  display: none;
  animation: slideDown 0.3s ease;
}
.partner-fields.visible { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.partner-fields h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Pay Button */
.btn-pay {
  width: 100%;
  background: var(--logo-gradient-h);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-transform: uppercase;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.btn-pay::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}
.btn-pay:hover::before { left: 100%; }
.btn-pay:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-pay:active { transform: translateY(0); }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--logo-gradient);
  color: var(--white);
  padding: 0;
}
.footer-inner { max-width: 1260px; margin: 0 auto; padding: 50px 30px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.2fr;
  gap: 50px;
  margin-bottom: 40px;
  align-items: start;
}
/* Footer Col 1 – Brand */
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}
.footer-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-col p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
}
/* Footer Col headings */
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
}
/* Footer links */
.footer-col a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-col a:last-of-type { border-bottom: none; }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
/* Footer icons */
.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
}
.wa-icon   { background: rgba(37,211,102,0.25); color: #4fde7b; }
.ph-icon   { background: rgba(255,255,255,0.15); }
.mail-icon { background: rgba(255,200,80,0.2); color: var(--gold); }
.web-icon  { background: rgba(255,255,255,0.12); }
/* Footer bottom bar */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0;
}

/* ---- VERIFY PAGE ---- */
.verify-page { background: var(--off-white); min-height: 100vh; padding: 50px 20px; }
.verify-container {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.verify-header {
  background: var(--logo-gradient);
  color: var(--white);
  padding: 30px 36px;
  text-align: center;
}
.verify-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 6px;
}
.verify-header p { opacity: 0.85; font-size: 0.95rem; }
.verify-body { padding: 36px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
  gap: 20px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 0 0 160px;
}
.detail-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  text-align: right;
  flex: 1;
}

.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cat-tag {
  background: var(--maroon-pale);
  color: var(--maroon-dark);
  border: 1px solid rgba(123,16,52,0.25);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

.total-box {
  background: var(--logo-gradient-h);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}
.total-box .label { font-size: 1rem; font-weight: 600; }
.total-box .amount { font-size: 2rem; font-weight: 800; color: var(--gold); }

.qr-section {
  text-align: center;
  background: var(--maroon-pale);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 2px dashed rgba(123,16,52,0.3);
}
.qr-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--maroon-dark);
  margin-bottom: 6px;
}
.qr-section p { font-size: 0.85rem; color: var(--gray); margin-bottom: 16px; }
.qr-section .qr-img-wrap {
  display: inline-block;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.qr-section img { width: 220px; height: auto; display: block; border-radius: 6px; }
.qr-upi-note {
  font-size: 0.8rem;
  color: var(--maroon);
  font-weight: 600;
  margin-top: 10px;
}

.verify-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}
.btn-edit {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius);
  border: 2px solid var(--maroon);
  background: var(--white);
  color: var(--maroon);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  display: block;
}
.btn-edit:hover { background: var(--maroon-pale); }
.btn-confirm {
  flex: 2;
  padding: 14px;
  border-radius: var(--radius);
  border: none;
  background: var(--logo-gradient-h);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.btn-confirm:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---- ADMIN ---- */
.admin-page { background: #f0f0f3; min-height: 100vh; display: flex; flex-direction: column; }

/* Admin Header */
.admin-header {
  background: var(--logo-gradient-h);
  color: var(--white);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  box-shadow: 0 3px 16px rgba(74,8,24,0.28);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-logo-wrap {
  display: inline-block;
  background: var(--white);
  padding: 8px 12px;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  margin-right: 15px;
}
.admin-logo {
  height: 38px;
  width: auto;
  display: block;
}
.admin-header-title { line-height: 1.2; }
.admin-portal-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}
.admin-header-title h1 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.admin-header-right { display: flex; gap: 10px; align-items: center; }
.admin-header-btn {
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.22);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.admin-header-btn:hover { background: rgba(255,255,255,0.28); transform: translateY(-1px); }
.logout-btn { background: rgba(255,255,255,0.1); }

/* Admin Nav Strip */
.admin-nav-strip {
  background: rgba(74,8,24,0.07);
  border-bottom: 1px solid var(--gray-light);
  padding: 8px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--maroon-dark);
  gap: 20px;
}
.admin-nav-strip span { display: flex; align-items: center; gap: 6px; }

.admin-content { padding: 28px 30px; max-width: 1440px; margin: 0 auto; width: 100%; flex: 1; }

/* Stat Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--maroon);
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--logo-gradient);
  color: var(--white);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--maroon-dark); line-height: 1; }
.stat-card .lbl { font-size: 0.75rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* Registrations table wrap */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
}
.admin-table-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--maroon-pale);
  background: var(--white);
}
.admin-table-header h2 { font-size: 1.05rem; color: var(--maroon-dark); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.btn-print {
  background: var(--logo-gradient-h);
  color: var(--white);
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow);
}
.btn-print:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.tfoot-total { background: var(--maroon-pale) !important; }

/* Admin Footer */
.admin-footer {
  background: var(--logo-gradient-h);
  color: rgba(255,255,255,0.8);
  padding: 14px 30px;
  margin-top: auto;
}
.admin-footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.admin-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.admin-footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
}
.admin-footer-left img { 
  display: block;
  height: 24px;
  width: auto;
}
.admin-footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.admin-footer-right a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.admin-footer-right a:hover { color: var(--white); }
.admin-footer-right a i.fa-whatsapp { color: #4fde7b; }

/* Print-only admin header */
.print-only-header {
  display: none;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 3px solid #7B1034;
  margin-bottom: 20px;
}
.print-only-header h2 { font-size: 1.2rem; color: #4a0818; }
.print-only-header h3 { font-size: 0.95rem; color: #7B1034; }
.print-only-header p  { font-size: 0.8rem; color: #888; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  background: var(--maroon);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--maroon-pale); }
.badge-cat {
  display: inline-block;
  background: var(--maroon-pale);
  color: var(--maroon-dark);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin: 2px;
  border: 1px solid rgba(123,16,52,0.2);
}

/* Login Page */
.admin-login-topstrip {
  background: var(--logo-gradient-h);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 500;
}
.admin-login-topstrip img { filter: none; }

.login-page {
  background: linear-gradient(160deg, #f7f0f2 0%, #fdf0f4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 42px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 50px rgba(74,8,24,0.18);
  text-align: center;
  border-top: 5px solid var(--maroon);
}
.login-card img { height: 72px; margin-bottom: 20px; }
.login-card h1 {
  font-family: 'Playfair Display', serif;
  color: var(--maroon-dark);
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.login-card .sub { color: var(--gray); font-size: 0.86rem; margin-bottom: 28px; }
.login-card .form-group { text-align: left; }
.btn-login {
  width: 100%;
  background: var(--logo-gradient-h);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.error-alert {
  background: #fff0f0;
  border: 1px solid #f5c6cb;
  color: #c0392b;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 18px;
  text-align: left;
}

/* Contact Page */
.contact-page { padding: 60px 30px; max-width: 900px; margin: 0 auto; }
.contact-page h1 {
  font-family: 'Playfair Display', serif;
  color: var(--maroon-dark);
  font-size: 2rem;
  margin-bottom: 30px;
}
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--maroon);
  text-align: center;
}
.contact-card .ico { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card h3 { font-weight: 700; color: var(--maroon-dark); margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 0.95rem; color: var(--text-dark); text-decoration: none; }
.contact-card a:hover { color: var(--maroon); }

/* Success Page */
.success-box {
  text-align: center;
  padding: 60px 36px;
}
.success-icon { font-size: 4rem; margin-bottom: 16px; display: block; }
.success-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--maroon-dark);
  margin-bottom: 10px;
}
.success-box p { color: var(--gray); margin-bottom: 24px; }
.btn-home {
  display: inline-block;
  background: var(--logo-gradient-h);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}
.btn-home:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Utilities */
.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--maroon-dark);
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 0.95rem;
}
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--maroon), var(--maroon-light));
  border-radius: 2px;
  margin: 0 auto 30px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .admin-header { height: auto; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
  .admin-header-right { gap: 8px; }
  .admin-footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 768px) {
  .site-header { padding: 10px 16px; justify-content: center; flex-direction: column; gap: 8px; }
  .site-header .logo img { height: 60px; }
  .contact-strip { font-size: 0.75rem; gap: 8px; padding: 6px 12px; justify-content: center; }
  .strip-sep { display: none; }
  
  .navbar { padding: 0 10px; }
  .navbar ul { flex-wrap: wrap; justify-content: center; }
  .navbar ul li a { padding: 12px 12px; font-size: 0.8rem; gap: 4px; }
  .navbar ul li.nav-admin { margin-left: 0; }
  
  .banner-slider { height: 320px; }
  .slide img, .slide-placeholder { height: 320px; object-fit: cover; }
  .slide-placeholder h2 { font-size: 1.4rem; }
  
  .event-grid { grid-template-columns: 1fr; gap: 10px; }
  .event-poster { position: static; max-width: 100%; margin-bottom: 20px; }
  .event-poster img { width: 100%; height: auto; border-radius: var(--radius); }
  .event-details { padding: 0; }
  
  .info-grid { grid-template-columns: 1fr; }
  .reg-form-wrapper { padding: 22px 16px; margin-top: 20px; }
  
  .footer-inner { padding: 40px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col { text-align: center; }
  .footer-logo { margin: 0 auto 16px; }
  .footer-col h4 { justify-content: center; }
  .footer-col a { justify-content: center; }
  
  .contact-cards { grid-template-columns: 1fr; }
  .verify-actions { flex-direction: column; gap: 10px; }
  .btn-confirm, .btn-edit { width: 100%; text-align: center; justify-content: center; }
  .detail-label { flex: 0 0 110px; font-size: 0.8rem; }
  .detail-value { font-size: 0.85rem; }
}

@media print {
  /* Hide non-print elements */
  .no-print, 
  .admin-header, 
  .admin-nav-strip, 
  .admin-footer, 
  .admin-stats, 
  .btn-print, 
  .admin-table-header,
  .site-header,
  .navbar,
  .site-footer,
  .contact-strip { display: none !important; }

  @page {
    size: A4 portrait;
    margin: 1cm;
  }

  body { 
    background: white !important; 
    color: black !important;
    font-size: 8.5pt !important;
    padding: 0; margin: 0;
  }

  .admin-page { background: white !important; }
  .admin-content { padding: 0 !important; max-width: 100% !important; }
  .admin-table-wrap { box-shadow: none !important; border: none !important; border-radius: 0 !important; overflow: visible !important; }

  /* Print Header (Dashboard) */
  .print-only-header { 
    display: flex !important; 
    align-items: center; 
    gap: 20px; 
    border-bottom: 2px solid #7B1034; 
    padding-bottom: 15px; 
    margin-bottom: 20px; 
  }
  .print-only-header img { height: 50px !important; }
  .print-only-header h2 { font-size: 1.1rem !important; color: #4a0818 !important; margin: 0; }
  .print-only-header h3 { font-size: 0.85rem !important; color: #7B1034 !important; margin: 5px 0 0; }

  /* Compact Table for A4 Fit */
  table.data-table { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    font-size: 7.5pt !important; 
    table-layout: auto !important;
  }
  table.data-table th, 
  table.data-table td { 
    padding: 4px 2px !important; 
    border: 1px solid #ddd !important; 
    word-break: break-word !important; 
  }
  table.data-table th { 
    background: #f8f8f8 !important; 
    color: #4a0818 !important; 
    font-weight: 700 !important; 
    text-transform: uppercase;
  }
  table.data-table th i { display: none !important; } /* Hide icons to save space */
  
  .badge-cat { 
    border: none !important; 
    padding: 0 !important; 
    background: none !important; 
    display: block !important; 
    margin-bottom: 1px;
    font-size: 7pt !important;
    color: #333 !important;
  }
  .badge-cat::before { content: '• '; }
  
  .tfoot-total { background: #fdf0f4 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tfoot-total td { font-weight: 700 !important; border-top: 2px solid #7B1034 !important; }

  /* Receipt Specifics (Verify/Success pages) */
  .verify-container { box-shadow: none !important; border: 2px solid #7B1034 !important; }
  .verify-header { background: #7B1034 !important; color: white !important; border-radius: 0 !important; }
  .detail-row { border-bottom: 1px solid #eee !important; font-size: 9pt !important; }
}

/* ---- UPCOMING TOURNAMENT SECTION ---- */
.upcoming-tournament-section {
  padding: 80px 30px;
  background: var(--logo-gradient); /* Matched home page registration style */
}

.upcoming-tournament-section .section-heading {
  text-align: center;
  margin-bottom: 45px;
  color: var(--white); /* Matched home page registration style */
}

.upcoming-tournament-section .section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.upcoming-tournament-section .section-heading p {
  opacity: 0.85;
  font-size: 1rem;
}

.upcoming-card-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.upcoming-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.upcoming-card .card-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.upcoming-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--maroon-dark);
  margin-bottom: 25px;
  line-height: 1.3;
}

.upcoming-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
}

.upcoming-info p {
  font-size: 1.1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.upcoming-info i {
  color: var(--maroon);
  font-size: 1.2rem;
}

.prospectus-note {
  background: var(--maroon-pale);
  color: var(--maroon-dark);
  padding: 15px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed var(--maroon);
}

@media (max-width: 768px) {
  .upcoming-tournament-section { padding: 60px 20px; }
  .upcoming-card { padding: 30px 20px; }
  .upcoming-card h3 { font-size: 1.4rem; }
  .upcoming-info p { font-size: 0.95rem; }
}
