/* ============================================================
   VoxPost — Sidebar Layout
   Used by: dashboard.html, ideas.html, others.html, tuto.html,
            metrics.html, engagement.html, posts.html, calendar.html,
            connect.html, profile-security.html, app.html
   ============================================================ */

/* ── RESET ADDITIONS ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── SIDEBAR TOKENS ── (base colors from design-system.css) */
:root {
    --vp-sidebar-width-expanded: 240px;
    --vp-sidebar-width-collapsed: 64px;
    --vp-topbar-height: 64px;
    --vp-sidebar-bg: #ffffff;
    --vp-sidebar-border: #E8EDF2;
    --vp-sidebar-text: #66666F;
    --vp-sidebar-text-active: #0A66AF;
    --vp-sidebar-active-bg: #E8F1FA;
    --vp-sidebar-hover-bg: #F0F6FC;
    --vp-sidebar-section-label: #9CA3AF;
    --vp-topbar-bg: #ffffff;
    --vp-topbar-border: #E8EDF2;
    --vp-avatar-bg: linear-gradient(135deg, #0A66AF 0%, #70B5FF 100%);
    --vp-logo-color: #0A66AF;
    --vp-sidebar-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --vp-bg: #F3F2EF;
    --vp-text-primary: #19191F;
    --vp-text-secondary: #66666F;
    --vp-card-bg: #ffffff;
    --vp-card-border: #E8EDF2;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
    --vp-sidebar-bg: #141820;
    --vp-sidebar-border: #252A35;
    --vp-sidebar-text: #9090A8;
    --vp-sidebar-text-active: #70B5FF;
    --vp-sidebar-active-bg: #122640;
    --vp-sidebar-hover-bg: #1A2230;
    --vp-sidebar-section-label: #606078;
    --vp-topbar-bg: #141820;
    --vp-topbar-border: #252A35;
    --vp-logo-color: #70B5FF;
    --vp-bg: #0F1117;
    --vp-text-primary: #E8E8F0;
    --vp-text-secondary: #9090A8;
    --vp-card-bg: #141820;
    --vp-card-border: #252A35;
}
[data-theme="dark"] body,
[data-theme="dark"] .vp-app-shell {
    background: var(--vp-bg);
    color: var(--vp-text-primary);
}
[data-theme="dark"] .vp-stat-card,
[data-theme="dark"] .vp-card,
[data-theme="dark"] .vp-profile-dropdown {
    background: var(--vp-card-bg);
    border-color: var(--vp-card-border);
}
[data-theme="dark"] .vp-stat-value,
[data-theme="dark"] .vp-page-title,
[data-theme="dark"] .vp-card-title,
[data-theme="dark"] .vp-coming-soon-title,
[data-theme="dark"] .vp-profile-dropdown-name {
    color: var(--vp-text-primary);
}
[data-theme="dark"] .vp-page-subtitle,
[data-theme="dark"] .vp-stat-label,
[data-theme="dark"] .vp-profile-dropdown-email,
[data-theme="dark"] .vp-coming-soon-text {
    color: var(--vp-text-secondary);
}
[data-theme="dark"] .vp-profile-dropdown-header {
    border-color: var(--vp-card-border);
}
[data-theme="dark"] .vp-dropdown-divider {
    background: var(--vp-card-border);
}
[data-theme="dark"] .vp-profile-dropdown-item {
    color: #c0c0e0;
}
[data-theme="dark"] .vp-profile-dropdown-item:hover {
    background: var(--vp-sidebar-hover-bg);
    color: var(--vp-sidebar-text-active);
}
[data-theme="dark"] .vp-sidebar-toggle {
    border-color: #3d3660;
    color: #9080c8;
}
[data-theme="dark"] .vp-sidebar-toggle:hover {
    background: var(--vp-sidebar-hover-bg);
    color: var(--vp-sidebar-text-active);
    border-color: #5b4ca0;
}
[data-theme="dark"] .vp-dark-toggle {
    color: #9090b8;
    border-color: #2d2848;
}
[data-theme="dark"] .vp-dark-toggle:hover {
    background: var(--vp-sidebar-hover-bg);
    color: var(--vp-sidebar-text-active);
    border-color: #5b4ca0;
}
[data-theme="dark"] .vp-activity-text {
    color: var(--vp-text-primary);
}
[data-theme="dark"] .vp-activity-item {
    border-color: #231f3a;
}
[data-theme="dark"] .vp-suggestion-item.blue {
    background: #1a2240;
}
[data-theme="dark"] .vp-suggestion-item.purple {
    background: #1f1540;
}

/* ── APP SHELL ── */
.vp-app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--vp-bg);
}

