/* Mobile-first, fast, SEO-friendly (no frameworks) */
:root{
  --bg:#0b1020;
  --text:#e9eefc;
  --muted:#b7c2e6;
  --border:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --focus: rgba(0,212,255,.65);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* iOS/Safari: keep gradient stable while scrolling */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(124,92,255,.30), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(0,212,255,.20), transparent 60%),
    var(--bg);
  transform: translateZ(0);
}

img{max-width:100%;height:auto}
a{color:inherit}
[hidden]{display:none !important;}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:12px}

.container{max-width:1100px;margin:0 auto;padding-left: calc(16px + env(safe-area-inset-left));padding-right: calc(16px + env(safe-area-inset-right));}
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{left:16px;top:16px;width:auto;height:auto;background:#fff;color:#000;padding:10px 12px;border-radius:12px;z-index:9999}

.site-header{
  position:sticky;top:0;z-index:50;
  background: rgba(11,16,32,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:12px}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.logo{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(124,92,255,.45), rgba(0,212,255,.25));
  border:1px solid var(--border);
  flex:0 0 auto;
}
.logo img{width:100%;height:100%;object-fit:cover;border-radius:12px;display:block;}
.brand-title{font-weight:1000;letter-spacing:.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-subtitle{font-size:.86rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nav{display:flex;gap:14px;align-items:center}
.nav a{color:var(--muted);text-decoration:none;font-weight:1000;padding:10px 10px;border-radius:12px}
.nav a:hover{color:var(--text);background:rgba(255,255,255,.06)}

.nav-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:14px;
  /* Keep a little breathing room from the right edge */
  margin-right:6px;
  /* Bigger, clearer hamburger icon */
  font-size:22px;
  line-height:1;
  padding:0;
  width:46px;height:46px;
  min-width:46px;min-height:46px;
}
.mobile-nav{
  border-top:1px solid var(--border);
  padding:10px 16px 16px;
  display:grid;gap:8px;
}
.mobile-nav a{
  color:var(--muted);
  text-decoration:none;
  font-weight:1000;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(0,0,0,.12);
}
.mobile-nav a:hover{color:var(--text)}

.hero{padding:34px 0 18px}
.hero-grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:18px;align-items:start}
.eyebrow{display:inline-block;color:var(--muted);font-weight:1000;margin:0 0 10px}
h1{font-size:clamp(1.75rem, 3.6vw, 3rem);line-height:1.15;margin:0 0 12px}
.lead{font-size:1.05rem;color:var(--muted);margin:0 0 18px}

.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0 12px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 14px;border-radius:14px;
  font-weight:1000;text-decoration:none;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  min-height:44px;
  white-space:nowrap;
}
.btn-primary{background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(0,212,255,.55))}
.btn-ghost{background: rgba(255,255,255,.06);color:var(--text)}
.btn:hover{transform: translateY(-1px)}
.btn.full{width:100%}

.trust{margin:16px 0 0;padding:0;list-style:none;display:grid;gap:10px;color:var(--muted)}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.h3{font-size:1.15rem}
.muted{color:var(--muted)}
.fineprint{font-size:.9rem;color:var(--muted);margin:12px 0 0}

.section{padding:28px 0}
.section.alt{background: rgba(255,255,255,.03);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.section-head h2{margin:0}

/* Centered section title with subtitle on the next line */
.section-head .section-title{width:100%;text-align:center;margin-left:auto;margin-right:auto}
.section-head .section-title .subtitle{display:block;margin-top:4px;font-size:.9em;opacity:.85}
/* Ensure perfect centering for the Ponude section heading */
#ponude .section-head{justify-content:center;text-align:center}


/* Specific: center the header row in Ponude section (fix flex centering) */
#ponude .section-head{justify-content:center;text-align:center}
#ponude .section-head > *{margin-left:auto;margin-right:auto}
h2{font-size:1.5rem;margin:0 0 12px}
h3{margin:0 0 10px}

.top5{display:grid;gap:12px;margin-top:14px}
.top5 .row{
  display:grid;
  grid-template-columns: 52px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(0,0,0,.10);
}
.rank{
  width:52px;height:52px;border-radius:16px;
  display:grid;place-items:center;
  font-weight:1100;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
}
.top5 .title{font-weight:1100}
.top5 .title a{text-decoration:none}
.top5 .title a:hover{text-decoration:underline}
.top5 .meta{color:var(--muted);font-size:.95rem}

.offers-grid{display:grid;grid-template-columns: repeat(3, 1fr);gap:14px;margin-top:16px}
.offer{position:relative;overflow:hidden}
.offer .badge-top{
  position:absolute;top:12px;right:12px;
  background: rgba(0,0,0,.35);
  border:1px solid var(--border);
  padding:6px 10px;border-radius:999px;
  font-weight:1100;font-size:.85rem;
}
/* Fix: badge should align in header row (not absolute) */
.offer-head .badge-top{
  position: static;
  top: auto;
  right: auto;
  margin: 0;
  justify-self: end;
  align-self: center;
}

.offer .offer-title{font-size:1.1rem;font-weight:1100;margin:0 0 8px}
.offer .offer-lines{display:grid;gap:8px;margin:12px 0 14px}
.offer .line{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:14px;
  align-items:baseline;
}
.offer .label{color:var(--muted)}
.offer .value{
  font-weight:1000;
  text-align:right;
  max-width: 60%;
  white-space:normal;
  overflow-wrap:anywhere;
}
.offer .actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  align-items:center;
  margin-top: 14px;
}
.offer .actions .btn-primary{
  grid-column: 1 / -1; /* full width primary */
}
.offer .btn{box-shadow:none}

