@import url('auth-modal.css');

:root {
    --bg: #07090e;
    --bg-soft: #0a0e1a;
    --bg-card: rgba(10, 14, 25, 0.82);
    --text: #f7f5ff;
    --text-muted: #aaa6c2;
    --text-dim: #716d87;
    --primary: #a855f7;
    --primary-light: #c084fc;
    --secondary: #22d3ee;
    --accent: #f59e0b;
    --border: rgba(192, 132, 252, 0.18);
    --gradient-1: linear-gradient(135deg, #c084fc, #22d3ee);
    --gradient-2: linear-gradient(135deg, #a855f7, #ec4899);
    --font-body: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --transition: 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: smooth; 
    background-color: #07090e;
}
body { 
    background-color: var(--bg); 
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center top;
    color: var(--text); 
    font-family: var(--font-body); 
    line-height: 1.6; 
    overflow-x: hidden; 
    position: relative;
    min-height: 100vh;
}

/* Ambient Radial Glow at top matching Infrastructure page */
body::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 100%; 
    max-width: 1400px; 
    height: 600px; 
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.12) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 75%); 
    pointer-events: none; 
    z-index: 0; 
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 80px 0; position: relative; }
.section-dark { background: linear-gradient(180deg, rgba(10, 14, 25, 0.65), rgba(7, 9, 14, 0.80)); }
.section-gradient { background: linear-gradient(125deg, rgba(33, 17, 67, 0.75), rgba(18, 44, 72, 0.75) 55%, rgba(14, 24, 43, 0.75)); overflow: hidden; }
.section-header { max-width: 650px; margin: 0 auto 50px; text-align: center; }
.section-tag { display: inline-block; margin-bottom: 14px; color: var(--secondary); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-tag.light { color: #a5f3fc; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.03em; }
.section-header p { margin: 18px auto 0; max-width: 600px; color: var(--text-muted); font-size: 0.95rem; }

/* Preloader — Banner LUXA_ECOSYSTEM */
#preloader { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 10000; transition: opacity .5s, visibility .5s; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-content { text-align: center; }
.preloader-logo { 
    width: 220px; 
    max-width: 78vw;
    height: auto;
    object-fit: contain; 
    margin: 0 auto 20px; 
    animation: float 2s ease-in-out infinite; 
}
.preloader-bar { 
    width: 180px; 
    height: 3px; 
    border-radius: 5px; 
    background: var(--bg-card); 
    overflow: hidden; 
    margin: 0 auto;
}
.preloader-progress { width: 45%; height: 100%; background: var(--gradient-1); animation: loading 1.3s ease-in-out infinite; }

/* ============================================================
   NAVBAR — LUXA Ecosystem v3 (Modern Redesign)
   ============================================================ */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 12px 0;
    z-index: 1000;
    transition: var(--transition);
}
#navbar.scrolled {
    padding: 9px 0;
    background: rgba(6, 5, 16, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}
.nav-container {
    position: relative;
    width: min(1360px, calc(100% - 32px));
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Brand Logo */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 4px;
}
.nav-brand-logo {
    height: 34px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.nav-logo:hover .nav-brand-logo {
    transform: scale(1.02);
    filter: brightness(1.1);
}
@media (max-width: 640px) {
    .nav-brand-logo { height: 27px; max-width: 160px; }
}

/* On-Chain Search Bar */
.nav-search-wrapper {
    flex: 1;
    max-width: 260px;
    min-width: 120px;
    margin: 0 6px;
}
.nav-search-wrapper form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 204, 0.22);
    border-radius: 99px;
    padding: 5px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 34px;
}
.nav-search-wrapper form:focus-within {
    border-color: #00FFCC;
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.18);
}
.nav-search-wrapper input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 12px;
    font-family: var(--font-display);
}

/* ============================================================
   NAVIGATION LINKS
   ============================================================ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 auto 0 8px;
}
.nav-item {
    position: relative;
    list-style: none;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: #94a3b8;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 99px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    font-family: var(--font-body, 'Inter', sans-serif);
    height: 34px;
    box-sizing: border-box;
}
.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-dropdown.active > .nav-link,
.nav-dropdown.is-open > .nav-link,
.nav-dropdown.is-pinned > .nav-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
    color: #fff;
    background: rgba(0, 255, 204, 0.08);
    border-color: rgba(0, 255, 204, 0.28);
}

/* Coins special link */
.nav-link--coins {
    color: #e2e8f0;
}
.nav-link--coins:hover {
    color: #fff;
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.22);
}
.nav-coins-icon {
    font-size: 12px;
    color: #FFD700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.nav-link--coins:hover .nav-coins-icon {
    transform: rotate(15deg) scale(1.1);
}

/* LDEX special link */
.nav-link--ldex {
    color: #00FFCC;
    font-weight: 700;
}
.nav-link--ldex:hover {
    color: #00FFCC;
    background: rgba(0, 255, 204, 0.08);
    border-color: rgba(0, 255, 204, 0.25);
}
.nav-ldex-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 255, 204, 0.5));
    flex-shrink: 0;
}
.nav-badge--hybrid {
    background: rgba(0, 255, 204, 0.12);
    color: #00FFCC;
    font-size: 8.5px;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 204, 0.28);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

/* Dropdown chevron */
.nav-chevron {
    font-size: 8px;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}
.nav-item:hover .nav-chevron,
.nav-dropdown.active .nav-chevron,
.nav-dropdown.is-open .nav-chevron,
.nav-dropdown.is-pinned .nav-chevron {
    transform: rotate(180deg);
    color: #00FFCC;
}


/* Invisible Bridge between Navbar and Dropdown */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 24px;
    background: transparent;
    pointer-events: auto;
    display: none;
    z-index: 1040;
}
.nav-dropdown:hover::after,
.nav-dropdown.active::after,
.nav-dropdown.is-open::after,
.nav-dropdown.is-pinned::after {
    display: block;
}

/* Glassmorphic Cyber Dropdown */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 275px;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(10, 13, 26, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 255, 204, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dropdown-menu::-webkit-scrollbar {
    width: 4px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.35);
    border-radius: 4px;
}
.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 204, 0.7);
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -20px;
    right: -20px;
    height: 26px;
    background: transparent;
    pointer-events: auto;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.active .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu,
.nav-dropdown.is-pinned .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Individual Dropdown Item */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}
.dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dropdown-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dropdown-title {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    line-height: 1.25;
}

.dropdown-desc {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
}

/* ============================================================
   MEGA-MENU / CATEGORIZED SUB-MENUS (PRODUCTS & MULTI-CATEGORY)
   ============================================================ */
@media (min-width: 991px) {
    .nav-dropdown--mega {
        position: static;
    }
    .nav-dropdown--mega .dropdown-menu--mega {
        left: 50%;
        transform: translateX(-50%) translateY(8px);
        width: min(880px, calc(100% - 24px));
        max-width: 880px;
        min-width: unset;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 14px 16px 12px;
        border-radius: 18px;
        border: 1px solid rgba(0, 255, 204, 0.22);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92), 0 0 35px rgba(0, 255, 204, 0.12);
        max-height: calc(100vh - 85px);
        overflow-y: auto;
    }
    .nav-dropdown--mega .dropdown-menu--mega::before {
        content: '';
        position: absolute;
        top: -28px;
        left: -30px;
        right: -30px;
        height: 32px;
        background: transparent;
        pointer-events: auto;
    }
    .nav-dropdown--mega:hover .dropdown-menu--mega,
    .nav-dropdown--mega:focus-within .dropdown-menu--mega,
    .nav-dropdown--mega.active .dropdown-menu--mega,
    .nav-dropdown--mega.is-open .dropdown-menu--mega,
    .nav-dropdown--mega.is-pinned .dropdown-menu--mega {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Mega Menu Sub-category Grid (3 Columns) */
.dropdown-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* Sub-category Box / Column */
.dropdown-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.dropdown-category:hover {
    background: rgba(255, 255, 255, 0.038);
    border-color: rgba(0, 255, 204, 0.22);
}

/* Sub-category Header */
.dropdown-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}
.dropdown-category-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dropdown-category-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dropdown-category-title {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f1f5f9;
    line-height: 1.2;
    margin: 0;
}
.dropdown-category-desc {
    font-size: 9.5px;
    color: #64748b;
    line-height: 1.2;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dropdown-category-count {
    margin-left: auto;
    font-size: 9.5px;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sub-category Items List */
.dropdown-category-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dropdown-category-list .dropdown-item {
    padding: 6px 8px;
    border-radius: 8px;
    gap: 10px;
}
.dropdown-category-list .dropdown-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 7px;
}
.dropdown-category-list .dropdown-title {
    font-size: 0.80rem;
    font-weight: 600;
}
.dropdown-category-list .dropdown-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mega Menu Footer */
.dropdown-mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 2px;
}
.dropdown-mega-footer-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #94a3b8;
    font-family: var(--font-mono, monospace);
}
.dropdown-mega-footer-tag .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00FFCC;
    box-shadow: 0 0 8px #00FFCC;
    animation: pulseGlow 2s infinite ease-in-out;
}
.dropdown-mega-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #00FFCC;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}
.dropdown-mega-footer-link:hover {
    color: #fff;
    transform: translateX(3px);
}

