/* =====================================================
   CraftnexAI — Shared deep-space background
   ===================================================== */

body {
    background:
        radial-gradient(circle at 14% 14%, rgba(90, 120, 255, 0.34), transparent 22%),
        radial-gradient(circle at 84% 12%, rgba(78, 216, 255, 0.2), transparent 20%),
        radial-gradient(circle at 50% 56%, rgba(65, 92, 255, 0.08), transparent 26%),
        linear-gradient(180deg, #102452 0%, #0b1d44 20%, #081733 48%, #061022 74%, #040a16 100%);
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

body::before {
    top: 6%;
    left: -10%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 216, 255, 0.16), transparent 72%);
    animation: driftOrb 16s ease-in-out infinite;
}

body::after {
    right: -14%;
    bottom: -2%;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 108, 255, 0.14), transparent 72%);
    animation: driftOrb 20s ease-in-out infinite reverse;
}

.ai-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 24%, rgba(130, 117, 255, 0.18), transparent 18%),
        radial-gradient(circle at 78% 22%, rgba(88, 228, 255, 0.12), transparent 18%),
        radial-gradient(circle at 50% 76%, rgba(255, 176, 96, 0.06), transparent 20%);
}

.ai-background::before,
.ai-background::after {
    content: "";
    position: absolute;
    inset: 0;
}

.ai-background::before {
    background-image:
        linear-gradient(rgba(136, 174, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(136, 174, 255, 0.08) 1px, transparent 1px),
        linear-gradient(120deg, rgba(84, 215, 255, 0.04), transparent 32%, transparent 68%, rgba(97, 108, 255, 0.05));
    background-size: 96px 96px, 96px 96px, 100% 100%;
    mask-image: radial-gradient(circle at center, black 20%, rgba(0, 0, 0, 0.85) 52%, transparent 92%);
    opacity: 0.55;
    animation: aiGridDrift 32s linear infinite;
}

.ai-background::after {
    background:
        radial-gradient(circle at 50% 42%, rgba(102, 143, 255, 0.12), transparent 26%),
        radial-gradient(circle at 50% 100%, rgba(17, 31, 72, 0.5), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%, transparent 84%, rgba(0, 0, 0, 0.24));
    mix-blend-mode: screen;
    opacity: 0.7;
}

.ai-background__aurora,
.ai-background__beam,
.ai-background__orbit,
.ai-background__node {
    position: absolute;
    pointer-events: none;
}

.ai-background__aurora {
    border-radius: 50%;
    filter: blur(22px);
    opacity: 0.9;
    animation: aiAuroraFloat 18s ease-in-out infinite;
}

.ai-background__aurora-a {
    top: 10%;
    left: -8%;
    width: 34vw;
    height: 34vw;
    min-width: 280px;
    min-height: 280px;
    background: radial-gradient(circle, rgba(75, 235, 255, 0.24), rgba(74, 108, 255, 0.08) 44%, transparent 72%);
}

.ai-background__aurora-b {
    right: -10%;
    bottom: 8%;
    width: 40vw;
    height: 40vw;
    min-width: 320px;
    min-height: 320px;
    background: radial-gradient(circle, rgba(126, 120, 255, 0.22), rgba(75, 235, 255, 0.06) 42%, transparent 72%);
    animation-duration: 24s;
    animation-delay: -7s;
}

.ai-background__beam {
    top: -16%;
    width: 34vw;
    height: 140vh;
    background: linear-gradient(180deg, transparent 0%, rgba(132, 230, 255, 0.18) 24%, rgba(115, 129, 255, 0.24) 48%, rgba(132, 230, 255, 0.14) 72%, transparent 100%);
    filter: blur(12px);
    opacity: 0.34;
    transform: rotate(18deg);
    animation: aiBeamSweep 26s ease-in-out infinite;
}

.ai-background__beam-a { left: 12%; }

.ai-background__beam-b {
    right: 8%;
    width: 26vw;
    transform: rotate(-22deg);
    opacity: 0.24;
    animation-duration: 30s;
    animation-delay: -8s;
}

.ai-background__orbit {
    border-radius: 50%;
    border: 1px solid rgba(128, 181, 255, 0.14);
    box-shadow:
        inset 0 0 28px rgba(74, 108, 255, 0.06),
        0 0 42px rgba(78, 216, 255, 0.06);
    animation: aiOrbitSpin 34s linear infinite;
}

.ai-background__orbit-a {
    top: 12%;
    left: 18%;
    width: 42vw;
    height: 42vw;
    min-width: 380px;
    min-height: 380px;
}

.ai-background__orbit-b {
    right: 10%;
    bottom: 6%;
    width: 28vw;
    height: 28vw;
    min-width: 240px;
    min-height: 240px;
    animation-direction: reverse;
    animation-duration: 42s;
}

.ai-background__node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #ecfdff 0 30%, #7ef3ff 56%, rgba(74, 108, 255, 0.4) 78%, transparent 82%);
    box-shadow:
        0 0 18px rgba(126, 243, 255, 0.42),
        0 0 42px rgba(74, 108, 255, 0.18);
    animation: aiNodePulse 4.8s ease-in-out infinite;
}