.notice{
  margin-top:16px;
  padding:14px 14px;
  border:1px dashed rgba(255,255,255,.22);
  border-radius:14px;
  color:var(--muted);
  background: rgba(0,0,0,.18);
}

.grid-3{display:grid;grid-template-columns: repeat(3, 1fr);gap:14px}
.list{margin:0;padding-left:18px;color:var(--muted)}

.faq details{
  background: rgba(0,0,0,.15);
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
}
.faq{display:grid;gap:10px}
.faq summary{cursor:pointer;font-weight:1100}
.faq p{margin:10px 0 0;color:var(--muted)}

.site-footer{padding:24px 0;border-top:1px solid var(--border);background: rgba(0,0,0,.12)}
.footer-grid{display:grid;grid-template-columns: 1.3fr .7fr 1fr;gap:16px}
.footer-title{font-weight:1100;margin-bottom:10px}
.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.footer-links a{color:var(--muted);text-decoration:none;font-weight:1000;padding:8px 0}
.footer-links a:hover{color:var(--text)}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background: rgba(255,255,255,.06);font-weight:1100}
.subfooter{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:16px;flex-wrap:wrap;color:var(--muted);font-size:.95rem}

@media (max-width: 960px){
  .hero-grid{grid-template-columns: 1fr}
  .offers-grid{grid-template-columns: 1fr}
  .grid-3{grid-template-columns: 1fr}
  .footer-grid{grid-template-columns: 1fr}
  .nav{display:none}
}
@media (max-width: 420px){
  .top5 .row{grid-template-columns: 44px 1fr}
  .top5 .row .btn{grid-column: 1 / -1; width:100%}
  .rank{width:44px;height:44px;border-radius:14px}
  .offer .line{grid-template-columns: 1fr; }
  .offer .value{max-width:100%; text-align:left;}
}


/* TOP 5 badge (CTR booster) */
.top5-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-weight:1100;
  font-size:.85rem;
  line-height:1;
  margin-top:8px;
  width: fit-content;
}


/* Header overflow fixes (iOS) */
.header-inner{padding:14px 0}
.brand{max-width: calc(100% - 64px);}
.brand > div{min-width:0}
.brand-subtitle{white-space:normal; overflow:hidden; display:block; line-height:1.25}
.nav-toggle{flex:0 0 auto}


/* Header final polish */
.brand{gap:14px}
.logo{margin-left:4px}
.brand-title{font-size:1.25rem}
.brand-subtitle{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 70vw;
}


