*{box-sizing:border-box}html{scroll-padding-top:100px}body{margin:0;background:var(--background);color:var(--text);font-family:var(--body-font);font-size:16px;line-height:1.75;-webkit-font-smoothing:antialiased}a{color:var(--link);text-underline-offset:4px}a:hover{text-decoration-thickness:2px}button,summary,a{-webkit-tap-highlight-color:transparent}a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:5px;border-radius:3px}img{max-width:100%;height:auto}.container{max-width:calc(var(--article-width) + 340px);padding-inline:32px;margin:0 auto}.site-main{padding-top:36px}.site-header{background:var(--header);border-bottom:1px solid var(--border)}.header-main{display:flex;align-items:center;gap:28px;padding-top:18px;padding-bottom:18px;min-height:84px}.brand{color:var(--text);text-decoration:none;font-size:29px;line-height:1;font-weight:850;letter-spacing:-1.5px;flex-shrink:0}.brand img{display:block;width:auto;height:auto;object-fit:contain;max-width:180px;max-height:48px}.desktop-nav{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px;flex:1}.desktop-nav a{font-size:13px;color:var(--muted);text-decoration:none;font-weight:650}.desktop-nav a[aria-current=page]{color:var(--text)}.site-header .brand,.site-header .site-button-secondary{color:var(--header-ink)}.site-header .desktop-nav a,.site-header .mobile-menu>summary,.site-header .mobile-nav a{color:var(--header-ink)}.site-header .desktop-nav a{opacity:.72}.site-header .desktop-nav a[aria-current=page]{color:var(--header-ink);opacity:1}.site-footer{color:var(--footer-ink)}.site-footer .brand,.site-footer .footer-text,.site-footer .footer-copy,.site-footer .footer-bottom,.site-footer .footer-bottom a{color:var(--footer-ink)}.site-footer .footer-text,.site-footer .footer-copy,.site-footer .footer-bottom{opacity:.75}.header-actions{display:flex;align-items:center;gap:9px;margin-left:auto}.site-button{font-family:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;border-radius:7px;border:1px solid var(--border);text-decoration:none;font-size:13px;line-height:1.5;font-weight:750;white-space:nowrap;color:var(--text)}.site-button-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.site-button-secondary{background:transparent}.site-button:hover{filter:brightness(1.07);text-decoration:none}.mobile-menu{display:none}.breadcrumbs{font-size:12px;color:var(--muted);display:flex;gap:9px;flex-wrap:wrap;padding:0 0 20px}.breadcrumbs a{color:var(--muted);text-decoration:none}.hero{margin:0 0 42px;border-radius:18px;overflow:hidden;position:relative}.hero h1{font-size:clamp(30px,3.7vw,49px);line-height:1.15;letter-spacing:-1.5px;margin:0;font-weight:800;max-width:20ch}.hero-subtitle{font-size:16px;line-height:1.7;margin:22px 0 0;color:var(--muted);max-width:62ch}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-actions .site-button{padding:13px 26px;font-size:14px}.hero-media{margin:0;display:flex;align-items:center;justify-content:center;min-width:0}.hero-media .hero-image{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:0;border-radius:0}.page-layout{display:grid;grid-template-columns:minmax(0,var(--article-width)) 224px;gap:48px;align-items:start;padding-bottom:72px}.page-layout.no-toc{display:block;max-width:var(--article-width);margin:0 auto}.content{min-width:0;max-width:100%;overflow-wrap:anywhere}.content>:first-child{margin-top:0}.content h2{font-size:clamp(23px,2.4vw,30px);line-height:1.3;letter-spacing:-.6px;margin:48px 0 20px;font-weight:750;scroll-margin-top:100px}.content h3{font-size:20px;line-height:1.4;margin:32px 0 14px;letter-spacing:-.25px;scroll-margin-top:100px}.content h4,.content h5,.content h6{line-height:1.4}.content p{margin:18px 0}.content strong{font-weight:750}.content ul,.content ol{padding-left:25px;margin:20px 0}.content li{padding:4px 0}.content li::marker{color:var(--accent);font-weight:700}.content table{border-collapse:separate;border-spacing:0;display:block;width:100%;max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:10px;margin:28px 0;background:var(--surface);font-size:14px;line-height:1.65}.content thead{background:var(--table-head);color:var(--table-ink)}.content td,.content th{padding:14px 18px;min-width:120px;border:0;border-bottom:1px solid var(--border);text-align:inherit;vertical-align:top}.content th{font-weight:750}.content th[scope=row]{color:var(--text)}.content tbody tr:nth-child(even){background:var(--stripe)}.content tr:last-child td,.content tr:last-child th{border-bottom:0}.content caption{text-align:left;color:var(--text);font-weight:700;padding:14px 18px;caption-side:top}.content table p{margin:4px 0}.content img{max-width:100%;height:auto}.content figure{margin:30px 0}.content figcaption{font-size:12px!important;color:var(--muted)!important;margin-top:10px}.content blockquote{margin:28px 0;padding:20px 24px;border-left:3px solid var(--accent);background:var(--surface);border-radius:0 10px 10px 0}.content blockquote p{margin:0}.content hr{border:0;border-top:1px solid var(--border);margin:40px 0}.toc{position:sticky;top:28px;border-left:1px solid var(--border);padding:0 0 0 22px;font-size:12px;max-height:calc(100vh - 56px);overflow:auto}.toc-title{display:block;font-weight:750;letter-spacing:.08em;text-transform:uppercase;font-size:10px;color:var(--muted);margin:0 0 17px}.toc ol{padding:0;margin:0;list-style:none}.toc li{padding:6px 0;line-height:1.5}.toc a{color:var(--muted);text-decoration:none}.toc a:hover{color:var(--accent)}.toc .toc-sub{padding-left:12px;font-size:11px}.toc-mobile{display:none}.site-footer{background:var(--footer);border-top:1px solid var(--border);padding:36px 0 24px}.footer-main{display:grid;grid-template-columns:1fr 2fr;gap:40px}.footer-main .brand{font-size:25px}.footer-copy{color:var(--muted);font-size:12px;margin-top:16px}.footer-text{font-size:13px;color:var(--muted);white-space:pre-line}.footer-text p{margin:0 0 12px}.footer-bottom{margin-top:28px;padding-top:20px;border-top:1px solid var(--border);font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:20px}.footer-bottom a{color:var(--muted)}.content .sg-block{margin:30px 0}.content .sg-cta{font-family:inherit;cursor:pointer;background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);border-radius:7px;letter-spacing:.1px;font-size:14px;padding:12px 24px;line-height:1.5;text-decoration:none;display:inline-flex}.content .sg-note{background:var(--surface);border-left:3px solid var(--accent);padding:20px 24px;border-radius:0 10px 10px 0;font-size:14px}.content .sg-card,.content .sg-pros,.content .sg-cons{background:var(--surface);border:1px solid var(--border);padding:22px;border-radius:10px}.content .sg-card h3,.content .sg-pros h3,.content .sg-cons h3{font-size:17px;margin:0 0 12px}.content .sg-card p{font-size:14px;margin:0}.content .sg-cards{gap:14px}.content .sg-faq details{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0;margin:10px 0}.content .sg-faq summary{list-style:none;position:relative;cursor:pointer;padding:18px 45px 18px 20px;font-size:15px;font-weight:650}.content .sg-faq summary::-webkit-details-marker{display:none}.content .sg-faq summary:after{content:'+';position:absolute;right:20px;top:15px;color:var(--accent);font-size:22px;font-weight:400}.content .sg-faq details[open] summary:after{content:'−'}.content .sg-faq details>p{margin:0;padding:0 20px 20px;color:var(--muted);font-size:14px}.content .sg-steps{list-style:none;counter-reset:steps;padding:0}.content .sg-steps>li{counter-increment:steps;position:relative;padding:8px 0 20px 52px;min-height:52px}.content .sg-steps>li:before{content:counter(steps,decimal-leading-zero);position:absolute;left:0;top:6px;width:34px;height:34px;border:1px solid var(--border);background:var(--surface);border-radius:8px;display:grid;place-items:center;color:var(--accent);font-size:12px;font-weight:750}.content .sg-image img{border-radius:12px}.ref-inline{font:inherit;line-height:inherit;color:var(--link);text-decoration:underline;text-underline-offset:4px;border:0;padding:0;background:transparent;cursor:pointer}.ref-notice{padding:14px;border:1px solid var(--border);border-radius:8px;color:var(--muted)}.skip-link{position:absolute;top:-80px;left:16px;background:var(--accent);color:var(--accent-ink);padding:10px;z-index:20}.skip-link:focus{top:12px}
.table-scroll{overflow:auto;max-width:100%;margin:28px 0;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.table-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.content .table-scroll table{display:table;width:100%;max-width:none;margin:0;border:0;border-radius:0;overflow:visible}.table-scroll::-webkit-scrollbar{height:7px}.table-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:8px}
@media(max-width:1000px){.container{padding-inline:24px}.desktop-nav{gap:10px 16px}.page-layout{gap:28px;grid-template-columns:minmax(0,1fr) 185px}.header-main{gap:22px}.site-button{padding:9px 13px}.hero h1{font-size:36px}.header-actions{gap:7px}}
@media(max-width:760px){.site-main{padding-top:24px}html{scroll-padding-top:18px}.container{padding-inline:18px}.header-main{min-height:70px;padding-top:15px;padding-bottom:15px;flex-wrap:wrap;gap:16px}.brand{font-size:26px}.brand img{max-width:128px;max-height:35px}.desktop-nav{display:none}.header-actions{margin-left:auto;gap:6px}.header-actions .site-button{font-size:12px;min-height:44px;padding:10px 12px}.mobile-menu{display:block;width:100%;border-top:1px solid var(--border);padding-top:12px}.mobile-menu>summary{cursor:pointer;font-size:12px;color:var(--muted);list-style:none;display:flex;justify-content:space-between}.mobile-menu>summary:after{content:'+';font-size:17px}.mobile-menu[open]>summary:after{content:'−'}.mobile-nav{display:flex;flex-wrap:wrap;gap:8px 18px;padding:16px 0 4px}.mobile-nav a{font-size:13px;text-decoration:none}.breadcrumbs{padding:0 0 16px;font-size:11px}.hero{margin:0 0 30px;border-radius:12px}.hero h1{font-size:32px;line-height:1.15;letter-spacing:-1px;max-width:none}.hero-subtitle{font-size:14px;margin-top:17px}.hero-actions{margin-top:22px;gap:8px}.hero-actions .site-button{min-height:44px;padding:12px 20px;font-size:14px}.page-layout{display:block;padding-bottom:44px}.toc{display:none}.toc-mobile{display:block;margin:0 0 30px;padding:16px 18px;border:1px solid var(--border);border-radius:9px;background:var(--surface);font-size:13px}.toc-mobile summary{cursor:pointer;font-weight:700}.toc-mobile ol{padding:12px 0 0 18px;margin:0;list-style:none}.toc-mobile li{padding:4px 0}.toc-mobile a{color:var(--muted);text-decoration:none}.toc-mobile .toc-sub{padding-left:12px}.content{font-size:15px}.content h2{font-size:24px;margin-top:36px;scroll-margin-top:18px}.content h3{font-size:19px;scroll-margin-top:18px}.content table{font-size:12px;margin:22px 0}.content td,.content th{padding:11px 13px;min-width:110px}.content .sg-cards,.content .sg-procons{grid-template-columns:1fr}.content .sg-card{padding:20px}.footer-main{grid-template-columns:1fr;gap:22px}.site-footer{padding-top:30px}.footer-bottom{flex-wrap:wrap;margin-top:20px}.content .sg-steps>li{padding-left:46px}.content .sg-faq summary{font-size:14px}}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}.site-button{transition:filter .15s,transform .15s}.site-button:hover{transform:translateY(-1px)}}

