/* ================================================
   QBET SVERIGE — main.css
   Light theme, left-rail listing layout
   ================================================ */

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

:root {
  --qb-bg: #f0f4f9;
  --qb-surface: #ffffff;
  --qb-dark: #0d1e35;
  --qb-dark2: #1a3556;
  --qb-blue: #0077b6;
  --qb-blue-light: #e3f2fb;
  --qb-teal: #0096c7;
  --qb-gold: #f4a21e;
  --qb-gold-light: #fef6e3;
  --qb-green: #06a05e;
  --qb-green-light: #e5f7f0;
  --qb-red: #e53e3e;
  --qb-text: #1a2e44;
  --qb-text-muted: #637080;
  --qb-border: #dde4ef;
  --qb-radius-xs: 4px;
  --qb-radius-sm: 8px;
  --qb-radius: 12px;
  --qb-radius-lg: 16px;
  --qb-shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --qb-shadow-sm: 0 2px 6px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --qb-shadow: 0 4px 14px rgba(0,0,0,.09), 0 2px 4px rgba(0,0,0,.05);
  --qb-shadow-lg: 0 8px 28px rgba(0,0,0,.11), 0 3px 8px rgba(0,0,0,.06);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--qb-bg);
  color: var(--qb-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--qb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }
p { margin-bottom: 1rem; }
strong { font-weight: 600; }
h1, h2, h3, h4 { color: var(--qb-dark); line-height: 1.3; font-weight: 700; }

