body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background: linear-gradient(120deg, #ff0080, #7928ca, #2afadf);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container, .live-table-box {
  width: 420px;
  max-width: 92%;
  box-sizing: border-box;
}

.container {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.15);
}

.logo {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffe259, #ffa751);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.tagline {
  font-size: 14px;
  color: #f1f1f1;
  margin-bottom: 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.cards div {
  background: rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 10px 6px;
  font-size: 12px;
}

.btn {
  display: block;
  width: 100%;
  padding: 16px 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
  transition: all 0.25s ease;
}

.btn:hover { transform: scale(1.03); }

.telegram {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
}

.register {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #000;
}

.footer {
  font-size: 11px;
  color: #e0e0e0;
  margin-top: 10px;
}

.page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  min-height: calc(100vh - 80px);
  gap: 70px;
}

.live-table-label {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-radius: 26px 26px 0 0;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  color: #ffd200;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff3b3b;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity:1; box-shadow:0 0 0 0 rgba(255,59,59,0.8); }
  70% { box-shadow:0 0 0 8px rgba(255,59,59,0); }
  100% { opacity:1; }
}

.live-table-box {
  width: 400px;
  height: 510px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.live-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

#liveTableBody {
  display: block;
  animation: scrollUp 20s linear infinite;
}

.live-table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 14px;
  margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 6px 16px rgba(0,0,0,0.35);
}

.live-table td {
  padding: 10px 14px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
  font-size: 12px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.fade {
  position: absolute;
  width: 100%;
  height: 30px;
  z-index: 2;
  pointer-events: none;
}

.fade.top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
}

.fade.bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}

@keyframes scrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup {
  position: relative;
  width: 420px;
  max-width: 92%;
  background: linear-gradient(135deg, #2b2d42, #3a0ca3);
  border-radius: 22px;
  padding: 28px 26px 26px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,0.65);
  animation: popupZoom 0.45s ease;
}

@keyframes popupZoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup h2 {
  color: #ffd200;
  margin-bottom: 6px;
  font-size: 22px;
}

.popup p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 18px;
}

.popup input,
.popup select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 14px;
}

.popup button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.popup button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255,200,0,0.45);
}

.popup .close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  transition: 0.25s;
}

.popup .close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.phone-field {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
  height: 45px;
  overflow: hidden;
  box-sizing: border-box;
}

.country-code {
  padding: 12px 14px;
  background: #f1f1f1;
  font-weight: 600;
  color: #000;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.phone-field input {
  border: none;
  outline: none;
  flex: 1;
  height: 100%;
  padding: 22px 16px 8px;
  font-size: 14px;
  box-sizing: border-box;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
  }
  .live-table-box {
    width: 92%;
    max-width: 420px;
    height: 480px;
  }
}

@media (max-width: 600px) {
  body { justify-content: flex-start; align-items: flex-start; }
  .page-wrapper {
    width: 100%;
    padding: 24px 16px;
    gap: 28px;
  }
  .container, .live-table-box {
    width: calc(100% - 32px);
    max-width: 420px;
  }
  .live-table-box { height: 420px; margin-top: 28px; }
  .popup { width: calc(100% - 32px); max-width: 420px; padding: 20px; }
  .container { padding: 26px 20px; }
  .logo { font-size: 26px; }
  .btn { font-size: 15px; padding: 14px 0; }
  .cards div { font-size: 11px; }
  .live-table-label { font-size: 14px; }
  .live-table td { font-size: 11px; padding: 8px 10px; }
}
