/*
  Nexus Mastering – Global Styles
*/

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0b1020;
    --bg-elev: #12172a;
    --panel: #161c33;
    --panel-2: #0f152b;
    --text: #eaf0ff;
    --muted: #9aa3c7;
    --brand: #6c8cff;
    --brand-2: #9aaeff;
    --accent: #23d5ab;
    --danger: #ff6c8c;
    --shadow: 0 12px 36px rgba(0,0,0,0.35);
    --ring: 0 0 0 4px rgba(108,140,255,0.18);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --gap-1: 8px;
    --gap-2: 12px;
    --gap-3: 16px;
    --gap-4: 24px;
    --gap-5: 32px;
    --container: 1200px;
    --transition: 180ms ease;
    --font-size-base: 16px;
    --font-family-base: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Accessibility Variables */
body {
    --a11y-font-size: var(--font-size-base);
    --a11y-font-family: var(--font-family-base);
    --a11y-contrast: normal;
    --a11y-line-height: 1.6;
    --a11y-letter-spacing: 0em;
}

body[data-a11y-font-size="small"] { --a11y-font-size: 14px; }
body[data-a11y-font-size="medium"] { --a11y-font-size: 16px; }
body[data-a11y-font-size="large"] { --a11y-font-size: 18px; }
body[data-a11y-font-size="xlarge"] { --a11y-font-size: 20px; }

body[data-a11y-font-family="default"] { --a11y-font-family: var(--font-family-base); }
body[data-a11y-font-family="arial"] { --a11y-font-family: Arial, sans-serif; }
body[data-a11y-font-family="verdana"] { --a11y-font-family: Verdana, sans-serif; }
body[data-a11y-font-family="times"] { --a11y-font-family: "Times New Roman", serif; }
body[data-a11y-font-family="comic"] { --a11y-font-family: "Comic Sans MS", cursive; }

body[data-a11y-contrast="high"] {
    --text: #ffffff;
    --muted: #ffffff;
    --bg: #000000;
    --bg-elev: #1a1a1a;
    --panel: #2a2a2a;
    --panel-2: #1f1f1f;
    --brand: #7c9fff;
    --brand-2: #aac0ff;
    --accent: #33e5bb;
}
/* Additional a11y attribute mappings */
body[data-a11y-line-height="relaxed"] { --a11y-line-height: 1.9; }
body[data-a11y-letter-spacing="wide"] { --a11y-letter-spacing: 0.04em; }
body[data-a11y-letter-spacing="wider"] { --a11y-letter-spacing: 0.06em; }
body[data-a11y-underline-links="true"] a { text-decoration: underline; }
body[data-a11y-grayscale="true"] { filter: grayscale(100%); }
body[data-a11y-reduce-motion="true"] *, body[data-a11y-reduce-motion="true"] *::before, body[data-a11y-reduce-motion="true"] *::after { transition: none !important; animation: none !important; }

/* Base / reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #0b1020 0%, #0a0e1a 30%, #080a15 60%, #000000 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--a11y-font-family);
    font-size: var(--a11y-font-size);
    line-height: var(--a11y-line-height);
    letter-spacing: var(--a11y-letter-spacing);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Layout */
.container {
    width: 90%;
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--gap-5) var(--gap-3);
    flex-grow: 1;
}

/* Sections */
.section { margin: 48px auto; }
.section-title { font-size: 28px; margin: 0 0 10px; }
.section-subtitle { color: var(--muted); margin: 0 0 16px; }
.page-title { text-align: center; font-size: 32px; margin: 6px 0 12px; letter-spacing: 0.2px; }

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)) , var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: saturate(120%) blur(10px);
    padding: 18px 0;
    text-align: center;
}
header h1 { margin: 0; font-size: 28px; letter-spacing: 0.3px; }
header p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Navigation */
nav {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)) , var(--panel-2);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 12px 0;
    backdrop-filter: saturate(120%) blur(8px);
    z-index: 1000; /* ensure dropdowns sit above hero */
    overflow: visible;
}
/* Center the primary nav */
nav ul { list-style: none; padding: 0; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 22px; }
nav ul li { position: relative; }
nav ul li a { position: relative; color: var(--text); font-size: 16px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition), transform var(--transition); display: inline-block; }
nav ul li a:hover { color: var(--brand-2); transform: translateY(-1px); }
/* Animated underline */
nav ul li a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; border-radius: 2px; }
nav ul li a:hover::after { transform: scaleX(1); }

.services-menu > a, .booking-menu > a { cursor: default; }

.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; /* stack directly under parent */
    transform: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)) , var(--panel);
    border: 0 solid rgba(255,255,255,0.06); /* hidden by default to avoid bar */
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    min-width: 220px;
    padding: 0; /* no padding when collapsed */
    z-index: 1000;
    text-align: left; /* left-aligned items */
    backdrop-filter: blur(10px) saturate(120%);
    overflow: hidden;
    max-height: 0;
    transition: max-height 220ms ease;
}

