﻿:root {
    --bg: #0f172a;
    --fg: #0b1120;
    --primary: #38bdf8;
    --accent: #a855f7;
    --card-bg: rgba(15, 23, 42, 0.7);
    --border: rgba(148, 163, 184, 0.2);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --container-max: 1120px;
    --page-padding: clamp(1rem, 3vw, 2rem);
    --nav-overlay: rgba(2, 6, 23, 0.78);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.9)),
        url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2000&q=80") center / cover fixed;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height, 120px);
    transition: padding-top 0.28s ease;
}

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

.container {
    width: min(var(--container-max, 1100px), 100%);
    margin: 0 auto;
    padding-left: var(--page-padding, 1.5rem);
    padding-right: var(--page-padding, 1.5rem);
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.app-header {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 50;
    transition: padding 0.28s ease, background 0.28s ease, border-color 0.28s ease;
    will-change: padding;
}

.app-header.header--compact {
    padding: 0.15rem 0;
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: nowrap;
    transition: align-items 0.28s ease, gap 0.28s ease;
}

.header--compact .nav-container {
    align-items: flex-start;
    gap: 1.2rem;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    flex: 0 0 auto;
    transition: transform 0.28s ease, gap 0.28s ease;
    transform-origin: top left;
}

.header--compact .brand {
    gap: 0.1rem;
    transform: scale(0.78);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 14px;
    padding: 0.3rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.4), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(168, 85, 247, 0.35), transparent 50%),
        rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 10px 30px rgba(8, 47, 73, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    filter: saturate(1.05) brightness(1.05);
}

.logo:hover .logo-image,
.logo:focus-visible .logo-image {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
        0 18px 38px rgba(8, 47, 73, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: saturate(1.15) brightness(1.12);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.01em;
}

.tagline {
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.75);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.28s ease, transform 0.28s ease;
    transform-origin: top left;
}

.header--compact .tagline {
    opacity: 0.5;
    transform: scale(0.85);
}

.main-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1 1 auto;
    transform-origin: top center;
}

.header--compact .main-nav {
    margin-top: 0.15rem;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--nav-overlay, rgba(2, 6, 23, 0.78));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 60;
}

.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.45);
    color: rgba(248, 250, 252, 0.88);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.75);
    color: white;
}

.nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.45);
}

.nav-toggle-box {
    position: relative;
    width: 18px;
    height: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.35rem;
    position: relative;
    max-height: none;
    overflow: visible;
    z-index: 80;
}

.nav-menu__mobile-head,
.nav-menu__close {
    display: none;
}

.nav-menu__close-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.nav-menu__close-icon::before,
.nav-menu__close-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    border-radius: 999px;
    top: 50%;
    left: 0;
    transform-origin: center;
}

.nav-menu__close-icon::before {
    transform: translateY(-50%) rotate(45deg);
}

.nav-menu__close-icon::after {
    transform: translateY(-50%) rotate(-45deg);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.48rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    min-width: 116px;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.28s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 6px 18px -12px rgba(56, 189, 248, 0.7);
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22));
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 24px -12px rgba(56, 189, 248, 0.75);
}

.nav-item--dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.nav-dropdown-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: 0.25rem;
}

.nav-item--dropdown.is-open .nav-dropdown-caret,
.nav-item--dropdown:hover .nav-dropdown-caret {
    transform: rotate(225deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    width: max-content;
    min-width: 220px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.85), 0 20px 38px -32px rgba(56, 189, 248, 0.65);
    backdrop-filter: blur(18px);
    z-index: 60;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.nav-item--dropdown.is-open .nav-dropdown,
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
    display: flex;
}

.nav-dropdown-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(226, 232, 240, 0.88);
    font-weight: 600;
    font-size: 0.92rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-dropdown-link.active {
    border-color: rgba(56, 189, 248, 0.65);
    color: white;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(168, 85, 247, 0.28));
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cta:empty {
    display: none;
}

.language-switcher {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    transform-origin: top right;
}

