:root {
  --bg: #020402;
  --panel: rgba(4, 20, 10, 0.92);
  --panel-soft: rgba(11, 41, 20, 0.78);
  --green: #29ff72;
  --green-soft: #7dffa8;
  --red: #ff315d;
  --violet: #bc63ff;
  --amber: #ffd166;
  --muted: #7ca68a;
  --line: rgba(41, 255, 114, 0.22);
  --shadow: 0 0 34px rgba(41, 255, 114, 0.18);
}

* {
  box-sizing: border-box;
}

/* Custom Scrollbar for modern feel */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 4px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #d8ffe2;
  background:
    radial-gradient(circle at 20% 0%, rgba(41, 255, 114, 0.12), transparent 28rem),
    linear-gradient(135deg, #010201 0%, #051409 48%, #020402 100%);
  font-family: Rajdhani, Arial, sans-serif;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(41, 255, 114, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 255, 114, 0.16) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 4px);
}

/* --- MOBILE PLATFORM WRAPPER --- */
.shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 14px 34px;
  min-height: 100vh;
  position: relative;
  background: rgba(2, 6, 3, 0.95);
  box-shadow: inset 0 0 30px rgba(41, 255, 114, 0.04);
}

/* --- TOP BAR (MOBILE STRUCTURE) --- */
.topbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.panel-head,
.terminal,
.status-pill,
.clock-box,
.note {
  font-family: "Share Tech Mono", monospace;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  letter-spacing: 1px;
  font-size: 0.8rem;
}

h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(41, 255, 114, 0.44);
}

.status-wrap {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill,
.clock-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  color: var(--green);
  border: 1px solid var(--line);
  background: rgba(4, 20, 10, 0.68);
  box-shadow: var(--shadow);
}

.clock-box {
  display: flex;
  justify-content: space-between;
  min-width: 140px;
}

.clock-box span {
  color: var(--muted);
  font-size: 0.72rem;
}

.clock-box strong {
  color: white;
  font-size: 0.92rem;
  font-weight: 400;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px var(--green);
}

/* --- MOBILE ONLY SINGLE COLUMN LAYOUT --- */
.hero-grid,
.workspace {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  /* Force single column */
}

.workspace {
  margin-top: 14px;
}

/* --- PANELS --- */
.panel {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(2, 8, 4, 0.96));
  box-shadow: var(--shadow);
}

.panel::before {
  position: absolute;
  inset: 8px;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(41, 255, 114, 0.08);
}

.panel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-head strong {
  color: var(--green);
  font-weight: 400;
}

/* --- ROUND ENGINE PANEL --- */
.timer-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  margin: 0 auto 16px;
}

.timer-ring svg {
  width: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(41, 255, 114, 0.32));
}

.timer-ring circle {
  fill: none;
  stroke-width: 8;
}

.timer-ring .track {
  stroke: rgba(41, 255, 114, 0.12);
}

.timer-ring .progress {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 0;
}

.timer-ring div {
  position: absolute;
  display: grid;
  place-items: center;
}

#timer {
  font-family: "Share Tech Mono", monospace;
  font-size: 3.5rem;
  color: white;
  line-height: 1;
}

.timer-ring small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-top: 2px;
}

.prediction-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(41, 255, 114, 0.24);
  background: rgba(41, 255, 114, 0.06);
  text-align: center;
}