/* ── TOP BAR ── */
.vp-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--vp-topbar-height);
    background: var(--vp-topbar-bg);
    border-bottom: 1px solid var(--vp-topbar-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 0;
    z-index: 200;
    box-shadow: 0 1px 3px rgba(10, 102, 175, 0.06);
}

/* Logo area (left side of topbar) — ALWAYS full width, logo always visible */
.vp-topbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
    width: var(--vp-sidebar-width-expanded);
    flex-shrink: 0;
    padding: 0 20px;
    border-right: 1px solid var(--vp-topbar-border);
}
/* Logo stays at expanded width even when sidebar is collapsed */
.vp-app-shell.sidebar-collapsed .vp-topbar-logo {
    width: var(--vp-sidebar-width-expanded);
}

.vp-topbar-logo a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    color: var(--vp-logo-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.vp-topbar-logo a span { color: var(--color-primary-light); }

/* Logo short version — NEVER show (full logo always visible) */
.vp-topbar-logo a .logo-short { display: none !important; }
.vp-topbar-logo a .logo-full { display: inline !important; }

/* Right side of top bar */
.vp-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── DARK MODE TOGGLE ── */
.vp-dark-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1.5px solid var(--vp-card-border);
    cursor: pointer;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-size: 16px;
    line-height: 1;
}
.vp-dark-toggle:hover {
    background: var(--vp-sidebar-hover-bg);
    color: var(--color-primary);
    border-color: #70B5FF;
}

/* ── PROFILE AVATAR ── */
.vp-profile-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--vp-avatar-bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: white;
    letter-spacing: 0.5px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
}
.vp-profile-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.vp-profile-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ── PROFILE DROPDOWN ── */
.vp-profile-dropdown-wrap {
    position: relative;
}

.vp-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--vp-card-bg);
    border: 1px solid var(--vp-card-border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(10, 102, 175, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
}
.vp-profile-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.vp-profile-dropdown-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--vp-card-border);
}
.vp-profile-dropdown-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--vp-text-primary);
    line-height: 1.3;
}
.vp-profile-dropdown-email {
    font-size: 12px;
    color: var(--vp-text-secondary);
    margin-top: 2px;
}

.vp-profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 14px;
    color: #3a3a5c;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    transition: background 0.1s;
}
.vp-profile-dropdown-item:hover {
    background: var(--vp-sidebar-hover-bg);
    color: var(--color-primary);
}
.vp-profile-dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}
.vp-profile-dropdown-item.danger {
    color: #ef4444;
}
.vp-profile-dropdown-item.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
.vp-profile-dropdown-item.danger svg {
    opacity: 1;
}

.vp-dropdown-divider {
    height: 1px;
    background: var(--vp-card-border);
    margin: 4px 0;
}

/* ── BODY LAYOUT (below topbar) ── */
.vp-layout {
    display: flex;
    margin-top: var(--vp-topbar-height);
    min-height: calc(100vh - var(--vp-topbar-height));
}

/* ── SIDEBAR ── */
.vp-sidebar {
    position: fixed;
    top: var(--vp-topbar-height);
    left: 0;
    bottom: 0;
    width: var(--vp-sidebar-width-expanded);
    background: var(--vp-sidebar-bg);
    border-right: 1px solid var(--vp-sidebar-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width var(--vp-sidebar-transition);
    overflow: hidden;
}

.vp-app-shell.sidebar-collapsed .vp-sidebar {
    width: var(--vp-sidebar-width-collapsed);
}

/* ── SIDEBAR HEADER (toggle area) ── */
.vp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
    padding: 0 12px;
    border-bottom: 1px solid var(--vp-sidebar-border);
    flex-shrink: 0;
}
.vp-app-shell.sidebar-collapsed .vp-sidebar-header {
    justify-content: center;
}

/* Sidebar toggle button */
.vp-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    border: 1.5px solid #e0ddf5;
    cursor: pointer;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vp-sidebar-toggle:hover {
    background: var(--vp-sidebar-hover-bg);
    color: var(--color-primary);
    border-color: #70B5FF;
}

/* ── SIDEBAR NAV SCROLL AREA ── */
.vp-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    scrollbar-width: none;
}
.vp-sidebar-nav::-webkit-scrollbar { display: none; }

