@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* Single page scrollbar — overflow-x on body forces overflow-y:auto (double bar) */
html {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── FUI Page Shell — override v2 red theme ── */
body.v2-theme.fui-page {
    --v2-accent: #06b6d4;
    --v2-accent-rgb: 6, 182, 212;
    --v2-accent-dark: #0891b2;
    --v2-accent-darker: #0e7490;
    background-color: #020617 !important;
    background-image: none !important;
    color: #22d3ee !important;
}

body.v2-theme.fui-page::before {
    display: none !important;
}

body.fui-page {
    font-family: 'Chakra Petch', ui-sans-serif, system-ui, sans-serif;
    background-color: #020617 !important;
    color: #22d3ee;
    max-width: 100%;
}

body.fui-page main {
    overflow-x: clip;
    overflow-y: visible;
}

body.v2-theme.fui-page .glass-card {
    background: rgba(2, 6, 23, 0.88) !important;
    border-color: rgba(34, 211, 238, 0.15) !important;
}

body.v2-theme.fui-page .text-red-500,
body.v2-theme.fui-page .text-red-600,
body.v2-theme.fui-page .text-red-700,
body.v2-theme.fui-page .text-red-800,
body.v2-theme.fui-page .text-red-900 {
    color: #22d3ee !important;
}

body.v2-theme.fui-page .bg-red-600,
body.v2-theme.fui-page .bg-red-700,
body.v2-theme.fui-page .hover\:bg-red-600:hover {
    background-color: #06b6d4 !important;
}

body.v2-theme.fui-page .border-red-500,
body.v2-theme.fui-page .border-red-600,
body.v2-theme.fui-page .border-red-700,
body.v2-theme.fui-page .hover\:border-red-600:hover {
    border-color: rgba(34, 211, 238, 0.55) !important;
}

body.v2-theme.fui-page .bg-red-600\/10,
body.v2-theme.fui-page .bg-red-600\/15,
body.v2-theme.fui-page .bg-red-500\/10,
body.v2-theme.fui-page .bg-red-500\/15 {
    background-color: rgba(6, 182, 212, 0.12) !important;
}

body.v2-theme.fui-page .logo-part-z,
body.v2-theme.fui-page .price-value,
body.v2-theme.fui-page .modal-category {
    color: #22d3ee !important;
    text-shadow: 0 0 24px rgba(0, 240, 255, 0.32) !important;
}

body.v2-theme.fui-page .btn-add-cart,
body.v2-theme.fui-page a.btn-add-cart {
    color: #020617 !important;
    border-color: rgba(34, 211, 238, 0.55) !important;
    background: #06b6d4 !important;
}

body.v2-theme.fui-page .product-card {
    border-color: rgba(34, 211, 238, 0.2) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.03) !important;
}

body.v2-theme.fui-page .product-card:hover {
    border-color: rgba(34, 211, 238, 0.55) !important;
}

body.fui-page .snow-overlay {
    display: none;
}

body.fui-page main {
    background: #020617 !important;
    color: #22d3ee;
}

body.fui-page .font-orbitron,
body.fui-page .font-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── Clip paths ── */
.clip-bevel {
    clip-path: polygon(10px 0, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.clip-bevel-sm {
    clip-path: polygon(5px 0, 5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

/* ── Background layers ── */
.fui-grid {
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    animation: fui-grid-shift 30s linear infinite;
}

@keyframes fui-grid-shift {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

.fui-scanlines {
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 20, 0.15) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

.fui-hud-reticle {
    opacity: 0;
    transition: opacity 1s ease;
}

body.fui-boot-complete .fui-hud-reticle {
    opacity: 1;
}

/* ── Glows & text ── */
.fui-glow-cyan {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.fui-glow-cyan-intense,
.fui-card:hover.fui-glow-intense {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), inset 0 0 30px rgba(0, 240, 255, 0.2);
}

.pulse-glow,
.logo-part-z {
    text-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
    animation: fui-pulse-cyan 2s infinite;
}

@keyframes fui-pulse-cyan {
    0%, 100% {
        text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
        color: #00f0ff;
    }
    50% {
        text-shadow: 0 0 5px #00f0ff, 0 0 10px #00f0ff;
        color: #a5f3fc;
    }
}

/* ── FUI Card ── */
.fui-card {
    background: rgba(8, 51, 68, 0.2);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}

.fui-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.05);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.fui-card:hover::before {
    opacity: 1;
}

.fui-corner-top-left,
.fui-corner-top-right,
.fui-corner-bottom-left,
.fui-corner-bottom-right {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.fui-corner-top-left { top: -2px; left: -2px; border-top: 2px solid #00f0ff; border-left: 2px solid #00f0ff; }
.fui-corner-top-right { top: -2px; right: -2px; border-top: 2px solid #00f0ff; border-right: 2px solid #00f0ff; }
.fui-corner-bottom-left { bottom: -2px; left: -2px; border-bottom: 2px solid #00f0ff; border-left: 2px solid #00f0ff; }
.fui-corner-bottom-right { bottom: -2px; right: -2px; border-bottom: 2px solid #00f0ff; border-right: 2px solid #00f0ff; }

.fui-card:hover .fui-corner-top-left { transform: translate(-4px, -4px); border-color: #67e8f9; }
.fui-card:hover .fui-corner-top-right { transform: translate(4px, -4px); border-color: #67e8f9; }
.fui-card:hover .fui-corner-bottom-left { transform: translate(-4px, 4px); border-color: #67e8f9; }
.fui-card:hover .fui-corner-bottom-right { transform: translate(4px, 4px); border-color: #67e8f9; }

/* ── Buttons ── */
.fui-btn {
    padding: 0.75rem 2rem;
    font-weight: 900;
    uppercase: uppercase;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
    border: none;
    font-family: 'Chakra Petch', sans-serif;
}

.fui-btn-primary {
    background: #06b6d4;
    color: #020617;
}

.fui-btn-primary:hover {
    background: #fff;
    color: #020617;
    box-shadow: 0 0 20px #00f0ff;
}

.fui-btn-primary .fui-btn-sweep {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 0;
}

.fui-btn-primary:hover .fui-btn-sweep {
    transform: translateY(0);
}

.fui-btn-outline {
    border: 1px solid #06b6d4;
    color: #06b6d4;
    background: transparent;
}

.fui-btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: inset 0 0 15px rgba(34, 211, 238, 0.2);
}

.fui-btn-outline .fui-btn-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: #06b6d4;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
}

.fui-btn-outline:hover .fui-btn-bar {
    transform: translateX(0);
}

.fui-btn > span,
.fui-btn > .fui-btn-inner {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

a.fui-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.fui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Product / modal / CTA buttons on FUI page */
body.fui-page .product-info .btn-add-cart.fui-btn {
    margin-top: auto;
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    padding: 0.85rem 1.25rem;
}

body.fui-page .product-card.fui-scroll-pending .btn-add-cart.fui-btn {
    opacity: 0;
    transform: translateY(10px);
}

body.fui-page .product-card.fui-scroll-visible .btn-add-cart.fui-btn {
    animation: fui-btn-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.22s;
}

body.fui-page .btn-buy-modal.fui-btn {
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    padding: 0.9rem 1.5rem;
}

body.fui-page .fui-economy-cta.fui-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    padding: 0.85rem 1.75rem;
}

body.fui-page .fui-scroll-btn.fui-scroll-pending {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
}

body.fui-page .fui-scroll-btn.fui-scroll-visible {
    animation: fui-btn-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fui-btn-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.fui-page .fui-modal-login-title {
    color: #22d3ee;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
}

body.fui-page .fui-modal-login-text {
    color: rgba(148, 163, 184, 0.9);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    margin-bottom: 1.75rem;
}

body.fui-page .fui-modal-login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.fui-page .fui-modal-login-actions .fui-btn {
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    padding: 0.9rem 1.25rem;
}

body.fui-page .inline-edit-actions .fui-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    padding: 0.65rem 1.25rem;
    min-width: 7rem;
}

body.fui-page #refresh-status {
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 0.2rem 0.45rem;
    clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px);
    background: rgba(6, 182, 212, 0.06);
}

body.fui-page #refresh-status:hover {
    color: #22d3ee !important;
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* ── Feature chips ── */
.fui-feature-card {
    border: 1px solid rgba(8, 51, 68, 0.5);
    padding: 1rem;
    background: rgba(8, 51, 68, 0.1);
    transition: background 0.3s, border-color 0.3s;
    height: 100%;
    cursor: crosshair;
    position: relative;
    overflow: hidden;
    clip-path: polygon(5px 0, 5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.fui-feature-card:hover {
    background: rgba(34, 211, 238, 0.1);
}

.fui-feature-card .fui-hover-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #22d3ee;
    opacity: 0;
    transition: opacity 0.3s;
}

.fui-feature-card:hover .fui-hover-bar {
    opacity: 1;
}

.fui-feature-card .fui-hover-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease-in-out;
}

.fui-feature-card:hover .fui-hover-scan {
    transform: translateX(100%);
}

/* ── Segmented progress ── */
.fui-segments-track {
    display: flex;
    width: 100%;
    height: 1.5rem;
    gap: 3px;
    padding: 3px;
    background: #020617;
    border: 1px solid rgba(8, 51, 68, 1);
    overflow: hidden;
    position: relative;
}

.fui-segments-scan {
    position: absolute;
    inset: 0;
    width: 33%;
    background: rgba(34, 211, 238, 0.1);
    transform: skewX(-20deg);
    animation: fui-segment-scan 2.5s linear infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 20;
}

@keyframes fui-segment-scan {
    0% { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(300%) skewX(-20deg); }
}

.fui-segment {
    flex: 1;
    transform: skewX(-15deg);
    z-index: 10;
    transition: background 0.3s, opacity 0.3s, transform 0.3s;
    background: #1e293b;
    opacity: 0.1;
}

.fui-segment.fui-segment-filled {
    background: #22d3ee;
    opacity: 1;
    box-shadow: 0 0 8px #00f0ff;
}

/* ── Layout grid (Hero 7 + HUD 5) ── */
#layoutContainer.fui-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    #layoutContainer.fui-layout-grid {
        grid-template-columns: repeat(12, 1fr);
        padding: 4rem 2.5rem 2.5rem;
        gap: 3rem;
    }

    #layoutContainer.fui-layout-grid > [data-layout-section="hero"] {
        grid-column: span 7;
    }

    #layoutContainer.fui-layout-grid > #server-status-section {
        grid-column: span 5;
    }

    #layoutContainer.fui-layout-grid > [data-layout-section]:not([data-layout-section="hero"]),
    #layoutContainer.fui-layout-grid > section:not([data-layout-section="hero"]) {
        grid-column: 1 / -1;
    }
}

/* ── Hero animations ── */
.fui-animate-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

.fui-animate-in {
    animation: fui-spring-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fui-animate-in-left {
    animation: fui-spring-in-left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fui-animate-in-right {
    animation: fui-spring-in-right 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fui-spring-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fui-spring-in-left {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fui-spring-in-right {
    from { opacity: 0; transform: translateX(50px) scale(0.95); filter: blur(20px); }
    to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.fui-line-expand {
    transform: scaleX(0);
    transform-origin: left;
    animation: fui-line-expand 1.5s cubic-bezier(0, 0.55, 0.45, 1) forwards;
}

@keyframes fui-line-expand {
    to { transform: scaleX(1); }
}

.fui-badge-booting {
    animation: fui-badge-blink 0.2s infinite;
}

@keyframes fui-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.fui-stagger-item {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

body.fui-boot-complete .fui-stagger-item.fui-stagger-visible {
    animation: fui-spring-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fui-hero-actions {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.fui-boot-complete .fui-hero-actions.fui-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-lead-block {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease, max-height 0.8s ease;
}

body.fui-boot-complete .fui-lead-block.fui-visible {
    opacity: 1;
    max-height: 200px;
}

.fui-hud-panel {
    opacity: 0;
    transform: scale(0.95) translateX(50px);
    filter: blur(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

body.fui-boot-complete .fui-hud-panel.fui-visible {
    opacity: 1;
    transform: scale(1) translateX(0);
    filter: blur(0);
}

.fui-metric-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.fui-boot-complete .fui-metric-box.fui-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-footer-bar {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 2.8s, transform 0.6s ease 2.8s;
}

body.fui-boot-complete .fui-footer-bar.fui-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-radar-spin {
    animation: fui-radar-spin 10s linear infinite;
}

@keyframes fui-radar-spin {
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: fui-radar-spin 8s linear infinite;
}

/* ── FUI Navigation / Header ── */
body.fui-page #site-v2-header.fui-nav-header {
    background: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(8, 51, 68, 1) !important;
    height: 4rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

body.fui-page #site-v2-header.fui-nav-header.fui-nav-visible {
    transform: translateY(0);
    opacity: 1;
}

body.fui-page #site-v2-header.fui-nav-header .max-w-\[1300px\] {
    max-width: none;
    height: 4rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    body.fui-page #site-v2-header.fui-nav-header .max-w-\[1300px\] {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

body.fui-page #headerTitleHighlight {
    color: #22d3ee !important;
    font-style: normal;
}

body.fui-page #site-v2-header.fui-nav-header h1 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 900;
    letter-spacing: -0.05em;
    font-size: 1.35rem;
}

@media (min-width: 640px) {
    body.fui-page #site-v2-header.fui-nav-header h1 {
        font-size: 1.5rem;
    }
}

body.fui-page .fui-nav-subtitle {
    color: rgba(8, 145, 178, 0.9) !important;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.35em !important;
}

body.fui-page .fui-nav-brand {
    border-radius: 0 !important;
    background: rgba(6, 182, 212, 0.08) !important;
    border-color: rgba(34, 211, 238, 0.35) !important;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.12), inset 0 0 12px rgba(0, 240, 255, 0.05) !important;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    animation: fui-nav-brand-pulse 3s ease-in-out infinite;
}

@keyframes fui-nav-brand-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(0, 240, 255, 0.08), inset 0 0 8px rgba(0, 240, 255, 0.04); }
    50% { box-shadow: 0 0 22px rgba(0, 240, 255, 0.22), inset 0 0 14px rgba(0, 240, 255, 0.08); }
}

/* Desktop nav links */
body.fui-page .fui-nav-desktop .fui-nav-link {
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px !important;
    letter-spacing: 0.18em;
    color: rgba(148, 163, 184, 0.95) !important;
    opacity: 0;
    transform: translateY(-8px);
    transition: color 0.25s ease, transform 0.35s ease, opacity 0.35s ease, text-shadow 0.25s ease;
    transition-delay: calc(var(--fui-nav-i, 0) * 0.07s + 0.15s);
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
}

body.fui-page.fui-boot-complete .fui-nav-desktop .fui-nav-link.fui-nav-link-visible {
    opacity: 1;
    transform: translateY(0);
}

body.fui-page .fui-nav-desktop .fui-nav-link:hover,
body.fui-page .fui-nav-desktop .fui-nav-link.fui-nav-active {
    color: #fff !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

body.fui-page .fui-nav-desktop .fui-nav-link.fui-nav-active {
    color: #22d3ee !important;
    border-bottom-color: #22d3ee;
}

body.fui-page .fui-nav-desktop .fui-nav-discord {
    color: #22d3ee !important;
}

body.fui-page .fui-nav-dropdown-toggle.fui-nav-link-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown panel */
body.fui-page .fui-nav-dropdown-panel {
    border-radius: 0 !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
    background: rgba(2, 6, 23, 0.96) !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.08) !important;
}

body.fui-page .fui-nav-dropdown-panel .fui-nav-link {
    font-family: 'JetBrains Mono', monospace;
    border-left: 2px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.fui-page .fui-nav-dropdown-panel .fui-nav-link:hover,
body.fui-page .fui-nav-dropdown-panel .fui-nav-link.fui-nav-active {
    background: rgba(6, 182, 212, 0.08) !important;
    border-left-color: #22d3ee;
    color: #22d3ee !important;
}

/* Auth / action buttons */
body.fui-page .fui-nav-btn {
    border-radius: 0 !important;
    font-family: 'JetBrains Mono', monospace;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.3s ease;
}

body.fui-page .fui-nav-btn-primary {
    background: rgba(6, 182, 212, 0.12) !important;
    border: 1px solid rgba(34, 211, 238, 0.55) !important;
    color: #fff !important;
}

body.fui-page .fui-nav-btn-primary:hover {
    background: #22d3ee !important;
    border-color: #22d3ee !important;
    color: #020617 !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

body.fui-page .fui-nav-btn-ghost {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(34, 211, 238, 0.2) !important;
    color: rgba(203, 213, 225, 0.95) !important;
}

body.fui-page .fui-nav-btn-ghost:hover {
    border-color: rgba(34, 211, 238, 0.5) !important;
    color: #22d3ee !important;
}

body.fui-page .fui-nav-btn-icon {
    border-radius: 0 !important;
    background: rgba(6, 182, 212, 0.06) !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

body.fui-page .fui-nav-btn-icon:hover {
    border-color: #22d3ee !important;
    color: #22d3ee !important;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.2);
}

body.fui-page .fui-nav-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid rgba(34, 211, 238, 0.25);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    color: #22d3ee !important;
    background: rgba(6, 182, 212, 0.06);
    line-height: 1;
}

@media (min-width: 640px) {
    body.fui-page .fui-nav-mobile-toggle {
        width: 3rem;
        height: 3rem;
    }
}

body.fui-page .fui-nav-actions {
    align-items: center;
}

body.fui-page .fui-nav-actions .fui-nav-btn,
body.fui-page .fui-nav-actions #hardcore-toggle {
    height: 2.5rem;
    min-height: 2.5rem;
}

@media (min-width: 640px) {
    body.fui-page .fui-nav-actions .fui-nav-btn,
    body.fui-page .fui-nav-actions #hardcore-toggle {
        height: 3rem;
        min-height: 3rem;
    }
}

body.fui-page .fui-nav-desktop {
    align-items: center;
}

body.fui-page .fui-nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

body.fui-page .fui-nav-dropdown-toggle.fui-nav-active {
    border-bottom-color: #22d3ee;
}

body.fui-page .fui-nav-mobile-toggle:hover {
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

/* Mobile menu */
body.fui-page #mobile-menu.fui-mobile-nav {
    top: 4rem !important;
    height: calc(100vh - 4rem) !important;
    background: rgba(2, 6, 23, 0.98) !important;
    border-top: 1px solid rgba(34, 211, 238, 0.15);
    gap: 1rem;
}

body.fui-page #mobile-menu.fui-mobile-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 20, 0.12) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.35;
}

body.fui-page #mobile-menu.fui-mobile-nav a,
body.fui-page #mobile-menu.fui-mobile-nav summary {
    border-radius: 0 !important;
    font-family: 'JetBrains Mono', monospace;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    border-color: rgba(34, 211, 238, 0.2) !important;
    background: rgba(8, 51, 68, 0.2) !important;
    color: rgba(203, 213, 225, 0.95) !important;
    letter-spacing: 0.2em;
}

body.fui-page #mobile-menu.fui-mobile-nav a:hover,
body.fui-page #mobile-menu.fui-mobile-nav summary:hover {
    border-color: rgba(34, 211, 238, 0.45) !important;
    background: rgba(6, 182, 212, 0.1) !important;
    color: #22d3ee !important;
}

body.fui-page #mobile-menu.fui-mobile-nav a.bg-red-700,
body.fui-page #mobile-menu.fui-mobile-nav a[class*="bg-red-"] {
    background: rgba(6, 182, 212, 0.15) !important;
    border: 1px solid rgba(34, 211, 238, 0.5) !important;
    color: #fff !important;
}

body.fui-page #mobile-menu.fui-mobile-nav details {
    border-color: rgba(34, 211, 238, 0.2) !important;
    border-radius: 0 !important;
    background: rgba(8, 51, 68, 0.15) !important;
}

/* Legacy header overrides (non-fui-nav pages using fui-page only) */
body.fui-page #site-v2-header:not(.fui-nav-header) {
    background: rgba(2, 6, 23, 0.8) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(8, 51, 68, 1) !important;
    height: 4rem;
}

body.fui-page #site-v2-header a.text-red-500 {
    color: #22d3ee !important;
}