.sg-block{margin:28px 0}.sg-align-left{text-align:left}.sg-align-center{text-align:center}.sg-align-right{text-align:right}.sg-align-justify{text-align:justify}.sg-align-center img,.sg-align-center table{margin-left:auto;margin-right:auto}.sg-align-right img,.sg-align-right table{margin-left:auto;margin-right:0}.sg-align-left img,.sg-align-left table{margin-left:0;margin-right:auto}.sg-image{margin-left:0;margin-right:0}.sg-image img{max-width:100%;height:auto}.sg-cta{display:inline-block;padding:12px 24px;border-radius:10px;background:var(--link);color:#fff;text-decoration:none;font-weight:700}.sg-note{padding:16px 22px;background:var(--panel);border-left:4px solid var(--link);border-radius:8px}.sg-note p{margin:0}.sg-faq details{border-bottom:1px solid var(--border);padding:15px 0}.sg-faq summary{cursor:pointer;font-weight:700}.sg-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.sg-card{background:var(--panel);border:1px solid var(--border);padding:20px;border-radius:12px}.sg-card h3{margin-top:0}.sg-procons{display:grid;grid-template-columns:1fr 1fr;gap:20px}.sg-pros,.sg-cons{padding:20px;background:var(--panel);border-radius:12px}.sg-steps li{padding:8px 0}.sg-image img{display:block;max-width:100%;height:auto;border-radius:10px}.sg-image figcaption{font-size:.9em;color:var(--text);margin-top:8px}.hero-image{display:block;width:100%;max-height:420px;object-fit:cover;border-radius:12px;margin-top:20px}.content table p{margin:5px 0}@media(max-width:700px){.sg-cards,.sg-procons{grid-template-columns:1fr}.sg-block{margin:20px 0}.sg-card{padding:16px}}
:root{--surface:#111b2c;--border:#243147;--muted:#a2afc3;--link:#9acaff;--panel:#111b2c;--table-head:#1c2e48;--table-ink:#f0f5fc;--stripe:#152136}.template-original .hero{background:var(--surface);border:1px solid var(--border)}.template-original .hero-inner{padding:40px}.template-original .hero.has-image .hero-inner{display:grid;grid-template-columns:1.1fr 1fr;padding:0}.template-original .hero.has-image .hero-copy{padding:42px 34px 42px 40px;align-self:center}.template-original .hero-media{background:var(--surface)}.template-original .hero-media img{height:100%;object-fit:contain}.template-original .hero:before{content:'';position:absolute;left:0;top:0;width:54px;height:3px;background:var(--accent)}.template-original .content>h2:before{content:'';display:block;width:28px;height:3px;border-radius:3px;background:var(--accent);margin-bottom:15px}.template-original .site-header .brand{font-style:italic}.template-original .site-button-secondary{border-color:#40526e}.template-original .content thead th{border-top:2px solid var(--accent)}@media(max-width:760px){.template-original .hero-inner{padding:26px}.template-original .hero.has-image .hero-inner{grid-template-columns:1fr}.template-original .hero.has-image .hero-copy{padding:28px 24px}.template-original .hero-media{min-height:0}.template-original .hero-media img{width:100%;height:auto}}

:root{--accent:#2563eb;--background:#090f1b;--header:#101827;--footer:#101827;--text:#e8eef7;--header-ink:#ffffff;--footer-ink:#ffffff;--table-head:#2563eb;--table-ink:#ffffff;--accent-ink:#ffffff;--article-width:860px;--body-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}

.content li>p{margin:4px 0}.content li>p:first-child{margin-top:0}.content li>p:last-child{margin-bottom:0}.content li>ul,.content li>ol{margin:6px 0}
.content .sg-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:20px 0}.content .sg-tiles>li{margin:0;padding:16px 18px;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-weight:650;overflow-wrap:anywhere}.content .sg-tiles>li::marker{content:''}
.hero-media{overflow:hidden}.hero-media .hero-image{transform:scale(var(--hero-image-scale,1))}.template-original .hero-media{position:relative;min-height:300px}.template-original .hero-media .hero-image{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
@media(max-width:760px){.template-original .hero-media{aspect-ratio:16/10;min-height:220px}.content .sg-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.content .sg-tiles>li{padding:12px}}
@media(max-width:340px){.content .sg-tiles{grid-template-columns:1fr}}

/* geoswitch */
.desktop-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.desktop-nav a,
.nav-dropdown summary,
.lang-switcher summary {
  white-space: nowrap;
}

.nav-dropdown,
.lang-switcher {
  position: relative;
  display: inline-block;
}

.nav-dropdown summary,
.lang-switcher summary {
  list-style: none !important;
  list-style-type: none !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker,
.nav-dropdown summary::marker,
.lang-switcher summary::-webkit-details-marker,
.lang-switcher summary::marker {
  display: none !important;
  content: "" !important;
}

.nav-dropdown summary {
  color: inherit;
  font: inherit;
}
.nav-dropdown[open] summary {
  color: #ffffff;
}

.lang-switcher summary {
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #e8eef7);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, #243147);
  border-radius: 8px;
}
.lang-switcher summary:hover,
.lang-switcher[open] summary {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.nav-dropdown-menu,
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  min-width: 170px;
  padding: 6px 0;
  background: var(--surface, #111b2c);
  border: 1px solid var(--border, #243147);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 1000;
}
.nav-dropdown-menu { left: 0; }
.lang-switcher-menu { right: 0; min-width: 155px; }

.nav-dropdown-menu a,
.lang-switcher-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  color: var(--text, #e8eef7);
  text-decoration: none;
  font-size: 14px;
}
.nav-dropdown-menu a:hover,
.lang-switcher-menu a:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #ffffff;
}
.lang-switcher-menu a.is-active {
  color: #60a5fa;
  font-weight: 600;
}
.nav-dropdown-divider {
  height: 1px;
  margin: 4px 0;
  background: var(--border, #243147);
}
.flag-icon {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.lang-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mobile-nav-sub {
  padding-left: 16px !important;
  font-size: 0.95em;
  opacity: 0.9;
}

/* footer menu */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.footer-links a:hover {
  opacity: 1;
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive hero images */
.template-original .hero.has-image .hero-copy {
  min-width: 0;
}
.template-original .hero:not(.hero-keep-size).has-image .hero-inner {
  grid-template-columns: 1.22fr 0.88fr;
}
.template-original .hero:not(.hero-keep-size) .hero-media {
  min-height: 255px;
}
.template-original .hero:not(.hero-keep-size) .hero-media .hero-image {
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
}

/* Content images */
.content-figure {
  margin: 24px 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.content-figure img,
.content .sg-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 460px);
  max-height: 320px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
}

/* Tower Rush demo game frame */
.game-demo-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #080d17;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-demo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
}
.game-demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: radial-gradient(circle, rgba(9, 15, 27, 0.45) 0%, rgba(9, 15, 27, 0.88) 100%);
}
.game-demo-badge {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}
.game-demo-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 760px) {
  .game-demo-preview {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }
  .header-main {
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand {
    order: 1;
  }
  .mobile-menu {
    order: 2;
    position: relative;
    width: auto;
    margin-left: auto;
    border-top: 0;
    padding-top: 0;
  }
  .mobile-menu > summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--header-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    user-select: none;
  }
  .mobile-menu > summary::-webkit-details-marker,
  .mobile-menu > summary::marker {
    display: none;
    content: "";
  }
  .mobile-menu > summary::before {
    content: "";
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .mobile-menu > summary::after {
    content: none;
  }
  .mobile-menu[open] > summary {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(37, 99, 235, 0.16);
  }
  .mobile-menu[open] > summary::before {
    box-shadow: none;
    transform: rotate(45deg);
  }
  .mobile-menu[open] > summary::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    margin-top: -1px;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transform: rotate(-45deg);
  }
  .mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(280px, calc(100vw - 36px));
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    z-index: 1000;
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 550;
    color: var(--text);
    text-decoration: none;
    line-height: 1.35;
  }
  .mobile-nav a:hover,
  .mobile-nav a:focus-visible {
    background: rgba(37, 99, 235, 0.18);
    color: #ffffff;
  }
  .mobile-nav a[aria-current="page"] {
    background: rgba(37, 99, 235, 0.22);
    color: #60a5fa;
    font-weight: 700;
  }
  .mobile-nav a.mobile-nav-sub {
    padding-left: 24px !important;
    font-size: 13px;
    color: var(--muted);
  }
  .mobile-nav a[hreflang] {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
  }
  .header-actions {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
    gap: 8px;
  }
  .header-actions .site-button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 9px 12px;
  }
  .lang-switcher-menu {
    left: 0;
    right: auto;
  }
  .template-original .hero:not(.hero-keep-size).has-image .hero-inner {
    grid-template-columns: 1fr;
  }
  .template-original .hero:not(.hero-keep-size) .hero-media {
    aspect-ratio: 16 / 10;
    min-height: 215px;
  }
  .template-original .hero:not(.hero-keep-size) .hero-media .hero-image {
    inset: 8px 12px;
    width: calc(100% - 24px);
    height: calc(100% - 16px);
  }
  .content-figure {
    margin: 18px 0;
  }
  .content-figure img,
  .content .sg-image img {
    max-width: min(100%, 320px);
    max-height: 220px;
  }
  .game-demo-frame {
    aspect-ratio: 3 / 4;
    min-height: 480px;
    border-radius: 12px;
  }
}

/* Enhanced Feature Cards with Accent Badges */
.sg-cards .sg-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(22, 33, 56, 0.92) 0%, rgba(12, 19, 34, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sg-cards .sg-card::before {
  content: "";
  position: absolute;
  top: -36px;
  right: -36px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--card-glow, rgba(59, 130, 246, 0.16));
  filter: blur(22px);
  pointer-events: none;
}

.sg-cards .sg-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border, rgba(96, 165, 250, 0.45));
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
}

