/* WowBet UZ: dark purple + yellow. Palette from design.md */
:root {
  --bg: #1c0434;
  --bg-deep: #040404;
  --text: #fcfcfc;
  --muted: #eaeaf9;
  --accent: #ffcf3d;
  --accent-hover: #ffe07a;
  --accent-text: #1c0434;
  --purple: #b500ff;
  --header-bg: #2c0444;
  --footer-bg: #2c0444;
  --card-bg: #3c045c;
  --card-border: #6a1b9a;
  --border: #5a1688;
  --link: #ffcf3d;
  --link-hover: #ffe07a;
  --trow-bg: #4c0474;
  --trow-secondary-bg: #5a0a88;
  --thead-bg: #ffcf3d;
  --thead-text: #1c0434;
  --thead-border: #ffe07a;
  --trow-border: #8a3cc0;
  --radius: 12px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; color: var(--accent); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--purple); }
.btn-secondary:hover { background: rgba(181, 0, 255, .22); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Header */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; }
.menu-toggle {
  min-width: 44px; min-height: 44px; background: transparent; color: var(--text);
  border: 1px solid var(--purple); border-radius: 10px; font-size: 1.4rem; cursor: pointer;
}
.header-panel { display: none; width: 100%; padding: 8px 0 16px; }
.header-panel.is-open { display: block; }
.header-inner { flex-wrap: wrap; }
.main-nav ul, .footer-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 4px; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
.logo { order: 1; }
.menu-toggle { order: 2; margin-left: auto; }
.header-actions { order: 3; display: flex; flex-direction: row; gap: 8px; width: 100%; padding: 0 0 10px; }
.header-actions .btn { flex: 1 1 0; min-height: 40px; padding: 8px 10px; font-size: .85rem; white-space: nowrap; }
.header-panel { order: 4; }
.main-nav .sub-menu { padding-left: 16px; }
.main-nav .sub-menu a { font-size: .92rem; color: var(--muted); }
.has-sub > a::after { content: " \25BE"; font-size: .8em; }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0 0; font-size: .9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--link); }

/* Footer socials */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.footer-social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--purple); border-radius: 999px; color: var(--text); text-decoration: none; }
.footer-social a:hover { background: rgba(181, 0, 255, .22); color: var(--text); }

/* Mobile app bar (mobile widths only) */
.app-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .app-bar {
    display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px; background: var(--header-bg); border-top: 1px solid var(--purple);
  }
  .app-bar img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
  .app-bar .app-bar-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .95rem; line-height: 1.2; color: var(--text); }
  .app-bar .app-bar-title small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
  .app-bar .btn { flex: none; min-height: 44px; padding: 8px 16px; font-size: .95rem; }
}

/* Hero */
.hero { padding: 28px 0 24px; background: linear-gradient(160deg, var(--bg) 0%, var(--header-bg) 100%); }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero-media img { border-radius: var(--radius); width: 100%; }

/* Sections */
.section { padding: 32px 0; }
.section:nth-of-type(even) { background: rgba(60, 4, 92, .35); }
.section-intro { max-width: 820px; }
.section .container > :is(h2, h3, p) { max-width: 820px; }
.toc { box-sizing: border-box; width: calc(100% - 32px); max-width: calc(var(--max) - 32px); margin: 20px auto 4px; padding: 16px 20px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); }
.toc strong { display: block; margin: 0 0 8px; color: var(--text); }
.toc ol { margin: 0; padding-left: 20px; columns: 1; }
.toc li { margin: 4px 0; }

/* Cards */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0; }
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column;
}
.card h3 { color: var(--text); overflow-wrap: break-word; }
.card p { flex: 1 1 auto; }
.card .btn { align-self: flex-start; margin-top: 4px; }
.cards-pay .card h3 { color: var(--accent); }

/* Table */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--trow-border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
thead th { background: var(--thead-bg); color: var(--thead-text); border: 1px solid var(--thead-border); padding: 10px 12px; text-align: left; }
tbody td { padding: 10px 12px; border: 1px solid var(--trow-border); color: var(--text); background: var(--trow-bg); }
tbody tr:nth-child(even) td { background: var(--trow-secondary-bg); }

