
.support-shell {
    --accent: #7fb7dc;
    --accent-rgb: 127, 183, 220;
    --text-dim: #c4c4c9;
    --support-surface-rgb: 18, 18, 24;
    --support-surface-alpha: 0.1;
    --support-surface: rgba(var(--support-surface-rgb), var(--support-surface-alpha));
    --support-card-visual-alpha: 0.1;
    --support-card-visual: rgba(var(--support-surface-rgb), var(--support-card-visual-alpha));
    position: relative;
    z-index: 0;
    display: flex;
    width: 100%;
    max-width: 1300px;
    margin: 120px auto 0;
    min-height: calc(100vh - 180px);
}

.support-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    backdrop-filter: saturate(0.7) brightness(0.7);
    -webkit-backdrop-filter: saturate(0.7) brightness(0.7);
}

.support-shell > * {
    position: relative;
    z-index: 1;
}

.support-sidebar {
    width: 260px;
    min-width: 260px;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-group-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 10px;
    padding-left: 10px;
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.sidebar-item:hover {
    color: white;
    background: rgba(255,255,255,0.04);
}

.sidebar-item.active {
    color: white;
    background: rgba(255,255,255,0.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.sidebar-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.sidebar-item.active svg {
    opacity: 1;
}

.support-main {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    min-width: 0;
}

.support-header {
    max-width: 900px;
    margin-bottom: 40px;
}

.support-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.support-header .sub-header {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 30px;
}

.support-contact-footer {
    margin-top: auto;
    padding: 2px;
    border: 1px solid rgba(255,255,255,0.05);
    background: var(--support-surface);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

html[lang="es"] .support-contact-footer,
html[lang="it"] .support-contact-footer {
    margin-top: auto;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--support-surface);
    border-radius: 10px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #cdd7e6;
    line-height: 1.5;
}

html[lang="es"] .support-contact-footer a,
html[lang="it"] .support-contact-footer a {
    color: #d9e4f3;
    font-weight: 700;
    text-decoration: none;
    padding: 0;
    display: inline;
}

html[lang="es"] .support-contact-footer a:hover,
html[lang="it"] .support-contact-footer a:hover {
    color: #f5f8ff;
}

html[lang="es"] .support-contact-footer a::before,
html[lang="it"] .support-contact-footer a::before {
    content: none;
}

.support-contact-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #a1adbc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
}

.support-contact-footer a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb),0.95);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0.14);
    flex-shrink: 0;
}

.support-contact-footer a:hover {
    color: white;
    background: rgba(255,255,255,0.04);
}

.support-search {
    position: relative;
    max-width: 900px;
    margin-bottom: 50px;
}

.support-search input {
    width: 100%;
    background: var(--support-surface);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 16px 20px 16px 50px;
    border-radius: 12px;
    color: white;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    transition: 0.3s;
}

.support-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb),0.12);
}

.support-search .s-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
}

/* --- Card Grid (landing view) --- */
.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
}

.help-card {
    background: rgba(var(--support-surface-rgb), 0.12);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.help-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.1);
}

.card-visual {
    height: 140px;
    background: var(--support-card-visual);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mock-ui {
    width: 70%;
    height: 60%;
    background: #22222d;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mock-line {
    height: 6px;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    margin-bottom: 8px;
}

.mock-line.short { width: 40%; }

.mock-btn {
    width: 30px;
    height: 12px;
    background: var(--accent);
    border-radius: 4px;
    margin-top: 10px;
}

.mock-ui [style*="background:#2a2a2e"] {
    background: #272830 !important;
}

.card-content {
    padding: 22px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* --- Topic Detail View --- */
.topic-view {
    display: none;
    max-width: 900px;
}

.topic-view.visible {
    display: block;
}

.topic-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.2s;
    background: none;
    border: none;
    font-family: inherit;
}

.topic-back:hover { color: white; }

.topic-view h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.topic-view .topic-intro {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 680px;
}

.faq-item {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
}

.faq-q {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
}

.faq-q:hover { color: var(--accent); }

.faq-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: transform 0.25s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
}

.faq-item.open .faq-a {
    max-height: 600px;
    padding-top: 14px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .support-shell { flex-direction: column; }
    .support-sidebar {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        padding: 16px;
    }
    .sidebar-group { display: flex; gap: 4px; }
    .sidebar-group-label { display: none; }
    .sidebar-item { white-space: nowrap; font-size: 13px; padding: 8px 14px; }
    .support-main { padding: 30px 20px; }
    .help-grid { grid-template-columns: 1fr; }
    .support-contact-footer {
        margin-top: 0;
        padding: 2px;
        white-space: nowrap;
    }
    .support-contact-footer a { padding: 8px 10px; }
}

@media (max-width: 860px) {
    html[lang="es"] .support-shell,
    html[lang="it"] .support-shell {
        flex-direction: column;
    }
    .support-main { padding: 30px 20px; }
    .help-grid { grid-template-columns: 1fr; }
    html[lang="es"] .support-contact-footer,
    html[lang="it"] .support-contact-footer {
        margin-top: 0;
        padding: 8px 10px;
        text-align: left;
        white-space: nowrap;
    }
}


/* --- Step Guide --- */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 720px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb),0.18);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.step-body h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-body p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}

.step-protip {
    margin-top: 8px;
    padding: 12px 16px;
    background: rgba(var(--accent-rgb),0.1);
    border-left: 2px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

.step-protip strong {
    color: var(--accent);
}

/* --- Layer Cards --- */
.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin-bottom: 36px;
}

.layer-card {
    background: var(--support-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 24px;
}

.layer-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.layer-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
}

.layer-badge--1 { background: rgba(var(--accent-rgb),0.2); color: #c4dbef; }
.layer-badge--2 { background: rgba(168,85,247,0.15); color: #c4a5f7; }
.layer-badge--3 { background: rgba(245,158,11,0.15); color: #fbbf5e; }

.layer-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 0;
}

.layer-card p + p {
    margin-top: 10px;
}

.layer-card .use-for {
    margin-top: 12px;
    font-size: 13px;
    color: #94a3b8;
}

.layer-card .use-for strong {
    color: #cbd5e1;
}

/* --- Info Section --- */
.info-section {
    max-width: 720px;
    margin-bottom: 32px;
}

.info-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-section p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 10px;
}

.info-callout {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    max-width: 720px;
}

.info-callout h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.info-callout p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}