.ai-background__node-a { top: 18%; left: 22%; }
.ai-background__node-b { top: 28%; right: 24%; animation-delay: -1s; }
.ai-background__node-c { top: 54%; left: 62%; animation-delay: -2s; }
.ai-background__node-d { bottom: 24%; left: 18%; animation-delay: -3s; }
.ai-background__node-e { bottom: 16%; right: 20%; animation-delay: -1.4s; }
.ai-background__node-f { top: 42%; left: 44%; animation-delay: -2.6s; }

/* ── Neural click ────────────────────────────────── */
.ai-background__interaction-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.ai-neural-click {
    position: absolute;
    left: 0; top: 0;
    width: 0; height: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: saturate(1.12);
}

.ai-neural-click__core,
.ai-neural-click__halo,
.ai-neural-click__ring,
.ai-neural-click__spark,
.ai-neural-click__branch,
.ai-neural-click__echo {
    position: absolute;
    left: 0; top: 0;
    pointer-events: none;
}

.ai-neural-click__core {
    width: 18px; height: 18px;
    margin-left: -9px; margin-top: -9px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--lava-rgb-2),0.98) 0 22%, rgba(var(--lava-rgb-2),0.92) 38%, rgba(var(--lava-rgb),0.42) 64%, transparent 82%);
    box-shadow: 0 0 22px rgba(var(--lava-rgb-2),0.85), 0 0 56px rgba(var(--lava-rgb),0.36);
    animation: aiNeuralCore 1180ms cubic-bezier(0.18,0.84,0.28,1) forwards;
}

.ai-neural-click__halo {
    width: 210px; height: 210px;
    margin-left: -105px; margin-top: -105px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--lava-rgb-2),0.22) 0 14%, rgba(var(--lava-rgb-2),0.16) 20%, rgba(var(--lava-rgb),0.1) 44%, transparent 74%);
    filter: blur(10px);
    animation: aiNeuralHalo 1500ms ease-out forwards;
}

.ai-neural-click__ring {
    width: var(--ring-size, 180px); height: var(--ring-size, 180px);
    margin-left: calc(var(--ring-size, 180px) * -0.5);
    margin-top: calc(var(--ring-size, 180px) * -0.5);
    border-radius: 50%;
    border: 1px solid rgba(var(--lava-rgb-2),0.34);
    box-shadow: inset 0 0 18px rgba(var(--lava-rgb-2),0.12), 0 0 36px rgba(var(--lava-rgb),0.12);
    opacity: 0;
    animation: aiNeuralRing 1320ms cubic-bezier(0.16,0.84,0.24,1) forwards;
    animation-delay: var(--ring-delay, 0ms);
}