/* ============================================================
   NAV ACTIONS — Uniform pill CTA buttons
   ============================================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 4px;
}

/* Shared pill base */
.nav-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-body, 'Inter', sans-serif);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.nav-action-btn:hover {
    transform: translateY(-1px);
}
.nav-action-btn:active {
    transform: scale(0.97);
}

/* Mining button — teal/cyan glow */
.nav-action-btn--mining {
    background: rgba(0, 255, 204, 0.12);
    border-color: rgba(0, 255, 204, 0.4);
    color: #00FFCC;
}
.nav-action-btn--mining:hover {
    background: rgba(0, 255, 204, 0.2);
    border-color: #00FFCC;
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.25);
    color: #00FFCC;
}

/* Connect button — gradient primary */
.nav-action-btn--connect {
    background: linear-gradient(135deg, #00FFCC, #38bdf8);
    border-color: transparent;
    color: #050a12;
}
.nav-action-btn--connect:hover {
    filter: brightness(1.08);
    box-shadow: 0 0 22px rgba(0, 255, 204, 0.35);
}

/* Small icon inside action button */
.nav-action-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Mobile Menu Grouping */
.mobile-nav-group { margin-bottom: 12px; }
.mobile-nav-header {
    font-size: 10px;
    font-family: var(--font-mono, monospace);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 6px 12px 2px;
    font-weight: 700;
}
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 13px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.mobile-menu a i { width: 16px; text-align: center; font-size: 12px; }



/* Buttons & Spacing */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    border: 1px solid transparent; 
    border-radius: 8px; 
    cursor: pointer; 
    font: 700 .82rem var(--font-body); 
    padding: 9px 16px; 
    transition: var(--transition); 
    white-space: nowrap;
}
.btn i { font-size: 0.9rem; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--gradient-2); }
.btn-outline { color: var(--text); border-color: var(--border); background: rgba(255,255,255,.03); }
.btn-outline:hover { border-color: var(--primary-light); background: rgba(168,85,247,.1); }
.btn-light { color: #171026; background: white; }
.btn-large { padding: 14px 26px; font-size: .88rem; }
.btn-xlarge { padding: 16px 30px; font-size: .92rem; }

/* ============================================================
   LUXA PRIVACY & COOKIE CONSENT BANNER (GLASSMORPHIC CYBER)
   ============================================================ */
.luxa-cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    width: calc(100vw - 32px);
    background: linear-gradient(165deg, rgba(14, 18, 36, 0.96), rgba(6, 8, 18, 0.98));
    border: 1.5px solid rgba(0, 255, 204, 0.4);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 255, 204, 0.15);
    border-radius: 18px;
    padding: 20px 22px;
    z-index: 999999;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.luxa-cookie-banner.is-visible {
    display: flex;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cookie-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
}

.cookie-title i {
    color: #00FFCC;
    font-size: 15px;
}

.cookie-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    color: #00FFCC;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.cookie-body {
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0;
    text-align: left;
}

.cookie-body strong {
    color: #cbd5e1;
}