/* FAQ polish */
.faq summary{list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{
  content:"▸";
  display:inline-block;
  margin-right:10px;
  color: var(--muted);
  transform: translateY(-1px);
}
.faq details[open] summary::before{content:"▾"}


/* Header logo final tweak */
.logo{
  margin-left: 10px; /* gurni desno od ruba */
  font-size: 1.9rem; /* povecaj slot aparat */
}


/* Perfect center logo icon */
.logo{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}


/* HARD FIX: iOS emoji centering */
.logo{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.logo span,
.logo::before{
  display:flex;
  align-items:center;
  justify-content:center;
  transform: translateY(-1px);
}


/* Header subtitle: keep full text visible (no ...), fit on one line */
.brand-subtitle{
  max-width: none !important;
  font-size: .98rem;
  letter-spacing: .1px;
}

/* On small screens, slightly reduce header text sizes to prevent truncation */
@media (max-width: 420px){
  .brand-title{font-size:1.12rem}
  .brand-subtitle{font-size:.92rem}
  .nav-toggle{width:46px;height:46px;font-size:22px}
}


/* Subtitle must show fully (no ellipsis) */
.brand{flex:1; min-width:0}
.brand > div{min-width:0}
.brand-subtitle{
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
  max-width: none !important;
}

/* Tighten header a bit on very small screens so subtitle fits */
@media (max-width: 420px){
  .logo{width:48px;height:48px}
  .brand-title{font-size:1.04rem}
  .brand-subtitle{font-size:.80rem}
  .header-inner{gap:10px}
  .nav-toggle{width:46px;height:46px;min-width:46px;min-height:46px;font-size:22px}
}


/* Responsible gaming badge */
.rr-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:900;
}
.rr-badge img{
  width:72px;
  height:24px;
  display:block;
}


/* Responsible badge (final) */
.rr-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.rr-badge img{
  width:150px;
  height:28px;
  max-width: 100%;
  display:block;
}


/* Responsible badge alignment fixes */
.rr-badge{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  vertical-align:middle;
  line-height:1;
}
.rr-badge img{
  display:block;
  margin-top:2px; /* optical align with text baseline */
}
.checklist li, .checklist-item{
  align-items:center;
}


/* Micro vertical align fix for responsible badge */
.rr-badge{
  transform: translateY(-2px);
}

/* Brand logo inside rank box */
.rank img.rank-logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.rank[data-rank]{
  color: transparent; /* keep rank in DOM but not visible when logo present */
}


/* Brand page CTA layout (mobile-first) */
.brand-cta{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.brand-cta-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-block{
  width: 100%;
  text-align: center;
}
@media (max-width: 380px){
  .brand-cta-row{ grid-template-columns: 1fr; }
}


/* Tuning for brand pages: offer + tips blocks */
.section-card{
  margin-top: 16px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.section-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.section-icon{
  width: 34px;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: rgba(124,92,255,0.12);
  border: 1px solid rgba(124,92,255,0.25);
  font-size: 18px;
}
.section-card h2{
  margin:0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.offer-card .lines .line{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.offer-card .lines .line:first-child{ border-top: 0; padding-top: 0; }
.offer-card .label{
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}
.offer-card .value{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  text-align:right;
}
.tips-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tips-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.06);
}
.tip-ic{
  width: 24px;
  height: 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 9px;
  background: rgba(0,220,160,0.10);
  border: 1px solid rgba(0,220,160,0.22);
  font-size: 14px;
  flex: 0 0 24px;
  margin-top: 2px;
}
.tip-txt{
  color: rgba(255,255,255,0.86);
  line-height: 1.35;
}


/* Accent offer card (brand pages) */
.offer-accent{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,92,255,0.22), rgba(0,212,255,0.10));
  border: 1px solid rgba(124,92,255,0.28);
  box-shadow: 0 14px 36px rgba(0,0,0,0.30);
}
.offer-accent .offer-row{
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 6px;
}
.offer-accent .offer-row + .offer-row{
  border-top: 1px solid rgba(255,255,255,0.08);
}
.offer-accent .offer-ico{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 18px;
}
.offer-accent .offer-label{
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.offer-accent .offer-value{
  color: rgba(255,255,255,0.98);
  font-weight: 900;
  white-space: nowrap;
}
.offer-accent .offer-flags{
  white-space: normal;
}
@media (max-width: 380px){
  .offer-accent .offer-row{ grid-template-columns: 34px 1fr; }
  .offer-accent .offer-value{ grid-column: 1 / -1; padding-left: 44px; }
}

/* Keep "Na što paziti" heading aligned with icon */
.section-card.tips-card .section-head{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.section-card.tips-card .section-head h2,
.section-card.tips-card .section-head h3{
  margin: 0;
}


/* Rich country article block */
.country-rich{
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.country-rich .country-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 8px;
}
.country-rich .flag{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  font-size: 22px;
  flex: 0 0 auto;
}
.country-rich h2{
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.country-rich p{
  margin: 10px 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}
.country-rich h3{
  margin: 14px 0 8px;
  font-size: 17px;
}
.country-rich ul{
  margin: 8px 0 12px 18px;
}
.country-rich li{
  margin: 6px 0;
  color: rgba(255,255,255,0.82);
}
.country-rich .facts{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-top: 10px;
}
.country-rich .fact{
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.06);
}
.country-rich .fact b{ color: rgba(255,255,255,0.95); }
.country-rich .cta-row{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
}
.country-rich .cta-row a{
  flex: 1 1 180px;
  text-align:center;
  text-decoration:none;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
}
.country-rich .cta-row a.primary{
  background: linear-gradient(90deg, rgba(120,90,255,0.95), rgba(30,180,220,0.92));
  border-color: rgba(255,255,255,0.12);
}


/* Compare links block */
.compare-links{display:grid;grid-template-columns: repeat(2, minmax(0,1fr));gap:10px;margin-top:10px}
.compare-links a{width:100%}
@media (min-width: 720px){.compare-links{grid-template-columns: repeat(4, minmax(0,1fr));}}


/* v51 header align fix */
.section-head{
  justify-content: flex-start;
}
.section-head h2{
  text-align: left;
}


/* v52 heading wrap fix */
.section-head{
  align-items: flex-start;
}
.section-head h2{
  line-height: 1.25;
  word-break: break-word;
}
@media (max-width: 420px){
  .section-head h2{
    font-size: 1.05rem;
  }
}


/* v53 vertical align fix */
.section-head{
  align-items: center;
}
.section-head h2{
  margin: 0;
}


/* v54 heading balance fix (SEO-safe) */
.section-head h2{
  font-size: 1.25rem; /* back to strong visual weight */
  line-height: 1.3;
  text-wrap: balance;
  max-width: calc(100% - 48px); /* prevent collision with icon */
}


/* v55 bonus stack fix */
.bonus-lines,
.bonus-lines p,
.bonus-lines li{
  display: block;
  width: 100%;
}

.bonus-lines{
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
}

.bonus-lines span,
.bonus-lines strong{
  white-space: normal;
}


/* v56 notice stack fix */
.notice.bonus-lines{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.notice.bonus-lines p{
  margin: 0;
}


/* v58 brutal TOP cards (homepage) */
.offer.offer-brutal{
  padding: 16px 16px 14px;
}

.offer-head{
  display:grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.offer-logo{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(124,92,255,0.10);
  border: 1px solid rgba(124,92,255,0.18);
  overflow: hidden;
}
.offer-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-brand{
  text-align: center;
  line-height: 1.1;
}

.offer-title{
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: .2px;
  font-weight: 1200;
  text-shadow: 0 0 18px rgba(124,92,255,0.35);
}

.offer-sub{
  margin-top: 4px;
  font-size: .92rem;
  color: var(--muted);
}

.badge-top{
  align-self: start;
  justify-self: end;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 1100;
  font-size: .92rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 0 18px rgba(124,92,255,0.20);
}

.offer-hero{
  margin-top: 6px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.22);
}

.offer-hero-main{
  font-size: 1.28rem;
  font-weight: 1200;
  letter-spacing: .2px;
}

.offer-hero-sub{
  margin-top: 6px;
  font-size: 1.2rem;
  font-weight: 1200;
  opacity: .95;
}

.offer-facts{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.fact{
  display:flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,0.10);
}

.fact-ic{
  width: 34px;
  height: 34px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(124,92,255,0.10);
  border: 1px solid rgba(124,92,255,0.18);
  font-size: 18px;
}

.fact-label{
  color: var(--muted);
  font-size: .9rem;
}

.fact-val{
  font-weight: 1200;
  margin-top: 2px;
}

/* mini neon pill (used for 1Win payout INSTANT) */
.pill-instant{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 1200;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid rgba(124,92,255,.55);
  background: rgba(124,92,255,.12);
  box-shadow: 0 0 10px rgba(124,92,255,.35), inset 0 0 12px rgba(0,255,255,.08);
  animation: instantPulse 1.4s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes instantPulse{
  0%, 100%{ transform: translateY(0); filter: brightness(1); }
  50%{ transform: translateY(-1px); filter: brightness(1.25); }
}

@media (min-width:720px){
  .offer-facts{grid-template-columns: repeat(2, minmax(0,1fr));}
}


/* v60 center & emphasize casino name */
.offer-head{
  grid-template-columns: 44px 1fr 44px; /* symmetric sides for true centering */
}

.offer-brand{
  text-align: center;
}

.offer-title{
  font-size: 1.55rem; /* stronger hero size */
  font-weight: 1200;
}

/* remove subtitle to avoid repetition */
.offer-sub{
  display: none;
}


/* v62 bigger casino title */
.offer-title{
  font-size: 1.75rem;
  letter-spacing: .3px;
}

/* v62 neon rank badge */
.badge-top{
  background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(0,255,255,.25));
  border: 1px solid rgba(0,255,255,.45);
  color: #eaffff;
  text-shadow: 0 0 6px rgba(0,255,255,.9);
  transition: box-shadow .25s ease, transform .2s ease;
}

.badge-top:hover{
  box-shadow:
    0 0 12px rgba(0,255,255,.9),
    0 0 22px rgba(124,92,255,.8);
  transform: translateY(-1px) scale(1.03);
}


/* v64 align logo, title and badge perfectly */
.offer-head{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center; /* align everything to logo center */
}

/* Bigger, glowing casino title */
.offer-title{
  font-size: 1.9rem;
  font-weight: 1200;
  text-align: center;
  text-shadow:
    0 0 6px rgba(255,255,255,0.25),
    0 0 14px rgba(255,255,255,0.18);
}

/* Neon rank pill refinement */
.badge-top{
  align-self: center;
  box-shadow:
    0 0 10px rgba(0,255,255,.6),
    0 0 20px rgba(124,92,255,.35);
}


/* v65 TRUE center casino title + visible glow */
.offer-head{
  position: relative;
  display: flex;
  align-items: center;
}

.offer-logo{
  flex: 0 0 44px;
}

.offer-brand{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.offer-title{
  font-size: 2.05rem;
  font-weight: 1200;
  text-shadow:
    0 0 10px rgba(255,255,255,0.35),
    0 0 22px rgba(255,255,255,0.25),
    0 0 38px rgba(124,92,255,0.35);
}

.badge-top{
  margin-left: auto;
}


/* v66 STABLE header layout (no absolute positioning) */
.offer-head{
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 64px;
  position: relative;
}

.offer-brand{
  position: static;
  transform: none;
  text-align: center;
  pointer-events: auto;
}

.offer-title{
  font-size: 1.9rem;
  font-weight: 1200;
  text-align: center;
  line-height: 1.15;
  text-shadow:
    0 0 6px rgba(255,255,255,0.25),
    0 0 14px rgba(255,255,255,0.18);
}

.badge-top{
  justify-self: end;
  align-self: center;
  white-space: nowrap;
}


/* v68 minimal rank badges */
.badge-top{
  font-weight: 800;
  letter-spacing: .4px;
}

.badge-top:not(:contains('HOT')){
  box-shadow: 0 0 8px rgba(255,255,255,.18);
}


/* v69 true center casino title */
.casino-header {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
}

.casino-title {
  justify-self: center;
  text-align: center;
  font-size: 1.25rem;
  text-shadow: 0 0 12px rgba(255,255,255,.25);
}



/* v70 TRUE CENTER title (independent of logo/badge widths) */
.offer.offer-brutal .offer-head{
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* equal flexible sides */
  align-items: center;
  gap: 12px;
}

.offer.offer-brutal .offer-logo{
  justify-self: start;
}

.offer.offer-brutal .offer-brand{
  justify-self: center;
  text-align: center;
}

.offer.offer-brutal .badge-top{
  justify-self: end;
}


/* v71 boost casino title */
.casino-title {
  font-size: 1.35rem; /* ~10% bigger */
  font-weight: 800;
  letter-spacing: .3px;
  text-shadow: 
    0 0 10px rgba(255,255,255,.22),
    0 0 22px rgba(255,255,255,.12);
}



/* v77: center bonus summary in offer hero */
.offer-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.offer-hero-main,
.offer-hero-sub{
  width:100%;
  text-align:center;
}

.offer-brutal .offer-sub{display:none;}


/* ------------------------------------------------------------------
   Consistency patch: Safari vs Telegram/other in-app WKWebView
   Goal: make offer cards render identically across iOS browsers.
   ------------------------------------------------------------------ */

/* Prevent iOS in-app browsers from auto-scaling text (common in WebViews) */
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Make the offer card header layout deterministic across engines */
.offer.offer-brutal .offer-head{
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important; /* equal side columns => true centered title */
  align-items: center !important;
  gap: 12px !important;
  min-height: 64px;
}

.offer.offer-brutal .offer-logo{
  justify-self: start !important;
  width: 44px;
  height: 44px;
}

.offer.offer-brutal .offer-brand{
  justify-self: center !important;
  text-align: center !important;
}

.offer.offer-brutal .badge-top{
  justify-self: end !important;
  align-self: center !important;
  white-space: nowrap;
}

/* Avoid unsupported selector edge-cases in some WebViews; ensure a sane shadow */
.offer.offer-brutal .badge-top{
  box-shadow: 0 0 8px rgba(255,255,255,.18);
}

/* (header FIX/vXX rules removed for stability) */

/* === Editorial authority block (Homepage) === */
.editorial-wrap{ padding: 56px 0; }
.editorial-card{
  background: linear-gradient(180deg, rgba(20,30,60,0.95), rgba(10,15,35,0.95));
  border-radius: 20px;
  padding: 46px 42px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.editorial-title{
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 22px 0;
}
.editorial-subtitle{
  font-size: 20px;
  font-weight: 600;
  margin: 34px 0 14px 0;
}
.editorial-text{
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px 0;
}
.editorial-spacer{ height: 10px; }
@media (max-width: 768px){
  .editorial-wrap{ padding: 36px 0; }
  .editorial-card{ padding: 28px 22px; border-radius: 18px; }
  .editorial-title{ font-size: 22px; }
  .editorial-subtitle{ font-size: 18px; margin-top: 26px; }
  .editorial-text{ font-size: 15px; }
}



/* v50: Editorial readability + subtle link styling */
.editorial-text{ font-size:17px; line-height:1.8; }
@media (max-width: 768px){ .editorial-text{ font-size:16.5px; } }

.editorial-card a{
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
  text-underline-offset: 3px;
}
.editorial-card a:hover{
  text-decoration-color: rgba(255,255,255,0.8);
}



/* SEO v51 readability polish */
.editorial-text{font-size:17.5px;line-height:1.8;}
@media(max-width:768px){.editorial-text{font-size:16.8px;}}


/* =========================================================
   Desktop descender clip fix (g/j/p/y) for header subtitle
   Reason: some desktop rules set tight line-height + overflow:hidden,
   which can crop glyph descenders.
   Applies site-wide; does NOT change mobile.
   ========================================================= */
@media (min-width: 768px){
  .site-header .brand-subtitle{
    line-height: 1.35 !important;
    padding-bottom: 2px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
  }
  .site-header .brand-text{
    overflow: visible !important;
  }
}


/* =====================================================
   HEADER – SINGLE SOURCE OF TRUTH (iOS + ANDROID IDENTICAL)
   - removes all conflicting FIX/vXX header rules above
   ===================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,16,32,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  flex-wrap:nowrap;
}

.site-header .brand-link{
  display:block;
  text-decoration:none;
  color:inherit;
  min-width:0;
  flex:1 1 auto;
}

.site-header .brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.site-header .logo{
  width:52px;
  height:52px;
  flex:0 0 auto;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.site-header .logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:14px;
  display:block;
}

.site-header .brand-text{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:visible; /* prevent subtitle clipping */
}

.site-header .brand-title{
  font-family:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:900;
  font-size:22px;
  line-height:1.08;
  letter-spacing:0.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.site-header .brand-subtitle{
  display:block;
  font-family:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:700;
  font-size:14px;
  line-height:1.2;
  margin-top:2px;
  opacity:.85;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.site-header .nav-toggle{
  width:52px;
  height:52px;
  flex:0 0 auto;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

/* ultra small screens */
@media (max-width: 360px){
  .site-header .brand-title{ font-size:20px; }
  .site-header .brand-subtitle{ font-size:12px; }
  .site-header .logo,
  .site-header .nav-toggle{ width:48px; height:48px; }
}

/* Force subtitle always visible (requested) */
.site-header .brand-subtitle{ display:block !important; }


/* =====================================================
   NAV FIX: hide inline desktop nav (prevents "menu chain" on laptop)
   Use burger/mobile-nav everywhere for consistency.
   ===================================================== */
.site-header .nav{ display: none !important; }

/* Ensure mobile drawer is above content when opened */
.site-header .mobile-nav{
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% + 10px);
  z-index: 60;
}


/* =====================================================
   MOBILE TUNE: prevent title ellipsis + subtitle collision with burger
   ===================================================== */
@media (max-width: 520px){
  .site-header .header-inner{ gap:10px; padding:10px 12px; }
  .site-header .brand{ gap:10px; }
  .site-header .logo{ width:48px; height:48px; }
  .site-header .nav-toggle{ width:48px; height:48px; }

  /* give the text a tiny buffer away from the burger */
  .site-header .brand-text{ padding-right:10px; }

  /* shrink typography so "BalkanBet Community" fits without ... */
  .site-header .brand-title{
    font-size:20px;
    letter-spacing:0.1px;
  }
  .site-header .brand-subtitle{
    font-size:12px;
  }
}

/* extra small phones */
@media (max-width: 380px){
  .site-header .brand-title{ font-size:18px; }
  .site-header .brand-subtitle{ font-size:11px; }
}


/* =====================================================
   MOBILE TUNE v4: show full "BalkanBet Community" (no ellipsis)
   ===================================================== */
@media (max-width: 520px){
  /* slightly smaller chrome so text has room */
  .site-header .logo{ width:44px; height:44px; }
  .site-header .nav-toggle{ width:44px; height:44px; }

  /* allow title to wrap (or at least not ellipsis) */
  .site-header .brand-title{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1.05;
    max-width: 100%;
  }

  /* keep subtitle on one line, smaller */
  .site-header .brand-subtitle{
    white-space: nowrap;
    font-size: 12px;
  }
}

/* extra small phones */
@media (max-width: 380px){
  .site-header .brand-title{ font-size: 16px; }
  .site-header .brand-subtitle{ font-size: 11px; }
}


/* =====================================================
   MOBILE TUNE v5: force title to stay on ONE line
   ===================================================== */
@media (max-width: 520px){
  .site-header .brand-title{
    white-space: nowrap;
    font-size: clamp(15px, 4.2vw, 18px); /* slightly smaller */
    line-height: 1.05;
  }
}

/* very small phones */
@media (max-width: 380px){
  .site-header .brand-title{
    font-size: 15px;
  }
}


/* =====================================================
   MOBILE FIX v6: solid header background (no transparency bleed)
   ===================================================== */
.site-header{
  background: #0b1020 !important; /* solid dark */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* when mobile menu is open, keep header solid */
.site-header.menu-open{
  background: #0b1020 !important;
}

/* =====================================================
   MENU FIX v9: dropdown menu under hamburger + animation + icon rotate
   - Menu hidden by default (prevents "always open" bug)
   - Opens when JS toggles `.menu-open` on `.site-header`
   ===================================================== */

/* Positioning context for dropdown */
.site-header{ position: sticky; top:0; z-index:50; }
.site-header,
.site-header .header-inner,
.header-inner{ position: relative; }

/* Hamburger button animation */
.nav-toggle{
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
  transform-origin: center;
}
.site-header.menu-open .nav-toggle{
  transform: rotate(90deg);
}

/* Dropdown panel (kept in DOM, visually hidden when closed) */
.site-header .mobile-nav{
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 12px !important;
  left: auto !important;

  width: min(340px, calc(100vw - 24px)) !important;
  padding: 10px !important;

  border-radius: 16px !important;

  max-height: min(60vh, 420px) !important;
  overflow: auto !important;

  /* Ensure compact vertical layout */
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;

  /* Hidden by default */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) scale(.98) !important;

  transition:
    opacity .22s ease,
    transform .22s ease,
    visibility 0s linear .22s !important;
}

/* Open state */
.site-header.menu-open .mobile-nav{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  transition:
    opacity .22s ease,
    transform .22s ease,
    visibility 0s linear 0s !important;
}

/* Links compact */
.site-header .mobile-nav a,
.site-header .mobile-nav button{
  width: 100%;
  text-align: left;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

/* Slightly smaller font inside dropdown */
.site-header .mobile-nav a{ font-size: 0.98rem; }

/* Remove "Kako odabrati" from the menu (CSS hide) */
.site-header .mobile-nav a[href*="kako-odabrati"],
.site-header .mobile-nav a[href*="#kako-odabrati"],
.site-header .mobile-nav a[href*="kako_odabrati"],
.site-header .mobile-nav a[href*="#kako_odabrati"],
.site-header .mobile-nav a[href*="kakoodabrati"],
.site-header .mobile-nav a[href*="#kakoodabrati"]{
  display: none !important;
}

/* =====================================================
   MENU FIX v10: dropdown behavior + animation + icon rotation
   - Hidden by default, opens on multiple common "open" states
   - Dropdown anchored under hamburger (top-right)
   ===================================================== */

/* Make header a positioning context for the dropdown */
.site-header{ position: sticky; top:0; z-index:9999; }
.site-header .header-inner{ position: relative; }

/* Base dropdown panel (present, but visually closed) */
.site-header .mobile-nav{
  /* keep it in the layout for smooth animation */
  display: block !important;

  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 12px !important;
  left: auto !important;

  width: min(320px, calc(100vw - 24px)) !important;

  border-radius: 16px !important;

  /* closed state */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) scale(.98) !important;

  max-height: 0 !important;
  overflow: hidden !important;

  padding: 0 !important;

  transition:
    opacity .18s ease,
    transform .18s ease,
    max-height .22s ease,
    padding .18s ease,
    visibility 0s linear .22s;
}

/* OPEN states (support multiple toggles/classes/ARIA patterns) */
.site-header.menu-open .mobile-nav,
.site-header.is-open .mobile-nav,
.site-header.nav-open .mobile-nav,
.site-header.open .mobile-nav,
.mobile-nav.is-open,
.mobile-nav.open,
.mobile-nav.active,
.site-header:has(.nav-toggle[aria-expanded="true"]) .mobile-nav,
.site-header:has(.menu-toggle[aria-expanded="true"]) .mobile-nav,
.site-header:has(.hamburger[aria-expanded="true"]) .mobile-nav,
.site-header:has(button[aria-expanded="true"]) .mobile-nav{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;

  padding: 10px !important;
  max-height: min(60vh, 420px) !important;
  overflow: auto !important;

  transition:
    opacity .18s ease,
    transform .18s ease,
    max-height .22s ease,
    padding .18s ease,
    visibility 0s;
}

/* Dropdown items layout */
.site-header .mobile-nav{
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Ensure links/buttons are compact */
.site-header .mobile-nav a,
.site-header .mobile-nav button{
  width: 100%;
  text-align: left;
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

/* =====================================================
   Rotate the hamburger icon when menu is open
   (supports common button classes + aria-expanded)
   ===================================================== */

.nav-toggle,
.menu-toggle,
.hamburger,
.site-header .nav-toggle,
.site-header .menu-toggle,
.site-header .hamburger{
  transition: transform .18s ease;
  transform-origin: 50% 50%;
}

.site-header.menu-open .nav-toggle,
.site-header.menu-open .menu-toggle,
.site-header.menu-open .hamburger,
.site-header.is-open .nav-toggle,
.site-header.is-open .menu-toggle,
.site-header.is-open .hamburger,
.site-header.nav-open .nav-toggle,
.site-header.nav-open .menu-toggle,
.site-header.nav-open .hamburger,
.site-header:has(.nav-toggle[aria-expanded="true"]) .nav-toggle,
.site-header:has(.menu-toggle[aria-expanded="true"]) .menu-toggle,
.site-header:has(.hamburger[aria-expanded="true"]) .hamburger,
.site-header:has(button[aria-expanded="true"]) button[aria-expanded="true"]{
  transform: rotate(90deg);
}

/* =====================================================
   Remove "Kako odabrati" from the menu (CSS hide)
   NOTE: Works if the link points to an anchor/id or slug that includes "kako-odabrati"
   ===================================================== */

.site-header .mobile-nav a[href*="kako-odabrati"],
.site-header .mobile-nav a[href*="#kako-odabrati"],
.site-header .mobile-nav a[href*="kako_odabrati"],
.site-header .mobile-nav a[href*="#kako_odabrati"],
.site-header .mobile-nav a[href*="kakoodabrati"],
.site-header .mobile-nav a[href*="#kakoodabrati"]{
  display: none !important;
}

/* === HIDE KAKO ODABRATI (more robust) =========================
   Tries multiple patterns in href + common data-* attributes.
   If your markup is different, send the <a ...> line and we’ll target it precisely.
=============================================================== */
.site-header .mobile-nav a[href*="kako-odabrati"],
.site-header .mobile-nav a[href*="kako_odabrati"],
.site-header .mobile-nav a[href*="kakoodabrati"],
.site-header .mobile-nav a[href*="odabrati"],

.site-header .mobile-nav a[data-target*="kako"],
.site-header .mobile-nav a[data-target*="odabrati"],
.site-header .mobile-nav a[data-scroll-to*="kako"],
.site-header .mobile-nav a[data-scroll-to*="odabrati"],
.site-header .mobile-nav a[data-section*="kako"],
.site-header .mobile-nav a[data-section*="odabrati"],

.site-header .mobile-nav button[data-target*="kako"],
.site-header .mobile-nav button[data-target*="odabrati"],
.site-header .mobile-nav button[data-scroll-to*="kako"],
.site-header .mobile-nav button[data-scroll-to*="odabrati"],
.site-header .mobile-nav button[data-section*="kako"],
.site-header .mobile-nav button[data-section*="odabrati"]{
  display:none !important;
}

/* === MOBILE NAV BACKGROUND (fix transparency on phones) ======= */
.site-header .mobile-nav{
  background-color: rgba(12, 18, 34, 0.94) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Ensure items don't inherit transparent backgrounds */
.site-header .mobile-nav a,
.site-header .mobile-nav button{
  background-color: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

/* === FIX: Hide "Kako odabrati" which links to #kako-radi ================= */
.site-header .mobile-nav a[href*="#kako-radi"],
.site-header .mobile-nav a[href*="kako-radi"]{
  display:none !important;
}

/* === FIX: No internal scroll / show full dropdown (page can scroll instead) */
.site-header .mobile-nav{
  max-height: none !important;
  overflow: visible !important;
}

/* === UX TWEAK v4: avoid scrollbar just for last item ======================
   Reduce vertical footprint so all items fit on normal phones without scrolling.
   Keep dropdown height auto (no internal scroll).
============================================================================ */

.site-header .mobile-nav{
  padding: 8px !important;
  gap: 6px !important;
  max-height: none !important;
  overflow: visible !important;
}

.site-header .mobile-nav a,
.site-header .mobile-nav button{
  padding: 8px 12px !important;  /* was bigger -> caused overflow */
  border-radius: 12px !important;
  line-height: 1.2 !important;
}

.site-header .mobile-nav a{
  font-size: 0.95rem !important;
}

/* Optional: slightly tighten first/last items spacing */
.site-header .mobile-nav > :first-child{ margin-top: 2px !important; }
.site-header .mobile-nav > :last-child{ margin-bottom: 2px !important; }