.ai-neural-click__echo {
    width: 132px; height: 132px;
    margin-left: -66px; margin-top: -66px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--lava-rgb-2),0.12) 0 14%, transparent 52%),
        conic-gradient(from 0deg, rgba(var(--lava-rgb-2),0), rgba(var(--lava-rgb-2),0.18), rgba(var(--lava-rgb),0), rgba(var(--lava-rgb-2),0.22), rgba(var(--lava-rgb-2),0));
    filter: blur(2px);
    opacity: 0;
    animation: aiNeuralEcho 1500ms ease-out forwards;
}

/* =====================================================
   Legacy pages readability on dark background
   ===================================================== */

body:not(.page-index) .bg-header {
    background: transparent !important;
}

body:not(.page-index) .section-title-text {
    color: #ecf6ff !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

body:not(.page-index) .bg-content,
body:not(.page-index) .card,
body:not(.page-index) .service-item .position-relative.text-center.bg-light,
body:not(.page-index) .product-item.bg-light,
body:not(.page-index) .contact-form.bg-light {
    background:
        linear-gradient(145deg, rgba(10, 23, 46, 0.86), rgba(6, 15, 30, 0.78)) !important;
    border: 1px solid rgba(137, 194, 255, 0.14);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body:not(.page-index) .footer.bg-light,
body:not(.page-index) > .container.text-center.py-5,
body:not(.page-index) .container-fluid.py-2,
body:not(.page-index) .u-inline-4b35f4d70a {
    background: transparent !important;
    background-color: transparent !important;
}

body:not(.page-index) .footer,
body:not(.page-index) > .container.text-center.py-5 {
    background-image: none !important;
}

body:not(.page-index) .animation-section,
body:not(.page-index) .gallery-tech-stage,
body.page-contact .email-animation {
    background: transparent !important;
    background-color: transparent !important;
}

body:not(.page-index) #checkout-animation,
body:not(.page-index) .gallery-tech-stage .gts-hud,
body.page-contact .email-animation .ea-hud {
    background:
        radial-gradient(circle at 14% 18%, rgba(78, 216, 255, 0.14), transparent 24%),
        radial-gradient(circle at 82% 78%, rgba(103, 116, 255, 0.16), transparent 28%),
        linear-gradient(145deg, rgba(10, 23, 46, 0.86), rgba(6, 15, 30, 0.78)) !important;
    border: 1px solid rgba(137, 194, 255, 0.16);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body:not(.page-index) #checkout-animation {
    border-radius: 24px;
}

body:not(.page-index) .gallery-tech-stage .gts-hud::before {
    mix-blend-mode: screen;
    opacity: 0.32;
}

body:not(.page-index) .bg-content h4,
body:not(.page-index) .bg-content h5,
body:not(.page-index) .card h4,
body:not(.page-index) .card h5,
body:not(.page-index) .service-item h5,
body:not(.page-index) .product-item h5,
body:not(.page-index) .contact-form h4,
body:not(.page-index) .contact-form h5,
body:not(.page-index) .footer h5,
body:not(.page-index) > .container.text-center.py-5 h5,
body:not(.page-index) .font-weight-bold,
body:not(.page-index) .font-weight-semi-bold {
    color: #f4f9ff !important;
}

body:not(.page-index) .bg-content p,
body:not(.page-index) .bg-content li,
body:not(.page-index) .card-body,
body:not(.page-index) .card p,
body:not(.page-index) .card li,
body:not(.page-index) .service-item p,
body:not(.page-index) .product-item p,
body:not(.page-index) .contact-form p,
body:not(.page-index) .contact-form label,
body:not(.page-index) .footer p,
body:not(.page-index) .footer span,
body:not(.page-index) > .container.text-center.py-5 p,
body:not(.page-index) > .container.text-center.py-5 span {
    color: #d6e7ff !important;
}

body:not(.page-index) .bg-content p,
body:not(.page-index) .bg-content li,
body:not(.page-index) .card-body {
    font-size: 1.04rem;
    line-height: 1.75;
}

body:not(.page-index) .bg-content strong,
body:not(.page-index) .card strong,
body:not(.page-index) .service-item strong,
body:not(.page-index) .product-item strong,
body:not(.page-index) .footer bdi,
body:not(.page-index) > .container.text-center.py-5 bdi {
    color: #ffffff;
}

body:not(.page-index) .text-secondary,
body:not(.page-index) .fa-check {
    color: #74ddff !important;
}

body:not(.page-index) .btn-outline-secondary.btn-social {
    color: #9adfff;
    border-color: rgba(126, 243, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

body:not(.page-index) .btn-outline-secondary.btn-social:hover,
body:not(.page-index) .btn-outline-secondary.btn-social:focus {
    color: #ffffff;
    border-color: rgba(126, 243, 255, 0.42);
    background: rgba(126, 243, 255, 0.12);
}

.ai-neural-click__branch {
    width: var(--length, 120px); height: 0;
    transform: rotate(var(--angle, 0deg));
    transform-origin: 0 0;
}

.ai-neural-click__beam {
    position: absolute;
    left: 0; top: -1px;
    width: 100%; height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--lava-rgb-2),0.96), rgba(var(--lava-rgb-2),0.84) 16%, rgba(var(--lava-rgb),0.48) 68%, rgba(var(--lava-rgb),0));
    box-shadow: 0 0 8px rgba(var(--lava-rgb-2),0.52), 0 0 22px rgba(var(--lava-rgb),0.22);
    opacity: 0;
    transform-origin: 0 50%;
    transform: scaleX(0.08);
    animation: aiNeuralBeam 1040ms cubic-bezier(0.18,0.88,0.28,1) forwards;
    animation-delay: var(--delay, 0ms);
}

.ai-neural-click__beam::after {
    content: "";
    position: absolute;
    inset: -2px 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(var(--lava-rgb-2),0.56), rgba(var(--lava-rgb),0));
    filter: blur(5px);
    opacity: 0.9;
}