.sg-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--icon-bg, linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.08)));
  border: 1px solid var(--icon-border, rgba(96, 165, 250, 0.35));
  box-shadow: 0 6px 16px -4px var(--card-glow, rgba(37, 99, 235, 0.3));
}

.sg-card-icon svg {
  display: block;
  width: 21px !important;
  height: 21px !important;
}

/* Color accents per card */
.sg-card--emerald {
  --card-glow: rgba(16, 185, 129, 0.24);
  --card-border: rgba(52, 211, 153, 0.45);
  --icon-bg: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.1));
  --icon-border: rgba(52, 211, 153, 0.4);
}
.sg-card--gold {
  --card-glow: rgba(245, 158, 11, 0.24);
  --card-border: rgba(251, 191, 36, 0.45);
  --icon-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.1));
  --icon-border: rgba(251, 191, 36, 0.4);
}
.sg-card--blue {
  --card-glow: rgba(59, 130, 246, 0.25);
  --card-border: rgba(96, 165, 250, 0.45);
  --icon-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.1));
  --icon-border: rgba(96, 165, 250, 0.4);
}
.sg-card--purple {
  --card-glow: rgba(168, 85, 247, 0.25);
  --card-border: rgba(192, 132, 252, 0.45);
  --icon-bg: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(126, 34, 206, 0.1));
  --icon-border: rgba(192, 132, 252, 0.4);
}
.sg-card--cyan {
  --card-glow: rgba(6, 182, 212, 0.24);
  --card-border: rgba(34, 211, 238, 0.45);
  --icon-bg: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(8, 145, 178, 0.1));
  --icon-border: rgba(34, 211, 238, 0.4);
}