/* How-to */
.how-to { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.how-to li { counter-increment: step; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px 16px 16px 56px; position: relative; }
.how-to li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.how-to li .btn { margin-top: 10px; }
.promo-banner { position: relative; overflow: hidden; border: 1px solid var(--card-border); border-radius: var(--radius); background: #0b0220; min-height: 230px; margin-bottom: 24px; display: flex; align-items: center; }
.promo-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo-banner .promo-text { position: relative; z-index: 1; padding: 24px 20px; max-width: 60%; }
.promo-banner .promo-title { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: var(--text); margin: 0 0 8px; }
.promo-banner .promo-sub { display: block; color: var(--text); margin: 0 0 16px; }
@media (min-width: 960px) { .promo-banner { min-height: 280px; } .promo-banner .promo-text { padding: 32px 48px; } .promo-banner .promo-title { font-size: 2.2rem; } }
.how-to .step-img { margin-top: 12px; border-radius: var(--radius); width: 100%; max-width: 320px; }
.hero-text-only .hero-text { max-width: 860px; }

/* Legal and service pages */
.legal-page { padding: 32px 0 16px; }
.legal-page .container { max-width: 860px; }
.legal-page h1 { margin-bottom: .8em; }
.legal-page h2 { margin-top: 1.6em; }
.legal-page ul { color: var(--muted); padding-left: 22px; margin: 0 0 1em; }
.legal-page li { margin: 4px 0; }
.legal-page .back-link { margin-top: 24px; }

/* Pros / cons */
.pros-cons { display: grid; gap: 16px; margin: 20px 0; }
.pros, .cons { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px 20px; }
.pros ul, .cons ul { margin: 0; padding-left: 20px; color: var(--muted); }

/* Reviews */
.reviews { display: grid; gap: 16px; margin: 20px 0; }
.review { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; }

/* FAQ */
.faq { margin: 20px 0; display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--text); min-height: 44px; }
.faq summary:hover { color: var(--accent); }
.faq details[open] summary { color: var(--accent); }
.faq .faq-a { padding: 0 18px 6px; }

/* CTA */
.cta { text-align: center; }
.cta .container > * { margin-left: auto; margin-right: auto; max-width: 820px; }
.cta .section-box {
  background: linear-gradient(135deg, var(--card-bg), var(--header-bg));
  border: 1px solid var(--purple); border-radius: var(--radius); padding: 28px 18px;
}
.cta .btn-row { justify-content: center; }

.figure-block { margin: 20px 0; }
.figure-block img { border-radius: var(--radius); width: 100%; max-width: 640px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--border); padding: 32px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; gap: 20px; }
.footer-nav a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-actions { display: flex; flex-direction: column; gap: 10px; }
.footer-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 2px solid var(--accent); border-radius: 50%; font-weight: 700; color: var(--accent); text-decoration: none; margin-right: 10px;
}

/* Home: hero screenshots */
.hero-shots { position: relative; padding-bottom: 28px; }
.hero-shots .shot-desktop { border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: 0 0 40px rgba(181, 0, 255, .35); width: 100%; height: auto; }
.hero-shots .shot-phone { position: absolute; right: 8px; bottom: 0; width: 28%; max-width: 150px; height: auto; border: 3px solid var(--header-bg); border-radius: 16px; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); }

/* Home: quick links under the hero */
.quick-links { padding: 24px 0 0; }
.quick-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.quick-tile {
  position: relative; display: flex; align-items: flex-end; min-height: 96px; padding: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--header-bg), var(--card-bg)); border: 1px solid var(--card-border);
  border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
}
.quick-tile:hover { border-color: var(--accent); color: var(--accent); }
.quick-tile img { position: absolute; right: 4px; top: 4px; width: 64px; height: 64px; object-fit: contain; }
.quick-tile:first-child { grid-column: 1 / -1; }

