:root {
  --maroon: #4a0e0e;
  --red-deep: #6e0d0d;
  --red-mid: #9e1414;
  --red-bright: #c81e1e;
  --red-tag: #e23238;
  --gold: #c9a227;
  --gold-light: #f0d264;
  --gold-pale: #fbf0d2;
  --cream: #fffcf6;
  --paper: #fffdf9;
  --ink: #2a1414;
  --badge: #ffe93e;
  --muted: #8a7461;
  --line: #ecdfbd;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
}

/* ===================== HERO (full CSS, no image) ===================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(255, 255, 255, 0.12),
      transparent 55%
    ),
    linear-gradient(
      155deg,
      var(--maroon) 0%,
      var(--red-deep) 45%,
      var(--red-mid) 100%
    );
  padding: 54px 24px 74px;
  text-align: center;
}
.hero .rings {
  position: absolute;
  inset: 0;
  margin: auto;
  pointer-events: none;
}
.hero .rings circle {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.4;
  transform-origin: center;
  animation: ringPulse 4.5s ease-out infinite;
  opacity: 0;
}
.hero .rings circle:nth-child(2) {
  animation-delay: 1.1s;
}
.hero .rings circle:nth-child(3) {
  animation-delay: 2.2s;
}
.hero .rings circle:nth-child(4) {
  animation-delay: 3.3s;
}
@keyframes ringPulse {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  12% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.hero-logo img {
  width: clamp(50px, 5vw, 80px); /* Lebih kecil */
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}
.hero-emblem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 3px;
  color: var(--gold-light);
  font-size: 11.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  border: 1px solid rgba(240, 210, 100, 0.4);
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}
.hero-emblem svg {
  width: 13px;
  height: 13px;
}
.hero h2.script {
  font-family: "Yellowtail", cursive;
  color: var(--badge);
  font-size: clamp(24px, 4.2vw, 38px);
  margin: 0 0 2px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero h1 {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: clamp(46px, 11vw, 92px);
  margin: 2px 0 8px;
  letter-spacing: 3px;
  background: linear-gradient(
    180deg,
    #fcefb0 0%,
    var(--gold) 48%,
    #8a6a12 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.4));
}
.hero p.sub {
  color: #fff;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 26px;
  opacity: 0.94;
  font-weight: 500;
}
.info-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}
.info-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(240, 210, 100, 0.35);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(2px);
}
.info-chips .chip b {
  color: var(--badge);
  font-weight: 700;
}
.info-chips svg {
  width: 14px;
  height: 14px;
  color: var(--gold-light);
  flex-shrink: 0;
}

/* wave transition to content */
.hero-wave {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: -2px;
}

/* ===================== SEAL DIVIDER ===================== */
.seal-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 0;
  z-index: 10;
}

.seal {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(65px, 18vw, 100px);
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(74, 14, 14, 0.35));
  animation: sealDrop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
/* Tablet */
@media (max-width: 768px) {
  .seal {
    width: 80px;
    top: -40px;
  }
}

/* HP */
@media (max-width: 480px) {
  .seal {
    width: 65px;
    top: -32px;
  }
}