@media (max-width: 760px) {
  .sg-card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    border-radius: 10px;
  }
  .sg-card-icon svg {
    width: 19px !important;
    height: 19px !important;
  }
}

/* =========================================================
   COMPACT ABOVE-THE-FOLD FIRST SCREEN (REFERENCE LAYOUT)
   ========================================================= */

body.template-original {
  position: relative;
}
body.template-original::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  margin-inline: auto;
  transform: translateZ(0);
  contain: strict;
  width: min(1240px, 98vw);
  height: 340px;
  background:
    radial-gradient(circle at 8% 12%, rgba(56, 189, 248, 0.28) 0%, rgba(9, 15, 27, 0) 34%),
    radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.38) 0%, rgba(9, 15, 27, 0) 44%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}

/* Compress vertical spacing so everything fits in a single viewport */
.template-original .header-main {
  min-height: 68px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.template-original .site-main {
  padding-top: 20px;
  position: relative;
  z-index: 1;
}

/* 1. HERO BANNER WITH BRIGHT SPOTLIGHT AND NEON RING BEHIND IMAGE */
.hero.hero-upgraded {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.45) 0%, rgba(37, 99, 235, 0.16) 24%, rgba(14, 24, 44, 0) 48%),
    radial-gradient(circle at 80% 52%, rgba(37, 99, 235, 0.65) 0%, rgba(56, 189, 248, 0.25) 32%, rgba(14, 24, 44, 0) 58%),
    #0e182c !important;
  border: 1px solid rgba(96, 165, 250, 0.42) !important;
  box-shadow:
    -10px -10px 36px -12px rgba(56, 189, 248, 0.32),
    0 18px 40px -14px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(125, 211, 252, 0.3);
}

.template-original .hero.hero-upgraded::before {
  display: none;
}

.template-original .hero.hero-upgraded.has-image .hero-inner {
  grid-template-columns: 1.25fr 0.85fr;
}

.template-original .hero.hero-upgraded.has-image .hero-copy {
  padding: 24px 20px 24px 32px;
  position: relative;
  z-index: 2;
}

.hero.hero-upgraded h1 {
  font-size: clamp(26px, 2.9vw, 38px);
  line-height: 1.14;
  letter-spacing:-1px;
  max-width: 24ch;
}

.hero-badge {
  display: none !important;
}

.hero.hero-upgraded .hero-subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.52;
  color: #cbd5e1;
  max-width: 58ch;
}

.hero.hero-upgraded .hero-actions {
  margin-top: 16px;
  gap: 10px;
}

.hero.hero-upgraded .hero-actions .site-button {
  padding: 10px 22px;
  font-size: 13.5px;
}