/* ── SIDEBAR BOTTOM (fixed at bottom) ── */
.vp-sidebar-bottom {
    border-top: 1px solid var(--vp-sidebar-border);
    padding: 8px 0 12px;
    flex-shrink: 0;
}

/* ── SECTION LABEL ── */
.vp-sidebar-section {
    padding: 14px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--vp-sidebar-section-label);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--vp-sidebar-transition), height var(--vp-sidebar-transition), padding var(--vp-sidebar-transition);
}
.vp-app-shell.sidebar-collapsed .vp-sidebar-section {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

/* ── NAV ITEM ── */
.vp-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin: 1px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--vp-sidebar-text);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: transparent;
    width: calc(100% - 16px);
    text-align: left;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.vp-sidebar-item:hover {
    background: var(--vp-sidebar-hover-bg);
    color: var(--color-primary);
}
.vp-sidebar-item.active {
    background: var(--vp-sidebar-active-bg);
    color: var(--vp-sidebar-text-active);
    font-weight: 600;
}
.vp-sidebar-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ── SPECIAL: Blue star for "Générateur de posts" ── */
.vp-sidebar-item[href="/app"] svg {
    color: var(--color-primary);
    fill: var(--color-primary);
}
.vp-sidebar-item .item-label {
    transition: opacity var(--vp-sidebar-transition), width var(--vp-sidebar-transition);
    overflow: hidden;
}
.vp-app-shell.sidebar-collapsed .vp-sidebar-item .item-label {
    opacity: 0;
    width: 0;
}

/* ── TOOLTIP on hover (collapsed mode) ── */
.vp-sidebar-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a3e;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    font-family: var(--font-body);
}
.vp-app-shell.sidebar-collapsed .vp-sidebar-item[data-tooltip]:hover::after {
    opacity: 1;
}

/* ── MAIN CONTENT ── */
.vp-main-content {
    flex: 1;
    margin-left: var(--vp-sidebar-width-expanded);
    padding: 24px 20px;
    transition: margin-left var(--vp-sidebar-transition);
    min-width: 0;
}
.vp-app-shell.sidebar-collapsed .vp-main-content {
    margin-left: var(--vp-sidebar-width-collapsed);
}

/* ── PAGE HEADER ── */
.vp-page-header {
    margin-bottom: 28px;
}
.vp-page-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--vp-text-primary);
    margin-bottom: 4px;
}
.vp-page-subtitle {
    font-size: 14px;
    color: var(--vp-text-secondary);
}

/* ── STAT CARDS ── */
.vp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 1100px) {
    .vp-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .vp-stats-grid { grid-template-columns: 1fr; }
}

.vp-stat-card {
    background: var(--vp-card-bg);
    border: 1px solid var(--vp-card-border);
    border-radius: 16px;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(10, 102, 175, 0.04);
    transition: box-shadow 0.15s;
}
.vp-stat-card:hover {
    box-shadow: 0 4px 16px rgba(10, 102, 175, 0.08);
}
.vp-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-stat-icon.blue { background: #e0f2fe; color: #0369a1; }
.vp-stat-icon.green { background: #d1fae5; color: #059669; }
.vp-stat-icon.purple { background: var(--color-primary-soft); color: var(--color-primary); }
.vp-stat-icon.orange { background: #fff7ed; color: #c2410c; }

.vp-stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--vp-text-primary);
    line-height: 1;
}
.vp-stat-label {
    font-size: 13px;
    color: var(--vp-text-secondary);
    font-weight: 400;
}

/* ── CONTENT GRID (2 col below stats) ── */
.vp-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) {
    .vp-content-grid { grid-template-columns: 1fr; }
}

.vp-card {
    background: var(--vp-card-bg);
    border: 1px solid var(--vp-card-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(10, 102, 175, 0.04);
}
.vp-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--vp-text-primary);
    margin-bottom: 16px;
}

/* Activity items */
.vp-activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--vp-bg);
}
.vp-activity-item:last-child { border-bottom: none; }
.vp-activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vp-avatar-bg);
    flex-shrink: 0;
}
.vp-activity-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--vp-text-primary);
}
.vp-activity-meta {
    font-size: 12px;
    color: var(--vp-text-secondary);
    margin-top: 2px;
}

