:root {
    --sunset-orange:  #FF6B1A;
    --sunset-amber:   #FFA726;
    --sunset-gold:    #FFD54F;
    --sunset-teal:    #2ABFB0;
    --sunset-teal2:   #1A9E94;
    --sunset-coral:   #FF8C5A;
    --sunset-cream:   #FFF8E7;
    --sunset-deep:    #1A2A2A;
}

* { box-sizing: border-box; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
}

.brutalist { font-family: 'Archivo Black', sans-serif; }

.glass-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
}

.neon-border-orange { border: 1px solid #2a1a0a; }
.neon-border-amber  { border: 1px solid #2a1e0a; }
.neon-border-gold   { border: 1px solid #2a240a; }
.neon-border-teal   { border: 1px solid #0a1e1e; }
.neon-border-coral  { border: 1px solid #2a1812; }

/* ── PILL TABS ── */
.pill-tab {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    cursor: pointer;
}
.pill-tab:active { transform: scale(0.97); }
.active-tab   { background: #fff; color: #0a0a0a; }
.inactive-tab { background: transparent; color: #444; border: 1px solid #1e1e1e; }
.inactive-tab:hover { color: #aaa; border-color: #333; }

/* ── SIDEBAR NAV ── */
.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: left;
    background: transparent;
    color: #444;
    text-decoration: none;
}
.sidebar-nav-btn:hover { background: #141414; color: #aaa; }
.sidebar-nav-btn.active {
    background: #141414;
    color: #fff;
    border: 1px solid #2a2a2a;
}
.sidebar-nav-btn.active .nav-icon { color: var(--sunset-orange); }
.sidebar-nav-btn .nav-icon { width: 18px; text-align: center; font-size: 13px; }

.scroll-hide::-webkit-scrollbar { display: none; }

@keyframes pulse-orange {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.animate-pulse-orange { animation: pulse-orange 2s infinite; }

.modal-enter { animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out both; }

.logo-image {
    max-width: 120px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
    border-radius: 8px;
}

/* Sunset gradient title — mantenuto ma più sobrio */
.sunset-title {
    color: #fff;
}

/* ── LAYOUT ── */
.app-shell { position: relative; z-index: 1; }
.content-column { display: block; width: 100%; }
.mobile-header-wrapper { display: block; }
.desktop-sidebar { display: none; }
.mobile-sticky-tabs { display: block; }

.content-area { padding: 24px 24px 112px; }

@media (max-width: 1023px) {
    body {
        max-width: 28rem;
        margin-left: auto;
        margin-right: auto;
        border-left: 1px solid #141414;
        border-right: 1px solid #141414;
        padding-bottom: 7rem;
    }
    .desktop-2col > * + *,
    .desktop-3col > * + * { margin-top: 1.5rem; }
}

@media (min-width: 1024px) {
    body { overflow-x: hidden; }
    .mobile-header-wrapper { display: none; }
    .mobile-sticky-tabs { display: none; }

    .app-shell {
        display: flex;
        min-height: 100vh;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        gap: 0;
        align-items: stretch;
    }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        width: 240px;
        min-width: 240px;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        padding: 40px 20px 40px 0;
        border-right: 1px solid #141414;
        gap: 0;
    }

    .sidebar-logo-section {
        text-align: center;
        margin-bottom: 32px;
        padding-bottom: 24px;
        border-bottom: 1px solid #141414;
    }

    .sidebar-logo-section .logo-image { max-width: 90px; }

    .sidebar-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

    .sidebar-cta {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid #141414;
    }

    .content-column { flex: 1; min-width: 0; display: flex; flex-direction: column; }

    .content-area {
        flex: 1;
        min-width: 0;
        padding: 40px 40px 40px 40px;
        overflow-y: auto;
    }

    .desktop-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: start;
    }

    .desktop-3col {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        align-items: start;
    }

    .menu-grid { align-items: stretch; }
    .desktop-full { grid-column: 1 / -1; }

    .desktop-2col > * + *,
    .desktop-3col > * + * { margin-top: 0; }

    #cd, #ch, #cm, #cs { font-size: 3rem !important; }
    .bottom-cta-mobile { display: none !important; }
}

@media (min-width: 1280px) {
    .app-shell { max-width: 1400px; }
    .desktop-sidebar { width: 260px; min-width: 260px; }
}

/* Logo placeholder */
.logo-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #111;
    border: 1px dashed #2a2a2a;
    color: #444;
    font-family: 'Space Grotesk', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 8px;
}
.logo-placeholder i { font-size: 20px; }
