﻿/* =====================
   BASE & RESET
===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --color-bg: #07111f;
    --color-bg-2: #0a1629;
    --color-bg-3: #0e1d36;
    --color-surface: rgba(8, 19, 37, 0.82);
    --color-surface-2: rgba(11, 27, 50, 0.88);
    --color-surface-3: rgba(15, 36, 65, 0.84);
    --color-border: rgba(115, 188, 255, 0.24);
    --color-border-strong: rgba(115, 188, 255, 0.36);
    --color-text: #e9f4ff;
    --color-text-muted: #8ea8c7;
    --color-accent: #4bb6ff;
    --color-accent-2: #2df6ff;
    --color-accent-3: #79a8ff;
    --color-accent-warm: #ff6c3b;
    --color-accent-warm-soft: #ffb08d;
    --color-accent-glow: rgba(45, 246, 255, 0.22);
    --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: "Space Grotesk", "IBM Plex Sans", sans-serif;
    --radius: 26px;
    --radius-sm: 16px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.24);
    --header-panel-inset: 0.28rem;
    --header-panel-height: 68px;
    --music-energy: 0;
    --music-bass: 0;
    --browser-theme-color: rgb(7, 17, 31);
    color-scheme: dark;
}

html {
    height: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    color-scheme: dark;
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
    background-color: var(--color-bg);
    background:
        radial-gradient(circle at top left, rgba(45, 246, 255, 0.1), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(75, 182, 255, 0.12), transparent 32%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-2) 42%, #050c18 100%);
}

body {
    min-height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    font-family: var(--font);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    cursor: default;
    background: transparent;
    color-scheme: dark;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(121, 168, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 168, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
    opacity: 0.36;
}

a {
    color: inherit;
}

button,
a,
[role="button"],
summary {
    cursor: pointer;
}

input,
textarea,
select,
[contenteditable="true"] {
    cursor: text;
}

svg {
    display: block;
}

main,
.footer {
    position: relative;
    z-index: 1;
}

.hero,
.facts,
.about,
.services,
.cta,
.footer {
    isolation: isolate;
}

/* =====================
   REVEALS
===================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.reveal-delay-5 {
    transition-delay: 0.4s;
}

/* =====================
   HEADER / NAV
===================== */
.header {
    --nav-inset: 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 max(var(--nav-inset), calc(var(--safe-right) + 1.5rem)) 0 max(var(--nav-inset), calc(var(--safe-left) + 1.5rem));
    background: transparent;
}

.header:has(.nav-group[open]) {
    z-index: 140;
}

.header::before {
    content: "";
    position: absolute;
    top: calc(var(--safe-top) + var(--header-panel-inset));
    left: 50%;
    width: min(1080px, calc(100% - var(--safe-left) - var(--safe-right) - var(--nav-inset) * 2));
    transform: translateX(-50%);
    bottom: var(--header-panel-inset);
    background:
        linear-gradient(180deg, rgba(10, 24, 46, 0.12), rgba(5, 14, 27, 0.04));
    backdrop-filter: blur(7px) saturate(122%);
    -webkit-backdrop-filter: blur(7px) saturate(122%);
    border: 1px solid rgba(115, 188, 255, 0.18);
    border-radius: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 24px rgba(255, 255, 255, 0.02),
        0 0 40px rgba(45, 246, 255, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.header::after {
    content: "";
    position: absolute;
    top: calc(var(--safe-top) + var(--header-panel-inset));
    left: 50%;
    width: min(1080px, calc(100% - var(--safe-left) - var(--safe-right) - var(--nav-inset) * 2));
    transform: translateX(-50%);
    bottom: var(--header-panel-inset);
    border-radius: 24px;
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.2), transparent 30%),
        radial-gradient(circle at bottom left, rgba(121, 168, 255, 0.14), transparent 34%);
}

.nav {
    max-width: 1080px;
    margin: 0 auto;
    height: calc(var(--header-panel-height) + var(--safe-top));
    padding: calc(var(--safe-top) + var(--header-panel-inset)) 1rem var(--header-panel-inset);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.nav-brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    text-decoration: none;
}

.nav-brand {
    position: relative;
    z-index: 2;
    transition: filter 0.38s ease, transform 0.38s ease;
    align-self: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.header.is-anthem-docked .nav-brand {
    filter: drop-shadow(0 0 18px rgba(45, 246, 255, 0.22));
    transform: translateY(-1px);
}

.brand-icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 0;
    overflow: hidden;
    box-shadow:
        0 0 26px rgba(45, 246, 255, 0.14),
        0 10px 24px rgba(0, 0, 0, 0.24);
    isolation: isolate;
    animation: brandIconBreathe 5.6s ease-in-out infinite;
}

.brand-icon::before,
.brand-icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    pointer-events: none;
}

.brand-icon::before {
    background: conic-gradient(
        from 0deg,
        rgba(45, 246, 255, 0) 0deg,
        rgba(45, 246, 255, 0.42) 72deg,
        rgba(255, 105, 54, 0.54) 130deg,
        rgba(45, 246, 255, 0) 230deg,
        rgba(45, 246, 255, 0.28) 320deg,
        rgba(45, 246, 255, 0) 360deg
    );
    filter: blur(6px);
    opacity: 0.52;
    animation: brandHaloSpin 9s linear infinite;
}

.brand-icon::after {
    inset: -1px;
    border: 1px solid rgba(45, 246, 255, 0.18);
    box-shadow:
        0 0 16px rgba(45, 246, 255, 0.16),
        inset 0 0 10px rgba(255, 255, 255, 0.04);
    opacity: 0.74;
    animation: brandRingPulse 3.8s ease-in-out infinite;
}

.brand-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent-2);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-icon img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-name strong {
    color: var(--color-accent-2);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.25rem, 0.6vw, 0.7rem);
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: clamp(0.72rem, 0.85vw, 0.92rem);
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text);
    text-shadow: 0 0 12px rgba(45, 246, 255, 0.35);
}

.nav-links a.is-active {
    color: var(--color-text);
    text-shadow: 0 0 12px rgba(45, 246, 255, 0.35);
}

.nav-links--grouped > li {
    display: flex;
    align-items: center;
}

.nav-links--grouped > li > a,
.nav-group-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem clamp(0.45rem, 0.8vw, 0.9rem);
    border-radius: 999px;
    color: var(--color-text-muted);
    font-size: clamp(0.72rem, 0.85vw, 0.9rem);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    background: rgba(8, 19, 37, 0.18);
    border: 1px solid rgba(115, 188, 255, 0.18);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        text-shadow 0.2s ease,
        transform 0.2s ease;
}

.nav-links--grouped > li > a:hover,
.nav-group-trigger:hover,
.nav-group[open] .nav-group-trigger,
.nav-group.is-active-group .nav-group-trigger {
    color: var(--color-text);
    border-color: rgba(45, 246, 255, 0.18);
    background: rgba(11, 27, 50, 0.2);
    text-shadow: 0 0 12px rgba(45, 246, 255, 0.22);
}

.nav-links--grouped > li > a.is-active,
.nav-group.is-active-group .nav-group-trigger {
    color: var(--color-text);
}

.nav-group {
    position: relative;
}

.nav-group-trigger {
    list-style: none;
    cursor: pointer;
    user-select: none;
    gap: 0.45rem;
}

.nav-group-trigger::-webkit-details-marker,
.nav-group-trigger::marker {
    display: none;
    content: "";
}

.nav-group-trigger::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.nav-group[open] .nav-group-trigger::after {
    transform: rotate(-135deg) translateY(-1px);
}

.nav-group-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 0.5rem;
    display: grid;
    gap: 0.3rem;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(10, 24, 46, 0.18), rgba(5, 14, 27, 0.08));
    border: 1px solid rgba(115, 188, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 24px rgba(255, 255, 255, 0.02),
        0 0 40px rgba(45, 246, 255, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(44px) saturate(195%);
    -webkit-backdrop-filter: blur(44px) saturate(195%);
    overflow: hidden;
}

.nav-group-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.2), transparent 30%),
        radial-gradient(circle at bottom left, rgba(121, 168, 255, 0.14), transparent 34%);
}

.nav-group-menu > * {
    position: relative;
    z-index: 1;
}

.nav-group-link {
    display: block;
    padding: 0.72rem 0.8rem;
    border-radius: 14px;
    background: rgba(10, 24, 46, 0.2);
    border: 1px solid rgba(115, 188, 255, 0.22);
    color: var(--color-text-muted);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.nav-group-link:hover,
.nav-group-link.is-active {
    color: var(--color-text);
    background: rgba(14, 37, 67, 0.76);
    border-color: rgba(45, 246, 255, 0.12);
}

.nav-auth {
    display: flex;
    align-items: center;
    align-self: center;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.nav-menu-toggle,
.nav-mobile-panel,
.nav-mobile-backdrop {
    display: none;
}

.nav-auth > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user-group {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    list-style: none;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    transition: background .15s ease;
}

.nav-user-trigger:hover {
    background: rgba(115, 188, 255, .08);
}

.nav-user-trigger::-webkit-details-marker { display: none; }

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(45, 246, 255, .3);
    flex-shrink: 0;
}

.nav-user-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(45, 246, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(75, 182, 255, .25), rgba(45, 246, 255, .15));
    font-family: var(--font-heading);
    font-size: .72rem;
    font-weight: 700;
    color: var(--color-accent-2);
    flex-shrink: 0;
}

.nav-user-menu {
    min-width: 140px;
}

.nav-user-logout-form {
    display: contents;
}

.nav-user-logout-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    color: inherit;
}

.nav-mobile-user-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .5rem;
}

.nav-mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(45, 246, 255, .3);
    flex-shrink: 0;
}

.nav-mobile-user-avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(45, 246, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(75, 182, 255, .25), rgba(45, 246, 255, .15));
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    color: var(--color-accent-2);
    flex-shrink: 0;
}