.prediction-card span,
.prediction-card small,
.result-meta span,
.stats-grid span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.prediction-card strong {
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(41, 255, 114, 0.3);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

button {
  min-height: 42px;
  color: #d8ffe2;
  border: 1px solid rgba(41, 255, 114, 0.3);
  background: rgba(5, 28, 12, 0.82);
  font: 700 0.95rem Rajdhani, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

button:hover {
  color: #021005;
  background: var(--green);
  box-shadow: 0 0 20px rgba(41, 255, 114, 0.38);
}

button.primary {
  color: #021005;
  background: var(--green);
}

/* --- TERMINAL STREAM --- */
.terminal {
  height: 220px;
  overflow-y: auto;
  padding: 12px;
  color: var(--green-soft);
  border: 1px solid rgba(41, 255, 114, 0.16);
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  scrollbar-width: none;
  /* Hide standard scrollbar in tech view */
}

.terminal::-webkit-scrollbar {
  display: none;
}

.terminal p {
  margin: 0 0 4px;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal p::before {
  content: "> ";
  color: var(--green);
}

/* --- CURRENT RESULT PANEL --- */
.result-panel {
  display: flex;
  flex-direction: column;
}

.result-orb {
  display: grid;
  place-items: center;
  height: 160px;
  margin: 12px 0;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle, rgba(41, 255, 114, 0.3), rgba(0, 0, 0, 0.34) 58%);
  font: 700 4.5rem "Share Tech Mono", monospace;
  text-shadow: 0 0 18px currentColor;
  border-radius: 8px;
}

.result-orb.red {
  color: var(--red);
  background: radial-gradient(circle, rgba(255, 49, 93, 0.28), rgba(0, 0, 0, 0.34) 58%);
}

.result-orb.green {
  color: var(--green);
}

.result-orb.violet {
  color: var(--violet);
  background: radial-gradient(circle, rgba(188, 99, 255, 0.28), rgba(0, 0, 0, 0.34) 58%);
}

.result-meta,
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.result-meta div,
.stats-grid div {
  padding: 10px;
  border: 1px solid rgba(41, 255, 114, 0.16);
  background: rgba(41, 255, 114, 0.05);
}

.result-meta strong,
.stats-grid strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 1.35rem;
}

/* --- ANALYTICS --- */
.bars {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  font-family: "Share Tech Mono", monospace;
  color: var(--muted);
}

.bars span {
  display: block;
  height: 10px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid rgba(41, 255, 114, 0.22);
  background: rgba(0, 0, 0, 0.42);
  border-radius: 2px;
}

.bars i {
  display: block;
  width: 12%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber));
  box-shadow: 0 0 14px rgba(41, 255, 114, 0.4);
  transition: width 240ms ease;
}

/* --- MANUAL INPUT GRID --- */
.number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(42px, 1fr));
  gap: 8px;
}

.number-grid button {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  font-family: "Share Tech Mono", monospace;
  font-size: 1.4rem;
  border-radius: 4px;
}

.note {
  margin: 14px 0 0;
  color: var(--amber);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

/* --- HISTORY PANEL --- */
.history-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(41, 255, 114, 0.14);
  background: rgba(0, 0, 0, 0.28);
  font-family: "Share Tech Mono", monospace;
  border-radius: 4px;
  font-size: 0.9rem;
}

.chip {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  padding: 3px 6px;
  color: #021005;
  background: var(--green);
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
}

.chip.red {
  color: white;
  background: var(--red);
}

.chip.violet {
  color: white;
  background: var(--violet);
}

/* --- LIVE BETS PANEL --- */
.live-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.live-summary div {
  padding: 10px;
  border: 1px solid rgba(41, 255, 114, 0.16);
  background: rgba(41, 255, 114, 0.05);
}

.live-summary span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.live-summary strong {
  display: block;
  color: white;
  font-size: 1.3rem;
}

.bet-feed {
  display: grid;
  grid-template-columns: 1fr;
  /* Stack vertically for premium layout */
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.bet-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(41, 255, 114, 0.16);
  background: rgba(0, 0, 0, 0.3);
  font-family: "Share Tech Mono", monospace;
  border-radius: 4px;
}

.bet-card header,
.bet-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.bet-card strong {
  color: white;
  font-size: 0.95rem;
}

.bet-card .amount {
  color: var(--amber);
  font-weight: 700;
}

.bet-card .bet-type {
  color: #021005;
  padding: 2px 6px;
  background: var(--green);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
}

.bet-card .bet-type.small {
  color: white;
  background: var(--red);
}