/* ── Header ─────────────────────────────────── */
.qb-header {
  background: var(--qb-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.qb-header__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 62px;
  gap: 8px;
}
.qb-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.qb-header__logo img { border-radius: var(--qb-radius-sm); width: 38px; height: 38px; }
.qb-header__logo:hover { text-decoration: none; }
.qb-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.qb-header__nav a {
  color: rgba(255,255,255,.75);
  padding: 7px 13px;
  border-radius: var(--qb-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.qb-header__nav a:hover,
.qb-header__nav a.active { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.qb-header__auth {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.qb-header__login {
  padding: 8px 16px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.qb-header__login:hover { border-color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.qb-header__register {
  padding: 8px 18px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 14px;
  background: var(--qb-green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(6,160,94,.35);
  transition: opacity 0.15s, transform 0.15s;
}
.qb-header__register:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.qb-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--qb-radius-xs);
}
.qb-hamburger:hover { background: rgba(255,255,255,.1); }

/* Mobile nav */
.qb-mobile-nav {
  display: none;
  position: fixed;
  inset: 62px 0 0;
  background: var(--qb-dark2);
  z-index: 199;
  padding: 12px 16px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.qb-mobile-nav.is-open { display: flex; }
.qb-mobile-nav a {
  color: rgba(255,255,255,.8);
  padding: 13px 16px;
  border-radius: var(--qb-radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.qb-mobile-nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.qb-mobile-nav__auth {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 4px;
}
.qb-mobile-nav__login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.qb-mobile-nav__login:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.qb-mobile-nav__register {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 14px;
  background: var(--qb-green);
  color: #fff;
  text-decoration: none;
  border-bottom: none;
  box-shadow: 0 2px 8px rgba(6,160,94,.3);
  transition: opacity 0.15s;
}
.qb-mobile-nav__register:hover { opacity: 0.88; }

/* ── Layout ─────────────────────────────────── */
.qb-layout {
  max-width: 1220px;
  margin: 24px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ── Sidebar ─────────────────────────────────── */
.qb-sidebar {
  width: 288px;
  flex-shrink: 0;
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: flex-start;
}

/* Sidebar page nav */
.qb-sidebar-nav {
  background: var(--qb-surface);
  border-radius: var(--qb-radius);
  box-shadow: var(--qb-shadow-sm);
  overflow: hidden;
}
.qb-sidebar-nav__title {
  padding: 11px 15px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--qb-text-muted);
  border-bottom: 1px solid var(--qb-border);
}
.qb-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  color: var(--qb-text);
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--qb-border);
  transition: all 0.12s;
  text-decoration: none;
}
.qb-sidebar-nav a:last-child { border-bottom: none; }
.qb-sidebar-nav a:hover { background: var(--qb-blue-light); color: var(--qb-blue); text-decoration: none; }
.qb-sidebar-nav a.active { background: var(--qb-blue-light); color: var(--qb-blue); font-weight: 600; border-left: 3px solid var(--qb-blue); }
.qb-sidebar-nav a svg { flex-shrink: 0; opacity: 0.7; }
.qb-sidebar-nav a.active svg { opacity: 1; }

/* Listing card */
.qb-listing {
  background: var(--qb-surface);
  border-radius: var(--qb-radius);
  box-shadow: var(--qb-shadow);
  overflow: hidden;
}
.qb-listing__head {
  background: linear-gradient(160deg, var(--qb-dark) 0%, var(--qb-dark2) 100%);
  padding: 22px 16px 16px;
  text-align: center;
}
.qb-listing__logo {
  width: 68px;
  height: 68px;
  border-radius: var(--qb-radius-sm);
  margin: 0 auto 12px;
  border: 2px solid rgba(255,255,255,.15);
}
.qb-listing__name {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.qb-stars { display: flex; gap: 2px; justify-content: center; margin-bottom: 5px; }
.qb-rating-text { color: rgba(255,255,255,.6); font-size: 0.75rem; }

/* CTA section */
.qb-listing__cta { padding: 14px 16px; }

/* Buttons */
.qb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 24px;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  border: none;
}
.qb-btn--primary {
  background: var(--qb-green);
  color: #fff;
  box-shadow: 0 3px 12px rgba(6,160,94,.3);
  width: 100%;
}
.qb-btn--primary:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.qb-btn--outline {
  background: transparent;
  color: var(--qb-blue);
  border: 1.5px solid var(--qb-blue);
  width: 100%;
  font-weight: 600;
}
.qb-btn--outline:hover { background: var(--qb-blue-light); text-decoration: none; }

/* Facts table */
.qb-listing__facts { padding: 0 16px 10px; }
.qb-fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--qb-border);
  gap: 8px;
}
.qb-fact:last-child { border-bottom: none; }
.qb-fact__label { color: var(--qb-text-muted); font-size: 0.78rem; font-weight: 500; flex-shrink: 0; }
.qb-fact__value { font-size: 0.78rem; font-weight: 700; text-align: right; color: var(--qb-text); }
.qb-fact__value--green { color: var(--qb-green); }
.qb-fact__value--gold { color: var(--qb-gold); }

/* Payment methods */
.qb-listing__payments { padding: 12px 16px; border-top: 1px solid var(--qb-border); }
.qb-listing__payments-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--qb-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.qb-payments-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.qb-payment-icon {
  height: 26px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius-xs);
  padding: 3px 5px;
  background: #fff;
}

/* Responsible gaming note */
.qb-listing__rg {
  padding: 10px 16px;
  border-top: 1px solid var(--qb-border);
  text-align: center;
  font-size: 0.7rem;
  color: var(--qb-text-muted);
  line-height: 1.5;
}

/* ── Main content ────────────────────────────── */
.qb-main { flex: 1; min-width: 0; }

/* Breadcrumb */
.qb-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--qb-text-muted);
  margin-bottom: 16px;
}
.qb-breadcrumb a { color: var(--qb-text-muted); }
.qb-breadcrumb a:hover { color: var(--qb-blue); text-decoration: none; }
.qb-breadcrumb__sep { color: var(--qb-border); }

/* Hero banner */
.qb-hero {
  border-radius: var(--qb-radius-lg);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: var(--qb-shadow);
  background: var(--qb-dark);
}
.qb-hero picture { display: block; }
.qb-hero img { width: 100%; height: auto; display: block; }
.qb-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px 28px;
  pointer-events: none;
}
.qb-hero__overlay > * { pointer-events: auto; }
.qb-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--qb-green);
  color: #fff;
  padding: 13px 28px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(6,160,94,.45);
  transition: all 0.15s;
}
.qb-hero__cta:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }

/* Info chips bar */
.qb-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.qb-chip {
  background: var(--qb-surface);
  border-radius: var(--qb-radius-sm);
  padding: 12px 14px;
  box-shadow: var(--qb-shadow-xs);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--qb-border);
}
.qb-chip__icon { flex-shrink: 0; color: var(--qb-blue); }
.qb-chip__label { font-size: 0.68rem; color: var(--qb-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.2; margin-bottom: 2px; }
.qb-chip__value { font-size: 0.85rem; font-weight: 700; color: var(--qb-text); line-height: 1.2; }
.qb-chip__value--green { color: var(--qb-green); }
.qb-chip__value--gold { color: var(--qb-gold); }

/* Bonus highlight cards */
.qb-bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.qb-bonus-card {
  background: var(--qb-surface);
  border-radius: var(--qb-radius);
  padding: 18px 16px;
  text-align: center;
  border: 1.5px solid var(--qb-border);
  box-shadow: var(--qb-shadow-xs);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qb-bonus-card:hover { border-color: var(--qb-blue); box-shadow: var(--qb-shadow-sm); }
.qb-bonus-card__icon { margin: 0 auto 10px; }
.qb-bonus-card__amount { font-size: 1rem; font-weight: 800; color: var(--qb-dark); margin-bottom: 3px; }
.qb-bonus-card__label { font-size: 0.75rem; color: var(--qb-text-muted); font-weight: 500; margin-bottom: 14px; }
.qb-bonus-card__link {
  display: inline-flex;
  align-items: center;
  background: var(--qb-blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.qb-bonus-card__link:hover { opacity: 0.88; text-decoration: none; }

/* Article */
.qb-article {
  background: var(--qb-surface);
  border-radius: var(--qb-radius);
  padding: 28px 30px;
  box-shadow: var(--qb-shadow-sm);
  margin-bottom: 20px;
}
.qb-article h1 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.qb-article h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qb-border);
  color: var(--qb-dark2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.qb-article h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.qb-article h3 {
  font-size: 0.975rem;
  color: var(--qb-blue);
  margin: 1.25rem 0 0.5rem;
}
.qb-article p:last-child { margin-bottom: 0; }
.qb-article ul { list-style: none; padding-left: 0; }
.qb-article ul li {
  padding: 3px 0 3px 22px;
  position: relative;
}
.qb-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qb-teal);
}
.qb-article ol { padding-left: 1.5rem; }
.qb-article ol li { margin-bottom: 0.4rem; }
.qb-article table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.875rem; }
.qb-article th { background: var(--qb-bg); font-weight: 600; color: var(--qb-text-muted); font-size: 0.8rem; }
.qb-article th, .qb-article td { padding: 9px 12px; border-bottom: 1px solid var(--qb-border); text-align: left; }
.qb-article td:last-child { font-weight: 600; }

/* Highlight boxes */
.qb-callout {
  border-radius: var(--qb-radius-sm);
  padding: 14px 16px;
  margin: 1.25rem 0;
  border-left: 3px solid;
}
.qb-callout--blue { background: var(--qb-blue-light); border-color: var(--qb-blue); }
.qb-callout--gold { background: var(--qb-gold-light); border-color: var(--qb-gold); }
.qb-callout--green { background: var(--qb-green-light); border-color: var(--qb-green); }
.qb-callout p { margin-bottom: 0; font-size: 0.9rem; }
.qb-callout strong { color: var(--qb-dark); }

/* Feature list (checkmarks) */
.qb-feature-list { list-style: none; padding: 0; }
.qb-feature-list li {
  padding: 5px 0 5px 26px;
  position: relative;
}
.qb-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%2306a05e'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Steps / ordered list visual */
.qb-steps { list-style: none; padding: 0; counter-reset: steps; }
.qb-steps li {
  padding: 8px 0 8px 44px;
  position: relative;
  counter-increment: steps;
  border-bottom: 1px solid var(--qb-border);
}
.qb-steps li:last-child { border-bottom: none; }
.qb-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 9px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--qb-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Games grid */
.qb-games-section { margin-bottom: 20px; }
.qb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.qb-section-head h2 { font-size: 1.1rem; margin: 0; }
.qb-section-head a { font-size: 0.82rem; color: var(--qb-blue); }
.qb-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.qb-game-card {
  border-radius: var(--qb-radius-sm);
  overflow: hidden;
  background: var(--qb-surface);
  box-shadow: var(--qb-shadow-xs);
  text-decoration: none;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.qb-game-card:hover { transform: translateY(-3px); box-shadow: var(--qb-shadow); text-decoration: none; }
.qb-game-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.qb-game-card__name {
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--qb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live casino thumbnails */
.qb-live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1.25rem 0;
}
.qb-live-card {
  border-radius: var(--qb-radius-sm);
  overflow: hidden;
  background: var(--qb-dark);
  position: relative;
  aspect-ratio: 16/9;
}
.qb-live-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.qb-live-card__label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

/* FAQ accordion */
.qb-faq { margin-bottom: 20px; }
.qb-faq-list { display: flex; flex-direction: column; gap: 6px; }
.qb-faq-item {
  background: var(--qb-surface);
  border-radius: var(--qb-radius-sm);
  border: 1px solid var(--qb-border);
  overflow: hidden;
}
.qb-faq-item details {}
.qb-faq-item summary {
  padding: 13px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--qb-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.qb-faq-item summary::-webkit-details-marker { display: none; }
.qb-faq-item summary::after {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23637080' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s;
}
.qb-faq-item details[open] summary::after { transform: rotate(180deg); }
.qb-faq-item details[open] summary { color: var(--qb-blue); border-bottom: 1px solid var(--qb-border); }
.qb-faq-item__body {
  padding: 12px 16px;
  font-size: 0.86rem;
  color: var(--qb-text-muted);
  line-height: 1.65;
}
.qb-faq-item__body p { margin-bottom: 0; }

/* Payment methods full section */
.qb-payment-section {
  background: var(--qb-surface);
  border-radius: var(--qb-radius);
  padding: 22px 26px;
  box-shadow: var(--qb-shadow-sm);
  margin-bottom: 20px;
}
.qb-payment-section h2 { font-size: 1.1rem; margin-bottom: 16px; }
.qb-payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qb-payment-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius-sm);
  background: var(--qb-bg);
  font-size: 0.8rem;
  font-weight: 500;
}
.qb-payment-badge img { height: 20px; width: auto; max-width: 36px; object-fit: contain; }

/* Footer */
.qb-footer {
  background: var(--qb-dark);
  color: rgba(255,255,255,.6);
  margin-top: 48px;
}
.qb-footer__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 40px 20px;
}
.qb-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.qb-footer__brand {}
.qb-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-decoration: none;
}
.qb-footer__logo img { border-radius: var(--qb-radius-sm); width: 36px; height: 36px; }
.qb-footer__brand p { font-size: 0.8rem; line-height: 1.7; }
.qb-footer__col-title {
  color: rgba(255,255,255,.85);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.qb-footer__col a {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 0.82rem;
  margin-bottom: 8px;
  transition: color 0.12s;
}
.qb-footer__col a:hover { color: #fff; text-decoration: none; }
.qb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.76rem;
}
.qb-footer__bottom a { color: rgba(255,255,255,.45); }
.qb-footer__bottom a:hover { color: rgba(255,255,255,.75); text-decoration: none; }
.qb-footer__rg {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qb-badge-18 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,.8);
  flex-shrink: 0;
}