.nav-username {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-btn {
    padding: 9px 20px;
    font-size: 0.84rem;
}

.nav .btn-outline {
    background: rgba(8, 19, 37, 0.2);
    border-color: rgba(115, 188, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav .btn-outline:hover {
    background: rgba(11, 27, 50, 0.2);
}

.nav .btn-primary {
    background: linear-gradient(135deg, rgba(45, 246, 255, 0.76), rgba(75, 182, 255, 0.72));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 22px rgba(45, 246, 255, 0.18);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
}

.nav-menu-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(115, 188, 255, 0.2);
    border-radius: 14px;
    background: rgba(8, 19, 37, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav-menu-toggle span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-menu-toggle span:nth-child(1) {
    transform: translateY(-6px);
}

.nav-menu-toggle span:nth-child(3) {
    transform: translateY(6px);
}

.nav-menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg);
}

.nav-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-mobile-panel {
    position: fixed;
    top: 88px;
    left: max(1rem, calc(var(--safe-left) + 0.85rem));
    right: max(1rem, calc(var(--safe-right) + 0.85rem));
    z-index: 135;
    padding: 1rem;
    border-radius: 22px;
    max-height: calc(100dvh - 88px - max(1rem, var(--safe-bottom)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
        linear-gradient(180deg, rgba(10, 24, 46, 0.18), rgba(5, 14, 27, 0.08));
    border: 1px solid rgba(115, 188, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 40px rgba(45, 246, 255, 0.1),
        0 30px 80px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(44px) saturate(195%);
    -webkit-backdrop-filter: blur(44px) saturate(195%);
}

.nav-mobile-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.2), transparent 30%),
        radial-gradient(circle at bottom left, rgba(121, 168, 255, 0.14), transparent 34%);
}

.nav-mobile-panel > * {
    position: relative;
    z-index: 1;
}

.nav-mobile-panel[hidden] {
    display: none;
}

.nav-mobile-backdrop {
    position: fixed;
    top: 88px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    border: 0;
    background:
        radial-gradient(circle at top, rgba(45, 246, 255, 0.12), transparent 28%),
        rgba(3, 10, 20, 0.48);
    backdrop-filter: blur(7px) saturate(112%);
    -webkit-backdrop-filter: blur(7px) saturate(112%);
}

.nav-mobile-backdrop[hidden] {
    display: none;
}

.nav-mobile-links {
    display: grid;
    gap: 0.55rem;
}

.nav-mobile-group {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.2rem;
}

.nav-mobile-group-title {
    padding: 0 0.2rem;
    font-size: 0.72rem;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-text);
    background: rgba(10, 24, 46, 0.14);
    border: 1px solid rgba(115, 188, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.nav-mobile-link.is-active {
    color: var(--color-text);
    border-color: rgba(45, 246, 255, 0.18);
    background: rgba(14, 37, 67, 0.62);
}

.nav-mobile-account {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(115, 188, 255, 0.24);
}

.nav-mobile-account.is-empty {
    display: none;
}

.nav-mobile-auth-actions,
.nav-mobile-user {
    display: grid;
    gap: 0.6rem;
}

.nav-mobile-user {
    padding: 0.1rem 0;
}

.nav-mobile-user-label {
    font-size: 0.72rem;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-mobile-user-email {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
    word-break: break-word;
    line-height: 1.3;
}

.nav-mobile-auth-btn {
    width: 100%;
    min-height: 42px;
    padding: 0.75rem 0.9rem;
    font-size: 0.86rem;
}

/* =====================
   BUTTONS
===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: #03101d;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent));
    box-shadow:
        0 0 0 1px rgba(45, 246, 255, 0.12),
        0 0 28px rgba(45, 246, 255, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(45, 246, 255, 0.2),
        0 0 36px rgba(45, 246, 255, 0.28);
}

.btn-outline {
    color: var(--color-text);
    background: rgba(8, 19, 37, 0.7);
    border-color: rgba(115, 188, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(75, 182, 255, 0.1);
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 246, 255, 0.32);
    background: rgba(11, 27, 50, 0.88);
}

body.auth-modal-open {
    overflow: hidden;
}

body.password-change-modal-open {
    overflow: hidden;
}

body.nav-mobile-open {
    overflow: hidden;
}

/* =====================
   AUTH MODAL
===================== */
.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding:
        max(12vh, calc(var(--safe-top) + 1rem))
        max(1rem, calc(var(--safe-right) + 1rem))
        max(1.25rem, calc(var(--safe-bottom) + 1rem))
        max(1rem, calc(var(--safe-left) + 1rem));
    background:
        radial-gradient(circle at top, rgba(45, 246, 255, 0.12), transparent 28%),
        rgba(3, 10, 20, 0.48);
    backdrop-filter: blur(7px) saturate(112%);
    -webkit-backdrop-filter: blur(7px) saturate(112%);
}

.password-change-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 245;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding:
        max(12vh, calc(var(--safe-top) + 1rem))
        max(1rem, calc(var(--safe-right) + 1rem))
        max(1.25rem, calc(var(--safe-bottom) + 1rem))
        max(1rem, calc(var(--safe-left) + 1rem));
    background:
        radial-gradient(circle at top, rgba(255, 126, 76, 0.12), transparent 24%),
        rgba(3, 10, 20, 0.54);
    backdrop-filter: blur(8px) saturate(114%);
    -webkit-backdrop-filter: blur(8px) saturate(114%);
}

.password-change-modal-backdrop[hidden] {
    display: none;
}

.auth-modal-backdrop[hidden] {
    display: none;
}

.auth-modal-shell {
    position: relative;
    width: min(100%, 420px);
    max-height: calc(100dvh - max(2rem, calc(var(--safe-top) + var(--safe-bottom) + 2rem)));
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(115, 188, 255, 0.26);
    border-radius: 999px;
    background: rgba(6, 18, 34, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 20px rgba(45, 246, 255, 0.08);
    backdrop-filter: blur(20px) saturate(165%);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
}

.auth-modal-close span {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
}

.auth-modal-close span:first-child {
    transform: rotate(45deg);
}

.auth-modal-close span:last-child {
    transform: rotate(-45deg);
}

.auth-modal-card {
    position: relative;
    padding: 1.6rem;
    max-height: min(88dvh, 760px);
    overflow-y: auto;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(10, 24, 46, 0.12), rgba(5, 14, 27, 0.04));
    border: 1px solid rgba(115, 188, 255, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(45, 246, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 56px rgba(45, 246, 255, 0.14),
        0 30px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(44px) saturate(195%);
    -webkit-backdrop-filter: blur(44px) saturate(195%);
    scrollbar-width: thin;
    scrollbar-color: rgba(115, 188, 255, 0.28) transparent;
}

.auth-modal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 22%),
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.2), transparent 30%),
        radial-gradient(circle at bottom left, rgba(121, 168, 255, 0.14), transparent 34%);
    opacity: 1;
}

.auth-modal-card > * {
    position: relative;
    z-index: 1;
}

.password-change-modal-card {
    border-color: rgba(255, 126, 76, 0.2);
    box-shadow:
        inset 0 0 0 1px rgba(255, 126, 76, 0.05),
        0 30px 80px rgba(0, 0, 0, 0.48);
}

.auth-modal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.auth-modal-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.auth-modal-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.auth-switch-btn {
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(115, 188, 255, 0.28);
    background: rgba(8, 19, 37, 0.2);
    color: var(--color-text-muted);
    font: inherit;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
}

.auth-switch-btn.is-active {
    color: #03101d;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent));
    border-color: transparent;
    box-shadow: 0 0 24px rgba(45, 246, 255, 0.18);
}

.auth-modal-panel {
    display: none;
}

.auth-modal-panel.is-active {
    display: block;
}

.auth-modal-error {
    margin-bottom: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 101, 132, 0.1);
    border: 1px solid rgba(255, 101, 132, 0.26);
    color: #ff97af;
    font-size: 0.88rem;
}

.auth-modal-form {
    display: grid;
    gap: 0.9rem;
}

.auth-modal-field {
    display: grid;
    gap: 0.4rem;
}

.auth-modal-field span {
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-modal-input {
    width: 100%;
    min-height: 48px;
    padding: 0.78rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(115, 188, 255, 0.28);
    background: rgba(10, 24, 46, 0.14);
    color: var(--color-text);
    font: inherit;
    outline: none;
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
}

.auth-modal-input:focus {
    border-color: rgba(45, 246, 255, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 3px rgba(45, 246, 255, 0.08);
}

.auth-modal-input::placeholder {
    color: var(--color-text-muted);
}

.auth-modal-hint,
.auth-modal-footnote {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.auth-account-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 10px;
    border: 1px solid rgba(115, 188, 255, 0.2);
    overflow: hidden;
}

.auth-type-btn {
    padding: 0.45rem 0.5rem;
    border: none;
    background: rgba(10, 24, 46, 0.4);
    color: var(--color-text-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.auth-type-btn:not(:last-child) {
    border-right: 1px solid rgba(115, 188, 255, 0.26);
}

.auth-type-btn:hover {
    background: rgba(15, 32, 58, 0.6);
    color: var(--color-text);
}

.auth-type-btn.is-active {
    background: rgba(45, 246, 255, 0.15);
    color: var(--color-accent-2);
}

.auth-modal-submit {
    width: 100%;
    margin-top: 0.2rem;
}

.auth-inline-link {
    border: 0;
    background: transparent;
    color: var(--color-accent-2);
    font: inherit;
    font-weight: 700;
    padding: 0;
}

/* =====================
   HERO
===================== */
.hero {
    position: relative;
    padding: calc(122px + var(--safe-top)) max(2rem, calc(var(--safe-right) + 1rem)) 5.5rem max(2rem, calc(var(--safe-left) + 1rem));
    overflow: hidden;
    --mx: 50%;
    --my: 50%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(75, 182, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75, 182, 255, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 36%, transparent 100%);
}

.hero-glow,
.hero-cursor-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.hero-glow-a {
    width: 340px;
    height: 340px;
    top: 60px;
    right: 10%;
    background: rgba(45, 246, 255, 0.16);
    animation: slowPulse 9s ease-in-out infinite;
}

.hero-glow-b {
    width: 280px;
    height: 280px;
    bottom: 40px;
    left: 6%;
    background: rgba(75, 182, 255, 0.15);
    animation: slowPulse 11s ease-in-out infinite reverse;
}

body.anthem-live .hero-glow-a,
body.anthem-live .hero-glow-b {
    opacity: calc(0.68 + (var(--music-energy) * 0.55));
}

.hero-cursor-glow {
    width: 280px;
    height: 280px;
    left: calc(var(--mx) - 140px);
    top: calc(var(--my) - 140px);
    background: rgba(45, 246, 255, 0.18);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hero-shell {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, 460px);
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-topbar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.hero-badge,
.section-tag {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(13, 36, 67, 0.9);
    border: 1px solid rgba(75, 182, 255, 0.18);
    color: var(--color-accent-2);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(45, 246, 255, 0.08);
}

.hero-badge {
    margin-bottom: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6.1rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    margin-bottom: 1.3rem;
}

.hero-accent {
    display: block;
    color: var(--color-accent-2);
    text-shadow: 0 0 18px rgba(45, 246, 255, 0.22);
}

.hero-accent-line {
    display: block;
}

.hero-accent-warm {
    color: var(--color-accent-warm-soft);
    text-shadow:
        0 0 16px rgba(255, 108, 59, 0.18),
        0 0 30px rgba(255, 176, 141, 0.12);
}

.hero-subtitle {
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1.08rem;
    color: var(--color-text-muted);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.2rem;
}

.hero-notes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-note {
    padding: 0.72rem 0.96rem;
    border-radius: 999px;
    background: rgba(9, 22, 41, 0.82);
    border: 1px solid rgba(115, 188, 255, 0.24);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    backdrop-filter: blur(12px);
}

.effect-toggle-cluster {
    position: fixed;
    top: calc(86px + var(--safe-top));
    left: max(calc(var(--safe-left) + 1rem), calc(50vw - 620px));
    z-index: 130;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transform-origin: left center;
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        gap 0.32s ease,
        opacity 0.24s ease,
        filter 0.32s ease;
    will-change: transform;
}

.anthem-toggle {
    margin-top: 0;
    margin-bottom: 1.2rem;
    width: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    border: 0;
    color: var(--color-text);
    text-align: left;
    box-shadow: none;
}

.anthem-toggle-pinned {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0.55rem;
}

.anthem-company {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.76rem;
    border-radius: 999px;
    background: rgba(9, 24, 45, 0.72);
    border: 1px solid rgba(75, 182, 255, 0.14);
    color: var(--color-accent-2);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        padding 0.32s ease,
        margin 0.32s ease,
        border-color 0.24s ease,
        background 0.24s ease,
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.anthem-toggle:hover {
    opacity: 0.96;
}

.anthem-toggle.is-live {
    filter: drop-shadow(0 0 18px rgba(45, 246, 255, 0.18));
}

.anthem-toggle-pinned.is-docked {
    gap: 0.25rem;
}

.anthem-toggle-pinned.is-docked .anthem-company {
    max-width: 0;
    opacity: 0;
    padding-left: 0;
    padding-right: 0;
    margin-right: -0.12rem;
    border-color: transparent;
    background: transparent;
    transform: translateX(10px);
}

.anthem-toggle-icon {
    width: 46px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 4px 6px;
    border-radius: 999px;
    background:
        linear-gradient(160deg, rgba(12, 33, 59, 0.8), rgba(6, 18, 34, 0.74));
    border: 1px solid rgba(75, 182, 255, 0.14);
    flex-shrink: 0;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        box-shadow 0.3s ease,
        border-color 0.24s ease,
        background 0.24s ease,
        transform 0.32s ease;
}

.anthem-toggle-pinned.is-docked .anthem-toggle-icon {
    box-shadow:
        0 0 0 1px rgba(75, 182, 255, 0.1),
        0 0 18px rgba(45, 246, 255, 0.16);
}

.lightning-toggle {
    width: 42px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(160deg, rgba(12, 33, 59, 0.8), rgba(6, 18, 34, 0.74));
    color: var(--color-text);
    border: 1px solid rgba(75, 182, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        box-shadow 0.3s ease,
        border-color 0.24s ease,
        background 0.24s ease,
        opacity 0.24s ease,
        transform 0.32s ease;
}

.lightning-toggle:hover {
    opacity: 0.96;
}

.lightning-toggle.is-live {
    box-shadow:
        0 0 0 1px rgba(75, 182, 255, 0.12),
        0 0 18px rgba(45, 246, 255, 0.16);
}

.lightning-toggle.is-docked {
    transform: translateX(-0.05rem);
}

.lightning-toggle-icon {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lightning-symbol {
    width: 18px;
    height: 18px;
    overflow: visible;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.lightning-bolt-line {
    stroke: rgba(242, 250, 255, 0.95);
    stroke-width: 2.4;
    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 14px rgba(45, 246, 255, 0.2));
    transition:
        stroke 0.24s ease,
        filter 0.24s ease,
        opacity 0.24s ease;
}

.lightning-trace {
    stroke: rgba(45, 246, 255, 0.72);
    stroke-width: 1.9;
    opacity: 0.4;
    transition: opacity 0.24s ease;
}

.lightning-off-slash {
    stroke: rgba(255, 122, 122, 0.92);
    stroke-width: 2.2;
    opacity: 0;
    transition: opacity 0.24s ease;
}

.lightning-toggle.is-live .lightning-bolt-line {
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.56))
        drop-shadow(0 0 18px rgba(45, 246, 255, 0.34));
}

.lightning-toggle.is-live .lightning-trace {
    opacity: 0.92;
    animation: lightningToggleTrace 1.35s ease-in-out infinite;
}

.lightning-toggle:not(.is-live) .lightning-bolt-line,
.lightning-toggle:not(.is-live) .lightning-trace {
    opacity: 0.36;
}

.lightning-toggle:not(.is-live) .lightning-off-slash {
    opacity: 1;
}

.anthem-speaker {
    width: 17px;
    height: 17px;
    stroke: rgba(233, 244, 255, 0.92);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.speaker-wave {
    opacity: 0.28;
    transition: opacity 0.24s ease;
}

.speaker-slash {
    stroke: rgba(45, 246, 255, 0.92);
    opacity: 0.88;
    transition: opacity 0.24s ease;
}

.anthem-bars {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 14px;
}

.anthem-bar {
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-accent-2), var(--color-accent));
    box-shadow: 0 0 14px rgba(45, 246, 255, 0.24);
    transform-origin: bottom center;
    opacity: 0.45;
}

.anthem-bar-1 { height: 8px; animation: anthemBars 0.9s ease-in-out infinite; }
.anthem-bar-2 { height: 14px; animation: anthemBars 0.7s ease-in-out infinite 0.1s; }
.anthem-bar-3 { height: 10px; animation: anthemBars 0.85s ease-in-out infinite 0.2s; }
.anthem-bar-4 { height: 6px; animation: anthemBars 0.75s ease-in-out infinite 0.15s; }

.anthem-toggle.is-live .speaker-wave {
    opacity: 1;
}

.anthem-toggle.is-live .speaker-wave-1 {
    animation: speakerPulse 1s ease-in-out infinite;
}

.anthem-toggle.is-live .speaker-wave-2 {
    animation: speakerPulse 1.2s ease-in-out infinite 0.12s;
}

.anthem-toggle.is-live .speaker-slash {
    opacity: 0;
}

.anthem-toggle.is-live .anthem-bar {
    opacity: 1;
}

.anthem-status {
    display: none;
}

.hero-visual {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: 100%;
    max-width: 460px;
    min-height: 560px;
    pointer-events: none;
    isolation: isolate;
    overflow: visible;
}

.hero-brand-mark {
    position: absolute;
    top: -10px;
    right: 34px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
}

.hero-brand-mark::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    pointer-events: none;
    background: conic-gradient(
        from 18deg,
        rgba(45, 246, 255, 0) 0deg,
        rgba(45, 246, 255, 0.5) 68deg,
        rgba(255, 105, 54, 0.58) 132deg,
        rgba(45, 246, 255, 0.06) 214deg,
        rgba(45, 246, 255, 0.32) 312deg,
        rgba(45, 246, 255, 0) 360deg
    );
    filter: blur(8px);
    opacity: 0.56;
    animation: brandHaloSpin 11s linear infinite;
}

.hero-brand-mark-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-brand-mark-ring--outer {
    inset: -6px;
    border: 1.3px solid rgba(83, 223, 255, 0.24);
    box-shadow:
        0 0 22px rgba(45, 246, 255, 0.18),
        inset 0 0 14px rgba(255, 255, 255, 0.05);
    opacity: 0.8;
    animation: brandRingPulse 4s ease-in-out infinite;
}

.hero-brand-mark-ring--inner {
    inset: -14px;
    border: 1px dashed rgba(83, 223, 255, 0.28);
    opacity: 0.36;
    animation: heroBrandOrbit 13s linear infinite;
}

.hero-brand-mark-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.page-lightning {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
}

body.lightning-disabled .page-lightning,
body.lightning-disabled .lightning-stage {
    opacity: 0;
    visibility: hidden;
}

.lightning-stage {
    position: absolute;
    inset: -24px;
    z-index: 4;
    overflow: visible;
}

.lightning-bolt {
    position: absolute;
    width: var(--bolt-width, 88px);
    height: var(--bolt-height, 180px);
    opacity: 0;
    transform-origin: top center;
    overflow: visible;
}

.lightning-bolt::after {
    content: "";
    position: absolute;
    inset: 8% 16%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(193, 240, 255, 0.45) 0%, rgba(45, 246, 255, 0.14) 36%, transparent 76%);
    filter: blur(18px);
    opacity: 0;
    transform: scale(0.72);
}

.lightning-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lightning-svg path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    shape-rendering: geometricPrecision;
}

.lightning-glow {
    stroke: rgba(146, 227, 255, 0.92);
    stroke-width: calc(7px + (var(--bolt-strength, 0.75) * 10px));
    filter:
        blur(2px)
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.88))
        drop-shadow(0 0 28px rgba(45, 246, 255, 0.95))
        drop-shadow(0 0 48px rgba(79, 189, 255, 0.7));
    opacity: 0;
}

