/* GSM Cyber Unlocker — hacker ciano calmo + chuva azul suave */
:root {
    --fu-bg: #010a12;
    --fu-bg-elevated: #031018;
    --fu-bg-card: #051520;
    --fu-panel: rgba(5, 18, 28, 0.97);
    --fu-steel: #8cb4c8;
    --fu-steel-dim: #5a8fa8;
    --fu-blue: #38bdf8;
    --fu-blue-bright: #7dd8f5;
    --fu-blue-deep: #0e7490;
    --fu-cyan: #5ec4e8;
    --fu-cyan-bright: #a5e4f7;
    --fu-cyan-dim: rgba(94, 196, 232, 0.14);
    --fu-teal: #22d3ee;
    --fu-green: #5ec4e8;
    --fu-green-dim: #0891b2;
    --fu-green-soft: rgba(94, 196, 232, 0.08);
    --fu-green-glow: rgba(125, 216, 245, 0.14);
    --fu-accent: #5ec4e8;
    --fu-accent-soft: rgba(94, 196, 232, 0.1);
    --fu-gold: #9eeaf9;
    --fu-gold-soft: rgba(158, 234, 249, 0.1);
    --fu-red: #e08a8a;
    --fu-red-soft: rgba(224, 138, 138, 0.1);
    --fu-text: #c8e8f4;
    --fu-muted: #6b9eb5;
    --fu-line: rgba(94, 196, 232, 0.12);
    --fu-line-accent: rgba(125, 216, 245, 0.24);
    --fu-radius: 10px;
    --fu-radius-lg: 14px;
    --fu-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --fu-mono: "Cascadia Code", "Consolas", "Courier New", monospace;
    --fu-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    --fu-hacker-grid: rgba(94, 196, 232, 0.035);
    --fu-hacker-scan: rgba(165, 230, 255, 0.014);
    --fu-rain: rgba(125, 216, 245, 0.06);
    --fu-lift-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fu-float-ease: cubic-bezier(0.45, 0, 0.55, 1);
    --fu-transition: 0.22s var(--fu-lift-ease);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    background: var(--fu-bg);
    color: var(--fu-text);
}

@keyframes fu-fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fu-float {
    0%,
    100% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(-4px);
    }
}

@keyframes fu-cyan-shimmer {
    0%,
    100% {
        opacity: 0.38;
    }
    50% {
        opacity: 0.62;
    }
}

@keyframes fu-grid-pulse {
    0%,
    100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.32;
    }
}

@keyframes fu-rain-drift {
    0% {
        background-position: 0 0, 0 0, center, center;
    }
    100% {
        background-position: 0 180px, 40px 120px, center, center;
    }
}

@keyframes fu-rain-glow {
    0%,
    100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.55;
    }
}

.fu-reveal {
    opacity: 0;
    animation: fu-fade-up 0.72s var(--fu-lift-ease) forwards;
}

.fu-reveal-d1 {
    animation-delay: 0.06s;
}

.fu-reveal-d2 {
    animation-delay: 0.12s;
}

.fu-reveal-d3 {
    animation-delay: 0.2s;
}

.fu-logo,
.site-logo-hero,
.login-logo,
.brand-logo,
.fu-boot-logo,
.fu-brand-img {
    object-fit: contain;
    object-position: center;
    display: block;
}

.fu-brand-frame {
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.fu-brand-frame::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--fu-line-accent);
    box-shadow: 0 0 20px var(--fu-green-glow);
    pointer-events: none;
    animation: fu-cyan-shimmer 6s ease-in-out infinite;
}

.box .fu-brand-frame,
.brand .fu-brand-frame {
    animation: fu-float 6s var(--fu-float-ease, ease-in-out) infinite;
}

.admin-app .box .fu-brand-frame,
.admin-app .topo-brand .fu-brand-frame {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .box .fu-brand-frame,
    .brand .fu-brand-frame,
    .fu-brand-frame::after {
        animation: none !important;
    }
}

.fu-logo,
.site-logo-hero {
    width: min(120px, 28vw);
    height: auto;
    margin: 0 auto 16px;
}

.fu-logo-sm {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.fu-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

#fu-boot {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(94, 196, 232, 0.1), transparent 52%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(34, 211, 238, 0.05), transparent 50%),
        var(--fu-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    transition:
        opacity 0.52s var(--fu-lift-ease),
        transform 0.52s var(--fu-lift-ease),
        visibility 0s linear 0.52s;
}

#fu-boot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--fu-hacker-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--fu-hacker-grid) 1px, transparent 1px),
        linear-gradient(180deg, transparent 0%, var(--fu-rain) 48%, transparent 100%);
    background-size: 48px 48px, 48px 48px, 100% 220px;
    opacity: 0.4;
    pointer-events: none;
    animation: fu-grid-pulse 10s ease-in-out infinite, fu-rain-drift 14s linear infinite;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 72%);
}

#fu-boot:not(.hide) {
    visibility: visible;
}

#fu-boot.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.01);
}

