/* ============================================================
   Mr Bet brand clone — tema claro/azul
   ============================================================ */
:root{
  --bg:#eef3fa; --card:#ffffff;
  --blue:#0b2a6b; --blue-2:#143b8f; --blue-bright:#2563eb;
  --orange:#f6921e; --orange-2:#ec7d12;
  --text:#16223d; --text-dim:#5b6b87; --muted:#8a97ad;
  --border:#e3e9f3;
  --railbar-w:64px; --topbar-h:62px;
  --font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display:"Montserrat",var(--font);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
h1,h2,h3,h4{margin:0;font-family:var(--display);font-weight:800;line-height:1.15;color:var(--text)}

/* ---------- TOPBAR ---------- */
.topbar{position:sticky;top:0;z-index:50;height:var(--topbar-h);background:linear-gradient(180deg,#0d2f76,#0a2560);
  display:flex;align-items:center;gap:14px;padding:0 18px;box-shadow:0 2px 12px rgba(11,42,107,.25)}
.topbar .logo img{height:34px;width:auto}
.topbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.icon-btn{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);color:#fff;font-size:16px}
.icon-btn:hover{background:rgba(255,255,255,.2)}
.btn-login{color:#fff;font-weight:700;font-size:13.5px;padding:9px 18px;border-radius:8px;border:1.5px solid rgba(255,255,255,.5)}
.btn-login:hover{background:rgba(255,255,255,.1)}
.btn-register{background:linear-gradient(180deg,var(--orange),var(--orange-2));color:#fff;font-weight:800;font-size:13.5px;
  padding:10px 22px;border-radius:8px;box-shadow:0 4px 14px rgba(246,146,30,.4)}
.btn-register:hover{filter:brightness(1.05);transform:translateY(-1px)}

/* ---------- LAYOUT ---------- */
.layout{display:flex;min-height:calc(100vh - var(--topbar-h))}

/* ---------- ICON SIDEBAR (railbar) ---------- */
.railbar{width:var(--railbar-w);flex-shrink:0;background:#0a2560;display:flex;flex-direction:column;align-items:center;
  gap:6px;padding:14px 0;position:sticky;top:var(--topbar-h);height:calc(100vh - var(--topbar-h));overflow-y:auto}
.rail-ic{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:19px;
  color:#cdd9f2;background:rgba(255,255,255,.06)}
.rail-ic:hover{background:rgba(255,255,255,.15)}
.rail-sep{width:30px;height:1px;background:rgba(255,255,255,.15);margin:6px 0}

/* ---------- MAIN ---------- */
.main{flex:1;min-width:0;padding:18px 24px 60px}

/* ---------- HERO PROMOS ---------- */
.promos{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:14px}
.promo{position:relative;min-height:236px;border-radius:16px;overflow:hidden;display:flex;align-items:stretch;
  background:#143b8f;box-shadow:0 6px 20px rgba(11,42,107,.18)}
.promo::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(7,24,64,.92) 0%,rgba(7,24,64,.55) 45%,rgba(7,24,64,.15) 100%)}
.promo--bonus{background:url("banners/bg-casino-hall.png") center/cover no-repeat}
.promo--vip{background:url("banners/art-gems.png") center/cover no-repeat}
.promo--cash{background:radial-gradient(120% 120% at 80% 20%,#1d5fbf,#0c2f78)}
.promo__text{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:flex-start;padding:22px 20px;max-width:62%}
.promo__title{color:#fff;font-size:clamp(16px,1.45vw,21px);font-weight:800;line-height:1.18;margin:0 0 8px;text-transform:uppercase}
.promo__title .hl{color:var(--orange)}
.promo--cash .promo__title .hl,.promo--vip .promo__title .hl{color:#ffd24a}
.promo__sub{color:#cdd9f2;font-size:12.5px;margin:0 0 auto}
.btn-cta{align-self:flex-start;margin-top:16px;background:linear-gradient(180deg,var(--orange),var(--orange-2));color:#fff;
  font-weight:800;font-size:13px;padding:11px 26px;border-radius:9px;box-shadow:0 5px 16px rgba(246,146,30,.45)}
.btn-cta:hover{filter:brightness(1.06);transform:translateY(-1px)}
.promo__art{position:absolute;right:-6px;bottom:0;z-index:2;height:92%;width:auto;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.3))}
.promo--cash .promo__art{height:74%;right:10px;bottom:14px}
.promo--vip .promo__art{display:none}
.promo__art{max-width:52%}
.promo-dots{display:flex;justify-content:center;gap:7px;margin:0 0 26px}
.promo-dots span{width:8px;height:8px;border-radius:50%;background:#c3cee0}
.promo-dots .is-active{width:26px;border-radius:5px;background:var(--blue-bright)}

/* ---------- STATS ---------- */
.statswrap{display:flex;align-items:center;gap:6px;margin-bottom:18px}
.stats-arrow{flex-shrink:0;width:24px;height:40px;display:flex;align-items:center;justify-content:center;
  color:#9bb8ea;font-size:22px;font-weight:700;line-height:1}
.stats-arrow:hover{color:var(--blue-bright)}
.stats{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;min-width:0}
.stat{border:1px solid rgba(255,255,255,.7);border-radius:14px;padding:14px 16px;box-shadow:0 2px 9px rgba(11,42,107,.06)}
.stat--y{background:linear-gradient(110deg,#eaf8ee,#d2eede)}
.stat--c{background:linear-gradient(110deg,#e6f6fb,#cfeaf6)}
.stat--p{background:linear-gradient(110deg,#f1ebfc,#e3d8f8)}
.stat--r{background:linear-gradient(110deg,#fce8ef,#ece0f6)}
.stat__top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.stat__top b{font-family:var(--display);font-size:18px;font-weight:800;color:var(--blue)}
.stat__tag{font-size:10px;font-weight:700;padding:4px 9px;border-radius:7px;white-space:nowrap}
.stat--y .stat__tag{background:#ffce3a;color:#6b4e00}
.stat--c .stat__tag{background:#39c6df;color:#06414c}
.stat--p .stat__tag{background:#a774ec;color:#fff}
.stat--r .stat__tag{background:#f15a5a;color:#fff}
.stat__lbl{font-size:12px;color:#52617d}
.stars{display:inline-block;font-size:17px;line-height:1;letter-spacing:1px;
  background:linear-gradient(90deg,var(--blue-bright) var(--p,90%),#c2d3f0 var(--p,90%));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.stars::before{content:"★★★★★"}

/* ---------- TRUST ---------- */
.trust{overflow:hidden;padding:10px 0;margin-bottom:22px;
  -webkit-mask:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
          mask:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.trust__track{display:flex;align-items:center;gap:42px;width:max-content;animation:trust-scroll 45s linear infinite}
.trust__track img{height:30px;width:auto;flex-shrink:0;filter:grayscale(1);opacity:.45;transition:filter .2s,opacity .2s}
.trust__track img:hover{filter:grayscale(0);opacity:1}
.trust:hover .trust__track{animation-play-state:paused}
@keyframes trust-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce){.trust__track{animation:none;flex-wrap:wrap;justify-content:center}}

/* ---------- CATEGORY PILLS ---------- */
.pills{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:22px}
.pill{flex-shrink:0;display:flex;align-items:center;gap:7px;background:#e7eefb;color:var(--blue);font-weight:700;font-size:13px;
  padding:9px 15px;border-radius:11px;border:1px solid #dbe6f8}
.pill__ic{width:19px;height:19px;object-fit:contain;flex-shrink:0}
.pill:hover{background:#dbe6fa}
.pill.is-active{background:linear-gradient(180deg,#1f5fd0,#0d3aa0);color:#fff;border-color:transparent}

/* ---------- PAGE H1 ---------- */
.page-h1{font-size:clamp(18px,2vw,26px);color:var(--blue);text-transform:uppercase;margin:0 0 22px;line-height:1.2}

/* ---------- GAME SECTIONS ---------- */
.gsec{margin-bottom:26px}
.gsec__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.gsec__title{font-size:18px;color:var(--text);display:flex;align-items:center;gap:8px}
.gsec__title .i{font-size:18px}
.gsec__all{font-size:13px;font-weight:700;color:var(--blue-bright);background:#e7eefb;padding:7px 14px;border-radius:9px}
.gtiles{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}
.gtiles::-webkit-scrollbar{height:6px}
.gtiles::-webkit-scrollbar-thumb{background:#c7d4ea;border-radius:3px}
.gtiles::-webkit-scrollbar-track{background:transparent}
.gtile{flex:0 0 168px;scroll-snap-align:start;background:var(--card);border:1px solid var(--border);border-radius:13px;overflow:hidden;cursor:pointer;
  transition:transform .15s,box-shadow .15s;position:relative}
.gtile:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(11,42,107,.16)}
.gtile img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:#0c1f4a}
.gtile__name{font-size:13px;font-weight:700;color:var(--text);padding:9px 12px 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gtile__prov{font-size:11px;color:var(--muted);padding:0 12px 11px}
.gtile__tag{position:absolute;top:6px;left:6px;z-index:2;font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.02em;
  padding:2px 6px;border-radius:5px;background:#2563eb;color:#fff;box-shadow:0 1px 4px rgba(0,0,0,.3)}
.gtile__tag--top{background:#f6921e}
.gtile__tag--new{background:#16b36a}

/* ---------- CONTENT ---------- */
.content{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:26px 30px;margin-top:8px}
.content h2{font-size:21px;color:var(--blue);margin:22px 0 10px}
.content h2:first-child{margin-top:0}
.content p{margin:0 0 12px;color:#2c3a57}
.content strong{color:var(--text)}
.content .note{background:#eef4ff;border-left:3px solid var(--blue-bright);padding:13px 16px;border-radius:8px;margin:16px 0;color:#33405c}
.content details{border:1px solid var(--border);border-radius:10px;padding:12px 16px;margin-bottom:10px}
.content summary{font-weight:700;cursor:pointer;color:var(--text)}
.content details p{margin:10px 0 0;color:var(--text-dim)}

/* ---------- FOOTER ---------- */
.footer{background:#0a2560;color:#c3cfe6;margin-top:30px;padding:34px 24px 20px}
.footer__cols{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;max-width:1100px;margin:0 auto 22px}
.footer__col h4{color:#fff;font-size:14px;margin-bottom:10px}
.footer__col span{display:block;font-size:13px;color:#9fb0d4;padding:4px 0;cursor:pointer}
.footer__col span:hover{color:#fff}
.footer__legal{max-width:1100px;margin:0 auto;border-top:1px solid rgba(255,255,255,.12);padding-top:16px;font-size:12px;color:#8fa1c8;line-height:1.6}
.footer__legal p{margin:0 0 8px}
.footer__meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:10px;font-size:11.5px}

/* ---------- MOBILE BOTTOM NAV ---------- */
.mobilenav{display:none}

/* ---------- RESPONSIVE ---------- */
@media(max-width:1100px){
  .stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:880px){
  .railbar{display:none}
  .main{padding:14px 12px 88px}
  .topbar{gap:8px;padding:0 12px}
  .icon-btn{display:none}
  /* HERO: carrossel 1 card por vista */
  .promos{display:flex;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;-webkit-overflow-scrolling:touch}
  .promos::-webkit-scrollbar{display:none}
  .promo{flex:0 0 92%;scroll-snap-align:center;min-height:150px}
  .promo__title{font-size:17px;margin-bottom:6px}
  .promo__text{padding:16px 16px}
  /* secções mais compactas no mobile (igual proporções do real) */
  .promo-dots{margin-bottom:12px}
  .statswrap{margin-bottom:12px}
  .trust{margin-bottom:12px;padding:6px 0}
  .pills{margin-bottom:14px}
  .page-h1{font-size:13.5px;margin-bottom:10px;line-height:1.3}
  .gsec{margin-bottom:16px}
  .gsec__head{margin-bottom:8px}
  .gsec__title{font-size:15px}
  /* STATS: carrossel 1 card por vista (com as setas já existentes) */
  .stats{display:flex;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px}
  .stats::-webkit-scrollbar{display:none}
  .stat{flex:0 0 76%;scroll-snap-align:center}
  /* PILLS: ícone em cima, label em baixo */
  .pill{flex-direction:column;gap:5px;min-width:66px;padding:9px 8px;font-size:11px;text-align:center;line-height:1.1}
  .pill__ic{width:26px;height:26px}
  .gtile{flex-basis:142px}
  .promo__art{max-width:46%;height:84%}
  .footer__cols{grid-template-columns:1fr 1fr}
  /* BOTTOM NAV — Menü / Sportok / Bónuszok / Versenyek / Keresés */
  .mobilenav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:80;background:linear-gradient(180deg,#0d2f76,#0a2560);
    border-top:1px solid rgba(255,255,255,.12);padding:7px 4px;justify-content:space-around}
  .mobilenav__item{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;color:#cdd9f2;font-weight:600;padding:2px 0;text-align:center}
  .mobilenav__ic{color:var(--orange);line-height:1}
  .mobilenav__ic svg{width:23px;height:23px;display:block}
}
@media(max-width:560px){
  .topbar{padding:0 10px;gap:6px}
  .topbar .logo img{height:30px}
  .btn-login,.btn-register{padding:8px 13px;font-size:12px}
  .gtile{flex-basis:122px}
  .content{padding:20px 16px}
  .footer__cols{grid-template-columns:1fr}
}
