:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #071a2f;
    --bg-elevated: #0b2440;
    --surface: #102e4f;
    --surface-2: #153a61;
    --header: rgba(8, 31, 55, 0.95);
    --text: #f4f7fb;
    --muted: #8b97ad;
    --line: rgba(148, 163, 184, 0.14);
    --accent: #59b7ff;
    --accent-hot: #9bd52f;
    --accent-text: #061729;
    --focus: #5bc0ff;
    --danger: #ff5c7a;
    --win: #9bd52f;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --glow: 0 0 28px rgba(49, 164, 255, 0.24);
    --radius: 0.75rem;
    --font: "Outfit", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    --font-display: "Rajdhani", "Outfit", sans-serif;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #eef2f8;
    --bg-elevated: #f7f9fc;
    --surface: #ffffff;
    --surface-2: #f3f6fb;
    --header: rgba(255, 255, 255, 0.9);
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --accent: #00a86b;
    --accent-hot: #d97706;
    --accent-text: #f0fff6;
    --focus: #00a86b;
    --danger: #dc2626;
    --win: #059669;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --glow: 0 0 24px rgba(0, 168, 107, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #061526;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    color: var(--text);
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.6;
}

.site-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.site-atmosphere__media,
.hero-ambiance__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.14);
    filter: blur(32px) saturate(1.2) brightness(0.85);
    opacity: 0;
    transition:
        opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, filter, transform;
}

.site-atmosphere.is-revealed .site-atmosphere__media {
    opacity: 0.55;
    filter: blur(1.5px) saturate(1.12) brightness(0.92);
    transform: scale(1.03);
}

.site-atmosphere__veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(38, 145, 231, 0.28), transparent 58%),
        linear-gradient(180deg, rgba(6, 21, 38, 0.42) 0%, rgba(7, 26, 47, 0.72) 38%, var(--bg) 92%);
}

html[dir="rtl"] body {
    font-family: "Vazirmatn", "Outfit", Tahoma, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

main,
.site-header,
.site-footer,
.mobile-navbar {
    position: relative;
    z-index: 1;
}

main {
    flex: 1;
}

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
}

a:hover {
    text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: none;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
    letter-spacing: 0;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -4rem;
    z-index: 40;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.6rem 0.9rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.5rem;
}

.skip:focus {
    top: 1rem;
}

