/* ==========================================================================
   GASTERUS v3 — PREMIUM MOBILE INTERFACE (Blue/Grey Edition)
   Replika Presisi Layout Mobile Cindototo/Sbototo dengan Skema Biru Abu-abu
   ========================================================================== */

/* --- 1. Global Reset & Box Sizing (Fix Container Overflow) --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #0b132b;
  color: #f8fafc;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.site {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: #0d1b2a;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0b132b 0%, #1c2541 40%, #0b132b 100%);
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.85);
  border-left: 1px solid #1e293b;
  border-right: 1px solid #1e293b;
  padding-bottom: 25px;
}

/* --- 2. Top Android App Download Banner --- */
.app-banner {
  background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
  border-bottom: 2px solid #3b82f6;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
}

.app-close {
  background: none;
  border: none;
  color: #f87171;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  padding: 2px 4px;
}

.app-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-title {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.app-sub {
  color: #e2e8f0;
  font-size: 9.5px;
  line-height: 1.2;
}

.app-btn-dl {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #f87171;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* --- 3. Brand Bar --- */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, #111827 0%, #0b132b 100%);
  border-bottom: 1px solid #1e293b;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 0%, #93c5fd 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.btn-livechat {
  background: linear-gradient(180deg, #ffe066 0%, #f59e0b 60%, #d97706 100%);
  color: #1a1000;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid #fde047;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 6px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: transform 0.12s ease;
}

.btn-livechat:active {
  transform: translateY(1px);
}

/* --- 4. Marquee Bar --- */
.marquee-bar {
  background: #090e1a;
  border-top: 1px solid #1e3a8a;
  border-bottom: 1px solid #1e3a8a;
  height: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: mqScroll 28s linear infinite;
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.5px;
}

@keyframes mqScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- 5. Hero Banner --- */
.hero-banner-3d {
  padding: 8px 10px;
}

.banner-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #3b82f6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 15px rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0369a1 100%);
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  text-align: center;
  padding: 18px 12px;
}

.banner-badge {
  display: inline-block;
  background: linear-gradient(180deg, #f59e0b, #b45309);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.banner-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 12px rgba(56, 189, 248, 0.5);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.banner-sub {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

/* --- 6. Quick Menu (5 Tiles) --- */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 8px 10px 12px;
}

.qm-item {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  padding: 8px 2px 6px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.5);
  min-height: 72px;
  transition: transform 0.12s ease, filter 0.12s ease;
  text-decoration: none;
}

.qm-item:active {
  transform: scale(0.96);
  filter: brightness(1.2);
}

.qm-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.qm-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #e2e8f0;
  text-shadow: 0 1px 2px #000;
  white-space: nowrap;
}