.lightning-core {
    stroke: rgba(255, 255, 255, 0.98);
    stroke-width: calc(1.8px + (var(--bolt-strength, 0.75) * 2.6px));
    filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.88));
    opacity: 0;
}

.lightning-branch {
    stroke: rgba(175, 238, 255, 0.92);
    stroke-width: calc(1px + (var(--bolt-strength, 0.75) * 1.6px));
    filter:
        blur(0.4px)
        drop-shadow(0 0 10px rgba(45, 246, 255, 0.65));
    opacity: 0;
}

.lightning-bolt.is-pointer-locked .lightning-glow {
    filter:
        blur(2px)
        drop-shadow(0 0 14px rgba(255, 255, 255, 0.96))
        drop-shadow(0 0 34px rgba(45, 246, 255, 1))
        drop-shadow(0 0 58px rgba(114, 210, 255, 0.82));
}

.lightning-bolt.is-pointer-locked::after {
    background: radial-gradient(circle, rgba(218, 247, 255, 0.58) 0%, rgba(45, 246, 255, 0.22) 36%, transparent 76%);
}

body.is-safari-browser .page-lightning {
    mix-blend-mode: screen;
    opacity: 0.94;
}

body.is-safari-browser .lightning-bolt::after {
    filter: blur(14px);
    opacity: 0;
}

body.is-safari-browser .lightning-glow {
    stroke-width: calc(8px + (var(--bolt-strength, 0.75) * 11px));
    filter:
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.96))
        drop-shadow(0 0 22px rgba(45, 246, 255, 0.95))
        drop-shadow(0 0 38px rgba(79, 189, 255, 0.78));
}

body.is-safari-browser .lightning-core {
    stroke-width: calc(2.2px + (var(--bolt-strength, 0.75) * 2.9px));
    filter:
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.92))
        drop-shadow(0 0 14px rgba(45, 246, 255, 0.42));
}

body.is-safari-browser .lightning-branch {
    stroke-width: calc(1.2px + (var(--bolt-strength, 0.75) * 1.7px));
    filter: drop-shadow(0 0 8px rgba(45, 246, 255, 0.62));
}

.bolt-1 {
    top: -22px;
    left: -12px;
    width: 310px;
    height: 360px;
}

.bolt-2 {
    top: -10px;
    right: -28px;
    width: 300px;
    height: 390px;
}

.page-bolt {
    --bolt-width: 34vw;
    opacity: 0;
}

.page-bolt-1 {
    top: -4vh;
    left: 12%;
    width: 34vw;
    height: 62vh;
}

.page-bolt-2 {
    top: 8vh;
    right: 4%;
    width: 30vw;
    height: 58vh;
}

.page-bolt-3 {
    top: 32vh;
    left: 2%;
    width: 38vw;
    height: 56vh;
}

.lightning-bolt.is-flashing {
    animation: lightningFlash 0.38s ease-out forwards;
    animation-delay: var(--bolt-delay, 0ms);
}

.lightning-bolt.is-flashing::after {
    animation: lightningAura 0.42s ease-out forwards;
    animation-delay: var(--bolt-delay, 0ms);
}

.lightning-bolt.is-flashing .lightning-glow {
    animation: lightningGlow 0.42s ease-out forwards;
    animation-delay: var(--bolt-delay, 0ms);
}

.lightning-bolt.is-flashing .lightning-core {
    animation: lightningTrace 0.42s ease-out forwards;
    animation-delay: var(--bolt-delay, 0ms);
    stroke-dasharray: var(--path-length, 240);
    stroke-dashoffset: var(--path-length, 240);
}

.lightning-bolt.is-flashing .lightning-branch {
    animation: lightningBranchTrace 0.32s ease-out forwards;
    animation-delay: calc(var(--bolt-delay, 0ms) + 14ms);
    stroke-dasharray: var(--path-length, 120);
    stroke-dashoffset: var(--path-length, 120);
}

.hero-panel {
    position: absolute;
    z-index: 3;
    inset: 88px 20px 28px 20px;
    padding: 0;
    border-radius: 40px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 0.35s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.anthem-live .hero-panel {
    filter: drop-shadow(0 0 calc(20px + (var(--music-bass) * 18px)) rgba(45, 246, 255, 0.22));
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 18px 10px 6px 10px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 72% 18%, rgba(45, 246, 255, 0.16), transparent 24%),
        radial-gradient(circle at 24% 74%, rgba(121, 168, 255, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(4, 11, 22, 0.02), rgba(4, 11, 22, 0.18));
    filter: blur(14px);
    opacity: 0.96;
    pointer-events: none;
}

.hero-panel-grid {
    position: relative;
    z-index: 1;
    height: 100%;
}

.hero-panel-illustration {
    position: relative;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 16%, rgba(45, 246, 255, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(10, 24, 46, 0.16), rgba(6, 18, 34, 0.06));
    border: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 20px 60px rgba(0, 0, 0, 0.26),
        0 0 36px rgba(45, 246, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-panel-illustration::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 11, 22, 0.02), rgba(4, 11, 22, 0.18)),
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom left, rgba(121, 168, 255, 0.08), transparent 36%);
    pointer-events: none;
}

.hero-panel-illustration::after {
    content: "";
    position: absolute;
    inset: auto 8% -6% 8%;
    height: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 246, 255, 0.18) 0%, rgba(45, 246, 255, 0.05) 42%, transparent 74%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-panel-illustration img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    opacity: 0.98;
    transform: scale(1.07);
    filter:
        saturate(1.04)
        drop-shadow(0 0 14px rgba(45, 246, 255, 0.12));
}

