* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Google Sans", Arial, Helvetica, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "GRAD" 0;
  background: #e9e9e9;
  color: #333;
  overflow-x: hidden;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #29b6f6, #1f5fa8);
  width: 0%;
  z-index: 300;
  transition: width 0.1s ease;
}

/* Notice ticker */
.ticker-wrap {
  background: linear-gradient(90deg, #17335c, #1f5fa8, #17335c);
  background-size: 200% 100%;
  animation: ticker-shine 8s linear infinite;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
@keyframes ticker-shine {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 22s linear infinite;
}
.ticker-track i { margin-right: 2px; color: #ffd479; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Header */
.top-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-box {
  background: linear-gradient(145deg, #1f5fa8, #17335c);
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(31,95,168,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-wrap:hover .logo-box {
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 0 8px 16px rgba(31,95,168,0.32);
}
.logo-text {
  font-size: 32px;
  font-weight: bold;
  color: #111;
  letter-spacing: 0.2px;
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 22px;
  color: #1f5fa8;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s ease;
}
.menu-toggle:hover { background: #f0f4fa; }

/* Ripple effect */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(3); opacity: 0; }
}

/* Nav */
nav {
  background: linear-gradient(#3f7fc1, #1f5fa8);
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 14px 0;
  flex-wrap: wrap;
  position: sticky;
  top: 65px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(23,51,92,0.15);
}
nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: #ffd479;
  border-radius: 2px;
  transition: width 0.25s ease;
}
nav a:hover { text-decoration: none; opacity: 1; }
nav a:hover::after { width: 100%; }
.dropdown { position: relative; }

/* Results section */
.results-wrap {
  max-width: 1100px;
  margin: 30px auto;
  text-align: center;
  position: relative;
  padding: 0 24px;
}
.live-gif {
  display: block;
  margin: 0 auto 12px;
  max-width: 90px;
  height: auto;
}
.results-wrap h1 {
  font-size: 34px;
  letter-spacing: 0.5px;
  color: #17335c;
  margin-bottom: 24px;
  font-weight: 800;
}

/* Result cards */
.results-table {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.result-card {
  flex: 1;
  min-width: 240px;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 0;
  text-align: center;
  box-shadow: 0 4px 18px rgba(23,51,92,0.08);
  border: 1px solid #eef1f5;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  animation: card-in 0.5s ease forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.15s; }
.result-card:nth-child(3) { animation-delay: 0.25s; }
@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(23,51,92,0.15);
  border-color: #d7e4f5;
}
.card-head {
  background: #fff;
  padding: 26px 20px 18px;
  color: #17335c;
  position: relative;
}
.card-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 10px;
  background: #e8f7ee;
  color: #2c9c5a;
}
.card-status.pending {
  background: #fdf1e0;
  color: #c9821f;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9821f;
  display: inline-block;
  animation: dot-pulse 1.4s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(145deg, #1f5fa8, #17335c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 14px;
  box-shadow: 0 6px 14px rgba(31,95,168,0.3);
}
.result-card .card-title {
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 4px;
}
.card-subtitle {
  font-size: 12px;
  color: #8b95a3;
  margin: 0;
}
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 14px auto 0;
  padding: 7px 14px;
  border-radius: 10px;
  background: #f3f7fc;
  color: #1f5fa8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: background 0.3s ease, color 0.3s ease;
}
.countdown i { font-size: 12px; }
.countdown-value { font-variant-numeric: tabular-nums; }
.countdown.urgent {
  background: #fdecea;
  color: #b3261e;
  animation: countdown-urgent 1s ease-in-out infinite;
}
@keyframes countdown-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(179,38,30,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(179,38,30,0); }
}
.countdown.due {
  background: #e8f7ee;
  color: #2c9c5a;
}
.card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #eef1f5 20%, #eef1f5 80%, transparent);
  margin: 0 20px;
}
.card-body {
  padding: 20px 20px 24px;
}
.result-card .card-pdf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1f5fa8;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 12px 0;
  border-radius: 10px;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.result-card .card-pdf:hover { background: #17335c; transform: translateY(-2px); }
.result-card .card-pdf i { font-size: 13px; }
.result-card .card-pdf.disabled {
  background: #eef1f5;
  color: #9aa4b2;
  cursor: not-allowed;
  pointer-events: none;
}
.card-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  background: #25D366;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  padding: 10px 0;
  border-radius: 10px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}
.card-share:hover { background: #1ea952; transform: translateY(-2px); }
.card-share i { font-size: 14px; }
.card-updated {
  margin: 10px 0 0;
  font-size: 11px;
  color: #9aa4b2;
}

/* Confetti */
.confetti-piece {
  position: fixed;
  top: -10px;
  width: 8px; height: 14px;
  z-index: 400;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(100vh) rotate(360deg); opacity: 0.4; }
}

/* FAQ accordion */
.faq-section {
  max-width: 1150px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.faq-section h2 {
  color: #17335c;
  font-size: 20px;
  margin: 0 0 16px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(23,51,92,0.06);
  border: 1px solid #eef1f5;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item:hover {
  box-shadow: 0 6px 16px rgba(23,51,92,0.1);
  border-color: #d7e4f5;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 17px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #17335c;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}
.faq-item.open .faq-question { color: #1f5fa8; }
.faq-question::after {
  content: "+";
  flex-shrink: 0;
  margin-left: 12px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: #f0f4fa;
  color: #1f5fa8;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); background: #1f5fa8; color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* SEO content section */
.seo-content {
  max-width: 1100px;
  margin: 30px auto 40px;
  background: #fff;
  border-radius: 10px;
  padding: 30px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: left;
  line-height: 1.7;
  color: #444;
  font-size: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.seo-content.visible {
  opacity: 1;
  transform: translateY(0);
}
.seo-content h2 {
  color: #17335c;
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 14px;
}
.seo-content h3 {
  color: #17335c;
  font-size: 17px;
  margin-bottom: 8px;
}
.seo-content p { margin: 0 0 14px; }
.seo-content h4 { color: #17335c; font-size: 15px; margin: 0 0 8px; }
.seo-content img.seo-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 6px 0 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.seo-content .seo-toc {
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: 14px;
}
.seo-content .seo-toc strong { color: #17335c; margin-right: 6px; }
.seo-content .seo-toc a { color: #1f5fa8; text-decoration: none; margin-right: 10px; white-space: nowrap; }
.seo-content .seo-toc a:hover { text-decoration: underline; }
.seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 22px;
  font-size: 14px;
}
.seo-content caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 6px;
  color: #17335c;
  font-size: 13px;
}
.seo-content th, .seo-content td {
  border: 1px solid #dbe4f0;
  padding: 9px 12px;
  text-align: left;
}
.seo-content th { background: #eef3fa; color: #17335c; }
.seo-content tbody tr:nth-child(even) { background: #fafcfe; }
.seo-content ul, .seo-content ol { margin: 0 0 16px; padding-left: 20px; }
.seo-content li { margin-bottom: 7px; }
.seo-content a { color: #1f5fa8; text-decoration: none; }
.seo-content a:hover { text-decoration: underline; }
.seo-content .source-note { font-size: 12.5px; color: #77839a; margin-top: -8px; }

/* Footer */
footer {
  background: linear-gradient(180deg, #17335c, #122748);
  padding: 30px 20px 24px;
  color: #cfd8e6;
  text-align: center;
  margin-top: 40px;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1f5fa8, #ffd479, #1f5fa8);
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e3e7ee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(23,51,92,0.18);
  text-decoration: none;
  color: #1f5fa8;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(23,51,92,0.25);
  background: #1f5fa8;
  color: #fff;
}

/* Mobile styles */
@media (max-width: 900px) {
  .top-header { padding: 12px 16px; justify-content: space-between; }
  .logo-text { font-size: 20px; }
  .logo-box { font-size: 20px; padding: 10px 14px; }
  .menu-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0; right: -260px;
    height: 100vh;
    width: 240px;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 20px;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 150;
  }
  nav.open { right: 0; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 140;
  }
  .nav-overlay.show { display: block; }

  .results-table { flex-direction: column; align-items: center; }
  .result-card { width: 100%; max-width: none; }
  .seo-content { margin: 20px 16px 30px; padding: 20px; }
  .faq-section { margin: 0 16px; padding: 0; }
  .faq-section h2 { font-size: 18px; }
  footer { margin-top: 30px; }
  .scroll-top { right: 14px; bottom: 18px; }
}

/* ============ Inner page additions (About/Contact/Privacy/Terms/Disclaimer) ============ */
nav a.active { opacity: 1; }
nav a.active::after { width: 100%; }

.page-hero {
  max-width: 1100px;
  margin: 30px auto 0;
  text-align: center;
  padding: 0 24px;
}
.page-hero h1 {
  font-size: 32px;
  letter-spacing: 0.5px;
  color: #17335c;
  margin: 0 0 8px;
  font-weight: 800;
}
.page-hero p.page-sub {
  color: #6b7280;
  font-size: 15px;
  margin: 0;
}

.seo-content .updated-note {
  font-size: 12.5px;
  color: #77839a;
  margin: -6px 0 20px;
}

.contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 22px;
}
.contact-info-card {
  flex: 1;
  min-width: 220px;
  background: #f4f7fb;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  padding: 18px 20px;
}
.contact-info-card i {
  color: #1f5fa8;
  font-size: 18px;
  margin-bottom: 8px;
  display: inline-block;
}
.contact-info-card h4 { margin: 0 0 6px; color: #17335c; font-size: 15px; }
.contact-info-card p, .contact-info-card a { margin: 0; color: #444; font-size: 14px; text-decoration: none; }
.contact-info-card a { color: #1f5fa8; }
.contact-info-card a:hover { text-decoration: underline; }