.ai-neural-click__pulse {
    position: absolute;
    left: -7px; top: -7px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,1) 0 20%, rgba(var(--lava-rgb-2),0.95) 38%, rgba(var(--lava-rgb),0.2) 72%, transparent 78%);
    box-shadow: 0 0 18px rgba(var(--lava-rgb-2),0.8), 0 0 44px rgba(var(--lava-rgb),0.28);
    opacity: 0;
    animation: aiNeuralPulse 900ms cubic-bezier(0.2,0.8,0.28,1) forwards;
    animation-delay: calc(var(--delay, 0ms) + 60ms);
}

.ai-neural-click__node {
    position: absolute;
    left: var(--length, 120px); top: 0;
    width: var(--node-size, 12px); height: var(--node-size, 12px);
    border-radius: 50%;
    transform: translate(-50%,-50%) scale(0.2);
    background: radial-gradient(circle, rgba(255,255,255,0.94) 0 24%, rgba(var(--lava-rgb-2),0.9) 44%, rgba(var(--lava-rgb),0.32) 78%, transparent 82%);
    box-shadow: 0 0 18px rgba(var(--lava-rgb-2),0.62), 0 0 36px rgba(var(--lava-rgb),0.2);
    opacity: 0;
    animation: aiNeuralNode 1220ms cubic-bezier(0.16,0.84,0.24,1) forwards;
    animation-delay: calc(var(--delay, 0ms) + 120ms);
}

.ai-neural-click__spark {
    width: 4px; height: 4px;
    margin-left: -2px; margin-top: -2px;
    border-radius: 50%;
    background: rgba(var(--lava-rgb-2),0.96);
    box-shadow: 0 0 12px rgba(var(--lava-rgb-2),0.75);
    opacity: 0;
    transform: rotate(var(--spark-angle, 0deg)) translateX(0) scale(0.72);
    animation: aiNeuralSpark 1120ms cubic-bezier(0.16,0.84,0.24,1) forwards;
    animation-delay: var(--spark-delay, 0ms);
}

