:root {
  --bg: #060606;
  --surface: #101010;
  --surface-2: #171717;
  --surface-3: #202020;
  --gold: #f1cf3d;
  --gold-deep: #ad7810;
  --gold-soft: #ffe87d;
  --line: rgba(241, 207, 61, 0.34);
  --text: #f7f4e8;
  --muted: #aaa793;
  --safe: #77e7b0;
  --container: 1170px;
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

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

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--gold);
  color: #111;
}

.archive-notice {
  position: relative;
  z-index: 80;
  padding: 7px 16px;
  background: #104b38;
  color: #d8ffeb;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.site-header {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 3, 3, 0.96);
}

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

.brand img {
  width: 190px;
  height: 64px;
  object-fit: contain;
}

.login-demo {
  display: grid;
  grid-template-columns: 166px 166px auto;
  align-items: center;
  gap: 14px;
}

.login-demo input,
.stacked-form input,
.toolbar input,
.toolbar select {
  width: 100%;
  height: 40px;
  border: 1px solid #343434;
  border-radius: 4px;
  outline: 0;
  background: #f7f7f7;
  color: #161616;
  padding: 0 12px;
}

.login-demo input:focus,
.stacked-form input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(241, 207, 61, 0.14);
}

.login-demo button,
.gold-button {
  min-height: 40px;
  border: 1px solid #ffec7c;
  border-radius: 4px;
  background: linear-gradient(#ffe96e, #b57b09);
  color: #171000;
  cursor: pointer;
  padding: 0 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  padding: 9px;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
}

.ticker {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid #d7b51a;
  background: #f1cf3d;
  color: #0d0d0d;
}

.ticker-inner {
  min-height: 35px;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  font-size: 13px;
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track span {
  display: inline-block;
  min-width: 100%;
  animation: ticker 18s linear infinite;
}

@keyframes ticker {
  from { transform: translateX(65%); }
  to { transform: translateX(-100%); }
}

.page-bg {
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(3, 3, 3, 0.64), rgba(3, 3, 3, 0.92)),
    url("https://terusmajuimage.xyz/brand/TOGEL279/Banner/temui-togel279.png") center top / cover no-repeat;
}

.page-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  padding-block: 0 48px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
  margin-top: 0;
}

.side-menu,
.side-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(9, 9, 9, 0.96);
}

.side-menu {
  padding: 12px 18px 18px;
}

.side-menu ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.menu-link {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: #e5e5e5;
  text-decoration: none;
  font-size: 14px;
}

.menu-link:hover,
.menu-link.is-active {
  color: var(--gold-soft);
}

.side-menu .gold-button {
  display: grid;
  place-items: center;
  width: 100%;
}

.side-card {
  padding: 16px;
}

.side-card h2 {
  margin: 0 0 6px;
  color: var(--gold-soft);
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.side-card .muted {
  margin: 0 0 12px;
  font-size: 11px;
}

.result-list,
.news-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 4px;
  background: #020202;
  font-size: 12px;
}

.result-list strong {
  letter-spacing: 0.25em;
}

.news-list li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-list a {
  display: block;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.news-list time {
  color: var(--muted);
  font-size: 10px;
}

.main-content {
  min-width: 0;
  padding-top: 0;
}

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 72%), linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: 38px;
  bottom: 58px;
  width: min(540px, calc(100% - 76px));
}

.hero-copy h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 510px;
  margin: 0;
  color: #ddd9c8;
  line-height: 1.55;
}

.badge,
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 7px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  padding: 0;
}

.carousel-dots button.is-active {
  background: var(--gold);
}

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

.game-tile {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #080808;
}

.game-tile img {
  width: 100%;
  aspect-ratio: 1.52;
  object-fit: cover;
}

.game-tile strong,
.game-tile span {
  display: block;
  padding-inline: 12px;
}

.game-tile strong {
  margin-top: 10px;
  color: var(--gold);
}

.game-tile span {
  padding-block: 4px 12px;
  color: var(--muted);
  font-size: 11px;
}

