/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #0a0a1a;
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Video Background ===== */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* ===== Content Container ===== */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px 3% 60px;
  text-align: center;
}

/* ===== Logo ===== */
.logo-container {
  margin-bottom: 20px;
}

.logo {
  max-width: 350px;
  width: 85%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4)); }
  50% { filter: drop-shadow(0 0 35px rgba(255, 215, 0, 0.7)); }
}

/* ===== Marquee ===== */
.marquee-text {
  background: linear-gradient(90deg, rgba(255,106,0,0.15), rgba(238,9,121,0.15), rgba(255,106,0,0.15));
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 12px 0;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 -3% 20px;
  width: calc(100% + 6%);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  color: #ffd700;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeScroll 20s linear infinite;
}

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

/* ===== CTA Button ===== */
.btn-wrapper {
  margin-bottom: 25px;
}

.ref-btn {
  display: inline-block;
  background: linear-gradient(145deg, #ffd700, #ffaa00);
  color: #000;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 6vw, 30px);
  padding: clamp(14px, 3vw, 20px) clamp(30px, 8vw, 60px);
  border-radius: 80px;
  text-decoration: none;
  border: 4px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.7), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  transition: 0.3s;
  letter-spacing: 2px;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.ref-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.9), inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* ===== Flag Section ===== */
.flag-section {
  background: transparent;
  border: none;
  padding: 25px 0;
  margin-bottom: 30px;
  width: 100%;
}

.flag-row {
  display: grid;
  grid-template-columns: repeat(8, auto);
  gap: 35px 40px;
  justify-content: center;
  justify-items: center;
}

.flag-item {
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.flag-item:hover {
  transform: translateY(-4px);
}

.flag {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  background-clip: padding-box;
  position: relative;
}

.flag-border {
  display: inline-block;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(#ffd700, #ff8c00, #ffd700, #fff5a0, #ffd700);
  animation: borderSpin 8s linear infinite;
  line-height: 0;
}

@keyframes borderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.flag:hover {
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
}

.greeting {
  font-size: 20px;
  color: #ffd700;
  margin-top: 6px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  height: 26px;
  line-height: 26px;
  overflow: hidden;
}

.country-name {
  font-size: 20px;
  color: #fff;
  margin-top: 3px;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  height: 26px;
  line-height: 26px;
  overflow: hidden;
}

/* ===== SEO Content ===== */
.seo-content {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-left: 4px solid #ffd700;
  border-radius: 4px;
  padding: 25px 30px;
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
}

.seo-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  color: #ffd700;
  margin-bottom: 15px;
  text-align: left;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.seo-content p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.seo-content b {
  color: #ffd700;
}

.security-badge {
  text-align: center;
  background: transparent;
  border: 1px solid #ffd700;
  border-radius: 4px;
  padding: 14px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 14px;
  color: #ffd700;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===== Jackpot Ticker ===== */
.jackpot-section {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 30px;
  width: 100%;
}

.jackpot-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.jackpot-ticker {
  overflow: hidden;
  max-height: 160px;
}

.ticker-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: tickerScroll 15s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.ticker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: rgba(255, 215, 0, 0.04);
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
  font-size: 13px;
}

.ticker-item .player {
  color: #ffd700;
  font-weight: 600;
  min-width: 100px;
}

.ticker-item .game {
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  text-align: center;
}

.ticker-item .amount {
  color: #00c853;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  min-width: 100px;
  text-align: right;
}

/* ===== Review Section ===== */
.review-section {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  width: 100%;
}

.review-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 15px;
  text-align: center;
}

.review-form {
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

/* Star Rating CSS */
.stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
}

.stars input {
  display: none;
}

.stars label {
  cursor: pointer;
  font-size: 30px;
  color: #555;
  transition: color 0.2s;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
  color: #ffd700;
}

.review-input {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.review-input textarea {
  flex: 1;
  min-height: 45px;
  max-height: 45px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  resize: none;
}

.review-input textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a0a00;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Reviews Grid */
.reviews-container {
  padding: 0;
}

.reviews-header {
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 15px;
  text-align: center;
}

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

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.review-card .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.review-card .review-user {
  font-weight: 600;
  color: #ffd700;
  font-size: 12px;
  margin-bottom: 4px;
}

.review-card .review-stars {
  color: #ffd700;
  font-size: 11px;
  margin-bottom: 6px;
}

.review-card .review-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

.review-card .review-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 6px;
}

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 2px solid #ffd700;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  color: #ffd700;
  margin-bottom: 25px;
}

/* Slot Machine */
.minigame-container {
  margin-bottom: 20px;
}

.slot-machine {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.slot-reel {
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #ffd700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: all 0.1s;
}

.slot-reel.spinning {
  animation: reelSpin 0.1s linear infinite;
}

@keyframes reelSpin {
  0% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
  100% { transform: translateY(-3px); }
}

.modal-message {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.modal-cta-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a0a00;
  border: none;
  border-radius: 50px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
  transition: all 0.3s ease;
  animation: btnGlow 2s ease-in-out infinite;
}

.modal-cta-btn:hover {
  transform: scale(1.05);
}

.hidden {
  display: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .review-card {
    padding: 10px 8px;
  }

  .review-card .review-text {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .logo {
    max-width: 200px;
  }

  .ref-btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  .flag-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 6px;
  }

  .flag {
    width: 55px;
    height: 55px;
  }

  .country-name {
    font-size: 9px;
  }

  .seo-content h1 {
    font-size: 15px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    padding: 30px 20px;
  }

  .slot-reel {
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
}