/* --- DESKTOP SIMULATOR WRAPPER AND EMBED --- */
@media (min-width: 480px) {
  body {
    overflow: hidden;
    /* Hide desktop viewport scrollbars */
    padding: 10px;
    background:
      radial-gradient(circle at center, rgba(41, 255, 114, 0.04), transparent 70%),
      linear-gradient(135deg, #010301 0%, #030b05 50%, #010301 100%);
  }

  .shell {
    width: 410px;
    height: 840px;
    max-height: 94vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Clean, modern border */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
    /* Simple floor shadow without green glow */
    overflow-y: auto;
    overflow-x: hidden;
    min-height: auto;
    /* Override full-viewport min-height */
    padding-top: 16px;
  }

  /* Custom terminal scrollbars in simulated screen */
  .shell::-webkit-scrollbar {
    width: 6px;
  }

  .shell::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
  }

  .shell::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 10px;
    box-shadow: 0 0 6px var(--green);
  }

  /* Phone Camera Notch - Removed */
  .shell::after {
    display: none;
  }
}

/* =========================================================
   WELCOME PAGE (welcome.php) PREMIUM UI
   ========================================================= */

/* Key Modal Overlay */
.key-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.key-modal {
  position: relative;
  width: 92%;
  max-width: 420px;
  padding: 40px 25px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(2, 8, 3, 0.95);
  border: 1px solid rgba(41, 255, 114, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(41, 255, 114, 0.1);
  animation: floatIn 0.4s ease;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 4px 8px;
}
.modal-close-btn:hover {
  color: #ff1030;
}

/* Logout button in topbar */
.logout-btn {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s;
}
.logout-btn:hover {
  color: #ff1030;
  border-color: #ff1030;
}



.welcome-body {
  margin: 0;
  min-height: 100vh;
  background-color: #010201;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(41, 255, 114, 0.15) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 0%, #010201 100%),
    linear-gradient(rgba(41, 255, 114, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 255, 114, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  background-position: center top, center top, center center, center center;
  font-family: 'Rajdhani', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.welcome-scanline {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 4px);
  animation: scan 10s linear infinite;
}

@keyframes scan {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 100vh;
  }
}

.welcome-container {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 650px;
  padding: 40px 20px;
  background: transparent;
  animation: floatIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.welcome-logo-container {
  position: relative;
  width: clamp(110px, 35vw, 160px);
  height: clamp(110px, 35vw, 160px);
  margin-bottom: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 255, 114, 0.2) 0%, rgba(2, 4, 2, 0) 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 0 60px rgba(41, 255, 114, 0.3),
    inset 0 0 20px rgba(41, 255, 114, 0.2);
  border: 1px solid rgba(41, 255, 114, 0.3);
  animation: pulseLogo 3s ease-in-out infinite;
}

@keyframes pulseLogo {
  0% {
    box-shadow: 0 0 60px rgba(41, 255, 114, 0.3), inset 0 0 20px rgba(41, 255, 114, 0.2);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 80px rgba(41, 255, 114, 0.5), inset 0 0 30px rgba(41, 255, 114, 0.4);
    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 0 60px rgba(41, 255, 114, 0.3), inset 0 0 20px rgba(41, 255, 114, 0.2);
    transform: scale(1);
  }
}

.welcome-logo {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 15px rgba(41, 255, 114, 0.8));
}

.version-badge {
  border: 1px solid var(--green);
  padding: 6px 20px;
  border-radius: 50px;
  background: rgba(41, 255, 114, 0.1);
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(41, 255, 114, 0.2);
}

.version-badge span {
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-shadow: 0 0 5px var(--green);
}

.welcome-title {
  font-size: clamp(1.8rem, 8vw, 5rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(41, 255, 114, 0.5),
    0 0 20px rgba(41, 255, 114, 0.3),
    0 0 40px rgba(41, 255, 114, 0.2);
  letter-spacing: clamp(1px, 1vw, 4px);
}

.welcome-subtitle {
  font-size: 2rem;
  font-weight: 700;
  margin: 5px 0 30px 0;
  line-height: 1;
  color: #ff315d;
  /* Intense Red */
  text-shadow:
    0 0 15px rgba(255, 49, 93, 0.6),
    0 0 30px rgba(255, 49, 93, 0.4);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 6px;
}

.welcome-tagline {
  font-family: 'Share Tech Mono', monospace;
  color: var(--muted);
  font-size: clamp(0.6rem, 2.2vw, 0.85rem);
  letter-spacing: clamp(1px, 0.8vw, 3px);
  margin-bottom: 25px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  width: 90%;
  position: relative;
  text-align: center;
}

.welcome-tagline::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.status-indicator {
  font-family: 'Share Tech Mono', monospace;
  color: var(--green);
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 10px 24px;
  border: 1px solid rgba(41, 255, 114, 0.4);
  background: linear-gradient(90deg, rgba(41, 255, 114, 0.05), rgba(4, 20, 10, 0.8), rgba(41, 255, 114, 0.05));
  border-radius: 4px;
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(41, 255, 114, 0.15);
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green), 0 0 24px var(--green);
  animation: statusBlink 1.2s infinite alternate;
}

@keyframes statusBlink {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.welcome-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 20px;
}

.welcome-actions a,
.welcome-actions button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 6px;
  letter-spacing: 3px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
}

