/* 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;
}


/* 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 (CLEAN)
   - hamburger everywhere
   - menu opens/closes by toggling [hidden] on .mobile-nav (matches HTML)
   ===================================================== */

/* Hide inline desktop nav everywhere (hamburger-only) */
.site-header .nav{ display:none !important; }

/* Solid header background for all devices */
.site-header{
  background: #0b1020 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid var(--border);
}

/* Header row sizing / spacing */
.site-header .header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  position: relative;
}

/* Brand block */
.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;
  background: linear-gradient(135deg, rgba(124,92,255,.45), rgba(0,212,255,.25));
  border:1px solid var(--border);
}
.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;
}
.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;
}

/* Hamburger button */
.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;
  transition: transform .18s ease;
  transform-origin: 50% 50%;
}
.site-header .nav-toggle[aria-expanded="true"]{
  transform: rotate(90deg);
}

/* 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; }
}

/* Dropdown panel styling (shown when NOT [hidden]) */
.site-header .mobile-nav{
  position: absolute;
  top: calc(100% + 8px);
  right: 12px;
  left: auto;

  width: min(340px, calc(100vw - 24px));
  padding: 8px;

  border-radius: 16px;

  display: flex;
  flex-direction: column;
  gap: 6px;

  background-color: rgba(12, 18, 34, 0.94);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.site-header .mobile-nav a{
  width:100%;
  text-align:left;
  padding: 8px 12px;
  border-radius: 12px;
  line-height: 1.2;
  font-size: 0.95rem;

  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

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

/* =====================================================
   FIX: #drzave title must be a true section title
   ===================================================== */
#drzave .section-head h2{
  font-size: clamp(1.6rem, 4.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
}

/* =====================================================
   MOBILE: show full brand title + subtitle (no ellipsis)
   Goal: same look across iOS/Android in-app browsers.
   ===================================================== */
@media (max-width: 520px){
  /* give text more room vs hamburger */
  .site-header .header-inner{ gap:10px; }
  .site-header .brand{ gap:10px; }

  /* give the whole brand block breathing room from the left edge (moves logo + text together) */
  .site-header .brand{ padding-left: 8px; }

  /* slightly smaller chrome */
  .site-header .logo{ width:44px; height:44px; }
  .site-header .nav-toggle{ width:44px; height:44px; }

  /* IMPORTANT: remove ellipsis + allow wrapping if needed */
  .site-header .brand-title,
  .site-header .brand-subtitle{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  /* tighten typography so it fits nicely */
  .site-header .brand-title{
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.08;
  }
  .site-header .brand-subtitle{
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.15;
  }

  /* prevent collision with burger by reserving space */
  .site-header .brand-text{ padding-right: 10px; }
}

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

/* =====================================================
   FINAL: Unified section titles (same font + size)
   - applies to Države, Igre, Vodiči
   - single source of truth (no duplicates)
   ===================================================== */
#drzave .section-head h2,
#igre > .container > h2,
#vodici > .container > h2{
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.28rem, 3.8vw, 1.75rem); /* ~20% smaller */
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* =====================================================
   Editorial / Hero titles – Montserrat alignment
   Single source of truth (no global h1/h2 pollution)
   ===================================================== */

/* Hero main title */
.hero h1{
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* Section title: Aktualne Novosti */
#novosti h2,
.section-news h2{
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* =====================================================
   Mobile tweak: keep "Aktualne Novosti" on one line
   ===================================================== */
@media (max-width: 520px){
  #novosti h2,
  .section-news h2{
    font-size: clamp(1.15rem, 4.2vw, 1.35rem);
    white-space: nowrap;
  }
}