body.fui-page #site-v2-header a.text-red-500:hover {
    color: #fff !important;
    text-shadow: 0 0 8px #00f0ff;
}

/* ── FUI Footer ── */
.fui-site-footer {
    height: 3rem;
    border-top: 1px solid rgba(8, 51, 68, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: #020617;
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 10;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .fui-site-footer {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 2.5rem;
    }
}

.fui-footer-dot {
    width: 12px;
    height: 12px;
    clip-path: polygon(5px 0, 5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    animation: fui-dot-pulse 1s infinite;
}

.fui-footer-dot:nth-child(1) { background: rgba(6, 182, 212, 0.6); animation-delay: 0s; }
.fui-footer-dot:nth-child(2) { background: rgba(6, 182, 212, 0.4); animation-delay: 0.2s; }
.fui-footer-dot:nth-child(3) { background: rgba(6, 182, 212, 0.2); animation-delay: 0.4s; }

@keyframes fui-dot-pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 1; }
}

/* ── Copy button states ── */
#copy-ip.fui-copy-icon {
    padding: 0.75rem 1.25rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid #06b6d4;
    color: #22d3ee;
    clip-path: polygon(5px 0, 5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: auto;
}

#copy-ip.fui-copy-icon:hover:not(:disabled) {
    background: #22d3ee;
    color: #020617;
}

#copy-ip.fui-copy-icon.bg-green-600 {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

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

body.fui-page #site-v2-header.fui-nav-header .w-10,
body.fui-page #site-v2-header.fui-nav-header .w-12 {
    animation: none;
}

#heroBg.fui-hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.12;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   FUI — Seções Ambience / Economy / Produtos
   ═══════════════════════════════════════════ */

.fui-section {
    position: relative;
    z-index: 10;
}

.fui-section-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.fui-section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.fui-boot-complete .fui-section-reveal.fui-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-triggered stagger */
.fui-scroll-stagger.fui-scroll-pending,
.fui-economy-card.fui-scroll-pending,
.fui-panel-card.fui-scroll-pending {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
}

.fui-scroll-stagger.fui-scroll-visible,
.fui-economy-card.fui-scroll-visible,
.fui-panel-card.fui-scroll-visible {
    animation: fui-spring-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--fui-stagger-i, 0) * 0.09s);
}

[data-scramble].fui-scroll-pending {
    opacity: 0.85;
}

.fui-section-reveal.fui-scroll-pending {
    opacity: 0;
    transform: translateY(32px);
}

.fui-img-target.fui-scroll-pending,
.product-visual img.fui-scroll-pending {
    opacity: 0;
}

.fui-quote-block {
    position: relative;
}

.fui-panel-card,
.fui-economy-card {
    padding: 1.25rem 1.5rem;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.fui-panel-card {
    min-height: 140px;
}

.fui-panel-card .fui-hover-bar,
.fui-economy-card .fui-hover-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: #22d3ee;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.fui-panel-card .fui-hover-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.7s ease-in-out;
    pointer-events: none;
}

.fui-panel-card:hover .fui-hover-bar,
.fui-economy-card:hover .fui-hover-bar {
    opacity: 1;
}

.fui-panel-card:hover .fui-hover-scan {
    transform: translateX(100%);
}

.fui-panel-card:hover,
.fui-economy-card:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
    border-color: rgba(34, 211, 238, 0.45);
}

.fui-economy-card {
    padding: 2rem 1.75rem;
}

.fui-image-frame {
    position: relative;
}

.fui-image-brackets {
    position: relative;
    padding: 4px;
}

.fui-image-brackets img {
    display: block;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.fui-image-cyan-tint {
    filter: grayscale(1) sepia(0.2) hue-rotate(160deg) saturate(0.8);
}

.fui-image-frame:hover .fui-image-cyan-tint {
    filter: grayscale(0) sepia(0.1) hue-rotate(160deg) saturate(1.1);
}

/* Ambience — P&B por padrão, colorida no hover */
.fui-ambience-img,
#ambienceImage.fui-img-target {
    filter: grayscale(1) saturate(0.75) brightness(0.92);
    transition: filter 0.85s ease, transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.7s ease;
}

.fui-image-frame:hover .fui-ambience-img,
.fui-image-frame:hover #ambienceImage.fui-img-target,
.fui-image-brackets:hover .fui-ambience-img,
.fui-image-brackets.fui-img-loaded:hover #ambienceImage {
    filter: grayscale(0) saturate(1.08) brightness(1) !important;
    transform: scale(1.02);
}

.fui-image-frame:hover .fui-image-scanline {
    opacity: 0.2;
}

.fui-image-scanline {
    position: absolute;
    inset: 4px;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.03) 2px, rgba(0, 240, 255, 0.03) 4px);
    opacity: 0.6;
}

.fui-page-footer {
    backdrop-filter: blur(12px);
}

/* ── FUI Page Footer (homepage) ── */
.fui-footer-hud {
    position: relative;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 1)),
        radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.06), transparent 55%) !important;
}

.fui-footer-hud.fui-scroll-pending {
    opacity: 0;
    transform: translateY(36px);
}

.fui-footer-hud.fui-footer-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fui-footer-grid {
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.fui-footer-laser {
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.7), transparent);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
    animation: fui-footer-laser 4s ease-in-out infinite;
}

@keyframes fui-footer-laser {
    0%, 100% { opacity: 0.35; transform: scaleX(0.6); }
    50% { opacity: 1; transform: scaleX(1); }
}

.fui-footer-stagger.fui-scroll-pending {
    opacity: 0;
    transform: translateY(24px);
}

.fui-footer-hud.fui-footer-active .fui-footer-stagger.fui-scroll-visible {
    animation: fui-spring-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--fui-stagger-i, 0) * 0.12s);
}

.fui-footer-brand {
    animation: fui-nav-brand-pulse 3s ease-in-out infinite;
}

.fui-footer-hud [data-scramble].fui-scroll-pending {
    opacity: 0.75;
    font-family: 'JetBrains Mono', monospace;
}

.fui-footer-social-link {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
}

.fui-footer-hud.fui-footer-active .fui-footer-social-link {
    animation: fui-footer-social-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--fui-social-i, 0) * 0.08s + 0.35s);
}

@keyframes fui-footer-social-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        color: rgba(8, 145, 178, 0.9);
    }
}

.fui-footer-hud.fui-footer-active .fui-footer-dot {
    animation-play-state: running;
}

.fui-footer-hud.fui-scroll-pending .fui-footer-dot {
    animation-play-state: paused;
    opacity: 0.15;
}

.fui-footer-hud .fui-btn.fui-scroll-pending {
    opacity: 0;
    transform: translateY(12px);
}

.fui-footer-hud.fui-footer-active .fui-btn.fui-scroll-visible {
    animation: fui-btn-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.45s;
}

.fui-footer-hud .fui-footer-social-link:hover {
    color: #22d3ee !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
    transform: translateY(-3px) scale(1.08);
}

/* ── Products (override style.css red theme) ── */
body.fui-page .products-section {
    padding: 4rem 1.25rem;
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 240, 255, 0.06), transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.05), transparent 50%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 1));
    border-top: 1px solid rgba(34, 211, 238, 0.2);
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

body.fui-page .products-section::before {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.4) 30%, rgba(2, 6, 23, 0.92) 100%);
}

body.fui-page section::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.85) 60%, rgba(2, 6, 23, 1) 100%);
}

body.fui-page .products-section .section-heading h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 900;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(34, 211, 238, 0.5);
    color: #fff;
    padding-bottom: 0.75rem;
}

body.fui-page .products-section .section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #00f0ff;
    margin: 0.5rem auto 0;
    box-shadow: 0 0 10px #00f0ff;
}

body.fui-page .products-section h2 .title-icon {
    color: #22d3ee;
}

body.fui-page .products-section p {
    color: rgba(148, 163, 184, 0.9);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.15em;
}

body.fui-page .product-card {
    background: rgba(8, 51, 68, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.03);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    border-radius: 0 !important;
}

body.fui-page .product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 40px rgba(0, 240, 255, 0.05);
}

body.fui-page .product-info h3 {
    font-family: 'Chakra Petch', sans-serif;
    color: #fff;
}

body.fui-page .product-description {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(148, 163, 184, 0.85);
}

body.fui-page .product-description[data-scramble].fui-scroll-pending,
body.fui-page .price-row [data-scramble].fui-scroll-pending {
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}

body.fui-page .product-card.fui-scroll-visible .product-description,
body.fui-page .product-card.fui-scroll-visible .price-row [data-scramble] {
    font-family: 'JetBrains Mono', monospace;
}

body.fui-page .price-value {
    color: #22d3ee !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

body.fui-page .btn-add-cart.fui-btn,
body.fui-page .btn-buy-modal.fui-btn {
    border-radius: 0 !important;
}

body.fui-page .btn-add-cart.fui-btn-primary,
body.fui-page .btn-buy-modal.fui-btn-primary {
    border: 1px solid rgba(34, 211, 238, 0.55) !important;
    color: #020617 !important;
    background: #06b6d4 !important;
}

body.fui-page .btn-add-cart.fui-btn-primary:hover,
body.fui-page .btn-buy-modal.fui-btn-primary:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #020617 !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
}

body.fui-page .btn-add-cart.fui-btn-outline,
body.fui-page .fui-economy-cta.fui-btn-outline {
    border: 1px solid rgba(34, 211, 238, 0.45) !important;
    color: #22d3ee !important;
    background: rgba(6, 182, 212, 0.08) !important;
}

