body {
  padding-top: 70px;
  padding-bottom: 70px;
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1b1f2a, #0b0e14);
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
}

.status-text {
  font-size: 13px;
  margin-top: 6px;
  color: #6bdcff;
}
.google-btn {
  width: 100%;
  padding: 10px;
  background: #fff;
  color: #333;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(180deg, #151922, #0f131b);
  display: flex;
  align-items: center; 
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
  z-index: 1000;
}

.sss-header {
  padding: 10px 32px;
  font-size: 20px;
  color: #00ffcc;
  display: flex;
  align-items: center;
  gap: 12px;   
}

.mode-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.right-group {
  margin-left: auto; 
  display: flex;
  align-items: center;
  gap: 12px;  
}

/* CONNECT WALLET */
#connectBtn {
  padding: 10px 32px;
  border-radius: 14px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  box-shadow: 0 0 14px rgba(255,140,0,.7);
}
#connectBtn.connected {
  background: linear-gradient(90deg, #00e676, #00c853);
  box-shadow: 0 0 14px rgba(0,255,150,.8);
}

/* ===== BALANCE BOX ===== */
.balance-box {
  background: #0d111a;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  text-align: right;
}
.balance {
  color: #00ffcc;
  font-weight: bold;
}

/* ===== WITHDRAW BUTTON ===== */
.withdraw-btn {
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #00e676, #00c853);
  box-shadow: 0 0 14px rgba(0,255,150,.8);
}

.page {
  min-height: calc(100vh - 70px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.faucet {
  width: 100%;
  max-width: 460px; 
  padding: 0 14px; 
}

.claims {
  text-align: left;
  font-size: 14px;
  margin-bottom: 8px;
  opacity: .9;
}

.box {
  background: linear-gradient(180deg, #1d2230, #121622);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 0 20px rgba(0,255,255,.25);
  margin-bottom: 18px;
}

/* ===== TABLE ===== */
.table-header {
  display: flex;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 8px;
  border-radius: 10px;
  padding: 6px 0;
  background: linear-gradient(90deg, #00e676, #00c853);
  box-shadow: 0 0 14px rgba(0,255,150,.8);
}
.table-header div {
  flex: 1;
  padding: 6px;
}
.table-header div:not(:last-child) {
  border-right: 2px solid rgba(0,0,0,.25);
}
.row div:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.15);
}

.row {
  display: flex;
  font-size: 14px;
}

.row div {
  flex: 1;
  padding: 8px 6px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.jackpot {
  background: linear-gradient(90deg, #ffcc00, #ff9900);
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 6px;
}

/* ===== ROLL PANEL ===== */
.roll-box {
  text-align: center;
}

.display {
  background: #000;
  color: #28ff28;
  font-size: 42px;
  letter-spacing: 6px;
  padding: 14px 0;
  border-radius: 10px;
  margin-bottom: 14px;
  font-weight: bold;
  box-shadow: inset 0 0 20px rgba(0,255,0,.6);
}

.roll-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  box-shadow: 0 0 20px rgba(0,153,255,.6);
  transition: transform .1s, box-shadow .1s;
}
.roll-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 30px rgba(0,153,255,.9);
}

/* ===== ROLL ANIMATION ===== */
.display.rolling {
  animation: flicker .1s infinite;
}

@keyframes flicker {
  0%   { color:#00ff00; }
  50%  { color:#55ff55; }
  100% { color:#00ff00; }
}

.captcha-box {
  margin-top: 8px;
  padding: 6px;
  text-align: center;
}
.captcha-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 5px;
  margin-bottom: 10px;
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255,204,0,.6);
}
.captcha-box input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.15);
  background: #0b0f18;
  color: #fff;
  font-size: 16px;
  text-align: center;
  outline: none;
  box-sizing: border-box; 
}
.captcha-box input:focus {
  border-color: #00c6ff;
  box-shadow: 0 0 12px rgba(0,198,255,.6);
}

.cooldown {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  opacity: .85;
}

.result-text {
  margin-top: 10px;
  font-weight: 700;
  text-align: center;
  min-height: 22px;
}

.result-text.win {
  color: #00ff99;
}

.result-text.lose {
  color: #ff5555;
}

.roll-cooldown {
  margin-top: 6px;
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111; 
  color: white;
  text-align: center;
  padding: 10px 0;
  z-index: 99999;
  border-top: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
}
.footer-sss {
  display: flex;
  align-items: center;
  justify-content: center;  
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  color: white;
  font-size: 16px;
}
.sss-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-text {
  margin-left: 4px;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.popup-box {
  background: #111;
  border-radius: 12px;
  padding: 20px;
  width: 460px;
  height: 450px;
  text-align: center;
  border: 1px solid #333;
}
.popup-box h3 {
  margin-bottom: 10px;
}
.popup-box .note {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 10px;
}
.popup-box input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #000;
  color: #fff;
  box-sizing: border-box;
}
.popup-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.popup-actions button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.popup-actions button.cancel {
  background: #333;
  color: #aaa;
}
/* Withdraw captcha input */
#withdrawCaptchaInput {
  width: 100%;
  height: 40px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #000;
  color: #fff;
  font-size: 14px;
  text-align: center;
  outline: none;
  margin-top:6px;
}

