@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');
@import url('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #286cc5;
    --primary-light: #3b7bc4;
    --primary-pale: #E8F2EB;
    --accent: #E8A838;
    --accent-dark: #C4861A;
    --dark: #1A1A2E;
    --dark-2: #2C2C44;
    --text: #3D3D52;
    --text-muted: #7A7A96;
    --bg: #FAFAF7;
    --bg-2: #F2F2EC;
    --white: #FFFFFF;
    --border: rgba(45, 90, 61, 0.15);
    --shadow: 0 4px 32px rgba(45, 90, 61, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-xl: 32px;
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-pale: #fee2e2;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 700; }
h2 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { color: var(--text-muted); }

/* ── LAYOUT ── */
.admin-wrapper { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--dark);
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: 0; bottom: 0;
    z-index: 200;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand-icon {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.sidebar-brand-icon i { color: var(--white); font-size: 20px; }
.sidebar-brand-text { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: var(--white); }
.sidebar-brand-text em { color: var(--accent); font-style: normal; }
.sidebar-brand-badge { font-size: 10px; background: var(--primary); color: var(--white); padding: 2px 8px; border-radius: 100px; font-weight: 600; letter-spacing: 0.05em; }

.sidebar-section-label {
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 20px 20px 8px;
}

.sidebar-nav { padding: 0 12px; flex: 1; }
.sidebar-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.6);
    cursor: pointer; transition: all 0.25s;
    margin-bottom: 2px;
    border: none; background: transparent; width: 100%; text-align: left;
}
.sidebar-nav-item i { font-size: 18px; flex-shrink: 0; }
.sidebar-nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.sidebar-nav-item.active { background: var(--primary); color: var(--white); }
.sidebar-nav-item.active i { color: var(--accent); }
.sidebar-nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--dark);
    font-size: 11px; font-weight: 700;
    padding: 1px 7px; border-radius: 100px;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 10px;
    margin-top: auto;
}
.sidebar-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: var(--white);
    flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.4); }
.sidebar-user-logout { margin-left: auto; color: rgba(255,255,255,0.35); font-size: 18px; cursor: pointer; transition: color 0.3s; }
.sidebar-user-logout:hover { color: var(--danger); }

/* ── MAIN CONTENT ── */
.admin-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* ── TOPBAR ── */
.admin-topbar {
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky; top: 0; z-index: 100;
}
.topbar-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--dark); flex: 1; }
.topbar-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 100px; padding: 8px 16px;
    width: 240px; transition: all 0.3s;
}
.topbar-search:focus-within { border-color: var(--primary); background: var(--white); width: 280px; }
.topbar-search i { color: var(--text-muted); font-size: 18px; }
.topbar-search input { border: none; background: transparent; outline: none; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text); width: 100%; }
.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-icon-btn {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm); border: 1.5px solid var(--border);
    background: var(--white); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; position: relative;
}
.topbar-icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.topbar-icon-btn i { font-size: 20px; }
.topbar-notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger); border: 2px solid var(--white);
}

/* ── PAGE CONTENT ── */
.admin-content { padding: 28px; flex: 1; }

/* ── STAT CARDS ROW ── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 22px;
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    transition: all 0.3s;
}
.stat-card:hover { border-color: var(--primary); box-shadow: 0 4px 20px rgba(40,108,197,0.1); transform: translateY(-2px); }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon i { font-size: 22px; }
.stat-icon.blue { background: rgba(40,108,197,0.12); }
.stat-icon.blue i { color: var(--primary); }
.stat-icon.orange { background: rgba(232,168,56,0.15); }
.stat-icon.orange i { color: var(--accent-dark); }
.stat-icon.green { background: rgba(34,197,94,0.12); }
.stat-icon.green i { color: #16a34a; }
.stat-icon.purple { background: rgba(124,58,237,0.12); }
.stat-icon.purple i { color: #7c3aed; }
.stat-info { flex: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 4px; }
.stat-val { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--dark); line-height: 1; }
.stat-change { font-size: 12px; color: var(--success); font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.stat-change.down { color: var(--danger); }
.stat-change i { font-size: 14px; }

/* ── GRID LAYOUT ── */
.admin-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.admin-grid-full { grid-template-columns: 1fr; }