body.fui-page .btn-add-cart.fui-btn-outline:hover,
body.fui-page .fui-economy-cta.fui-btn-outline:hover {
    background: rgba(34, 211, 238, 0.15) !important;
    border-color: #00f0ff !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

body.fui-page .product-card .product-badge {
    border-radius: 0 !important;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    border-color: rgba(34, 211, 238, 0.35);
}

body.fui-page .product-card .product-badge.offer {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

/* ── Modals ── */
body.fui-page .modal {
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
}

body.fui-page .modal-content {
    background: rgba(2, 6, 23, 0.96) !important;
    border: 1px solid rgba(34, 211, 238, 0.3) !important;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.12), inset 0 0 40px rgba(0, 240, 255, 0.03) !important;
    border-radius: 0 !important;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

body.fui-page .modal-title,
body.fui-page .modal-category {
    font-family: 'Chakra Petch', sans-serif;
    color: #22d3ee !important;
}

body.fui-page .modal-price .price-value {
    color: #22d3ee !important;
}

body.fui-page .btn-buy-modal.fui-btn {
    border-radius: 0 !important;
}

body.fui-page .modal-close {
    border-radius: 0 !important;
    border: 1px solid rgba(34, 211, 238, 0.35) !important;
    background: rgba(6, 182, 212, 0.08) !important;
    color: #22d3ee !important;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    width: 2.25rem;
    height: 2.25rem;
    line-height: 1;
    transition: all 0.25s ease;
}

body.fui-page .modal-close:hover {
    background: #22d3ee !important;
    color: #020617 !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}

body.fui-page .free-product-notice {
    background: rgba(8, 51, 68, 0.95);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #22d3ee;
    border-radius: 0;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ── Layout editor / inline edit (FUI) ── */
body.fui-page.layout-edit-mode [data-layout-section] {
    outline-color: rgba(34, 211, 238, 0.45) !important;
}

body.fui-page .layout-handle {
    border-color: rgba(34, 211, 238, 0.35) !important;
}

body.fui-page .inline-edit-card {
    background: rgba(2, 6, 23, 0.95) !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), inset 0 0 50px rgba(0, 240, 255, 0.05) !important;
}

body.fui-page .inline-edit-btn.fui-btn-outline {
    border-color: rgba(34, 211, 238, 0.35) !important;
    color: rgba(203, 213, 225, 0.95) !important;
    background: rgba(15, 23, 42, 0.5) !important;
}

body.fui-page .inline-edit-btn.fui-btn-primary {
    border: 1px solid rgba(34, 211, 238, 0.55) !important;
    background: rgba(6, 182, 212, 0.2) !important;
    color: #fff !important;
}

body.fui-page .inline-edit-btn.fui-btn-primary:hover {
    background: #22d3ee !important;
    color: #020617 !important;
}

body.fui-page .glass-card {
    background: rgba(8, 51, 68, 0.15);
    border-color: rgba(34, 211, 238, 0.15);
}

body.fui-page #hardcore-toggle:hover,
body.fui-page #hardcore-toggle.bg-red-600 {
    border-color: #22d3ee !important;
}

body.fui-page #hardcore-toggle.bg-red-600 {
    background: rgba(6, 182, 212, 0.35) !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) !important;
}

body.fui-page .hardcore-mode {
    filter: contrast(1.05) brightness(0.75) hue-rotate(180deg);
}

/* Mobile menu FUI */
body.fui-page #mobile-menu:not(.fui-mobile-nav) {
    background: rgba(2, 6, 23, 0.98) !important;
    border-color: rgba(34, 211, 238, 0.2) !important;
}

/* ═══════════════════════════════════════════
   FUI — Image loading / decode effects
   ═══════════════════════════════════════════ */

.fui-img-wrap {
    position: relative;
    overflow: hidden;
}

.fui-img-wrap.fui-img-loading .fui-img-target,
.fui-img-wrap.fui-img-loading img.fui-img-target {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(8px) brightness(0.4);
}

.fui-img-wrap.fui-img-loaded .fui-img-target:not(#ambienceImage),
.fui-img-wrap.fui-img-loaded img.fui-img-target:not(#ambienceImage) {
    opacity: 1;
    transform: scale(1);
    filter: none;
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.7s ease;
}

.fui-img-wrap.fui-img-loaded #ambienceImage.fui-img-target {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(1) saturate(0.75) brightness(0.92);
    transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.85s ease;
}

.fui-img-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        rgba(2, 6, 23, 0.92);
    background-size: 16px 16px, 16px 16px, auto;
    pointer-events: none;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.fui-img-wrap.fui-img-loaded .fui-img-loader-overlay {
    opacity: 0;
    visibility: hidden;
}

.fui-img-loader-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #00f0ff;
    box-shadow: 0 0 12px #00f0ff, 0 0 24px rgba(0, 240, 255, 0.5);
    animation: fui-img-scan 1.8s ease-in-out infinite;
}

@keyframes fui-img-scan {
    0% { top: 0; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.fui-img-loader-label {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(34, 211, 238, 0.85);
}

.fui-img-loader-binary {
    display: block;
    margin-top: 0.35rem;
    font-size: 11px;
    letter-spacing: 0.35em;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    min-height: 1em;
}

.fui-img-loader-bar {
    position: relative;
    z-index: 2;
    width: min(140px, 60%);
    height: 4px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    overflow: hidden;
}

.fui-img-loader-bar-fill {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, transparent, #22d3ee, #00f0ff, transparent);
    animation: fui-img-bar 1.2s ease-in-out infinite;
}

@keyframes fui-img-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.fui-img-wrap.fui-img-loaded {
    animation: fui-img-reveal-flash 0.6s ease;
}

@keyframes fui-img-reveal-flash {
    0% { box-shadow: inset 0 0 0 rgba(0, 240, 255, 0); }
    40% { box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.12); }
    100% { box-shadow: inset 0 0 0 rgba(0, 240, 255, 0); }
}

/* Hero background loader */
.fui-hero-bg.fui-img-wrap.fui-img-loading {
    opacity: 0.04;
    filter: blur(4px);
}

.fui-hero-bg.fui-img-wrap.fui-img-loaded {
    opacity: 0.12;
    filter: none;
    transition: opacity 1s ease, filter 1s ease;
}

.fui-hero-bg .fui-img-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.fui-hero-bg .fui-img-loader-label {
    font-size: 10px;
}

/* Product visuals */
body.fui-page .product-visual.fui-img-wrap {
    min-height: 180px;
    background: rgba(8, 51, 68, 0.25);
}

body.fui-page .product-visual.fui-img-wrap.fui-img-loaded .fui-img-target {
    filter: brightness(0.9);
}

body.fui-page .product-visual.fui-img-wrap.fui-img-loaded:hover .fui-img-target {
    filter: brightness(1);
}

/* Ambience frame */
.fui-image-brackets.fui-img-wrap.fui-img-loading {
    min-height: 220px;
    background: rgba(8, 51, 68, 0.3);
}

/* Modal image */
body.fui-page .modal-image.fui-img-wrap {
    min-height: 260px;
    background: rgba(8, 51, 68, 0.35);
}

body.fui-page .modal-image.fui-img-wrap .fui-img-target {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fui-img-wrap.fui-img-error .fui-img-loader-status {
    color: #f87171;
}

.fui-img-wrap.fui-img-error .fui-img-loader-binary::after {
    content: ' · FALHA NO UPLINK';
    color: #f87171;
}

/* ═══════════════════════════════════════════
   FUI — Login page
   ═══════════════════════════════════════════ */

body.fui-login-page {
    background-color: #020617 !important;
    background-image: none !important;
}

body.fui-login-page main {
    background: transparent !important;
}

.fui-login-main {
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.05), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(6, 182, 212, 0.04), transparent 40%);
}

.fui-login-panel {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-login-card-wrap {
    opacity: 0;
    transform: translateX(40px) scale(0.97);
    filter: blur(10px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, filter 0.8s ease 0.15s;
}

body.fui-boot-complete .fui-login-panel.fui-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

body.fui-boot-complete .fui-login-card-wrap.fui-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.fui-login-card {
    background: rgba(2, 6, 23, 0.92) !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
}

.fui-login-card .fui-btn-primary {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    padding: 1rem 1.25rem;
}

.fui-login-step .fui-feature-card {
    padding: 0.85rem 1rem;
}

.fui-login-page .fui-lead-block {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.8s ease, max-height 0.8s ease;
}

body.fui-boot-complete .fui-login-page .fui-lead-block.fui-visible {
    opacity: 1;
    max-height: 220px;
}

.fui-login-page #fuiLoginBadge.fui-badge-booting {
    animation: fui-badge-blink 0.2s infinite;
}

@keyframes fui-badge-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.fui-login-page .fui-panel-card {
    background: rgba(8, 51, 68, 0.2);
    border-color: rgba(34, 211, 238, 0.2);
}

/* ═══════════════════════════════════════════
   FUI — Donation page (doacao.php)
   ═══════════════════════════════════════════ */

body.fui-donation-page .donation-accent-overlay,
body.fui-donation-page .donation-dotgrid {
    display: none !important;
}

/* Donation hero — imagem contida só na seção hero, fade interno na base */
#donation-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fui-donation-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fui-donation-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    -webkit-mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 50%,
        rgba(0, 0, 0, 0.6) 78%,
        transparent 100%
    );
    mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 50%,
        rgba(0, 0, 0, 0.6) 78%,
        transparent 100%
    );
}

.fui-donation-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 6, 23, 0.68) 0%,
        rgba(2, 6, 23, 0.22) 34%,
        rgba(2, 6, 23, 0.04) 54%,
        rgba(2, 6, 23, 0.55) 76%,
        rgba(2, 6, 23, 0.94) 92%,
        #020617 100%
    );
}

#donation-catalog-section {
    margin-top: 0;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
    background: #020617 !important;
    border: none !important;
}

body.fui-donation-page #donation-catalog-section.products-section,
body.fui-donation-page #donation-catalog-section.donation-catalog {
    background: #020617 !important;
    border-top: none !important;
    border-bottom: none !important;
    overflow: hidden;
}

body.fui-donation-page #donation-catalog-section::before,
body.fui-donation-page #donation-catalog-section::after {
    content: none !important;
    display: none !important;
}

@media (min-width: 768px) {
    #donation-catalog-section {
        padding-top: 8rem !important;
        padding-bottom: 8rem !important;
    }
}

.fui-donation-hero-panel {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(10px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

body.fui-boot-complete .fui-donation-hero-panel.fui-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.fui-donation-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(2, 6, 23, 0.65);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    color: rgba(203, 213, 225, 0.9);
}

body.fui-donation-page .donation-catalog {
    background: #020617 !important;
    overflow: hidden;
}

body.fui-donation-page #donation-hero-section::after,
body.fui-donation-page #donation-catalog-section::after {
    content: none !important;
    display: none !important;
}

body.fui-donation-page .fui-category-menu {
    background: rgba(2, 6, 23, 0.92) !important;
    border: 1px solid rgba(34, 211, 238, 0.2) !important;
    border-radius: 0 !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    padding: 1.25rem;
}

body.fui-donation-page .category-item {
    border-radius: 0 !important;
    border-color: rgba(34, 211, 238, 0.15) !important;
    background: rgba(8, 51, 68, 0.25) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.25s ease;
}

body.fui-donation-page .category-item.active,
body.fui-donation-page .category-item:hover {
    background: rgba(6, 182, 212, 0.2) !important;
    color: #22d3ee !important;
    border-color: rgba(34, 211, 238, 0.5) !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}

body.fui-donation-page .fui-product-block {
    background: rgba(2, 6, 23, 0.88) !important;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    border-radius: 0 !important;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.03);
}

body.fui-donation-page .product-block .block-header h2 {
    font-family: 'Chakra Petch', sans-serif;
    color: #fff;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(34, 211, 238, 0.35);
    padding-bottom: 0.5rem;
}

body.fui-donation-page .product-block .block-header p {
    color: rgba(148, 163, 184, 0.85);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

body.fui-donation-page .fui-catalog-search label {
    border-radius: 0 !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
    background: rgba(8, 51, 68, 0.35) !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

body.fui-donation-page .fui-catalog-search i {
    color: #22d3ee !important;
}

body.fui-donation-page .catalog-search-feedback {
    color: rgba(148, 163, 184, 0.75);
    font-family: 'JetBrains Mono', monospace;
}

body.fui-donation-page #fuiDonationBadge.fui-badge-booting {
    animation: fui-badge-blink 0.2s infinite;
}

body.fui-boot-complete .fui-donation-page .fui-lead-block.fui-visible {
    opacity: 1;
    max-height: 220px;
}

/* ═══════════════════════════════════════════
   FUI — Account page (minha-conta.php)
   ═══════════════════════════════════════════ */

body.fui-account-page {
    background: #020617 !important;
    color: #22d3ee !important;
}

body.fui-account-page main {
    background: transparent !important;
}

.fui-account-main {
    background:
        radial-gradient(circle at 12% 12%, rgba(0, 240, 255, 0.05), transparent 42%),
        radial-gradient(circle at 88% 28%, rgba(6, 182, 212, 0.04), transparent 38%);
}

.fui-account-hero-panel {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-account-sidebar {
    opacity: 0;
    transform: translateX(-32px);
    filter: blur(8px);
    transition: opacity 0.8s ease 0.1s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s, filter 0.8s ease 0.1s;
}

body.fui-boot-complete .fui-account-hero-panel.fui-visible,
body.fui-boot-complete .fui-account-sidebar.fui-visible,
body.fui-boot-complete .fui-account-content-panel.fui-visible {
    opacity: 1;
    transform: translate(0);
    filter: blur(0);
}

.fui-account-content-panel {
    opacity: 0;
    transform: translateX(36px);
    filter: blur(8px);
    transition: opacity 0.85s ease 0.12s, transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s, filter 0.85s ease 0.12s;
}

.fui-account-avatar-wrap {
    position: relative;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 0 24px rgba(0, 240, 255, 0.15);
    animation: fui-avatar-pulse 3.5s ease-in-out infinite;
}

.fui-account-avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 9999px;
    animation: fui-avatar-ring 2.8s ease-out infinite;
    pointer-events: none;
}

@keyframes fui-avatar-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.35), 0 0 20px rgba(0, 240, 255, 0.12); }
    50% { box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.55), 0 0 32px rgba(0, 240, 255, 0.22); }
}

@keyframes fui-avatar-ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.18); opacity: 0; }
}

.fui-account-stat {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
}

.fui-account-stat.fui-stat-visible {
    animation: fui-stat-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--fui-stagger-i, 0) * 0.1s);
}

@keyframes fui-stat-in {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.fui-account-page .fui-account-card {
    position: relative;
    overflow: hidden;
}

body.fui-account-page .fui-account-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(0, 240, 255, 0.07) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.85s ease;
    pointer-events: none;
}

body.fui-account-page .fui-account-card:hover::after {
    transform: translateX(120%);
}

body.fui-account-page .fui-account-card.fui-card-hover-scramble,
body.fui-account-page .fui-order-item.fui-card-hover-scramble,
body.fui-account-page .fui-account-nav .fui-btn.fui-card-hover-scramble {
    border-color: rgba(34, 211, 238, 0.55) !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.1), inset 0 0 28px rgba(0, 240, 255, 0.05) !important;
}

body.fui-account-page .fui-account-nav .fui-btn.fui-card-hover-scramble .fui-btn-sweep {
    opacity: 1;
}

body.fui-account-page .fui-card-hover-scramble [data-scramble] {
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.35);
}

body.fui-account-page .fui-order-item {
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: none;
}

body.fui-account-page .fui-order-item.fui-order-reveal-pending {
    opacity: 0;
    transform: translateX(28px);
}