/* Right media container */
.template-original .hero.hero-upgraded .hero-media {
  position: relative;
  min-height: 245px;
  background: transparent !important;
  overflow: visible !important;
}

/* Bright blue-cyan spotlight glow behind subject and phone */
.hero.hero-upgraded .hero-media::before {
  content: "";
  position: absolute;
  top: 52%;
  left: 52%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.85) 0%, rgba(37, 99, 235, 0.65) 42%, rgba(14, 24, 44, 0) 72%);
  filter: blur(22px);
  z-index: 1;
  pointer-events: none;
}

/* Glowing neon ring around the smartphone */
.hero.hero-upgraded .hero-media::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 205px;
  height: 205px;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 211, 252, 0.45);
  box-shadow:
    0 0 28px rgba(56, 189, 248, 0.45),
    inset 0 0 24px rgba(56, 189, 248, 0.3);
  z-index: 1;
  pointer-events: none;
}

.template-original .hero.hero-upgraded .hero-media .hero-image {
  position: absolute;
  inset: 4px 8px 0 8px;
  width: calc(100% - 16px);
  height: calc(100% - 4px);
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
}

.site-button-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(110, 231, 183, 0.5) !important;
  box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.55);
  font-weight: 750;
}
.site-button-emerald:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* 2. PAYMENT METHODS BAR (Trust Bar) — LARGE LOGOS ON DESKTOP + 3x2 GRID ON MOBILE */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
  padding: 14px 36px;
  background: rgba(16, 26, 46, 0.88);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.65);
}

.trust-logos {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.trust-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  overflow: visible;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.trust-logo-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Large logos for desktop */
.trust-logo-item img {
  display: block;
  height: 62px;
  width: auto;
  max-width: none;
  aspect-ratio: attr(width) / attr(height);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.trust-logo-item.is-square img {
  height: 44px;
}

/* MOBILE VERSION (clean 3x2 grid without broken line wraps) */
@media (max-width: 760px) {
  .trust-bar {
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .trust-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    justify-items: center;
    align-items: center;
  }

  .trust-logo-item {
    width: 100%;
    height: 42px;
    background: rgba(23, 35, 61, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 9px;
    padding: 4px 6px;
  }

  .trust-logo-item img {
    height: 42px;
    max-width: 100%;
  }

  .trust-logo-item.is-square img {
    height: 30px;
  }
}

/* For narrow smartphones (320px-380px) */
@media (max-width: 390px) {
  .trust-bar {
    padding: 10px 10px;
  }
  .trust-logos {
    gap: 8px 6px;
  }
  .trust-logo-item {
    height: 38px;
  }
  .trust-logo-item img {
    height: 36px;
  }
  .trust-logo-item.is-square img {
    height: 26px;
  }
}

/* 3. BOTTOM HUB (RATING + CLEAN SPORTSBOOK TILES + QUICK-LINKS) */
.overview-hub {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 14px;
  margin: 0 0 28px;
  align-items: stretch;
}

.rating-card {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 14px 18px;
  background: #111c33;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 12px 10px;
  background: #0c1426;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
}

.rating-score {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
}

.rating-score span {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

.rating-stars {
  margin: 5px 0 4px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #fbbf24;
}

.rating-caption {
  font-size: 11px;
  color: #94a3b8;
}

.rating-bars {
  display: grid;
  gap: 8px;
}

.rating-row-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 3px;
}

.rating-track {
  height: 5px;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}

.rating-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
}

/* Right block: clean 2x2 iGaming tiles + Quick-links column */
.nav-hub-panel {
  display: grid;
  grid-template-columns: 1.42fr 0.88fr;
  gap: 12px;
  padding: 14px;
  background: #111c33;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
  background: #0c1426;
  border: 1px solid #1e2d4a;
  border-radius: 10px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.category-card:hover {
  background: #152340;
  border-color: #3b82f6;
  text-decoration: none;
}

.category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

/* Minimalist icon without square border box */
.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  color: #38bdf8;
}

.category-card--green .category-icon { color: #34d399; }
.category-card--amber .category-icon { color: #fbbf24; }
.category-card--purple .category-icon { color: #c084fc; }

.category-arrow {
  font-size: 14px;
  color: #64748b;
  transition: transform 0.16s ease, color 0.16s ease;
}

.category-card:hover .category-arrow {
  transform: translateX(2px);
  color: #ffffff;
}

.category-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
}

/* Right Quick-links column */
.quick-links-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
  background: #0c1426;
  border: 1px solid #1e2d4a;
  border-radius: 10px;
}

.quick-links-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.quick-links-list {
  display: grid;
  gap: 6px;
}

.quick-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.quick-links-list a:hover {
  background: #152340;
  color: #ffffff;
}

/* 4. STICKY BOTTOM BAR ON MOBILE */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 1060px) {
  .overview-hub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .template-original .hero.hero-upgraded.has-image .hero-inner {
    grid-template-columns: 1fr;
  }
  .template-original .hero.hero-upgraded.has-image .hero-copy {
    padding: 22px 18px;
  }
  .template-original .hero.hero-upgraded .hero-media {
    min-height: 200px;
  }
  .rating-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }
  .nav-hub-panel {
    grid-template-columns: 1fr;
  }
  body {
    padding-bottom: 68px;
  }
  .sticky-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(11, 18, 33, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  }
  .sticky-mobile-info strong {
    display: block;
    font-size: 14px;
    color: #ffffff;
  }
  .sticky-mobile-info span {
    font-size: 11.5px;
    color: #34d399;
  }
}

/* =========================================================
   INTERACTIVE APP HUB BLOCK (Android / iOS / Windows)
   With dynamic color theme switching and large 3D "app" badge
   ========================================================= */
.app-hub {
  --hub-accent: #10b981;
  --hub-glow: rgba(16, 185, 129, 0.32);
  --hub-soft: rgba(16, 185, 129, 0.14);

  position: relative;
  overflow: hidden;
  margin: 0 0 30px;
  padding: 26px 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 48%, var(--hub-glow) 0%, rgba(13, 22, 40, 0) 54%),
    linear-gradient(145deg, #13203b 0%, #0b1221 100%);
  border: 1px solid var(--hub-accent);
  box-shadow:
    0 0 38px -12px var(--hub-glow),
    0 20px 44px -16px rgba(0, 0, 0, 0.78);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hidden radio toggles */
.app-hub input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Color theme change when selecting OS tab */
#os-android:checked ~ .app-hub-inner {
  --hub-accent: #10b981;
  --hub-glow: rgba(16, 185, 129, 0.38);
  --hub-soft: rgba(16, 185, 129, 0.16);
}
#os-ios:checked ~ .app-hub-inner {
  --hub-accent: #38bdf8;
  --hub-glow: rgba(56, 189, 248, 0.38);
  --hub-soft: rgba(56, 189, 248, 0.16);
}
#os-win:checked ~ .app-hub-inner {
  --hub-accent: #818cf8;
  --hub-glow: rgba(129, 140, 248, 0.38);
  --hub-soft: rgba(129, 140, 248, 0.16);
}