.cookie-link {
    color: #00FFCC;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-link:hover {
    color: #fff;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cookie-accept {
    flex: 1.2;
    padding: 10px 14px;
    border-radius: 9px;
    background: linear-gradient(90deg, #0066FF, #00FFCC);
    color: #030712;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 255, 204, 0.25);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-cookie-accept:hover {
    filter: brightness(1.1);
    transform: scale(0.98);
}

.btn-cookie-essential {
    flex: 1;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-cookie-essential:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

@media (max-width: 640px) {
    .luxa-cookie-banner {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

/* Pulsante Web3 Connect Vault */
.btn-connect-vault {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 30px;
    border: 1.5px solid #00FFCC;
    background: rgba(0, 255, 204, 0.08);
    color: #00FFCC;
    font: 700 12px var(--font-display);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-connect-vault:hover {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 16px rgba(0, 255, 204, 0.35);
    color: #fff;
    transform: translateY(-2px);
}
.btn-connect-vault.is-connected {
    background: var(--bg-card);
    border-color: #4ade80;
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: .75rem;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.15);
}
.btn-connect-vault.is-connected::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.mobile-menu-toggle { display: none; width: 38px; height: 38px; border: 1px solid var(--border); background: transparent; border-radius: 6px; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); transition: var(--transition); }
.mobile-menu { display: none; }

/* Hero Section */
#hero { 
    min-height: 85vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
    padding: 130px 20px 70px; 
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; bottom: -10px; border-radius: 50%; background: var(--secondary); opacity: .35; animation: particle-rise linear infinite; }

.hero-content { 
    position: relative; 
    z-index: 1; 
    text-align: center; 
    max-width: 900px; 
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 9px; 
    margin-bottom: 22px; 
    padding: 7px 16px; 
    border: 1px solid var(--border); 
    border-radius: 30px; 
    color: var(--primary-light); 
    background: rgba(168,85,247,.08); 
    font-size: .75rem; 
    font-weight: 700; 
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }

.hero-title { 
    font-size: clamp(2.2rem, 5.5vw, 4.2rem); 
    letter-spacing: -.03em; 
    line-height: 1.15;
    margin: 0 auto 20px;
    max-width: 860px;
    word-break: break-word;
}
.gradient-text { color: transparent; background: var(--gradient-1); background-clip: text; -webkit-background-clip: text; }
.hero-desc { margin: 0 auto 30px; color: var(--text-muted); font-size: clamp(0.95rem, 2vw, 1.1rem); max-width: 650px; }
.hero-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

/* Social Bar Hero */
.hero-social-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 10px auto 25px;
}
.hero-social-bar span {
    color: var(--text-dim);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.social-row { display: flex; justify-content: center; gap: 12px; }
.social-btn, .footer-social a { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 42px; 
    height: 42px; 
    border: 1px solid var(--border); 
    border-radius: 50%; 
    color: var(--text-muted); 
    background: rgba(255, 255, 255, 0.02);
    font-size: 1.05rem;
    transition: var(--transition); 
}
.social-btn:hover, .footer-social a:hover { 
    color: #fff; 
    border-color: var(--primary-light);
    background: rgba(168, 85, 247, 0.2); 
    transform: translateY(-3px); 
}

/* Hero Stats */
.hero-stats { display: flex; justify-content: center; gap: 45px; margin-top: 25px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 25px; width: 100%; max-width: 650px; }
.stat { display: grid; gap: 3px; }
.stat-number { color: var(--text); font: 700 1.5rem var(--font-display); }
.hero-stats .stat-number.live-stat {
    font-size: clamp(1.1rem, 2.8vw, 1.45rem);
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
}
#statMiners, #statCountries {
    color: #4ade80;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
}
.stat-label { color: var(--text-dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }

/* Grid About */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.about-card, .token-card { padding: 26px 20px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(145deg, rgba(27,24,48,.8), rgba(14,13,28,.7)); transition: var(--transition); }
.about-card:hover, .token-card:hover { border-color: rgba(192,132,252,.4); transform: translateY(-3px); }
.about-icon, .token-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 10px; color: var(--secondary); background: rgba(34,211,238,.1); font-size: 1.15rem; }
.about-card h3, .token-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.about-card p, .token-desc { color: var(--text-muted); font-size: .85rem; }

/* Features */
.features-wrapper { display: grid; gap: 65px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.feature-row.reverse .feature-content { order: 2; }
.feature-number { margin-bottom: 14px; color: var(--secondary); font: 700 .8rem var(--font-display); letter-spacing: .15em; }
.feature-content h3 { margin-bottom: 16px; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.feature-content > p { color: var(--text-muted); font-size: .92rem; }
.feature-list { display: grid; gap: 9px; margin-top: 20px; color: #d8d4e7; font-size: .85rem; }
.feature-list i { width: 20px; color: #4ade80; }
.feature-visual { display: grid; place-items: center; }
.feature-card-visual { width: min(320px, 100%); min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); color: var(--text-muted); }
.mining-animation { position: relative; display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid rgba(245,158,11,.4); border-radius: 50%; color: var(--accent); font-size: 2.2rem; }
.coin-float { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: coin-float 3s infinite; }
.coin-float:nth-child(1) { top: 8px; left: 12px; }
.coin-float:nth-child(2) { top: 4px; right: 8px; animation-delay: 1s; }
.coin-float:nth-child(3) { bottom: 8px; right: 0; animation-delay: 2s; }
.wallet-visual { display: grid; place-items: center; width: 115px; height: 72px; border: 2px solid var(--primary-light); border-radius: 10px; color: var(--primary-light); font-size: 1.8rem; position: relative; }
.wallet-chip { position: absolute; top: 11px; left: 12px; width: 16px; height: 12px; border: 1px solid var(--primary-light); border-radius: 2px; }
.block-chain { display: flex; gap: 8px; }
.block { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--secondary); color: var(--secondary); background: rgba(34,211,238,.1); border-radius: 8px; }

/* Tokenomics */
.tokenomics-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 16px; }
.main-card { grid-row: span 2; }
.token-header { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.token-header img { width: 44px; height: 44px; border-radius: 50%; }
.token-status { color: #4ade80; font-size: .7rem; }
.token-stats { display: grid; gap: 18px; padding-top: 20px; }
.t-stat { display: flex; justify-content: space-between; gap: 12px; }
.t-label { color: var(--text-dim); font-size: .75rem; }
.t-value { color: var(--primary-light); font: 700 .88rem var(--font-display); text-align: right; }
.t-value small { color: var(--text-muted); font: 400 .65rem var(--font-body); }
.token-highlight { display: grid; gap: 3px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: .72rem; }
.token-highlight .big { color: var(--primary-light); font: 700 1.5rem var(--font-display); }
.tokenomics-note { display: flex; gap: 14px; margin-top: 22px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); font-size: .8rem; }
.tokenomics-note i { color: var(--secondary); font-size: 1.1rem; }

/* Roadmap */
.roadmap-timeline { position: relative; max-width: 800px; margin: auto; }
.timeline-line { position: absolute; top: 20px; bottom: 20px; left: 16px; width: 1px; background: var(--border); }
.roadmap-item { position: relative; display: grid; grid-template-columns: 35px 1fr; gap: 20px; padding-bottom: 45px; }
.roadmap-marker { position: relative; z-index: 1; display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg); }
.marker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); }
.active .marker-dot { background: var(--secondary); }
.roadmap-content { padding-top: 4px; }
.phase-label { color: var(--primary-light); font: 700 .75rem var(--font-display); }
.phase-status { float: right; color: #4ade80; font-size: .72rem; }
.phase-status.planned { color: var(--text-dim); }
.phase-status.in-progress { color: #00FFCC; }
.roadmap-content h3 { margin: 8px 0 12px; font-size: 1.45rem; }
.roadmap-content ul { display: grid; gap: 6px; color: var(--text-muted); font-size: .85rem; }
.roadmap-content li::before { content: '>'; margin-right: 8px; color: var(--secondary); }

/* Whitepaper & CTA */
.whitepaper-wrapper { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.whitepaper-content h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.whitepaper-content p { max-width: 500px; margin: 18px 0 22px; color: #c4c3d5; font-size: .92rem; }
.whitepaper-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.meta-item { display: flex; align-items: center; gap: 6px; color: #c4c3d5; font-size: .72rem; }
.meta-item i { color: #a5f3fc; }
.whitepaper-visual { display: grid; place-items: center; }
.doc-preview { width: 240px; padding: 12px; background: rgba(255,255,255,.08); transform: rotate(4deg); }
.doc-page { min-height: 300px; padding: 20px 16px; background: #f7f7fb; color: #19172a; }
.doc-header { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #d8d6e3; padding-bottom: 12px; font: 700 .55rem var(--font-display); }
.doc-header img { width: 22px; border-radius: 50%; }
.doc-lines { display: grid; gap: 11px; margin-top: 25px; }
.doc-line { height: 4px; width: 80%; background: #dddbe7; }
.doc-line.long { width: 100%; height: 10px; background: #b8a3d8; }
.doc-line.medium { width: 65%; }
.doc-line.short { width: 45%; }
.doc-footer { margin-top: 80px; color: #9692a8; font-size: .52rem; }

.cta-wrapper { max-width: 780px; margin: auto; padding: 50px 24px; border: 1px solid var(--border); border-radius: 12px; text-align: center; background: var(--bg-card); }
.cta-logo { width: 55px; margin: 0 auto 16px; border-radius: 50%; }
.cta-wrapper h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-wrapper p { max-width: 520px; margin: 16px auto 26px; color: var(--text-muted); font-size: .92rem; }

/* Footer */
#footer { background: #05050b; }
.footer-top { padding: 60px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px 48px; }
.footer-brand > p { max-width: 320px; margin: 16px 0; color: var(--text-dim); font-size: .8rem; }
.footer-social { display: flex; gap: 8px; }
.footer-links h4 { margin-bottom: 14px; font-size: .85rem; }
.footer-links ul { display: grid; gap: 10px; }
.footer-links a { color: var(--text-dim); font-size: .82rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.06); color: var(--text-dim); font-size: .7rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; }
.disclaimer { max-width: 520px; text-align: right; }

#backToTop { 
    position: fixed; 
    right: 30px; 
    bottom: 90px; 
    width: 40px; 
    height: 40px; 
    border: 1px solid var(--border); 
    border-radius: 50%; 
    background: var(--bg-card); 
    color: var(--text); 
    cursor: pointer; 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition); 
    z-index: 500; 
}
#backToTop.visible { 
    opacity: 1 !important; 
    visibility: visible !important; 
}

/* Keyframes */
@keyframes loading { 0% { transform: translateX(-150%); } 100% { transform: translateX(330%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes particle-rise { to { transform: translateY(-105vh); opacity: 0; } }
@keyframes coin-float { 50% { transform: translateY(-20px) translateX(8px); opacity: .3; } }

/* Mobile & Tablet Responsive Queries */
@media (max-width: 990px) {
    .nav-links { display: none; }
    .nav-search-wrapper { display: none !important; }
    .nav-actions .btn:not(#luxa-login-btn) { display: none; }
    .nav-actions .nav-action-btn--mining { display: none !important; }
    #luxa-login-btn { display: inline-flex !important; font-size: 11px; padding: 6px 12px; }
    .mobile-menu-toggle { display: flex !important; }
    .mobile-menu { position: fixed; top: 68px; left: 16px; right: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: rgba(14,13,28,.97); z-index: 999; }
    .mobile-menu.open { display: block; }
    .mobile-menu ul { display: grid; gap: 4px; }
    .mobile-menu a { display: block; padding: 10px; color: var(--text-muted); }
    .mobile-menu .btn { text-align: center; color: white; margin-top: 8px; }
    
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .tokenomics-grid { grid-template-columns: repeat(2, 1fr); }
    .main-card { grid-column: span 2; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: span 3; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 32px); }
    .section { padding: 55px 0; }
    #hero { padding: 110px 16px 50px; min-height: auto; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.7rem); }
    .hero-desc { font-size: .88rem; }
    .hero-stats { gap: 16px; }
    .stat-number { font-size: 1.15rem; }
    .stat-label { font-size: .55rem; }

    /* Social hero: 2 neat centered rows (4 + 4) */
    .hero-social-bar {
        margin: 14px auto 24px !important;
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
    }
    .hero-social-bar span {
        display: block !important;
        text-align: center !important;
        font-size: 0.72rem !important;
    }
    .social-row {
        display: grid !important;
        grid-template-columns: repeat(4, 42px) !important;
        justify-content: center !important;
        gap: 12px 14px !important;
        max-width: 240px !important;
        margin: 0 auto !important;
    }
    .social-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.05rem !important;
    }

    /* Footer Social links in 2 neat rows (3 + 3) */
    .footer-social {
        display: grid !important;
        grid-template-columns: repeat(3, 40px) !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-top: 14px !important;
    }
    .footer-social a {
        width: 40px !important;
        height: 40px !important;
    }

    .feature-row, .whitepaper-wrapper { grid-template-columns: 1fr; gap: 35px; }
    .feature-row.reverse .feature-content { order: initial; }
    .feature-row.reverse .feature-visual { order: 2; }
    .tokenomics-grid { grid-template-columns: 1fr; }
    .main-card { grid-column: auto; }
    .t-stat { flex-direction: column; gap: 2px; }
    .t-value { text-align: left; }
    .phase-status { float: none; display: block; margin-top: 4px; }
    .whitepaper-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-brand { grid-column: span 2; }
    .footer-links:last-child { grid-column: span 2; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .disclaimer { text-align: center; }
}

/* ===== Legal pages (terms / privacy) ===== */
.legal-hero { padding: 150px 20px 40px; text-align: center; background: radial-gradient(ellipse at top, rgba(168,85,247,0.10), transparent 60%); }
.legal-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.legal-hero .last-updated { margin-top: 10px; color: var(--text-dim); font-size: .8rem; }
.legal-card { max-width: 860px; margin: 0 auto; padding: 36px 34px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.legal-card h2 { font-size: 1.05rem; color: var(--secondary); margin: 26px 0 10px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p, .legal-card li { color: var(--text-muted); font-size: .88rem; }
.legal-card ul { margin: 8px 0 12px 20px; list-style: disc; }
.legal-card li { margin-bottom: 6px; }
.legal-card li::before { content: none; }
.legal-notice { margin: 20px 0; padding: 14px 18px; border-radius: 10px; background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.35); color: #f1e6b8; font-size: .82rem; }
.legal-contact { margin-top: 28px; padding: 18px 20px; border-radius: 12px; background: rgba(34,211,238,0.06); border: 1px solid rgba(34,211,238,0.3); }
.legal-contact .lbl { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.legal-contact a { color: var(--secondary); font-weight: 700; }
.legal-footer { text-align: center; margin: 26px 0 50px; color: var(--text-dim); font-size: .72rem; }

.kyc-hero-banner-wrap {
    width: 100%;
    margin: 20px 0 35px;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid rgba(0, 255, 204, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 255, 204, 0.1);
    background: #05050e;
}

.kyc-hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== Explorer page ===== */
.explorer-hero { padding: 150px 20px 40px; text-align: center; background: radial-gradient(ellipse at top, rgba(34,211,238,0.10), transparent 60%); }
.explorer-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.explorer-hero p { color: var(--text-muted); font-size: .9rem; margin-top: 8px; }
.explorer-search { display: flex; max-width: 640px; margin: 26px auto 0; gap: 10px; }
.explorer-search input { flex: 1; padding: 13px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text); font: 400 .85rem var(--font-body); outline: none; }
.explorer-search input:focus { border-color: var(--secondary); }
.explorer-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1000px; margin: 40px auto; }
.explorer-stat { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); text-align: center; }
.explorer-stat .es-label { font-size: .68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.explorer-stat .es-value { font: 700 1.25rem var(--font-display); color: var(--secondary); margin-top: 4px; font-variant-numeric: tabular-nums; }
.explorer-panel { max-width: 1000px; margin: 0 auto 60px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.explorer-panel h3 { padding: 16px 20px; font-size: .95rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.explorer-panel h3 i { color: var(--secondary); font-size: .85rem; }
.ex-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.ex-table th { text-align: left; padding: 12px 20px; color: var(--text-dim); font-weight: 600; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); }
.ex-table td { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-muted); }
.ex-table tr:last-child td { border-bottom: none; }
.mono { font-family: 'Courier New', monospace; color: var(--secondary); }
.badge-ok { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: .64rem; font-weight: 700; background: rgba(74,222,128,0.12); color: #4ade80; }
@media (max-width: 760px) { .explorer-stats { grid-template-columns: repeat(2, 1fr); } .ex-table th:nth-child(3), .ex-table td:nth-child(3) { display: none; } }

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVE OPTIMIZATION (SUB-PAGES & SMARTPHONES)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Navbar: hide top search bar on smartphones to protect brand logo spacing
          (search is comfortably accessible inside the mobile drawer menu) */
    #navbar .nav-search-wrapper {
        display: none !important;
    }

    #navbar .nav-container,
    .nav-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        gap: 8px !important;
    }

    .nav-logo {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .nav-brand-logo {
        height: 26px !important;
        max-width: 135px !important;
        width: auto !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .nav-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    /* On mobile, move Mining inside drawer menu and keep ONLY Connect button in top navbar */
    .nav-actions .nav-action-btn--mining {
        display: none !important;
    }

    #luxa-login-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 11px !important;
        border-radius: 99px !important;
        flex-shrink: 0 !important;
    }

    .luxa-nav-user-pill {
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        border-radius: 99px !important;
        max-width: 130px !important;
        flex-shrink: 0 !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        border: 1px solid var(--border) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        box-sizing: border-box !important;
        cursor: pointer !important;
    }

    .mobile-menu-toggle span {
        display: block !important;
        width: 16px !important;
        height: 2px !important;
        margin: 2px auto !important;
        background: var(--text) !important;
    }

    /* 2. Forza tutte le griglie a 1 colonna impilata (sovrascrive anche gli stili inline di about.html) */
    .about-grid,
    .tokenomics-grid,
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* 3. Hero delle pagine interne (About, KYC, Insights, Explorer) */
    .legal-hero,
    .explorer-hero {
        padding: 95px 16px 25px !important;
    }

    .legal-hero h1,
    .explorer-hero h1 {
        font-size: clamp(1.6rem, 6.5vw, 2.1rem) !important;
        line-height: 1.2 !important;
    }

    /* 4. Schede di testo e container di lettura (KYC, Insights, Terms) */
    .legal-card {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }

    .legal-card h2 {
        font-size: 1.15rem !important;
        margin: 22px 0 8px !important;
    }

    /* 5. Timeline di About.html: sposta i margini evitando tagli e scroll orizzontali */
    div[style*="border-left:2px solid"] {
        padding-left: 20px !important;
        margin-left: 10px !important;
    }

    div[style*="border-left:2px solid"] > div > div[style*="left:-37px"] {
        left: -27px !important;
    }

    /* 6. Explorer tables and metric boxes on smartphones */
    .hero-search-bar {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-search-bar input {
        width: 100% !important;
        padding: 12px 18px !important;
        font-size: 13px !important;
    }

    .hero-search-bar .btn-primary {
        width: 100% !important;
        padding: 12px !important;
        justify-content: center !important;
    }

    .overview-grid {
        grid-template-columns: 1fr !important;
    }

    .roadmap-item {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 12px;
        padding-bottom: 32px;
    }

    .roadmap-content {
        min-width: 0;
    }

    .roadmap-content h3 {
        font-size: 1.15rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .roadmap-content ul {
        font-size: .8rem;
        padding-left: 0;
    }

    .roadmap-content li {
        overflow-wrap: anywhere;
    }

    .about-milestone-phase3 h3 {
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .about-milestone-phase3 p {
        line-height: 1.55;
        overflow-wrap: anywhere;
    }

    .table-card {
        padding: 16px 12px !important;
        border-radius: 14px !important;
    }

    .table-scroll {
        margin-top: 16px !important;
        border-radius: 10px !important;
    }

    /* 7. Banner illustrativi responsive */
    .kyc-hero-banner-wrap,
    .neural-concept-frame {
        border-radius: 12px !important;
        margin: 14px 0 24px !important;
    }
}

/* ==========================================================================
   MODAL POP-UP WEB3 CONNECT & ACCOUNT OVERVIEW (LUXA VAULT INTEGRATION)
   ========================================================================== */
.luxa-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 7, 17, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.luxa-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}
.luxa-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: min(440px, calc(100% - 32px));
    padding: 26px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(168, 85, 247, 0.15);
    color: var(--text);
    transform: translateY(20px) scale(0.98);
    transition: transform var(--transition);
}
.luxa-modal-backdrop.is-open .luxa-modal-card {
    transform: translateY(0) scale(1);
}
.luxa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.luxa-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.luxa-modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.luxa-modal-close:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* Profilo Utente Connesso */
.vault-user-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, rgba(27,24,48,.8), rgba(14,13,28,.7));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.vault-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--secondary);
    background: var(--bg);
}
.vault-user-meta h4 {
    font-size: .92rem;
    color: var(--text);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vault-user-meta span {
    font-size: .72rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Griglia Metriche del Vault */
.vault-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.vault-stat-box {
    background: rgba(8, 7, 17, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}
.vault-stat-box label {
    display: block;
    font-size: .65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.vault-stat-box strong {
    font-family: 'Courier New', monospace;
    font-size: .95rem;
    color: var(--secondary);
}

/* Azioni Pulsanti Modale */
.modal-btn-action {
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    font: 700 .82rem var(--font-body);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
}
.modal-btn-action:hover {
    transform: translateY(-2px);
}
.btn-disconnect {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}
.btn-disconnect:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
}
.btn-install {
    background: var(--gradient-1);
    color: #080711;
    font-weight: 800;
}
.btn-install:hover {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
    color: #080711;
}

/* ============================================================
   FOUNDER DUAL-IDENTITY CARD (HOVER SWAP: REAL PHOTO -> NFT)
   ============================================================ */
.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 440px;
    width: 100%;
    background: rgba(7, 9, 20, 0.85);
    border: 1.5px solid rgba(0, 255, 204, 0.25);
    border-radius: 24px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-4px);
    border-color: #FFD700;
    box-shadow: 0 20px 45px rgba(255, 215, 0, 0.15), 0 0 25px rgba(0, 255, 204, 0.1);
}

.founder-avatar-frame {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid #00FFCC;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    margin-bottom: 20px;
    cursor: pointer;
    background: #030712;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.founder-card:hover .founder-avatar-frame {
    border-color: #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.45);
}

.avatar-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-real {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.photo-nft {
    opacity: 0;
    transform: scale(1.1);
    filter: contrast(1.1) brightness(1.1);
    z-index: 2;
}

.founder-card:hover .photo-real {
    opacity: 0;
    transform: scale(0.92);
}

.founder-card:hover .photo-nft {
    opacity: 1;
    transform: scale(1);
}

.relic-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(3, 7, 18, 0.9);
    border: 1px solid #00FFCC;
    color: #00FFCC;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.8px;
    white-space: nowrap;
    z-index: 3;
    transition: all 0.3s ease;
}

.founder-card:hover .relic-indicator {
    border-color: #FFD700;
    color: #FFD700;
}

.avatar-scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 204, 0.3), transparent);
    pointer-events: none;
    z-index: 3;
}

.founder-card:hover .avatar-scanline {
    animation: sweep 1s ease-in-out infinite;
}

@keyframes sweep {
    0% { top: -100%; }
    100% { top: 100%; }
}

.founder-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #00FFCC;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.founder-name {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px;
}

.founder-role {
    color: #FFD700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.founder-bio {
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.founder-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0a66c2;
    color: #ffffff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-linkedin:hover {
    background: #084e96;
    transform: translateY(-2px);
}

.social-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-chip:hover {
    background: rgba(0, 255, 204, 0.15);
    border-color: #00FFCC;
    color: #00FFCC;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .founder-card { padding: 24px 18px; }
    .founder-actions { flex-wrap: wrap; }
}

/* ============================================================
   FOUNDER & LEAD ARCHITECT — Editorial v2
   ============================================================ */
#founder { overflow: hidden; }
#founder::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(168,85,247,0.14), transparent 65%);
    pointer-events: none;
}

.founder-layout {
    display: grid;
    grid-template-columns: minmax(340px, 420px) 1fr;
    gap: 28px;
    align-items: start;
}

/* ---------- Identity Card ---------- */
.founder-card-v2 {
    position: relative;
    background: linear-gradient(160deg, rgba(21,19,38,0.95), rgba(8,7,17,0.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: var(--transition);
}
.founder-card-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(140deg, rgba(34,211,238,0.55), transparent 35%, transparent 65%, rgba(168,85,247,0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.founder-card-v2:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,0.6), 0 0 30px rgba(34,211,238,0.12); }

.founder-avatar-frame-v2 {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 0 auto 22px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(34,211,238,0.7);
    box-shadow: 0 0 30px rgba(34,211,238,0.25), inset 0 0 20px rgba(0,0,0,0.4);
    background: #030712;
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.founder-avatar-frame-v2:hover {
    border-color: #FFD700;
    box-shadow: 0 0 40px rgba(255,215,0,0.35), inset 0 0 20px rgba(0,0,0,0.4);
}

.founder-card-v2 .avatar-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.founder-card-v2 .photo-real {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.founder-card-v2 .photo-nft {
    opacity: 0;
    transform: scale(1.1);
    filter: contrast(1.1) brightness(1.1);
    z-index: 2;
}

.founder-card-v2:hover .photo-real {
    opacity: 0;
    transform: scale(0.92);
}

.founder-card-v2:hover .photo-nft {
    opacity: 1;
    transform: scale(1);
}
.avatar-glow {
    position: absolute; inset: -3px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(34,211,238,0.5), transparent 30%);
    animation: avatar-rotate 6s linear infinite;
    z-index: 0;
}
@keyframes avatar-rotate { to { transform: rotate(360deg); } }

.founder-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 2.5px;
    color: var(--secondary);
    border: 1px solid rgba(34,211,238,0.35);
    background: rgba(34,211,238,0.07);
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.founder-name-v2 {
    font-size: 1.65rem;
    color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.founder-verified { color: #4ade80; font-size: 1.15rem; }
.founder-role-v2 {
    color: #FFD700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}
.founder-bio-v2 { color: var(--text-muted); font-size: 0.86rem; line-height: 1.7; margin-bottom: 24px; }
.founder-bio-v2 code { color: var(--secondary); font-size: 0.78rem; }

.founder-actions-v2 { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-linkedin-v2 {
    display: inline-flex; align-items: center; gap: 8px;
    background: #0a66c2; color: #fff;
    font-size: 12.5px; font-weight: 700;
    padding: 10px 18px; border-radius: 10px;
    transition: 0.2s ease;
}
.btn-linkedin-v2:hover { background: #084e96; transform: translateY(-2px); }
.social-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1; cursor: pointer; transition: 0.2s ease;
    font-size: 0.95rem;
}
.social-chip:hover { background: rgba(34,211,238,0.15); border-color: var(--secondary); color: var(--secondary); transform: translateY(-2px); }

/* ---------- Dossier (right column) ---------- */
.founder-dossier { display: grid; gap: 20px; }

.dossier-statusbar { display: flex; flex-wrap: wrap; gap: 10px; }
.dossier-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    padding: 6px 13px; border-radius: 999px;
}
.dossier-chip.live { color: #4ade80; border-color: rgba(74,222,128,0.4); background: rgba(74,222,128,0.07); }
.dossier-chip.mono { color: var(--secondary); }

.founder-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.fmetric {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 14px;
    background: linear-gradient(145deg, rgba(27,24,48,0.8), rgba(14,13,28,0.7));
    transition: var(--transition);
}
.fmetric:hover { border-color: rgba(192,132,252,0.4); transform: translateY(-3px); }
.fmetric-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.fmetric-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }

.founder-principles {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 26px;
    background: rgba(21,19,38,0.6);
}
.founder-principles h4 {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; color: var(--text); margin-bottom: 18px;
}
.founder-principles h4 i { color: var(--secondary); }
.founder-principles ul { display: grid; gap: 16px; }
.founder-principles li { display: flex; gap: 14px; align-items: flex-start; }
.founder-principles li > i {
    width: 36px; height: 36px; flex: 0 0 36px;
    display: grid; place-items: center;
    border-radius: 10px; font-size: 0.9rem;
    color: var(--secondary); background: rgba(34,211,238,0.1);
}
.founder-principles strong { display: block; font-size: 0.85rem; color: var(--text); margin-bottom: 2px; }
.founder-principles p { font-size: 0.78rem; color: var(--text-muted); }

.founder-quote {
    position: relative;
    border-left: 3px solid var(--primary);
    border-radius: 0 14px 14px 0;
    padding: 22px 26px;
    background: linear-gradient(90deg, rgba(168,85,247,0.08), transparent 70%);
}
.founder-quote > i { color: var(--primary-light); font-size: 1.2rem; margin-bottom: 10px; display: block; }
.founder-quote p { font-family: var(--font-display); font-size: 0.98rem; color: #e8e5f5; line-height: 1.6; margin-bottom: 10px; }
.founder-quote span { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.06em; }

/* ============================================================
   FOUNDER SIDEBAR — off-canvas dossier
   ============================================================ */
.luxa-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(8,7,17,0.7);
    backdrop-filter: blur(6px);
    z-index: 10002;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.luxa-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

.luxa-sidebar {
    position: fixed; top: 0; right: 0;
    width: min(360px, 92vw);
    height: 100dvh;
    background: linear-gradient(180deg, #151326, #0b0a18);
    border-left: 1px solid var(--border);
    z-index: 10003;
    display: flex; flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -20px 0 50px rgba(0,0,0,0.55);
}
.luxa-sidebar.open { transform: translateX(0); }

.luxa-sidebar-header {
    display: flex; align-items: center; gap: 13px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border);
}
.sidebar-avatar-mini { position: relative; width: 46px; height: 46px; flex: 0 0 46px; }
.sidebar-avatar-mini img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--secondary);
}
.sidebar-online {
    position: absolute; bottom: 1px; right: 1px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #4ade80; border: 2px solid #0b0a18;
}
.luxa-sidebar-header h4 { font-size: 0.92rem; color: var(--text); }
.luxa-sidebar-header span { font-size: 0.7rem; color: var(--primary-light); }
.luxa-sidebar-header .luxa-modal-close { margin-left: auto; }

.luxa-sidebar-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: grid; gap: 22px; align-content: start; }
.sidebar-section { display: grid; gap: 9px; }
.sidebar-label {
    font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--text-dim); margin-bottom: 2px;
}
.sidebar-kv {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    font-size: 0.78rem;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 9px;
    background: rgba(8,7,17,0.5);
    color: var(--text-muted);
}
.sidebar-kv strong { color: var(--text); font-size: 0.74rem; }
.sidebar-kv .mono { color: var(--secondary); }


/* ---------- LUXA Agent AI (Master Shared Cyberpunk Glassmorphism Widget) ---------- */
.luxa-agent-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 1.5px solid rgba(0, 242, 254, 0.45);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #8774e1, #100b2e 85%);
    box-shadow: 0 10px 32px rgba(135, 116, 225, 0.45), 0 0 24px rgba(0, 242, 254, 0.28);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    cursor: pointer;
    overflow: visible !important;
}
.luxa-agent-fab:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 14px 40px rgba(135, 116, 225, 0.65), 0 0 32px rgba(0, 242, 254, 0.55);
}
.luxa-agent-fab .fab-pulse-ring {
    position: absolute;
    inset: -6px;
    border: 1.5px solid rgba(0, 242, 254, 0.55);
    border-radius: 50%;
    animation: fab-glow-pulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
}
@keyframes fab-glow-pulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    50% { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0.85; }
}
.luxa-agent-fab img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}
.luxa-agent-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 2px solid #080711;
    border-radius: 999px;
    background: #ff3366;
    color: #ffffff;
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(255, 51, 102, 0.75);
    pointer-events: none;
    animation: badge-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.luxa-agent-badge[hidden],
.luxa-agent-prompt[hidden] {
    display: none !important;
}
@keyframes badge-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Prompt Teaser */
.luxa-agent-prompt {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 9998;
    display: grid;
    gap: 8px;
    width: min(320px, calc(100vw - 40px));
    padding: 16px 38px 16px 18px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 16px;
    background: rgba(14, 18, 30, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 242, 254, 0.12);
    color: #e2e8f0;
    animation: agent-prompt-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.luxa-agent-prompt .prompt-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.luxa-agent-prompt .prompt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 8px #00f2fe;
}
.luxa-agent-prompt strong { color: #ffffff; font-size: 0.92rem; font-weight: 700; }
.luxa-agent-prompt span { color: #94a3b8; font-size: 0.82rem; line-height: 1.45; }
.luxa-agent-prompt-open {
    justify-self: start;
    margin-top: 4px;
    padding: 8px 14px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #060a12;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.luxa-agent-prompt-open:hover { transform: translateY(-1px); }
.luxa-agent-prompt-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.luxa-agent-prompt-close:hover { color: #ffffff; }
@keyframes agent-prompt-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

/* Master Chat Modal Window */
.luxa-agent-modal {
    position: fixed;
    right: 28px;
    bottom: 96px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    width: 430px;
    max-width: calc(100vw - 32px);
    height: 620px;
    max-height: calc(100dvh - 110px);
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.28);
    border-radius: 22px;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.luxa-agent-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.luxa-sheet-handle {
    display: none;
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    margin: 8px auto 2px auto;
    cursor: pointer;
}

/* Modal Header */
.luxa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(16, 22, 38, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.agent-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(0, 242, 254, 0.6);
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.12);
    overflow: visible;
    flex-shrink: 0;
}
.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.agent-avatar .status-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #0a0e1a;
    background: #00f2fe;
    box-shadow: 0 0 10px #00f2fe;
}
.agent-title-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.agent-title {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}
.agent-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}
.agent-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 1px 7px;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.4;
}
.agent-sub-pill i {
    font-size: 0.64rem;
    color: #00f2fe;
}
.agent-sub-pill.chain-pill {
    border-color: rgba(0, 242, 254, 0.35);
    background: rgba(0, 242, 254, 0.08);
    padding: 0;
}
.agent-sub-pill.chain-pill code {
    border: none;
    background: transparent;
    padding: 1px 6px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.7rem;
    color: #00f2fe;
    white-space: nowrap;
}

/* Header Actions */
.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.header-action-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-action-btn:hover {
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.12);
    transform: translateY(-1px);
}
.header-action-btn.close-action-btn:hover {
    color: #ff4d6d;
    border-color: rgba(255, 77, 109, 0.45);
    background: rgba(255, 77, 109, 0.12);
}

/* 9-Languages Strip */
.luxa-lang-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.06), rgba(135, 116, 225, 0.06));
    border-bottom: 1px solid rgba(0, 242, 254, 0.12);
    font-size: 0.72rem;
}
.lang-strip-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.lang-strip-icon {
    color: #00f2fe;
    font-size: 0.78rem;
}
.lang-chips-row {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.lang-chips-row::-webkit-scrollbar { display: none; }
.lang-chips-row span {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 242, 254, 0.1);
    color: #00f2fe;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Chat Messages Container */
.luxa-chat-messages {
    display: flex;
    flex: 1 1 0%;
    min-height: 0;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto !important;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 242, 254, 0.35) rgba(0, 0, 0, 0.25);
}
.luxa-chat-messages::-webkit-scrollbar { width: 6px; }
.luxa-chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
}
.luxa-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.35);
    border-radius: 999px;
}
.luxa-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.65);
}
.chat-bubble {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: normal;
    animation: bubble-in 0.25s ease both;
}
@keyframes bubble-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.chat-bubble p { margin: 0 0 8px 0; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble ul, .agent-intro-list {
    margin: 6px 0;
    padding-left: 18px;
}
.chat-bubble li {
    margin-bottom: 4px;
    line-height: 1.45;
}
.cyan-highlight {
    color: #00f2fe;
}

/* Monospace & Code Tags (NEVER WRAP HYPHENS) */
.luxa-agent-modal code,
.chat-bubble code,
.mono-tag {
    display: inline-block;
    white-space: nowrap !important;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: #00f2fe !important;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.76rem;
    line-height: 1.25;
    vertical-align: baseline;
}
.user-bubble {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, #00f2fe, #8774e1);
    color: #050811;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}
.agent-bubble {
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom-left-radius: 4px;
    background: rgba(22, 28, 44, 0.78);
    color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Quick Prompt Chips */
.luxa-quick-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    overflow-x: auto;
    padding: 10px 16px;
    background: rgba(14, 18, 30, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.luxa-quick-chips::-webkit-scrollbar { display: none; }
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 13px;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 999px;
    background: rgba(0, 242, 254, 0.06);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.chip-btn i {
    color: #00f2fe;
    font-size: 0.72rem;
}
.chip-btn:hover {
    background: rgba(0, 242, 254, 0.18);
    border-color: #00f2fe;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.25);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px 10px;
}
.typing-indicator[hidden] { display: none !important; }
.typing-bubble {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(23, 30, 46, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.typing-bubble span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00f2fe;
    animation: luxa-chat-typing 1.2s infinite ease-in-out;
}
.typing-bubble span:nth-child(2) { animation-delay: .2s; }
.typing-bubble span:nth-child(3) { animation-delay: .4s; }
.typing-text {
    font-size: 0.74rem;
    color: #64748b;
    font-family: var(--font-mono, monospace);
}
@keyframes luxa-chat-typing {
    0%, 80%, 100% { opacity: .3; transform: scale(.6); }
    40% { opacity: 1; transform: scale(1); }
}

/* Modal Footer & Input Wrapper */
.luxa-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 16px;
    background: rgba(12, 16, 26, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: rgba(22, 28, 44, 0.88);
    border: 1px solid rgba(0, 242, 254, 0.22);
    border-radius: 16px;
    padding: 4px 6px 4px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrapper:focus-within {
    border-color: #00f2fe;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.22);
}
.luxa-modal-footer textarea {
    flex: 1;
    min-width: 0;
    resize: none;
    height: 38px;
    min-height: 38px;
    max-height: 100px;
    padding: 8px 4px;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}
.luxa-modal-footer textarea::-webkit-scrollbar {
    display: none;
}
.luxa-modal-footer textarea::placeholder {
    color: #64748b;
    font-size: 0.82rem;
}
.luxa-send-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #050811;
    font-size: 0.88rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.luxa-send-btn:hover:not(:disabled) {
    transform: scale(1.06);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.5);
}
.luxa-send-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.65rem;
    color: #64748b;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
.footer-legal span {
    letter-spacing: 0.02em;
}

/* Smartphone Responsive Override (Bottom Sheet Drawer) */
@media (max-width: 640px) {
    .luxa-agent-fab {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
    .luxa-agent-fab img {
        width: 46px;
        height: 46px;
    }
    .luxa-agent-prompt {
        right: 16px;
        bottom: 80px;
        width: calc(100vw - 32px);
    }
    .luxa-agent-modal {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        height: 88dvh;
        max-height: 88dvh;
        border-radius: 24px 24px 0 0;
        border-right: none;
        border-left: none;
        border-bottom: none;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    }
    .luxa-agent-modal.active {
        transform: translateY(0);
    }
    .luxa-sheet-handle {
        display: block;
    }
    .luxa-modal-footer {
        padding-bottom: max(16px, env(safe-area-inset-bottom, 20px));
    }
    .chat-bubble {
        max-width: 90%;
        font-size: 0.85rem;
    }
}


.sidebar-link {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--text-muted); font-size: 0.8rem;
    transition: var(--transition);
}
.sidebar-link i { width: 16px; text-align: center; color: var(--secondary); }
.sidebar-link:hover { color: var(--text); background: rgba(34,211,238,0.06); border-color: rgba(34,211,238,0.25); }

.sidebar-vision {
    font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; font-style: italic;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(168,85,247,0.06);
    border: 1px solid rgba(168,85,247,0.22);
}

.luxa-sidebar-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 990px) {
    .founder-layout { grid-template-columns: 1fr; }
    .founder-metrics { grid-template-columns: repeat(2, 1fr); }
    .founder-card-v2 { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .founder-metrics { grid-template-columns: repeat(2, 1fr); }
    .founder-avatar-frame-v2 { width: 150px; height: 150px; }
    .founder-name-v2 { font-size: 1.35rem; }
}

/* ==========================================================================
   AGGIUNTE — Founder compatta + Vault Showcase carousel
   ========================================================================== */

.section-compact { padding: 56px 0; }

.founder-compact {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(21,19,38,.9), rgba(8,7,17,.95));
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    transition: var(--transition);
}
.founder-compact:hover { border-color: rgba(34,211,238,.4); transform: translateY(-3px); }

.founder-compact-avatar {
    position: relative;
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--secondary);
    box-shadow: 0 0 24px rgba(34,211,238,.25);
    background: #030712;
    cursor: pointer;
    transition: border-color .4s ease, box-shadow .4s ease;
}
.founder-compact-avatar:hover {
    border-color: #FFD700;
    box-shadow: 0 0 30px rgba(255,215,0,.35);
}
.founder-compact-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity .45s ease, transform .45s ease;
}
.founder-compact-avatar .photo-nft { opacity: 0; transform: scale(1.08); }
.founder-compact-avatar:hover .photo-nft { opacity: 1; transform: scale(1); }
.founder-compact-avatar:hover .photo-real { opacity: 0; transform: scale(.94); }

.founder-compact-info { text-align: left; min-width: 0; }
.founder-compact-bio {
    color: var(--text-muted);
    font-size: .84rem;
    line-height: 1.65;
    margin-bottom: 16px;
    max-width: 560px;
}
.founder-compact-bio code { color: var(--secondary); font-size: .78rem; }

@media (max-width: 640px) {
    .founder-compact { flex-direction: column; text-align: center; padding: 26px 20px; gap: 22px; }
    .founder-compact-info { text-align: center; }
    .founder-compact .founder-name-v2 { justify-content: center !important; }
    .founder-compact .founder-actions-v2 { justify-content: center !important; }
    .founder-compact .dossier-statusbar { justify-content: center; }
    .founder-compact-bio { margin-left: auto; margin-right: auto; }
}

#vault-showcase { overflow: hidden; }
.showcase-viewport { max-width: 1100px; margin: 0 auto; }
.showcase-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px 4px 26px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.showcase-track::-webkit-scrollbar { display: none; }

.showcase-slide { flex: 0 0 min(640px, 88vw); scroll-snap-align: center; }
.showcase-frame {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #0a0e1c;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 14px 34px rgba(0,0,0,.5);
    transition: var(--transition);
}
.showcase-slide:hover .showcase-frame {
    border-color: rgba(34,211,238,.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(0,0,0,.55), 0 0 24px rgba(34,211,238,.12);
}
.showcase-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #070b16;
}
.showcase-caption {
    margin-top: 12px;
    font-size: .76rem;
    color: var(--text-dim);
    text-align: center;
    line-height: 1.5;
    padding: 0 6px;
}
.showcase-nav { display: flex; justify-content: center; gap: 12px; margin-top: 2px; }
.showcase-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: .9rem;
    transition: var(--transition);
}
.showcase-arrow:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}
.showcase-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.showcase-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-dim);
    opacity: .4;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.showcase-dots button.active {
    opacity: 1;
    background: var(--secondary);
    box-shadow: 0 0 8px rgba(34,211,238,.6);
}
/* ==========================================================================
   FIX MOBILE — anti-scroll orizzontale, testo lungo, touch (aggiunto)
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { max-width: 100%; }
video, canvas, svg { max-width: 100%; }

/* Indirizzi, hash e codice lunghi vanno a capo invece di allargare la pagina */
code, .mono, .legal-card p, .legal-card li, .legal-notice { overflow-wrap: anywhere; word-break: break-word; }
pre { max-width: 100%; overflow-x: auto; }