.header--compact .language-switcher {
    transform: scale(0.9);
}

.language-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.55rem 1.35rem 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75)),
        linear-gradient(135deg, #38bdf8, #a855f7 45%, #f97316);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 18px 35px -22px rgba(56, 189, 248, 0.9),
        0 4px 12px -8px rgba(168, 85, 247, 0.6);
    overflow: hidden;
    flex-wrap: wrap;
}

.language-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #0b1120;
    background-image: conic-gradient(from 180deg, #38bdf8, #a855f7, #facc15, #38bdf8);
    box-shadow: 0 10px 20px -14px rgba(250, 204, 21, 0.9);
}

.language-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 160px;
    flex: 1 1 auto;
}

.language-select select {
    width: 100%;
    border: none;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.2rem 1.65rem 0.2rem 0.75rem;
    cursor: pointer;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    text-shadow: 0 0 8px rgba(15, 23, 42, 0.35);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.language-select select:hover {
    color: #f8fafc;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.language-select select:focus-visible {
    outline: none;
}

.language-pill:focus-within {
    box-shadow:
        0 18px 35px -22px rgba(56, 189, 248, 0.9),
        0 0 0 2px rgba(56, 189, 248, 0.55);
}

.language-select::after {
    content: "\25BE";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.8rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.language-switcher select option {
    color: #0b1120;
    background-color: #f8fafc;
}

.language-pill:hover .language-select::after,
.language-pill:focus-within .language-select::after {
    color: rgba(248, 250, 252, 0.9);
    transform: translateY(-50%) rotate(180deg);
}

.header--compact .language-pill {
    padding: 0.4rem 1.1rem 0.4rem 0.75rem;
}

.header--compact .language-icon {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
}

.main-nav .language-switcher {
    display: none;
}

@media (max-width: 1024px) {
    .nav-container {
        align-items: flex-start;
    }

    .main-nav {
        width: auto;
        margin-left: auto;
    }

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

    .nav-menu {
        position: fixed;
        inset: 0;
        margin-left: auto;
        width: min(420px, 100%);
        height: 100vh;
        max-height: 100vh;
        max-width: 420px;
        padding: calc(env(safe-area-inset-top, 0px) + clamp(1.4rem, 4vw, 2rem)) clamp(1.35rem, 4vw, 2rem) calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
        background: linear-gradient(165deg, rgba(2, 8, 23, 0.98), rgba(8, 15, 35, 0.94));
        border-left: 1px solid rgba(56, 189, 248, 0.25);
        box-shadow: -20px 0 60px -30px rgba(2, 6, 23, 0.85);
        backdrop-filter: blur(18px);
        flex-direction: column;
        align-items: stretch;
        gap: 1.35rem;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        border-radius: 0;
    }

    .nav-menu.is-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu__mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        position: sticky;
        top: 0;
        background: inherit;
        z-index: 1;
    }

    .nav-menu__title {
        font-size: 0.85rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .nav-menu__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.35);
        background: transparent;
        cursor: pointer;
        transition: border-color 0.2s ease, background 0.2s ease;
    }

    .nav-menu__close:hover,
    .nav-menu__close:focus-visible {
        border-color: rgba(56, 189, 248, 0.6);
        background: rgba(15, 23, 42, 0.6);
    }

    .nav-menu__close:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        flex: 1 1 auto;
        overflow-y: auto;
        padding-bottom: 1.5rem;
        scroll-padding-top: 1rem;
    }

    .nav-item {
        align-items: stretch;
        flex-direction: column;
    }

    .nav-link {
        justify-content: space-between;
        min-width: 0;
        width: 100%;
        font-size: 1.05rem;
        padding: 0.9rem 1.1rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(148, 163, 184, 0.18);
        box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.05);
    }

    .nav-item--dropdown,
    .nav-dropdown-toggle {
        width: 100%;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
        display: inline-flex;
        align-items: center;
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.08));
        border-color: rgba(56, 189, 248, 0.25);
        color: white;
    }

    .nav-item--dropdown.is-open > .nav-link {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.22));
        border-color: rgba(56, 189, 248, 0.5);
    }

    .nav-dropdown {
        position: static;
        display: none;
        width: 100%;
        padding: 0.85rem;
        margin-top: 0.35rem;
        background: rgba(15, 23, 42, 0.9);
        border-radius: 18px;
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow:
            0 14px 28px -18px rgba(2, 6, 23, 0.9),
            inset 0 1px 0 rgba(248, 250, 252, 0.05);
        max-height: 55vh;
        overflow-y: auto;
        transform-origin: top center;
    }

    .nav-item--dropdown.is-open .nav-dropdown {
        display: flex;
    }

    .nav-dropdown-link {
        width: 100%;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .language-switcher {
        width: 100%;
        justify-content: flex-start;
    }
}