/* Home: facts and audience */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 20px 0; }
.stat { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat .stat-num { display: block; color: var(--accent); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .9rem; }
.table-wrap.facts table { min-width: 0; }
.facts tbody td:first-child { font-weight: 700; color: var(--accent); width: 38%; }
.audience { margin: 20px 0; display: grid; gap: 12px; }
.audience .card { padding: 14px 16px; }
.audience .card h3 { margin-bottom: .3em; color: var(--accent); }
.audience .card p { margin-bottom: 0; }

/* Home: game rows */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
.section-note { max-width: 820px; }
.game-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 0 0 8px; padding: 0; list-style: none; }
.game-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); color: var(--text);
}
.game-card:hover { border-color: var(--accent); color: var(--text); }
.game-card img { width: 100%; aspect-ratio: 540 / 292; object-fit: cover; }
.game-grid--slots .game-card img { aspect-ratio: 1 / 1; }
.game-card span { display: block; padding: 8px 10px; font-weight: 700; font-size: .92rem; }
.game-card small { display: block; padding: 0 10px 8px; color: var(--muted); font-size: .8rem; margin-top: -4px; }

/* Home: providers and sports */
.provider-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.provider {
  display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 10px 14px;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius);
}
.provider:hover { border-color: var(--accent); }
.provider img { max-height: 34px; width: auto; max-width: 100%; filter: brightness(0) invert(1); }
.sport-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; list-style: none; }
.sport-chip {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; text-decoration: none; font-weight: 700;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); color: var(--text);
}
.sport-chip:hover { border-color: var(--accent); color: var(--accent); }
.sport-chip i { font-style: normal; font-size: 1.5rem; line-height: 1; }

/* Home: bonus cards */
.bonus-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0 8px; padding: 0; list-style: none; }
.bonus-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); }
.bonus-card img { width: 100%; aspect-ratio: 315 / 250; object-fit: cover; }
.bonus-card .bonus-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 16px 16px; }
.bonus-card h3 { color: var(--text); margin-bottom: .4em; }
.bonus-card p { flex: 1 1 auto; font-size: .95rem; }
.bonus-card .btn { align-self: flex-start; }