/* Tabelle larghe: scorrono nel proprio contenitore */
.legal-card > div[style*="overflow-x"], .explorer-panel { max-width: 100%; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
    /* Il bagliore decorativo dell'hero non deve mai allargare la pagina */
    .hero-art-section { overflow-x: clip !important; overflow-y: visible !important; }
    .hero-cyber-aura { width: 100%; max-width: 100vw; }

    /* Niente zoom automatico di iOS quando si tocca un campo */
    input, select, textarea { font-size: 16px !important; }

    /* Aree touch comode */
    .mobile-menu-toggle { width: 44px; height: 44px; }
    .mobile-menu a { padding: 12px 10px; }
    .mobile-menu { background: #0e0d1c !important; }
    .btn { min-height: 44px; }

    /* Menu mobile scorrevole se più alto dello schermo (con barra del browser) */
    .mobile-menu { max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 28px); }
    .legal-card { padding: 24px 16px; }
}


/* ============================================================
   LIGHTBOX MODAL FOR 16:9 SHOWCASE IMAGES
   ============================================================ */
.showcase-lightbox {
    width: 100%;
    max-width: min(1200px, 94vw);
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f1f5f9;
    overflow: visible;
}
.showcase-lightbox::backdrop { background: rgba(3, 4, 10, .92); backdrop-filter: blur(8px); }
.showcase-lightbox img {
    width: 100%;
    max-height: 82vh;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid rgba(0, 255, 204, 0.35);
    border-radius: 14px;
    background: #070b16;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 204, 0.15);
}
.showcase-lightbox p { margin-top: 12px; text-align: center; font-size: .85rem; color: #94a3b8; font-family: 'Inter', sans-serif; }
.showcase-lightbox-close {
    position: absolute;
    top: -46px; right: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 15, 30, 0.85);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}