body.fui-account-page .fui-order-item.fui-order-reveal-visible {
    animation: fui-order-in 0.58s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(var(--fui-order-i, 0) * 0.055s);
}

@keyframes fui-order-in {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.fui-account-page .fui-order-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.06), transparent);
    transform: translateX(-100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.fui-account-page .fui-order-item:hover .fui-order-scan {
    opacity: 1;
    animation: fui-order-scan 0.75s ease;
}

@keyframes fui-order-scan {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

body.fui-account-page .fui-account-nav .fui-btn {
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.fui-account-page .fui-account-nav .fui-btn:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 16px rgba(0, 240, 255, 0.08);
}

body.fui-account-page #fuiAccountBadge.fui-badge-booting {
    animation: fui-badge-blink 0.2s infinite;
}

body.fui-account-page .glass-card,
body.fui-account-page .fui-account-card {
    background: rgba(2, 6, 23, 0.92) !important;
    border-color: rgba(34, 211, 238, 0.2) !important;
    border-radius: 0 !important;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 240, 255, 0.03) !important;
}

body.fui-account-page .order-item {
    background: rgba(8, 51, 68, 0.22) !important;
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.03) !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.fui-account-page .fui-order-item:hover,
body.fui-account-page .order-item:hover {
    border-color: rgba(34, 211, 238, 0.45) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(0, 240, 255, 0.05) !important;
}

body.fui-account-page .order-icon {
    background: rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
    color: #22d3ee !important;
    border-radius: 0 !important;
}

body.fui-account-page .order-number {
    background: rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(34, 211, 238, 0.35) !important;
    color: #67e8f9 !important;
    border-radius: 0 !important;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

body.fui-account-page .order-action {
    border-radius: 0 !important;
    border-color: rgba(34, 211, 238, 0.25) !important;
    color: rgba(203, 213, 225, 0.9) !important;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.2em;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

body.fui-account-page .order-action:hover {
    border-color: rgba(34, 211, 238, 0.55) !important;
    background: rgba(6, 182, 212, 0.1) !important;
}

body.fui-account-page .order-action--green {
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #86efac !important;
}

body.fui-account-page .order-action--blue {
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

/* —— Shared FUI redeem modal (minha-conta, mysterybox_open) —— */
body.fui-account-page .redeem-modal,
body.fui-mysterybox-open-page .redeem-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 110000;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(10px);
}

body.fui-account-page .redeem-modal[hidden],
body.fui-mysterybox-open-page .redeem-modal[hidden] {
    display: none !important;
}

body.fui-account-page .redeem-modal.is-open:not([hidden]),
body.fui-mysterybox-open-page .redeem-modal.is-open:not([hidden]) {
    display: flex;
}

body.fui-account-page .redeem-modal-card,
body.fui-mysterybox-open-page .redeem-modal-card {
    position: relative;
    width: min(860px, 96vw);
    padding: 34px 34px 30px;
    background: rgba(2, 6, 23, 0.96) !important;
    border: 1px solid rgba(34, 211, 238, 0.25) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), inset 0 0 40px rgba(0, 240, 255, 0.04) !important;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    animation: fui-redeem-modal-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fui-redeem-modal-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.fui-account-page .redeem-modal-card::before,
body.fui-mysterybox-open-page .redeem-modal-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #22c55e;
}

body.fui-account-page .redeem-modal-close,
body.fui-mysterybox-open-page .redeem-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    transition: color 0.2s ease;
}

body.fui-account-page .redeem-modal-close:hover,
body.fui-mysterybox-open-page .redeem-modal-close:hover {
    color: #22d3ee;
}

body.fui-account-page .redeem-modal-title,
body.fui-mysterybox-open-page .redeem-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    margin: 0 0 18px;
    padding-right: 4rem;
}

body.fui-account-page .redeem-modal-warning,
body.fui-mysterybox-open-page .redeem-modal-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    background: rgba(245, 158, 11, 0.08) !important;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.45;
}

body.fui-account-page .redeem-modal-warning i,
body.fui-mysterybox-open-page .redeem-modal-warning i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

body.fui-account-page .redeem-modal-text,
body.fui-mysterybox-open-page .redeem-modal-text {
    margin: 16px 0 18px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.08em;
    font-size: 14px;
    line-height: 1.55;
}

body.fui-account-page .redeem-command-box,
body.fui-mysterybox-open-page .redeem-command-box {
    border: 1px solid rgba(34, 211, 238, 0.18) !important;
    background: rgba(0, 0, 0, 0.55) !important;
    padding: 26px 20px;
    text-align: center;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

body.fui-account-page .redeem-command,
body.fui-mysterybox-open-page .redeem-command {
    font-family: 'Orbitron', sans-serif;
    color: #22d3ee !important;
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    letter-spacing: 0.12em;
    font-weight: 900;
    user-select: all;
    word-break: break-word;
    text-shadow: 0 0 24px rgba(6, 182, 212, 0.25);
}

body.fui-account-page .redeem-modal-actions,
body.fui-mysterybox-open-page .redeem-modal-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

body.fui-account-page .redeem-modal-actions .order-action,
body.fui-mysterybox-open-page .redeem-modal-actions .order-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid rgba(34, 211, 238, 0.25) !important;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(203, 213, 225, 0.95) !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0 !important;
    font-family: 'JetBrains Mono', monospace;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

body.fui-account-page .redeem-modal-actions .order-action:hover,
body.fui-mysterybox-open-page .redeem-modal-actions .order-action:hover {
    border-color: rgba(34, 211, 238, 0.55) !important;
    background: rgba(6, 182, 212, 0.1) !important;
    transform: translateY(-1px);
}

body.fui-account-page .redeem-modal-actions .order-action--green,
body.fui-mysterybox-open-page .redeem-modal-actions .order-action--green {
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #86efac !important;
}

body.fui-account-page .redeem-modal-actions .order-action--green:hover,
body.fui-mysterybox-open-page .redeem-modal-actions .order-action--green:hover {
    border-color: rgba(34, 197, 94, 0.7) !important;
    background: rgba(34, 197, 94, 0.12) !important;
}

@media (max-width: 768px) {
    body.fui-account-page .redeem-modal-card,
    body.fui-mysterybox-open-page .redeem-modal-card {
        padding: 22px 18px 18px;
    }

    body.fui-account-page .redeem-modal-close,
    body.fui-mysterybox-open-page .redeem-modal-close {
        top: 12px;
        right: 12px;
        letter-spacing: 0.25em;
    }

    body.fui-account-page .redeem-modal-title,
    body.fui-mysterybox-open-page .redeem-modal-title {
        font-size: 1.15rem;
        letter-spacing: 0.1em;
        margin-bottom: 14px;
    }

    body.fui-account-page .redeem-command-box,
    body.fui-mysterybox-open-page .redeem-command-box {
        padding: 18px 14px;
    }

    body.fui-account-page .redeem-modal-actions,
    body.fui-mysterybox-open-page .redeem-modal-actions {
        justify-content: stretch;
    }

    body.fui-account-page .redeem-modal-actions .order-action,
    body.fui-mysterybox-open-page .redeem-modal-actions .order-action {
        flex: 1 1 auto;
        min-width: 0;
    }
}

body.fui-account-page .profile-modal-card {
    background: rgba(2, 6, 23, 0.96) !important;
    border-color: rgba(34, 211, 238, 0.22) !important;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

body.fui-account-page .fui-account-icon {
    border-radius: 0 !important;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

body.fui-account-page input[type="text"],
body.fui-account-page input[type="date"],
body.fui-account-page input[type="search"],
body.fui-account-page textarea {
    border-radius: 0 !important;
}

body.fui-account-page input:focus,
body.fui-account-page textarea:focus {
    border-color: rgba(34, 211, 238, 0.55) !important;
    outline: none;
}

body.fui-account-page input[type="checkbox"] {
    accent-color: #06b6d4;
}

body.fui-account-page a.text-red-500,
body.fui-account-page .hover\:border-red-600:hover {
    color: #22d3ee !important;
}

body.fui-account-page .border-red-600,
body.fui-account-page .bg-red-600\/10,
body.fui-account-page .hover\:bg-red-600:hover {
    border-color: rgba(34, 211, 238, 0.45) !important;
}

body.fui-account-page button.border-2.border-red-600,
body.fui-account-page a.border-2.border-red-600 {
    border-color: rgba(34, 211, 238, 0.45) !important;
    background: rgba(6, 182, 212, 0.12) !important;
}

body.fui-account-page button.border-2.border-red-600:hover,
body.fui-account-page a.border-2.border-red-600:hover {
    background: rgba(6, 182, 212, 0.28) !important;
}

body.fui-account-page .rounded-xl.border.border-white\/10.bg-white\/5,
body.fui-account-page .rounded-xl.border.border-yellow-500\/30,
body.fui-account-page .rounded-xl.border.border-blue-500\/30 {
    border-radius: 0 !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

body.fui-account-page .bg-red-600\/15,
body.fui-account-page [class*="bg-red-600"] {
    background: rgba(6, 182, 212, 0.12) !important;
}

body.fui-account-page .border-red-600\/30,
body.fui-account-page [class*="border-red-600"] {
    border-color: rgba(34, 211, 238, 0.3) !important;
}

body.fui-account-page .text-red-500 {
    color: #22d3ee !important;
}

/* —— Welcome Pack page —— */
body.fui-welcomepack-page {
    background: #020617;
    color: #22d3ee;
}

body.fui-welcomepack-page main {
    position: relative;
    z-index: 10;
}

body.fui-welcomepack-page .fui-welcomepack-hero-panel {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

body.fui-welcomepack-page .fui-welcomepack-hero-panel.fui-visible {
    opacity: 1;
    transform: translateY(0);
}

body.fui-welcomepack-page .fui-welcomepack-shell {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}

body.fui-welcomepack-page .fui-welcomepack-shell.fui-visible {
    opacity: 1;
    transform: translateY(0);
}

body.fui-welcomepack-page #fuiWelcomePackBadge.fui-badge-booting {
    animation: fui-badge-pulse 1.2s ease-in-out infinite;
}

body.fui-welcomepack-page .fui-wp-kpi {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s),
        transform 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s);
}

body.fui-welcomepack-page .fui-wp-kpi.fui-wp-kpi-visible {
    opacity: 1;
    transform: translateY(0);
}

body.fui-welcomepack-page .fui-wp-card {
    border-color: rgba(34, 211, 238, 0.12);
    background: linear-gradient(170deg, rgba(6, 182, 212, 0.06) 0%, rgba(2, 6, 23, 0.5) 100%);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body.fui-welcomepack-page .fui-wp-card.fui-wp-reveal-pending {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
}

body.fui-welcomepack-page .fui-wp-card.fui-wp-reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s ease calc(var(--fui-stagger-i, 0) * 0.06s),
        transform 0.5s ease calc(var(--fui-stagger-i, 0) * 0.06s);
}

body.fui-welcomepack-page .fui-wp-card:hover {
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(6, 182, 212, 0.12);
}

body.fui-welcomepack-page .fui-wp-card.fui-card-hover-scramble {
    border-color: rgba(34, 211, 238, 0.55);
}

body.fui-welcomepack-page .fui-wp-scan {
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.85), transparent);
}

body.fui-welcomepack-page .fui-wp-scan.fui-wp-scan-active {
    opacity: 1;
    animation: fui-wp-scan-sweep 0.55s ease-out forwards;
}

@keyframes fui-wp-scan-sweep {
    0% { transform: translateY(0); opacity: 0.2; }
    50% { opacity: 1; }
    100% { transform: translateY(120px); opacity: 0; }
}

body.fui-welcomepack-page .wp-icon {
    border-color: rgba(34, 211, 238, 0.2);
    background: rgba(6, 182, 212, 0.08);
    color: #67e8f9;
}

body.fui-welcomepack-page .wp-tag-available {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(34, 211, 238, 0.35);
    color: #a5f3fc;
}

body.fui-welcomepack-page .fui-wp-empty {
    border-color: rgba(34, 211, 238, 0.2);
    background: rgba(6, 182, 212, 0.04);
}

body.fui-welcomepack-page .fui-wp-modal {
    background: rgba(2, 6, 23, 0.95);
    border-color: rgba(34, 211, 238, 0.2) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 0 30px rgba(6, 182, 212, 0.06);
}

body.fui-welcomepack-page .wp-claim.fui-btn-primary:disabled {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* —— Mystery Box — Vault Uplink layout —— */
body.fui-mysterybox-page {
    background: #020617;
    color: #22d3ee;
}

.fui-vault-main {
    background:
        radial-gradient(circle at 8% 20%, rgba(6, 182, 212, 0.06), transparent 40%),
        radial-gradient(circle at 92% 80%, rgba(6, 182, 212, 0.04), transparent 38%);
}

#mysterybox-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fui-mysterybox-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fui-mysterybox-hero-img {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(6, 182, 212, 0.12), transparent 45%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.9));
}

.fui-vault-hero-noise::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 65% 45%, #000 0%, transparent 72%);
}

.fui-mysterybox-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.55) 42%, rgba(2, 6, 23, 0.88) 100%);
}

.fui-vault-hero-glow {
    position: absolute;
    right: 10%;
    top: 22%;
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
    filter: blur(40px);
    animation: fui-vault-glow-pulse 4s ease-in-out infinite;
}

@keyframes fui-vault-glow-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.fui-vault-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fui-vault-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
}

.fui-mysterybox-hero-panel,
.fui-vault-briefing {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-vault-core-reveal {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(10px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, filter 0.9s ease 0.15s;
}

body.fui-boot-complete .fui-mysterybox-hero-panel.fui-visible,
body.fui-boot-complete .fui-vault-briefing.fui-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

body.fui-boot-complete .fui-vault-core-reveal.fui-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

body.fui-mysterybox-page #fuiMysteryBoxBadge.fui-badge-booting {
    animation: fui-badge-pulse 1.2s ease-in-out infinite;
}

/* Protocol timeline */
.fui-vault-protocol {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.fui-vault-protocol::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(34, 211, 238, 0.08));
}

.fui-vault-protocol-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.65rem 0;
}

.fui-vault-protocol-node {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.fui-vault-protocol-step strong {
    display: block;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.fui-vault-protocol-step p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    font-family: monospace;
}

/* Vault core hologram */
.fui-vault-core {
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fui-vault-core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.25);
    pointer-events: none;
}

.fui-vault-core-ring--outer {
    inset: 0;
    animation: fui-vault-spin 18s linear infinite;
    border-style: dashed;
}

.fui-vault-core-ring--mid {
    inset: 12%;
    animation: fui-vault-spin 12s linear infinite reverse;
    border-color: rgba(34, 211, 238, 0.4);
}

.fui-vault-core-ring--inner {
    inset: 24%;
    animation: fui-vault-spin 8s linear infinite;
    border-width: 2px;
    border-color: rgba(34, 211, 238, 0.55);
}

@keyframes fui-vault-spin {
    to { transform: rotate(360deg); }
}

.fui-vault-core-pulse {
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
    animation: fui-vault-core-pulse 2.5s ease-in-out infinite;
}