.content-panel {
  min-height: 510px;
  margin: 20px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 9, 0.96);
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.content-panel h1 {
  margin: 8px 0 12px;
  color: var(--gold-soft);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.content-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.content-panel p {
  color: #c8c5b5;
  line-height: 1.7;
}

.gold-rule {
  width: 64px;
  height: 3px;
  margin: 0 0 26px;
  background: var(--gold);
}

.safe-note {
  margin-bottom: 24px;
  border: 1px solid rgba(119, 231, 176, 0.42);
  border-radius: 6px;
  background: rgba(29, 112, 77, 0.18);
  color: #d7ffea;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.55;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-list section {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  padding: 18px;
}

.step-list section > span {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
}

.step-list p {
  margin: 0;
}

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.feature-grid > div,
.contact-grid a {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 18px;
  text-decoration: none;
}

.feature-grid strong,
.contact-grid strong {
  color: var(--gold-soft);
}

.feature-grid span,
.contact-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.contact-grid a > span {
  color: var(--gold);
  font-size: 28px;
}

.toolbar {
  display: grid;
  grid-template-columns: 120px minmax(0, 320px);
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.toolbar label,
.stacked-form label {
  color: #dedac9;
  font-size: 13px;
  font-weight: 700;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #0c0c0c;
  font-size: 13px;
}

th,
td {
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px;
  text-align: left;
}

th {
  background: #191919;
  color: var(--gold-soft);
}

.status-pill {
  display: inline-flex;
  border: 1px solid rgba(119, 231, 176, 0.35);
  border-radius: 999px;
  background: rgba(119, 231, 176, 0.12);
  color: var(--safe);
  padding: 4px 8px;
  font-size: 10px;
}

.stacked-form {
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
}

.stacked-form label {
  display: grid;
  gap: 7px;
}

.stacked-form.two-column {
  grid-template-columns: 1fr 1fr;
}

.stacked-form .wide {
  grid-column: 1 / -1;
}

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

.promo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.promo-card img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
}

.promo-card div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.promo-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-2);
  padding: 14px 16px;
}

.accordion summary {
  cursor: pointer;
  color: var(--gold-soft);
  font-weight: 700;
}

.inline-button {
  display: inline-grid;
  place-items: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050505;
}

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

.footer-inner a {
  color: var(--gold);
}

.floating-menu {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.floating-menu a,
.floating-menu button {
  width: 58px;
  min-height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 9, 9, 0.94);
  color: var(--gold-soft);
  text-decoration: none;
}

.floating-menu button {
  display: none;
}

.floating-menu span {
  font-size: 17px;
}

.floating-menu small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 150;
  left: 50%;
  bottom: 22px;
  width: min(calc(100% - 32px), 430px);
  transform: translateX(-50%);
  border: 1px solid rgba(119, 231, 176, 0.48);
  border-radius: 8px;
  background: #103d2d;
  color: #e1fff0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
  padding: 14px 18px;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 960px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .login-demo {
    grid-template-columns: 125px 125px auto;
    gap: 8px;
  }

  .page-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 16px;
  }

  .hero {
    min-height: 410px;
  }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 74px;
  }

  .archive-notice {
    font-size: 9px;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand img {
    width: 145px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .login-demo {
    display: none;
  }

  .ticker-inner {
    min-height: 32px;
    grid-template-columns: 52px 1fr;
    gap: 6px;
    font-size: 11px;
  }

  .page-grid {
    display: block;
    padding-bottom: 24px;
  }

  .sidebar {
    display: contents;
  }

  .side-menu {
    position: fixed;
    z-index: 100;
    top: 98px;
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 122px);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  }

  .menu-open .side-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .side-card {
    display: none;
  }

  .main-content {
    padding-top: 0;
  }

  .hero {
    min-height: 400px;
    margin-inline: -12px;
  }

  .hero-copy {
    left: 24px;
    bottom: 48px;
    width: calc(100% - 48px);
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-panel {
    min-height: 0;
    margin-top: 12px;
    padding: 24px 18px;
  }

  .content-panel h1 {
    font-size: 30px;
  }

  .feature-grid,
  .contact-grid,
  .promo-grid,
  .stacked-form.two-column {
    grid-template-columns: 1fr;
  }

  .stacked-form .wide {
    grid-column: auto;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    min-height: 90px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding-block: 20px;
    text-align: center;
  }

  .floating-menu {
    right: 0;
    bottom: 0;
    left: 0;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    background: #080808;
  }

  .floating-menu a,
  .floating-menu button {
    width: 100%;
    min-height: 64px;
    display: grid;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: transparent;
    padding: 7px;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 420px) {
  .tile-grid {
    gap: 7px;
  }

  .hero {
    min-height: 360px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .step-list section {
    grid-template-columns: 46px 1fr;
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