.fu-boot-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: min(400px, 92vw);
    padding: clamp(28px, 6vw, 40px) clamp(22px, 5vw, 36px) clamp(24px, 5vw, 34px);
    border-radius: var(--fu-radius-lg);
    border: 1px solid var(--fu-line-accent);
    background: linear-gradient(155deg, rgba(5, 18, 28, 0.92) 0%, rgba(1, 10, 18, 0.98) 100%);
    box-shadow: var(--fu-shadow), 0 0 40px rgba(94, 196, 232, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fu-boot-title {
    font-family: var(--fu-mono);
    font-size: clamp(0.88rem, 3vw, 1.02rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--fu-cyan-bright);
    text-shadow: 0 0 18px rgba(125, 216, 245, 0.25);
}

.fu-boot-lines {
    min-height: 52px;
    font-family: var(--fu-mono);
    font-size: 0.72rem;
    line-height: 1.65;
    color: var(--fu-muted);
    margin-bottom: 18px;
    text-align: left;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 14px;
    border-radius: var(--fu-radius);
    background: rgba(1, 10, 18, 0.65);
    border: 1px solid var(--fu-line);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35) inset;
}

.fu-boot-lines span {
    display: block;
    position: relative;
    padding-left: 0.85em;
}

.fu-boot-lines span::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--fu-cyan);
    opacity: 0.85;
    font-weight: 600;
}

.fu-boot-bar {
    height: 4px;
    width: min(300px, 86vw);
    margin: 0 auto;
    background: rgba(1, 10, 18, 0.9);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--fu-line);
}

.fu-boot-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--fu-blue-deep), var(--fu-cyan) 55%, var(--fu-cyan-bright));
    box-shadow: 0 0 10px var(--fu-green-glow);
    transition: width 0.15s linear;
}

@keyframes fu-boot-ring {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.55;
        transform: scale(1.02);
    }
}

#fu-boot .fu-boot-logo-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

#fu-boot .fu-boot-logo-wrap::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--fu-line-accent);
    pointer-events: none;
    animation: fu-boot-ring 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    #fu-boot .fu-boot-logo-wrap::after {
        animation: none;
        opacity: 0.45;
    }
}

#fu-termos-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(1, 10, 18, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#fu-termos-overlay.show {
    display: flex;
}

.fu-termos-box {
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: var(--fu-bg-card);
    border: 1px solid var(--fu-line);
    border-radius: var(--fu-radius-lg);
    box-shadow: var(--fu-shadow);
}

.fu-termos-head {
    padding: 20px 22px 12px;
    border-bottom: 1px solid var(--fu-line);
}

.fu-termos-head h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--fu-text);
    font-family: var(--fu-mono);
    letter-spacing: 0.04em;
}

.fu-termos-head p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--fu-muted);
    line-height: 1.5;
}

.fu-termos-body {
    padding: 16px 22px;
    font-size: 0.88rem;
    color: var(--fu-muted);
    line-height: 1.55;
}

.fu-termos-body ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

.fu-termos-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 14px 22px 20px;
    border-top: 1px solid var(--fu-line);
}

.fu-btn {
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--fu-line);
    font-family: var(--fu-mono);
    letter-spacing: 0.03em;
    transition: var(--fu-transition);
}

.fu-btn-ghost {
    background: transparent;
    color: var(--fu-muted);
}

.fu-btn-ghost:hover {
    color: var(--fu-text);
    border-color: var(--fu-line-accent);
}

.fu-btn-primary {
    background: linear-gradient(135deg, var(--fu-blue-deep), var(--fu-cyan));
    border-color: var(--fu-cyan);
    color: #e8f8fc;
    box-shadow: 0 2px 14px var(--fu-green-glow);
}

.fu-btn-primary:hover {
    filter: brightness(1.06);
}

/* Chuva ciano calma — grade + scanline */
body.fu-hacker-skin::before,
body.fu-site-home::before,
body.fu-page-login::before,
body.admin-app::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--fu-hacker-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--fu-hacker-grid) 1px, transparent 1px),
        linear-gradient(
            105deg,
            transparent 0%,
            rgba(125, 216, 245, 0.025) 42%,
            transparent 58%
        ),
        linear-gradient(180deg, transparent 0%, var(--fu-rain) 50%, transparent 100%);
    background-size: 52px 52px, 52px 52px, 100% 100%, 100% 280px;
    opacity: 0.5;
    animation: fu-rain-drift 18s linear infinite;
}

body.fu-hacker-skin::after,
body.fu-site-home::after,
body.fu-page-login::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        repeating-linear-gradient(
            180deg,
            var(--fu-hacker-scan) 0 1px,
            transparent 1px 4px
        ),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(94, 196, 232, 0.06), transparent 55%);
    opacity: 0.4;
    animation: fu-rain-glow 12s ease-in-out infinite;
}

#fx,
canvas[data-fu-rain] {
    opacity: 0.85;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 6px rgba(94, 196, 232, 0.12));
}

@media (prefers-reduced-motion: reduce) {
    .fu-reveal {
        opacity: 1;
        animation: none;
    }

    #fu-boot {
        display: none !important;
    }

    body.fu-site-home::before,
    body.fu-page-login::before,
    body.fu-hacker-skin::before {
        animation: none;
    }
}
