:root {
  --night: #120004;
  --night-soft: #1c0006;
  --maroon-950: #280008;
  --maroon-900: #3d000d;
  --maroon-800: #570012;
  --maroon-700: #700018;
  --red-600: #f0092d;
  --red-500: #ff1738;
  --red-300: #ff8093;
  --white: #ffffff;
  --ink: #ffffff;
  --muted: #d5b6be;
  --muted-strong: #ead8dd;
  --line: rgba(255, 255, 255, 0.13);
  --line-red: rgba(255, 23, 56, 0.42);
  --surface: rgba(70, 0, 15, 0.82);
  --surface-strong: #41000e;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  --radius-xl: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 13%, rgba(255, 23, 56, 0.14), transparent 24rem),
    linear-gradient(180deg, #270007 0%, #4b0011 34%, #210006 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: none;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--night);
  background: var(--white);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid var(--red-600);
  background: #120004;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 182px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  max-width: 235px;
  height: 58px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo-placeholder {
  width: 190px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed rgba(255, 255, 255, 0.58);
  border-radius: 9px;
  padding: 8px 11px;
  color: var(--white);
  background: #090002;
  line-height: 1.2;
}

.logo-placeholder[hidden] { display: none; }

.logo-placeholder strong {
  font-size: 0.72rem;
  letter-spacing: 0.045em;
}

.logo-placeholder small {
  margin-top: 4px;
  color: var(--red-300);
  font-size: 0.62rem;
}

.header-label {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  align-items: end;
  gap: 42px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line-red);
  border-radius: 28px;
  padding: 70px 56px 58px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 23, 56, 0.22), transparent 17rem),
    linear-gradient(135deg, rgba(26, 0, 7, 0.98), rgba(91, 0, 19, 0.92));
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -180px;
  right: -90px;
  width: 430px;
  height: 430px;
}

.hero::after {
  right: 70px;
  bottom: -220px;
  width: 390px;
  height: 390px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 5px rgba(255, 23, 56, 0.13), 0 0 18px rgba(255, 23, 56, 0.9);
  content: "";
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 750px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.65rem, 6.4vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

h1 span {
  display: block;
  color: var(--red-500);
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.65vw, 1.15rem);
}

.hero-note {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 27px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(103, 0, 23, 0.9), rgba(31, 0, 7, 0.96));
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.26);
}

.hero-note::after {
  position: absolute;
  right: -38px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.hero-note strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-note p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.method-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 58px;
}

.method-nav a {
  position: relative;
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  color: var(--white);
  text-decoration: none;
  background: linear-gradient(150deg, rgba(79, 0, 17, 0.88), rgba(28, 0, 7, 0.9));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.method-nav a::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red-600);
  content: "";
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 180ms ease;
}

.method-nav a:hover,
.method-nav a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 23, 56, 0.58);
  background: linear-gradient(150deg, rgba(105, 0, 23, 0.96), rgba(34, 0, 8, 0.95));
}

.method-nav a:hover::before,
.method-nav a:focus-visible::before { transform: scaleX(1); }

.method-nav span {
  color: var(--red-300);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.method-nav strong {
  font-size: 0.96rem;
  line-height: 1.35;
}

.program-list {
  display: grid;
  gap: 26px;
  padding-bottom: 78px;
}

.program-card {
  scroll-margin-top: 110px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  border: 1px solid var(--line-red);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(28, 0, 7, 0.9);
  box-shadow: var(--shadow);
}

.program-intro {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  padding: 34px 30px;
  color: var(--white);
  background: linear-gradient(160deg, #720019 0%, #3a000c 72%, #210007 100%);
}

.program-intro::after {
  position: absolute;
  left: -48px;
  bottom: -68px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  content: "";
}

.method-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  font-weight: 850;
}

.program-intro h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.program-intro p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.program-body {
  min-width: 0;
  padding: 34px;
  background: linear-gradient(145deg, rgba(46, 0, 10, 0.96), rgba(25, 0, 6, 0.98));
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #210007;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--red-600) rgba(255, 255, 255, 0.08);
}

table {
  width: 100%;
  min-width: 530px;
  border-collapse: collapse;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--red-300);
  background: #4b0011;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

td {
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 650;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.035); }
tbody tr:hover { background: rgba(255, 23, 56, 0.095); }

.table-scroll--tall {
  max-height: none;
  overflow-y: visible;
}

.table-scroll--tall th {
  position: static;
  box-shadow: none;
}