@keyframes fui-vault-core-pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.fui-vault-core-crate {
    position: relative;
    z-index: 2;
    width: 46%;
    aspect-ratio: 1;
    border: 1px solid rgba(34, 211, 238, 0.45);
    background: rgba(2, 6, 23, 0.75);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.25), inset 0 0 30px rgba(6, 182, 212, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: fui-vault-float 4s ease-in-out infinite;
}

@keyframes fui-vault-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.fui-vault-core-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fui-vault-core-crate--empty {
    font-size: 2.5rem;
    color: rgba(34, 211, 238, 0.5);
}

.fui-vault-core-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fui-vault-core-orbit span {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -3px;
    margin-left: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
}

.fui-vault-core-orbit span:nth-child(1) { animation: fui-vault-orbit 6s linear infinite; }
.fui-vault-core-orbit span:nth-child(2) { animation: fui-vault-orbit 9s linear infinite reverse; animation-delay: -2s; }
.fui-vault-core-orbit span:nth-child(3) { animation: fui-vault-orbit 12s linear infinite; animation-delay: -4s; }

@keyframes fui-vault-orbit {
    from { transform: rotate(0deg) translateX(46%) rotate(0deg); }
    to { transform: rotate(360deg) translateX(46%) rotate(-360deg); }
}

.fui-vault-core-label {
    position: absolute;
    bottom: 4%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    letter-spacing: 0.35em;
    color: rgba(34, 211, 238, 0.7);
    text-transform: uppercase;
}

/* Telemetry strip */
.fui-vault-telemetry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(2, 6, 23, 0.65);
    padding: 0.5rem;
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .fui-vault-telemetry { grid-template-columns: repeat(4, 1fr); }
}

.fui-mystery-kpi,
.fui-vault-telemetry-cell {
    position: relative;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s),
        transform 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s);
}

.fui-mystery-kpi.fui-mystery-kpi-visible,
.fui-vault-telemetry-cell.fui-mystery-kpi-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-vault-telemetry-key {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.fui-vault-telemetry-val {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.fui-vault-status {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem !important;
    letter-spacing: 0.2em;
}

.fui-vault-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}

.fui-vault-status.is-online .fui-vault-status-dot {
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: fui-vault-blink 1.8s ease-in-out infinite;
}

.fui-vault-status.is-offline { color: #f87171 !important; }
.fui-vault-status.is-offline .fui-vault-status-dot { background: #f87171; }

@keyframes fui-vault-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Armory section */
#mysterybox-catalog-section {
    background: #020617;
    border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.fui-vault-radar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.35);
    position: relative;
    flex-shrink: 0;
}

.fui-vault-radar::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.55) 50deg, transparent 80deg);
    animation: fui-vault-spin 2.4s linear infinite;
}

.fui-vault-tag {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-family: monospace;
    color: #94a3b8;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(6, 182, 212, 0.05);
}

.fui-vault-armory-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1100px) {
    .fui-vault-armory-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
}

.fui-vault-manifest {
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
    background:
        linear-gradient(180deg, rgba(6, 182, 212, 0.07), rgba(2, 6, 23, 0.95)) !important;
    border-color: rgba(34, 211, 238, 0.18) !important;
}

.fui-vault-manifest.fui-scroll-pending {
    opacity: 0;
    transform: translateX(-20px);
}

.fui-vault-manifest.fui-scroll-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fui-vault-manifest-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #22d3ee;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.fui-vault-manifest-stats {
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fui-vault-manifest-stats div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.fui-vault-manifest-stats dt {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
}

.fui-vault-manifest-stats dd {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.fui-vault-manifest-note {
    font-size: 0.72rem;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 1rem;
}

.fui-vault-manifest-bars {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.fui-vault-manifest-bar {
    height: 3px;
    background: rgba(34, 211, 238, 0.08);
    overflow: hidden;
}

.fui-vault-manifest-bar span {
    display: block;
    height: 100%;
    width: var(--w, 50%);
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.3), #22d3ee);
    animation: fui-vault-bar-pulse 3s ease-in-out infinite;
}

.fui-vault-manifest-bar:nth-child(2) span { animation-delay: 0.4s; }
.fui-vault-manifest-bar:nth-child(3) span { animation-delay: 0.8s; }

@keyframes fui-vault-bar-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

/* Crates bento grid */
.fui-vault-crates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .fui-vault-crates-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
    .fui-vault-crates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .fui-vault-crate--featured {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1.15fr 1fr;
    }
    .fui-vault-crate--featured .fui-vault-crate-visual {
        aspect-ratio: auto;
        min-height: 100%;
    }
    .fui-vault-crate--featured .fui-vault-crate-body {
        justify-content: center;
    }
}

.fui-vault-crate,
body.fui-mysterybox-page .fui-mystery-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(6, 182, 212, 0.07) 0%, rgba(2, 6, 23, 0.98) 55%) !important;
    border: 1px solid rgba(34, 211, 238, 0.16) !important;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    cursor: pointer;
}

.fui-vault-crate:hover,
body.fui-mysterybox-page .fui-mystery-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.42) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 28px rgba(6, 182, 212, 0.12);
}

.fui-vault-crate.fui-card-hover-scramble,
body.fui-mysterybox-page .fui-mystery-card.fui-card-hover-scramble {
    border-color: rgba(34, 211, 238, 0.58) !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.12), inset 0 0 24px rgba(0, 240, 255, 0.05) !important;
}

.fui-vault-offer-badge,
.fui-vault-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    padding: 0.3rem 0.55rem;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.fui-vault-offer-badge {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #fde047;
}

.fui-vault-featured-badge {
    left: 12px;
    right: auto;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.45);
    color: #67e8f9;
}

.fui-vault-crate-visual {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.1), rgba(2, 6, 23, 0.95));
}

.fui-vault-crate-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fui-vault-crate:hover .fui-vault-crate-visual img {
    transform: scale(1.05);
}

.fui-vault-bracket {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(34, 211, 238, 0.55);
    border-style: solid;
    z-index: 3;
    pointer-events: none;
}

.fui-vault-bracket--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.fui-vault-bracket--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.fui-vault-bracket--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.fui-vault-bracket--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.fui-vault-crate-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.35), transparent);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

.fui-vault-crate-scan.is-active {
    opacity: 1;
    animation: fui-vault-scan-drop 0.65s ease-out forwards;
}

@keyframes fui-vault-scan-drop {
    to { transform: translateY(110%); opacity: 0; }
}

.fui-vault-pool-chip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.58rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.fui-vault-crate-body {
    padding: 1.1rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fui-vault-crate-id {
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    color: #22d3ee;
    opacity: 0.75;
}

.fui-vault-crate-meta h3 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
}

.fui-vault-drop-meter-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #64748b;
    font-family: monospace;
    margin-bottom: 0.3rem;
}

.fui-vault-drop-bar {
    height: 4px;
    background: rgba(34, 211, 238, 0.1);
    overflow: hidden;
}

.fui-vault-drop-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), #22d3ee);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.fui-vault-crate-price {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.fui-vault-price-label {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: #64748b;
    text-transform: uppercase;
}

.fui-vault-price-value {
    color: #22d3ee;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    line-height: 1;
}

.fui-vault-price-old {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: line-through;
    letter-spacing: 0.08em;
}

/* Offline / empty states */
.fui-vault-offline,
body.fui-mysterybox-page .fui-mystery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background:
        repeating-linear-gradient(-45deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03) 8px, transparent 8px, transparent 16px),
        linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px dashed rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
    grid-column: 1 / -1;
}

.fui-vault-offline-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    font-size: 1.5rem;
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
}

.fui-vault-offline p {
    margin: 0 0 0.5rem;
    color: #fff;
    letter-spacing: 0.25em;
    font-size: 0.9rem;
}

@media (max-width: 1099px) {
    .fui-vault-manifest { position: static; }
    .fui-vault-core { max-width: 300px; }
}

@media (max-width: 640px) {
    .fui-vault-telemetry { grid-template-columns: 1fr; }
    .fui-vault-crate--featured { display: block; }
}

/* —— Events — Operations Calendar layout —— */
body.fui-events-page {
    background: #020617;
    color: #22d3ee;
}

.fui-events-main {
    background:
        radial-gradient(circle at 12% 18%, rgba(6, 182, 212, 0.06), transparent 42%),
        radial-gradient(circle at 88% 72%, rgba(6, 182, 212, 0.04), transparent 40%);
}

#events-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fui-events-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fui-events-hero-img {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 35%, rgba(6, 182, 212, 0.14), transparent 48%),
        linear-gradient(120deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.92));
}

.fui-events-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.fui-events-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.5) 45%, rgba(2, 6, 23, 0.88) 100%);
}

.fui-events-hero-glow {
    position: absolute;
    left: 55%;
    top: 20%;
    width: min(38vw, 380px);
    height: min(38vw, 380px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
    filter: blur(42px);
    animation: fui-vault-glow-pulse 4.5s ease-in-out infinite;
}

.fui-events-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fui-events-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 3rem;
    }
}

.fui-events-hero-panel,
.fui-events-briefing {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-events-radar-reveal {
    opacity: 0;
    transform: scale(0.92);
    filter: blur(10px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, filter 0.9s ease 0.15s;
}

body.fui-boot-complete .fui-events-hero-panel.fui-visible,
body.fui-boot-complete .fui-events-briefing.fui-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

body.fui-boot-complete .fui-events-radar-reveal.fui-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

body.fui-events-page #fuiEventsBadge.fui-badge-booting {
    animation: fui-badge-pulse 1.2s ease-in-out infinite;
}

.fui-events-protocol {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.fui-events-protocol::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.5), rgba(34, 211, 238, 0.08));
}

.fui-events-protocol-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.65rem 0;
}

.fui-events-protocol-node {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.fui-events-protocol-step strong {
    display: block;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.fui-events-protocol-step p {
    margin: 0;
    color: #64748b;
    font-size: 0.82rem;
    font-family: monospace;
}

/* Events radar */
.fui-events-radar {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.fui-events-radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.22);
    pointer-events: none;
}

.fui-events-radar-ring--outer { inset: 0; border-style: dashed; animation: fui-vault-spin 20s linear infinite; }
.fui-events-radar-ring--mid { inset: 14%; border-color: rgba(34, 211, 238, 0.35); }

.fui-events-radar-sweep {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.45) 42deg, transparent 80deg);
    animation: fui-vault-spin 3.5s linear infinite;
    opacity: 0.55;
    mask-image: radial-gradient(circle, #000 55%, transparent 56%);
}

.fui-events-radar-core {
    position: absolute;
    inset: 28%;
    z-index: 2;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(2, 6, 23, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 36px rgba(6, 182, 212, 0.2);
}

.fui-events-radar-core i {
    font-size: 2.2rem;
    color: rgba(34, 211, 238, 0.55);
}

.fui-events-radar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fui-events-radar-blip {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: fui-events-blip 4s ease-in-out infinite;
    animation-delay: calc(var(--blip-i, 0) * 0.7s);
    transform: rotate(calc(var(--blip-i, 0) * 72deg)) translateX(42%) rotate(calc(var(--blip-i, 0) * -72deg));
}

@keyframes fui-events-blip {
    0%, 100% { opacity: 0.35; transform: rotate(calc(var(--blip-i, 0) * 72deg)) translateX(38%) scale(0.8); }
    50% { opacity: 1; transform: rotate(calc(var(--blip-i, 0) * 72deg)) translateX(46%) scale(1.1); }
}

.fui-events-radar-label {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: rgba(34, 211, 238, 0.65);
    text-transform: uppercase;
}

.fui-events-telemetry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(2, 6, 23, 0.65);
    padding: 0.5rem;
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .fui-events-telemetry { grid-template-columns: repeat(4, 1fr); }
}

.fui-events-kpi,
.fui-events-telemetry-cell {
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s),
        transform 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s);
}

.fui-events-kpi.fui-events-kpi-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-events-telemetry-key {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.fui-events-telemetry-val {
    display: block;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.fui-events-radar-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.35);
    position: relative;
    flex-shrink: 0;
}

.fui-events-radar-icon::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.55) 50deg, transparent 80deg);
    animation: fui-vault-spin 2.4s linear infinite;
}

/* Agenda layout */
.fui-events-agenda {
    border-top: 1px solid rgba(34, 211, 238, 0.08);
    background: #020617;
}

.fui-events-agenda-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1100px) {
    .fui-events-agenda-layout {
        grid-template-columns: 280px 1fr;
        gap: 2rem;
    }
}

.fui-events-manifest {
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.07), rgba(2, 6, 23, 0.95)) !important;
    border-color: rgba(34, 211, 238, 0.18) !important;
}

.fui-events-manifest.fui-scroll-pending {
    opacity: 0;
    transform: translateX(-20px);
}

.fui-events-manifest.fui-scroll-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fui-events-manifest-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #22d3ee;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.fui-events-manifest-stats {
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fui-events-manifest-stats div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.fui-events-manifest-stats dt {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
}

.fui-events-manifest-stats dd {
    margin: 0;
    color: #fff;
}

.fui-events-manifest-note {
    font-size: 0.72rem;
    line-height: 1.5;
    color: #475569;
}

/* Timeline */
.fui-events-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 0;
}

@media (min-width: 640px) {
    .fui-events-timeline {
        padding-left: 1.5rem;
    }
    .fui-events-timeline::before {
        content: '';
        position: absolute;
        left: 2.35rem;
        top: 1rem;
        bottom: 1rem;
        width: 1px;
        background: linear-gradient(180deg, rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0.06));
    }
}

.fui-event-op {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
}

@media (min-width: 640px) {
    .fui-event-op {
        grid-template-columns: 4.5rem 1fr;
        gap: 1.25rem;
        align-items: stretch;
    }
}

.fui-event-op-node {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
    position: relative;
    z-index: 2;
}

@media (min-width: 640px) {
    .fui-event-op-node { display: flex; }
}

.fui-event-op-day {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.fui-event-op-month {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    color: #64748b;
    margin-top: 0.2rem;
}

.fui-event-op-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(6, 182, 212, 0.06) 0%, rgba(2, 6, 23, 0.98) 55%);
    border: 1px solid rgba(34, 211, 238, 0.14);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.fui-event-op:hover .fui-event-op-panel,
.fui-event-card:hover .fui-event-op-panel {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 182, 212, 0.1);
    transform: translateY(-3px);
}

.fui-event-op.fui-card-hover-scramble .fui-event-op-panel {
    border-color: rgba(34, 211, 238, 0.55) !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.1), inset 0 0 24px rgba(0, 240, 255, 0.05) !important;
}

.fui-event-op-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.28), transparent);
    transform: translateY(-110%);
    opacity: 0;
}

.fui-event-op-scan.is-active {
    opacity: 1;
    animation: fui-vault-scan-drop 0.65s ease-out forwards;
}

.fui-event-op-visual {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.fui-event-op-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fui-event-op:hover .fui-event-op-visual img {
    transform: scale(1.03);
}

.fui-event-op-body {
    padding: 1.15rem 1.2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fui-event-op-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.fui-event-op-id {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    color: #22d3ee;
    opacity: 0.8;
    margin-bottom: 0.35rem;
}

.fui-event-op-head h3 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
}

.fui-event-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}