/* Suggestion items */
.vp-suggestion-item {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: opacity 0.15s;
}
.vp-suggestion-item:last-child { margin-bottom: 0; }
.vp-suggestion-item:hover { opacity: 0.85; }
.vp-suggestion-item.blue { background: #eff6ff; }
.vp-suggestion-item.purple { background: #faf5ff; }
.vp-suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 3px;
}
.vp-suggestion-item.purple .vp-suggestion-title { color: var(--color-primary); }
.vp-suggestion-desc {
    font-size: 13px;
    color: #6b7280;
}

/* ── COMING SOON PAGE ── */
.vp-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
}
.vp-coming-soon-icon {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1;
}
.vp-coming-soon-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--vp-text-primary);
    margin-bottom: 12px;
}
.vp-coming-soon-text {
    font-size: 16px;
    color: var(--vp-text-secondary);
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.vp-coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 100px;
    font-family: var(--font-body);
}

/* ── MOBILE SIDEBAR OVERLAY ── */
.vp-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.vp-sidebar-overlay.open { display: block; }

/* ── CONNECT PAGE CARDS ── */
.vp-connect-card {
    background: var(--vp-card-bg);
    border: 1px solid var(--vp-card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.vp-connect-card-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.vp-connect-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vp-connect-card-name {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--vp-text-primary);
}
.vp-connect-card-status {
    font-size: 13px;
    color: var(--vp-text-secondary);
    margin-top: 2px;
}
.vp-connect-card-status.connected { color: #059669; }
.vp-connect-card-status.expiring { color: #d97706; }
.vp-connect-card-status.expired { color: #ef4444; }
.vp-connect-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.vp-btn-connect {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.vp-btn-connect:hover { opacity: 0.85; }
.vp-btn-connect.primary { background: var(--color-primary); color: white; }
.vp-btn-connect.secondary { background: var(--vp-sidebar-active-bg); color: var(--color-primary); }
.vp-btn-connect.danger { background: #fee2e2; color: #dc2626; }
.vp-btn-connect.warning { background: #fff7ed; color: #c2410c; }
[data-theme="dark"] .vp-btn-connect.secondary { background: #2d1f52; color: #a78bfa; }
[data-theme="dark"] .vp-btn-connect.danger { background: #3a1a1a; color: #f87171; }
[data-theme="dark"] .vp-btn-connect.warning { background: #3a2a0f; color: #fbbf24; }

.vp-connect-alert {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.vp-connect-alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.vp-connect-alert.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
[data-theme="dark"] .vp-connect-alert.error { background: #3a1a1a; border-color: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .vp-connect-alert.warning { background: #3a2a0f; border-color: #78350f; color: #fcd34d; }

.vp-connect-howto {
    background: var(--vp-card-bg);
    border: 1px solid var(--vp-card-border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-top: 24px;
}
.vp-connect-howto-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--vp-text-primary);
    margin-bottom: 12px;
}
.vp-connect-howto ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vp-connect-howto li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--vp-text-secondary);
}
.vp-connect-howto li::before {
    content: "•";
    color: var(--color-primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.vp-connect-notification {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vp-connect-notification.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.vp-connect-notification.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.vp-connect-notification.plan-limit { background: #fff7ed; color: #92400e; border: 1px solid #fde68a; }
[data-theme="dark"] .vp-connect-notification.success { background: #0a2e1f; color: #6ee7b7; border-color: #064e3b; }
[data-theme="dark"] .vp-connect-notification.error { background: #3a1a1a; color: #fca5a5; border-color: #7f1d1d; }
[data-theme="dark"] .vp-connect-notification.plan-limit { background: #3a2a0f; color: #fcd34d; border-color: #78350f; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .vp-topbar-logo {
        width: 56px;
        padding: 0 16px;
        border-right: none;
    }
    .vp-topbar-logo a .logo-full { display: none !important; }
    .vp-topbar-logo a .logo-short { display: inline !important; }

    .vp-sidebar {
        width: var(--vp-sidebar-width-expanded);
        transform: translateX(-100%);
        transition: transform var(--vp-sidebar-transition);
    }
    .vp-sidebar.mobile-open {
        transform: translateX(0);
    }
    .vp-app-shell.sidebar-collapsed .vp-sidebar {
        width: var(--vp-sidebar-width-expanded);
    }

    .vp-main-content {
        margin-left: 0 !important;
        padding: 20px 16px;
    }

    /* Hide sidebar expand/collapse button on mobile — hamburger only */
    .vp-sidebar-header { display: none !important; }

    .vp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .vp-stat-value { font-size: 22px; }

    .vp-connect-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