.showcase-lightbox-close:hover { border-color: #00FFCC; color: #00FFCC; }


/* ===== Navbar: fix larghezze intermedie + azioni nel menu mobile ===== */
@media (min-width: 991px) and (max-width: 1200px) {
    .nav-container { gap: 8px; }
    .nav-link { padding: 6px 9px; }
    .nav-search-wrapper { max-width: 170px; min-width: 100px; }
    .nav-badge--hybrid { display: none; }
}
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.mobile-menu .nav-action-btn { height: 44px; border-radius: 12px; font-size: .85rem; padding: 0 14px; }

/* Dropdown: nasconde la scrollbar orizzontale (barra verde sotto i menu) */
.dropdown-menu { overflow-x: hidden; }

/* ============================================================
   GLOBAL NAVBAR & FOOTER LUXA PALETTE
   ============================================================ */
:root {
    --luxa-mint: #02f8c5;
    --luxa-emerald: #05e394;
    --luxa-blue: #2f7bff;
    --luxa-navy: #03183e;
    --luxa-white: #f2f7fb;
}

#navbar .nav-link--coins:hover { background: rgba(47, 123, 255, .1); border-color: rgba(47, 123, 255, .3); }
#navbar .nav-coins-icon { color: var(--luxa-blue); filter: drop-shadow(0 0 5px rgba(47, 123, 255, .45)); }

/* Alternating menu icons: mint and blue */
#navbar .dropdown-icon {
    color: var(--luxa-mint) !important;
    background: rgba(2, 248, 197, .12) !important;
    border-color: rgba(2, 248, 197, .25);
}
#navbar .dropdown-item:nth-child(even) .dropdown-icon {
    color: var(--luxa-blue) !important;
    background: rgba(47, 123, 255, .14) !important;
    border-color: rgba(47, 123, 255, .3);
}
#navbar .dropdown-item:hover { background: rgba(2, 248, 197, .06); }
.mobile-menu .mobile-nav-group i[style] { color: var(--luxa-mint) !important; }
.mobile-menu .mobile-nav-group li:nth-child(even) i[style] { color: var(--luxa-blue) !important; }