/* ── Keyframes ───────────────────────────────────── */
@keyframes aiGridDrift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-48px, -48px, 0); }
}

@keyframes aiAuroraFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(38px, -26px, 0) scale(1.08); }
}

@keyframes aiBeamSweep {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(18deg) scaleY(1); opacity: 0.18; }
    50% { transform: translate3d(36px, -18px, 0) rotate(14deg) scaleY(1.08); opacity: 0.34; }
}

@keyframes aiOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes aiNodePulse {
    0%, 100% { transform: scale(1); opacity: 0.42; }
    50% { transform: scale(1.45); opacity: 1; }
}

@keyframes driftOrb {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(18px, -22px, 0); }
}

@keyframes aiNeuralCore {
    0% { opacity: 0; transform: scale(0.3); }
    24% { opacity: 1; transform: scale(1.16); }
    52% { opacity: 0.96; transform: scale(0.92); }
    100% { opacity: 0; transform: scale(1.86); }
}
@keyframes aiNeuralHalo {
    0% { opacity: 0; transform: scale(0.32); }
    22% { opacity: 0.68; }
    100% { opacity: 0; transform: scale(1.38); }
}
@keyframes aiNeuralRing {
    0% { opacity: 0; transform: scale(0.24); }
    30% { opacity: 0.5; }
    100% { opacity: 0; transform: scale(1.22); }
}
@keyframes aiNeuralEcho {
    0% { opacity: 0; transform: scale(0.52) rotate(0deg); }
    24% { opacity: 0.48; }
    100% { opacity: 0; transform: scale(1.32) rotate(94deg); }
}
@keyframes aiNeuralBeam {
    0% { opacity: 0; transform: scaleX(0.08); }
    28% { opacity: 1; }
    72% { opacity: 0.9; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1.04); }
}
@keyframes aiNeuralPulse {
    0% { opacity: 0; transform: translateX(0) scale(0.64); }
    14% { opacity: 1; }
    72% { opacity: 0.98; }
    100% { opacity: 0; transform: translateX(var(--length, 120px)) scale(1.14); }
}
@keyframes aiNeuralNode {
    0% { opacity: 0; transform: translate(-50%,-50%) scale(0.2); }
    32% { opacity: 1; transform: translate(-50%,-50%) scale(1.14); }
    58% { opacity: 0.98; transform: translate(-50%,-50%) scale(0.88); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.62); }
}
@keyframes aiNeuralSpark {
    0% { opacity: 0; transform: rotate(var(--spark-angle, 0deg)) translateX(0) scale(0.72); }
    18% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--spark-angle, 0deg)) translateX(var(--spark-travel, 120px)) scale(1.18); }
}

/* =====================================================
   Shared language bar override
   ===================================================== */

#lang-toggle-wrapper {
    position: static !important;
    z-index: 24 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 0;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#lang-toggle {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(109, 184, 255, 0.24) !important;
    background:
        radial-gradient(circle at 0% 50%, rgba(31, 153, 255, 0.22), transparent 22%),
        radial-gradient(circle at 100% 50%, rgba(78, 216, 255, 0.14), transparent 20%),
        linear-gradient(145deg, rgba(10, 29, 58, 0.95), rgba(8, 24, 49, 0.92)) !important;
    box-shadow:
        0 18px 40px rgba(2, 7, 22, 0.26),
        0 0 0 1px rgba(78, 216, 255, 0.06),
        inset 0 1px 0 rgba(181, 225, 255, 0.12),
        inset 0 -10px 22px rgba(5, 14, 30, 0.22) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    isolation: isolate;
}

.legacy-lang-strip {
    width: min(1180px, calc(100vw - 32px));
    margin: 14px auto 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 24;
}

#lang-toggle::-webkit-scrollbar {
    display: none;
}

#lang-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 30%, rgba(120, 214, 255, 0.08) 46%, rgba(236, 252, 255, 0.14) 50%, rgba(120, 214, 255, 0.08) 54%, transparent 70%);
    transform: translateX(-135%);
    animation: langBarSheen 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0;
    pointer-events: none;
}