/* Recolor container border in supporting browsers */
.app-hub:has(#os-ios:checked) {
  --hub-accent: #38bdf8;
  --hub-glow: rgba(56, 189, 248, 0.34);
}
.app-hub:has(#os-win:checked) {
  --hub-accent: #818cf8;
  --hub-glow: rgba(129, 140, 248, 0.34);
}

.app-hub-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: center;
}

.app-hub-left {
  min-width: 0;
  position: relative;
  z-index: 2;
}

/* Platform tabs row (Android / iOS / Windows) */
.app-os-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  margin-bottom: 18px;
  background: rgba(9, 15, 27, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
}

.app-os-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.app-os-tab:hover {
  color: #ffffff;
}

#os-android:checked ~ .app-hub-inner label[for="os-android"],
#os-ios:checked ~ .app-hub-inner label[for="os-ios"],
#os-win:checked ~ .app-hub-inner label[for="os-win"] {
  background: var(--hub-soft);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px var(--hub-accent);
}

#os-android:checked ~ .app-hub-inner label[for="os-android"] svg { color: #34d399; }
#os-ios:checked ~ .app-hub-inner label[for="os-ios"] svg { color: #38bdf8; }
#os-win:checked ~ .app-hub-inner label[for="os-win"] svg { color: #a5b4fc; }

/* Selected OS content */
.app-os-pane {
  display: none;
  animation: hubFade 0.22s ease;
}
#os-android:checked ~ .app-hub-inner .pane-android,
#os-ios:checked ~ .app-hub-inner .pane-ios,
#os-win:checked ~ .app-hub-inner .pane-win {
  display: block;
}

@keyframes hubFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-pane-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}

/* Compact specification chips */
.app-specs-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.app-chip {
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
}

.app-chip span {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-chip strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: #f8fafc;
  margin-top: 2px;
}

/* Dynamic CTA button matching selected platform */
.app-hub-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  color: #06101d;
  background: var(--hub-accent);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 22px -4px var(--hub-glow);
  transition: filter 0.18s ease, transform 0.18s ease, background 0.25s ease;
}

.app-hub-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* RIGHT SIDE: Animated 3D tile composition with levitation and sheen */
.app-hub-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 205px;
  perspective: 800px;
  user-select: none;
}

.app-tile-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 156px;
  height: 156px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--hub-accent) 0%, #1d4ed8 140%);
  box-shadow:
    0 20px 40px -8px var(--hub-glow),
    inset 0 2px 5px rgba(255, 255, 255, 0.4);
  --tile-rot: 10deg;
  transform: rotate(var(--tile-rot));
  animation: tileFloatMain 4.8s ease-in-out infinite;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* Diagonal light sheen across the main tile */
.app-tile-main::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 70%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: tileSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

.app-tile-main span {
  position: relative;
  z-index: 1;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -3px;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
}

/* Different tilt angles when switching OS tabs */
#os-android:checked ~ .app-hub-inner .app-tile-main { --tile-rot: 10deg; }
#os-ios:checked ~ .app-hub-inner .app-tile-main     { --tile-rot: -7deg; }
#os-win:checked ~ .app-hub-inner .app-tile-main     { --tile-rot: 14deg; }

/* Small glass tile with download arrow (levitating out of phase) */
.app-tile-dl {
  position: absolute;
  bottom: 10px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, var(--hub-soft) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.48);
  color: #0b1221;
  --dl-rot: -10deg;
  transform: rotate(var(--dl-rot));
  animation: tileFloatSub 4.2s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#os-ios:checked ~ .app-hub-inner .app-tile-dl { --dl-rot: 8deg; }
#os-win:checked ~ .app-hub-inner .app-tile-dl { --dl-rot: -14deg; }

/* Hover reaction: tiles separate slightly and arrow bounces */
.app-hub:hover .app-tile-main {
  transform: rotate(calc(var(--tile-rot) - 4deg)) translate(4px, -4px) scale(1.04);
}
.app-hub:hover .app-tile-dl {
  transform: rotate(calc(var(--dl-rot) + 5deg)) translate(-4px, -3px) scale(1.06);
}
.app-hub:hover .app-tile-dl svg {
  animation: arrowBounce 0.9s ease-in-out infinite;
}

@keyframes tileFloatMain {
  0%, 100% { transform: rotate(var(--tile-rot)) translateY(0px); }
  50%      { transform: rotate(calc(var(--tile-rot) - 2deg)) translateY(-7px); }
}

@keyframes tileFloatSub {
  0%, 100% { transform: rotate(var(--dl-rot)) translateY(0px); }
  50%      { transform: rotate(calc(var(--dl-rot) + 3deg)) translateY(6px); }
}

@keyframes tileSheen {
  0%, 55%  { left: -120%; }
  85%, 100%{ left: 160%; }
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .app-tile-main,
  .app-tile-main::after,
  .app-tile-dl,
  .app-hub:hover .app-tile-dl svg {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  .app-hub {
    padding: 20px 16px;
  }
  .app-hub-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .app-hub-visual {
    order: -1;
    min-height: 138px;
  }
  .app-tile-main {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }
  .app-tile-main span {
    font-size: 46px;
  }
  .app-tile-dl {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    left: calc(50% - 76px);
    bottom: 6px;
  }
  .app-os-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .app-os-tab {
    flex: 1;
    justify-content: center;
    padding: 8px 8px;
    font-size: 12.5px;
  }
  .app-hub-cta {
    width: 100%;
  }
}

/* =========================================================
   FLIP PAYMENT CARDS (/deposit/)
   Crisp 2D/3D flip without blurring on Retina and mobile
   ========================================================= */
.flip-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.flip-card {
  position: relative;
  display: block;
  height: 235px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}

.flip-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    transform: translateY(-3px);
  }
}

