* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #0b0b0b 0%, #151515 50%, #0b0b0b 100%);
  color: #f2f2f2;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 80px auto 0;
  background: linear-gradient(180deg, #1e1e1e 0%, #101010 50%, #1a1a1a 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.16);
  overflow: hidden;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.06), inset 0 0 20px rgba(255, 215, 0, 0.05);
}

.header {
  text-align: center;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.28);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 180px;
  height: auto;
  display: block;
}

.subtitle {
  color: #ffd700;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.title {
  font-size: 28px;
  font-weight: bold;
  margin-top: 10px;
}

.desc {
  margin-top: 12px;
  color: #ccc;
}

/* SEARCH FIXED GLOBAL */
.search-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 12px 20px 10px;
  background: rgba(15, 15, 15, 0.98);
  border-bottom: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.search-box {
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon svg {
  stroke: #ffd700;
}

#searchInput {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.22);
  color: #000;
  font-size: 14px;
  outline: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

#searchInput:focus {
  background: #fff;
  border-color: #ffd700;
  box-shadow:
    0 0 0 2px rgba(255, 215, 0, 0.22),
    0 0 10px rgba(255, 215, 0, 0.14);
}

#searchInput::placeholder {
  color: #777;
}

.banner {
  margin: 18px auto 10px;
  padding: 0 20px;
}

.banner img {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.18);
  transition: 0.25s;
}

.banner img:hover {
  transform: scale(1.01);
}

/* GRID DESKTOP 4 CARD */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
}

.card {
  background: linear-gradient(180deg, #1b1b1b 0%, #121212 100%);
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.14);
  position: relative;
}

.card.hidden {
  display: none;
}

.card img {
  width: 90px;
  height: 60px;
  object-fit: contain;
}

.resto-name {
  margin-top: 10px;
  text-align: center;
  font-weight: bold;
  color: #f2f2f2;
  font-size: 14px;
}

.label {
  font-size: 10px;
  text-transform: uppercase;
  color: #ffd700;
  margin-top: 10px;
  text-align: center;
}

.date-text {
  font-size: 11px;
  color: #ccc;
  margin-top: 4px;
  text-align: center;
}

.time-text {
  margin-top: 4px;
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
  user-select: none;
}

.result-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.countdown-clock {
  display: block;
  font-size: 20px;
  color: #ffd700;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.28);
}

.btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #fff4b8 0%, #ffd700 45%, #c9c9c9 100%);
  color: #2b2300;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.30);
  position: relative;
  z-index: 5;
}

.prediction {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #111;
  border: 1px solid rgba(255, 215, 0, 0.28);
  display: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.12);
}

.prediction.show {
  display: block;
}

.numbers {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.number-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #ffd700;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.28);
}

.section-result {
  margin-top: 10px;
  text-align: center;
}

.section-result h4 {
  font-size: 10px;
  color: #ffd700;
  text-transform: uppercase;
}

.section-result p {
  font-size: 11px;
  color: #f2f2f2;
}

/* MINI COMBO */
.mini-combo {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  background: #151515;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.12);
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-col {
  flex: 1;
  text-align: center;
}

.mini-separator {
  width: 1px;
  height: 36px;
  background: rgba(255, 215, 0, 0.18);
}

.mini-title {
  font-size: 10px;
  color: #ccc;
  margin-bottom: 2px;
}

.mini-value-red {
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.35);
}

.mini-value-white {
  color: #f2f2f2;
  font-size: 16px;
  font-weight: bold;
}

/* BUTTON PASANG - RINGAN */
.btn-pasang {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #2b1a00;
  background: linear-gradient(
    135deg,
    #fff2a6 0%,
    #ffd84d 30%,
    #ffcc00 55%,
    #f5b800 80%,
    #ffd84d 100%
  );
  border: 1px solid rgba(255, 215, 0, 0.6);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 0 8px rgba(255, 215, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-pasang:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(255, 215, 0, 0.28);
}

.btn-pasang:active {
  transform: scale(0.98);
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
}

.footer-box {
  background: linear-gradient(180deg, #1b1b1b 0%, #121212 100%);
  border: 1px solid rgba(255, 215, 0, 0.24);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.10);
}

.footer-box h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.footer-box ul {
  padding-left: 18px;
}

.footer-box li {
  margin-bottom: 6px;
  color: #ddd;
}

/* TOGGLE BUTTON */
.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f2f2f2;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #2a2a2a, #4a4a4a, #ffd700);
  border: 1px solid rgba(255, 215, 0, 0.45);
  box-shadow:
    0 0 8px rgba(255, 215, 0, 0.22),
    inset 0 0 8px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.30),
    0 0 18px rgba(255, 215, 0, 0.14);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #fff4b8, #ffd700, #b7b7b7);
  color: #2b2300;
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.35),
    0 0 18px rgba(255, 215, 0, 0.18);
}

.icon-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.icon-eye svg {
  width: 20px;
  height: 20px;
  display: none;
  stroke: #fff;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.28));
}

.icon-eye .eye-open {
  display: block;
}