/* Navbar action buttons: Connect = primary (mint), Mining = secondary (blue) */
.nav-actions .nav-action-btn { height: 34px; padding: 0 14px; border-radius: 10px; font-size: .78rem; }
.nav-actions .nav-action-btn i { font-size: 11px; }
.nav-action-btn--mining {
    color: var(--luxa-white);
    background: rgba(3, 24, 62, .55);
    border-color: rgba(47, 123, 255, .55);
}
.nav-action-btn--mining:hover {
    color: #fff;
    background: rgba(47, 123, 255, .16);
    border-color: var(--luxa-blue);
    box-shadow: 0 0 18px rgba(47, 123, 255, .3);
}
.nav-action-btn--connect {
    color: var(--luxa-navy);
    background: linear-gradient(135deg, var(--luxa-mint), var(--luxa-emerald));
    border-color: transparent;
    box-shadow: 0 0 14px rgba(2, 248, 197, .22);
}
.nav-action-btn--connect:hover { filter: brightness(1.07); box-shadow: 0 0 22px rgba(2, 248, 197, .42); }

/* Footer */
#footer .footer-top { border-top-color: rgba(47, 123, 255, .22); }
.footer-links a:hover { color: var(--luxa-mint); }
.footer-social a { border-color: rgba(47, 123, 255, .3); }
.footer-social a:hover { color: var(--luxa-mint); border-color: var(--luxa-mint); background: rgba(2, 248, 197, .1); }
#backToTop:hover { color: var(--luxa-mint); border-color: var(--luxa-mint); }