.qb-footer__rg-link {
  color: rgba(255,255,255,.6);
  font-size: 0.72rem;
  text-decoration: underline;
  white-space: nowrap;
}
.qb-footer__rg-link:hover { color: #fff; }

/* ── Author signature ────────────────────────── */
.qb-author-sig {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--qb-text-muted);
  background: var(--qb-bg);
  border-left: 3px solid var(--qb-blue);
  border-radius: 0 var(--qb-radius-sm) var(--qb-radius-sm) 0;
  padding: 9px 14px;
  margin-bottom: 1.25rem;
}
.qb-author-sig svg { flex-shrink: 0; color: var(--qb-blue); }
.qb-author-sig a { color: var(--qb-blue); font-weight: 600; text-decoration: none; }
.qb-author-sig a:hover { text-decoration: underline; }

/* ── Sticky CTA (center bottom) ──────────────── */
.qb-sticky-cta {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 160;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--qb-green);
  color: #fff;
  padding: 13px 28px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(6,160,94,.45), 0 2px 8px rgba(0,0,0,.15);
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  animation: qb-cta-pulse 2.8s ease-in-out infinite;
}
.qb-sticky-cta:hover { opacity: 0.92; transform: translateX(-50%) translateY(-2px); text-decoration: none; }
.qb-sticky-cta__bonus {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
  border-left: 1px solid rgba(255,255,255,.4);
  padding-left: 10px;
  margin-left: 2px;
}
@keyframes qb-cta-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(6,160,94,.45), 0 2px 8px rgba(0,0,0,.15); }
  50%       { box-shadow: 0 8px 32px rgba(6,160,94,.65), 0 4px 12px rgba(0,0,0,.18); }
}

/* ── Scroll-to-top button ─────────────────────── */
.qb-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 160;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--qb-surface);
  border: 1.5px solid var(--qb-border);
  box-shadow: var(--qb-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--qb-text);
  transition: all 0.15s;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