.panel-module {
    min-height: 92px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(14, 33, 61, 0.76), rgba(10, 24, 46, 0.82));
    border: 1px solid rgba(75, 182, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(45, 246, 255, 0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.panel-module::after {
    content: "";
    position: absolute;
    inset: auto 12px 12px 12px;
    height: 2px;
    background: linear-gradient(90deg, rgba(45, 246, 255, 0.08), rgba(45, 246, 255, 0.7), rgba(45, 246, 255, 0.08));
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(45, 246, 255, 0.24);
}

.panel-module-wide {
    grid-column: 1 / -1;
    min-height: 128px;
}

.panel-module-accent {
    background:
        linear-gradient(180deg, rgba(14, 46, 74, 0.78), rgba(8, 21, 39, 0.84));
}

.panel-module-tall {
    min-height: 182px;
}

.floating-card {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.92rem 1rem;
    border-radius: 18px;
    background: rgba(6, 18, 34, 0.7);
    border: 1px solid rgba(75, 182, 255, 0.18);
    box-shadow:
        0 0 26px rgba(45, 246, 255, 0.08),
        0 14px 28px rgba(0, 0, 0, 0.28);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    transition: transform 0.35s ease;
    isolation: isolate;
    overflow: visible;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.floating-card > span:last-child {
    position: relative;
    z-index: 2;
    line-height: 1.15;
    text-shadow: 0 0 16px rgba(5, 14, 27, 0.42);
}

@keyframes brandIconBreathe {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-1px) scale(1.03);
    }
}

@keyframes brandHaloSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes brandRingPulse {
    0%, 100% {
        opacity: 0.54;
        transform: scale(1);
    }
    50% {
        opacity: 0.88;
        transform: scale(1.05);
    }
}

@keyframes heroBrandOrbit {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.02);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

.mini-icon,
.service-icon,
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(160deg, rgba(12, 33, 59, 0.94), rgba(6, 18, 34, 0.9));
    border: 1px solid rgba(75, 182, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(45, 246, 255, 0.06);
}

.mini-icon {
    position: relative;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex-shrink: 0;
}

.mini-icon svg,
.service-icon svg,
.info-icon svg {
    stroke: var(--color-accent-2);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-icon svg {
    width: 21px;
    height: 21px;
}

.card-1 {
    top: 8px;
    left: 4px;
    max-width: 432px;
    animation: floatCardA 8s ease-in-out infinite;
}

.card-2 {
    top: 218px;
    right: -22px;
    max-width: 456px;
    animation: floatCardB 8s ease-in-out infinite 2s;
}

.card-3 {
    bottom: 18px;
    left: 26px;
    max-width: 322px;
    animation: floatCardA 8s ease-in-out infinite 4s;
}

@keyframes floatCardA {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes anthemBars {
    0%, 100% {
        transform: scaleY(0.48);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1.08);
        opacity: 1;
    }
}

@keyframes lightningToggleTrace {
    0%, 100% {
        opacity: 0.42;
        transform: translateX(0);
    }
    45% {
        opacity: 1;
        transform: translateX(0.5px);
    }
    70% {
        opacity: 0.72;
        transform: translateX(-0.35px);
    }
}

@keyframes speakerPulse {
    0%, 100% {
        transform: scale(0.96);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes slowPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10%,
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(360px);
        opacity: 0;
    }
}

@keyframes lightningFlash {
    0% {
        opacity: 0;
    }
    12% {
        opacity: var(--bolt-strength, 0.78);
    }
    28% {
        opacity: 0.1;
    }
    42% {
        opacity: calc(var(--bolt-strength, 0.78) * 0.85);
    }
    100% {
        opacity: 0;
    }
}

@keyframes lightningAura {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }
    18% {
        opacity: calc(0.2 + (var(--bolt-strength, 0.78) * 0.35));
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

@keyframes lightningGlow {
    0% {
        opacity: 0;
    }
    14% {
        opacity: calc(0.42 + (var(--bolt-strength, 0.78) * 0.5));
    }
    32% {
        opacity: 0.14;
    }
    48% {
        opacity: calc(0.28 + (var(--bolt-strength, 0.78) * 0.38));
    }
    100% {
        opacity: 0;
    }
}

@keyframes lightningTrace {
    0% {
        opacity: 0;
        stroke-dashoffset: var(--path-length, 240);
    }
    16% {
        opacity: 1;
    }
    32% {
        opacity: 0.24;
    }
    48% {
        opacity: 0.94;
    }
    100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
}

@keyframes lightningBranchTrace {
    0% {
        opacity: 0;
        stroke-dashoffset: var(--path-length, 120);
    }
    20% {
        opacity: 0.82;
    }
    100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
}

/* =====================
   SHARED SECTIONS
===================== */
.section-container {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-left {
    text-align: left;
    max-width: 1180px;
}

.section-tag {
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
    margin-bottom: 0.9rem;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.02rem;
}

.section-header-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

/* =====================
   FACTS
===================== */
.facts {
    padding: 2rem max(2rem, calc(var(--safe-right) + 1rem)) 2rem max(2rem, calc(var(--safe-left) + 1rem));
}

.facts-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 1.8rem;
    border-radius: 30px;
    background: rgba(6, 18, 34, 0.76);
    border: 1px solid rgba(75, 182, 255, 0.12);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.fact-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 18px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    border: 1px solid transparent;
    transform-style: preserve-3d;
}

.fact-item:hover {
    background: rgba(10, 24, 46, 0.7);
    border-color: rgba(45, 246, 255, 0.18);
    box-shadow: 0 0 26px rgba(45, 246, 255, 0.08);
}

.fact-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--color-accent-2);
    text-shadow: 0 0 14px rgba(45, 246, 255, 0.2);
}

.fact-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.fact-divider {
    width: 1px;
    background: rgba(75, 182, 255, 0.12);
}

/* =====================
   ABOUT
===================== */
.about {
    position: relative;
    padding: 4.8rem max(2rem, calc(var(--safe-right) + 1rem)) 1rem max(2rem, calc(var(--safe-left) + 1rem));
    background:
        linear-gradient(180deg, rgba(8, 19, 35, 0.62) 0%, rgba(8, 19, 35, 0.74) 36%, rgba(5, 14, 27, 0.52) 100%);
}

.about::before,
.about::after,
.services::before,
.services::after,
.cta::before,
.cta::after,
.about .section-container::before,
.about .section-container::after,
.services .section-container::before,
.services .section-container::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.about::before {
    inset: 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(45, 246, 255, 0.12), transparent 18%),
        radial-gradient(circle at 84% 16%, rgba(121, 168, 255, 0.1), transparent 18%);
    opacity: 0.96;
}

.about::after {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 14, 27, 0) 0%, rgba(5, 14, 27, 0.18) 100%);
    opacity: 1;
}

.about .section-container::before {
    inset: -0.8rem -1.2rem -0.4rem;
    z-index: 0;
    border-radius: 36px;
    background:
        radial-gradient(circle at 18% 20%, rgba(45, 246, 255, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(8, 19, 35, 0.08), rgba(8, 19, 35, 0.14) 40%, rgba(5, 14, 27, 0.06) 100%);
    opacity: 0.8;
}

.about .section-container::after {
    inset: 0.6rem -0.4rem 0;
    z-index: 0;
    background: radial-gradient(circle at 72% 20%, rgba(121, 168, 255, 0.04), transparent 18%);
    opacity: 0.56;
}

.about .section-container,
.services .section-container,
.cta .cta-container {
    position: relative;
    z-index: 1;
}

.about .section-container > *,
.services .section-container > * {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.about-header {
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.about-title {
    max-width: 1180px;
    font-size: clamp(2rem, 3.7vw, 2.8rem);
}

@media (min-width: 1024px) {
    .about-title {
        white-space: nowrap;
    }
}

.about-copy {
    max-width: 980px;
    display: grid;
    gap: 0.72rem;
}

.about-copy p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
    line-height: 1.58;
}

.info-card {
    padding: 1.9rem;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(10, 24, 46, 0.86), rgba(6, 18, 34, 0.92));
    border: 1px solid rgba(75, 182, 255, 0.14);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    transform-style: preserve-3d;
}

.info-card:hover {
    border-color: rgba(45, 246, 255, 0.22);
    box-shadow:
        0 0 26px rgba(45, 246, 255, 0.08),
        var(--shadow-soft);
}

.info-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 1.15rem;
    border-radius: 18px;
}

.info-icon svg {
    width: 30px;
    height: 30px;
}

.info-kicker {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 0.7rem;
}

.info-card p {
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

.info-card a {
    color: var(--color-accent-2);
    font-weight: 600;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.about-card {
    padding: 1.35rem 1.2rem;
    border-radius: 22px;
}

.about-card .info-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 0.9rem;
    border-radius: 15px;
}

.about-card .info-icon svg {
    width: 26px;
    height: 26px;
}

.about-card .info-kicker {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
}

.about-card h3 {
    font-size: 1.02rem;
    line-height: 1.12;
    margin-bottom: 0.55rem;
}

.about-card p {
    font-size: 0.84rem;
    line-height: 1.52;
}

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

/* =====================
   SERVICES
===================== */
.services {
    position: relative;
    padding: 4.8rem max(2rem, calc(var(--safe-right) + 1rem)) 5rem max(2rem, calc(var(--safe-left) + 1rem));
    background:
        linear-gradient(180deg, rgba(10, 26, 48, 0.78) 0%, rgba(9, 24, 44, 0.86) 34%, rgba(5, 14, 27, 0.68) 100%);
}

.services::before {
    inset: 0;
    background:
        radial-gradient(circle at 84% 10%, rgba(45, 246, 255, 0.14), transparent 18%),
        radial-gradient(circle at 54% 14%, rgba(121, 168, 255, 0.08), transparent 14%);
    opacity: 0.96;
}

.services::after {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 14, 27, 0) 0%, rgba(5, 14, 27, 0.16) 100%);
    opacity: 1;
}

.services .section-container::before {
    inset: -0.9rem -1.2rem -1.2rem;
    z-index: 0;
    border-radius: 38px;
    background:
        radial-gradient(circle at 84% 18%, rgba(45, 246, 255, 0.06), transparent 18%),
        linear-gradient(180deg, rgba(8, 21, 39, 0.12), rgba(8, 21, 39, 0.1) 26%, rgba(5, 14, 27, 0.03) 52%, rgba(5, 14, 27, 0.06) 100%);
    opacity: 0.74;
}

.services .section-container::after {
    inset: 0 -0.6rem -0.4rem;
    z-index: 0;
    background: radial-gradient(circle at 52% 14%, rgba(121, 168, 255, 0.04), transparent 14%);
    opacity: 0.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    padding: 1.95rem;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(10, 24, 46, 0.88), rgba(6, 18, 34, 0.95));
    border: 1px solid rgba(75, 182, 255, 0.14);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    transform-style: preserve-3d;
}

.services .section-tag {
    background: rgba(13, 36, 67, 0.9);
    border-color: rgba(115, 188, 255, 0.26);
    color: var(--color-accent-2);
    box-shadow: 0 0 18px rgba(45, 246, 255, 0.08);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.12), transparent 36%),
        linear-gradient(135deg, rgba(121, 168, 255, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    top: -120px;
    height: 180px;
    background: linear-gradient(180deg, rgba(45, 246, 255, 0.14), transparent);
    transform: rotate(8deg);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-card:hover {
    border-color: rgba(45, 246, 255, 0.26);
    box-shadow:
        0 0 34px rgba(45, 246, 255, 0.09),
        0 20px 40px rgba(0, 0, 0, 0.28);
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-card--featured {
    border-color: rgba(45, 246, 255, 0.24);
    box-shadow:
        inset 0 0 0 1px rgba(45, 246, 255, 0.05),
        0 0 34px rgba(45, 246, 255, 0.08),
        var(--shadow-soft);
}

.service-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 1rem;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3,
.service-card p {
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* =====================
   CATALOG
===================== */
.catalog-page {
    background:
        radial-gradient(circle at top left, rgba(45, 246, 255, 0.1), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(75, 182, 255, 0.12), transparent 32%),
        linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-2) 42%, #050c18 100%);
}

.catalog-main {
    padding-top: calc(118px + var(--safe-top));
    padding-bottom: calc(4rem + var(--safe-bottom));
}

.catalog-hero {
    padding: 1.25rem max(2rem, calc(var(--safe-right) + 1rem)) 2rem max(2rem, calc(var(--safe-left) + 1rem));
}

.catalog-section {
    padding: 0 max(2rem, calc(var(--safe-right) + 1rem)) 4rem max(2rem, calc(var(--safe-left) + 1rem));
}

.catalog-hero-card {
    padding: 2.3rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(9, 23, 43, 0.82), rgba(4, 11, 22, 0.86));
    border: 1px solid rgba(75, 182, 255, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(45, 246, 255, 0.04),
        0 24px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.catalog-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
    gap: 1.4rem;
    align-items: center;
}

.catalog-hero-copy {
    min-width: 0;
}

.catalog-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.catalog-hero-stats {
    margin-top: 1.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-hero-stat {
    min-width: 170px;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(8, 19, 37, 0.75);
    border: 1px solid rgba(115, 188, 255, 0.24);
}

.catalog-hero-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.catalog-hero-stat span {
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.catalog-category-grid,
.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.catalog-card-link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
    min-height: 100%;
}

.catalog-category-card,
.catalog-product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    padding: 1.7rem;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(10, 24, 46, 0.72), rgba(6, 18, 34, 0.82));
    border: 1px solid rgba(75, 182, 255, 0.14);
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
}

.catalog-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at top left, rgba(45, 246, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(10, 24, 46, 0.78), rgba(6, 18, 34, 0.84));
    border: 1px solid rgba(75, 182, 255, 0.12);
}

.catalog-card-media::after {
    content: "";
    position: absolute;
    inset: auto 9% 8% 9%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(45, 246, 255, 0.2), rgba(45, 246, 255, 0.85), rgba(75, 182, 255, 0.34));
    box-shadow: 0 0 16px rgba(45, 246, 255, 0.18);
}