/* ===== REFERENCE BOX ===== */
.ref-box {
  background: linear-gradient(180deg, #1d2230, #121622); 
  border-radius: 14px; 
  padding: 14px;      
  box-shadow: 0 0 20px rgba(0,255,255,.25); 
  margin-top: 18px; 
}
.ref-title {
  margin: 0 0 8px;
  font-weight: 600;
  color: #00ffcc; 
}
.ref-desc {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 12px;
  line-height: 1.5;
}
/* Input & Button */
.ref-input {
  display: flex;
  gap: 8px;
}
.ref-input input {
  flex: 1;
  background: #0d111a;
  border: 1px solid #222;
  color: #00ffcc;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
}
#copyRefBtn {
  background: linear-gradient(90deg, #00e676, #00c853);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(0,255,150,.8);
  transition: transform .1s, box-shadow .1s;
}
#copyRefBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,255,150,.9);
}
.ref-box {
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .ref-box {
    max-width: 620px;
  }
}
@media (min-width: 1024px) {
  .faucet {
    max-width: 620px;
  }
}

.win-bar {
  position: fixed; 
  top: 70px;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(90deg, #6a00ff, #a57bff);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-weight: bold;
}
.win-track {
  display: inline-block;
  padding-left: 100%;
  animation: scrollWin 35s linear infinite;
}
@keyframes scrollWin {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* === FRAME (SAMA SEPERTI IKLAN) === */
.frame-vertical {
  width: 100%;
  margin: auto;
  position: sticky;
  top: 90px; 
  z-index: 99998;
}
.somi-banner-vertical {
  width: 100%;
  max-width: 600px;
  height: 320px;
  margin: 20px auto;
  background: linear-gradient(180deg, #020617, #0f172a);
  border-radius: 14px;
  padding: 24px 18px;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
}
/* CONTENT */
.badge {
  display: inline-block;
  background: #22c55e;
  color: #022c22;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: bold;
}
.icon {
  font-size: 64px;
  margin: 16px 0 6px;
  animation: pulse 1.5s infinite;
  text-align: center;
}
h3 {
  margin: 6px 0;
  font-size: 24px;
  color: #22c55e;
}
.token {
  font-size: 13px;
  opacity: .8;
}
.desc {
  font-size: 14px;
  margin: 12px 0;
  opacity: .95;
}
ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
ul li {
  font-size: 14px;
  margin-bottom: 8px;
}
.cta-btn {
  position: relative;
  overflow: hidden;
}
.cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.6),
    transparent
  );
  animation: shine 3s infinite;
}
@keyframes shine {
  0% { left: -120%; }
  40% { left: 120%; }
  100% { left: 120%; }
}
.cta-btn {
  display: block;
  margin-top: 14px;
  padding: 14px;
  background: #facc15;
  color: #000;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
}
.cta-btn:hover {
  background: #fde047;
}
/* ANIMASI */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
/* MOBILE */
@media (max-width: 460px) {
  .somi-banner-vertical {
    width: 95%;
  }
}
