:root {
  --navy: #071b44;
  --blue: #164b9f;
  --red: #c91f32;
  --red-dark: #981827;
  --gold: #f8b62b;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --ink: #101827;
  --muted: #637083;
  --line: #dfe5ef;
  --soft: #edf2fa;
  --shadow: 0 22px 55px rgba(7, 27, 68, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(16, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
}

.brand img {
  width: 42px;
  height: 36px;
  object-fit: contain;
}

.brand span {
  color: var(--navy);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.app-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(12px, 1.7vw, 24px);
  font-size: 0.92rem;
  font-weight: 800;
}

.app-nav a {
  position: relative;
  color: #18243a;
  white-space: nowrap;
}

.app-nav a.active,
.app-nav a:hover {
  color: var(--red);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.btn-primary {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 16px 34px rgba(248, 182, 43, 0.28);
}

.header-cta {
  color: var(--white, #fff);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(201, 31, 50, 0.22);
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("web-merdeka.jpg") center / cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 15, 40, 0.96) 0%, rgba(7, 27, 68, 0.82) 46%, rgba(7, 27, 68, 0.2) 100%),
    linear-gradient(0deg, rgba(4, 15, 40, 0.86), rgba(4, 15, 40, 0.05));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(54px, 8vw, 90px);
}

.hero-copy h1,
.page-hero h1 {
  max-width: 840px;
  margin: 0 0 18px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(4rem, 9vw, 8.8rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

.hero-copy p,
.page-hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel,
.portal-card,
.event-card,
.tool-card,
.tip-card {
  border: 1px solid rgba(223, 229, 239, 0.9);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  color: var(--ink);
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
}

.panel-label,
.event-status,
.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel h2,
.section-head h2,
.page-title,
.portal-card h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero-panel dl {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.hero-panel dl div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.hero-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-weight: 900;
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.dashboard-strip article {
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  box-shadow: var(--shadow);
}

.dashboard-strip strong {
  display: block;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 3rem;
  line-height: 0.95;
}

.dashboard-strip span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.section {
  padding-block: clamp(62px, 8vw, 96px);
}

.section-head {
  margin-bottom: 34px;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: end;
}

.section-head p,
.split-head > p {
  color: var(--muted);
  font-size: 1.04rem;
}

.event-grid,
.tool-grid,
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-card {
  overflow: hidden;
}

.event-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--soft);
}

.event-card-body {
  padding: 22px;
}

.event-card h3,
.tool-card h3,
.tip-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.18;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.event-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-actions a,
.event-actions button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.event-actions .primary {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.tool-card,
.tip-card {
  padding: 24px;
  cursor: pointer;
}

.tool-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
}

.tool-card p,
.tip-card p,
.event-card p {
  margin: 0;
  color: var(--muted);
}

.page-hero.compact {
  padding: clamp(56px, 8vw, 92px) 0;
  background:
    linear-gradient(90deg, rgba(7, 27, 68, 0.97), rgba(7, 27, 68, 0.78)),
    url("web-merdeka.jpg") center / cover;
}

.page-hero.compact h1 {
  font-size: clamp(2.75rem, 5.4vw, 4.8rem);
}

.filters,
.leaderboard-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.leaderboard-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 18px;
  justify-content: start;
}

.leaderboard-event-card {
  display: grid;
  gap: 12px;
  padding: 0 0 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.leaderboard-event-card:hover,
.leaderboard-event-card.active {
  border-color: var(--red);
  box-shadow: 0 18px 38px rgba(201, 31, 50, 0.2);
}

.leaderboard-event-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.leaderboard-event-card .event-status,
.leaderboard-event-card strong,
.leaderboard-event-card small {
  margin-inline: 20px;
}

.leaderboard-event-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.leaderboard-event-card small {
  color: var(--muted);
  font-weight: 700;
}

.leaderboard-panel {
  margin-top: 28px;
}

.leaderboard-controls {
  justify-content: space-between;
  align-items: end;
}

.leaderboard-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.leaderboard-search label {
  min-width: min(100%, 310px);
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  margin: 30px 0;
}

.podium-card {
  display: grid;
  gap: 5px;
  min-height: 138px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  box-shadow: var(--shadow);
}

.podium-card.rank-1 {
  order: 2;
  min-height: 172px;
  background: linear-gradient(135deg, #f8b62b, #e59513);
  color: var(--navy);
}

.podium-card.rank-2 { order: 1; }
.podium-card.rank-3 { order: 3; background: var(--red); }

.podium-rank {
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.podium-card strong { font-size: 1.05rem; }
.podium-card small { opacity: 0.84; font-weight: 700; }

.filter-btn,
.leaderboard-controls select {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.filter-btn.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.form-layout,
.lookup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 22px;
  align-items: start;
}

.submission-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 31, 50, 0.28);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  color: var(--navy);
  background: #fff7f8;
}

.submission-notice strong {
  font-weight: 700;
}

.portal-card {
  padding: 24px;
}

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

.form-card .btn {
  width: fit-content;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 400;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
  font-weight: 400;
}

input[type="file"] {
  padding: 10px 13px;
}

.form-card .btn {
  font-weight: 500;
}

.status-message {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 800;
}

.status-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.status-search .btn {
  font-weight: 500;
}

.history-list,
.package-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  padding: 0;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

th {
  color: var(--navy);
  background: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-weight: 700;
}

.leaderboard-name {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.lookup-card {
  display: grid;
  gap: 16px;
}

.document-preview {
  display: grid;
  gap: 16px;
}

.doc-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 27, 68, 0.94), rgba(201, 31, 50, 0.86)),
    url("web-merdeka.jpg") center / cover;
  box-shadow: var(--shadow);
}

.doc-card h3 {
  margin: 0 0 6px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 3.4rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.doc-card p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.82);
}

.doc-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.4rem;
}

.tracking-card {
  display: grid;
  gap: 14px;
}

.track-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.track-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--line);
  font-size: 0.8rem;
  font-weight: 900;
}

.track-step.done .track-dot {
  background: var(--red);
}

.track-step h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.track-step p {
  margin: 2px 0 0;
  color: var(--muted);
}

.tips-grid {
  margin-bottom: 58px;
}

.tip-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border-radius: 8px;
  object-fit: cover;
}

.faq-block {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .app-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .app-nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.nav-open .app-nav {
    display: flex;
  }

  .app-nav a {
    padding: 10px 2px;
  }

  .hero-grid,
  .split-head,
  .form-layout,
  .lookup-layout,
  .faq-block {
    grid-template-columns: 1fr;
  }

  .event-grid,
  .event-grid.large,
  .tool-grid,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 38px;
    height: 32px;
  }

  .brand span {
    font-size: 1.38rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 46px;
  }

  .hero-copy h1,
  .page-hero.compact h1 {
    font-size: clamp(2.7rem, 13vw, 3.75rem);
  }

  .dashboard-strip,
  .event-grid,
  .event-grid.large,
  .tool-grid,
  .tips-grid,
  .form-card,
  .status-search {
    grid-template-columns: 1fr;
  }

  .dashboard-strip {
    margin-top: 0;
  }

  .hero-actions,
  .event-actions,
  .filters,
  .leaderboard-controls,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .header-cta,
  .filter-btn,
  .leaderboard-controls select,
  .leaderboard-search,
  .leaderboard-search label,
  .leaderboard-search .btn,
  .form-card .btn {
    width: 100%;
  }

  .leaderboard-podium {
    grid-template-columns: 1fr;
  }

  .podium-card.rank-1,
  .podium-card.rank-2,
  .podium-card.rank-3 {
    order: initial;
    min-height: 0;
  }
}