.catalog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-card-media--hero {
    aspect-ratio: 1 / 1;
    max-width: 340px;
    width: 100%;
}

.catalog-category-top,
.catalog-product-top,
.catalog-category-footer,
.catalog-toolbar,
.catalog-breadcrumbs,
.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.catalog-pill,
.catalog-count,
.catalog-product-lead,
.catalog-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(115, 188, 255, 0.24);
    background: rgba(8, 19, 37, 0.72);
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.catalog-category-card h2,
.catalog-product-card h2 {
    font-family: var(--font-heading);
    font-size: 1.32rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.catalog-category-card p,
.catalog-product-card p,
.catalog-summary,
.catalog-breadcrumbs {
    color: var(--color-text-muted);
}

.catalog-arrow {
    color: var(--color-accent-2);
    font-weight: 700;
}

.catalog-back-link {
    white-space: nowrap;
}

.catalog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.catalog-section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.catalog-tag-list {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.catalog-breadcrumbs {
    margin-bottom: 0.9rem;
    font-size: 0.88rem;
}

.catalog-breadcrumbs a {
    text-decoration: none;
}

.catalog-pagination {
    margin-top: 1.8rem;
    justify-content: center;
}

.catalog-pagination-pages {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.catalog-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--color-text);
    background: rgba(8, 19, 37, 0.75);
    border: 1px solid rgba(115, 188, 255, 0.24);
}

.catalog-pagination-link.is-active {
    color: #03101d;
    background: linear-gradient(135deg, var(--color-accent-2), var(--color-accent));
    border-color: transparent;
}

.catalog-pagination-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.catalog-product-trigger {
    width: 100%;
    margin-top: auto;
}

.catalog-product-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(1rem, calc(var(--safe-top) + 1rem))
        max(1rem, calc(var(--safe-right) + 1rem))
        max(1rem, calc(var(--safe-bottom) + 1rem))
        max(1rem, calc(var(--safe-left) + 1rem));
    background: rgba(2, 8, 18, 0.48);
    backdrop-filter: blur(5px) saturate(108%);
    -webkit-backdrop-filter: blur(5px) saturate(108%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.catalog-product-modal-backdrop[hidden] {
    display: none !important;
}

.catalog-product-modal-backdrop.is-active {
    opacity: 1;
}

.catalog-product-modal-backdrop.is-closing {
    opacity: 0;
}

.catalog-product-modal-shell {
    position: relative;
    width: min(1080px, 100%);
    transform: translateY(22px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.catalog-product-modal-backdrop.is-active .catalog-product-modal-shell {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.catalog-product-modal-backdrop.is-closing .catalog-product-modal-shell {
    transform: translateY(14px) scale(0.988);
    opacity: 0;
}

.catalog-product-modal-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 3.85rem 1.45rem 1.45rem;
    background:
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.14), transparent 24%),
        linear-gradient(145deg, rgba(9, 23, 43, 0.1), rgba(4, 11, 22, 0.03));
    border: 1px solid rgba(115, 188, 255, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(45, 246, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 58px rgba(45, 246, 255, 0.14),
        0 24px 68px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(44px) saturate(195%);
    -webkit-backdrop-filter: blur(44px) saturate(195%);
}

.catalog-product-modal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.18), transparent 20%),
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.24), transparent 28%),
        radial-gradient(circle at bottom left, rgba(121, 168, 255, 0.14), transparent 36%);
    opacity: 1;
}

.catalog-product-modal-card > * {
    position: relative;
    z-index: 1;
}

.catalog-product-modal-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
    gap: 1.35rem;
    align-items: start;
}

.catalog-product-modal-media {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-modal-gallery {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(75, 182, 255, 0.14);
    background: linear-gradient(180deg, rgba(10, 24, 46, 0.72), rgba(6, 18, 34, 0.82));
}

.catalog-modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

.catalog-product-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.catalog-product-modal-content .catalog-product-top {
    padding-right: 4.25rem;
    align-items: flex-start;
}

.catalog-modal-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
}

.catalog-modal-summary,
.catalog-product-modal-description {
    color: var(--color-text-muted);
}

.catalog-product-modal-description p {
    margin: 0;
}

.catalog-modal-full-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.75rem 0 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2df6ff;
    background: rgba(45, 246, 255, 0.08);
    border: 1px solid rgba(45, 246, 255, 0.18);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.catalog-modal-full-link:hover {
    background: rgba(45, 246, 255, 0.15);
    border-color: rgba(45, 246, 255, 0.35);
}
.catalog-product-modal-specs h3 {
    margin: 0 0 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.catalog-product-modal-specs dl {
    margin: 0;
    display: grid;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(115, 188, 255, 0.18);
}

.catalog-product-spec-line {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    border-bottom: 1px solid rgba(115, 188, 255, 0.1);
}

.catalog-product-spec-line:last-child {
    border-bottom: none;
}

.catalog-product-spec-line dt,
.catalog-product-spec-line dd {
    padding: 0.5rem 0.7rem;
    font-size: 0.88rem;
    margin: 0;
}

.catalog-product-spec-line dt {
    color: var(--color-text-muted);
    background: rgba(8, 19, 37, 0.35);
    border-right: 1px solid rgba(115, 188, 255, 0.1);
}

.catalog-product-spec-line dd {
    color: var(--color-text);
}

.catalog-product-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(7, 19, 36, 0.26);
    border: 1px solid rgba(75, 182, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 18px rgba(45, 246, 255, 0.08);
    backdrop-filter: blur(20px) saturate(165%);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
}

.catalog-product-modal-close span {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-text);
}

.catalog-product-modal-close span:first-child {
    transform: rotate(45deg);
}

.catalog-product-modal-close span:last-child {
    transform: rotate(-45deg);
}

body.catalog-product-modal-open {
    overflow: hidden;
}

/* =====================
   CTA / CONTACT
===================== */
.cta {
    position: relative;
    padding: 0 max(2rem, calc(var(--safe-right) + 1rem)) 5rem max(2rem, calc(var(--safe-left) + 1rem));
    background:
        linear-gradient(180deg, rgba(8, 19, 35, 0.72) 0%, rgba(6, 16, 30, 0.84) 36%, rgba(4, 11, 22, 0.92) 100%);
}

.cta::before {
    background:
        radial-gradient(circle at 16% 16%, rgba(45, 246, 255, 0.1), transparent 18%),
        radial-gradient(circle at 88% 18%, rgba(121, 168, 255, 0.08), transparent 16%);
    opacity: 0.98;
}

.cta::after {
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 11, 22, 0) 0%, rgba(4, 11, 22, 0.2) 100%);
    opacity: 1;
}

.cta-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.4rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(45, 246, 255, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(9, 23, 43, 0.82), rgba(4, 11, 22, 0.86));
    border: 1px solid rgba(75, 182, 255, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(45, 246, 255, 0.04),
        0 24px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.cta-copy {
    max-width: 720px;
    margin-bottom: 1.8rem;
}

.cta-copy .section-tag {
    background: rgba(13, 36, 67, 0.9);
    border-color: rgba(115, 188, 255, 0.26);
    color: var(--color-accent-2);
}

.cta-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.05em;
    margin-bottom: 0.9rem;
}