#lang-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: min(54%, 420px);
    height: 16px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(31, 109, 255, 0.16), transparent 70%);
    transform: translateX(-50%);
    filter: blur(10px);
    pointer-events: none;
}

#lang-toggle-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(180deg, #69beff 0%, #3894ff 42%, #0d62ff 100%);
    box-shadow:
        0 16px 28px rgba(12, 96, 255, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -8px 18px rgba(5, 38, 145, 0.24);
    transform: translate3d(0, 0, 0);
    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        width 300ms cubic-bezier(0.22, 1, 0.36, 1),
        height 300ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 180ms ease;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

#lang-toggle-indicator::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 54%);
}

#lang-toggle-indicator::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(6px);
}

#lang-toggle .lang-btn,
.lang-btn {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 46px;
    height: 40px;
    padding: 0 14px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #89ddff !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    box-shadow: none !important;
    cursor: pointer !important;
    white-space: nowrap;
    transition:
        color 220ms ease,
        background 220ms ease,
        border-color 220ms ease,
        transform 220ms ease,
        text-shadow 220ms ease;
}

#lang-toggle .lang-btn:hover,
#lang-toggle .lang-btn:focus-visible,
.lang-btn:hover,
.lang-btn:focus-visible {
    color: #effbff !important;
    background: rgba(126, 220, 255, 0.08) !important;
    border-color: rgba(126, 220, 255, 0.18) !important;
    transform: translateY(-1px);
    outline: none;
}

#lang-toggle .lang-btn.active,
.lang-btn.active {
    color: #ffffff !important;
    background: transparent !important;
    border-color: transparent !important;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.28);
}

#lang-toggle .lang-btn.active:hover,
#lang-toggle .lang-btn.active:focus-visible,
.lang-btn.active:hover,
.lang-btn.active:focus-visible {
    color: #ffffff !important;
    background: transparent !important;
    border-color: transparent !important;
}

#lang-toggle,
#lang-toggle * {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -ms-user-select: none;
    touch-action: manipulation;
}

@keyframes langBarSheen {
    0%,
    22% {
        transform: translateX(-135%);
        opacity: 0;
    }
    32% {
        opacity: 1;
    }
    58% {
        opacity: 1;
    }
    76%,
    100% {
        transform: translateX(135%);
        opacity: 0;
    }
}

@media (min-width: 992px) {
    .navbar-nav.ml-3 {
        margin-left: 12px !important;
        flex: 0 0 auto;
    }

    #lang-toggle-wrapper {
        justify-content: center;
    }

    #lang-toggle {
        width: fit-content;
        max-width: min(calc(100vw - 64px), 1060px);
    }
}

@media (max-width: 991.98px) {
    .navbar-nav.ml-3 {
        width: 100%;
        margin-left: 0 !important;
    }

    #lang-toggle-wrapper {
        display: flex !important;
        width: 100%;
        padding: 0.7rem 0 0.85rem;
    }

    #lang-toggle {
        width: 100%;
        padding: 8px 12px !important;
        gap: 6px;
        border-radius: 24px !important;
    }

    #lang-toggle-indicator {
        border-radius: 20px;
    }

    #lang-toggle .lang-btn,
    .lang-btn {
        min-width: 42px;
        height: 36px;
        padding: 0 10px !important;
        font-size: 0.84rem !important;
    }
}

/* =====================================================
   Shared brand accent letters
   ===================================================== */

.robotic-letter,
.animated-letter,
.index-nav-glow,
.footer .robotic-letter,
.footer .animated-letter,
.footer .index-nav-glow,
.navbar .robotic-letter,
.navbar .animated-letter,
.navbar .index-nav-glow {
    color: #4bf0f4 !important;
    -webkit-text-fill-color: #4bf0f4 !important;
    text-shadow:
        0 0 4px rgba(75, 240, 244, 0.22),
        0 0 12px rgba(75, 240, 244, 0.14) !important;
}