.shell {
    width: min(90rem, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem 1.5rem;
    min-height: 4.35rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex: none;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
    border-radius: 0.9rem;
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    border-radius: 0.75rem;
    background: linear-gradient(145deg, #5bc0ff 0%, #1b8ddd 65%, #9bd52f 150%);
    color: #061729;
    box-shadow: var(--glow);
}

.logo__mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

.logo__mark:has(.logo__image) {
    padding: 0.2rem;
    background: rgba(255, 255, 255, 0.96);
}

.logo__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.logo__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[dir="rtl"] .logo__name {
    letter-spacing: 0;
    text-transform: none;
}

.site-header__panel,
.header-tools,
.header-actions,
.primary-nav ul,
.languages ul {
    display: flex;
    align-items: center;
    gap: 0.35rem 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__panel {
    flex: 1;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    min-width: 0;
}

.site-header .languages {
    display: none;
}

.site-header.is-open .languages {
    display: block;
}

.primary-nav ul {
    flex-wrap: nowrap;
    gap: 0.15rem;
}

.site-header .languages ul {
    gap: 0.15rem;
    padding: 0.2rem;
    flex-wrap: nowrap;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.primary-nav a,
.languages a,
.text-action,
.header-play {
    color: var(--text);
    text-decoration: none;
}

.primary-nav a,
.languages a,
.text-action,
.header-play,
.theme-toggle,
.button {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.85rem;
    border-radius: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.primary-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.primary-nav a:hover,
.text-action:hover,
.header-play:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.primary-nav a[aria-current="page"] {
    color: #fff;
    background: rgba(70, 171, 247, 0.16);
    box-shadow: inset 0 -2px 0 var(--accent);
}

.site-header .languages a {
    min-height: 2rem;
    padding-inline: 0.65rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.site-header .languages a[aria-current="true"] {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(0, 231, 1, 0.35);
}

.button,
.theme-toggle {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button {
    background: linear-gradient(180deg, #b1e346 0%, #83bd20 100%);
    color: var(--accent-text);
    text-decoration: none;
    padding-inline: 1.15rem;
    box-shadow: 0 8px 20px rgba(87, 137, 15, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-display);
    font-size: 0.95rem;
}

.button:hover {
    filter: brightness(1.08);
    text-decoration: none;
}

[data-theme="light"] .button {
    background: linear-gradient(180deg, #12d16a 0%, #009e52 100%);
    color: #fff;
}

.header-play {
    color: #041208;
    background: linear-gradient(135deg, #ffcc00, #f59e0b);
    box-shadow: 0 0 22px rgba(255, 204, 0, 0.35);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.header-play:hover {
    color: #041208;
    background: linear-gradient(135deg, #ffe066, #ffcc00);
    filter: brightness(1.05);
}

.text-action {
    color: var(--muted);
    background: transparent;
}

.theme-toggle {
    width: 2.5rem;
    padding: 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}

.theme-toggle__sun {
    display: none;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__moon {
    display: none;
}

.theme-toggle[aria-pressed="true"] .theme-toggle__sun {
    display: block;
}

.nav-toggle {
    display: none;
    margin-inline-start: auto;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface);
    color: inherit;
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 1.05rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.nav-toggle__bars {
    position: relative;
    margin-inline: auto;
    transition: background 0.15s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    position: absolute;
    inset-inline: 0;
    transition: transform 0.18s ease;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.site-header.is-open .nav-toggle__bars {
    background: transparent;
}

.site-header.is-open .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

.page {
    padding-block: 2.25rem 4rem;
}

.page--narrow {
    max-width: 28rem;
    margin-inline: auto;
}

.page__header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    background: linear-gradient(120deg, #fff 20%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

[data-theme="light"] .page__header h1 {
    background: linear-gradient(120deg, #0f172a 10%, #00a86b 90%);
    -webkit-background-clip: text;
    background-clip: text;
}

.meta {
    margin: 0 0 0.4rem;
    color: var(--muted);
}

.prose {
    white-space: pre-wrap;
    margin-top: 1.25rem;
}

.empty,
.banner,
.notices,
.card,
.form {
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty,
.banner,
.notices {
    padding: 1.25rem 1.4rem;
    color: var(--muted);
}

.banner,
.notices {
    margin-top: 1.25rem;
}

.notices {
    color: var(--text);
}

.cards,
.gallery,
.stack {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.cards,
.gallery {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card,
.gallery li {
    background: linear-gradient(165deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover,
.gallery li:hover {
    border-color: rgba(0, 231, 1, 0.35);
    transform: translateY(-2px);
}

.gallery img,
.gallery video,
.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.7rem;
    background: var(--bg);
}

.card h2,
.gallery h2,
.site-footer h2 {
    margin: 0.8rem 0 0.35rem;
    font-size: 1.25rem;
}

.form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.35rem;
    max-width: 40rem;
}

.page--narrow .form {
    max-width: none;
}

.field {
    display: grid;
    gap: 0.35rem;
}

.field label,
.field > span {
    font-weight: 650;
    font-size: 0.92rem;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(0, 231, 1, 0.55);
    box-shadow: 0 0 0 3px rgba(0, 231, 1, 0.12);
    outline: none;
}

textarea {
    min-height: 9rem;
    resize: vertical;
}

.field-error {
    margin: 0;
    color: var(--danger);
}

.site-footer {
    --footer-text: #e8eef8;
    --footer-muted: #93a0b5;
    --footer-line: rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding-block: 2.5rem 1.15rem;
    color: var(--footer-text);
    background:
        linear-gradient(180deg, rgba(0, 231, 1, 0.18), rgba(0, 231, 1, 0) 4px),
        radial-gradient(ellipse 50% 80% at 0% 0%, rgba(0, 231, 1, 0.1), transparent 55%),
        #05080f;
    border-top: 1px solid var(--footer-line);
}

.site-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem 3rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--footer-line);
}

.site-footer__brand .logo {
    color: var(--footer-text);
}

.site-footer__cols {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.75rem 3.5rem;
}

.site-footer__cols > * {
    min-width: 11rem;
}

.site-footer__links {
    display: grid;
    justify-items: start;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer h2 {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.site-footer a {
    color: var(--footer-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent);
}

.site-footer__contact {
    display: grid;
    gap: 0.1rem;
}

.site-footer__kicker {
    color: var(--footer-muted);
    font-size: 0.78rem;
}

.site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.site-footer .languages ul {
    background: rgba(255, 255, 255, 0.05);
}

.site-footer .languages a {
    color: var(--footer-muted);
}

.site-footer .languages a[aria-current="true"] {
    background: rgba(0, 231, 1, 0.15);
    color: #ffffff;
    box-shadow: none;
}

.copyright {
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.92rem;
}

.mobile-navbar {
    display: none;
}

@media (max-width: 1040px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-header__panel {
        display: none;
        position: absolute;
        inset-inline: 0.75rem;
        top: calc(100% + 0.45rem);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1rem;
        margin: 0;
        padding: 0.9rem;
        max-height: calc(100vh - 6rem);
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: 1.15rem;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .site-header.is-open .site-header__panel {
        display: flex;
    }

    .primary-nav ul {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .primary-nav a {
        width: 100%;
        min-height: 2.75rem;
    }

    .header-tools {
        justify-content: space-between;
        gap: 0.75rem 1rem;
        padding-top: 0.85rem;
        border-top: 1px solid var(--line);
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-header .languages ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Login and registration */
.auth-page {
    width: min(67rem, 100%);
    min-height: 38rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
    margin: 2rem auto 4rem;
    overflow: hidden;
    border: 1px solid rgba(91, 192, 255, 0.18);
    border-radius: 1rem;
    background: #0a2743;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.34);
}

.auth-showcase {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 78% 20%, rgba(91, 192, 255, 0.28), transparent 31%),
        radial-gradient(circle at 15% 90%, rgba(155, 213, 47, 0.12), transparent 33%),
        linear-gradient(145deg, #061624, #0b3d66 68%, #126ba6);
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(150deg, #000, transparent 70%);
}

.auth-showcase__copy {
    position: relative;
    z-index: 3;
}

.auth-showcase__live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #a8d9f9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-showcase__live i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #9bd52f;
    box-shadow: 0 0 0 0.25rem rgba(155, 213, 47, 0.12);
}

.auth-showcase__copy strong {
    display: block;
    max-width: 28rem;
    margin-top: 0.75rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.auth-showcase__copy p {
    margin: 0.8rem 0 0;
    color: #b6d0e3;
    font-size: 1.05rem;
}

.auth-showcase__visual {
    position: absolute;
    inset: 34% 3% 0 3%;
}

.auth-showcase__orbit {
    position: absolute;
    inset: 13% 4%;
    border: 1px solid rgba(91, 192, 255, 0.25);
    border-radius: 50%;
    transform: rotate(-13deg);
}

.auth-showcase__orbit--two {
    inset: 24% 15%;
    border-color: rgba(155, 213, 47, 0.22);
    transform: rotate(18deg);
}

.auth-showcase__card {
    position: absolute;
    top: 43%;
    left: 50%;
    width: 6.7rem;
    aspect-ratio: 2 / 3;
    display: grid;
    place-items: center;
    border: 0.28rem solid rgba(255, 255, 255, 0.92);
    border-radius: 0.85rem;
    color: #fff;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 4px, transparent 4px 9px),
        #1479b8;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.34);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
}

.auth-showcase__card--one {
    transform: translate(-95%, -50%) rotate(-13deg);
}

.auth-showcase__card--two {
    color: #dfff9f;
    transform: translate(-10%, -42%) rotate(12deg);
}

.auth-showcase__spark {
    position: absolute;
    top: 24%;
    left: 66%;
    color: #dfff9f;
    font-size: 2.3rem;
    text-shadow: 0 0 24px rgba(155, 213, 47, 0.75);
}

.auth-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.4rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 192, 255, 0.08), transparent 34%),
        #0a2743;
}

.auth-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 1.6rem;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.035);
}

.auth-switch a {
    min-height: 2.55rem;
    display: grid;
    place-items: center;
    border-radius: 0.45rem;
    color: #8faabe;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
}

.auth-switch a[aria-current="page"] {
    color: #fff;
    background: #176ea7;
    box-shadow: 0 6px 16px rgba(11, 80, 124, 0.25);
}

.auth-card__head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.auth-card__icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 0.7rem;
    color: #9bd52f;
    background: rgba(155, 213, 47, 0.1);
    box-shadow: inset 0 0 0 1px rgba(155, 213, 47, 0.14);
}

.auth-card__icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.auth-card__head p,
.auth-card__head h1 {
    margin: 0;
}

.auth-card__head p {
    color: #73c7ff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-card__head h1 {
    margin-top: 0.12rem;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.auth-form {
    display: grid;
    gap: 0.85rem;
}

.auth-form .field {
    gap: 0.35rem;
}

.auth-form .field label {
    color: #9db3c5;
    font-size: 0.76rem;
}

.auth-input {
    position: relative;
    display: block;
}

.auth-input > svg {
    position: absolute;
    z-index: 2;
    width: 1.15rem;
    height: 1.15rem;
    inset-inline-start: 0.85rem;
    top: 50%;
    color: #5f91b4;
    pointer-events: none;
    transform: translateY(-50%);
}

.auth-input input,
.auth-input select {
    min-height: 3.15rem;
    padding-inline-start: 2.75rem;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    background: #061c31;
}

.auth-input select {
    width: 100%;
    padding-inline-end: 2.2rem;
    color: inherit;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #5f91b4 50%),
        linear-gradient(135deg, #5f91b4 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.15rem),
        calc(100% - 0.85rem) calc(50% - 0.15rem);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

html[dir="rtl"] .auth-input select {
    background-position:
        0.85rem calc(50% - 0.15rem),
        1.15rem calc(50% - 0.15rem);
}

.auth-input input:hover,
.auth-input select:hover {
    border-color: rgba(91, 192, 255, 0.25);
}

.auth-input input:focus,
.auth-input select:focus {
    border-color: rgba(91, 192, 255, 0.58);
    box-shadow: 0 0 0 3px rgba(91, 192, 255, 0.11);
}

.auth-input input[aria-invalid="true"],
.auth-input select[aria-invalid="true"] {
    border-color: rgba(255, 92, 122, 0.6);
}

.auth-hint {
    margin: 0.2rem 0 0;
    color: #7f96ab;
    font-size: 0.74rem;
    line-height: 1.35;
}

.auth-error {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 92, 122, 0.2);
    border-radius: 0.5rem;
    color: #ff94a9;
    background: rgba(255, 92, 122, 0.09);
}

.auth-invite {
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(0, 231, 1, 0.28);
    border-radius: 0.75rem;
    color: #9dffb0;
    background: rgba(0, 231, 1, 0.1);
    font-size: 0.88rem;
    line-height: 1.4;
}

.auth-form .field-error {
    font-size: 0.75rem;
}

.auth-forgot {
    justify-self: end;
    color: #73c7ff;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-forgot:hover {
    color: #a9dcff;
}

.auth-submit {
    min-height: 3.25rem;
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    padding-inline: 1.1rem;
    border-radius: 0.6rem;
}

.auth-submit b {
    font-size: 1.2rem;
}

html[dir="rtl"] .auth-submit b {
    transform: rotate(180deg);
}

[data-theme="light"] .auth-page {
    border-color: rgba(27, 105, 159, 0.16);
    background: #fff;
    box-shadow: 0 25px 55px rgba(27, 69, 99, 0.16);
}

[data-theme="light"] .auth-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(58, 157, 222, 0.1), transparent 34%),
        #fff;
}

[data-theme="light"] .auth-switch {
    border-color: rgba(18, 74, 112, 0.1);
    background: #edf5fa;
}

[data-theme="light"] .auth-switch a {
    color: #58758a;
}

[data-theme="light"] .auth-switch a[aria-current="page"] {
    color: #fff;
}

[data-theme="light"] .auth-card__head h1 {
    color: #14364f;
}

[data-theme="light"] .auth-card__head p {
    color: #2379ae;
}

[data-theme="light"] .auth-form .field label {
    color: #5d7588;
}

[data-theme="light"] .auth-input input,
[data-theme="light"] .auth-input select {
    border-color: rgba(18, 74, 112, 0.13);
    color: #17374f;
    background: #f7fbfd;
}

[data-theme="light"] .auth-input select {
    background-image:
        linear-gradient(45deg, transparent 50%, #4e83a8 50%),
        linear-gradient(135deg, #4e83a8 50%, transparent 50%),
        linear-gradient(#f7fbfd, #f7fbfd);
    background-position:
        calc(100% - 1.15rem) calc(50% - 0.15rem),
        calc(100% - 0.85rem) calc(50% - 0.15rem),
        0 0;
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem, 100% 100%;
    background-repeat: no-repeat;
}

[data-theme="light"] .auth-hint {
    color: #61798c;
}

[data-theme="light"] .auth-input > svg {
    color: #4e83a8;
}

[data-theme="light"] .auth-forgot {
    color: #176fa8;
}

@media (max-width: 820px) {
    .auth-page {
        width: min(34rem, 100%);
        min-height: 0;
        grid-template-columns: 1fr;
        margin-block: 0.75rem 2rem;
    }

    .auth-showcase {
        min-height: 10rem;
        padding: 1.3rem;
    }

    .auth-showcase__copy strong {
        max-width: 70%;
        margin-top: 0.45rem;
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .auth-showcase__copy p {
        margin-top: 0.4rem;
        font-size: 0.88rem;
    }

    .auth-showcase__visual {
        inset: 0 0 0 50%;
    }

    .auth-showcase__card {
        width: 4rem;
    }

    .auth-card {
        padding: 1.2rem;
    }
}

@media (max-width: 430px) {
    .auth-page {
        border-radius: 0.75rem;
    }

    .auth-showcase {
        min-height: 8.5rem;
    }

    .auth-showcase__copy strong {
        font-size: 2rem;
    }

    .auth-showcase__spark {
        display: none;
    }

    .auth-card__head {
        margin-bottom: 1rem;
    }
}

/* Branded footer signature */
.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.65rem;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    border: 1px solid rgba(91, 192, 255, 0.16);
    border-radius: 999px;
    color: #9eb5c8;
    background:
        linear-gradient(90deg, rgba(91, 192, 255, 0.09), transparent),
        rgba(255, 255, 255, 0.025);
    font-size: 0.78rem;
}

.powered-by__spark {
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    color: #9bd52f;
    background: rgba(155, 213, 47, 0.1);
    box-shadow: 0 0 18px rgba(155, 213, 47, 0.14);
}

.powered-by__spark svg {
    width: 1rem;
    height: 1rem;
}

.powered-by strong {
    color: #dfffa0;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

[data-theme="light"] .powered-by {
    border-color: rgba(24, 102, 157, 0.14);
    color: #61798c;
    background: rgba(255, 255, 255, 0.62);
}

[data-theme="light"] .powered-by strong {
    color: #558512;
}

/* Prevent page-level horizontal scrolling on narrow screens. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

main,
.shell,
.page,
.games-lobby,
.cards-game,
.crash,
.wheel,
.account,
.site-footer,
.site-footer__top,
.site-footer__cols {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 760px) {
    .powered-by {
        max-width: 100%;
    }

    .powered-by > span:not(.powered-by__spark) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .powered-by strong {
        display: none;
    }

    .site-footer__bar {
        align-items: flex-start;
    }
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

.page-team {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.page-team > h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Desktop account / settings menu (theme, language, account, logout) */
.header-user {
    position: relative;
    padding: 0;
    overflow: visible;
}

.header-user summary {
    width: 2.35rem;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0.6rem;
    color: #bdd0e0;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    list-style: none;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.header-user summary:hover {
    color: #fff;
    border-color: rgba(91, 192, 255, 0.28);
    background: rgba(91, 192, 255, 0.12);
    transform: translateY(-1px);
}

.header-tool-label {
    display: none;
}

.header-user summary::-webkit-details-marker {
    display: none;
}

.header-user summary svg {
    width: 1rem;
    height: 1rem;
    flex: none;
    color: #73c7ff;
}

.header-user__menu {
    position: absolute;
    z-index: 60;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    min-width: 13.5rem;
    display: none;
    gap: 0.25rem;
    padding: 0.45rem;
    border: 1px solid rgba(91, 192, 255, 0.18);
    border-radius: 0.75rem;
    background: rgba(7, 27, 47, 0.98);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(20px);
}

.header-user[open] > .header-user__menu,
.header-user:hover > .header-user__menu,
.header-user:focus-within > .header-user__menu {
    display: grid;
}

.header-user__menu::before {
    content: "";
    position: absolute;
    inset-inline-end: 1.1rem;
    top: -0.35rem;
    width: 0.65rem;
    height: 0.65rem;
    border-inline-start: 1px solid rgba(91, 192, 255, 0.18);
    border-top: 1px solid rgba(91, 192, 255, 0.18);
    background: #071b2f;
    transform: rotate(45deg);
}

.header-user__menu::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: -0.55rem;
    height: 0.55rem;
}

.header-user__heading {
    display: block;
    padding: 0.35rem 0.65rem 0.15rem;
    color: #73c7ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-user__group {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.15rem;
    margin-bottom: 0.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-user__group .languages ul {
    display: grid;
    gap: 0.2rem;
}

.header-user__item,
.header-user__group .languages a {
    width: 100%;
    min-height: 2.45rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 0.45rem;
    color: #a9bfd2;
    background: transparent;
    text-decoration: none;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: start;
}

.header-user__item:hover,
.header-user__group .languages a:hover {
    color: #fff;
    background: rgba(91, 192, 255, 0.11);
}

.header-user__group .languages a[aria-current="true"] {
    color: #fff;
    background: #176ea7;
}

.header-user__item.theme-toggle {
    width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 0.45rem;
    color: #a9bfd2;
    background: transparent;
    transform: none;
}

.header-user__item.theme-toggle:hover {
    color: #fff;
    border-color: transparent;
    background: rgba(91, 192, 255, 0.11);
    transform: none;
}

.header-user__item.theme-toggle svg {
    width: 1rem;
    height: 1rem;
    color: #73c7ff;
}

.header-user__form {
    display: grid;
    margin: 0;
}

.header-user__register {
    color: #071a2f;
    background: linear-gradient(180deg, #b4e64c, #89bd27);
}

.header-user__register:hover {
    color: #071a2f;
    filter: brightness(1.05);
}

.header-user__logout {
    color: #f0b4b4;
}

.header-user__logout:hover {
    color: #fff;
    background: rgba(220, 80, 80, 0.16);
}

[data-theme="light"] .header-user summary {
    border-color: rgba(17, 71, 109, 0.12);
    color: #47677f;
    background: rgba(255, 255, 255, 0.68);
}

[data-theme="light"] .header-user__menu {
    border-color: rgba(24, 102, 157, 0.16);
    background: rgba(248, 252, 255, 0.99);
    box-shadow: 0 17px 34px rgba(31, 72, 102, 0.18);
}

[data-theme="light"] .header-user__menu::before {
    border-color: rgba(24, 102, 157, 0.16);
    background: #f8fcff;
}

[data-theme="light"] .header-user__heading {
    color: #2f8fc8;
}

[data-theme="light"] .header-user__group {
    border-bottom-color: rgba(17, 71, 109, 0.1);
}

[data-theme="light"] .header-user__item,
[data-theme="light"] .header-user__group .languages a,
[data-theme="light"] .header-user__item.theme-toggle {
    color: #48687f;
}

[data-theme="light"] .header-user__item:hover,
[data-theme="light"] .header-user__group .languages a:hover,
[data-theme="light"] .header-user__item.theme-toggle:hover {
    color: #125d8e;
    background: rgba(32, 135, 204, 0.09);
}

[data-theme="light"] .header-user__item.theme-toggle svg {
    color: #2f8fc8;
}

[data-theme="light"] .header-user__register {
    color: #173005;
}

[data-theme="light"] .header-user__logout {
    color: #b42318;
}

@media (max-width: 1040px) {
    .header-user {
        width: 100%;
        grid-column: 1 / -1;
    }

    .header-user summary {
        width: 100%;
        min-height: 2.7rem;
        justify-content: flex-start;
        gap: 0.45rem;
        padding-inline: 0.75rem;
    }

    .header-tool-label {
        display: inline;
    }

    .header-user__menu {
        position: static;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .header-user__menu::before {
        display: none;
    }

    .header-user__group .languages ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }
}

@media (max-width: 700px) {
    .site-header__bar {
        min-height: 3.85rem;
    }

    .site-header__panel {
        inset-inline: 0.65rem;
    }

    .primary-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header-tools,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions form,
    .header-actions .button,
    .header-actions .text-action,
    .header-actions .header-play {
        width: 100%;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
    }

    .site-footer {
        display: none;
    }

    .mobile-navbar {
        position: fixed;
        inset-inline: 0.75rem;
        bottom: max(0.65rem, env(safe-area-inset-bottom));
        z-index: 45;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.25rem;
        padding: 0.45rem;
        border: 1px solid rgba(0, 231, 1, 0.18);
        border-radius: 1.25rem;
        background: rgba(10, 14, 24, 0.92);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), var(--glow);
        backdrop-filter: blur(22px) saturate(1.45);
    }

    [data-theme="light"] .mobile-navbar {
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
    }

    .mobile-navbar a,
    .mobile-navbar button {
        min-width: 0;
        min-height: 3.55rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        padding: 0.35rem 0.2rem;
        border: 0;
        border-radius: 0.9rem;
        background: transparent;
        color: var(--muted);
        text-decoration: none;
        font: inherit;
        cursor: pointer;
    }

    .mobile-navbar a:hover,
    .mobile-navbar button:hover,
    .mobile-navbar a[aria-current="page"],
    .mobile-navbar button[aria-expanded="true"] {
        color: var(--accent);
        background: rgba(0, 231, 1, 0.12);
        text-decoration: none;
    }

    .mobile-navbar svg {
        width: 1.3rem;
        height: 1.3rem;
    }

    .mobile-navbar span {
        max-width: 100%;
        overflow: hidden;
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Complete light theme coverage for the shared platform shell. */
[data-theme="light"] html {
    background: #e8f0f7;
}

[data-theme="light"] body {
    background: transparent;
}

[data-theme="light"] .site-atmosphere.is-revealed .site-atmosphere__media {
    opacity: 0.34;
    filter: blur(2px) saturate(1.05) brightness(1.08);
}

[data-theme="light"] .site-atmosphere__veil {
    background:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(49, 145, 218, 0.18), transparent 58%),
        linear-gradient(180deg, rgba(220, 235, 247, 0.55) 0%, rgba(238, 242, 248, 0.82) 42%, var(--bg) 92%);
}

[data-theme="light"] body::before {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .primary-nav a:hover,
[data-theme="light"] .text-action:hover,
[data-theme="light"] .header-play:hover {
    background: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .button--secondary {
    border-color: rgba(15, 23, 42, 0.14);
    color: #16324a;
    background: rgba(255, 255, 255, 0.68);
}

[data-theme="light"] .button--secondary:hover {
    background: #fff;
}

[data-theme="light"] .home-hero {
    border-color: rgba(23, 112, 178, 0.23);
    background: #eaf4fb;
    box-shadow: 0 18px 40px rgba(26, 72, 108, 0.13);
}

[data-theme="light"] .hero-ambiance.is-revealed .hero-ambiance__media {
    opacity: 0.88;
    filter: blur(0) saturate(1.02) brightness(1.05);
}

[data-theme="light"] .hero-ambiance__veil {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(236, 246, 253, 0.86) 52%, rgba(174, 220, 249, 0.55) 100%),
        radial-gradient(circle at 78% 28%, rgba(33, 140, 218, 0.18), transparent 42%);
}

[data-theme="light"] .home-hero::before {
    background: radial-gradient(circle, rgba(33, 140, 218, 0.18), transparent 67%);
}

[data-theme="light"] .home-hero h1 {
    color: #0a2943;
}

[data-theme="light"] .home-hero__lead {
    color: #506c82;
}

[data-theme="light"] .home-hero__badge {
    color: #21618f;
}

[data-theme="light"] .hero-multiplier {
    color: #0c568c;
    text-shadow: 0 0 30px rgba(91, 192, 255, 0.38);
}

[data-theme="light"] .site-footer {
    --footer-text: #16324a;
    --footer-muted: #60788d;
    --footer-line: rgba(15, 53, 82, 0.12);
    color: var(--footer-text);
    background:
        linear-gradient(180deg, rgba(42, 145, 218, 0.18), transparent 4px),
        #e5f0f8;
    border-top-color: var(--footer-line);
}

[data-theme="light"] .site-footer__brand .logo,
[data-theme="light"] .site-footer h2,
[data-theme="light"] .site-footer .languages a[aria-current="true"] {
    color: #102e47;
}

[data-theme="light"] .site-footer a:hover {
    color: #0878c3;
}

/* Modern responsive header */
.site-header {
    background:
        linear-gradient(90deg, rgba(7, 29, 51, 0.98), rgba(10, 43, 73, 0.96)),
        var(--header);
    border-bottom-color: rgba(91, 192, 255, 0.16);
    box-shadow: 0 9px 26px rgba(0, 0, 0, 0.22);
}

.site-header__bar {
    min-height: 4.4rem;
    gap: 1rem;
}

.site-header .logo {
    gap: 0.6rem;
}

.site-header .logo__mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.8rem;
    box-shadow: 0 0 24px rgba(91, 192, 255, 0.24);
}

.site-header .logo__name {
    color: #fff;
    font-size: 1.28rem;
}

.site-header__panel {
    gap: 1rem;
}

.primary-nav ul {
    gap: 0.2rem;
}

.primary-nav a {
    height: auto;
    min-height: 2.6rem;
    padding-inline: 0.85rem;
    border-radius: 0.55rem;
    color: #a9bfd2;
}

.primary-nav a:hover {
    color: #fff;
    background: rgba(91, 192, 255, 0.09);
}

.primary-nav a[aria-current="page"] {
    border-radius: 0.55rem;
    color: #fff;
    background: rgba(91, 192, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(91, 192, 255, 0.16);
}

.header-tools {
    gap: 0.35rem;
}

.site-header .languages {
    display: block;
}

.site-header .languages ul {
    padding: 0;
    border: 0;
    background: transparent;
}

.theme-toggle__caption {
    display: none;
}

.header-play {
    min-height: 2.35rem;
    gap: 0.4rem;
    padding-inline: 0.85rem;
    border-radius: 0.65rem;
    color: #061729;
    background: linear-gradient(180deg, #b4e64c, #89bd27);
    box-shadow: 0 7px 17px rgba(88, 132, 22, 0.22);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.header-play svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

.header-play:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 22px rgba(88, 132, 22, 0.3);
}

.header-actions .button {
    min-height: 2.6rem;
    border-radius: 0.65rem;
}

.header-balance {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    flex: none;
    max-width: min(42vw, 14rem);
    min-height: 2.45rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(155, 213, 47, 0.28);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(155, 213, 47, 0.16), rgba(91, 192, 255, 0.08)),
        rgba(255, 255, 255, 0.04);
    color: #dfffa0;
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.header-balance:hover {
    border-color: rgba(155, 213, 47, 0.5);
    color: #f3ffd0;
}

.header-balance__label {
    color: #93a0b5;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.header-balance__value {
    overflow: hidden;
    color: inherit;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
}

.header-balance__currency {
    color: #9bd52f;
    font-size: 0.78rem;
    font-weight: 700;
}

.header-balance__more {
    display: inline-grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-inline-start: 0.1rem;
    border-radius: 999px;
    background: rgba(155, 213, 47, 0.22);
    color: #dfffa0;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.balance-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.balance-dialog[hidden] {
    display: none;
}

.balance-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.72);
    backdrop-filter: blur(6px);
}

.balance-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    padding: 1.15rem 1.15rem 1.05rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(155, 213, 47, 0.28);
    background:
        radial-gradient(ellipse 80% 55% at 0% 0%, rgba(155, 213, 47, 0.16), transparent 60%),
        linear-gradient(165deg, #132033, #0c1622);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 200ms ease, opacity 200ms ease;
}

.balance-dialog--visible .balance-dialog__panel {
    transform: none;
    opacity: 1;
}

.balance-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.balance-dialog__eyebrow {
    margin: 0;
    color: #93a0b5;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.balance-dialog__title {
    margin: 0.15rem 0 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.balance-dialog__close {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    color: #d7e0ef;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.balance-dialog__list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.balance-dialog__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.balance-dialog__item--primary {
    border-color: rgba(155, 213, 47, 0.35);
    background:
        linear-gradient(90deg, rgba(155, 213, 47, 0.14), rgba(91, 192, 255, 0.06));
}

.balance-dialog__code {
    color: #93a0b5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.balance-dialog__amount {
    justify-self: end;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.balance-dialog__symbol {
    color: #9bd52f;
    font-size: 0.82rem;
    font-weight: 700;
}

.balance-dialog__link {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(155, 213, 47, 0.3);
    background: rgba(155, 213, 47, 0.12);
    color: #dfffa0;
    font-weight: 700;
    text-decoration: none;
}

.balance-dialog__link:hover {
    background: rgba(155, 213, 47, 0.2);
}

body.balance-dialog-open {
    overflow: hidden;
}

[data-theme="light"] .balance-dialog__panel {
    border-color: rgba(85, 133, 18, 0.28);
    background:
        radial-gradient(ellipse 80% 55% at 0% 0%, rgba(155, 213, 47, 0.16), transparent 60%),
        linear-gradient(165deg, #ffffff, #eef6ff);
    box-shadow: 0 24px 60px rgba(24, 65, 96, 0.18);
}

[data-theme="light"] .balance-dialog__title,
[data-theme="light"] .balance-dialog__amount {
    color: #10334f;
}

[data-theme="light"] .balance-dialog__item {
    border-color: rgba(17, 71, 109, 0.1);
    background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .balance-dialog__link {
    color: #2f4a12;
}

[data-theme="light"] .header-balance {
    border-color: rgba(85, 133, 18, 0.28);
    background:
        linear-gradient(90deg, rgba(155, 213, 47, 0.18), rgba(255, 255, 255, 0.7)),
        rgba(255, 255, 255, 0.85);
    color: #2f4a12;
}

[data-theme="light"] .header-balance__label {
    color: #61798c;
}

[data-theme="light"] .header-balance__currency {
    color: #558512;
}

[data-theme="light"] .header-balance__more {
    background: rgba(85, 133, 18, 0.18);
    color: #2f4a12;
}

.header-balance--bar {
    display: none;
}

.header-balance--tools {
    display: inline-flex;
}

.header-mobile-play,
.mobile-menu__head {
    display: none;
}

[data-theme="light"] .site-header {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 253, 0.97)),
        var(--header);
    border-bottom-color: rgba(28, 108, 163, 0.15);
    box-shadow: 0 8px 24px rgba(24, 65, 96, 0.11);
}

[data-theme="light"] .site-header .logo__name {
    color: #10334f;
}

[data-theme="light"] .primary-nav a {
    color: #526e83;
}

[data-theme="light"] .primary-nav a:hover,
[data-theme="light"] .primary-nav a[aria-current="page"] {
    color: #125d8e;
    background: rgba(32, 135, 204, 0.09);
}

[data-theme="light"] .header-user summary {
    border-color: rgba(17, 71, 109, 0.12);
    color: #47677f;
    background: rgba(255, 255, 255, 0.65);
}

@media (max-width: 1040px) {
    .site-header__bar {
        min-height: 4rem;
        gap: 0.55rem;
    }

    .site-header .logo {
        margin-inline-end: auto;
    }

    .header-mobile-play {
        display: grid;
        place-items: center;
        width: 2.65rem;
        height: 2.65rem;
        flex: none;
        border: 1px solid rgba(155, 213, 47, 0.24);
        border-radius: 0.75rem;
        color: #b9e860;
        background: rgba(155, 213, 47, 0.09);
    }

    .header-balance--bar {
        display: inline-flex;
    }

    .header-balance--tools {
        display: none;
    }

    .header-balance {
        max-width: min(46vw, 11.5rem);
        min-height: 2.35rem;
        padding-inline: 0.55rem;
    }

    .header-balance__label {
        display: none;
    }

    .header-balance__value {
        font-size: 0.88rem;
    }

    .header-mobile-play svg {
        width: 1.35rem;
        height: 1.35rem;
    }

    .nav-toggle {
        width: 2.65rem;
        height: 2.65rem;
        margin-inline-start: 0;
        border-color: rgba(91, 192, 255, 0.2);
        border-radius: 0.75rem;
        color: #d9efff;
        background: rgba(91, 192, 255, 0.08);
    }

    .site-header__panel {
        inset-inline: max(0.5rem, calc((100vw - 90rem) / 2));
        top: calc(100% + 0.45rem);
        gap: 0.75rem;
        max-height: calc(100dvh - 5.3rem);
        padding: 0.75rem;
        border-color: rgba(91, 192, 255, 0.2);
        border-radius: 1rem;
        background:
            radial-gradient(circle at 100% 0%, rgba(91, 192, 255, 0.14), transparent 30%),
            rgba(7, 27, 47, 0.98);
        box-shadow: 0 24px 55px rgba(0, 0, 0, 0.48);
        backdrop-filter: blur(24px) saturate(1.3);
    }

    .mobile-menu__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.45rem 0.55rem 0.7rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu__head strong {
        color: #fff;
        font-family: var(--font-display);
        font-size: 1.05rem;
    }

    .mobile-menu__eyebrow {
        color: #73c7ff;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .primary-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .primary-nav a {
        position: relative;
        min-height: 3.25rem;
        justify-content: flex-start;
        padding-inline: 0.85rem 2rem;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 0.65rem;
        color: #c1d2e0;
        background: rgba(255, 255, 255, 0.035);
    }

    .primary-nav a::after {
        content: "›";
        position: absolute;
        inset-inline-end: 0.8rem;
        color: #579dcb;
        font-size: 1.15rem;
    }

    html[dir="rtl"] .primary-nav a::after {
        content: "‹";
    }

    .header-tools {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding-top: 0.75rem;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .header-actions form,
    .header-actions .button,
    .header-actions .text-action,
    .header-actions .header-play {
        width: 100%;
    }

    [data-theme="light"] .header-mobile-play {
        color: #5d8a17;
        background: rgba(139, 190, 42, 0.1);
    }

    [data-theme="light"] .nav-toggle {
        border-color: rgba(24, 102, 157, 0.15);
        color: #245b7d;
        background: rgba(35, 135, 201, 0.07);
    }

    [data-theme="light"] .site-header__panel {
        border-color: rgba(24, 102, 157, 0.16);
        background:
            radial-gradient(circle at 100% 0%, rgba(56, 158, 224, 0.13), transparent 30%),
            rgba(247, 251, 254, 0.98);
        box-shadow: 0 22px 48px rgba(31, 72, 102, 0.2);
    }

    [data-theme="light"] .mobile-menu__head {
        border-color: rgba(15, 67, 106, 0.1);
    }

    [data-theme="light"] .mobile-menu__head strong {
        color: #153b57;
    }

    [data-theme="light"] .primary-nav a {
        border-color: rgba(15, 67, 106, 0.1);
        color: #41637b;
        background: rgba(24, 112, 176, 0.04);
    }
}

@media (max-width: 560px) {
    .site-header .logo__mark {
        width: 2.4rem;
        height: 2.4rem;
    }

    .site-header .logo__name {
        max-width: 8.5rem;
        overflow: hidden;
        font-size: 1.05rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-mobile-play,
    .nav-toggle {
        width: 2.45rem;
        height: 2.45rem;
    }

    .primary-nav ul,
    .header-actions {
        grid-template-columns: 1fr;
    }

    .primary-nav a {
        min-height: 3rem;
    }
}

.header-tools form {
    display: inline-flex;
    margin: 0;
}

button.text-action {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

html[dir="rtl"] .site-footer {
    background:
        linear-gradient(180deg, rgba(0, 231, 1, 0.18), rgba(0, 231, 1, 0) 4px),
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(0, 231, 1, 0.1), transparent 55%),
        #05080f;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after,
    .button,
    .card,
    .gallery li {
        transition: none;
    }
}

/* Platform shell */
.site-header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 192, 255, 0.55), transparent);
}

.site-header__bar {
    min-height: 4rem;
}

.site-header__panel {
    align-self: stretch;
}

.header-actions {
    gap: 0.3rem;
}

.header-actions .button {
    min-width: 7.5rem;
}

.button--large {
    min-height: 3.1rem;
    padding-inline: 1.5rem;
}

.button--secondary {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: none;
    color: var(--text);
}

.button--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page--home {
    padding-top: 1rem;
}

.home-hero {
    position: relative;
    min-height: 22rem;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(91, 192, 255, 0.25);
    border-radius: 0.9rem;
    background: #071625;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.hero-ambiance {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-ambiance__media {
    object-position: center center;
}

.hero-ambiance.is-revealed .hero-ambiance__media {
    opacity: 1;
    filter: blur(0) saturate(1.08) brightness(0.95);
    transform: scale(1.01);
}

.hero-ambiance__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 15, 28, 0.92) 0%, rgba(7, 26, 47, 0.78) 46%, rgba(9, 52, 89, 0.34) 100%),
        radial-gradient(circle at 78% 28%, rgba(47, 168, 255, 0.28), transparent 42%);
}

.home-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    width: 32rem;
    height: 32rem;
    inset-inline-end: -5rem;
    top: -8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 168, 255, 0.22), transparent 67%);
    pointer-events: none;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(1.6rem, 4vw, 3.5rem);
}

@media (prefers-reduced-motion: reduce) {
    .site-atmosphere__media,
    .hero-ambiance__media {
        transition: opacity 0.35s ease;
        transform: none;
        filter: none;
    }

    .site-atmosphere.is-revealed .site-atmosphere__media,
    .hero-ambiance.is-revealed .hero-ambiance__media {
        transform: none;
        filter: none;
    }
}

.home-hero__badge,
.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8dcf8;
}

.home-hero__badge i,
.live-dot::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #9bd52f;
    box-shadow: 0 0 0 0.25rem rgba(155, 213, 47, 0.13);
}

.home-hero h1 {
    max-width: 44rem;
    margin: 0.75rem 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #fff;
}

.home-hero__lead {
    max-width: 42rem;
    color: #b7c8d9;
    white-space: pre-wrap;
}

.home-hero__lead > :first-child,
.home-hero__lead > :last-child {
    margin-block: 0;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home-hero__art {
    position: relative;
    z-index: 2;
    align-self: stretch;
    min-height: 19rem;
}

.hero-multiplier {
    position: absolute;
    z-index: 2;
    inset: 34% auto auto 42%;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 35px rgba(91, 192, 255, 0.65);
    transform: rotate(-7deg);
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(91, 192, 255, 0.3);
    border-radius: 50%;
    transform: rotate(-20deg);
}

.hero-orbit--one {
    width: 23rem;
    height: 11rem;
    inset: 24% auto auto 6%;
}

.hero-orbit--two {
    width: 17rem;
    height: 8rem;
    inset: 36% auto auto 18%;
    border-color: rgba(155, 213, 47, 0.36);
}

.hero-chart {
    position: absolute;
    inset: auto 5% 13% 0;
    height: 7rem;
    overflow: hidden;
    opacity: 0.8;
}

.hero-chart span {
    position: absolute;
    width: 120%;
    height: 2px;
    bottom: 10%;
    left: -10%;
    background: linear-gradient(90deg, transparent, #5bc0ff 20%, #9bd52f);
    box-shadow: 0 0 20px rgba(91, 192, 255, 0.8);
    transform: rotate(-17deg);
    transform-origin: right center;
}

.site-footer {
    background: #041323;
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero__art {
        position: absolute;
        inset: 0 0 0 45%;
        opacity: 0.4;
    }

    .home-hero__content {
        max-width: 42rem;
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 1rem, 90rem);
    }

    .page,
    .page--home {
        padding-top: 0.55rem;
    }

    .home-hero {
        min-height: 20rem;
        border-radius: 0.75rem;
    }

    .home-hero__content {
        padding: 1.35rem;
    }

    .home-hero__art {
        inset-inline-start: 25%;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.8rem);
    }

    .home-hero__actions .button {
        flex: 1;
    }

    .site-footer {
        display: block;
        margin-bottom: -5rem;
        padding-block: 1.6rem 6.5rem;
    }

    .site-footer__top {
        display: grid;
        gap: 1.5rem;
    }

    .site-footer__cols {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }

    .site-footer__cols > * {
        min-width: 0;
    }
}

/* Header cascade guard: keep the modern header above legacy shell rules. */
.site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 4.4rem;
    gap: 1rem;
}

.site-header__panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
    align-self: stretch;
}

.primary-nav {
    position: static;
    left: auto;
    top: auto;
    z-index: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: auto;
    transform: none;
    pointer-events: auto;
}

.primary-nav ul,
.primary-nav li,
.primary-nav a {
    height: auto;
    pointer-events: auto;
}

.primary-nav ul {
    flex: none;
    max-width: 100%;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow-x: auto;
    scrollbar-width: none;
}

.primary-nav ul::-webkit-scrollbar {
    display: none;
}

.primary-nav a {
    position: relative;
    min-height: 2.45rem;
    gap: 0.45rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    color: #a9bfd2;
    font-size: 0.88rem;
    font-weight: 700;
    overflow: hidden;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.primary-nav__icon {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    color: #73c7ff;
    transition: color 0.18s ease, transform 0.18s ease;
}

.primary-nav__icon svg {
    width: 100%;
    height: 100%;
}

.primary-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(91, 192, 255, 0.16), transparent 62%);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.primary-nav a > * {
    position: relative;
    z-index: 1;
}

.primary-nav a:hover {
    color: #fff;
    border-color: rgba(91, 192, 255, 0.22);
    background: rgba(91, 192, 255, 0.1);
    box-shadow: 0 8px 18px rgba(8, 36, 62, 0.22);
    transform: translateY(-1px);
}

.primary-nav a:hover::before {
    opacity: 1;
}

.primary-nav a:hover .primary-nav__icon {
    color: #9adbff;
    transform: scale(1.08);
}

.primary-nav a[aria-current="page"] {
    color: #fff;
    border-color: rgba(91, 192, 255, 0.32);
    background: rgba(91, 192, 255, 0.16);
    box-shadow: 0 0 0 1px rgba(91, 192, 255, 0.08), 0 8px 18px rgba(8, 36, 62, 0.18);
}

.primary-nav a[aria-current="page"] .primary-nav__icon {
    color: #b7e6ff;
}

.primary-nav a[aria-current="page"]::before {
    opacity: 1;
}

.header-tools {
    position: relative;
    z-index: 2;
    flex: none;
    margin-inline-start: 0;
}

.logo {
    position: relative;
    z-index: 2;
}

[data-theme="light"] .primary-nav ul {
    border: 0;
    background: transparent;
}

[data-theme="light"] .primary-nav a {
    color: #526e83;
}

[data-theme="light"] .primary-nav__icon {
    color: #2f8fc8;
}

[data-theme="light"] .primary-nav a:hover,
[data-theme="light"] .primary-nav a[aria-current="page"] {
    color: #125d8e;
    border-color: rgba(32, 135, 204, 0.18);
    background: rgba(32, 135, 204, 0.1);
    box-shadow: 0 8px 18px rgba(31, 72, 102, 0.1);
}

[data-theme="light"] .primary-nav a[aria-current="page"] {
    box-shadow: 0 0 0 1px rgba(18, 93, 142, 0.08), 0 8px 18px rgba(31, 72, 102, 0.1);
}

@media (max-width: 1040px) {
    .site-header__bar {
        min-height: 4rem;
        gap: 0.55rem;
    }

    /* Must come after the cascade guard so the panel stays closed by default. */
    .site-header__panel {
        display: none;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .site-header.is-open .site-header__panel {
        display: flex;
    }

    .primary-nav {
        flex: none;
        display: block;
        width: 100%;
        min-width: 0;
        justify-content: stretch;
    }

    .primary-nav ul {
        display: grid;
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: visible;
    }

    .primary-nav a {
        min-height: 3.25rem;
        justify-content: flex-start;
        gap: 0.65rem;
        padding-inline: 0.85rem 2rem;
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 0.65rem;
        color: #c1d2e0;
        background: rgba(255, 255, 255, 0.035);
        transform: none;
        box-shadow: none;
    }

    .primary-nav a:hover {
        transform: none;
    }

    .primary-nav a[aria-current="page"] {
        color: #fff;
        background: rgba(91, 192, 255, 0.14);
        box-shadow: inset 0 0 0 1px rgba(91, 192, 255, 0.16);
    }

    .header-tools {
        margin-inline-start: 0;
        width: 100%;
    }

    .header-actions .button {
        min-width: 0;
    }
}

/* Dropdown cascade guard */
.header-user {
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
}

[data-theme="light"] .header-user {
    border: 0;
    background: transparent;
}

.header-user:hover > .header-user__menu,
.header-user:focus-within > .header-user__menu {
    display: grid !important;
}

.header-user__group .languages ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
    overflow: visible;
}

@media (max-width: 1040px) {
    .header-user {
        padding: 0;
    }

    .header-user__group .languages ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Modern FAQ */
.page--faq {
    max-width: 52rem;
    margin-inline: auto;
}

.faq-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(91, 192, 255, 0.22);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(91, 192, 255, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(16, 46, 79, 0.95), rgba(8, 31, 55, 0.92));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.faq-hero__badge {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    flex: none;
    border-radius: 1rem;
    color: #7fd0ff;
    background: rgba(91, 192, 255, 0.12);
    border: 1px solid rgba(91, 192, 255, 0.24);
    box-shadow: 0 0 24px rgba(91, 192, 255, 0.16);
}

.faq-hero__badge svg {
    width: 1.45rem;
    height: 1.45rem;
}

.faq-hero__eyebrow {
    margin: 0 0 0.35rem;
    color: #73c7ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[dir="rtl"] .faq-hero__eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.faq-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: #fff;
}

.faq-hero__lead {
    margin-top: 0.65rem;
    color: #9eb6cb;
    font-size: 0.98rem;
}

.faq-hero__lead.prose,
.faq-hero__lead.prose p {
    margin: 0;
    color: inherit;
}

.faq {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.faq-item {
    overflow: clip;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background:
        linear-gradient(165deg, rgba(21, 58, 97, 0.55), rgba(10, 36, 64, 0.88));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(91, 192, 255, 0.28);
    transform: translateY(-1px);
}

.faq-item[open] {
    border-color: rgba(91, 192, 255, 0.35);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(91, 192, 255, 0.08);
}

.faq-item__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
    padding: 1rem 1.1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    flex: none;
    border-radius: 0.8rem;
    color: #7fd0ff;
    background: rgba(91, 192, 255, 0.1);
    border: 1px solid rgba(91, 192, 255, 0.18);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-item[open] .faq-item__icon {
    color: #061729;
    background: linear-gradient(145deg, #8fd0ff, #4aa8e8);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(74, 168, 232, 0.28);
}

.faq-item__glyph {
    display: grid;
    place-items: center;
    width: 1.2rem;
    height: 1.2rem;
}

.faq-item__glyph svg {
    width: 100%;
    height: 100%;
}

.faq-item__question {
    min-width: 0;
    color: #eef5fb;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.faq-item__toggle {
    position: relative;
    width: 1.85rem;
    height: 1.85rem;
    flex: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.22s ease, background 0.2s ease, border-color 0.2s ease;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0.7rem;
    height: 2px;
    border-radius: 999px;
    background: #9ec8e6;
    transform: translate(-50%, -50%);
}

.faq-item__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__toggle {
    transform: rotate(45deg);
    background: rgba(91, 192, 255, 0.14);
    border-color: rgba(91, 192, 255, 0.28);
}

.faq-item__body {
    padding: 0 1.1rem 1.15rem 4.55rem;
    color: #a9bfd2;
    animation: faq-open 0.22s ease;
}

.faq-item__body.prose,
.faq-item__body.prose p {
    margin: 0;
    color: inherit;
    font-size: 0.98rem;
    line-height: 1.7;
}

@keyframes faq-open {
    from {
        opacity: 0;
        transform: translateY(-0.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-theme="light"] .faq-hero {
    border-color: rgba(28, 108, 163, 0.16);
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 158, 224, 0.14), transparent 42%),
        linear-gradient(145deg, #ffffff, #edf6fd);
    box-shadow: 0 14px 32px rgba(24, 65, 96, 0.1);
}

[data-theme="light"] .faq-hero__badge {
    color: #1474b2;
    background: rgba(32, 135, 204, 0.08);
    border-color: rgba(32, 135, 204, 0.16);
    box-shadow: none;
}

[data-theme="light"] .faq-hero__eyebrow {
    color: #1474b2;
}

[data-theme="light"] .faq-hero h1 {
    color: #10334f;
}

[data-theme="light"] .faq-hero__lead {
    color: #5a7388;
}

[data-theme="light"] .faq-item {
    border-color: rgba(15, 67, 106, 0.1);
    background: linear-gradient(165deg, #ffffff, #f3f8fc);
    box-shadow: 0 10px 24px rgba(24, 65, 96, 0.06);
}

[data-theme="light"] .faq-item:hover,
[data-theme="light"] .faq-item[open] {
    border-color: rgba(28, 108, 163, 0.24);
}

[data-theme="light"] .faq-item__icon {
    color: #1474b2;
    background: rgba(32, 135, 204, 0.08);
    border-color: rgba(32, 135, 204, 0.14);
}

[data-theme="light"] .faq-item[open] .faq-item__icon {
    color: #fff;
    background: linear-gradient(145deg, #2f9cdc, #1474b2);
}

[data-theme="light"] .faq-item__question {
    color: #143b57;
}

[data-theme="light"] .faq-item__toggle {
    background: rgba(20, 116, 178, 0.05);
    border-color: rgba(20, 116, 178, 0.12);
}

[data-theme="light"] .faq-item__toggle::before,
[data-theme="light"] .faq-item__toggle::after {
    background: #4f7fa0;
}

[data-theme="light"] .faq-item__body {
    color: #526e83;
}

@media (max-width: 640px) {
    .faq-hero {
        gap: 0.9rem;
        padding: 1.1rem;
    }

    .faq-hero__badge {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.85rem;
    }

    .faq-item__summary {
        gap: 0.7rem;
        padding: 0.9rem;
    }

    .faq-item__icon {
        width: 2.3rem;
        height: 2.3rem;
        border-radius: 0.7rem;
    }

    .faq-item__question {
        font-size: 1rem;
    }

    .faq-item__body {
        padding: 0 0.9rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item__icon,
    .faq-item__toggle {
        transition: none;
    }

    .faq-item__body {
        animation: none;
    }
}

/* Modern contact page */
.page--contact {
    max-width: 68rem;
    margin-inline: auto;
}

.contact-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(91, 192, 255, 0.22);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(155, 213, 47, 0.12), transparent 38%),
        radial-gradient(circle at 0% 0%, rgba(91, 192, 255, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(16, 46, 79, 0.95), rgba(8, 31, 55, 0.92));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.contact-hero__badge {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    flex: none;
    border-radius: 1rem;
    color: #9bd52f;
    background: rgba(155, 213, 47, 0.12);
    border: 1px solid rgba(155, 213, 47, 0.28);
    box-shadow: 0 0 24px rgba(155, 213, 47, 0.14);
}

.contact-hero__badge svg {
    width: 1.45rem;
    height: 1.45rem;
}

.contact-hero__eyebrow {
    margin: 0 0 0.35rem;
    color: #73c7ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[dir="rtl"] .contact-hero__eyebrow,
html[dir="rtl"] .contact-panel__eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.contact-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: #fff;
}

.contact-hero__lead {
    margin-top: 0.65rem;
    color: #9eb6cb;
    font-size: 0.98rem;
}

.contact-hero__lead.prose,
.contact-hero__lead.prose p {
    margin: 0;
    color: inherit;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.85fr);
    gap: 1.15rem;
    align-items: start;
}

.contact-panel,
.contact-card,
.contact-social {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    background:
        linear-gradient(165deg, rgba(21, 58, 97, 0.55), rgba(10, 36, 64, 0.92));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.contact-panel {
    padding: 1.35rem;
}

.contact-panel__head {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-panel__eyebrow {
    margin: 0 0 0.3rem;
    color: #73c7ff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-panel__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    color: #fff;
}

.contact-form {
    display: grid;
    gap: 0.95rem;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.contact-form .field label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
    color: #9eb6cb;
}

.field__icon {
    display: grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    color: #73c7ff;
}

.field__icon svg {
    width: 100%;
    height: 100%;
}

.contact-form input,
.contact-form textarea {
    min-height: 3rem;
    padding: 0.75rem 0.95rem;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    background: rgba(4, 18, 34, 0.55);
    color: #f4f7fb;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6f879d;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(91, 192, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(91, 192, 255, 0.14);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: rgba(255, 92, 122, 0.55);
}

.contact-form__alert {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 92, 122, 0.28);
    border-radius: 0.8rem;
    background: rgba(255, 92, 122, 0.1);
}

.contact-form__submit {
    justify-self: start;
    gap: 0.55rem;
    min-height: 3rem;
    padding-inline: 1.35rem;
    border-radius: 0.85rem;
}

.contact-form__submit svg {
    width: 1.05rem;
    height: 1.05rem;
}

html[dir="rtl"] .contact-form__submit svg {
    transform: scaleX(-1);
}

.contact-aside {
    display: grid;
    gap: 0.85rem;
}

.contact-cards {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.05rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
    border-color: rgba(91, 192, 255, 0.3);
    transform: translateY(-1px);
}

.contact-card__icon {
    display: grid;
    place-items: center;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.8rem;
    color: #7fd0ff;
    background: rgba(91, 192, 255, 0.1);
    border: 1px solid rgba(91, 192, 255, 0.18);
}

.contact-card__icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.contact-card__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.contact-card__label {
    color: #7fa0ba;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[dir="rtl"] .contact-card__label {
    letter-spacing: 0;
    text-transform: none;
}

.contact-card__copy a,
.contact-card__copy > span:last-child {
    color: #eef5fb;
    font-weight: 650;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-card__copy a:hover {
    color: #8fd0ff;
}

.contact-social {
    padding: 1.05rem 1.1rem;
}

.contact-social h2 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.contact-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #c5d7e8;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.contact-social a:hover {
    color: #fff;
    border-color: rgba(91, 192, 255, 0.28);
    background: rgba(91, 192, 255, 0.12);
}

[data-theme="light"] .contact-hero {
    border-color: rgba(28, 108, 163, 0.16);
    background:
        radial-gradient(circle at 100% 0%, rgba(139, 190, 42, 0.1), transparent 38%),
        radial-gradient(circle at 0% 0%, rgba(56, 158, 224, 0.14), transparent 42%),
        linear-gradient(145deg, #ffffff, #edf6fd);
    box-shadow: 0 14px 32px rgba(24, 65, 96, 0.1);
}

[data-theme="light"] .contact-hero__badge {
    color: #5d8a17;
    background: rgba(139, 190, 42, 0.12);
    border-color: rgba(139, 190, 42, 0.24);
    box-shadow: none;
}

[data-theme="light"] .contact-hero__eyebrow,
[data-theme="light"] .contact-panel__eyebrow {
    color: #1474b2;
}

[data-theme="light"] .contact-hero h1,
[data-theme="light"] .contact-panel__head h2,
[data-theme="light"] .contact-social h2 {
    color: #10334f;
}

[data-theme="light"] .contact-hero__lead {
    color: #5a7388;
}

[data-theme="light"] .contact-panel,
[data-theme="light"] .contact-card,
[data-theme="light"] .contact-social {
    border-color: rgba(15, 67, 106, 0.1);
    background: linear-gradient(165deg, #ffffff, #f3f8fc);
    box-shadow: 0 12px 28px rgba(24, 65, 96, 0.08);
}

[data-theme="light"] .contact-panel__head {
    border-bottom-color: rgba(15, 67, 106, 0.1);
}

[data-theme="light"] .contact-form .field label {
    color: #526e83;
}

[data-theme="light"] .field__icon {
    color: #1474b2;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    border-color: rgba(15, 67, 106, 0.14);
    background: #fff;
    color: #10334f;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: #8aa0b2;
}

[data-theme="light"] .contact-card:hover {
    border-color: rgba(28, 108, 163, 0.24);
}

[data-theme="light"] .contact-card__icon {
    color: #1474b2;
    background: rgba(32, 135, 204, 0.08);
    border-color: rgba(32, 135, 204, 0.14);
}

[data-theme="light"] .contact-card__label {
    color: #6b8498;
}

[data-theme="light"] .contact-card__copy a,
[data-theme="light"] .contact-card__copy > span:last-child {
    color: #143b57;
}

[data-theme="light"] .contact-card__copy a:hover {
    color: #1474b2;
}

[data-theme="light"] .contact-social a {
    border-color: rgba(15, 67, 106, 0.12);
    color: #41637b;
    background: rgba(24, 112, 176, 0.04);
}

[data-theme="light"] .contact-social a:hover {
    color: #125d8e;
    border-color: rgba(28, 108, 163, 0.22);
    background: rgba(32, 135, 204, 0.08);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-aside {
        order: -1;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        gap: 0.9rem;
        padding: 1.1rem;
    }

    .contact-hero__badge {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.85rem;
    }

    .contact-panel {
        padding: 1.05rem;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form__submit {
        width: 100%;
        justify-self: stretch;
    }
}

/* Modern services */
.page--services {
    max-width: 68rem;
    margin-inline: auto;
}

.services-hero {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(91, 192, 255, 0.22);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(91, 192, 255, 0.16), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(155, 213, 47, 0.1), transparent 42%),
        linear-gradient(145deg, rgba(16, 46, 79, 0.95), rgba(8, 31, 55, 0.92));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.services-hero__badge {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    flex: none;
    border-radius: 1rem;
    color: #8fd0ff;
    background: rgba(91, 192, 255, 0.12);
    border: 1px solid rgba(91, 192, 255, 0.28);
    box-shadow: 0 0 24px rgba(91, 192, 255, 0.14);
}

.services-hero__badge svg {
    width: 1.45rem;
    height: 1.45rem;
}

.services-hero__eyebrow {
    margin: 0 0 0.35rem;
    color: #73c7ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html[dir="rtl"] .services-hero__eyebrow {
    letter-spacing: 0;
    text-transform: none;
}

.services-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    line-height: 1.15;
    color: #fff;
}

.services-hero__lead {
    margin-top: 0.65rem;
    color: #9eb6cb;
    font-size: 0.98rem;
}

.services-hero__lead.prose,
.services-hero__lead.prose p {
    margin: 0;
    color: inherit;
}

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    position: relative;
    display: grid;
    gap: 0.75rem;
    align-content: start;
    min-height: 100%;
    padding: 1.25rem 1.3rem 1.35rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.15rem;
    background:
        linear-gradient(165deg, rgba(21, 58, 97, 0.58), rgba(10, 36, 64, 0.92));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset-inline-end: -2rem;
    top: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 192, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(91, 192, 255, 0.32);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.service-card__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.service-card__icon {
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.9rem;
    color: #7fd0ff;
    background: rgba(91, 192, 255, 0.1);
    border: 1px solid rgba(91, 192, 255, 0.2);
    box-shadow: 0 8px 18px rgba(74, 168, 232, 0.12);
}

.service-card__icon .faq-item__glyph {
    width: 1.3rem;
    height: 1.3rem;
}

.service-card__index {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.04em;
}

.service-card__title {
    position: relative;
    margin: 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.25;
}

.service-card__summary {
    position: relative;
    margin: 0;
    color: #8fd0ff;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.45;
}

.service-card__body {
    position: relative;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #a9bfd2;
}

.service-card__body.prose,
.service-card__body.prose p {
    margin: 0;
    color: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-card:nth-child(4n + 2) .service-card__icon {
    color: #b9e860;
    background: rgba(155, 213, 47, 0.1);
    border-color: rgba(155, 213, 47, 0.22);
}

.service-card:nth-child(4n + 3) .service-card__icon {
    color: #ffd56a;
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.22);
}

.service-card:nth-child(4n + 4) .service-card__icon {
    color: #ff8fb0;
    background: rgba(255, 92, 122, 0.1);
    border-color: rgba(255, 92, 122, 0.2);
}

[data-theme="light"] .services-hero {
    border-color: rgba(28, 108, 163, 0.16);
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 158, 224, 0.14), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(139, 190, 42, 0.08), transparent 42%),
        linear-gradient(145deg, #ffffff, #edf6fd);
    box-shadow: 0 14px 32px rgba(24, 65, 96, 0.1);
}

[data-theme="light"] .services-hero__badge {
    color: #1474b2;
    background: rgba(32, 135, 204, 0.08);
    border-color: rgba(32, 135, 204, 0.16);
    box-shadow: none;
}

[data-theme="light"] .services-hero__eyebrow {
    color: #1474b2;
}

[data-theme="light"] .services-hero h1 {
    color: #10334f;
}

[data-theme="light"] .services-hero__lead {
    color: #5a7388;
}

[data-theme="light"] .service-card {
    border-color: rgba(15, 67, 106, 0.1);
    background: linear-gradient(165deg, #ffffff, #f3f8fc);
    box-shadow: 0 12px 28px rgba(24, 65, 96, 0.08);
}

[data-theme="light"] .service-card::before {
    background: radial-gradient(circle, rgba(32, 135, 204, 0.1), transparent 70%);
}

[data-theme="light"] .service-card:hover {
    border-color: rgba(28, 108, 163, 0.24);
}

[data-theme="light"] .service-card__icon {
    color: #1474b2;
    background: rgba(32, 135, 204, 0.08);
    border-color: rgba(32, 135, 204, 0.14);
    box-shadow: none;
}

[data-theme="light"] .service-card__index {
    color: rgba(16, 51, 79, 0.16);
}

[data-theme="light"] .service-card__title {
    color: #10334f;
}

[data-theme="light"] .service-card__summary {
    color: #1474b2;
}

[data-theme="light"] .service-card__body {
    border-top-color: rgba(15, 67, 106, 0.1);
    color: #526e83;
}

[data-theme="light"] .service-card:nth-child(4n + 2) .service-card__icon {
    color: #5d8a17;
    background: rgba(139, 190, 42, 0.1);
    border-color: rgba(139, 190, 42, 0.2);
}

[data-theme="light"] .service-card:nth-child(4n + 3) .service-card__icon {
    color: #b45309;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .service-card:nth-child(4n + 4) .service-card__icon {
    color: #be123c;
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.16);
}

@media (max-width: 760px) {
    .services {
        grid-template-columns: 1fr;
    }

    .services-hero {
        gap: 0.9rem;
        padding: 1.1rem;
    }

    .services-hero__badge {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.85rem;
    }

    .service-card {
        padding: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }
}