/* Extra compact adjustments for very small smartphones (<= 400px) */
@media (max-width: 400px) {
    #navbar .nav-container,
    .nav-container {
        padding: 0 8px !important;
        gap: 6px !important;
    }
    .nav-brand-logo {
        max-width: 120px !important;
        height: 23px !important;
    }
    .nav-actions {
        gap: 6px !important;
    }
    #luxa-login-btn {
        padding: 0 10px !important;
        font-size: 10.5px !important;
    }
    .social-row {
        gap: 10px 10px !important;
        grid-template-columns: repeat(4, 38px) !important;
        max-width: 210px !important;
    }
    .social-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
    }
    .footer-social {
        grid-template-columns: repeat(3, 38px) !important;
        gap: 8px !important;
    }
    .footer-social a {
        width: 38px !important;
        height: 38px !important;
    }
}


/* Extended social row grid on tablets and phones */
@media (max-width: 900px) {
    .hero-social-bar {
        margin: 14px auto 24px !important;
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
    }
    .hero-social-bar span {
        display: block !important;
        text-align: center !important;
        font-size: 0.72rem !important;
    }
    .social-row {
        display: grid !important;
        grid-template-columns: repeat(4, 42px) !important;
        justify-content: center !important;
        gap: 12px 14px !important;
        max-width: 240px !important;
        margin: 0 auto !important;
    }
    .social-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.05rem !important;
    }
    .footer-social {
        display: grid !important;
        grid-template-columns: repeat(3, 40px) !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        margin-top: 14px !important;
    }
    .footer-social a {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ---------- Floating Video Ad Banner (1400x250) ---------- */
.luxa-floating-ad-wrapper {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 820px;
  z-index: 9998;
  animation: luxaFloatUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes luxaFloatUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.luxa-floating-ad-wrapper.is-closing {
  animation: luxaFloatDown 0.35s ease forwards;
}

@keyframes luxaFloatDown {
  to {
    opacity: 0;
    transform: translate(-50%, 25px) scale(0.96);
  }
}

.luxa-floating-ad-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(0, 255, 204, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 255, 204, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.luxa-floating-ad-inner:hover {
  border-color: #00FFCC;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 255, 204, 0.35);
}

.luxa-floating-ad-link {
  display: block;
  text-decoration: none;
  width: 100%;
  aspect-ratio: 1400 / 250;
  background: #000;
  line-height: 0;
}

.luxa-floating-ad-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.luxa-floating-ad-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.luxa-floating-ad-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  transform: scale(1.1);
}

.luxa-floating-ad-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 255, 204, 0.3);
  color: #00FFCC;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  z-index: 10;
  pointer-events: none;
}
