* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #000;
  color: #fff;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 80px auto 0;
  background: linear-gradient(180deg, #140000 0%, #0a0000 50%, #140000 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 60, 60, 0.25);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.18);
  overflow: hidden;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 12px rgba(255, 0, 0, 0.08);
}

.header {
  text-align: center;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 0, 0, 0.35);
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 180px;
  height: auto;
  display: block;
}

.subtitle {
  color: #ff4d4d;
  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(10, 0, 0, 0.98);
  border-bottom: 1px solid rgba(255, 0, 0, 0.2);
  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: #ff0000;
}

#searchInput {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 0, 0, 0.25);
  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: #ff0000;
  box-shadow:
    0 0 0 2px rgba(255, 0, 0, 0.25),
    0 0 10px rgba(255, 0, 0, 0.18);
}

#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, 0, 0, 0.22);
  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: #0d0000;
  text-align: center;
  border: 1px solid rgba(255, 0, 0, 0.35);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.18);
  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: #fff;
  font-size: 14px;
}

.label {
  font-size: 10px;
  text-transform: uppercase;
  color: #ff4d4d;
  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: #ff5a5a;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.35);
}

.btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  background: #ff0000;
  color: #fff;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
  position: relative;
  z-index: 5;
}

.prediction {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #050000;
  border: 1px solid rgba(255, 0, 0, 0.35);
  display: none;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
}

.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 #ff0000;
  background: #1a0000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4d4d;
  font-weight: bold;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.35);
}

.section-result {
  margin-top: 10px;
  text-align: center;
}

.section-result h4 {
  font-size: 10px;
  color: #ff4d4d;
  text-transform: uppercase;
}

.section-result p {
  font-size: 11px;
  color: #fff;
}

/* MINI COMBO */
.mini-combo {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 0, 0, 0.25);
  background: #120000;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.15);
}

.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, 0, 0, 0.22);
}

.mini-title {
  font-size: 10px;
  color: #ccc;
  margin-bottom: 2px;
}

.mini-value-red {
  color: #ff4d4d;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.45);
}

.mini-value-white {
  color: #fff;
  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: #0d0000;
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.12);
}

.footer-box h3 {
  color: #ff4d4d;
  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: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #2a0000, #5a0000, #8a0000, #ff0000);
  border: 1px solid rgba(255, 0, 0, 0.5);
  box-shadow:
    0 0 8px rgba(255, 0, 0, 0.25),
    inset 0 0 8px rgba(255, 80, 80, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.4),
    0 0 18px rgba(255, 0, 0, 0.18);
}

.toggle-btn.active {
  background: linear-gradient(135deg, #ff1a1a, #ff0000, #b30000);
  box-shadow:
    0 0 12px rgba(255, 0, 0, 0.45),
    0 0 18px rgba(255, 0, 0, 0.2);
}

.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, 0, 0, 0.35));
}

.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: #ffe0e0;
  background: linear-gradient(135deg, #0a0000, #1a0000, #2a0000);
  border: 1px solid rgba(255, 80, 80, 0.35);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 8px rgba(255, 0, 0, 0.12);
}

.btn-login:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.25),
    0 0 14px rgba(255, 0, 0, 0.12);
}

.btn-register {
  color: #fff;
  background: linear-gradient(135deg, #ff1f1f 0%, #ff3a3a 30%, #ff0000 60%, #b30000 100%);
  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, 0, 0, 0.22);
}

.btn-register:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 12px rgba(255, 0, 0, 0.35),
    0 0 18px rgba(255, 0, 0, 0.16);
}

.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, #120000 0%, #050000 50%, #120000 100%);
  border-top: 1px solid rgba(255, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: inset 0 0 8px rgba(255, 0, 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, #4a0000, #7a1a1a);
  color: #ffd6d6;
  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: #000;
  }

  .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: red;
    box-shadow: 0 0 6px red;
  }

  .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, 0, 0, 0.12),
      inset 0 0 6px rgba(255, 0, 0, 0.03);
  }

  .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;
  }
}