@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1rem;
    }

    .brand {
        width: auto;
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
        order: 1;
    }

    .logo-text {
        font-size: 1.35rem;
    }

    .tagline {
        display: none;
    }

    .main-nav {
        order: 2;
        width: auto;
        flex: 1 1 auto;
        justify-content: flex-end;
    }

    .nav-toggle {
        margin-left: auto;
        min-height: 44px;
    }

    .nav-menu {
        width: 100%;
        max-width: none;
        border-left: none;
        border-top: 1px solid rgba(56, 189, 248, 0.2);
        background: linear-gradient(180deg, rgba(5, 10, 25, 0.98), rgba(8, 15, 35, 0.94));
        padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) clamp(1rem, 4vw, 1.5rem) calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
        gap: 1.25rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu.is-open {
        transform: translateY(0);
    }

    .nav-menu__mobile-head {
        padding-bottom: 1rem;
        margin-bottom: 0.75rem;
        border-color: rgba(148, 163, 184, 0.35);
    }

    .container {
        width: 100%;
        padding-left: clamp(0.75rem, 4vw, 1.25rem);
        padding-right: clamp(0.75rem, 4vw, 1.25rem);
    }

    .card {
        padding: 1.25rem;
    }

    .language-switcher {
        order: 3;
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
        margin-left: 0.5rem;
        align-self: center;
    }

    .language-pill {
        width: auto;
        max-width: 100%;
        justify-content: flex-start;
        gap: 0.4rem;
        padding: 0.45rem 0.9rem;
    }

    .language-select {
        display: inline-flex;
        width: auto;
        min-width: 0;
    }

    .language-select select {
        min-width: 120px;
        font-size: 0.9rem;
        padding-right: 1.35rem;
    }

    .language-icon {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
    }
}



main {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: clamp(1.25rem, 2.6vw, 1.75rem);
    box-shadow: 0 25px 50px -12px rgba(56, 189, 248, 0.25);
}

.error-card {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(185, 28, 28, 0.2);
    color: #fecaca;
}

.card h2,
.card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.summary-text {
    font-size: 1.1rem;
    color: var(--text);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    padding: 0.85rem 1.5rem;
    min-height: 44px;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(56, 189, 248, 0.4);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 0 0 12px 0;
    font-weight: 600;
    transition: top 0.2s ease;
    z-index: 999;
}

.skip-link:focus {
    top: 0;
}

.hero-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-card p {
    color: var(--text);
    max-width: 60ch;
}

.app-footer {
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.85);
    margin-top: auto;
    padding: 2rem 0 1rem;
    color: var(--muted);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: transparent;
    padding: 0.35rem;
    box-shadow: none;
}

