/* ============================================
   FINÉO - Design System
   Palette: Navy (#1a2332) + White + Gray + Green/Red accents
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --navy: #1a2332;
    --navy-light: #243044;
    --navy-lighter: #2d3a4a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --green: #10b981;
    --green-light: #d1fae5;
    --green-dark: #059669;
    --red: #ef4444;
    --red-light: #fee2e2;
    --red-dark: #dc2626;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --yellow: #f59e0b;
    --yellow-light: #fef3c7;
    --purple: #8b5cf6;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);

    /* Borders */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Layout */
    --sidebar-width: 260px;
    --topbar-height: 64px;
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

html.ready {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-base);
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }
canvas { max-width: 100%; }

/* --- App Layout --- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--navy);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--navy-lighter);
}

.sidebar-logo {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.sidebar-logo span {
    color: var(--green);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4) 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sidebar-section {
    padding: var(--space-2) var(--space-6);
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-top: var(--space-4);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-6);
    color: var(--gray-300);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--navy-light);
    color: var(--white);
}

.nav-item.active {
    background: var(--navy-light);
    color: var(--white);
    border-left-color: var(--green);
}

.nav-item i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--navy-lighter);
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Topbar --- */
.topbar {
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-8);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.topbar-title {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--gray-800);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

/* Space toggle */
.space-toggle {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.space-toggle-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.space-toggle-btn.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.space-toggle-btn:hover:not(.active) {
    color: var(--gray-700);
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-sm);
    font-weight: 600;
}

.user-name {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--gray-700);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    color: var(--gray-600);
}

/* --- Page Content --- */
.page-content {
    flex: 1;
    padding: var(--space-8);
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.page-header h1 {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--gray-800);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.card-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2, .card-header h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-100);
}

/* --- KPI Cards --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.kpi-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon.blue { background: var(--blue-light); color: var(--blue); }
.kpi-icon.green { background: var(--green-light); color: var(--green); }
.kpi-icon.red { background: var(--red-light); color: var(--red); }
.kpi-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.kpi-icon.purple { background: #ede9fe; color: var(--purple); }

.kpi-info, .kpi-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kpi-value, .kpi-label {
    display: block;
}

.kpi-label {
    font-size: var(--font-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-1);
}

.kpi-value {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--gray-800);
}

.kpi-change {
    font-size: var(--font-xs);
    margin-top: var(--space-1);
}

.kpi-change.positive { color: var(--green); }
.kpi-change.negative { color: var(--red); }

/* --- Charts Grid --- */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.chart-container {
    position: relative;
    height: 300px;
}

/* --- Tables --- */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

table tbody td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-sm);
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

table tbody tr:hover {
    background: var(--gray-50);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Amount colors --- */
.amount-income {
    color: var(--green);
    font-weight: 600;
}

.amount-expense {
    color: var(--red);
    font-weight: 600;
}

/* --- Category badge --- */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700);
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-lighter); color: var(--white); }

.btn-success {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}
.btn-success:hover { background: var(--green-dark); color: var(--white); }

.btn-danger {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.btn-danger:hover { background: var(--red-dark); color: var(--white); }

.btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-700); }

.btn-light {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-200);
}
.btn-light:hover { background: var(--gray-200); color: var(--gray-800); }

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
}

.btn-lg {
    padding: var(--space-3) var(--space-8);
    font-size: var(--font-base);
}

.btn-icon {
    padding: var(--space-2);
    width: 36px;
    height: 36px;
}

.btn-group {
    display: flex;
    gap: var(--space-2);
}

/* --- Forms --- */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-family: var(--font-family);
    color: var(--gray-800);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-text {
    font-size: var(--font-xs);
    color: var(--gray-500);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--font-xs);
    color: var(--red);
    margin-top: var(--space-1);
}

/* Color picker */
.color-picker-group {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 2px;
}

/* --- Alerts --- */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: var(--red-light);
    color: var(--red-dark);
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--yellow-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--blue-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    font-size: var(--font-lg);
    padding: 0;
    line-height: 1;
}

.alert-close:hover { opacity: 1; }

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    margin-top: var(--space-6);
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-3);
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a {
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    background: var(--white);
}

.pagination a:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-600);
}

.pagination .active {
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
}

.pagination .disabled {
    color: var(--gray-300);
    cursor: not-allowed;
    border: 1px solid var(--gray-100);
}

/* --- Filters bar --- */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.filters-bar .form-control {
    width: auto;
    min-width: 150px;
}

/* --- Budget progress --- */
.budget-progress {
    margin-top: var(--space-2);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-fill.green { background: var(--green); }
.progress-fill.yellow { background: var(--yellow); }
.progress-fill.red { background: var(--red); }

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-xs);
    color: var(--gray-500);
    margin-top: var(--space-1);
}

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    color: var(--gray-400);
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
}

.empty-state p {
    font-size: var(--font-sm);
    margin-bottom: var(--space-4);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: var(--font-lg);
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    padding: var(--space-1);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
}

/* --- Badge / Tag --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
}

.badge-perso { background: var(--blue-light); color: var(--blue); }
.badge-pro { background: #ede9fe; color: var(--purple); }
.badge-income { background: var(--green-light); color: var(--green-dark); }
.badge-expense { background: var(--red-light); color: var(--red-dark); }

/* --- Utility classes --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: var(--font-sm); }
.text-xs { font-size: var(--font-xs); }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.hidden { display: none !important; }

/* --- Auth layout --- */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: var(--space-6);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: var(--space-10);
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-logo h1 {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--navy);
}

.auth-logo h1 span {
    color: var(--green);
}

.auth-logo p {
    font-size: var(--font-sm);
    color: var(--gray-500);
    margin-top: var(--space-2);
}

.auth-form .btn {
    width: 100%;
    padding: var(--space-3);
    font-size: var(--font-base);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--font-sm);
    color: var(--gray-500);
}

.auth-footer a {
    color: var(--navy);
    font-weight: 500;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* --- Grid helper --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

/* --- Activity item --- */
.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--gray-50); }

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

/* --- Admin filters (same as filters-bar) --- */
.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: flex-end;
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.admin-filters .form-control {
    width: auto;
    min-width: 150px;
}

.admin-filters .form-group {
    margin-bottom: 0;
}

/* --- Utility classes --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }
.min-w-0 { min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Menu toggle (mobile hamburger) --- */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: var(--space-1);
    cursor: pointer;
    color: var(--gray-600);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