.btn-activate {
  color: #020402;
  background: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 0 25px rgba(41, 255, 114, 0.4);
}

.btn-activate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

.btn-activate:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(41, 255, 114, 0.6);
  background: #fff;
  border-color: #fff;
}

.btn-activate:hover::before {
  left: 100%;
}

.btn-join {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
}

.btn-join:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-join .icon {
  font-size: 1.3rem;
}

.welcome-footer {
  position: absolute;
  bottom: -45px;
  font-family: 'Share Tech Mono', monospace;
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  letter-spacing: 3px;
}

#matrixCanvas {
  filter: blur(2px);
  /* Blurs the background rain so text is readable */
  opacity: 0.9;
  /* Makes the rain slightly lighter */
}

/* =========================================================
   ACTIVATION PAGE (activate.php) STYLES
   ========================================================= */

.corner {
  position: fixed;
  width: 40px;
  height: 40px;
  border-color: rgba(41, 255, 114, 0.5);
  border-style: solid;
  z-index: 50;
  pointer-events: none;
}
.corner-tl { top: 20px; left: 20px; border-width: 2px 0 0 2px; }
.corner-tr { top: 20px; right: 20px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: 20px; left: 20px; border-width: 0 0 2px 2px; }
.corner-br { bottom: 20px; right: 20px; border-width: 0 2px 2px 0; }

.nav-header {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 100;
}

.btn-back {
  display: inline-block;
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2px;
  border: 1px solid rgba(41, 255, 114, 0.3);
  padding: 8px 15px;
  background: rgba(2, 6, 3, 0.8);
  transition: all 0.3s ease;
}
.btn-back:hover {
  background: rgba(41, 255, 114, 0.1);
  box-shadow: 0 0 15px rgba(41, 255, 114, 0.2);
}

.activate-container {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  padding: 80px 20px 40px;
  background: transparent;
  animation: floatIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

.lock-icon-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(41, 255, 114, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 100px; height: 100px; border-width: 2px; border-color: rgba(41, 255, 114, 0.5); box-shadow: inset 0 0 15px rgba(41,255,114,0.1); }
.ring-2 { width: 140px; height: 140px; opacity: 0.6; }
.ring-3 { width: 180px; height: 180px; opacity: 0.3; }

.lock-emoji {
  font-size: 3.5rem;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(41, 255, 114, 0.8));
}

.activate-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: 2px;
}

.activate-subtitle {
  font-size: 2rem;
  color: var(--green);
  margin: 0 0 20px 0;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(41, 255, 114, 0.5);
}

.activate-instruction {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 30px;
}

.activation-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.key-input {
  width: 100%;
  background: rgba(2, 6, 3, 0.8);
  border: 1px solid rgba(41, 255, 114, 0.3);
  padding: 18px;
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 3px;
  outline: none;
  transition: border-color 0.3s;
}
.key-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(41, 255, 114, 0.2);
}
.key-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.btn-activate-submit {
  width: 100%;
  background: var(--green);
  color: #000;
  border: none;
  padding: 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-activate-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(41, 255, 114, 0.4);
}

.divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin: 20px 0;
  position: relative;
  width: 100%;
  text-align: center;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.btn-contact {
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.btn-contact:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.encryption-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-family: 'Share Tech Mono', monospace;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.3);
}

/* =========================================================
   ERROR MODAL STYLES
   ========================================================= */

.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.error-modal {
  background: #0a0a0a;
  border: 2px solid #ff1030;
  border-radius: 4px;
  width: 90%;
  max-width: 450px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 30px rgba(255, 16, 48, 0.2);
}

.error-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #ff1030;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(255, 16, 48, 0.4), inset 0 0 20px rgba(255, 16, 48, 0.2);
}

.cross-icon {
  color: #fff;
  font-size: 3rem;
  line-height: 1;
}

.error-title {
  color: #ff1030;
  font-family: 'Share Tech Mono', monospace;
  font-size: 2.2rem;
  margin: 0 0 15px 0;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 16, 48, 0.6);
  text-align: center;
}

.error-message {
  color: #888;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  margin-bottom: 30px;
  text-align: center;
}

.error-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-retry {
  width: 100%;
  background: #00ff41;
  color: #000;
  border: none;
  padding: 15px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-retry:hover {
  background: #00cc33;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.btn-support {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-support:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #00ff41;
  color: #00ff41;
}

/* =========================================================
   DASHBOARD LOBBY (dashboard.php) Cyberpunk UI
   ========================================================= */

.dashboard-container {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  padding: 20px 15px;
  background: transparent;
  animation: floatIn 1s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

.lobby-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 5px;
}

.lobby-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lobby-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--green);
  box-shadow: 0 0 10px rgba(41, 255, 114, 0.5);
  filter: drop-shadow(0 0 5px var(--green));
}

.lobby-brand-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(41, 255, 114, 0.6);
}

.lobby-brand-text span {
  color: var(--green);
}

.lobby-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--green);
  background: rgba(4, 20, 10, 0.6);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  border-radius: 50px;
  box-shadow: 0 0 12px rgba(41, 255, 114, 0.2);
  text-shadow: 0 0 5px var(--green);
  letter-spacing: 1px;
}

.logout-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1px solid var(--red);
  background: rgba(20, 4, 10, 0.6);
  color: var(--red);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 0 12px rgba(255, 49, 93, 0.2);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.logout-pill:hover {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 49, 93, 0.5);
  transform: translateY(-1px);
}

/* Owner Ticker Bar */
.ticker-banner {
  width: 100vw;
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(41, 255, 114, 0.2);
  border-bottom: 1px solid rgba(41, 255, 114, 0.2);
  background: rgba(2, 6, 3, 0.7);
  padding: 10px 0;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(41, 255, 114, 0.05);
}

.ticker-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  color: var(--green);
  letter-spacing: 2px;
  animation: marquee 25s linear infinite;
  text-shadow: 0 0 5px rgba(41, 255, 114, 0.5);
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Glitch Heading WINGO TRADING */
.lobby-title-wrap {
  margin-bottom: 25px;
}

.lobby-main-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.1;
  margin: 0;
  position: relative;
  text-shadow:
    0 0 10px rgba(41, 255, 114, 0.5),
    0 0 20px rgba(41, 255, 114, 0.2);
  animation: glitch-pulse 4s infinite alternate;
}

.lobby-main-title span {
  display: block;
}

@keyframes glitch-pulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(41, 255, 114, 0.4), 0 0 20px rgba(41, 255, 114, 0.2);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 49, 93, 0.4), 0 0 25px rgba(255, 49, 93, 0.2);
  }
}

.lobby-subtitle {
  font-family: 'Share Tech Mono', monospace;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 10px;
  text-transform: uppercase;
}

/* Selection Cards Group */
.setup-config-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.config-select-card {
  background: rgba(2, 6, 3, 0.85);
  border: 1px solid rgba(41, 255, 114, 0.25);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  transition: all 0.3s ease;
}

.config-select-card:hover, .config-select-card:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(41, 255, 114, 0.15);
  transform: translateY(-2px);
}