/* Home: registration steps */
.steps-grid { counter-reset: s; display: grid; gap: 16px; grid-template-columns: 1fr; margin: 20px 0; padding: 0; list-style: none; }
.step-card { counter-increment: s; position: relative; display: flex; flex-direction: column; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px; }
.step-card::before {
  content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.step-card h3 { color: var(--text); }
.step-card p { font-size: .95rem; }
.step-card .btn { align-self: flex-start; margin-bottom: 14px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.mini-steps li > div p { margin-bottom: 8px; }
.step-card .step-shot { margin-top: 8px; align-self: center; width: auto; max-width: 100%; border-radius: 10px; border: 1px solid var(--card-border); background: #fff; }
.step-card .step-shot.is-dark { background: var(--header-bg); }
.step-card .step-shot.is-crop { width: 100%; height: 130px; object-fit: cover; object-position: 100% 0; }
.phone-frame {
  position: relative; margin: auto auto 0; width: 100%; max-width: 230px; padding: 10px 7px 14px;
  background: #0d0218; border: 2px solid #3a1a55; border-radius: 30px; box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}
.phone-frame::before { content: ""; display: block; width: 36%; height: 6px; margin: 0 auto 8px; background: #2a1040; border-radius: 6px; }
.phone-frame img { width: 100%; height: auto; aspect-ratio: 720 / 1280; object-fit: cover; object-position: top; border-radius: 18px; }
.step-card .phone-frame { margin-top: auto; }
.step-card .mock-shot { margin: auto auto 0; width: 100%; max-width: 230px; height: auto; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
@media (min-width: 960px) { .steps-grid.steps-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.hero-phones { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.hero-phones .phone-frame { margin: 0; max-width: 220px; flex: 1 1 0; }
.hero-phones .phone-frame:nth-child(2) { margin-top: 36px; }
.split { display: grid; gap: 24px; align-items: center; }
.split > * { min-width: 0; }
.split-media { display: flex; justify-content: center; gap: 16px; }
.split-media .phone-frame { margin: 0; max-width: 230px; }
.shot-frame { border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: 0 0 40px rgba(181, 0, 255, .3); width: 100%; height: auto; }
.cta .container > .split-media { max-width: none; }
.card .card-media { width: calc(100% + 36px); max-width: none; margin: -18px -18px 12px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.card .card-media--contain { object-fit: contain; background: linear-gradient(135deg, #2c0444, #5a0a88); }
.section-head--spaced { margin-top: 28px; }
.flush-top { margin-top: 0; }
.text-center { text-align: center; }
.btn-row.is-center { justify-content: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.2fr .8fr; gap: 40px; } .split--rev { grid-template-columns: .8fr 1.2fr; } }
.step-card p { margin-bottom: 14px; }

.cta .container > .steps-grid { max-width: none; margin-left: 0; margin-right: 0; }
.cta .step-card { text-align: left; }
.cta .container > .section-box + .steps-grid { margin-top: 20px; }

/* Home: app block */
.app-intro { display: grid; gap: 24px; align-items: center; margin-bottom: 24px; }
.phone-strip { display: flex; justify-content: center; gap: 14px; }
.phone-strip img { width: 44%; max-width: 220px; height: auto; border: 3px solid var(--card-border); border-radius: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.phone-strip img:nth-child(2) { margin-top: 28px; }
.app-guides { display: grid; gap: 16px; grid-template-columns: 1fr; }
.guide { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; }
.guide h3 { color: var(--accent); }
.mini-steps { counter-reset: m; list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.mini-steps li img { width: 110px; height: auto; border-radius: 10px; border: 1px solid var(--card-border); }
.mini-steps li p { margin: 0; color: var(--text); font-size: .95rem; }
.mini-steps li p::before { content: counter(m) ". "; color: var(--accent); font-weight: 700; }

@media (min-width: 640px) {
  h1 { font-size: 2.1rem; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-tile:first-child { grid-column: auto; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .sport-grid { grid-template-columns: repeat(3, 1fr); }
  .bonus-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .app-guides { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr 1fr; }
  .footer-actions { flex-direction: row; flex-wrap: wrap; }
  .header-actions { order: 2; width: auto; margin-left: auto; padding: 0; }
  .header-actions .btn { flex: none; padding: 8px 16px; }
  .menu-toggle { order: 3; margin-left: 0; }
  .toc ol { columns: 2; }
}
@media (min-width: 960px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-shots .shot-phone { width: 30%; max-width: 170px; }
  .section { padding: 48px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(5, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .audience { grid-template-columns: repeat(3, 1fr); }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .game-grid--slots { grid-template-columns: repeat(4, 1fr); }
  .provider-grid { grid-template-columns: repeat(6, 1fr); }
  .sport-grid { grid-template-columns: repeat(5, 1fr); }
  .bonus-grid { grid-template-columns: repeat(4, 1fr); }
  .app-intro { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (min-width: 1280px) {
  .header-inner { max-width: 1320px; }
  .menu-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .header-panel { display: flex !important; align-items: center; gap: 12px; width: auto; padding: 0; }
  .main-nav > ul { display: flex; gap: 10px; }
  .main-nav a { border: 0; padding: 8px 2px; font-size: .88rem; white-space: nowrap; }
  .has-sub { position: relative; }
  .main-nav .sub-menu {
    display: none; position: absolute; top: 100%; left: -12px; min-width: 260px; padding: 8px 12px;
    background: var(--header-bg); border: 1px solid var(--card-border); border-radius: var(--radius); z-index: 70;
  }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
  .main-nav .sub-menu a { padding: 8px 4px; font-size: .9rem; color: var(--text); }
  .header-panel { order: 2; }
  .header-actions { order: 3; margin-left: 0; flex-wrap: nowrap; }
  .header-actions .btn { padding: 8px 14px; }
}
