/* ============================================================
   GLOBAL VARIABLES
   ============================================================ */
:root {
  --primary: #0ea5a3;
  --primary-dark: #0b7a78;
  --accent: #14b8a6;
  --bg: #f4f9f9;
  --text: #0f172a;
  --muted: #475569;
  font-family: system-ui, -apple-system, Roboto, Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* ============================================================
   TRUST BANNER
   ============================================================ */
.trust-banner {
  position: relative;
  z-index: 5;
  background: #0b7a78;
  color: #f0fdfa;
  font-size: 0.9rem;
  text-align: center;
  padding: 9px 10px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.trust-banner span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: #fff;
  padding: 8vh 5vw 11vh;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 25px rgba(14, 165, 163, 0.25);
}
.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.hero p {
  max-width: 700px;
  color: #e0f2f1;
  margin: auto;
  font-size: 1.05rem;
  line-height: 1.5;
}
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  color: #d1fae5;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.trust-bar span::before {
  content: '✓ ';
  color: #fff;
  font-weight: 600;
}
.hero-cta {
  margin-top: 30px;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 40px;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}
.hero-cta:hover {
  background: #e0f2f1;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* ============================================================
   CASINO LIST & CARDS
   ============================================================ */
.casino-list {
  max-width: 1080px;
  margin: -60px auto 90px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.casino-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(14, 165, 163, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 32px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(25px) scale(0.97);
  transition: all 0.4s ease;
  border: 1px solid rgba(14, 165, 163, 0.08);
  position: relative;
  overflow: visible;
}

.casino-card:first-of-type {
  margin-top: 40px;
}

.casino-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.casino-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 28px rgba(14, 165, 163, 0.25);
  border: 1px solid rgba(14, 165, 163, 0.25);
}

.casino-card:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(14, 165, 163, 0.3);
}

/* Editor's Pick */
.editor-pick {
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(90deg, #0ea5a3, #14b8a6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
  z-index: 5;
}

/* ============================================================
   CASINO CONTENT
   ============================================================ */
.casino-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  background: #f0fdfa;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(14, 165, 163, 0.08);
}
.casino-info h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.3px;
}
.rating {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin: 6px 0 8px;
}
.rating .rating-note {
  color: var(--muted);
  font-weight: 600;
}
.casino-info p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.3s;
}
.casino-card:hover .casino-info p:nth-of-type(2) {
  color: var(--primary-dark);
}

/* ============================================================
   ICONS & BADGES
   ============================================================ */
.crypto-icons {
  display: flex;
  gap: 6px;
  margin: 8px 0 10px;
  flex-wrap: wrap;
  align-items: center;
}
.crypto-icons img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.crypto-icons img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(14, 165, 163, 0.4);
}

.more-coins {
  background: #e2e8f0;
  color: #475569;
  border-radius: 16px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.more-coins:hover {
  background: #cbd5e1;
  transform: translateY(-1px);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.badges span {
  background: #ecfdf5;
  color: #065f5b;
  font-size: 0.8rem;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid #d1fae5;
  transition: transform 0.2s ease, background 0.3s ease;
  font-weight: 500;
}
.badges span:hover {
  background: #d1fae5;
  transform: scale(1.05);
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.casino-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ✅ FORCE VISIBILITY FIX */
.casino-card .cta-group {
  position: relative !important;
  z-index: 999 !important;
}
.casino-card .btn.play {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 999 !important;
  pointer-events: auto !important;
}
.casino-card[data-casino="bcgame"] .btn.play {
  background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(14, 165, 163, 0.25) !important;
}

.verified {
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.btn {
  display: inline-block;
  width: 160px;
  padding: 11px 0;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.play {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 165, 163, 0.25);
}

.play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.play:hover::after {
  transform: translateX(100%);
}

.play:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.45);
}

.review {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fff;
  transition: all 0.3s ease;
}

.review:hover {
  background: #e0f2f1;
  transform: translateY(-2px);
}

/* ============================================================
   MODALS
   ============================================================ */
.crypto-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 99;
}
.crypto-modal.visible {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  max-width: 420px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  z-index: 10;
}
/* ✅ Ensure Play Now visible in modal */
.crypto-modal.visible .modal-footer .btn.play {
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1001 !important;
  pointer-events: auto !important;
}

.modal-content h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-align: left;
  color: var(--text);
}

.modal-content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
}

.modal-content li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.modal-content li img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.modal-close {
  border: none;
  background: linear-gradient(90deg, #0ea5a3, #14b8a6);
  color: #fff;
  cursor: pointer;
  transition: filter 0.2s ease;
  position: absolute;
  top: 20px;
  right: 10px;
  border-radius: 50%;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1;
}

.modal-close:hover {
  filter: brightness(1.1);
}

.modal-footer {
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.modal-footer .btn {
  margin: 0 auto;
}

/* ============================================================
   DISCLAIMER BAR
   ============================================================ */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0b7a78;
  color: #f1f5f9;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 98;
  box-sizing: border-box;
  font-size: 0.85rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
.disclaimer-bar button {
  background: transparent;
  border: 1px solid #f1f5f9;
  color: #f1f5f9;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}
.disclaimer-bar button:hover {
  background: #f1f5f9;
  color: #0b7a78;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .casino-card {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
  .casino-left {
    flex-direction: column;
    gap: 10px;
  }
  .casino-right {
    margin-top: 12px;
    gap: 6px;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .casino-info h3 {
    font-size: 1.1rem;
  }
  .casino-info p {
    font-size: 0.85rem;
  }
  .rating {
    font-size: 0.9rem;
  }
}