/* ── PANEL CARDS ── */
.panel {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--bg-2);
}
.panel-header h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.panel-header h3 i { color: var(--primary); font-size: 20px; }
.panel-header-actions { display: flex; gap: 8px; }
.panel-body { padding: 20px 22px; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: 100px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s ease; border: 1.5px solid transparent; font-family: 'DM Sans', sans-serif; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(40,108,197,0.3); }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 11px; font-size: 12px; }
.btn i { font-size: 17px; }

/* ── TRIP TABLE ── */
.trip-table { width: 100%; border-collapse: collapse; }
.trip-table th {
    text-align: left; font-size: 12px; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
    padding: 10px 14px; border-bottom: 1.5px solid var(--bg-2);
    background: var(--bg);
}
.trip-table td { padding: 14px; border-bottom: 1px solid var(--bg-2); vertical-align: middle; }
.trip-table tr:last-child td { border-bottom: none; }
.trip-table tbody tr { transition: background 0.2s; }
.trip-table tbody tr:hover { background: var(--bg); }

.trip-table-name { font-weight: 600; color: var(--dark); font-size: 14px; margin-bottom: 2px; }
.trip-table-dest { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.trip-table-dest i { font-size: 13px; color: var(--primary); }

.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.status-badge.active { background: rgba(34,197,94,0.12); color: #16a34a; }
.status-badge.upcoming { background: rgba(40,108,197,0.1); color: var(--primary); }
.status-badge.completed { background: var(--bg-2); color: var(--text-muted); }
.status-badge.planning { background: rgba(245,158,11,0.12); color: var(--warning); }

.member-avatars { display: flex; }
.member-avatars .ma {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--white);
    border: 2px solid var(--white);
    margin-left: -6px; first-child { margin-left: 0; }
}
.member-avatars .ma:first-child { margin-left: 0; }
.member-avatars .ma.c2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.member-avatars .ma.c3 { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.member-avatars .ma.c4 { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.member-avatars .ma-more { background: var(--bg-2); color: var(--text-muted); font-size: 10px; }

.action-btns { display: flex; gap: 6px; align-items: center; }
.action-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s; border: 1px solid var(--border);
    background: var(--white); color: var(--text-muted); font-size: 16px;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.action-btn.del:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-pale); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-label span { color: var(--danger); }
.form-control {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; color: var(--text);
    background: var(--bg);
    outline: none; transition: all 0.3s;
}
.form-control:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(40,108,197,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.form-section-title {
    font-size: 13px; font-weight: 700; color: var(--dark);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-2);
    display: flex; align-items: center; gap: 7px;
}
.form-section-title i { color: var(--primary); font-size: 16px; }

/* ── PLACE MANAGER ── */
.place-manager { }
.place-manager-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.place-manager-head h4 { font-size: 14px; font-family: 'DM Sans', sans-serif; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.place-manager-head h4 i { color: var(--primary); }

.place-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.place-row {
    display: flex; gap: 8px; align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: border-color 0.3s;
}
.place-row:hover { border-color: var(--primary-light); }
.place-row-drag { color: var(--text-muted); font-size: 20px; cursor: grab; padding-top: 2px; }
.place-row-inputs { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.place-row-inputs .form-control { flex: 1; min-width: 140px; padding: 8px 12px; font-size: 13px; }
.place-row-del { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--white); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.place-row-del:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-pale); }

/* ── BUDGET PANEL ── */
.budget-panel { }
.budget-total-display {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative; overflow: hidden;
}
.budget-total-display::before { content: ''; position: absolute; width: 150px; height: 150px; background: var(--accent); border-radius: 50%; opacity: 0.06; top: -60px; right: -40px; }
.budget-total-display .btd-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.budget-total-display .btd-val { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.budget-total-display .btd-sub { font-size: 12px; color: rgba(255,255,255,0.4); }
.budget-total-display .btd-per { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 8px; }

.budget-cats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.budget-cat-row {
    display: flex; gap: 10px; align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    transition: border-color 0.3s;
}
.budget-cat-row:hover { border-color: var(--primary-light); }
.budget-cat-color {
    width: 12px; height: 12px; border-radius: 50%;
    flex-shrink: 0; cursor: pointer;
}
.budget-cat-row .form-control { padding: 8px 10px; font-size: 13px; }
.budget-cat-row .form-control.amount { max-width: 110px; font-weight: 600; }
.budget-cat-pct { font-size: 12px; font-weight: 600; color: var(--text-muted); min-width: 36px; text-align: right; }

.budget-chart { margin-bottom: 16px; }
.budget-chart-bars { display: flex; height: 16px; border-radius: 100px; overflow: hidden; gap: 2px; }
.budget-chart-bar { height: 100%; border-radius: 3px; transition: all 0.5s ease; }

.budget-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bg-2); font-size: 13px; }
.budget-summary-row:last-child { border-bottom: none; font-weight: 600; font-size: 14px; }
.budget-summary-row span:first-child { color: var(--text-muted); }
.budget-summary-row span:last-child { color: var(--dark); font-weight: 600; }

/* ── MEMBER MANAGER ── */
.member-manager { }
.member-manage-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.member-manage-row {
    display: flex; gap: 10px; align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.member-manage-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; color: var(--white);
    flex-shrink: 0;
}
.member-manage-row .form-control { padding: 7px 10px; font-size: 13px; flex: 1; }
.member-role-select { max-width: 130px !important; }
.member-manage-del { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--border); background: var(--white); color: var(--text-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.25s; font-size: 15px; }
.member-manage-del:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-pale); }