.fui-event-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.fui-event-status--active {
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.35);
    background: rgba(16, 185, 129, 0.1);
}

.fui-event-status--done {
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.1);
}

.fui-event-status--cancelled {
    color: #fda4af;
    border-color: rgba(251, 113, 133, 0.35);
    background: rgba(244, 63, 94, 0.1);
}

.fui-event-op-desc {
    margin: 0;
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.55;
    font-family: monospace;
}

.fui-event-op-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(34, 211, 238, 0.1);
    font-size: 0.82rem;
    color: #cbd5e1;
}

.fui-event-meta-label {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.fui-events-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background:
        repeating-linear-gradient(-45deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03) 8px, transparent 8px, transparent 16px),
        linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px dashed rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
}

.fui-events-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    font-size: 1.5rem;
}

.fui-events-empty p {
    margin: 0 0 0.5rem;
    color: #fff;
    letter-spacing: 0.25em;
    font-size: 0.9rem;
}

@media (max-width: 1099px) {
    .fui-events-manifest { position: static; }
    .fui-events-radar { max-width: 300px; }
}

@media (max-width: 640px) {
    .fui-events-telemetry { grid-template-columns: 1fr; }
}

/* —— Rules — Protocol Codex layout —— */
body.fui-rules-page {
    background: #020617;
    color: #22d3ee;
}

.fui-rules-main {
    background:
        radial-gradient(circle at 10% 15%, rgba(6, 182, 212, 0.05), transparent 40%),
        radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.04), transparent 38%);
}

#rules-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fui-rules-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fui-rules-hero-img {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(6, 182, 212, 0.1), transparent 50%),
        linear-gradient(125deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94));
}

.fui-rules-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
}

.fui-rules-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.5) 48%, rgba(2, 6, 23, 0.9) 100%);
}

.fui-rules-hero-glow {
    position: absolute;
    right: 8%;
    top: 18%;
    width: min(40vw, 400px);
    height: min(40vw, 400px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
    filter: blur(44px);
    animation: fui-vault-glow-pulse 5s ease-in-out infinite;
}

.fui-rules-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fui-rules-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }
}

.fui-rules-hero-panel,
.fui-rules-briefing {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-rules-seal-reveal {
    opacity: 0;
    transform: scale(0.9) rotate(-4deg);
    filter: blur(10px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, filter 0.9s ease 0.15s;
}

body.fui-boot-complete .fui-rules-hero-panel.fui-visible,
body.fui-boot-complete .fui-rules-briefing.fui-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

body.fui-boot-complete .fui-rules-seal-reveal.fui-visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
}

body.fui-rules-page #fuiRulesBadge.fui-badge-booting {
    animation: fui-badge-pulse 1.2s ease-in-out infinite;
}

.fui-rules-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fui-rules-pillar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.fui-rules-pillar i {
    color: #22d3ee;
    width: 1.1rem;
    text-align: center;
}

/* Compliance seal */
.fui-rules-seal {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.fui-rules-seal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.28);
    pointer-events: none;
}

.fui-rules-seal-ring--outer {
    inset: 0;
    border-style: double;
    animation: fui-vault-spin 24s linear infinite;
}

.fui-rules-seal-ring--inner {
    inset: 18%;
    border-color: rgba(34, 211, 238, 0.45);
    animation: fui-vault-spin 14s linear infinite reverse;
}

.fui-rules-seal-core {
    position: absolute;
    inset: 30%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border: 2px solid rgba(34, 211, 238, 0.5);
    background: rgba(2, 6, 23, 0.85);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.2), inset 0 0 24px rgba(6, 182, 212, 0.08);
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.fui-rules-seal-core i {
    font-size: 1.4rem;
    color: rgba(34, 211, 238, 0.7);
    margin-bottom: 0.15rem;
}

.fui-rules-seal-count {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.fui-rules-seal-label {
    font-size: 0.52rem;
    letter-spacing: 0.3em;
    color: rgba(34, 211, 238, 0.65);
}

.fui-rules-seal-stamp {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    padding: 0.25rem 0.65rem;
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: rgba(34, 211, 238, 0.55);
    border: 1px solid rgba(34, 211, 238, 0.25);
    text-transform: uppercase;
    font-family: monospace;
}

.fui-rules-telemetry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(2, 6, 23, 0.65);
    padding: 0.5rem;
    backdrop-filter: blur(8px);
}

@media (min-width: 768px) {
    .fui-rules-telemetry { grid-template-columns: repeat(4, 1fr); }
}

.fui-rules-kpi,
.fui-rules-telemetry-cell {
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s),
        transform 0.45s ease calc(var(--fui-stagger-i, 0) * 0.08s);
}

.fui-rules-kpi.fui-rules-kpi-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-rules-telemetry-key {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.fui-rules-telemetry-val {
    display: block;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
}

/* Codex section */
.fui-rules-codex {
    border-top: 1px solid rgba(34, 211, 238, 0.08);
    background: #020617;
}

.fui-rules-codex-icon {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    position: relative;
    flex-shrink: 0;
}

.fui-rules-codex-icon::before,
.fui-rules-codex-icon::after {
    content: '';
    position: absolute;
    background: rgba(34, 211, 238, 0.45);
}

.fui-rules-codex-icon::before {
    inset: 6px 4px;
    width: 2px;
}

.fui-rules-codex-icon::after {
    top: 8px;
    left: 8px;
    right: 4px;
    height: 2px;
    box-shadow: 0 6px 0 rgba(34, 211, 238, 0.35), 0 12px 0 rgba(34, 211, 238, 0.2);
}

.fui-rules-codex-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 1100px) {
    .fui-rules-codex-layout {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
}

.fui-rules-sidebar {
    padding: 1.25rem;
    position: sticky;
    top: 5.5rem;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.07), rgba(2, 6, 23, 0.96)) !important;
    border-color: rgba(34, 211, 238, 0.18) !important;
}

.fui-rules-sidebar.fui-scroll-pending {
    opacity: 0;
    transform: translateX(-20px);
}

.fui-rules-sidebar.fui-scroll-visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fui-rules-sidebar-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #22d3ee;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.fui-rules-search-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.15);
    margin-bottom: 0.85rem;
}

.fui-rules-search-field i {
    color: #64748b;
    font-size: 0.8rem;
}

.fui-rules-search-field input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.85rem;
}

.fui-rules-search-field input::placeholder {
    color: #64748b;
}

.fui-rules-field-label {
    display: block;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.fui-rules-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(34, 211, 238, 0.15);
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.82rem;
    outline: none;
}

.fui-rules-select:focus {
    border-color: rgba(34, 211, 238, 0.45);
}

.fui-rules-clear-link {
    display: block;
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #22d3ee;
    text-decoration: none;
}

.fui-rules-clear-link:hover {
    color: #fff;
}

.fui-rules-toc {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(34, 211, 238, 0.1);
    max-height: min(50vh, 420px);
    overflow-y: auto;
}

.fui-rules-toc-head {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    color: #64748b;
    margin-bottom: 0.65rem;
}

.fui-rules-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fui-rules-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fui-rules-toc-link:hover,
.fui-rules-toc-link.is-active {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(34, 211, 238, 0.2);
}

.fui-rules-toc-link.is-active .fui-rules-toc-num {
    color: #22d3ee;
}

.fui-rules-toc-num {
    flex-shrink: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    color: #64748b;
    letter-spacing: 0.1em;
}

.fui-rules-toc-title {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.fui-rules-sidebar-note {
    margin-top: 1rem;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #475569;
}

/* Codex articles */
.fui-rules-articles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fui-codex-article,
.fui-rule-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem 1.3rem 1.35rem;
    background: linear-gradient(165deg, rgba(6, 182, 212, 0.05) 0%, rgba(2, 6, 23, 0.98) 55%) !important;
    border: 1px solid rgba(34, 211, 238, 0.14) !important;
    scroll-margin-top: 6rem;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.fui-codex-article:hover,
.fui-rule-card:hover {
    border-color: rgba(34, 211, 238, 0.38) !important;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 182, 212, 0.08);
    transform: translateY(-2px);
}

.fui-codex-article.fui-card-hover-scramble,
.fui-rule-card.fui-card-hover-scramble {
    border-color: rgba(34, 211, 238, 0.55) !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.1), inset 0 0 24px rgba(0, 240, 255, 0.04) !important;
}

.fui-codex-bracket {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(34, 211, 238, 0.4);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.fui-codex-bracket--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.fui-codex-bracket--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.fui-codex-bracket--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.fui-codex-bracket--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.fui-codex-scan {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.22), transparent);
    transform: translateY(-110%);
    opacity: 0;
}

.fui-codex-scan.is-active {
    opacity: 1;
    animation: fui-vault-scan-drop 0.65s ease-out forwards;
}

.fui-codex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.fui-codex-article-id {
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    color: #22d3ee;
}

.fui-codex-category {
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    color: #94a3b8;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(6, 182, 212, 0.05);
}

.fui-codex-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.35;
}

.fui-codex-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.fui-codex-copy {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #22d3ee;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.fui-codex-copy:hover {
    background: rgba(6, 182, 212, 0.18);
    color: #fff;
}

.fui-codex-gavel {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(34, 211, 238, 0.55);
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(0, 0, 0, 0.25);
}

/* Rule content typography */
.fui-codex-body.rule-content {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.65;
    font-family: monospace;
}

.fui-codex-body.rule-content p {
    margin: 0 0 0.75rem;
}

.fui-codex-body.rule-content ul,
.fui-codex-body.rule-content ol {
    margin: 0.5rem 0 1rem;
    padding-left: 0;
    list-style: none;
}

.fui-codex-body.rule-content li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.1rem;
    border-left: 2px solid rgba(34, 211, 238, 0.15);
    margin-bottom: 0.35rem;
}

.fui-codex-body.rule-content li::before {
    content: '›';
    position: absolute;
    left: 0.25rem;
    color: #22d3ee;
    font-weight: 700;
}

.fui-codex-body.rule-content strong,
.fui-codex-body.rule-content b {
    color: #f1f5f9;
    font-weight: 700;
}

.fui-codex-body.rule-content a {
    color: #22d3ee;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fui-codex-body.rule-content a:hover {
    color: #67e8f9;
}

.fui-codex-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.fui-codex-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.fui-codex-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fui-codex-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.fui-rules-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background:
        repeating-linear-gradient(-45deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03) 8px, transparent 8px, transparent 16px),
        linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px dashed rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
}

.fui-rules-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    font-size: 1.5rem;
}

.fui-rules-empty p {
    margin: 0 0 0.5rem;
    color: #fff;
    letter-spacing: 0.25em;
    font-size: 0.9rem;
}

@media (max-width: 1099px) {
    .fui-rules-sidebar { position: static; }
    .fui-rules-seal { max-width: 280px; }
    .fui-rules-toc { max-height: none; }
}

@media (max-width: 640px) {
    .fui-rules-telemetry { grid-template-columns: 1fr; }
    .fui-codex-header { flex-direction: column; }
}

/* —— Members — Squad Roster layout —— */
body.fui-members-page {
    background: #020617;
    color: #22d3ee;
}

.fui-members-main {
    background:
        radial-gradient(circle at 8% 20%, rgba(6, 182, 212, 0.05), transparent 42%),
        radial-gradient(circle at 92% 78%, rgba(6, 182, 212, 0.04), transparent 38%);
}

#members-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fui-members-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fui-members-hero-img {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 32%, rgba(6, 182, 212, 0.12), transparent 50%),
        linear-gradient(125deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94));
}

.fui-members-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
}

.fui-members-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.5) 48%, rgba(2, 6, 23, 0.9) 100%);
}

.fui-members-hero-glow {
    position: absolute;
    right: 6%;
    top: 16%;
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
    filter: blur(44px);
    animation: fui-vault-glow-pulse 5s ease-in-out infinite;
}

.fui-members-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fui-members-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }
}

.fui-members-hero-panel,
.fui-members-briefing {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-members-ring-reveal {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, filter 0.9s ease 0.15s;
}

body.fui-boot-complete .fui-members-hero-panel.fui-visible,
body.fui-boot-complete .fui-members-briefing.fui-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

body.fui-boot-complete .fui-members-ring-reveal.fui-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

body.fui-members-page #fuiMembersBadge.fui-badge-booting {
    animation: fui-badge-pulse 1.2s ease-in-out infinite;
}

.fui-members-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fui-members-pillar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    color: #94a3b8;
    font-size: 0.82rem;
    font-family: monospace;
    border-bottom: 1px solid rgba(34, 211, 238, 0.06);
}

.fui-members-pillar i {
    width: 1.75rem;
    text-align: center;
    color: #22d3ee;
    font-size: 0.85rem;
}

/* Roster ring */
.fui-members-roster-ring {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.fui-members-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.22);
    pointer-events: none;
}

.fui-members-ring--outer {
    inset: 0;
    border-style: dashed;
    animation: fui-vault-spin 22s linear infinite;
}

.fui-members-ring--mid {
    inset: 12%;
    border-color: rgba(34, 211, 238, 0.35);
    animation: fui-vault-spin 14s linear infinite reverse;
}

.fui-members-ring-core {
    position: absolute;
    inset: 26%;
    z-index: 2;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(2, 6, 23, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.22);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.fui-members-ring-core i {
    font-size: 1.5rem;
    color: rgba(34, 211, 238, 0.5);
    margin-bottom: 0.15rem;
}

.fui-members-ring-count {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.08em;
    line-height: 1;
}

.fui-members-ring-label {
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    color: #64748b;
}

.fui-members-ring-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
    transform: rotate(calc(var(--dot-i) * 60deg)) translateY(-150px);
    animation: fui-members-dot-pulse 2.2s ease-in-out infinite;
    animation-delay: calc(var(--dot-i) * 0.35s);
}

@keyframes fui-members-dot-pulse {
    0%, 100% { opacity: 0.35; transform: rotate(calc(var(--dot-i) * 60deg)) translateY(-150px) scale(0.8); }
    50% { opacity: 1; transform: rotate(calc(var(--dot-i) * 60deg)) translateY(-150px) scale(1.2); }
}

/* Telemetry */
.fui-members-telemetry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(2, 6, 23, 0.6);
    padding: 0.85rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.fui-members-telemetry-cell {
    padding: 0.65rem 0.75rem;
    border-right: 1px solid rgba(34, 211, 238, 0.08);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fui-members-telemetry-cell:last-child { border-right: none; }

.fui-members-telemetry-cell.fui-members-kpi-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-members-telemetry-key {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.fui-members-telemetry-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.06em;
}

/* Roster section */
.fui-members-roster {
    background:
        linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.02) 30%, transparent);
}

.fui-members-roster-icon {
    width: 10px;
    height: 10px;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.fui-members-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(6, 182, 212, 0.05);
    font-family: monospace;
}

.fui-members-feedback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
    font-family: monospace;
    font-size: 0.85rem;
}

.fui-members-feedback i { color: #f87171; }

.fui-members-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background:
        repeating-linear-gradient(-45deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03) 8px, transparent 8px, transparent 16px),
        linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px dashed rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
}

.fui-members-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    font-size: 1.5rem;
}