/*
  Paksa tabel dirender langsung. Aturan ini mencegah tema/skrip eksternal
  menerapkan lazy rendering, fade tertunda, atau transform pada tabel.
*/
.g99-referral-page .program-card,
.g99-referral-page .program-body,
.g99-referral-page .table-scroll,
.g99-referral-page table,
.g99-referral-page thead,
.g99-referral-page tbody,
.g99-referral-page tr {
  content-visibility: visible !important;
  contain: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.bonus-simulator {
  margin-top: 24px;
  border: 1px solid rgba(255, 23, 56, 0.38);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(84, 0, 18, 0.72), rgba(20, 0, 5, 0.88));
}

.simulator-heading { margin-bottom: 18px; }

.simulator-heading h3 {
  margin: 0 0 7px;
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.simulator-heading > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.simulator-kicker {
  margin-bottom: 6px;
  color: var(--red-300);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.simulator-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.simulator-field {
  display: grid;
  gap: 7px;
}

.simulator-field > span {
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 750;
}

.simulator-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 15px;
  color: var(--white);
  background: #170005;
  font: inherit;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.simulator-field input::placeholder { color: #9e7c84; }

.simulator-field input:focus {
  border-color: var(--red-500);
  outline: 3px solid rgba(255, 23, 56, 0.18);
}

.simulator-field input[aria-invalid="true"] {
  border-color: #ff8093;
}

.simulator-button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 12px 21px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-500), #b90022);
  box-shadow: 0 10px 22px rgba(240, 9, 45, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
}

.simulator-button:hover { background: linear-gradient(135deg, #ff3854, #d20027); }
.simulator-button:active { transform: translateY(1px); }

.simulator-error {
  min-height: 1.4rem;
  grid-column: 1 / -1;
  margin: -3px 0 0;
  color: #ffadba;
  font-size: 0.82rem;
  font-weight: 700;
}

.simulator-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.simulator-result.is-calculated {
  border-color: rgba(255, 23, 56, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 23, 56, 0.08);
}

.simulator-result > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 15px;
  background: #220007;
}

.simulator-result span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.simulator-result strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.simulator-result > div:last-child strong { color: var(--red-300); }

.simulator-note {
  margin: 12px 0 0;
  color: #b9969f;
  font-size: 0.78rem;
}

details {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

summary {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 850;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--red-600);
  box-shadow: 0 8px 18px rgba(240, 9, 45, 0.22);
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

details[open] summary::before { content: "−"; }

.terms {
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: terms;
}

.terms li {
  position: relative;
  min-height: 30px;
  margin: 0 0 13px;
  padding-left: 43px;
  color: var(--muted-strong);
  counter-increment: terms;
}

.terms li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: var(--white);
  background: var(--red-600);
  content: counter(terms);
  font-size: 0.76rem;
  font-weight: 850;
}

.site-footer {
  border-top: 2px solid var(--red-600);
  background: var(--night);
}

.footer-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner strong {
  color: var(--white);
  letter-spacing: 0.08em;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 34px 38px;
  }

  .hero-note { max-width: 560px; }
  .method-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-card { grid-template-columns: 1fr; }
  .program-intro { min-height: auto; padding: 27px 26px; }
  .method-number { margin-bottom: 24px; }
}

@media (max-width: 560px) {
  .header-inner,
  .page-shell,
  .footer-inner { width: min(100% - 24px, 1120px); }

  .header-inner { min-height: 74px; }
  .brand { min-width: 0; }
  .brand-logo { max-width: 175px; height: 48px; }
  .logo-placeholder { width: 174px; min-height: 48px; }
  .header-label { display: none; }

  .hero {
    margin-top: 16px;
    border-radius: 20px;
    padding: 42px 20px 26px;
  }

  h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .hero-copy { font-size: 1rem; }
  .hero-note { border-radius: 17px; padding: 22px; }

  .method-nav {
    gap: 9px;
    margin: 14px 0 38px;
  }

  .method-nav a { min-height: 92px; padding: 15px; }
  .program-list { gap: 18px; padding-bottom: 54px; }
  .program-card { border-radius: 19px; }
  .program-intro,
  .program-body { padding: 24px 20px; }
  .program-intro h2 { font-size: 1.55rem; }
  th,
  td { padding: 13px 14px; }

  .bonus-simulator { padding: 20px; }
  .simulator-form { grid-template-columns: 1fr; }
  .simulator-button { width: 100%; }
  .simulator-error { grid-column: auto; }
  .simulator-result { grid-template-columns: 1fr; }
  .simulator-result > div { padding: 13px 14px; }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .method-nav a,
  .method-nav a::before { transition: none; }
}