.config-select-card label {
  font-family: 'Share Tech Mono', monospace;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.config-select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(41, 255, 114, 0.15);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px;
  outline: none;
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.config-select:focus {
  border-color: var(--green);
}

.config-select option {
  background: #020603;
  color: #fff;
}

/* Protocols Card */
.protocols-card {
  width: 100%;
  background: rgba(2, 8, 3, 0.9);
  border: 1.5px solid var(--green);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 30px;
  box-shadow: 0 0 30px rgba(41, 255, 114, 0.1);
  text-align: left;
}

.protocols-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--green);
  font-size: 1.3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(41, 255, 114, 0.15);
  margin-bottom: 16px;
  text-shadow: 0 0 8px rgba(41, 255, 114, 0.4);
}

.protocols-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.protocol-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(41, 255, 114, 0.1);
  border-radius: 6px;
  padding: 12px 14px;
  transition: all 0.3s ease;
}

.protocol-item:hover {
  border-color: rgba(41, 255, 114, 0.3);
  background: rgba(41, 255, 114, 0.03);
}

.protocol-number {
  min-width: 22px;
  height: 22px;
  background: var(--green);
  color: #000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(41, 255, 114, 0.6);
}

.protocol-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.4;
}

.protocol-text strong {
  color: var(--green);
  font-weight: 700;
}

.protocol-text span.scam-text {
  color: var(--red);
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 49, 93, 0.5);
}

/* Game Selection */
.game-selection-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.game-select-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(41, 255, 114, 0.5);
  text-transform: uppercase;
}

/* Game Card Selection and Launcher Modal */
.game-card {
  width: 100%;
  max-width: 420px;
  background: #080c08;
  border: 2px solid #00ff41;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  margin-top: 10px;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.3);
  border-color: #39ff72;
}

.game-card-banner {
  height: 180px;
  position: relative;
  background: linear-gradient(180deg, #9e1a1a 0%, #1c0505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game-card-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  transition: all 0.75s ease;
}

.game-card:hover .game-card-banner::after {
  left: 150%;
}

.game-card-logo-wrap {
  width: 32px;
  height: 32px;
  border: 1.5px solid #00ff41;
  border-radius: 8px;
  background: #020402;
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.game-card-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.game-card-badge {
  background: rgba(211, 47, 47, 0.2);
  border: 1.5px solid #d32f2f;
  color: #ff5252;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px;
  position: absolute;
  top: 12px;
  right: 12px;
  box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
  letter-spacing: 1px;
}

.game-card-crest-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.game-crest-svg {
  width: 95px;
  height: 95px;
  filter: drop-shadow(0 0 8px rgba(254, 226, 89, 0.4));
  transition: transform 0.4s ease;
}

.game-card:hover .game-crest-svg {
  transform: scale(1.08) rotate(2deg);
}

.game-card-center-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,226,89,0.3);
  text-shadow: 0 0 10px rgba(255,226,89,0.15);
  margin-top: -15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.game-card-footer {
  padding: 15px;
  text-align: left;
  background: #040804;
  border-top: 1px solid rgba(0, 255, 65, 0.15);
}

.game-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

/* =========================================================
   MODAL POPUP STYLES
   ========================================================= */
.cyber-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cyber-modal {
  width: 90%;
  max-width: 400px;
  background: #040804;
  border: 2px solid #00ff41;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 35px rgba(0, 255, 65, 0.35);
  position: relative;
  text-align: center;
  animation: scaleInModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleInModal {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 50, 50, 0.15) !important;
  border: 1px solid #ff3232 !important;
  color: #ff3232 !important;
  font-size: 1rem !important;
  width: 28px !important;
  height: 28px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  line-height: 1 !important;
  box-shadow: 0 0 8px rgba(255, 50, 50, 0.2) !important;
}

.modal-close-btn:hover {
  background: #ff3232 !important;
  color: #fff !important;
  box-shadow: 0 0 15px #ff3232 !important;
  transform: rotate(90deg) !important;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: 1px;
}

.modal-header .highlight {
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.modal-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.modal-banner-wrap {
  height: 130px;
  background: linear-gradient(180deg, #9e1a1a 0%, #1c0505 100%);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-banner-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.modal-crest-svg {
  width: 75px;
  height: 75px;
  filter: drop-shadow(0 0 5px rgba(254, 226, 89, 0.3));
}

.modal-banner-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255,226,89,0.3);
  text-shadow: 0 0 8px rgba(255,226,89,0.1);
  margin-top: -12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.modal-action-btn {
  width: 100%;
  padding: 14px;
  background: #020402 !important;
  border: 1px solid rgba(0, 255, 65, 0.25) !important;
  color: #fff !important;
  font-family: 'Share Tech Mono', monospace !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  letter-spacing: 2px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: inset 0 0 8px rgba(0, 255, 65, 0.05) !important;
}

.modal-action-btn:hover {
  background: rgba(0, 255, 65, 0.08) !important;
  color: #00ff41 !important;
  border-color: #00ff41 !important;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.25), inset 0 0 12px rgba(0, 255, 65, 0.1) !important;
  transform: translateY(-1.5px) !important;
}

.modal-stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(0, 255, 65, 0.15);
  padding-top: 16px;
  text-align: left;
}

.modal-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
}