.flip-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* FRONT FACE */
.flip-front {
  background:
    radial-gradient(circle at 50% 32%, rgba(56, 189, 248, 0.14) 0%, rgba(13, 22, 40, 0) 65%),
    linear-gradient(155deg, #162442 0%, #0b1221 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.75);
  align-items: center;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-front {
    border-color: #10b981;
    box-shadow: 0 14px 32px -8px rgba(16, 185, 129, 0.3);
  }
}

/* BACK FACE (hidden by default, no rotateY for 100% text crispness) */
.flip-back {
  display: none;
  background: linear-gradient(155deg, #102a2e 0%, #0b1221 100%);
  border: 1.5px solid #10b981;
  box-shadow: 0 16px 34px -8px rgba(16, 185, 129, 0.35);
  text-align: left;
}

/* Toggle faces with flip reveal animation */
.flip-card input:checked ~ .flip-card-inner .flip-front {
  display: none;
}

.flip-card input:checked ~ .flip-card-inner .flip-back {
  display: flex;
  animation: cardFlipReveal 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card input:not(:checked) ~ .flip-card-inner .flip-front {
  animation: cardFlipReveal 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardFlipReveal {
  0% {
    opacity: 0.4;
    transform: scaleX(0.15);
  }
  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Corner indicator pill showing the card can be flipped */
.flip-hint-pill {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.flip-hint-pill svg {
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-hint-pill svg {
    transform: rotate(180deg);
  }
}

.flip-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 82px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-logo-wrap {
    transform: scale(1.04);
    border-color: rgba(16, 185, 129, 0.45);
  }
}

.flip-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flip-logo-bank {
  background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.25), rgba(15, 23, 42, 0.6));
  border-color: rgba(192, 132, 252, 0.45);
  color: #d8b4fe;
}

.flip-logo-btc {
  background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.28), rgba(15, 23, 42, 0.6));
  border-color: rgba(251, 191, 36, 0.45);
  color: #fbbf24;
}

.flip-front-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.flip-front-sub {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.flip-back-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.flip-back-head strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.flip-back-close {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
}

.flip-back-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.flip-back-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.flip-back-list span {
  color: #94a3b8;
}

.flip-back-list b {
  color: #ffffff;
  font-weight: 750;
  text-align: right;
}

.flip-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 9px;
  border: 0;
  background: #10b981;
  color: #05111d;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.18s ease;
}

.flip-back-btn:hover {
  filter: brightness(1.1);
}

@media (max-width: 820px) {
  .flip-pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .flip-pay-grid {
    grid-template-columns: 1fr;
  }
  .flip-card {
    height: 215px;
  }
}

/* Compact app quick-launch card (Urdu version) */
.app-hub-card {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: radial-gradient(circle at 15% 45%, rgba(16, 185, 129, 0.16), transparent 55%),
              linear-gradient(145deg, #0b1628 0%, #0e2235 60%, #091726 100%);
  box-shadow: 0 14px 30px rgba(3, 10, 22, 0.38);
}

.app-hub-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-hub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.app-hub-tab:hover {
  color: #ffffff;
}

.app-hub-tab.is-active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
}

.app-hub-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fcd34d;
  font-size: 11.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.app-hub-pill.is-desktop {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

.app-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(165px, 0.65fr);
  gap: 16px;
  align-items: center;
}

.content .app-hub-title {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 800;
  color: #ffffff;
}

.content .app-hub-mini-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content .app-hub-mini-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(7, 14, 26, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 12.5px;
  line-height: 1.4;
  color: #e2e8f0;
}

.app-hub-mini-steps .step-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-hub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.app-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.app-hub-link {
  font-size: 12.5px;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
}

.app-hub-link:hover {
  text-decoration: underline;
}

/* Compact animated 3D tiles */
.app-hub-tiles-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 162px;
}

.tiles-cluster {
  position: relative;
  width: 164px;
  height: 162px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiles-cluster[hidden] {
  display: none;
}

.squircle-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 14px 28px rgba(2, 8, 20, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.35);
  transition: transform 0.3s ease;
}

.tile-main-coins {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: linear-gradient(140deg, #10b981 0%, #0ea5e9 52%, #6366f1 100%);
  transform: rotate(-8deg);
  animation: tileFloatMain 4.6s ease-in-out infinite;
  z-index: 2;
}

.tile-main-pc {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  background: linear-gradient(140deg, #0ea5e9 0%, #2563eb 100%);
  transform: rotate(-8deg);
  animation: tileFloatMain 4.6s ease-in-out infinite;
  z-index: 2;
}

.tile-coins-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  font-family: system-ui, -apple-system, sans-serif;
}

.tile-coins-label {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: rgba(255, 255, 255, 0.92);
  font-family: system-ui, -apple-system, sans-serif;
}

.tile-sub-gift {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  transform: rotate(12deg);
  animation: tileFloatGift 3.8s ease-in-out infinite;
  z-index: 3;
}

.tile-sub-dl {
  position: absolute;
  bottom: 20px;
  left: 12px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fafc 0%, #99f6e4 100%);
  transform: rotate(-6deg);
  animation: tileFloatDl 4.2s ease-in-out infinite;
  z-index: 3;
}

.tile-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(6, 14, 26, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 9px;
  border-radius: 999px;
}

@keyframes tileFloatMain {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-5px) rotate(-5deg); }
}

@keyframes tileFloatGift {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-6px) rotate(17deg); }
}

@keyframes tileFloatDl {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-4px) rotate(-11deg); }
}

.app-hub-card:hover .tile-main-coins,
.app-hub-card:hover .tile-main-pc {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.04) rotate(-6deg);
}

@media (max-width: 760px) {
  .app-hub-card {
    padding: 15px 14px;
  }

  .app-hub-grid {
    grid-template-columns: 1fr;
  }

  .app-hub-tiles-stage {
    min-height: 150px;
    margin-top: 4px;
  }
}

/* PKR Welcome Bonus Calculator Card */
.bonus-calc-card {
  margin: 0 0 28px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.34);
  background: radial-gradient(circle at 12% 25%, rgba(16, 185, 129, 0.16), transparent 55%),
              linear-gradient(145deg, #0b1628 0%, #0e2336 60%, #091726 100%);
  box-shadow: 0 14px 32px rgba(3, 10, 22, 0.38);
}

.bcc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bcc-badge {
  display: inline-block;
  padding: 3px 9px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
}

.content .bcc-title {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 800;
  color: #ffffff;
}

.bcc-stages {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(6, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bcc-stage {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.bcc-stage.is-active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.65);
  color: #ffffff;
}

.bcc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.bcc-input-box label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  color: #94a3b8;
}

.bcc-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 10px;
  background: rgba(6, 12, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0 12px;
}

.bcc-input-wrap input {
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}

.bcc-curr {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
}

