:root {
	--bg: #15110d;
	--bg-2: #1b1610;
	--surface: #1f1a14;
	--surface-2: #2a231a;
	--border: #3a3024;
	--accent: #ffb800;
	--accent-2: #f5a623;
	--accent-ink: #1a1106;
	--text: #ffffff;
	--text-secondary: #b8b3aa;
	--text-muted: #8a8478;
	--danger: #ef4444;
	--success: #22c55e;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	--container: 1200px;
	--header-h: 72px;
	/* Align main + sidebar under sticky header (same top gap on hero and sidebar column) */
	--page-shell-pad-top: 20px;
	--prose-max-width: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background: radial-gradient(1200px 800px at 10% -10%, rgba(255, 184, 0, 0.08), transparent 60%),
		radial-gradient(900px 600px at 110% 10%, rgba(245, 166, 35, 0.06), transparent 60%),
		var(--bg);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
	line-height: 1.25; color: var(--text); font-weight: 700; letter-spacing: -0.01em;
}
h1, h2, h3 { margin: 0.65em 0; }
h4, h5, h6 { margin: 1em 0; }
h1 { font-size: clamp(32px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 2.8vw, 32px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 1em 0; color: var(--text-secondary); }
strong { color: var(--text); }
ul, ol { color: var(--text-secondary); padding-left: 1.2em; margin: 1em 0; }
ul li, ol li { margin: .5em 0; }
:where(h1, h2, h3, h4, h5, h6, p, ul, ol):first-child { margin-top: 0; }
:where(h1, h2, h3, h4, h5, h6, p, ul, ol):last-child { margin-bottom: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 32px 0; }
.section--tight { padding: 32px 0; }
.section-title { margin-bottom: 24px; }
.section-title h2 { margin: 0; display: inline-flex; align-items: center; gap: .5em; }
.section-title--row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-title__icon { color: var(--accent); }
.section-link { font-size: 14px; color: var(--text-secondary); }
.section-link:hover { color: var(--accent); }

.btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 26px; min-height: 48px; border-radius: 12px;
	font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: .01em;
	cursor: pointer; border: 0; text-decoration: none; white-space: nowrap;
	transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:active { transform: translateY(0); }

.btn-primary {
	background: linear-gradient(135deg, #ffc633 0%, var(--accent) 55%, var(--accent-2) 100%);
	color: var(--accent-ink);
	box-shadow: 0 8px 20px rgba(255, 184, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover {
	color: var(--accent-ink); transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(255, 184, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .3);
	background: linear-gradient(135deg, #ffd050 0%, #ffb800 55%, #f5a623 100%);
}

.btn-ghost {
	background: rgba(255, 255, 255, .02); color: var(--text);
	border: 1px solid var(--border);
	backdrop-filter: blur(6px);
}
.btn-ghost:hover {
	border-color: var(--accent); color: var(--accent);
	background: rgba(255, 184, 0, .08); transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.btn-lg { padding: 16px 30px; min-height: 54px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; padding: 16px 20px; min-height: 52px; }

.main-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(21, 17, 13, 0.85);
	border-bottom: 1px solid var(--border);
}
.main-header::before {
	content: '';
	position: absolute; inset: 0;
	backdrop-filter: saturate(140%) blur(10px);
	z-index: -1; pointer-events: none;
}
.header-container {
	max-width: var(--container); margin: 0 auto; padding: 12px 20px;
	display: flex; align-items: center; gap: 24px; min-height: var(--header-h);
}
.header-brand { display: inline-flex; align-items: center; }
.header-logo-img { height: 36px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.mobile-toggle { margin-left: auto; }
.nav-menu { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; justify-content: center; }
.nav-menu li a {
	display: inline-flex; padding: 10px 14px; border-radius: 8px;
	color: var(--text); font-weight: 600; font-size: 14px;
}
.nav-menu li a:hover, .nav-menu li a.is-active { background: var(--surface); color: var(--accent); }
.header-actions { display: flex; gap: 8px; }
.mobile-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-overlay { display: none; }
.mobile-menu-overlay.is-open { display: none; }

.hero-section {
	padding: 28px 0 34px;
	margin: 0 0 24px;
	background:
		linear-gradient(165deg, rgba(42, 35, 26, 0.7) 0%, rgba(31, 26, 20, 0.45) 50%, transparent 100%),
		radial-gradient(720px 200px at 12% 0%, rgba(255, 184, 0, 0.07), transparent 60%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
	box-sizing: border-box;
}
.page-main .hero-section {
	padding: 0;
	margin: 0 0 24px;
	background: none;
	border: none;
	box-shadow: none;
	border-radius: 0;
}
.page-main .hero-section > .container {
	padding: 28px 20px 34px;
	margin-left: auto;
	margin-right: auto;
	background:
		linear-gradient(165deg, rgba(42, 35, 26, 0.7) 0%, rgba(31, 26, 20, 0.45) 50%, transparent 100%),
		radial-gradient(720px 200px at 12% 0%, rgba(255, 184, 0, 0.07), transparent 60%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
	box-sizing: border-box;
}
.page-main .container > .prose {
	max-width: none;
}
.page-main .hero-section + .section {
	padding-top: 16px;
}
.hero-section .breadcrumb + .hero-label,
.hero-section .breadcrumb + h1 { margin-top: 12px; }
.hero-label {
	display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
.hero-section .hero-label + h1 { margin-top: 0.15em; }
.hero-lead { font-size: 18px; color: var(--text-secondary); max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.breadcrumb {
	font-size: 13px; color: var(--text-muted); margin: 0 0 6px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--border); }

/* Jabula unique hero */
.jb-hero { padding: 64px 0 28px; position: relative; overflow: hidden; }
.jb-hero::after {
	content: ''; position: absolute; left: -80px; bottom: -40px; width: 280px; height: 280px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255,184,0,.18), transparent 70%);
	pointer-events: none; z-index: 0;
}
.jb-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center; }
.jb-hero__copy h1 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: .35em; }
.jb-accent {
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	font-style: italic;
}
.jb-chip {
	display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
	padding: 6px 12px; border-radius: 999px; background: rgba(255,184,0,.14);
	color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	border: 1px solid rgba(255,184,0,.35); margin-bottom: 16px;
}
.jb-hero__lead { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin-bottom: 22px; }
.jb-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.jb-hero__tags {
	list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px;
	color: var(--text-muted); font-size: 13px;
}
.jb-hero__tags li { position: relative; padding-left: 14px; margin: 0; }
.jb-hero__tags li::before {
	content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.jb-hero__media {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1; width: 100%; max-width: 460px; margin-left: auto;
}
.jb-hero__media img {
	width: 100%; height: 100%; object-fit: contain; object-position: center;
	border-radius: var(--radius);
}

/* Unique offers (bonus banners) */
.section--offers { padding-top: 8px; }
.jb-offers {
	display: grid; gap: 16px;
	grid-template-columns: 1.4fr 1fr 1fr;
	grid-template-areas:
		"hero a b"
		"hero c c";
}
.jb-offer {
	position: relative; padding: 22px; border-radius: var(--radius);
	display: flex; flex-direction: column; gap: 10px; overflow: hidden; isolation: isolate;
	background: var(--surface); border: 1px solid var(--border); color: var(--text);
	box-shadow: var(--shadow); min-height: 170px;
}
.jb-offer::before {
	content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(255,184,0,.28), transparent 70%); z-index: 0;
}
.jb-offer > * { position: relative; z-index: 1; }
.offer--hero { grid-area: hero; min-height: 360px; background: linear-gradient(160deg, #2a1a05 0%, #1a1106 55%, #120d06 100%); border-color: rgba(255,184,0,.4); }
.offer--hero::before { width: 380px; height: 380px; right: -120px; top: -120px; background: radial-gradient(closest-side, rgba(255,184,0,.4), transparent 70%); }
.offer--a { grid-area: a; }
.offer--b { grid-area: b; }
.offer--c { grid-area: c; }
.jb-offer__ribbon {
	position: absolute; z-index: 2; top: 14px; right: -32px; transform: rotate(35deg);
	background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 11px;
	letter-spacing: .12em; padding: 4px 40px;
}
.offer--hero .jb-offer__ribbon { background: #fff; color: #1a1106; }
.jb-offer__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.offer--hero .jb-offer__label { color: var(--accent); }
.jb-offer__title { margin: 0; font-size: 22px; font-weight: 800; color: var(--text); }
.offer--hero .jb-offer__title { font-size: clamp(28px, 3.4vw, 40px); }
.jb-offer__sub { margin: 0; color: var(--text-secondary); font-size: 14px; }
.jb-offer__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.jb-offer__cta { align-self: flex-start; }
.jb-offer__note { font-size: 11px; color: var(--text-muted); }

.bonus-banners {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.bonus-banner {
	position: relative; padding: 24px; border-radius: var(--radius);
	min-height: 180px; display: flex; flex-direction: column; gap: 10px;
	color: var(--accent-ink); overflow: hidden; isolation: isolate;
	box-shadow: var(--shadow);
}
.bonus-banner::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(135deg, #ffb800, #f5a623);
}
.banner--orange::before { background: linear-gradient(135deg, #ff7a00, #ff4e00); }
.banner--plum::before   { background: linear-gradient(135deg, #a8327a, #5a1d52); }
.banner--amber::before  { background: linear-gradient(135deg, #ffb800, #b86e00); }
.bonus-banner__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.bonus-banner__title { font-size: 22px; font-weight: 800; margin: 0; color: #1a1106; }
.bonus-banner__cta { align-self: flex-start; margin-top: auto; background: #1a1106; color: #ffd24d; }
.bonus-banner__cta:hover { background: #000; color: var(--accent); }
.bonus-banner__note { font-size: 11px; opacity: .7; }

.winners-tabs { display: inline-flex; background: var(--surface); padding: 4px; border-radius: 10px; margin-bottom: 16px; gap: 4px; }
.winners-tab {
	padding: 10px 16px; border: 0; border-radius: 8px; background: transparent;
	color: var(--text-secondary); font-weight: 700; cursor: pointer; font-size: 14px;
}
.winners-tab.is-active { background: var(--accent); color: var(--accent-ink); }
.winners-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.winners-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.winners-table th, .winners-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.winners-table th { color: var(--text-muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.winners-table tbody tr:last-child td { border-bottom: 0; }
.winners-amount { color: var(--accent); font-weight: 700; }

.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promo-card {
	position: relative; padding: 22px; border-radius: var(--radius); min-height: 180px;
	display: flex; flex-direction: column; gap: 8px; color: var(--accent-ink);
	overflow: hidden; isolation: isolate; box-shadow: var(--shadow);
}
.promo-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #ffb800, #f5a623); }
.promo--green::before { background: linear-gradient(135deg, #c77a28, #6d3e14); }
.promo--blue::before  { background: linear-gradient(135deg, #f5a623, #b86e00); }
.promo--pink::before  { background: linear-gradient(135deg, #c84b6d, #7d2a3e); }
.promo--red::before   { background: linear-gradient(135deg, #e84a2a, #a12a15); }
.promo-card__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; opacity: .85; color: rgba(0,0,0,.75); }
.promo-card__title { margin: 0; font-size: 19px; font-weight: 800; color: #1a1106; }
.promo-card__cta { align-self: flex-start; margin-top: auto; background: #1a1106; color: #ffd24d; }
.promo-card__cta:hover { background: #000; color: var(--accent); }
.promo-card__note { font-size: 11px; opacity: .8; color: rgba(0,0,0,.7); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.feature-card__icon {
	width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 184, 0, .12);
	color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
	margin-bottom: 6px;
}
.feature-card h3 { font-size: 18px; margin: 0; }
.feature-card p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* Unique stats strip */
.jb-stats { border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); padding: 36px 0; }
.jb-stats__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.jb-stat { padding: 6px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--border); }
.jb-stat:first-child { border-left: 0; padding-left: 0; }
.jb-stat:last-child { padding-right: 0; }
.jb-stat__n {
	font-family: 'Inter', monospace; font-size: 13px; letter-spacing: .14em;
	color: var(--accent); font-weight: 800;
}
.jb-stat strong { font-size: 17px; color: var(--text); }
.jb-stat__t { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* Section heading with accent dash */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.jb-h2 { margin: 0; font-size: clamp(22px, 2.8vw, 30px); }
.jb-h2__dash { flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }

.prose { max-width: var(--prose-max-width); }
.prose p, .prose li { color: var(--text-secondary); }
.prose h2 { position: relative; padding-left: 16px; }
.prose h2::before {
	content: ''; position: absolute; left: 0; top: .25em; bottom: .25em;
	width: 3px; border-radius: 3px; background: var(--accent);
}
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-2); }
.prose a.btn-primary { color: var(--accent-ink); }
.prose a.btn-primary:hover { color: var(--accent-ink); }
.prose a.btn-ghost { color: var(--text); }
.prose a.btn-ghost:hover { color: var(--accent); }
.prose--wide { max-width: none; }

/* Offer grid + stat strip embedded in long-form prose (e.g. homepage) */
.prose .prose-embed { margin: 2rem 0; }
.prose .prose-embed--offers { margin: 2.25rem 0; }
.jb-stats.jb-stats--in-prose {
	padding: 26px 0;
	border-top: 1px dashed var(--border);
	border-bottom: 1px dashed var(--border);
}

.prose .content-table-wrap {
	overflow-x: auto;
	margin: 1.35em 0;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
}
.prose table.content-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 15px;
}
.prose table.content-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
	color: var(--text-secondary);
}
.prose table.content-table tr:last-child td { border-bottom: 0; }
.prose table.content-table td:first-child {
	width: 32%;
	max-width: 220px;
	color: var(--text-muted);
	font-weight: 600;
	font-size: 14px;
}
.prose table.content-table td:last-child { color: var(--text); }

.faq-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.faq-item {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 4px 18px 4px 22px; position: relative;
}
.faq-item::before {
	content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
	background: var(--border); border-radius: 3px; transition: background .2s;
}
.faq-item[open] { border-color: rgba(255, 184, 0, .35); }
.faq-item[open]::before { background: var(--accent); }
.faq-q {
	display: flex; align-items: center; gap: 16px;
	padding: 16px 0; cursor: pointer; font-weight: 700; color: var(--text); list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-num {
	font-size: 12px; letter-spacing: .14em; color: var(--accent); font-weight: 800;
	min-width: 28px; flex: 0 0 auto;
}
.faq-q__text {
	flex: 1; margin: 0; font-size: 16px; font-weight: 700;
	line-height: 1.35; color: var(--text); letter-spacing: 0;
}
.faq-chevron { color: var(--text-secondary); transition: transform .2s; flex: 0 0 auto; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 0 16px 44px; color: var(--text-secondary); font-size: 15px; }
.faq-a p:last-child { margin-bottom: 0; }

.section + .section--faq {
	margin-top: -28px;
}
.section--faq {
	padding-top: 20px;
	padding-bottom: 56px;
}
.section--faq .container {
	background: linear-gradient(165deg, rgba(42, 35, 26, 0.5) 0%, rgba(31, 26, 20, 0.28) 45%, var(--surface) 100%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px 20px 38px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* Article inline illustrations */
.article-img { margin: 28px 0; }
.prose--home .article-img {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}
.article-img img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
}

.article-img-prompt {
	border: 1px dashed var(--border);
	border-radius: var(--radius-sm);
	padding: 16px;
	margin: 28px 0;
	background: var(--surface);
}
.img-prompt-badge {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--accent);
	font-weight: 700;
	margin-bottom: 8px;
}
.img-prompt-text { margin: 0; color: var(--text-secondary); font-size: 14px; font-style: italic; line-height: 1.55; }

.site-footer {
	margin-top: 60px; background: var(--bg-2); border-top: 1px solid var(--border);
	padding: 48px 0 20px;
}
.footer-cols {
	display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 36px;
	padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.footer-col__title {
	font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--text-muted); font-weight: 800; margin: 0 0 14px;
}
.footer-col--brand img { height: 34px; width: auto; margin-bottom: 14px; }
.footer-about { color: var(--text-secondary); font-size: 13px; line-height: 1.65; margin: 0 0 12px; }
.footer-about + .footer-about { margin-bottom: 16px; }
.footer-col--nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col--nav li { margin: 0; }
.footer-col--nav a { color: var(--text-secondary); font-size: 14px; }
.footer-col--nav a:hover { color: var(--accent); }

.footer-contact-list { font-style: normal; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-row { display: flex; flex-direction: column; gap: 2px; }
.footer-contact-label {
	font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--text-muted); font-weight: 700;
}
.footer-contact-val { color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.footer-contact-val a { color: var(--text); }
.footer-contact-val a:hover { color: var(--accent); }

.footer-copy { text-align: center; margin: 22px 0 0; font-size: 12px; color: var(--text-muted); }

.social-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.social-link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; background: var(--surface);
	color: var(--text-secondary); border: 1px solid var(--border); transition: .2s;
}
.social-link:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.fab-stack { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 60; }
.fab {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; padding: 0; border-radius: 50%;
	background: var(--accent); color: var(--accent-ink);
	box-shadow: var(--shadow); border: 0; cursor: pointer;
	transition: background .15s ease, transform .15s ease, color .15s ease;
}
.fab:hover { background: var(--accent-2); transform: translateY(-2px); }
.fab--top { background: var(--accent); color: var(--accent-ink); }
.fab--top:hover { background: var(--accent-2); color: var(--accent-ink); }

.auth-wrap { max-width: 480px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.auth-wrap h1 { font-size: 28px; margin: 0 0 6px; text-align: center; }
.auth-wrap .sub { text-align: center; margin-bottom: 22px; color: var(--text-secondary); font-size: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
	padding: 12px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--border);
	border-radius: 10px; font: inherit; outline: none; transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.auth-switch { text-align: center; color: var(--text-secondary); margin-top: 14px; font-size: 14px; }

.app-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.app-badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text);
}
.app-badge:hover { border-color: var(--accent); color: var(--accent); }
.app-badge strong { display: block; font-size: 14px; }
.app-badge span { display: block; font-size: 12px; color: var(--text-muted); }
.app-preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.app-preview img { border-radius: 10px; }

.page-shell {
	max-width: var(--container); margin: 0 auto;
	padding: var(--page-shell-pad-top) 20px 0;
	display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: flex-start;
}
.page-main { min-width: 0; }
.page-sidebar {
	position: sticky;
	top: calc(var(--header-h) + var(--page-shell-pad-top));
	display: flex; flex-direction: column; gap: 16px;
	max-height: calc(100vh - var(--header-h) - var(--page-shell-pad-top) - 24px);
	overflow-y: auto; padding-right: 4px;
}
.page-sidebar::-webkit-scrollbar { width: 6px; }
.page-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sidebar-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
	position: relative; border-top: 3px solid var(--accent);
}
.sidebar-card--cta { background: linear-gradient(135deg, rgba(255,184,0,.15), rgba(245,166,35,.05)); border-color: rgba(255,184,0,.4); border-top-color: var(--accent); }
.sidebar-card--toc { padding: 18px 18px 14px; }
.sidebar-title { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); font-weight: 800; }
.sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sidebar-list a { color: var(--text); display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.sidebar-list a:hover { background: var(--surface-2); color: var(--accent); }

/* TOC */
.toc { font-size: 14px; }
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; }
.toc-list li {
	counter-increment: toc; position: relative; margin: 0;
	border-left: 2px solid var(--border); padding-left: 12px;
}
.toc-list li:not(:last-child) { padding-bottom: 2px; }
.toc-list a {
	display: block; padding: 8px 4px; font-size: 14px; line-height: 1.35;
	color: var(--text-secondary); transition: color .15s ease;
	overflow: hidden; text-overflow: ellipsis;
}
.toc-list a::before {
	content: counter(toc, decimal-leading-zero);
	display: inline-block; margin-right: 8px; font-size: 11px;
	font-weight: 800; letter-spacing: .08em; color: var(--text-muted);
	transition: color .15s ease;
}
.toc-list a:hover { color: var(--text); }
.toc-list a:hover::before { color: var(--accent); }
.toc-list li:has(a.is-active) { border-left-color: var(--accent); }
.toc-list a.is-active { color: var(--accent); }
.toc-list a.is-active::before { color: var(--accent); }

.author-hero { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; }
.author-hero img { border-radius: var(--radius); width: 100%; height: auto; }
.author-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 13px; margin-top: 10px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.info-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.info-card h3 { font-size: 18px; margin: 0 0 8px; }
.info-card p { margin: 0; color: var(--text-secondary); font-size: 14px; }

.support-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 30px; }
.support-channel {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
	display: flex; flex-direction: column; gap: 6px;
}
.support-channel strong { color: var(--text); }
.support-channel a { color: var(--accent); font-weight: 600; }

.error-hero { text-align: center; padding: 80px 0; }
.error-hero .big { font-size: clamp(80px, 14vw, 180px); color: var(--accent); line-height: 1; font-weight: 800; letter-spacing: -.03em; }

@media (max-width: 1024px) {
	.bonus-banners, .promo-grid { grid-template-columns: repeat(2, 1fr); }
	.jb-offers {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"hero hero"
			"a b"
			"c c";
	}
	.jb-stats__row { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
	.jb-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
	.jb-hero { padding-top: 24px; }
	.jb-hero__inner { grid-template-columns: 1fr; }
	.jb-hero__media { margin: 0 auto; max-width: 360px; }
	.page-shell { grid-template-columns: 1fr; }
	.page-sidebar { position: static; }
	.app-hero { grid-template-columns: 1fr; }
	.author-hero { grid-template-columns: 1fr; text-align: left; }
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
	.footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	.main-nav { display: none; }
	.header-actions { display: none; }
	.mobile-toggle { display: inline-flex; margin-left: auto; }

	.main-nav.is-open {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: var(--header-h);
		left: 0; right: 0;
		bottom: 80px;
		background: var(--bg-2);
		z-index: 200;
		overflow-y: auto;
		padding: 12px 0 16px;
		border-top: 1px solid var(--border);
	}
	.main-nav.is-open .nav-menu {
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100%;
	}
	.main-nav.is-open .nav-menu li { width: 100%; }
	.main-nav.is-open .nav-menu li a {
		display: block;
		padding: 16px 24px;
		font-size: 17px;
		font-weight: 600;
		color: var(--text);
		border-bottom: 1px solid var(--border);
		border-radius: 0;
	}
	.main-nav.is-open .nav-menu li a:hover,
	.main-nav.is-open .nav-menu li a.is-active {
		background: var(--surface);
		color: var(--accent);
	}

	.header-actions.is-open {
		display: flex;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		height: 80px;
		padding: 14px 20px;
		background: var(--bg-2);
		border-top: 1px solid var(--border);
		z-index: 201;
		gap: 12px;
		align-items: center;
	}
	.header-actions.is-open .btn { flex: 1; text-align: center; }
	.section { padding: 20px 0; }
	.hero-section { padding: 16px 0 22px; margin-bottom: 18px; }
	.page-main .hero-section { margin-bottom: 18px; }
	.page-main .hero-section > .container { padding: 18px 16px 22px; }
	.winners-table th:nth-child(2), .winners-table td:nth-child(2) { display: none; }
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
	.footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.bonus-banners, .promo-grid { grid-template-columns: 1fr; }
	.bonus-banner, .promo-card { min-height: 160px; }
	.jb-offers {
		grid-template-columns: 1fr;
		grid-template-areas: "hero" "a" "b" "c";
	}
	.offer--hero { min-height: 260px; }
	.jb-stats__row { grid-template-columns: 1fr; row-gap: 14px; }
	.jb-stat { border-left: 0; padding-left: 0; padding-right: 0; }
	.nav-menu { gap: 2px; }
	.header-logo-img { height: 30px; }
}