.stat-label {
  color: #888;
}

.stat-value {
  font-weight: 600;
}

.stat-value.highlight {
  color: #00ff41;
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.4);
}

/* Enable scrolling for the dashboard page */
.dashboard-body {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 30px 10px 80px 10px !important; /* bottom padding ensures we can scroll past footer pills */
  box-sizing: border-box !important;
}

/* =========================================================
   SERVER RESULT COIN CARD & GET RESULT BUTTON (index.php)
   ========================================================= */
.server-result-card {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.15) !important;
  border: 1.5px solid #00ff41 !important;
  border-radius: 12px !important;
}

.server-coin-wrap {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 25px 0;
}

.server-coin {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a2a1a 0%, #020502 100%);
  border: 3px solid #00ff41;
  color: #00ff41;
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 15px #00ff41;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.35), inset 0 0 20px rgba(0, 255, 65, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
}

.server-coin.spinning {
  animation: coinSpin 0.5s linear infinite;
}

@keyframes coinSpin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Decrypted states */
.server-coin.big {
  background: radial-gradient(circle, #e74c3c 0%, #1c0505 100%);
  border-color: #ff315d;
  color: #fff;
  text-shadow: 0 0 15px #ff315d, 0 0 30px #ff315d;
  box-shadow: 0 0 40px rgba(255, 49, 93, 0.6), inset 0 0 25px rgba(255, 49, 93, 0.2);
  font-size: 2.2rem;
}

.server-coin.small {
  background: radial-gradient(circle, #2ecc71 0%, #051c0d 100%);
  border-color: #39ff72;
  color: #fff;
  text-shadow: 0 0 15px #39ff72, 0 0 30px #39ff72;
  box-shadow: 0 0 40px rgba(57, 255, 114, 0.6), inset 0 0 25px rgba(57, 255, 114, 0.2);
  font-size: 2.2rem;
}

.server-coin.red {
  background: radial-gradient(circle, #e74c3c 0%, #1c0505 100%);
  border-color: #ff315d;
  color: #fff;
  text-shadow: 0 0 15px #ff315d, 0 0 30px #ff315d;
  box-shadow: 0 0 40px rgba(255, 49, 93, 0.6), inset 0 0 25px rgba(255, 49, 93, 0.2);
}

.server-coin.green {
  background: radial-gradient(circle, #2ecc71 0%, #051c0d 100%);
  border-color: #39ff72;
  color: #fff;
  text-shadow: 0 0 15px #39ff72, 0 0 30px #39ff72;
  box-shadow: 0 0 40px rgba(57, 255, 114, 0.6), inset 0 0 25px rgba(57, 255, 114, 0.2);
}

.server-coin.violet {
  background: radial-gradient(circle, #9b59b6 0%, #1c0525 100%);
  border-color: #b057ff;
  color: #fff;
  text-shadow: 0 0 15px #b057ff, 0 0 30px #b057ff;
  box-shadow: 0 0 40px rgba(176, 87, 255, 0.6), inset 0 0 25px rgba(176, 87, 255, 0.2);
}

.server-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.4rem;
  color: #00ff41;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  margin-bottom: 5px;
}

.server-status.decrypting {
  color: #ffa751;
  text-shadow: 0 0 10px rgba(255, 167, 81, 0.5);
}

.server-status.decrypted {
  color: #39ff72;
  text-shadow: 0 0 10px rgba(57, 255, 114, 0.6);
}

.get-result-btn {
  width: 100%;
  background: linear-gradient(135deg, #00ff41 0%, #00aa2b 100%);
  border: none;
  color: #000;
  padding: 16px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 3px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.4);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  outline: none;
  text-align: center;
  text-transform: uppercase;
}

.get-result-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 255, 65, 0.7);
}

.get-result-btn:active {
  transform: translateY(0) scale(1);
}

.get-result-btn.disabled,
.get-result-btn:disabled {
  background: #112215 !important;
  color: #555 !important;
  border: 1px solid rgba(0, 255, 65, 0.1) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* =========================================================
   PWA WEB APK DOWNLOAD & FLOATING BUTTON STYLES
   ========================================================= */

.pwa-download-btn {
  position: fixed;
  right: -80px; /* hidden initially, slides in */
  bottom: 85px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background: rgba(4, 20, 10, 0.95);
  border: 2.5px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4), inset 0 0 10px rgba(0, 255, 65, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  pointer-events: none;
}

.pwa-download-btn.visible {
  right: 20px;
  opacity: 1;
  pointer-events: all;
  animation: pwaPulse 2.5s infinite alternate;
}

.pwa-download-btn:hover {
  transform: scale(1.12);
  color: #fff;
  border-color: #39ff72;
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.85), inset 0 0 15px rgba(0, 255, 65, 0.4);
}

@keyframes pwaPulse {
  0% {
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.4), inset 0 0 8px rgba(0, 255, 65, 0.1);
  }
  100% {
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.95), inset 0 0 18px rgba(0, 255, 65, 0.4);
  }
}