.fui-members-empty p {
    margin: 0 0 0.5rem;
    color: #fff;
    letter-spacing: 0.25em;
    font-size: 0.9rem;
}

/* Polaroid gallery — FUI restyle */
.fui-members-polaroid-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    padding: 0.5rem 0 2rem;
}

.fui-members-page .fui-member-card.polaroid {
    --m-accent-rgb: 6, 182, 212;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.15);
    padding: 12px 12px 44px;
    border-radius: 4px;
    box-shadow: 0 16px 55px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(34, 211, 238, 0.05);
    transform: rotate(var(--rotation));
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: zoom-in;
    position: relative;
    z-index: 1;
    user-select: none;
    overflow: hidden;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.fui-members-page .fui-member-card.polaroid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.08), transparent 45%);
    opacity: 0.9;
    pointer-events: none;
}

.fui-members-page .fui-member-card.polaroid:hover {
    transform: rotate(0deg) scale(1.06);
    z-index: 10;
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 20px 72px rgba(0, 0, 0, 0.7), 0 0 24px rgba(6, 182, 212, 0.15);
}

.fui-member-bracket {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(34, 211, 238, 0.5);
    border-style: solid;
    pointer-events: none;
    z-index: 3;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.fui-member-card:hover .fui-member-bracket { opacity: 1; }

.fui-member-bracket--tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.fui-member-bracket--tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.fui-member-bracket--bl { bottom: 38px; left: 6px; border-width: 0 0 2px 2px; }
.fui-member-bracket--br { bottom: 38px; right: 6px; border-width: 0 2px 2px 0; }

.fui-member-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.12), transparent);
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.fui-member-scan.is-active {
    opacity: 1;
    animation: fui-vault-scan-drop 0.65s ease-out forwards;
}

.fui-member-profile-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    padding: 0.2rem 0.4rem;
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.fui-members-page .polaroid-photo {
    width: var(--size, 180px);
    height: var(--size, 180px);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 2px;
    border: 1px solid rgba(34, 211, 238, 0.12);
    position: relative;
    z-index: 1;
}

.fui-members-page .polaroid-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15) contrast(1.05);
    transition: filter 0.3s ease;
}

.fui-members-page .fui-member-card:hover .polaroid-photo img {
    filter: grayscale(0) contrast(1.08);
}

.fui-members-page .polaroid-name {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    text-align: center;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    z-index: 2;
    font-family: monospace;
}

/* Member modal */
body.fui-members-page > .member-zoom {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

body.fui-members-page > .member-zoom.is-open {
    display: flex;
}

.fui-member-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 220ms ease;
}

.fui-member-modal.is-open .fui-member-modal-backdrop,
.member-zoom.is-open .fui-member-modal-backdrop {
    opacity: 1;
}

.fui-member-modal-panel {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    transform: scale(0.96);
    opacity: 0;
    width: min(88vw, 560px);
    max-height: calc(100vh - 36px);
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(34, 211, 238, 0.28);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(6, 182, 212, 0.08);
    overflow: hidden;
    transition: transform 220ms ease, opacity 220ms ease;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.member-zoom.is-open .fui-member-modal-panel {
    transform: scale(1);
    opacity: 1;
}

.fui-member-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(6, 182, 212, 0.04);
}

.fui-member-modal-title {
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-family: monospace;
}

.fui-member-modal-close {
    appearance: none;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(6, 182, 212, 0.08);
    color: #22d3ee;
    width: 40px;
    height: 40px;
    border-radius: 0;
    cursor: pointer;
    font-size: 20px;
    line-height: 40px;
    text-align: center;
    transition: background 0.18s ease, border-color 0.18s ease;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.fui-member-modal-close:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(34, 211, 238, 0.45);
    color: #fff;
}

.fui-member-modal-body {
    padding: 14px;
    overflow: auto;
    max-height: calc(100vh - 140px);
}

.fui-member-modal-img-wrap {
    border: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.fui-member-modal-img-wrap img {
    width: 100%;
    height: min(56vh, 420px);
    display: block;
    object-fit: contain;
}

.fui-member-modal-details {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.fui-member-modal-fullname {
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-family: monospace;
}

.fui-member-modal-nationality {
    color: #64748b;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-family: monospace;
}

.fui-member-modal-bio {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    font-family: monospace;
}

.fui-member-modal-actions {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.fui-member-modal-actions .member-zoom-profile-btn {
    display: none;
    text-decoration: none;
}

@media (max-width: 640px) {
    .fui-members-telemetry { grid-template-columns: 1fr 1fr; }
    .fui-members-polaroid-gallery { gap: 14px; }
    .fui-members-page .fui-member-card.polaroid {
        padding: 10px 10px 38px;
        transform: rotate(calc(var(--rotation) * 0.55));
    }
    .fui-members-page .fui-member-card.polaroid:hover { transform: rotate(0deg) scale(1.04); }
    .fui-members-page .polaroid-photo {
        width: min(var(--size, 180px), 140px);
        height: min(var(--size, 180px), 140px);
    }
    .fui-members-page .polaroid-name { bottom: 10px; font-size: 0.72rem; }
    .fui-members-ring-dot { transform: rotate(calc(var(--dot-i) * 60deg)) translateY(-120px); }
}

@media (max-width: 380px) {
    .fui-members-page .polaroid-photo {
        width: min(var(--size, 180px), 122px);
        height: min(var(--size, 180px), 122px);
    }
    .fui-members-telemetry { grid-template-columns: 1fr; }
}

/* —— Gallery — Visual Archive layout —— */
body.fui-gallery-page {
    background: #020617;
    color: #22d3ee;
}

.fui-gallery-main {
    background:
        radial-gradient(circle at 10% 18%, rgba(6, 182, 212, 0.05), transparent 42%),
        radial-gradient(circle at 90% 82%, rgba(6, 182, 212, 0.04), transparent 38%);
}

#gallery-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fui-gallery-hero--compact {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.fui-gallery-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fui-gallery-hero-img {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(6, 182, 212, 0.11), transparent 50%),
        linear-gradient(125deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94));
}

.fui-gallery-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
}

.fui-gallery-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.5) 48%, rgba(2, 6, 23, 0.9) 100%);
}

.fui-gallery-hero-glow {
    position: absolute;
    right: 8%;
    top: 18%;
    width: min(40vw, 400px);
    height: min(40vw, 400px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
    filter: blur(44px);
    animation: fui-vault-glow-pulse 5s ease-in-out infinite;
}

.fui-gallery-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fui-gallery-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }
}

.fui-gallery-hero-panel,
.fui-gallery-briefing {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-gallery-core-reveal {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, filter 0.9s ease 0.15s;
}

body.fui-boot-complete .fui-gallery-hero-panel.fui-visible,
body.fui-boot-complete .fui-gallery-briefing.fui-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

body.fui-boot-complete .fui-gallery-core-reveal.fui-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

body.fui-gallery-page #fuiGalleryBadge.fui-badge-booting {
    animation: fui-badge-pulse 1.2s ease-in-out infinite;
}

.fui-gallery-pillars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fui-gallery-pillar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    color: #94a3b8;
    font-size: 0.82rem;
    font-family: monospace;
    border-bottom: 1px solid rgba(34, 211, 238, 0.06);
}

.fui-gallery-pillar i {
    width: 1.75rem;
    text-align: center;
    color: #22d3ee;
    font-size: 0.85rem;
}

/* Frame core visual */
.fui-gallery-frame-core {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.fui-gallery-frame-ring {
    position: absolute;
    border-radius: 4px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    pointer-events: none;
    transform: rotate(0deg);
}

.fui-gallery-frame-ring--outer {
    inset: 0;
    border-style: dashed;
    animation: fui-vault-spin 24s linear infinite;
}

.fui-gallery-frame-ring--mid {
    inset: 10%;
    border-color: rgba(34, 211, 238, 0.35);
    animation: fui-vault-spin 16s linear infinite reverse;
}

.fui-gallery-frame-center {
    position: absolute;
    inset: 22%;
    z-index: 2;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(2, 6, 23, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.fui-gallery-frame-center > i {
    font-size: 1.6rem;
    color: rgba(34, 211, 238, 0.5);
    margin-bottom: 0.15rem;
}

.fui-gallery-frame-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(0.4) contrast(1.1);
}

.fui-gallery-frame-count,
.fui-gallery-frame-label {
    position: relative;
    z-index: 1;
}

.fui-gallery-frame-count {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.08em;
    line-height: 1;
}

.fui-gallery-frame-label {
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    color: #64748b;
}

/* Telemetry */
.fui-gallery-telemetry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(2, 6, 23, 0.6);
    padding: 0.85rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.fui-gallery-telemetry-cell {
    padding: 0.65rem 0.75rem;
    border-right: 1px solid rgba(34, 211, 238, 0.08);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    min-width: 0;
}

.fui-gallery-telemetry-cell:last-child { border-right: none; }

.fui-gallery-telemetry-cell.fui-gallery-kpi-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-gallery-telemetry-key {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.fui-gallery-telemetry-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.06em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fui-gallery-telemetry-val.text-sm { font-size: 0.95rem; }

/* Content section */
.fui-gallery-content {
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.02) 30%, transparent);
}

.fui-gallery-archive-icon {
    width: 10px;
    height: 10px;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.fui-gallery-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
    border: 1px solid rgba(34, 211, 238, 0.15);
    background: rgba(6, 182, 212, 0.05);
    font-family: monospace;
}

.fui-gallery-feedback {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
    font-family: monospace;
    font-size: 0.85rem;
}

.fui-gallery-feedback i { color: #f87171; margin-top: 0.15rem; }

.fui-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background:
        repeating-linear-gradient(-45deg, rgba(6, 182, 212, 0.03), rgba(6, 182, 212, 0.03) 8px, transparent 8px, transparent 16px),
        linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.98));
    border: 1px dashed rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
}

.fui-gallery-empty-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    font-size: 1.5rem;
}

.fui-gallery-empty p {
    margin: 0 0 0.5rem;
    color: #fff;
    letter-spacing: 0.25em;
    font-size: 0.9rem;
}

/* Vault album cards */
.fui-gallery-vault-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .fui-gallery-vault-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .fui-gallery-vault-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .fui-gallery-vault-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.fui-gallery-vault-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.12);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.fui-gallery-vault-card:hover {
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(6, 182, 212, 0.12);
}

.fui-gallery-vault-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(34, 211, 238, 0.45);
    border-style: solid;
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.fui-gallery-vault-card:hover .fui-gallery-vault-bracket { opacity: 1; }

.fui-gallery-vault-bracket--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.fui-gallery-vault-bracket--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.fui-gallery-vault-bracket--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.fui-gallery-vault-bracket--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.fui-gallery-vault-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.fui-gallery-vault-scan.is-active {
    opacity: 1;
    animation: fui-vault-scan-drop 0.65s ease-out forwards;
}

.fui-gallery-vault-cover {
    position: relative;
    height: 10rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
}

.fui-gallery-page .fui-gallery-img-wrap .fui-img-target,
.fui-gallery-page .fui-gallery-img-wrap img.fui-img-target {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    transform: scale(1);
    filter: grayscale(1) saturate(0.75) brightness(0.92);
    transition: filter 0.85s ease, transform 0.4s ease, opacity 0.5s ease;
}

.fui-gallery-page .fui-gallery-vault-cover.fui-gallery-img-wrap {
    min-height: 10rem;
}

.fui-gallery-page .fui-gallery-img-wrap.fui-img-loading.fui-gallery-decoding .fui-img-target {
    opacity: 0;
    transform: scale(1.04);
    filter: blur(8px) brightness(0.4);
}

.fui-gallery-page .fui-gallery-img-wrap.fui-img-loaded .fui-img-target {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(1) saturate(0.75) brightness(0.92);
}

.fui-gallery-page .fui-gallery-img-wrap.fui-gallery-hover-color .fui-img-target {
    filter: grayscale(0) saturate(1.08) brightness(1) !important;
    transform: scale(1.04);
}

.fui-gallery-vault-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fui-gallery-vault-card:hover .fui-gallery-vault-cover img {
    transform: none;
}

.fui-gallery-vault-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #475569;
    font-size: 2rem;
}

.fui-gallery-vault-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.92) 100%);
    pointer-events: none;
}

.fui-gallery-vault-meta {
    position: relative;
    z-index: 2;
    padding: 0.85rem 1rem 1rem;
    display: grid;
    gap: 0.35rem;
}

.fui-gallery-vault-id {
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: #22d3ee;
}

.fui-gallery-vault-title {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
}

.fui-gallery-vault-count {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    color: #64748b;
    text-transform: uppercase;
}

/* Masonry FUI overrides */
.fui-gallery-masonry-shell {
    border: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(2, 6, 23, 0.5);
    padding: 1rem;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

@media (min-width: 640px) {
    .fui-gallery-masonry-shell { padding: 1.25rem 1.5rem; }
}

.fui-gallery-page .fui-gallery-masonry {
    --thumb-radius: 4px;
    --gap: 12px;
    --thumb-filter: grayscale(1) saturate(0.75) brightness(0.92);
    --thumb-brightness: 1;
    --thumb-contrast: 1;
    --modal-bg: rgba(2, 6, 23, 0.88);
}

.fui-gallery-page .fui-gallery-masonry .mz-tile__media img {
    filter: grayscale(1) saturate(0.75) brightness(0.92);
    transition: filter 0.85s ease, transform 0.25s ease;
}

.fui-gallery-page .fui-gallery-img-wrap.fui-gallery-hover-color img.fui-img-target {
    filter: grayscale(0) saturate(1.08) brightness(1) !important;
}

.fui-gallery-page .fui-gallery-tile {
    position: relative;
    border-radius: var(--thumb-radius);
    border-color: rgba(34, 211, 238, 0.12);
    background: rgba(2, 6, 23, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.fui-gallery-page .fui-gallery-tile:hover {
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.1);
}

.fui-gallery-page .fui-gallery-tile .mz-tile__media.fui-gallery-img-wrap {
    position: relative;
    overflow: hidden;
}

.fui-gallery-tile-scan {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.12), transparent);
    transform: translateY(-100%);
    pointer-events: none;
    opacity: 0;
}

.fui-gallery-tile-scan.is-active {
    opacity: 1;
    animation: fui-vault-scan-drop 0.65s ease-out forwards;
}

/* Gallery modal FUI */
body.fui-gallery-page > .fui-gallery-modal,
body.fui-gallery-page > .mz-modal.fui-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    pointer-events: none;
}

body.fui-gallery-page > .fui-gallery-modal[aria-hidden='false'],
body.fui-gallery-page > .mz-modal.fui-gallery-modal[aria-hidden='false'] {
    display: block;
    pointer-events: auto;
}