/* ── MODAL ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26,26,46,0.6);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 100%; max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.2);
    transform: scale(0.96) translateY(10px);
    transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--bg-2);
    position: sticky; top: 0; background: var(--white); z-index: 10;
}
.modal-header h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.modal-header h2 i { color: var(--primary); font-size: 22px; }
.modal-close {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.25s;
    color: var(--text-muted); font-size: 20px;
    border: 1px solid var(--border); background: var(--white);
}
.modal-close:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-pale); }
.modal-body { padding: 24px; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--bg-2);
    position: sticky; bottom: 0; background: var(--white);
}

/* ── EMPTY STATE ── */
.empty-state {
    text-align: center;
    padding: 56px 20px;
}
.empty-icon { width: 72px; height: 72px; background: var(--primary-pale); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.empty-icon i { font-size: 34px; color: var(--primary); }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 280px; margin: 0 auto 20px; }

/* ── TABS ── */
.tabs { display: flex; gap: 2px; background: var(--bg-2); border-radius: 100px; padding: 4px; margin-bottom: 24px; }
.tab-btn {
    flex: 1; padding: 9px 16px;
    border-radius: 100px; border: none;
    background: transparent; font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    cursor: pointer; transition: all 0.25s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab-btn i { font-size: 16px; }
.tab-btn.active { background: var(--white); color: var(--primary); font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tab-btn:hover:not(.active) { color: var(--text); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 12px;
    background: var(--dark);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    color: var(--white);
    font-size: 14px; font-weight: 500;
    min-width: 280px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateX(0); }
.toast i { font-size: 20px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    :root { --sidebar-w: 0px; }
    .admin-sidebar { transform: translateX(-260px); width: 260px; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
}
@media (max-width: 640px) {
    .stats-row { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .admin-content { padding: 16px; }
    .topbar-search { display: none; }
}