/* ===== KALEO CASINO — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg-primary: #050d1a;
  --bg-secondary: #0a1628;
  --bg-card: #0f1e35;
  --bg-card2: #122040;
  --gold: #f7b731;
  --gold-dark: #e5930a;
  --gold-light: #fdd76b;
  --orange: #f7931e;
  --cyan: #00d4ff;
  --cyan-dark: #0099cc;
  --green: #00c853;
  --text-primary: #ffffff;
  --text-secondary: #a8bcd4;
  --text-muted: #5a7a99;
  --border: rgba(247,183,49,0.15);
  --border-cyan: rgba(0,212,255,0.2);
  --grad-gold: linear-gradient(135deg, #f7931e 0%, #f7b731 50%, #fdd76b 100%);
  --grad-dark: linear-gradient(135deg, #050d1a 0%, #0a1628 100%);
  --grad-card: linear-gradient(135deg, #0f1e35 0%, #122040 100%);
  --grad-cyan: linear-gradient(135deg, #00d4ff 0%, #0066cc 100%);
  --shadow-gold: 0 0 30px rgba(247,183,49,0.3);
  --shadow-cyan: 0 0 30px rgba(0,212,255,0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; cursor: pointer; border: none;
  transition: all var(--transition); text-align: center;
  font-family: 'Outfit', sans-serif;
}
.btn-gold {
  background: var(--grad-gold); color: #1a0d00;
  box-shadow: 0 4px 20px rgba(247,147,30,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247,147,30,0.6);
  color: #1a0d00;
}
.btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold); color: #1a0d00;
  transform: translateY(-2px);
}
.btn-cyan {
  background: var(--grad-cyan); color: #fff;
  box-shadow: var(--shadow-cyan);
}
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.5); color: #fff; }
.btn-lg { padding: 18px 44px; font-size: 1.15rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* ===== HEADER ===== */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5,13,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 78px !important; width: auto !important; }

nav { display: flex; align-items: center; gap: 6px; }
nav a {
  color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
  padding: 8px 14px; border-radius: 8px; transition: var(--transition);
}
nav a:hover, nav a.active { color: var(--gold); background: rgba(247,183,49,0.1); }

.header-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile menu */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--gold);
  border-radius: 2px; transition: var(--transition);
}
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(5,13,26,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  min-height: 100dvh;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.3rem; font-weight: 600; color: var(--text-primary); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--gold);
  font-size: 2rem; cursor: pointer;
}
.mobile-header-cta { margin-top: 20px; }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); margin-top: 14px; font-size: 0.9rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 { color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.footer-age {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 2px solid var(--gold);
  border-radius: 50%; color: var(--gold); font-weight: 800; font-size: 0.8rem;
}
.footer-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); border-color: rgba(247,183,49,0.4); }
.card-body { padding: 28px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-gold { background: rgba(247,183,49,0.15); color: var(--gold); border: 1px solid rgba(247,183,49,0.3); }
.badge-cyan { background: rgba(0,212,255,0.12); color: var(--cyan); border: 1px solid var(--border-cyan); }
.badge-green { background: rgba(0,200,83,0.12); color: var(--green); border: 1px solid rgba(0,200,83,0.3); }

/* ===== SECTION TITLES ===== */
.section-title { margin-bottom: 50px; }
.section-title .eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.section-title h2 { color: var(--text-primary); }
.section-title h2 span { color: var(--gold); }
.section-title p { color: var(--text-secondary); margin-top: 14px; max-width: 600px; font-size: 1.05rem; }

/* ===== GRIDS ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.btn-mobile-reg { display: none; }

.float-img-section { overflow: hidden; }
.float-img-section::after { content: ''; display: table; clear: both; }


/* ===== TABLES ===== */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.data-table th {
  background: rgba(247,183,49,0.1); color: var(--gold);
  padding: 14px 18px; text-align: left; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border);
}
.data-table td { padding: 14px 18px; color: var(--text-secondary); border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.data-table tr:hover td { background: rgba(247,183,49,0.04); color: var(--text-primary); }
.data-table .highlight td { color: var(--text-primary); }

/* ===== RATING BARS ===== */
.rating-bar-item { margin-bottom: 18px; }
.rating-bar-label { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.rating-bar-label span:last-child { color: var(--gold); font-weight: 700; }
.rating-bar-bg { height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; border-radius: 4px; background: var(--grad-gold); width: 0; transition: width 1.2s ease; }

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; padding: 20px 24px;
  color: var(--text-primary); font-size: 1rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-family: 'Outfit', sans-serif;
  transition: var(--transition);
}
.faq-q:hover { background: rgba(247,183,49,0.05); }
.faq-q .faq-icon { color: var(--gold); font-size: 1.4rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-a.open { max-height: 400px; padding: 0 24px 20px; }
.faq-a p { color: var(--text-secondary); line-height: 1.8; }

/* ===== AUTHOR BLOCK ===== */
.author-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin: 60px 0 0;
  display: flex; gap: 24px; align-items: flex-start;
}
.author-block img {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--gold); object-fit: cover; flex-shrink: 0;
}
.author-block-info h4 { color: var(--gold); margin-bottom: 4px; }
.author-block-info .role { color: var(--cyan); font-size: 0.85rem; margin-bottom: 10px; }
.author-block-info p { color: var(--text-secondary); font-size: 0.9rem; }