/* --- 7. Login Section (PERBAIKAN TOTAL: RAPI, PRESISI, TIDAK OVERFLOW, TEXT CENTER) --- */
.login-section {
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid #1e3a8a;
  border-bottom: 1px solid #1e3a8a;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.login-title {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Input Wrapper: Rounded Pill Container */
.inp-wrap {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
  height: 44px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  border: 1.5px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inp-wrap:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

/* Kotak Badge Icon di Kiri */
.inp-icon {
  width: 46px;
  height: 100%;
  background: #0f172a;
  color: #fbbf24;
  border-right: 2px solid #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Input Box: Text Wajib di Tengah (text-align: center) */
.inp-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-align: center !important;
  background: #ffffff;
  box-sizing: border-box;
  font-family: inherit;
}

.inp-wrap input::placeholder {
  color: #888888;
  font-weight: 500;
  text-align: center !important;
}

/* Tombol Mata Toggle Password di Kanan */
.inp-eye {
  width: 42px;
  height: 100%;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: color 0.15s ease;
}

.inp-eye:hover {
  color: #0f172a;
}

/* Opsi Lite Mode */
.lite-mode {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 2px 0 10px 8px;
  text-shadow: 1px 1px 2px #000;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.lite-mode input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* 3D Gold Pill Button: Log in */
.btn-login {
  width: 100%;
  height: 44px;
  background: linear-gradient(180deg, #ffe74c 0%, #ffb703 55%, #e09f00 100%);
  border: none;
  border-radius: 999px;
  color: #181000;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 3px 0 #a47600, 0 6px 14px rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, filter 0.12s ease;
  box-sizing: border-box;
}

.btn-login:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #a47600, 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* 3D Blue/Slate Pill Button: Daftar */
.btn-daftar {
  width: 100%;
  height: 44px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 3px 0 #1e40af, 0 6px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-daftar:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1e40af, 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* --- 8. Search Area & Domain Box --- */
.search-section {
  padding: 14px 16px 8px;
  text-align: center;
}

.sec-label {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px #000;
  margin-bottom: 8px;
}

.search-domain-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-burger-square {
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 100%);
  border: 1.5px solid #60a5fa;
  border-radius: 6px;
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.domain-pill {
  flex: 1;
  background: #000000;
  border: 2px solid #fbbf24;
  border-radius: 999px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.domain-pill-icon {
  font-size: 16px;
  color: #fbbf24;
}

.domain-pill-text {
  flex: 1;
  text-align: center;
  color: #fbbf24;
  font-weight: 900;
  font-size: 13.5px;
  letter-spacing: 1px;
}

.btn-wide-gold {
  width: 100%;
  height: 42px;
  background: linear-gradient(180deg, #ffe066 0%, #f59e0b 60%, #d97706 100%);
  border: none;
  border-radius: 999px;
  color: #1a1000;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  cursor: pointer;
  box-shadow: 0 3px 0 #b45309, 0 4px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.btn-wide-gold:active {
  transform: translateY(1px);
}

/* --- 9. Contact CS Grid (2x2 Metallic Cards) --- */
.contact-section {
  padding: 10px 14px 14px;
}

.contact-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px #000;
  margin-bottom: 8px;
}

.cs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cs-card {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #475569;
  border-radius: 8px;
  height: 52px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.5);
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease;
}

.cs-card:active {
  transform: scale(0.97);
}

.cs-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 4px #ef4444;
}

.cs-icon-wrap {
  width: 44px;
  height: 100%;
  flex-shrink: 0;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-right: 1px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.cs-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cs-info {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}

.cs-info b {
  font-size: 8.5px;
  color: #ffffff;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.cs-info small {
  font-size: 9.5px;
  color: #38bdf8;
  font-weight: 900;
  letter-spacing: 0.3px;
}

/* --- 10. Hasil Terakhir (Live Draw - 4 Kolom) --- */
.results-box {
  margin: 10px 10px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid #3b82f6;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.res-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid #1e3a8a;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.live-tag {
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

.live-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  animation: liveBlink 1s infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

#resDate {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
}

.res-search {
  display: flex;
  align-items: center;
  background: #000000;
  border: 1.5px solid #fbbf24;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 10px;
  height: 36px;
}

.res-search span {
  color: #fbbf24;
  font-size: 14px;
  margin-right: 6px;
}

.res-search input {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 100%;
  outline: none;
  font-size: 12px;
  font-weight: 600;
}

.res-search input::placeholder {
  color: #94a3b8;
}

/* Grid 4 Kolom Sesuai Screenshot */
.res-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.res-card {
  background: #0f172a;
  border: 1px solid #eab308;
  border-radius: 6px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.res-name {
  background: #fbbf24;
  color: #1a1000;
  font-size: 8px;
  font-weight: 900;
  padding: 3px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.res-card-body {
  padding: 4px 2px 5px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.res-date {
  font-size: 7.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.res-number {
  font-size: 14px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px #000;
}

.btn-more {
  width: 100%;
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
  border: 1px solid #ef4444;
  color: #ffffff;
  padding: 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
  transition: filter 0.15s ease;
}

.btn-more:hover {
  filter: brightness(1.1);
}

/* --- 11. Bank Status (3 Kolom) --- */
.banks-section {
  padding: 14px 10px;
}

.banks-title {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px #000;
}

.banks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.bank-card {
  background: #ffffff;
  border-radius: 6px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  border: 1px solid #cbd5e1;
}

.bank-badge-online {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 7.5px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.bank-logo-img {
  height: 20px;
  max-width: 62px;
  object-fit: contain;
}

.bank-legend {
  margin-top: 12px;
  background: #000000;
  border: 1.5px solid #1e3a8a;
  border-radius: 999px;
  display: flex;
  justify-content: space-around;
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 800;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.leg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-on {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dot-warn {
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}

.dot-off {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* --- 12. Floating Action Button (Bottom Left) --- */
.float-menu-btn {
  position: fixed;
  bottom: 85px;
  left: 0;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
  border: 2px solid #ef4444;
  border-left: none;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
}

/* --- 13. Running Withdrawal Ticker & Footer --- */
.withdraw-ticker {
  background: rgba(185, 28, 28, 0.9);
  border-top: 1px solid #ef4444;
  height: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 14px;
}

.withdraw-ticker-inner {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: mqScroll 24s linear infinite;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
}

footer {
  padding: 14px 10px 8px;
  text-align: center;
  font-size: 10px;
  color: #94a3b8;
  background: #090e1a;
  border-top: 1px solid #1e293b;
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.footer-links a {
  color: #60a5fa;
  font-weight: 700;
  text-decoration: none;
}