/* Tooltip badge for Floating Button */
.pwa-download-btn::before {
  content: 'INSTALL';
  position: absolute;
  right: 60px;
  background: #020402;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(10px);
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.25);
}

.pwa-download-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Custom Cyber APK PWA Instruction Modal Overlay */
.pwa-instruction-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInPwa 0.35s ease;
}

@keyframes fadeInPwa {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pwa-modal-content {
  background: #030603;
  border: 2px solid #00ff41;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 30px 24px;
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.45);
  position: relative;
  text-align: center;
  animation: scaleInPwa 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleInPwa {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pwa-modal-header {
  margin-bottom: 22px;
}

.pwa-modal-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pwa-modal-header .highlight {
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.pwa-modal-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Instructions Body */
.pwa-instructions-body {
  text-align: left;
  margin-bottom: 25px;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 255, 65, 0.15);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.instruction-step:hover {
  border-color: rgba(0, 255, 65, 0.4);
  background: rgba(0, 255, 65, 0.03);
}

.step-num {
  min-width: 24px;
  height: 24px;
  background: var(--green);
  color: #000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.step-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.98rem;
  color: #ddd;
  line-height: 1.4;
}

.step-text strong {
  color: var(--green);
}

.step-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 4px;
  vertical-align: middle;
  height: 20px;
}

.step-icon-btn svg {
  fill: #fff;
  width: 14px;
  height: 14px;
}

/* PWA Close Button Overlay */
.pwa-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 50, 50, 0.15) !important;
  border: 1px solid #ff3232 !important;
  color: #ff3232 !important;
  font-size: 1rem !important;
  width: 28px !important;
  height: 28px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  line-height: 1 !important;
  box-shadow: 0 0 8px rgba(255, 50, 50, 0.2) !important;
}

.pwa-close-btn:hover {
  background: #ff3232 !important;
  color: #fff !important;
  box-shadow: 0 0 15px #ff3232 !important;
  transform: rotate(90deg) !important;
}

.pwa-footer-note {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}