.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 16px;
    padding: 0.4rem;
    background:
        radial-gradient(circle at 25% 20%, rgba(56, 189, 248, 0.4), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.35), transparent 55%),
        rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 12px 30px rgba(2, 6, 23, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.footer-logo-link:hover .footer-logo,
.footer-logo-link:focus-visible .footer-logo {
    transform: translateY(-2px);
    box-shadow:
        0 20px 40px rgba(2, 6, 23, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: saturate(1.1) brightness(1.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.app-footer h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.6rem;
}

.app-footer ul {
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.app-footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-footer a:hover {
    color: white;
}

.footer-note {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.65);
}

small {
    color: var(--muted);
    font-size: 0.85rem;
}

.hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.code-block {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 1rem;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.85rem;
    color: var(--muted);
    overflow-x: auto;
}

.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-dashboard__hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px -40px rgba(15, 23, 42, 0.9);
}

.admin-dashboard__hero .eyebrow {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.admin-dashboard__hero h1 {
    margin: 0.6rem 0;
    font-size: 2rem;
}

.admin-dashboard__hero .lead {
    color: rgba(226, 232, 240, 0.8);
}

.admin-dashboard__hero form {
    margin-left: auto;
}

.admin-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-card {
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.admin-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.admin-card .value {
    font-size: 1.9rem;
    display: block;
    margin: 0.2rem 0;
}

.admin-card .hint {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.65);
}

.admin-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.admin-panel {
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(56, 189, 248, 0.18);
    box-shadow: 0 25px 60px -45px rgba(8, 47, 73, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.9rem;
    color: var(--muted);
}

.top-pages {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.top-pages__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-pages__meta {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.top-pages__percent {
    font-weight: 600;
}

.top-pages__empty {
    text-align: center;
    color: var(--muted);
}

.progress {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
}

.progress__bar {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(168, 85, 247, 0.8));
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table thead {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.7rem;
}

.admin-table th,
.admin-table td {
    padding: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    vertical-align: top;
}

.admin-table code {
    background: rgba(15, 23, 42, 0.6);
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
}

.table-wrapper {
    max-height: 420px;
    overflow-y: auto;
}

.admin-auth {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.admin-auth__card {
    width: min(420px, 100%);
    padding: 2rem;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 36px 80px -40px rgba(8, 47, 73, 0.9);
}

.admin-auth__lead {
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 1.2rem;
}

.admin-auth__alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.admin-auth__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-auth__form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.admin-auth__form input {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.6);
    padding: 0.65rem 1rem;
    color: white;
}

.admin-auth__submit {
    width: 100%;
    margin-top: 0.5rem;
}

.admin-dashboard__hero form {
    margin-left: auto;
}

@media (max-width: 768px) {
    .admin-dashboard__hero {
        flex-direction: column;
    }

    .admin-dashboard__grid {
        grid-template-columns: 1fr;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: min(420px, calc(100% - 2rem));
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 60px -25px rgba(0, 0, 0, 0.65);
    color: var(--text);
    z-index: 9999;
    display: none;
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cookie-banner__button {
    flex: 1 1 120px;
    font-size: 0.95rem;
}

.cookie-banner__button.is-secondary {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text);
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.cookie-banner__button.is-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 640px) {
    .nav-container {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 0.75rem;
    }

    .brand {
        order: 1;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        text-align: left;
    }

    .logo {
        justify-content: flex-start;
    }

    .main-nav {
        order: 2;
        width: auto;
        justify-content: flex-end;
        flex: 1 1 auto;
    }

    .nav-toggle {
        align-self: auto;
    }

    .language-switcher {
        order: 3;
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
        align-self: center;
        margin-left: 0.5rem;
    }

    .language-pill {
        width: auto;
        max-width: 100%;
    }

    .nav-menu {
        left: 0;
        width: 100%;
        padding: calc(1.25rem + env(safe-area-inset-top, 0)) clamp(1rem, 6vw, 1.75rem) clamp(2rem, 6vw, 2.5rem);
        border-left: none;
        border-top: 1px solid rgba(56, 189, 248, 0.25);
    }

    .nav-menu__mobile-head {
        padding-top: env(safe-area-inset-top, 0);
    }

    .primary-btn {
        width: 100%;
    }

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

    .cookie-banner {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}

    .nav-dropdown::before {
        display: none;
    }