.bcc-presets {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.bcc-presets button {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 27, 45, 0.75);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.bcc-presets button:hover {
  border-color: rgba(16, 185, 129, 0.55);
  color: #ffffff;
}

.bcc-results {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.bcc-stat {
  padding: 11px 14px;
  border-radius: 11px;
  background: rgba(7, 14, 26, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.bcc-stat span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 3px;
}

.bcc-stat > strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.bcc-stat > strong.bcc-val-green {
  color: #34d399;
}

[dir="rtl"] .bcc-stat > strong[dir="ltr"] {
  text-align: right;
}

@media (max-width: 760px) {
  .bcc-body {
    grid-template-columns: 1fr;
  }
}

/* 4 Gift Boxes (1st-4th deposit) */
.bcc-gifts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bcc-gift-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bcc-gift-box.gift-gold {
  background: linear-gradient(180deg, rgba(161, 122, 67, 0.42) 0%, rgba(78, 58, 32, 0.72) 100%);
}

.bcc-gift-box.gift-teal {
  background: linear-gradient(180deg, rgba(45, 132, 152, 0.42) 0%, rgba(21, 68, 82, 0.72) 100%);
}

.bcc-gift-box.gift-blue {
  background: linear-gradient(180deg, rgba(59, 108, 189, 0.42) 0%, rgba(28, 54, 102, 0.72) 100%);
}

.bcc-gift-box.gift-purple {
  background: linear-gradient(180deg, rgba(126, 74, 178, 0.42) 0%, rgba(62, 34, 92, 0.72) 100%);
}

.bcc-gift-box:hover {
  transform: translateY(-3px);
}

.bcc-gift-box.is-active {
  transform: translateY(-3px);
  border-color: #34d399;
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.26);
}

.bcc-gift-box .gift-svg {
  margin-bottom: 4px;
  transition: transform 0.22s ease;
}

.bcc-gift-box.is-active .gift-svg {
  transform: scale(1.08);
}

.gift-offer {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.gift-step {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 640px) {
  .bcc-gifts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Header primary CTA animation across all pages (shimmer & gradient glow only, no movement) */
.header-actions .site-button-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 50%, #1d4ed8 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.42);
  animation: headerCtaGradient 4.2s ease infinite;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: paint;
}

.header-actions .site-button-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -130%;
  width: 65%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: headerCtaSheen 3.4s ease-in-out infinite;
  pointer-events: none;
}

.header-actions .site-button-primary:hover {
  animation-play-state: paused;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@keyframes headerCtaGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes headerCtaSheen {
  0%, 48% { left: -130%; }
  76%, 100% { left: 165%; }
}

/* Hero primary registration button: smooth float + light shimmer */
.hero-actions .site-button-emerald {
  position: relative;
  overflow: hidden;
  animation: heroCtaFloat 3.6s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: paint;
}

.hero-actions .site-button-emerald::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -130%;
  width: 65%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: headerCtaSheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

.hero-actions .site-button-emerald:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.08);
}

@keyframes heroCtaFloat {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.55);
  }
  50% {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px -4px rgba(16, 185, 129, 0.78);
  }
}

/* Clean TOC: show only H2 items (hide H3 sub-items) and hide bulky scrollbar */
.toc {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.toc::-webkit-scrollbar {
  display: none;
}

.toc .toc-sub,
.toc-mobile .toc-sub {
  display: none !important;
}

/* Sticky Mini Gift Bookmark Tab (placed at upper 1/3 of the viewport) */
.promo-bookmark-tab {
  position: fixed;
  right: -5px;
  top: 28vh;
  bottom: auto;
  transform: translateZ(0);
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px 9px 10px;
  border-radius: 13px 0 0 13px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-right: 0;
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.95) 0%, rgba(24, 38, 66, 0.97) 100%);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: -6px 8px 24px rgba(2, 8, 20, 0.45);
  will-change: transform;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.promo-bookmark-tab:hover {
  transform: translateX(-5px);
  border-color: #fbbf24;
  box-shadow: -8px 10px 28px rgba(245, 158, 11, 0.28);
}

.promo-bookmark-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #090f1b;
  flex-shrink: 0;
  animation: giftBookmarkWiggle 4.5s ease-in-out infinite;
}

.promo-bookmark-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.promo-bookmark-text strong {
  font-size: 12px;
  color: #fde68a;
}

.promo-bookmark-text span {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
}

[dir="rtl"] .promo-bookmark-text {
  align-items: flex-end;
}

@keyframes giftBookmarkWiggle {
  0%, 72%, 100% { transform: rotate(0deg) scale(1); }
  78% { transform: rotate(-10deg) scale(1.08); }
  84% { transform: rotate(10deg) scale(1.08); }
  90% { transform: rotate(-5deg) scale(1.03); }
}

/* Instant Scroll-to-Top Floating Button */
.back-to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 89;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(15, 26, 46, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 10px 24px rgba(2, 8, 20, 0.5);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

[dir="rtl"] .back-to-top-btn {
  right: auto;
  left: 18px;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: #2563eb;
  border-color: #60a5fa;
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .back-to-top-btn {
    bottom: 76px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  [dir="rtl"] .back-to-top-btn {
    right: auto;
    left: 14px;
  }

  /* Hide side gift bookmark on mobile since bottom sticky CTA bar is already active */
  .promo-bookmark-tab {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-actions .site-button-primary,
  .header-actions .site-button-primary::after,
  .hero-actions .site-button-emerald,
  .hero-actions .site-button-emerald::after,
  .promo-bookmark-icon {
    animation: none !important;
  }
}

/* Full-width text layout for Hero blocks without an image (utility/legal pages) */
.hero:not(.has-image) h1 {
  max-width: none;
}

.hero:not(.has-image) .hero-subtitle {
  max-width: 78ch;
}

@media (max-width: 760px) {
  /* RTL Mobile Header & Dropdown Menu Fixes */
  [dir="rtl"] .mobile-menu {
    margin-left: 0;
    margin-right: auto;
  }

  /* Align close icon (X) with the hamburger bars on the right side in RTL */
  [dir="rtl"] .mobile-menu[open] > summary::after {
    left: auto;
    right: 13px;
  }

  /* Open dropdown inward from the left edge so it never clips off-screen */
  [dir="rtl"] .mobile-nav {
    right: auto;
    left: 0;
  }

  /* Align language switcher dropdown to the right edge in RTL */
  [dir="rtl"] .lang-switcher-menu {
    left: auto;
    right: 0;
  }

  /* Prevent header buttons from overflowing narrow screens */
  [dir="rtl"] .header-actions {
    gap: 6px;
  }

  [dir="rtl"] .header-actions .site-button {
    padding: 8px 10px;
    font-size: 12px;
  }
}