.services-menu:hover .submenu,
.booking-menu:hover .submenu { max-height: 400px; padding: 10px 0; border-width: 1px; }

.submenu li { opacity: 0; transform: translateY(-6px); transition: opacity 220ms ease, transform 220ms ease; }
.services-menu:hover .submenu li,
.booking-menu:hover .submenu li { opacity: 1; transform: translateY(0); }
.submenu li a { display: block; padding: 10px 18px; color: var(--text); font-size: 15px; }
.submenu li a:hover { background: rgba(255,255,255,0.08); color: var(--brand-2); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { height: 3px; width: 26px; background: var(--text); margin-bottom: 5px; transition: transform var(--transition), opacity var(--transition); }

/* Hero */
.hero {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)) , var(--panel);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--gap-5);
    text-align: center;
}
.hero h1 { margin: 0 0 8px; font-size: 34px; letter-spacing: 0.2px; }
.hero p { margin: 0 0 18px; color: var(--muted); }
/* subtle glow border */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(108,140,255,.45), rgba(35,213,171,.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #0b0f21;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    box-shadow: 0 10px 24px rgba(35, 213, 171, 0.25);
}
.cta-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
/* button variants */
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.18); box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.06); }
.btn-ghost { background: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { color: var(--text); }

/* Cards / service grid */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap-4); margin-top: var(--gap-4); align-items: stretch; }
.service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)) , var(--panel);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: var(--gap-3);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.45); border-color: rgba(255,255,255,0.12); }

/* Why choose us */
.why-choose-us h2 { text-align: center; font-size: 28px; margin: 8px 0 12px; }
.why-choose-us ul { list-style: none; padding-left: 0; max-width: 800px; margin: 0 auto; color: var(--muted); }
.why-choose-us li { position: relative; padding-left: 26px; margin: 10px 0; }
.why-choose-us li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--panel-2);
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    text-align: center;
    padding: 28px 0;
    margin-top: auto;
}
.footer-content { text-align: center; padding: 8px 0; }
.footer-section a { margin: 0 12px; color: var(--muted); }
.footer-section a:hover { color: var(--brand-2); text-decoration: none; }
.footer-bottom { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }

/* Service header image block (used across pages) */
.service-header { position: relative; width: 100%; max-width: 1000px; height: 500px; overflow: hidden; margin: 0 auto 50px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-image { width: 100%; height: 100%; }
.service-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.service-header h2 { position: absolute; bottom: 20px; left: 20px; color: #fff; font-size: 36px; text-shadow: 0 6px 20px rgba(0,0,0,0.55); }

/* Forms */
.form-card { max-width: 620px; margin: 24px auto; padding: 24px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)) , var(--panel); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(108,140,255,.35), rgba(35,213,171,.25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.form-title { margin: 0 0 8px; font-size: 28px; }
.form-subtitle { margin: 0 0 16px; color: var(--muted); }
.form-group { margin-bottom: 14px; }
.form-label { font-weight: 600; margin-bottom: 8px; display: block; }
.form-input, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--text);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.form-input { height: 44px; }
.form-input.has-icon, .form-textarea.has-icon { padding-left: 40px; }
.input-group { position: relative; }
/* precise centering by anchoring the icon to the input wrapper, not the whole group */
.field { position: relative; }
.field .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; opacity: .8; pointer-events: none; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(234,240,255,0.5); }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: var(--ring); background: rgba(255,255,255,0.03); }
.form-input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.form-textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-submit { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #0b0f21; padding: 12px 18px; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; transition: transform 120ms ease, box-shadow 180ms ease; box-shadow: 0 10px 24px rgba(35,213,171,.25); }
.form-submit:hover { transform: translateY(-1px); }
.form-status { margin-top: 10px; font-size: 14px; color: var(--muted); }
/* hide honeypot field */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Form layout */
.form-header { margin: -6px -6px 16px; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(108,140,255,.18), rgba(35,213,171,.10)); border: 1px solid rgba(255,255,255,0.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col-span-2 { grid-column: span 2; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .col-span-2 { grid-column: auto; } .form-actions { flex-direction: column; align-items: stretch; } .form-submit { width: 100%; } }

@media (max-width: 480px) {
    .form-card { padding: 20px; }
}

/* Store / Product Pages */
.store-hero { text-align: center; padding: 32px 0; margin-bottom: 32px; }
.store-hero h1 { font-size: 36px; margin: 0 0 8px; }
.store-hero p { color: var(--muted); font-size: 18px; margin: 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 32px 0; }
.product-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)) , var(--panel);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.15); }
.product-header-section { background: var(--panel-2); padding: 24px; border-radius: var(--radius-md); margin-bottom: 20px; display: flex; justify-content: center; }
.product-image-container { position: relative; width: 100%; max-width: 500px; aspect-ratio: 4/3; overflow: hidden; cursor: pointer; background: var(--panel-2); border-radius: var(--radius-md); }
.product-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 800ms ease-in-out; }
.product-image.active { opacity: 1; z-index: 1; }
.product-image-container:hover .product-image.active { transform: scale(1.02); transition: opacity 800ms ease-in-out, transform 200ms ease; }
.product-body { padding: 20px; }
.product-title { font-size: 22px; margin: 0 0 8px; }
.product-description { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 16px; }
.product-features { list-style: none; padding: 0; margin: 0 0 16px; }
.product-features li { padding: 6px 0; padding-left: 20px; position: relative; color: var(--muted); font-size: 14px; }
.product-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.product-variants { margin: 16px 0; padding: 12px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); }
.product-variant { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.product-variant:last-child { border-bottom: none; }
.variant-name { font-weight: 500; }
.variant-price { color: var(--brand-2); font-weight: 600; }
.product-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn-product { flex: 1; padding: 12px 18px; border-radius: 8px; font-weight: 600; text-align: center; transition: transform 120ms ease, filter 120ms ease; text-decoration: none; display: inline-block; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #0b0f21; box-shadow: 0 8px 20px rgba(35,213,171,.25); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-secondary { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.12); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.product-badge { position: absolute; top: 12px; right: 12px; padding: 4px 10px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #0b0f21; border-radius: 999px; font-size: 12px; font-weight: 700; }
.info-section { margin: 32px 0; }
.info-section h3 { font-size: 24px; margin: 0 0 12px; }
.info-section p, .info-section ul { color: var(--muted); line-height: 1.8; }
.info-section ul { padding-left: 24px; }
.info-section li { margin: 8px 0; }
.info-section a { color: var(--brand-2); }
.info-section a:hover { text-decoration: underline; }
.shipping-disclaimer {
    background: linear-gradient(180deg, rgba(108,140,255,.12), rgba(35,213,171,.08));
    border: 1px solid rgba(108,140,255,.3);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 32px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.shipping-disclaimer h3 { margin: 0 0 12px; font-size: 20px; color: var(--brand-2); }
.shipping-disclaimer p { margin: 0; color: var(--text); line-height: 1.7; }

/* Intro screen (moved from inline) */
#intro-screen { position: fixed; inset: 0; background: radial-gradient(1200px 900px at 10% -10%, rgba(108,140,255,.15), transparent 60%), #111827; display: flex; justify-content: center; align-items: center; z-index: 9999; animation: fadeOut 4s ease-in-out forwards; opacity: 1; }
.intro-content { text-align: center; color: #f3f4f6; animation: fadeIn 1.5s ease-in-out forwards; opacity: 0; }
.intro-content h1 { font-size: 48px; margin-bottom: 8px; font-weight: 700; }
.intro-content p { font-size: 20px; font-weight: 300; }
@keyframes fadeIn { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { 0%, 75% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* Responsive */
@media screen and (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu { display: none; flex-direction: column; width: 100%; position: absolute; left: 0; background: var(--panel-2); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 8px 0 12px; }
    .nav-menu.active { display: flex; }
    nav ul { display: flex; flex-direction: column; gap: 6px; }
    nav ul li { display: block; margin: 6px 0; }
    .submenu { position: static; transform: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; border: none; box-shadow: none; background: transparent; }
    .services-menu:hover .submenu, .booking-menu:hover .submenu { max-height: 500px; }
    .submenu li { opacity: 1; transform: none; }
    .submenu li a { padding-left: 24px; }
}

/* Accessibility Widget */
.a11y-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.a11y-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border: none;
    color: #0b0f21;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 200ms ease, box-shadow 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.a11y-toggle:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.a11y-toggle:focus { outline: 3px solid var(--brand-2); outline-offset: 2px; }

.a11y-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)) , var(--panel);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.a11y-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.a11y-panel h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--text);
}

.a11y-control-group {
    margin-bottom: 20px;
}

.a11y-control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.a11y-control-group select,
.a11y-control-group button {
    width: 100%;
    padding: 10px 12px;
    background: rgba(108, 140, 255, 0.12);
    border: 2px solid rgba(108, 140, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.a11y-control-group select {
    padding-right: 32px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23eaf0ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.a11y-control-group select option {
    background: var(--panel);
    color: var(--text);
    font-weight: 500;
}

.a11y-control-group select:hover,
.a11y-control-group button:hover {
    background-color: rgba(108, 140, 255, 0.2);
    border-color: rgba(108, 140, 255, 0.5);
}

.a11y-control-group select:focus,
.a11y-control-group button:focus {
    outline: 2px solid var(--brand-2);
    outline-offset: 2px;
    background-color: rgba(108, 140, 255, 0.25);
}

.a11y-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.a11y-btn {
    padding: 8px 12px;
    font-size: 13px;
}

.a11y-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #0b0f21;
    font-weight: 600;
}

.a11y-reset {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: background 180ms ease;
}

.a11y-reset:hover {
    background: rgba(255,255,255,0.12);
}

@media screen and (max-width: 768px) {
    .a11y-widget { bottom: 15px; right: 15px; }
    .a11y-panel { bottom: 80px; right: 15px; width: calc(100vw - 30px); }
}