.certificate-wrapper {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.seal-divider {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.seal {
  width: 90px;
  height: auto;
}

.certificate-tabs {
  margin-top: 40px;
}

/* ===================== TAB NAV ===================== */
.tab-dock {
  max-width: 820px;
  margin: 14px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}
.tabs {
  display: flex;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(74, 14, 14, 0.16);
  overflow: hidden;
  border: 1px solid var(--line);
}
.tab-btn {
  flex: 1;
  padding: 16px 8px 14px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tab-btn svg {
  width: 20px;
  height: 20px;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}
.tab-btn.active {
  color: var(--red-tag);
  border-bottom: 3px solid var(--red-tag);
  background: linear-gradient(180deg, #fff, var(--gold-pale));
}
.tab-btn.active svg {
  opacity: 1;
}
.tab-btn:hover {
  color: var(--red-mid);
}

/* ===================== CONTENT ===================== */
.content-wrap {
  position: relative;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(201, 162, 39, 0.06),
      transparent 40%
    ),
    radial-gradient(circle at 90% 30%, rgba(142, 7, 7, 0.05), transparent 45%);
}
.content {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 20px 90px;
}
.panel {
  display: none;
  animation: fadeUp 0.45s ease both;
}
.panel.active {
  display: block;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-head {
  text-align: center;
  margin-bottom: 26px;
}
.panel-head .eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.panel-head h2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 28px);
  color: var(--maroon);
  margin: 6px 0 8px;
  letter-spacing: 0.5px;
}
.panel-head p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.55;
}
.rule {
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.search-wrap {
  display: flex;
  gap: 10px;
  margin: 0 auto 30px;
  max-width: 480px;
  position: relative;
}
.search-wrap .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gold);
  pointer-events: none;
}
.search-wrap input {
  flex: 1;
  padding: 15px 18px 15px 44px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  outline: none;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}
.search-wrap input::placeholder {
  font-family: "Poppins", sans-serif;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  color: #c2b39a;
}

.status-msg {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  padding: 36px 16px;
}
.status-msg .big {
  display: block;
  font-size: 34px;
  margin-bottom: 8px;
}

/* ===================== LOADING (radar sweep) ===================== */
.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 16px;
}
.radar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: conic-gradient(
    from 0deg,
    rgba(201, 162, 39, 0) 0deg,
    rgba(201, 162, 39, 0) 250deg,
    var(--gold) 360deg
  );
  animation: spin 1.1s linear infinite;
}
.radar::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px dashed var(--gold-light);
}
.radar::after {
  content: "📡";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.loading-box span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===================== CALLSIGN GROUP ===================== */
.callsign-group {
  margin-bottom: 26px;
  animation: fadeUp 0.4s ease both;
}
.callsign-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.callsign-head .cs {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-tag), var(--red-mid));
  padding: 6px 16px;
  border-radius: 8px;
  letter-spacing: 1.5px;
  box-shadow: 0 3px 8px rgba(142, 7, 7, 0.3);
}
.callsign-head .count {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

/* ===================== TICKET / CERTIFICATE CARD ===================== */
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.ticket {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.ticket:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(74, 14, 14, 0.16);
  border-color: var(--gold);
}
.ticket .topbar {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--gold-light),
    var(--gold),
    var(--red-tag)
  );
}
.ticket-watermark {
  position: absolute;
  right: -14px;
  bottom: -10px;
  width: 80px;
  opacity: 0.055;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}
.ticket .body {
  position: relative;
  z-index: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.ticket .icon-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticket .pulse-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle, var(--gold-pale), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket .pulse-badge svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}
.ticket .fname {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #5a4632;
  word-break: break-all;
  line-height: 1.4;
}
.ticket .meta {
  font-size: 10.5px;
  color: var(--muted);
}
.dl-btn {
  margin: 0 16px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #4a3400;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 0 3px 0 #8a6a12;
}
.dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #8a6a12;
}
.dl-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8a6a12;
}
.dl-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.dl-btn:hover::after {
  left: 130%;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--gold-light);
  font-size: 12px;
  background: linear-gradient(180deg, var(--maroon), #2e0808);
  letter-spacing: 0.5px;
}
footer strong {
  color: #fff;
}
footer .foot-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  opacity: 0.8;
}

@media (max-width: 520px) {
  .tab-btn {
    font-size: 11.5px;
    padding: 14px 4px 12px;
  }
  .tab-btn svg {
    width: 17px;
    height: 17px;
  }
  .hero {
    padding: 44px 16px 60px;
  }
}
footer a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

footer a:hover,
footer a:visited,
footer a:active {
  color: inherit;
  text-decoration: none;
}