.qb-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.qb-scroll-top:hover { background: var(--qb-blue); color: #fff; border-color: var(--qb-blue); }

/* ── 404 page ────────────────────────────────── */
.qb-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 20px 80px;
  max-width: 540px;
  margin: 0 auto;
}
.qb-404__icon { margin-bottom: 24px; }
.qb-404__code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--qb-blue);
  opacity: 0.15;
  letter-spacing: -4px;
  margin-bottom: 4px;
}
.qb-404__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--qb-dark);
  margin: 0 0 12px;
}
.qb-404__text {
  font-size: 16px;
  color: var(--qb-muted);
  margin: 0 0 32px;
  line-height: 1.6;
}
.qb-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.qb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  border: 2px solid transparent;
}
.qb-btn:hover { opacity: 0.86; transform: translateY(-1px); }
.qb-btn--primary { background: var(--qb-blue); color: #fff; border-color: var(--qb-blue); }
.qb-btn--outline { background: transparent; color: var(--qb-blue); border-color: var(--qb-blue); }
.qb-btn--green { background: var(--qb-green); color: #fff; border-color: var(--qb-green); }
.qb-404__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  overflow: hidden;
  background: var(--qb-white);
}
.qb-404__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--qb-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--qb-border);
  transition: background 0.15s, color 0.15s;
}
.qb-404__nav a:last-child { border-bottom: none; }
.qb-404__nav a:hover { background: var(--qb-bg); color: var(--qb-blue); }
.qb-404__nav svg { flex-shrink: 0; color: var(--qb-blue); }

/* ── Author page ─────────────────────────────── */
.qb-main > .qb-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  width: 100%;
  box-sizing: border-box;
}
.qb-author-page {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
.qb-author-page .qb-article {
  text-align: center;
}
.qb-author-page .qb-article p,
.qb-author-page .qb-article h2 {
  text-align: center;
}
.qb-author-page .qb-author-reviews {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.qb-author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--qb-white);
  border: 1px solid var(--qb-border);
  border-radius: var(--qb-radius);
  padding: 40px 32px 32px;
  margin-bottom: 28px;
  box-shadow: var(--qb-shadow);
}
.qb-author-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--qb-bg);
  border: 4px solid var(--qb-blue);
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,119,182,.18);
}
.qb-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qb-author-card__name { font-size: 26px; font-weight: 700; color: var(--qb-dark); margin: 0 0 6px; }
.qb-author-card__title { font-size: 15px; font-weight: 600; color: var(--qb-blue); margin: 0 0 16px; }
.qb-author-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.qb-author-card__tags span {
  padding: 4px 12px;
  background: var(--qb-blue-light);
  color: var(--qb-blue);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(0,119,182,.2);
}
.qb-author-card__meta { font-size: 13px; color: var(--qb-muted); margin: 0; }

.qb-author-reviews { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.qb-author-reviews li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--qb-blue);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--qb-border);
  border-radius: 8px;
  background: var(--qb-bg);
  transition: background 0.2s, border-color 0.2s;
}
.qb-author-reviews li a:hover { background: var(--qb-white); border-color: var(--qb-blue); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 960px) {
  .qb-layout { flex-direction: column; gap: 16px; }
  .qb-sidebar { display: none; }
  .qb-listing { flex-shrink: 0; min-width: 280px; max-width: 350px; }
  .qb-header__nav { display: none; }
  .qb-hamburger { display: flex; }
  .qb-games-grid { grid-template-columns: repeat(3, 1fr); }
  .qb-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .qb-header__auth { margin-left: auto; margin-right: 8px; gap: 6px; }
  .qb-header__login { padding: 7px 12px; font-size: 13px; }
  .qb-header__register { padding: 7px 12px; font-size: 13px; }
}

@media (max-width: 680px) {
  .qb-layout { padding: 0 12px; margin: 12px auto; }
  .qb-article { padding: 20px 16px; }
  .qb-info-bar { grid-template-columns: repeat(2, 1fr); }
  .qb-bonus-grid { grid-template-columns: 1fr; }
  .qb-games-grid { grid-template-columns: repeat(2, 1fr); }
  .qb-live-grid { grid-template-columns: 1fr 1fr; }
  .qb-footer__grid { grid-template-columns: 1fr; }
  .qb-footer__rg { margin-left: 0; }
  .qb-header__inner { padding: 0 12px; }
}
