:root {
    --sidebar-width: 270px;
    --sidebar-bg: #1a2035;
    --sidebar-text: #c8d0e0;
    --sidebar-active-bg: #0d6efd;
    --sidebar-active-text: #fff;
    --sidebar-hover-bg: rgba(255,255,255,0.08);
    --topbar-height: 54px;
}

body { background: #f4f6fa; }

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    flex-shrink: 0;
}
.sidebar-nav {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
    display: flex;
    flex-direction: column;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.nav-section-toggle {
    color: rgba(200,208,224,.6) !important;
    font-size: .7rem !important;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700 !important;
    padding: .5rem .75rem !important;
    cursor: pointer;
}
.nav-section-toggle:hover { background: transparent !important; color: #fff !important; }
.nav-section-caret { font-size: .65rem; opacity: .6; transition: transform .2s ease; }
.nav-section-toggle[aria-expanded="true"] .nav-section-caret { transform: rotate(-180deg); }
.sidebar .collapse .nav-link { font-size: .84rem; padding: .4rem .75rem; }

.sidebar-header { min-height: var(--topbar-height); background: rgba(0,0,0,.2); }
.sidebar-club-name { font-size: .85rem; font-weight: 600; color: #fff; line-height: 1.2; }
.sidebar-escudo { width: 36px; height: 36px; object-fit: contain; border-radius: 4px; }
.sidebar-icon-placeholder {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #6c8ebf;
}
.sidebar-divider { border-color: rgba(255,255,255,.1); margin: 0; }
.sidebar .nav-link { color: var(--sidebar-text); border-radius: 6px; padding: .5rem .75rem; font-size: .875rem; transition: background .15s; }
.sidebar .nav-link:hover { background: var(--sidebar-hover-bg); color: #fff; }
.sidebar .nav-link.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
.sidebar-footer-link { border-color: rgba(255,255,255,.1) !important; }

/* ── Topbar ── */
.topbar { height: var(--topbar-height); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ── Contenido ── */
.help-card { border: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.help-hero {
    border-radius: 16px;
    background: linear-gradient(135deg, var(--club-color, #1a2035) 0%, #0d6efd 100%);
    color: #fff;
}
.help-hero .bi { opacity: .9; }
.step-num {
    width: 30px; height: 30px; border-radius: 50%; background: var(--club-color, #0d6efd);
    color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.step-shot {
    display: block; max-width: 100%; margin-top: .75rem; border: 1px solid #e2e5ec;
    border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* ── Sidebar backdrop / mobile ── */
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1044; cursor: pointer; }
.sidebar-backdrop.show { display: block; }

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed; top: 0; left: 0; z-index: 1045;
        transform: translateX(-100%); height: 100vh; overflow: hidden;
    }
    .sidebar.show { transform: translateX(0); }
    #page-content { width: 100%; }
    main.p-4 { padding: .875rem !important; }
}