.fui-gallery-page .fui-gallery-modal .mz-modal__content {
    border-radius: 4px;
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(2, 6, 23, 0.92);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.75), 0 0 40px rgba(6, 182, 212, 0.08);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.fui-gallery-page .fui-gallery-modal .mz-modal__close {
    border-radius: 0;
    border-color: rgba(34, 211, 238, 0.25);
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.fui-gallery-page .fui-gallery-modal .mz-modal__close:hover {
    background: rgba(6, 182, 212, 0.22);
    border-color: rgba(34, 211, 238, 0.5);
    color: #fff;
}

@media (max-width: 640px) {
    .fui-gallery-telemetry { grid-template-columns: 1fr 1fr; }
    .fui-gallery-frame-core { width: min(100%, 260px); }
}

@media (max-width: 380px) {
    .fui-gallery-telemetry { grid-template-columns: 1fr; }
}

/* —— Leaderboard — Combat Scoreboard layout —— */
body.fui-leaderboard-page {
    background: #020617;
    color: #22d3ee;
    --lb-accent-rgb: 6, 182, 212;
}

.fui-lb-main {
    background:
        radial-gradient(circle at 12% 20%, rgba(6, 182, 212, 0.05), transparent 42%),
        radial-gradient(circle at 88% 78%, rgba(6, 182, 212, 0.04), transparent 38%);
}

#leaderboard-hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fui-lb-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fui-lb-hero-img {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 28%, rgba(6, 182, 212, 0.12), transparent 50%),
        linear-gradient(125deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.94));
}

.fui-lb-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
}

.fui-lb-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.5) 48%, rgba(2, 6, 23, 0.9) 100%);
}

.fui-lb-hero-glow {
    position: absolute;
    right: 6%;
    top: 16%;
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
    filter: blur(44px);
    animation: fui-vault-glow-pulse 5s ease-in-out infinite;
}

.fui-lb-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .fui-lb-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }
}

.fui-lb-hero-panel,
.fui-lb-briefing {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.fui-lb-core-reveal {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition: opacity 0.9s ease 0.15s, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s, filter 0.9s ease 0.15s;
}

body.fui-boot-complete .fui-lb-hero-panel.fui-visible,
body.fui-boot-complete .fui-lb-briefing.fui-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

body.fui-boot-complete .fui-lb-core-reveal.fui-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

body.fui-leaderboard-page #fuiLeaderboardBadge.fui-badge-booting {
    animation: fui-badge-pulse 1.2s ease-in-out infinite;
}

/* Score core */
.fui-lb-score-core {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.fui-lb-score-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.22);
    pointer-events: none;
}

.fui-lb-score-ring--outer {
    inset: 0;
    border-style: dashed;
    animation: fui-vault-spin 22s linear infinite;
}

.fui-lb-score-ring--mid {
    inset: 12%;
    border-color: rgba(34, 211, 238, 0.35);
    animation: fui-vault-spin 14s linear infinite reverse;
}

.fui-lb-score-center {
    position: absolute;
    inset: 22%;
    z-index: 2;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(2, 6, 23, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.2);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.fui-lb-score-rank {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: #ffd700;
}

.fui-lb-score-name {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: #94a3b8;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fui-lb-score-kills {
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.fui-lb-score-label {
    font-size: 0.5rem;
    letter-spacing: 0.28em;
    color: #64748b;
}

/* Tabs */
.fui-lb-tab.switch-btn {
    padding: 0.55rem 1rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(6, 182, 212, 0.05);
    color: #94a3b8;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.fui-lb-tab.switch-btn:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: #fff;
}

.fui-lb-tab.switch-btn.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(34, 211, 238, 0.55);
    color: #fff;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

/* Telemetry */
.fui-lb-telemetry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(2, 6, 23, 0.6);
    padding: 0.85rem;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.fui-lb-telemetry-cell {
    padding: 0.65rem 0.75rem;
    border-right: 1px solid rgba(34, 211, 238, 0.08);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fui-lb-telemetry-cell:last-child { border-right: none; }

.fui-lb-telemetry-cell.fui-lb-kpi-visible {
    opacity: 1;
    transform: translateY(0);
}

.fui-lb-telemetry-key {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.fui-lb-telemetry-val {
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.06em;
}

/* Content */
.fui-lb-content {
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.02) 30%, transparent);
}

.leaderboard-section { display: none; }
.leaderboard-section.active { display: block; }

.fui-lb-error {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #fecaca;
    font-family: monospace;
    text-align: center;
}

/* Podium */
.fui-lb-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fui-lb-podium-card {
    position: relative;
    padding: 1.1rem;
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.12);
    overflow: hidden;
    --accent: var(--lb-accent-rgb);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.fui-lb-podium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(var(--accent), 0.9);
}

.fui-lb-podium-card[data-rank="1"] {
    --accent: 255, 215, 0;
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.12);
    transform: translateY(-6px);
}

.fui-lb-podium-card[data-rank="2"] { --accent: 192, 192, 192; border-color: rgba(192, 192, 192, 0.35); }
.fui-lb-podium-card[data-rank="3"] { --accent: 205, 127, 50; border-color: rgba(205, 127, 50, 0.4); }

.fui-lb-podium-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-4px);
}

.fui-lb-podium-card[data-rank="1"]:hover { transform: translateY(-8px); }

.fui-lb-podium-bracket {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(34, 211, 238, 0.45);
    border-style: solid;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.fui-lb-podium-card:hover .fui-lb-podium-bracket { opacity: 1; }

.fui-lb-podium-bracket--tl { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.fui-lb-podium-bracket--tr { top: 6px; right: 6px; border-width: 2px 2px 0 0; }

.fui-lb-podium-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transform: translateY(-100%);
    pointer-events: none;
    opacity: 0;
}

.fui-lb-podium-scan.is-active {
    opacity: 1;
    animation: fui-vault-scan-drop 0.65s ease-out forwards;
}

.podium-rank { font-size: 0.75rem; color: #64748b; }
.podium-name { font-size: 1.1rem; font-weight: 900; color: #fff; margin: 0.5rem 0 0.35rem; }
.podium-metric { font-size: 0.95rem; font-weight: 800; color: #22d3ee; }
.podium-meta { margin-top: 0.5rem; font-size: 0.8rem; color: #64748b; }

/* Terminal table */
.fui-lb-terminal {
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid rgba(34, 211, 238, 0.12);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.fui-lb-terminal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
    gap: 0.75rem;
    flex-wrap: wrap;
}

.fui-lb-terminal-head h2 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.table-note { color: #64748b; font-size: 0.8rem; }

.fui-lb-search {
    padding: 0.5rem 0.85rem;
    min-width: 200px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(6, 182, 212, 0.05);
    color: #fff;
    font-family: monospace;
    font-size: 0.8rem;
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.fui-lb-search:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

.fui-lb-table-scroll { overflow-x: auto; }

.fui-lb-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.fui-lb-table thead {
    background: rgba(6, 182, 212, 0.08);
}

.fui-lb-table th {
    text-align: left;
    padding: 0.85rem 1.1rem;
    font-weight: 900;
    color: #94a3b8;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-family: monospace;
}

.fui-lb-table td {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid rgba(34, 211, 238, 0.06);
    color: #cbd5e1;
    font-size: 0.9rem;
}

.fui-lb-table tbody tr.fui-lb-row {
    transition: background 0.2s ease;
}

.fui-lb-table tbody tr.fui-lb-row:hover {
    background: rgba(6, 182, 212, 0.06);
}

.fui-lb-table tbody tr.rank-1 { background: rgba(255, 215, 0, 0.06); }
.fui-lb-table tbody tr.rank-2 { background: rgba(192, 192, 192, 0.04); }
.fui-lb-table tbody tr.rank-3 { background: rgba(205, 127, 50, 0.06); }

.rank-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 900;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: monospace;
}

.rank-chip.rank-1 { color: #ffd700; border-color: rgba(255, 215, 0, 0.4); background: rgba(255, 215, 0, 0.12); }
.rank-chip.rank-2 { color: #d9d9d9; border-color: rgba(192, 192, 192, 0.35); background: rgba(192, 192, 192, 0.1); }
.rank-chip.rank-3 { color: #d19a66; border-color: rgba(205, 127, 50, 0.35); background: rgba(205, 127, 50, 0.1); }

.player-name {
    font-weight: 900;
    color: #22d3ee;
    display: inline-block;
    margin-right: 0.5rem;
}

.fui-lb-details-btn {
    margin-left: 0.5rem;
    padding: 0.25rem 0.65rem;
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(6, 182, 212, 0.08);
    color: #22d3ee;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    font-family: monospace;
    transition: background 0.18s ease, color 0.18s ease;
}

.fui-lb-details-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #fff;
}

.fui-lb-details-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.table-empty {
    text-align: center;
    color: #64748b;
    padding: 1.25rem;
    border: 1px dashed rgba(34, 211, 238, 0.15);
    font-family: monospace;
}

.table-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(34, 211, 238, 0.08);
    flex-wrap: wrap;
}

.pagination-btn,
.pagination-number {
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(6, 182, 212, 0.05);
    color: #94a3b8;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.6rem;
    font-family: monospace;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.pagination-btn:hover,
.pagination-number:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: #fff;
}

.pagination-number.active {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(34, 211, 238, 0.5);
    color: #fff;
}

.pagination-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.fui-lb-refresh-btn { font-family: monospace; }

/* Hall of fame */
.fui-lb-hall-content { padding: 1.1rem; }

.fui-lb-hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.fui-lb-hof-card {
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(34, 211, 238, 0.12);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.fui-lb-hof-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
}

.hof-head {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.hof-head h3 {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Orbitron', sans-serif;
}

.hof-note { color: #64748b; font-size: 0.75rem; font-family: monospace; }

.hof-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.1rem 1.1rem;
    display: grid;
    gap: 0.5rem;
}

.hof-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(34, 211, 238, 0.08);
    background: rgba(6, 182, 212, 0.03);
}

.hof-left { display: flex; gap: 0.65rem; align-items: center; min-width: 0; }

.hof-rank {
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: #22d3ee;
    font-weight: 900;
    font-size: 0.65rem;
    font-family: monospace;
}

.hof-name {
    color: #22d3ee;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-size: 0.85rem;
}

.hof-value { color: #fff; font-weight: 900; font-family: monospace; font-size: 0.85rem; }

.hof-empty { color: #64748b; padding: 1rem 1.1rem; font-family: monospace; font-size: 0.85rem; }

/* Panel loader — Hall da Fama / block sync */
.fui-panel-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 2rem 1.25rem;
}

.fui-panel-loader-shell {
    position: relative;
    width: min(100%, 360px);
    padding: 2rem 1.5rem 1.75rem;
    background:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        rgba(2, 6, 23, 0.92);
    background-size: 16px 16px, 16px 16px, auto;
    border: 1px solid rgba(34, 211, 238, 0.22);
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.08), inset 0 0 0 1px rgba(34, 211, 238, 0.06);
}

.fui-panel-loader-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(34, 211, 238, 0.5);
    border-style: solid;
    pointer-events: none;
    z-index: 2;
}

.fui-panel-loader-bracket--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.fui-panel-loader-bracket--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.fui-panel-loader-bracket--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.fui-panel-loader-bracket--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.fui-panel-loader-shell .fui-img-loader-scan {
    opacity: 1;
}

.fui-panel-loader-icon {
    position: relative;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: rgba(34, 211, 238, 0.7);
    font-size: 1.25rem;
    background: rgba(6, 182, 212, 0.08);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    animation: fui-panel-loader-pulse 2s ease-in-out infinite;
}

@keyframes fui-panel-loader-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(34, 211, 238, 0); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.25); transform: scale(1.04); }
}

.fui-panel-loader-shell .fui-img-loader-label {
    position: relative;
    z-index: 2;
    margin: 0 0 0.85rem;
}

.fui-panel-loader-shell .fui-img-loader-bar {
    position: relative;
    z-index: 2;
    width: min(200px, 70%);
    margin: 0 auto 0.85rem;
}

.fui-panel-loader-track {
    position: relative;
    z-index: 2;
    width: min(240px, 85%);
    height: 6px;
    margin: 0 auto;
    display: flex;
    gap: 2px;
}

.fui-panel-loader-track .fui-segment {
    flex: 1;
    height: 100%;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.fui-panel-loader-track .fui-segment.is-active {
    background: rgba(34, 211, 238, 0.85);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.fui-lb-hall-content .fui-panel-loader {
    min-height: 320px;
}

/* Debug */
.fui-lb-debug {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(2, 6, 23, 0.8);
}

.fui-lb-debug-body {
    margin-top: 0.85rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: pre-wrap;
}

.killfeed-title { font-size: 1rem; font-weight: 900; color: #fff; text-transform: uppercase; }
.killfeed-sub { color: #64748b; font-size: 0.85rem; margin-top: 0.25rem; }

/* Details modal */
body.fui-leaderboard-page > .details-modal.fui-lb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(12px);
}

body.fui-leaderboard-page > .details-modal.fui-lb-modal.active {
    display: flex;
}

.fui-lb-modal-panel {
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(2, 6, 23, 0.96);
    border: 1px solid rgba(34, 211, 238, 0.28);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.75), 0 0 40px rgba(6, 182, 212, 0.08);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.fui-lb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(6, 182, 212, 0.04);
}

.fui-lb-modal-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: monospace;
}

.fui-lb-modal-close {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: #22d3ee;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.fui-lb-modal-close:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #fff;
}

.fui-lb-modal-body {
    padding: 1.25rem;
    display: grid;
    gap: 1.1rem;
}

.details-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 0.85rem;
}

.details-block,
.details-card {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.1);
    padding: 1rem;
}

.details-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #64748b;
    margin-bottom: 0.35rem;
    font-family: monospace;
}

.details-value { font-size: 1rem; font-weight: 900; color: #fff; }
.details-muted { margin-top: 0.35rem; font-size: 0.8rem; color: #64748b; font-family: monospace; }

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

.details-card h4 {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: monospace;
}

.details-highlight {
    font-size: 1.25rem;
    font-weight: 900;
    color: #22d3ee;
    font-family: 'Orbitron', sans-serif;
}

.details-loading {
    text-align: center;
    color: #64748b;
    padding: 2rem 0;
    font-family: monospace;
}

@media (max-width: 900px) {
    .fui-lb-podium { grid-template-columns: 1fr; }
    .fui-lb-podium-card[data-rank="1"] { transform: none; }
    .details-top { grid-template-columns: 1fr; }
    .table-actions { width: 100%; }
    .fui-lb-search { width: 100%; min-width: unset; }
}

@media (max-width: 640px) {
    .fui-lb-telemetry { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
    .fui-lb-telemetry { grid-template-columns: 1fr; }
}

/* ── Back to top (with %) ── */
body.v2-theme.fui-page > .fui-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: auto;
    top: auto;
    z-index: 120000;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
    margin: 0;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(2, 6, 23, 0.78);
    color: rgba(226, 232, 240, 0.92);
    cursor: pointer;
    border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(6, 182, 212, 0.06);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body.v2-theme.fui-page > .fui-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

body.v2-theme.fui-page > .fui-to-top:hover {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(6, 182, 212, 0.1);
}

body.v2-theme.fui-page > .fui-to-top .fui-to-top-percent {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: #67e8f9;
}

body.v2-theme.fui-page > .fui-to-top .fui-to-top-icon {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(255, 255, 255, 0.03);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    color: rgba(226, 232, 240, 0.9);
}

@media (max-width: 640px) {
    body.v2-theme.fui-page > .fui-to-top {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.6rem 0.7rem;
    }
}
