:root {
  --emerald-dark: #041f14;
  --emerald-mid: #0b462c;
  --emerald-glow: #147a4c;
  --gold-light: #ffe28a;
  --gold-main: #d4af37;
  --gold-deep: #9e7614;
  --white-bg: #ffffff;
  --white-soft: #f7f9f8;
  --text-dark: #13221a;
  --text-muted: #55665d;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Smooth Black Screen Fade-Out */
.page-fade-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #000000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-fade-overlay.fade-done {
  opacity: 0;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 31, 20, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 40px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.fallback-logo {
  display: none;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  color: var(--gold-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: #ffffff;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.glass-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.glass-gold {
  background: linear-gradient(135deg, rgba(255, 226, 138, 0.28), rgba(212, 175, 55, 0.22));
  border: 1px solid rgba(255, 226, 138, 0.6);
  color: var(--gold-light);
}

.glass-btn-sm {
  padding: 7px 13px;
  font-size: 0.78rem;
  border-radius: 10px;
  white-space: nowrap;
}

.hero-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 105px 6% 75px;
  background-color: var(--emerald-dark);
  background-image:
    radial-gradient(circle at 20% 25%, rgba(20, 122, 76, 0.45), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.22), transparent 50%),
    url('fullbg.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 31, 20, 0.68) 0%,
    rgba(4, 31, 20, 0.78) 70%,
    rgba(4, 31, 20, 0.94) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #fff0b8, #d4af37, #9e7614);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 16px auto 28px;
  max-width: 580px;
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.white-section {
  background-color: var(--white-bg);
  padding: 56px 5% 80px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.countdown-wrapper {
  text-align: center;
  margin-bottom: 44px;
}

.countdown-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.time-box {
  width: 100%;
  min-width: 0;
  padding: 22px 12px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #fffdf5);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 28px rgba(158, 118, 20, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.time-value {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(180deg, #f3cb52 0%, #c89b1e 55%, #8c6608 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.time-unit {
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-deep);
}

.login-bar-card {
  background: var(--white-soft);
  border: 1px solid rgba(11, 70, 44, 0.14);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 14px 36px rgba(4, 31, 20, 0.08);
  margin-bottom: 24px;
}

.ticket-card,
.download-card {
  border-color: rgba(212, 175, 55, 0.45);
  background: #fffdf7;
}

.login-header {
  text-align: center;
  margin-bottom: 18px;
}

.login-header h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  color: var(--emerald-dark);
}

.login-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.ticket-id-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-deep) !important;
  font-weight: 700;
  letter-spacing: 1px;
}

.login-bar-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.ticket-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-dark);
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid #cbd5cf;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: var(--text-dark);
  outline: none;
}

.input-group input:focus {
  border-color: var(--gold-main);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.ticket-submit-wrap {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.login-submit-btn {
  padding: 12px 26px;
  border-radius: 12px;
  color: #6b4e06;
  background: linear-gradient(135deg, #ffe89e, #d4af37);
  border: 1px solid rgba(158, 118, 20, 0.45);
}

.login-status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--emerald-mid);
  min-height: 20px;
}

.ticket-preview-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
}

#ticketCanvas {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Clean Human-Made BOC Bank Card */
.bank-info-card {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 20px 18px 16px;
  border-radius: 20px;
  background-color: var(--emerald-mid);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 28px rgba(4, 31, 20, 0.14);
}

.bank-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.bank-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.bank-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2.8vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
}

.bank-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(4, 31, 20, 0.45);
  border: 1px solid rgba(255, 226, 138, 0.4);
  white-space: nowrap;
}

.bank-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bank-row-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bank-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bank-label {
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.76);
}

.bank-acc-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold-light);
}

.bank-value {
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.copy-acc-btn {
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 226, 138, 0.5);
  background: rgba(4, 31, 20, 0.42);
  color: var(--gold-light);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease;
}

.copy-acc-btn:hover {
  background: rgba(4, 31, 20, 0.65);
  transform: translateY(-1px);
}

.copy-status {
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold-light);
  min-height: 16px;
  text-align: center;
}

/* Bottom WhatsApp Support Footer */
.support-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(11, 70, 44, 0.14);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.support-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.whatsapp-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.whatsapp-report-btn:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

@media (max-width: 650px) {
  .navbar {
    padding: 10px 3.5%;
  }

  .brand-logo img {
    height: 30px;
    max-width: 105px;
  }

  .nav-actions {
    gap: 5px;
  }

  .glass-btn-sm {
    padding: 6px 8px;
    font-size: 0.68rem;
    border-radius: 8px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .time-box {
    padding: 16px 8px;
    border-radius: 16px;
  }

  .login-bar-card {
    padding: 20px 15px;
  }

  .ticket-form-grid {
    grid-template-columns: 1fr;
  }

  .bank-info-card {
    padding: 18px 15px 14px;
  }

  .login-submit-btn,
  .whatsapp-report-btn {
    width: 100%;
  }
}