.toggle-btn.active .icon-eye .eye-open {
  display: none;
}

.toggle-btn.active .icon-eye .eye-close {
  display: block;
}

/* AUTH BUTTONS */
.auth-buttons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-login,
.btn-register {
  min-width: 120px;
  padding: 11px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.4px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.btn-login {
  color: #f5f5f5;
  background: linear-gradient(135deg, #111, #1d1d1d, #2b2b2b);
  border: 1px solid rgba(192, 192, 192, 0.35);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(255, 215, 0, 0.10);
}

.btn-login:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.22),
    0 0 14px rgba(255, 215, 0, 0.10);
}

.btn-register {
  color: #f2f2f2;
  background: linear-gradient(135deg, #fff4b8 0%, #ffd700 35%, #d6d6d6 70%, #a8a8a8 100%);
  color: #2b2300;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 0 10px rgba(255, 215, 0, 0.18);
}

.btn-register:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.28),
    0 0 18px rgba(255, 215, 0, 0.12);
}

.btn-register:active,
.btn-login:active {
  transform: scale(0.98);
}

/* RUNNING TEXT - RINGAN */
.running-text {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 15px;
  padding: 10px 0;
  background: linear-gradient(180deg, #1d1d1d 0%, #101010 50%, #1d1d1d 100%);
  border-top: 1px solid rgba(255, 215, 0, 0.28);
  border-bottom: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.08);
}

.running-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  opacity: 0.2;
}

.running-track {
  display: inline-block;
  padding-left: 100%;
  animation: jalan 15s linear infinite;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.disabled-btn {
  background: linear-gradient(135deg, #3a3a3a, #777);
  color: #f0f0f0;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.85;
}

@keyframes jalan {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (hover: hover) {
  .card:hover img {
    transform: scale(1.03);
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  body {
    padding: 0;
    background: linear-gradient(180deg, #0b0b0b 0%, #151515 50%, #0b0b0b 100%);
  }

  .container {
    max-width: 100%;
    margin: 70px 0 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .header {
    padding: 10px 20px 10px;
  }

  .logo {
    margin-bottom: 6px;
  }

  .header::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin: 8px auto;
    background: #ffd700;
    box-shadow: 0 0 6px #ffd700;
  }

  .title {
    font-size: 22px;
    line-height: 1.35;
    margin-top: 8px;
  }

  .desc {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
  }

  .running-text {
    margin-top: 12px;
    padding: 8px 0;
  }

  .running-track {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .search-wrapper {
    padding: 10px;
  }

  .search-box {
    max-width: 100%;
  }

  #searchInput {
    height: 46px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 10px 16px;
  }

  .card {
    padding: 12px;
    border-radius: 18px;
    box-shadow:
      0 0 8px rgba(255, 215, 0, 0.10),
      inset 0 0 6px rgba(255, 255, 255, 0.04);
  }

  .resto-name {
    font-size: 18px;
    margin-top: 12px;
    line-height: 1.3;
  }

  .label {
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .date-text {
    font-size: 12px;
    margin-top: 6px;
  }

  .result-label {
    font-size: 11px;
  }

  .countdown-clock {
    font-size: 28px;
  }

  .btn {
    margin-top: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 15px;
  }

  .prediction {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .numbers {
    gap: 8px;
    flex-wrap: wrap;
  }

  .number-box {
    width: 42px;
    height: 42px;
    font-size: 18px;
    border-radius: 12px;
  }

  .section-result h4 {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .section-result p {
    font-size: 12px;
    line-height: 1.7;
  }

  .mini-title {
    font-size: 11px;
  }

  .mini-value-red,
  .mini-value-white {
    font-size: 20px;
    margin-top: 4px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px 10px 18px;
  }

  .footer-box {
    border-radius: 16px;
    padding: 14px;
  }

  .footer-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .footer-box li {
    font-size: 14px;
    line-height: 1.6;
  }

  .banner img {
    border-radius: 10px;
  }
}

.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #2b1a00;
  background: radial-gradient(circle at 30% 30%, #fff7c2, #ffd84d 40%, #ffcc00 70%, #d89a00);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(255, 215, 0, 0.35),
    0 0 20px rgba(255, 215, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.25s ease;

  overflow: hidden;
}

.scroll-top-btn::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -65%;
  width: 220%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.75) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  opacity: 0;
}

.scroll-top-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.24), transparent 70%);
  z-index: -1;
  filter: blur(6px);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(255, 215, 0, 0.5),
    0 0 24px rgba(255, 215, 0, 0.18);
}

.scroll-top-btn:hover::before {
  animation: scrollTopShine 1s ease;
  opacity: 1;
}

.scroll-top-btn:active {
  transform: scale(0.94);
}

.scroll-top-icon {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  position: relative;
  z-index: 2;
}

@keyframes scrollTopShine {
  0% {
    left: -65%;
  }
  100% {
    left: 120%;
  }
}

@media (max-width: 500px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }

  .scroll-top-icon {
    font-size: 20px;
  }
}