.cta-copy p,
.contact-footnote p {
    color: var(--color-text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.15rem 1.2rem;
    border-radius: 22px;
    background: rgba(10, 24, 46, 0.84);
    border: 1px solid rgba(75, 182, 255, 0.14);
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    transform-style: preserve-3d;
}

.contact-card:hover {
    background: rgba(12, 31, 57, 0.92);
    border-color: rgba(45, 246, 255, 0.24);
    box-shadow: 0 0 26px rgba(45, 246, 255, 0.08);
}

.contact-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.contact-card strong {
    font-size: 1rem;
    line-height: 1.3;
}

.contact-footnote {
    display: grid;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.company-requisites {
    margin-top: 1.5rem;
}

.company-requisites-tag {
    margin-bottom: 0.95rem;
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.requisite-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(10, 24, 46, 0.62);
    border: 1px solid rgba(75, 182, 255, 0.12);
    backdrop-filter: blur(14px) saturate(132%);
    -webkit-backdrop-filter: blur(14px) saturate(132%);
}

.requisite-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.requisite-item-wide {
    grid-column: span 2;
}

.requisite-label {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.requisite-item strong {
    font-size: 0.94rem;
    line-height: 1.4;
    color: var(--color-text);
    word-break: break-word;
}

.requisite-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.32rem 0.68rem;
    border: 1px solid rgba(115, 188, 255, 0.26);
    border-radius: 999px;
    background: rgba(9, 24, 45, 0.55);
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.requisite-copy:hover {
    background: rgba(14, 37, 67, 0.62);
    border-color: rgba(45, 246, 255, 0.26);
    color: var(--color-text);
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(45, 246, 255, 0.08);
}

.requisite-copy.is-copied {
    background: rgba(45, 246, 255, 0.18);
    border-color: rgba(45, 246, 255, 0.34);
    color: var(--color-accent-2);
}

.requisite-copy.is-error {
    background: rgba(255, 117, 117, 0.14);
    border-color: rgba(255, 117, 117, 0.28);
    color: #ffc3c3;
}

/* =====================
   FOOTER
===================== */
.footer {
    padding: 2rem max(2rem, calc(var(--safe-right) + 1rem)) calc(2rem + var(--safe-bottom)) max(2rem, calc(var(--safe-left) + 1rem));
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .header,
    .anthem-company,
    .anthem-toggle-icon,
    .hero-note,
    .facts-container {
        background: rgba(8, 19, 37, 0.94);
    }
}

@supports not (mix-blend-mode: screen) {
    .page-lightning {
        mix-blend-mode: normal;
        opacity: 0.78;
    }
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1120px) {
    .nav-links--grouped > li > a,
    .nav-group-trigger {
        padding: 0.4rem 0.4rem;
        font-size: 0.7rem;
        min-height: 32px;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.4rem 0.4rem;
    }

    .nav-links {
        gap: 0.15rem;
    }

    .brand-name {
        font-size: 0.88rem;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-visual {
        justify-self: center;
        max-width: 540px;
        min-height: 520px;
    }

    .hero-brand-mark {
        right: 22px;
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .catalog-category-grid,
    .catalog-product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-hero-layout,
    .catalog-product-modal-grid {
        grid-template-columns: 1fr;
    }

    .catalog-hero-visual {
        justify-content: flex-start;
    }

    .catalog-card-media--hero {
        max-width: 260px;
    }
}

@media (max-width: 960px) and (min-width: 769px) {
    .nav-links--grouped > li > a,
    .nav-group-trigger {
        padding: 0.35rem 0.3rem;
        font-size: 0.66rem;
        min-height: 30px;
    }

    .nav-links a {
        font-size: 0.66rem;
        padding: 0.35rem 0.3rem;
    }

    .nav-links {
        gap: 0.1rem;
    }

    .nav-brand {
        margin-right: 6px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 0.82rem;
    }

    .nav-username {
        max-width: 100px;
    }

    .nav-btn {
        padding: 6px 12px;
        font-size: 0.76rem;
    }
}

@media (max-width: 768px) {
    .header {
        --nav-inset: 1rem;
    }

    .nav {
        height: calc(78px + var(--safe-top));
        min-height: calc(78px + var(--safe-top));
        padding: calc(var(--safe-top) + 0.9rem) 0 0.9rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .nav-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav-links {
        display: none;
    }

    .nav-auth {
        width: auto;
        margin-left: auto;
        flex: 0 1 auto;
    }

    .nav-auth > div,
    .nav-user {
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .nav-username {
        width: auto;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.82rem;
    }

    .nav-btn {
        flex: 0 0 auto;
        min-width: 0;
        padding: 0.5rem 0.8rem;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .nav-menu-toggle {
        display: inline-flex;
    }

    .nav-mobile-panel {
        display: block;
        top: calc(var(--safe-top) + 88px);
        max-height: calc(100dvh - var(--safe-top) - 88px - max(1rem, var(--safe-bottom)));
    }

    .nav-mobile-backdrop {
        display: block;
    }

    .hero-topbar {
        align-items: stretch;
    }

    .effect-toggle-cluster {
        top: calc(148px + var(--safe-top));
        left: auto;
        right: max(1rem, calc(var(--safe-right) + 0.85rem));
        transform-origin: right center;
        transition-duration: 0.24s;
    }

    .page-lightning {
        display: block;
        opacity: 0.76;
    }

    .lightning-stage {
        inset: -8px;
    }

    .page-bolt {
        --bolt-width: 46vw;
    }

    .page-bolt-1 {
        top: 6vh;
        left: -4%;
        width: 48vw;
        height: 36vh;
    }

    .page-bolt-2 {
        top: 18vh;
        right: -6%;
        width: 42vw;
        height: 34vh;
    }

    .page-bolt-3 {
        top: 42vh;
        left: -2%;
        width: 46vw;
        height: 34vh;
    }

    .page-bolt-4 {
        top: 54vh;
        right: -4%;
        width: 44vw;
        height: 32vh;
    }

    .page-bolt-5 {
        top: 74vh;
        left: 12%;
        width: 50vw;
        height: 24vh;
    }

    .facts-container {
        flex-direction: column;
    }

    .fact-divider {
        width: 100%;
        height: 1px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .requisites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --header-panel-inset: 0.24rem;
        --header-panel-height: 54px;
    }

    .header.is-anthem-docked-tight .nav-auth > div,
    .header.is-anthem-docked-tight .nav-user {
        gap: 0.24rem;
    }

    .header.is-anthem-docked-tight .nav-btn {
        padding: 0.34rem 0.5rem;
        font-size: 0.6rem;
    }

    .header,
    .hero,
    .facts,
    .about,
    .services,
    .cta,
    .footer {
        padding-left: max(1rem, calc(var(--safe-left) + 0.85rem));
        padding-right: max(1rem, calc(var(--safe-right) + 0.85rem));
    }

    .hero {
        padding-top: calc(172px + var(--safe-top));
        padding-bottom: calc(4rem + var(--safe-bottom));
    }

    .header::before {
        width: min(100%, calc(100% - max(1.9rem, calc(var(--safe-left) + var(--safe-right) + 1.9rem))));
        border-radius: 20px;
    }

    .header::after {
        width: min(100%, calc(100% - max(1.9rem, calc(var(--safe-left) + var(--safe-right) + 1.9rem))));
        border-radius: 20px;
    }

    .catalog-main {
        padding-top: calc(90px + var(--safe-top));
    }

    .catalog-hero,
    .catalog-section {
        padding-left: max(1rem, calc(var(--safe-left) + 0.85rem));
        padding-right: max(1rem, calc(var(--safe-right) + 0.85rem));
    }

    .nav {
        min-height: calc(var(--header-panel-height) + var(--safe-top));
        height: calc(var(--header-panel-height) + var(--safe-top));
        padding: calc(var(--safe-top) + var(--header-panel-inset)) 0.72rem var(--header-panel-inset);
        flex-wrap: nowrap;
        gap: 0.52rem;
        align-items: center;
        max-width: 100%;
    }

    .nav-brand {
        gap: 0.55rem;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 0.94rem;
    }

    .nav-auth {
        width: auto;
        flex: 0 0 auto;
    }

    .nav-auth > div,
    .nav-user {
        width: auto;
        gap: 0.4rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .nav-btn {
        flex: 0 0 auto;
        min-width: 0;
        padding: 0.44rem 0.66rem;
        font-size: 0.69rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .nav-username {
        width: auto;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-menu-toggle {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .nav-menu-toggle span {
        width: 16px;
    }

    .nav-mobile-panel {
        top: calc(var(--safe-top) + 62px);
        padding: 0.82rem;
        border-radius: 18px;
        max-height: calc(100dvh - var(--safe-top) - 62px - max(1rem, var(--safe-bottom)));
    }

    .nav-mobile-backdrop {
        top: calc(var(--safe-top) + 62px);
    }

    .nav-mobile-link {
        min-height: 40px;
        padding: 0.68rem 0.78rem;
        font-size: 0.88rem;
    }

    .nav-mobile-user-email {
        font-size: 0.86rem;
    }

    .nav-mobile-auth-btn {
        min-height: 40px;
        padding: 0.68rem 0.78rem;
        font-size: 0.8rem;
    }

    .catalog-hero-card,
    .catalog-category-card,
    .catalog-product-card {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .catalog-hero-stat {
        min-width: 136px;
        flex: 1 1 0;
    }

    .catalog-toolbar {
        align-items: stretch;
    }

    .catalog-back-link {
        width: 100%;
    }

    .catalog-pagination-link {
        min-width: 38px;
        min-height: 38px;
        padding: 0.58rem 0.82rem;
    }

    .catalog-product-modal-card {
        padding: 3.55rem 1rem 1rem;
        border-radius: 24px;
    }

    .catalog-card-media {
        border-radius: 18px;
    }

    .catalog-modal-gallery {
        border-radius: 20px;
    }

    .catalog-product-spec-line {
        grid-template-columns: 0.7fr 1fr;
    }

    .catalog-product-spec-line dt,
    .catalog-product-spec-line dd {
        padding: 0.4rem 0.55rem;
        font-size: 0.82rem;
    }

    .catalog-product-modal-content .catalog-product-top {
        padding-right: 3.8rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem);
        line-height: 1;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions,
    .hero-notes {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .effect-toggle-cluster {
        top: calc(76px + var(--safe-top));
        right: max(1rem, calc(var(--safe-right) + 0.85rem));
        gap: 0.4rem;
    }

    .anthem-company {
        max-width: 146px;
        font-size: 0.62rem;
        padding: 0.32rem 0.56rem;
    }

    .anthem-toggle-icon {
        width: 40px;
        height: 28px;
    }

    .lightning-toggle {
        width: 38px;
        height: 28px;
    }

    .hero-visual {
        min-height: 430px;
        max-width: 100%;
    }

    .hero-brand-mark {
        width: 104px;
        height: 104px;
        top: 8px;
        right: 8px;
    }

    .hero-panel {
        inset: 86px 0 20px 0;
    }

    .floating-card {
        font-size: 0.76rem;
        padding: 0.68rem 0.74rem;
        white-space: normal;
        max-width: 168px;
    }

    .card-2 {
        right: 0;
        top: 198px;
    }

    .card-3 {
        left: 4px;
        bottom: 10px;
    }

    .cta-container {
        padding: 1.5rem;
    }

    .requisites-grid {
        grid-template-columns: 1fr;
    }

    .requisite-item-wide {
        grid-column: span 1;
    }

    .requisite-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-modal-card {
        padding: 1.15rem;
        border-radius: 22px;
        max-height: min(84dvh, 640px);
    }

    .auth-modal-title {
        font-size: 1.35rem;
    }

    .auth-modal-switcher {
        gap: 0.55rem;
        margin-bottom: 0.95rem;
    }

    .auth-switch-btn {
        min-height: 40px;
        font-size: 0.82rem;
    }

    .auth-modal-form {
        gap: 0.72rem;
    }

    .auth-modal-field {
        gap: 0.28rem;
    }

    .auth-modal-field span,
    .auth-modal-hint,
    .auth-modal-footnote {
        font-size: 0.78rem;
    }

    .auth-modal-input {
        min-height: 42px;
        padding: 0.68rem 0.8rem;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-panel-inset: 0.18rem;
        --header-panel-height: 48px;
    }

    .header.is-anthem-docked-tight .nav-btn {
        padding: 0.3rem 0.42rem;
        font-size: 0.56rem;
    }

    .brand-name {
        font-size: 0.86rem;
    }

    .nav {
        min-height: calc(var(--header-panel-height) + var(--safe-top));
        height: calc(var(--header-panel-height) + var(--safe-top));
        padding-top: calc(var(--safe-top) + var(--header-panel-inset));
        padding-bottom: var(--header-panel-inset);
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        gap: 0.38rem;
    }

    .header::before {
        width: min(100%, calc(100% - max(1.2rem, calc(var(--safe-left) + var(--safe-right) + 1.2rem))));
        border-radius: 16px;
    }

    .header::after {
        width: min(100%, calc(100% - max(1.2rem, calc(var(--safe-left) + var(--safe-right) + 1.2rem))));
        border-radius: 16px;
    }

    .nav-brand {
        gap: 0.45rem;
        min-width: 0;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .nav-auth > div,
    .nav-user {
        gap: 0.32rem;
    }

    .nav-btn {
        width: auto;
        padding: 0.38rem 0.54rem;
        font-size: 0.64rem;
        border-radius: 999px;
    }

    .nav-username {
        display: none;
    }

    .nav-menu-toggle {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .nav-menu-toggle span {
        width: 14px;
    }

    .nav-mobile-panel {
        top: calc(var(--safe-top) + 56px);
        padding: 0.74rem;
        border-radius: 16px;
        max-height: calc(100dvh - var(--safe-top) - 56px - max(1rem, var(--safe-bottom)));
    }

    .nav-mobile-backdrop {
        top: calc(var(--safe-top) + 56px);
    }

    .nav-mobile-links {
        gap: 0.45rem;
    }

    .nav-mobile-link {
        min-height: 38px;
        padding: 0.62rem 0.72rem;
        font-size: 0.82rem;
    }

    .nav-mobile-account {
        margin-top: 0.7rem;
        padding-top: 0.72rem;
    }

    .nav-mobile-user-label {
        font-size: 0.66rem;
    }

    .nav-mobile-user-email {
        font-size: 0.8rem;
    }

    .nav-mobile-auth-btn {
        min-height: 38px;
        padding: 0.62rem 0.72rem;
        font-size: 0.76rem;
    }

    .catalog-main {
        padding-top: calc(84px + var(--safe-top));
    }

    .catalog-hero-card,
    .catalog-category-card,
    .catalog-product-card {
        padding: 1.1rem;
        border-radius: 18px;
    }

    .catalog-category-card h2,
    .catalog-product-card h2 {
        font-size: 1.12rem;
    }

    .catalog-pill,
    .catalog-count,
    .catalog-product-lead,
    .catalog-tag {
        min-height: 28px;
        padding: 0.3rem 0.58rem;
        font-size: 0.72rem;
    }

    .catalog-section-heading {
        align-items: stretch;
    }

    .catalog-card-media {
        border-radius: 16px;
    }

    .catalog-card-media--hero {
        max-width: 220px;
    }

    .catalog-product-modal-card {
        padding: 3.2rem 0.85rem 0.85rem;
        border-radius: 20px;
    }

    .catalog-product-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }

    .catalog-product-modal-content .catalog-product-top {
        padding-right: 3.25rem;
        gap: 0.45rem;
    }

    .hero {
        padding-top: calc(150px + var(--safe-top));
    }

    .effect-toggle-cluster {
        top: calc(68px + var(--safe-top));
        right: max(0.9rem, calc(var(--safe-right) + 0.75rem));
        gap: 0.34rem;
    }

    .anthem-company {
        max-width: 118px;
        font-size: 0.57rem;
        padding: 0.28rem 0.46rem;
    }

    .anthem-toggle-icon {
        width: 36px;
        height: 26px;
        padding: 3px 5px;
    }

    .lightning-toggle {
        width: 34px;
        height: 26px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
    }

    .hero-note {
        font-size: 0.82rem;
    }

    .hero-visual {
        min-height: 356px;
    }

    .hero-brand-mark {
        display: flex;
        width: 90px;
        height: 90px;
        top: 4px;
        right: 4px;
    }

    .hero-panel {
        inset: 64px 0 10px 0;
        min-height: 286px;
    }

    .floating-card {
        display: flex;
        max-width: 144px;
        padding: 0.58rem 0.62rem;
        gap: 0.45rem;
        font-size: 0.68rem;
        border-radius: 16px;
    }

    .mini-icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .mini-icon svg {
        width: 17px;
        height: 17px;
    }

    .card-1 {
        top: 2px;
        left: 0;
        max-width: 214px;
    }

    .card-2 {
        top: 162px;
        right: 0;
        max-width: 176px;
    }

    .card-3 {
        left: 0;
        bottom: 0;
        max-width: 164px;
    }

    .section-title,
    .cta-copy h2 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }

    .info-card,
    .service-card,
    .cta-container,
    .auth-modal-card {
        border-radius: 22px;
    }

    .auth-modal-backdrop {
        padding:
            max(5vh, calc(var(--safe-top) + 0.75rem))
            max(0.75rem, calc(var(--safe-right) + 0.75rem))
            max(0.85rem, calc(var(--safe-bottom) + 0.75rem))
            max(0.75rem, calc(var(--safe-left) + 0.75rem));
    }

    .auth-modal-card {
        padding: 0.95rem;
        border-radius: 20px;
        max-height: min(82dvh, 560px);
    }

    .auth-modal-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }

    .auth-modal-switcher {
        gap: 0.45rem;
    }

    .auth-modal-title {
        font-size: 1.2rem;
    }

    .auth-switch-btn {
        min-height: 38px;
        font-size: 0.76rem;
    }

    .auth-modal-input {
        min-height: 40px;
        padding: 0.62rem 0.74rem;
    }

    .auth-modal-shell {
        width: min(100%, 360px);
    }
}

@media (hover: none), (pointer: coarse) {
    .hero-cursor-glow,
    .hero-glow-b {
        display: none;
    }

    .lightning-stage {
        opacity: 0.72;
    }

    .page-lightning {
        display: block;
        opacity: 0.72;
        mix-blend-mode: screen;
    }

    .interactive-card,
    .interactive-card:hover {
        transform: none !important;
    }
}

@supports (-webkit-touch-callout: none) {
    html {
        height: -webkit-fill-available;
        background-color: var(--color-bg);
    }

    body,
    .hero,
    .auth-page {
        min-height: -webkit-fill-available;
        min-height: 100dvh;
        min-height: 100svh;
    }
}

/* === Cart nav icon === */
.nav-cart-item { display: flex; align-items: center; }
.nav-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.35rem;
    color: var(--color-text-muted, rgba(231,238,252,0.72));
    transition: color 0.22s;
}
.nav-cart-link:hover, .nav-cart-link.is-active { color: var(--color-accent, #2df6ff); }
.nav-cart-icon { display: block; }
.cart-badge {
    position: absolute;
    top: -4px; right: -6px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--color-accent, #2df6ff);
    color: #08111f;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* === Catalog Search === */
.catalog-search-wrap {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}
.catalog-search-input {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(45,246,255,0.18);
    border-radius: 12px;
    background: rgba(8,17,31,0.72);
    color: var(--color-text, #e7eefc);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.22s;
}
.catalog-search-input:focus { border-color: rgba(45,246,255,0.42); }
.catalog-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    z-index: 120;
    background: rgba(8,17,31,0.96);
    border: 1px solid rgba(45,246,255,0.18);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    max-height: 400px;
    overflow-y: auto;
}
.catalog-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.18s;
}
.catalog-search-item:hover { background: rgba(45,246,255,0.06); }
a.catalog-search-item { text-decoration: none; color: inherit; }
.catalog-search-item-img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.catalog-search-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.catalog-search-item-name { font-size: 0.88rem; color: #e7eefc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-search-item-name .search-highlight {
    background: rgba(45,246,255,0.2);
    color: #2df6ff;
    border-radius: 2px;
    padding: 0 1px;
    font-weight: 600;
}
.catalog-search-item-price { font-size: 0.82rem; color: #2df6ff; font-weight: 600; }
.catalog-search-empty { padding: 16px; text-align: center; color: rgba(231,238,252,0.5); font-size: 0.88rem; }

/* === Catalog Product Price === */
.catalog-product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2df6ff;
    margin: 0.3rem 0;
}

/* === Catalog Product Actions === */
.catalog-product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}
.catalog-product-actions .btn { flex: 1 1 auto; min-width: 0; text-align: center; }
.btn-accent {
    background: rgba(45,246,255,0.16);
    color: #2df6ff;
    border: 1px solid rgba(45,246,255,0.32);
    border-radius: 12px;
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.22s, border-color 0.22s;
}
.btn-accent:hover { background: rgba(45,246,255,0.28); border-color: rgba(45,246,255,0.5); }

/* === Modal Price & Cart Button === */
.catalog-modal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2df6ff;
    margin: 0.5rem 0;
}
.modal-cart-block {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}
.modal-qty-row {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(45,246,255,0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10,24,46,0.6);
}
.modal-qty-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(45,246,255,0.08);
    border: none;
    color: #2df6ff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.modal-qty-btn:hover { background: rgba(45,246,255,0.18); }
.modal-qty-input {
    width: 48px; height: 36px;
    text-align: center;
    background: transparent;
    border: none;
    color: #e7eefc;
    font-size: 0.95rem;
    font-weight: 600;
    -moz-appearance: textfield;
    outline: none;
}
.modal-qty-input::-webkit-outer-spin-button,
.modal-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.catalog-modal-cart-btn {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 200px;
}
.modal-cart-status {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #43e97b;
    background: rgba(67,233,123,0.08);
    border: 1px solid rgba(67,233,123,0.18);
    opacity: 0;
    transition: opacity 0.25s;
}
.modal-cart-status.is-visible { opacity: 1; }

/* === Gallery Thumbs === */
.catalog-modal-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.catalog-gallery-thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}
.catalog-gallery-thumb:hover { opacity: 0.85; }
.catalog-gallery-thumb.is-active { opacity: 1; border-color: #2df6ff; }

/* === Image Lightbox === */
.catalog-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.catalog-lightbox.is-visible { display: flex; }
.catalog-lightbox.is-active { opacity: 1; }
.catalog-lightbox-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 92vh;
    cursor: zoom-out;
}
.catalog-lightbox-img-wrap img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.2s ease;
}
.catalog-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.catalog-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
.catalog-lightbox-close::before,
.catalog-lightbox-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}
.catalog-lightbox-close::before { transform: rotate(45deg); }
.catalog-lightbox-close::after { transform: rotate(-45deg); }
.catalog-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    z-index: 2;
}
.catalog-lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
.catalog-lightbox-nav:active { transform: translateY(-50%) scale(0.92); }
.catalog-lightbox-prev { left: 20px; }
.catalog-lightbox-next { right: 20px; }
.catalog-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 2;
    user-select: none;
}

/* === Cart Notification === */
.cart-notification {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 10000;
    padding: 12px 20px;
    background: rgba(8,17,31,0.95);
    border: 1px solid rgba(45,246,255,0.28);
    border-radius: 14px;
    color: #2df6ff;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), opacity 0.32s;
    pointer-events: none;
}
.cart-notification.is-visible { transform: translateY(0); opacity: 1; }

/* === Cart Page === */
.cart-main {
    padding-top: calc(var(--header-panel-height, 68px) + var(--safe-top, 0px) + 1.5rem);
    min-height: 100vh;
}
.cart-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}
.cart-header-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.cart-page-title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}
.cart-item-count {
    font-size: 0.88rem;
    color: rgba(231, 238, 252, 0.45);
}
.cart-back-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: rgba(231, 238, 252, 0.45);
    text-decoration: none;
    transition: color 0.15s;
}
.cart-back-link:hover { color: #2df6ff; }
.cart-empty { text-align: center; padding: 2.5rem 1rem; }
.cart-empty p { font-size: 1.1rem; margin-bottom: 1.25rem; color: rgba(231,238,252,0.6); }
.cart-items { display: flex; flex-direction: column; gap: 0; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(45,246,255,0.08);
}
.cart-item-img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1 1 auto; min-width: 0; }
.cart-item-name { display: block; font-weight: 600; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-unit-price { display: block; font-size: 0.78rem; color: rgba(231,238,252,0.4); margin-top: 2px; }
.cart-item-qty { display: flex; align-items: center; gap: 0; }
.cart-qty-btn {
    width: 30px; height: 30px;
    border: 1px solid rgba(45,246,255,0.18);
    background: rgba(45,246,255,0.06);
    color: #e7eefc;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.18s;
    display: flex; align-items: center; justify-content: center;
}
.cart-qty-btn:hover { background: rgba(45,246,255,0.16); }
.cart-qty-value { min-width: 30px; text-align: center; font-weight: 600; font-size: 0.92rem; }
.cart-item-total { font-weight: 700; font-size: 0.95rem; min-width: 80px; text-align: right; }
.cart-item-remove {
    width: 28px; height: 28px;
    border: none; background: none;
    color: rgba(231,238,252,0.35);
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
    display: flex; align-items: center; justify-content: center;
}
.cart-item-remove:hover { color: #ff4444; background: rgba(255,68,68,0.12); }
.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    margin-top: 4px;
    border-top: 1px solid rgba(45,246,255,0.1);
    gap: 16px;
    flex-wrap: wrap;
}
.cart-total { font-size: 1.05rem; }
.cart-total strong { color: #2df6ff; font-size: 1.25rem; margin-left: 8px; }
.cart-checkout-btn { min-width: 170px; }

/* === Checkout Form === */
.checkout-form-wrap { padding: 24px; max-width: 480px; margin: 0 auto; }
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-field { display: flex; flex-direction: column; gap: 4px; }
.checkout-field label { font-size: 0.85rem; color: rgba(231,238,252,0.7); font-weight: 500; }
.checkout-field input,
.checkout-field textarea {
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(45,246,255,0.18);
    border-radius: 10px;
    background: rgba(8,17,31,0.6);
    color: #e7eefc;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.22s;
}
.checkout-field input:focus,
.checkout-field textarea:focus { border-color: rgba(45,246,255,0.42); }
.checkout-total { font-size: 1.1rem; text-align: right; padding: 8px 0; }
.checkout-total strong { color: #2df6ff; }
.checkout-status { font-size: 0.88rem; min-height: 1.4em; color: rgba(231,238,252,0.6); }
.checkout-submit-btn { width: 100%; }

/* === Order Status Badges === */
.order-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.order-status-badge.is-new { background: rgba(45,246,255,0.14); color: #2df6ff; }
.order-status-badge.is-confirmed { background: rgba(76,175,80,0.16); color: #4caf50; }
.order-status-badge.is-in_progress { background: rgba(255,183,77,0.16); color: #ffb74d; }
.order-status-badge.is-completed { background: rgba(76,175,80,0.22); color: #66bb6a; }
.order-status-badge.is-cancelled { background: rgba(255,68,68,0.14); color: #ff5252; }

/* === Admin styles === */
.admin-search-input {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(45,246,255,0.18);
    border-radius: 10px;
    background: rgba(8,17,31,0.6);
    color: #e7eefc;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.22s;
}
.admin-search-input:focus { border-color: rgba(45,246,255,0.42); }
.admin-select {
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(45,246,255,0.18);
    border-radius: 10px;
    background: rgba(8,17,31,0.72);
    color: #e7eefc;
    font-size: 0.9rem;
    outline: none;
}
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; border-radius: 8px; }

.admin-orders-table th { font-size: 0.82rem; color: rgba(231,238,252,0.55); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.admin-orders-table td { color: #e7eefc; font-size: 0.9rem; }
.admin-order-row { transition: background 0.18s; }
.admin-order-row:hover { background: rgba(45,246,255,0.04); }

@media (max-width: 640px) {
    .cart-container { padding: 0 1rem 2rem; }
    .cart-item { flex-wrap: wrap; gap: 10px; }
    .cart-item-img { width: 44px; height: 44px; }
    .cart-item-total { min-width: auto; }
    .cart-summary { flex-direction: column; align-items: stretch; }
}

/* ============================================
   E-commerce catalog redesign
   ============================================ */
.shop-main {
    padding-top: calc(var(--header-height, 64px) + 0.5rem);
    min-height: 100dvh;
}
.shop-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.shop-search-bar {
    display: flex;
    justify-content: center;
    padding: 0 0 0.3rem;
}
.shop-search-wrap {
    width: 100%;
    max-width: 580px;
}

/* --- Breadcrumbs topbar --- */
.shop-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0 0.1rem;
}
.shop-breadcrumbs {
    font-size: 0.84rem;
    color: rgba(231,238,252,0.55);
    display: flex; align-items: center; gap: 0.35rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.shop-breadcrumbs a { color: rgba(231,238,252,0.65); text-decoration: none; transition: color 0.18s; }
.shop-breadcrumbs a:hover { color: #2df6ff; }
.shop-breadcrumbs a.is-current { color: #e7eefc; font-weight: 600; pointer-events: none; }
.shop-bc-sep { color: rgba(231,238,252,0.3); }

.shop-empty-catalog {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 22px;
    background: rgba(8, 19, 37, 0.72);
    border: 1px solid rgba(115, 188, 255, 0.24);
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* --- Category cards on /catalog (index) --- */
.shop-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.shop-cat-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(10,24,46,0.6);
    border: 1px solid rgba(45,246,255,0.1);
    text-decoration: none;
    color: #e7eefc;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
    cursor: pointer;
}
.shop-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(45,246,255,0.35);
    box-shadow: 0 6px 24px rgba(45,246,255,0.08);
}
.shop-cat-card-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: rgba(8,17,31,0.5);
}
.shop-cat-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.shop-cat-card:hover .shop-cat-card-img img {
    transform: scale(1.05);
}
.shop-cat-card-body {
    padding: 0.7rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.shop-cat-card-name {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-cat-card-count {
    font-size: 0.78rem;
    color: rgba(231,238,252,0.45);
}

/* --- Layout: sidebar + products --- */
.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding-right: 1.25rem;
}

/* --- Sidebar --- */
.shop-sidebar {
    position: sticky;
    top: calc(var(--header-panel-height, 68px) + var(--safe-top, 0px));
    max-height: calc(100dvh - var(--header-panel-height, 68px) - var(--safe-top, 0px));
    overflow-y: auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}
.shop-sidebar-nav {
    display: flex;
    flex-direction: column;
}
.shop-sidebar-row {
    display: flex;
    align-items: center;
    padding-left: calc(var(--depth, 0) * 12px);
    padding-right: 0;
}
.shop-sidebar-row.is-collapsed {
    display: none;
}
.shop-sidebar-toggle {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: rgba(231,238,252,0.4);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s, transform 0.2s;
    transform: rotate(-90deg);
    margin-right: 1px;
    padding: 0;
}
.shop-sidebar-toggle.is-open {
    transform: rotate(0deg);
    color: rgba(45,246,255,0.7);
}
.shop-sidebar-toggle:hover {
    background: rgba(45,246,255,0.1);
    color: #2df6ff;
}
.shop-sidebar-toggle-placeholder {
    width: 18px;
    flex-shrink: 0;
    margin-right: 1px;
}
.shop-sidebar-link {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.3rem;
    font-size: 0.82rem;
    color: rgba(231,238,252,0.72);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.15s, color 0.15s;
}
.shop-sidebar-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}
.shop-sidebar-count {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: rgba(231,238,252,0.35);
    background: rgba(45,246,255,0.06);
    padding: 1px 5px;
    border-radius: 8px;
    font-weight: 500;
}
.shop-sidebar-link:hover {
    background: rgba(45,246,255,0.06);
    color: #e7eefc;
}
.shop-sidebar-link.is-active {
    background: rgba(45,246,255,0.1);
    color: #2df6ff;
    font-weight: 600;
}
.shop-sidebar-link.is-branch {
    color: rgba(231,238,252,0.9);
    font-weight: 500;
}

/* --- Subcategory cards inside category page --- */
.shop-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.shop-sub-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(10,24,46,0.5);
    border: 1px solid rgba(45,246,255,0.08);
    text-decoration: none;
    color: #e7eefc;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-sub-card:hover {
    border-color: rgba(45,246,255,0.3);
    box-shadow: 0 4px 16px rgba(45,246,255,0.06);
}
.shop-sub-card-img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: rgba(8,17,31,0.4);
}
.shop-sub-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.shop-sub-card-body {
    padding: 0.35rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}
.shop-sub-card-name {
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.25;
}
.shop-sub-card-count {
    font-size: 0.7rem;
    color: rgba(231,238,252,0.4);
}

/* --- Section divider --- */
.shop-section-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.4rem 0 0.6rem;
}
.shop-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(45,246,255,0.18), transparent);
}
.shop-section-divider-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(231,238,252,0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* --- Product grid --- */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.shop-product-card {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(10,24,46,0.55);
    border: 1px solid rgba(45,246,255,0.08);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.shop-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45,246,255,0.25);
    box-shadow: 0 4px 20px rgba(45,246,255,0.07);
}
.shop-product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(8,17,31,0.5);
    cursor: pointer;
}
.shop-product-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.shop-product-card:hover .shop-product-img img {
    transform: scale(1.04);
}
.shop-product-body {
    padding: 0.4rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.shop-product-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    cursor: pointer;
    color: #e7eefc;
}
.shop-product-name:hover { color: #2df6ff; }
.shop-product-name-link {
    text-decoration: none;
    color: inherit;
}
.shop-product-name-link:hover .shop-product-name { color: #2df6ff; }
.shop-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #2df6ff;
}
.shop-add-cart-btn {
    margin-top: auto;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(45,246,255,0.12);
    color: #2df6ff;
    border: 1px solid rgba(45,246,255,0.22);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
    width: 100%;
}
.shop-add-cart-btn:hover {
    background: rgba(45,246,255,0.24);
    border-color: rgba(45,246,255,0.44);
}

/* --- Empty state --- */
.shop-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(231,238,252,0.45);
    font-size: 0.95rem;
}

.stock-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.stock-cat-group {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .3rem .35rem .35rem;
    border-radius: 14px;
    background: rgba(10,24,46,.45);
    border: 1px solid rgba(115,188,255,.2);
}
.stock-cat-group-children {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
    padding-left: .4rem;
    border-left: 2px solid rgba(45,246,255,.28);
}
.stock-cat-group-children[hidden] {
    display: none !important;
    margin-left: .3rem;
}
.stock-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    border: 1px solid rgba(115,188,255,.26);
    background: rgba(10,24,46,.65);
    color: rgba(231,238,252,.82);
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    user-select: none;
}
.stock-cat-chip:hover {
    border-color: rgba(45,246,255,.3);
    color: rgba(231,238,252,.9);
    background: rgba(14,37,67,.6);
}
.stock-cat-chip.is-active {
    border-color: rgba(45,246,255,.5);
    background: rgba(45,246,255,.12);
    color: #2df6ff;
}
.stock-cat-chip--child {
    font-size: .7rem;
    padding: .22rem .5rem;
    background: rgba(10,24,46,.35);
    border-color: rgba(115,188,255,.1);
}
.stock-cat-chip-toggle {
    font-size: .65rem;
    color: rgba(45,246,255,.5);
    margin-right: .1rem;
    pointer-events: all;
    cursor: pointer;
    transition: color .15s;
}
.stock-cat-chip:hover .stock-cat-chip-toggle {
    color: rgba(45,246,255,.9);
}
.stock-cat-chip-count {
    font-size: .66rem;
    opacity: .55;
    font-weight: 400;
}
.stock-cat-chip-manage {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    margin-left: .1rem;
    opacity: 0;
    transition: opacity .12s;
}
.stock-cat-chip:hover .stock-cat-chip-manage {
    opacity: 1;
}
.stock-cat-chip-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .68rem;
    padding: 1px 3px;
    border-radius: 4px;
    color: inherit;
    line-height: 1;
}
.stock-cat-chip-btn:hover {
    background: rgba(255,255,255,.12);
}
.stock-cat-chip-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px dashed rgba(115,188,255,.22);
    background: transparent;
    color: rgba(231,238,252,.45);
    font-size: .9rem;
    cursor: pointer;
    transition: all .15s ease;
}
.stock-cat-chip-add:hover {
    border-color: rgba(45,246,255,.4);
    color: #2df6ff;
    background: rgba(45,246,255,.06);
}

/* --- Category image upload --- */
.stock-cat-img-upload {
    position: relative;
}
.stock-cat-img-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    padding: .6rem .8rem;
    border-radius: 12px;
    border: 1px dashed rgba(115,188,255,.28);
    background: rgba(10,24,46,.5);
    color: var(--color-text-muted);
    font: inherit;
    font-size: .84rem;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.stock-cat-img-btn:hover {
    border-color: rgba(45,246,255,.4);
    color: var(--color-text);
}
.stock-cat-img-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(115,188,255,.24);
    background: rgba(10,24,46,.6);
}
.stock-cat-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stock-cat-img-remove {
    position: absolute;
    top: .4rem;
    right: .4rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(115,188,255,.26);
    background: rgba(10,24,46,.9);
    color: var(--color-text);
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stock-cat-img-remove:hover {
    background: rgba(255,80,80,.3);
    border-color: rgba(255,80,80,.5);
}
.stock-cat-img-uploading {
    padding: .5rem;
    text-align: center;
    font-size: .82rem;
    color: var(--color-accent-2);
}

/* --- Mobile categories chip strip --- */
.shop-mobile-cats {
    display: none;
}

/* ============================================
   Catalog responsive breakpoints
   ============================================ */
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .shop-sidebar {
        display: none;
    }
    .shop-mobile-cats {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.4rem 0 0.8rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .shop-mobile-cats::-webkit-scrollbar { display: none; }
    .shop-chip {
        flex-shrink: 0;
        padding: 0.38rem 0.85rem;
        border-radius: 20px;
        font-size: 0.82rem;
        font-weight: 500;
        background: rgba(10,24,46,0.6);
        border: 1px solid rgba(45,246,255,0.12);
        color: rgba(231,238,252,0.8);
        text-decoration: none;
        white-space: nowrap;
        transition: background 0.18s, border-color 0.18s, color 0.18s;
    }
    .shop-chip:hover {
        background: rgba(45,246,255,0.1);
        border-color: rgba(45,246,255,0.3);
        color: #2df6ff;
    }
    .shop-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.6rem;
    }
    .shop-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .shop-sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 420px) {
    .shop-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .shop-cat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .shop-product-body { padding: 0.45rem 0.55rem 0.55rem; }
    .shop-product-name { font-size: 0.82rem; }
    .shop-product-price { font-size: 0.88rem; }
    .shop-add-cart-btn { font-size: 0.78rem; padding: 0.35rem 0.5rem; }
}
@media (min-width: 1200px) {
    .shop-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    .shop-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product page */
.product-page-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.product-page-media {
    position: sticky;
    top: calc(var(--header-panel-height, 68px) + 0.5rem);
    align-self: start;
}
.product-page-gallery {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
}
.product-page-gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-page-thumbs {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}
.product-page-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s;
}
.product-page-thumb:hover { opacity: 0.8; }
.product-page-thumb.is-active { opacity: 1; border-color: var(--accent, #4f8cff); }
.product-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.25;
}
.product-page-summary {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}
.product-page-price {
    margin: 0.75rem 0;
}
.product-page-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent, #4f8cff);
}
.product-page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.product-page-cart-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}
.product-page-cart-status {
    font-size: 0.85rem;
    padding: 0.4rem 0;
}
.product-page-cart-status.success { color: #6fcf97; }
.product-page-cart-status.error { color: #eb5757; }
.product-page-details {
    margin-top: 1rem;
}
.product-page-description {
    margin-bottom: 2rem;
}
.product-page-description h2,
.product-page-specs h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.product-page-description div {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}
.product-specs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.product-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.product-spec-row dt {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
}
.product-spec-row dd {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: right;
}
@media (max-width: 768px) {
    .product-page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-page-media {
        position: static;
    }
    .product-page-title {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .catalog-product-modal-backdrop,
    .catalog-product-modal-shell {
        transition: none !important;
    }
}