/* ===== FLOATING BONUS BANNER ===== */
#bonus-popup {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 260px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a0d02 0%, #2d1500 100%);
  border: 2px solid var(--gold); box-shadow: var(--shadow-gold);
  overflow: hidden; transform: translateY(120%);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
#bonus-popup.show { transform: translateY(0); }
.bonus-popup-img { width: 100%; height: 140px; object-fit: cover; }
.bonus-popup-body { padding: 16px; text-align: center; }
.bonus-popup-body h3 { font-size: 1rem; color: var(--gold); margin-bottom: 4px; }
.bonus-popup-body p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }
.bonus-popup-close {
  position: absolute; top: 8px; right: 10px;
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  font-size: 1.1rem; cursor: pointer; border-radius: 50%;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero .container {
  width: 100%;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--grad-dark);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5,13,26,0.95) 40%, rgba(5,13,26,0.4) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 100%; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-eyebrow span { color: var(--cyan); font-size: 0.85rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }
.hero-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--cyan); opacity: 0.3; max-width: 80px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero-desc { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 36px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.hero-stat span { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

/* ===== BONUS CARD GRID ===== */
.bonus-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.bonus-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; position: relative;
  overflow: hidden; transition: all var(--transition);
}
.bonus-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-gold);
}
.bonus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.bonus-card.featured { border-color: rgba(247,183,49,0.5); background: linear-gradient(135deg, #1a1200 0%, #0f1e35 100%); }
.bonus-card-type { font-size: 0.8rem; color: var(--cyan); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.bonus-card-amount { font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1.1; margin-bottom: 6px; }
.bonus-card-sub { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }
.bonus-card-details { list-style: none; margin-bottom: 24px; }
.bonus-card-details li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.bonus-card-details li span:first-child { color: var(--text-secondary); }
.bonus-card-details li span:last-child { color: var(--text-primary); font-weight: 600; }

/* ===== STARS ===== */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ===== ANIMATE ON SCROLL ===== */
.aos { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.aos.in { opacity: 1; transform: translateY(0); }
.aos-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.aos-left.in { opacity: 1; transform: translateX(0); }
.aos-right { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.aos-right.in { opacity: 1; transform: translateX(0); }

/* ===== PAYMENT ICONS ===== */
.payment-logos { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.payment-logo {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 16px; font-size: 0.8rem;
  color: var(--text-secondary); font-weight: 600;
}

/* ===== GAME GRID ===== */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; }
.game-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
  cursor: pointer; transition: all var(--transition);
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(247,183,49,0.4); }
.game-card-img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.game-card-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  opacity: 0; transition: var(--transition); display: flex; align-items: flex-end; padding: 12px;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-badge {
  position: absolute; top: 8px; left: 8px; padding: 2px 8px;
  border-radius: 4px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
}
.badge-hot { background: #e53935; color: #fff; }
.badge-new { background: var(--green); color: #fff; }
.badge-live { background: #7b1fa2; color: #fff; }

/* ===== DIAGRAM / CHART BARS ===== */
.chart-bar-group { display: flex; align-items: flex-end; gap: 12px; height: 180px; }
.chart-bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart-bar-fill {
  width: 100%; border-radius: 6px 6px 0 0;
  height: 0;
  transition: height 1.2s cubic-bezier(0.4,0,0.2,1);
  flex-shrink: 0;
}
.chart-bar-label { font-size: 0.75rem; color: var(--text-secondary); text-align: center; }
.chart-bar-value { font-size: 0.8rem; color: var(--gold); font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .bonus-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .header-cta .btn-gold:not(.btn-mobile-reg) { display: none; }
  .btn-mobile-reg { display: inline-flex !important; font-size: .8rem; padding: 8px 14px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-content { max-width: 100%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .bonus-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-block { flex-direction: column; }
  .section { padding: 50px 0; }
  #bonus-popup { width: calc(100vw - 24px); max-width: 320px; right: 12px; bottom: 12px; left: auto; }
  /* Float images: disable on mobile */
  img[style*="float:right"] { float: none !important; width: 100% !important; max-width: 100% !important; margin: 0 0 24px 0 !important; }
  /* Inline grids not using CSS classes */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { display: block !important; }
  [style*="grid-template-columns:1fr 1fr"] > *,
  [style*="grid-template-columns: 1fr 1fr"] > * { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-lg { padding: 14px 30px; font-size: 1rem; }
  .data-table { min-width: 480px; }
}
