#footer {
    --footer-max: 1200px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
    padding: 0;
    gap: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
    color: var(--c-text, #e1e8eb);
    background: linear-gradient(to bottom, rgba(4, 12, 22, 0.86), rgba(4, 12, 22, 0.97));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-border-cyan, rgba(0, 173, 238, 0.22));
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), 0 -1px 24px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.06);
    z-index: 9999;
    overflow: visible;
}

#footer a { text-decoration: none; }

#footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--line-cyan, linear-gradient(90deg, transparent, rgba(0, 173, 238, 0.8), rgba(0, 255, 255, 0.9), rgba(0, 173, 238, 0.8), transparent));
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    width: min(var(--footer-max), calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 34px;
    box-sizing: border-box;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    text-align: left;
}

.footer-logo {
    display: block;
    width: 140px;
    height: auto;
    margin-bottom: 4px;
}

.footer-brand p {
    max-width: 300px;
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    text-shadow: none;
    color: var(--c-muted, #7a95a4);
}

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    border-radius: var(--r-sm, 8px);
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.10);
    border: 1px solid var(--c-border-cyan, rgba(0, 173, 238, 0.22));
    color: var(--c-cyan, #00adee);
    font-size: 15px;
    transition: var(--trans, all .25s ease);
}
.footer-social svg,
.footer-totop svg { width: 16px; height: 16px; display: block; }
.footer-totop svg { width: 15px; height: 15px; }
.footer-social a:hover {
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.20);
    border-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6);
    box-shadow: 0 0 14px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.3);
    transform: translateY(-2px);
    color: #fff;
}


.footer-social .footer-cookie-settings-form {
    display: contents; 
}
.footer-social .footer-cookie-settings-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    margin: 0;
    border-radius: var(--r-sm, 8px);
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.10);
    border: 1px solid var(--c-border-cyan, rgba(0, 173, 238, 0.22));
    color: var(--c-cyan, #00adee);
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: var(--trans, all .25s ease);
}
.footer-social .footer-cookie-settings-form button svg {
    width: 16px;
    height: 16px;
    display: block;
}
.footer-social .footer-cookie-settings-form button:hover {
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.20);
    border-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6);
    box-shadow: 0 0 14px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.footer-col h4,
.footer-col .footer-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: none !important;
    text-align: left !important;
    font-family: var(--f-display, 'Orbitron', sans-serif);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: #eaf6ff;
    text-shadow: none;
}
.footer-col h4::before,
.footer-col .footer-col-title::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 3px;
    background: var(--c-cyan, #00adee);
    box-shadow: 0 0 8px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6);
}

.footer-col > a {
    font-size: 14.5px;
    color: #94adba;
    text-decoration: none;
    text-align: left;
    transition: color .2s ease, transform .2s ease;
}
.footer-col > a:hover {
    color: var(--c-cyan, #00adee);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    width: 100%;
    margin: 0;
    padding: 14px max(24px, calc((100% - var(--footer-max)) / 2));
    box-sizing: border-box;
    background-color: rgba(2, 8, 14, 0.6);
    border-top: 1px solid rgba(var(--c-cyan-rgb, 0, 173, 238), 0.14);
}

.footer-left p {
    margin: 0;
    font-size: 13px;
    color: #94adba;
    text-align: left;
    text-shadow: none;
    white-space: nowrap;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: 13px;
    color: var(--c-muted, #7a95a4);
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
    text-align: left;
    text-shadow: none;
}
.footer-chip { font-size: 13px; }
.footer-chip-label { color: #94adba; }
.footer-rating { color: #94adba; cursor: default; }
.footer-rating-star { color: var(--c-warn, #fbbf24); font-size: 15px; line-height: 1; text-shadow: 0 0 8px rgba(251, 191, 36, .45); }
.footer-rating b { font-family: var(--f-display, 'Orbitron', sans-serif); font-size: 0.72rem; letter-spacing: 0.5px; font-weight: 600; color: var(--c-warn, #fbbf24); }

.footer-chip-value,
#version-number,
#developer-name {
    font-family: var(--f-display, 'Orbitron', sans-serif);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--c-cyan, #00adee);
}

.visitor-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.08);
    border: 1px solid rgba(var(--c-cyan-rgb, 0, 173, 238), 0.25);
    color: var(--c-cyan, #00adee);
    font-family: var(--f-display, 'Orbitron', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: box-shadow .3s ease;
}
.visitor-pill:hover { box-shadow: 0 0 12px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.3); }
.visitor-pill .visitor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success, #3ddc84);
    box-shadow: 0 0 6px rgba(61, 220, 132, 0.7);
    animation: vpulse 2s ease infinite;
    flex-shrink: 0;
}
@keyframes vpulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .4; transform: scale(1.3); }
}
#visitorCount { display: inline-block; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.footer-devices {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: default;
    color: var(--c-muted, #6c8a97);
    transition: color .25s ease, filter .25s ease;
}
.footer-devices svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-devices svg:nth-child(2) { width: 14px; height: 14px; }
.footer-devices svg:nth-child(3) { width: 11px; height: 11px; }
.footer-devices:hover,
.footer-devices:focus-visible {
    color: var(--c-cyan, #00c8ee);
    filter: drop-shadow(0 0 5px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.6));
    outline: none;
}

.footer-badge-wrap {
    display: flex;
    align-items: center;
    margin: 0;
}
.footer-badge {
    display: block;
    height: 22px;
    width: auto;
    border-radius: 4px;
    filter: brightness(0.85) saturate(0.75);
    transition: transform .28s ease, filter .28s ease;
    transform-origin: right center;
}
.footer-badge:hover,
.footer-badge:focus-visible {
    transform: scale(2.2);
    filter: brightness(1) saturate(1) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.55));
    position: relative;
    z-index: 20001;
    outline: none;
}

.footer-totop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.10);
    border: 1px solid var(--c-border-cyan, rgba(0, 173, 238, 0.22));
    color: var(--c-cyan, #00adee);
    font-size: 13px;
    cursor: pointer;
    transition: var(--trans, all .25s ease);
}
.footer-totop:hover {
    background: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.22);
    box-shadow: 0 0 14px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.35);
    transform: translateY(-2px);
}

.footer-tooltip {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 7px 14px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .03em;
    white-space: nowrap;
    background: rgba(4, 12, 22, 0.97);
    color: #cfe8ff;
    border: 1px solid rgba(var(--c-cyan-rgb, 0, 173, 238), 0.35);
    border-radius: var(--r-sm, 8px);
    box-shadow: 0 0 14px rgba(var(--c-cyan-rgb, 0, 173, 238), 0.2), 0 4px 16px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 20000;
    transition: opacity .22s ease, transform .22s ease;
}
.footer-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(var(--c-cyan-rgb, 0, 173, 238), 0.35);
}
.footer-tooltip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 1024px) {
    .footer-top { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 520px; }
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-right { justify-content: flex-start; }
    .footer-left p { white-space: normal; }
}

@media (max-width: 560px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        width: calc(100% - 32px);
        padding: 34px 0 24px;
        gap: 28px 20px;
    }
    .footer-top .footer-col:last-child { grid-column: 1 / -1; }
    .footer-bottom { padding: 14px 16px; }
    .footer-chip { white-space: normal; }
    .footer-badge:hover,
    .footer-badge:focus-visible { transform: scale(1.8); }
}

@media (prefers-reduced-motion: reduce) {
    .visitor-dot { animation: none; }
    .footer-badge, .footer-tooltip, .footer-totop, .footer-social a { transition: none; }
}