/* ============================================================
   LinkPro — Admin Dashboard CSS
   Aesthetic: Dark, refined, editorial
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #080d19;
    --surface:   #0f172a;
    --surface-2: #1e293b;
    --surface-3: #273348;
    --border:    rgba(255,255,255,0.07);
    --border-2:  rgba(255,255,255,0.12);
    --text:      #e2e8f0;
    --text-muted:#94a3b8;
    --text-dim:  #64748b;
    --primary:   #6366f1;
    --primary-h: #4f46e5;
    --success:   #10b981;
    --danger:    #ef4444;
    --warning:   #f59e0b;
    --info:      #06b6d4;
    --sidebar-w: 260px;
    --topbar-h:  64px;
    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html { font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-weight: 400;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: 'Courier New', monospace;
    background: var(--surface-3);
    padding: .15em .4em;
    border-radius: 4px;
    font-size: .85em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.brand-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; color: #fff; flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
}

.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; margin-left: auto; font-size: 1.1rem; padding: .25rem; }

.sidebar-nav { flex: 1; padding: 1rem 0; }

.nav-section { margin-bottom: 1.5rem; }

.nav-label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 1.25rem;
    margin-bottom: .5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem 1.25rem;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    border-radius: 0;
    transition: color .15s, background .15s;
    position: relative;
    text-decoration: none;
}

.nav-item i { width: 18px; text-align: center; font-size: .95rem; }

.nav-item:hover {
    color: var(--text);
    background: var(--surface-2);
    text-decoration: none;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(99,102,241,.1);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.admin-meta { display: flex; align-items: center; gap: .75rem; flex: 1; min-width: 0; }

.admin-avatar {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-weight: 700; font-size: .9rem;
    color: #fff; flex-shrink: 0;
}

.admin-info { min-width: 0; }
.admin-name { display: block; font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-role { display: block; font-size: .7rem; color: var(--text-muted); }

.logout-btn {
    color: var(--text-muted);
    padding: .5rem;
    border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
    display: flex;
}
.logout-btn:hover { color: var(--danger); background: rgba(239,68,68,.1); text-decoration: none; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.admin-layout {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky; top: 0; z-index: 50;
    height: var(--topbar-h);
    background: rgba(8,13,25,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
}

.menu-toggle { display: none; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: .5rem; }

.topbar-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; flex: 1; }

.topbar-actions { display: flex; align-items: center; gap: .75rem; }

.admin-content { flex: 1; padding: 2rem 1.75rem; max-width: 1400px; width: 100%; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    margin: 0 1.75rem 1rem;
    animation: slideDown .3s ease;
}

.flash-success { background: rgba(16,185,129,.12); color: #34d399; border: 1px solid rgba(16,185,129,.2); }
.flash-error   { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.flash-info    { background: rgba(6,182,212,.12);  color: #22d3ee; border: 1px solid rgba(6,182,212,.2); }

.flash-close {
    margin-left: auto; background: none; border: none;
    color: inherit; cursor: pointer; opacity: .7; padding: .25rem;
}
.flash-close:hover { opacity: 1; }

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

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-header h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; }
.card-link { font-size: .85rem; color: var(--primary); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.card-body { padding: 1.5rem; }
.card-body.p0 { padding: 0; }
.card-body.p16 { padding: 1rem 1.5rem; }

/* ============================================================
   STATS GRID
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff; flex-shrink: 0;
}

.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; font-weight: 500; }

/* ============================================================
   DASHBOARD ROWS
   ============================================================ */
.dashboard-row {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.flex-1 { flex: 1; min-width: 240px; }
.flex-2 { flex: 2; min-width: 320px; }

/* ============================================================
   DATA TABLE
   ============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.data-table thead tr { border-bottom: 1px solid var(--border); }
.data-table th {
    padding: .8rem 1.25rem;
    text-align: left;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.data-table td {
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }

/* ============================================================
   COUNTRY LIST
   ============================================================ */
.country-list { list-style: none; }
.country-list li {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
}
.country-list li:last-child { border-bottom: none; }
.flag { font-size: 1.3rem; }
.country-name { flex: 1; }
.country-clicks { font-family: var(--font-head); font-weight: 700; }

/* ============================================================
   ACTIVITY LIST
   ============================================================ */
.activity-list { list-style: none; }
.activity-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-flag { font-size: 1.4rem; flex-shrink: 0; }
.activity-body { flex: 1; min-width: 0; }
.activity-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-meta { color: var(--text-muted); font-size: .78rem; margin-top: .1rem; }
.activity-time { color: var(--text-dim); font-size: .75rem; white-space: nowrap; flex-shrink: 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .6rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none; cursor: pointer;
    font-family: var(--font-body);
    font-size: .875rem; font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); box-shadow: 0 4px 14px rgba(99,102,241,.4); transform: translateY(-1px); color: #fff; text-decoration: none; }

.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }
.btn-secondary:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }

.btn-danger { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.btn-danger:hover { background: rgba(239,68,68,.25); color: #fca5a5; text-decoration: none; }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-xs { padding: .3rem .7rem; font-size: .75rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .825rem; font-weight: 600; color: var(--text-muted); margin-bottom: .45rem; }
.form-control {
    width: 100%; padding: .65rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .875rem;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2394a3b8' d='M8 11L2 5h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px; padding-right: 2.5rem; }

.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }

.input-prefix { display: flex; align-items: center; }
.input-prefix span { padding: .65rem .85rem; background: var(--surface-3); border: 1px solid var(--border-2); border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--text-muted); font-weight: 600; }
.input-prefix .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: .875rem; }
.input-icon .form-control { padding-left: 2.75rem; }
.input-icon-right { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .875rem; }

/* Color picker */
.color-pick { display: flex; align-items: center; gap: .75rem; }
.color-input { width: 42px; height: 42px; border: none; border-radius: var(--radius-sm); cursor: pointer; padding: 2px; background: var(--surface-2); border: 1px solid var(--border-2); }
.color-val { font-family: 'Courier New', monospace; font-size: .85rem; color: var(--text-muted); }

/* Toggle switch */
.toggle-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .875rem; font-weight: 500; }
.toggle-label input[type="checkbox"] { display: none; }
.toggle-switch {
    width: 44px; height: 24px;
    background: var(--surface-3);
    border-radius: 99px;
    position: relative;
    transition: background .2s;
    flex-shrink: 0;
    border: 1px solid var(--border-2);
}
.toggle-switch::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 16px; height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform .2s, background .2s;
}
.toggle-label input:checked + .toggle-switch { background: var(--primary); border-color: var(--primary); }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(20px); background: #fff; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex; align-items: center;
    padding: .2rem .65rem;
    border-radius: 99px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.badge-success { background: rgba(16,185,129,.12); color: #34d399; }
.badge-muted   { background: var(--surface-3); color: var(--text-muted); }
.badge-danger  { background: rgba(239,68,68,.12); color: #f87171; }
.badge-info    { background: rgba(6,182,212,.12); color: #22d3ee; }

/* ============================================================
   PROFILES GRID
   ============================================================ */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.profile-card-bg {
    height: 100px;
    display: flex; align-items: center; justify-content: center;
}

.profile-card-img {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.2);
    object-fit: cover;
    transform: translateY(36px);
}
.profile-card-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 3px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 1.75rem; font-weight: 800; color: #fff;
    transform: translateY(36px);
}

.profile-card-body { padding: 2.5rem 1.25rem 1.25rem; }
.profile-card-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.profile-card-slug { font-size: .8rem; color: var(--text-muted); margin-bottom: .9rem; }
.profile-card-stats { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.profile-card-stats i { margin-right: .25rem; }
.profile-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================================================
   PROFILE EDIT PAGE
   ============================================================ */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.page-header h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; }

.edit-layout { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.edit-main { flex: 1; min-width: 0; }
.edit-sidebar { width: 280px; flex-shrink: 0; }

.section-subtitle { font-family: var(--font-head); font-size: .95rem; font-weight: 700; margin: 1.25rem 0 1rem; color: var(--text-muted); }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.preview-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-top: .75rem; border: 2px solid var(--border-2); }

/* Link list */
.link-list { list-style: none; }
.link-item {
    display: flex; align-items: center; gap: 1rem;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.link-item:last-child { border-bottom: none; }
.link-item:hover { background: var(--surface-2); }

.drag-handle { color: var(--text-dim); cursor: grab; padding: .25rem; touch-action: none; }
.drag-handle:active { cursor: grabbing; }

.link-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.link-icon-sm {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; flex-shrink: 0;
}

.link-info { flex: 1; min-width: 0; }
.link-title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-actions { display: flex; align-items: center; gap: .4rem; }

/* QR */
.qr-code { width: 160px; height: 160px; border-radius: var(--radius-sm); display: block; margin: 0 auto; border: 4px solid #fff; }

/* Quick stat */
.quick-stat { text-align: center; }
.quick-stat-val { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; }

/* ============================================================
   ANALYTICS
   ============================================================ */
.pct-bar { display: flex; align-items: center; gap: .5rem; }
.pct-fill { height: 6px; background: var(--primary); border-radius: 99px; min-width: 2px; }
.pct-bar span { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--radius);
    width: 100%; max-width: 500px;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px);
    transition: transform .25s;
}
.modal-backdrop.open .modal { transform: none; }

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: var(--font-head); font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: .3rem; border-radius: 6px; }
.modal-close:hover { background: var(--surface-2); }
.modal-body { padding: 1.5rem; }
.modal-footer { display: flex; gap: .75rem; justify-content: flex-end; padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at 30% 60%, #1e3a8a 0%, #0f172a 60%);
}

.login-container {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%; max-width: 420px;
    box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

.login-brand { text-align: center; margin-bottom: 2rem; }
.login-logo {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    margin: 0 auto 1rem;
}
.login-brand h1 { font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; }
.login-brand p { color: var(--text-muted); font-size: .875rem; }

.login-form .form-group { margin-bottom: 1.1rem; }
.login-hint { text-align: center; margin-top: 1.25rem; font-size: .8rem; color: var(--text-dim); }
.login-hint code { background: var(--surface-2); }

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-avatar {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: #fff;
    margin: 0 auto .5rem;
}

/* ============================================================
   PROFILE TABLE CELL
   ============================================================ */
.profile-cell { display: flex; align-items: center; gap: .75rem; }
.table-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.table-avatar-placeholder {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: #fff;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 1rem; display: block; opacity: .4; }
.empty-state p { margin-bottom: 0; }
.empty-state.large { padding: 4rem 2rem; }
.empty-state.large i { font-size: 4rem; }
.empty-state.large h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-muted { color: var(--text-muted) !important; }
.text-sm    { font-size: .8rem !important; }
.text-center { text-align: center; }
.fw-600 { font-weight: 600; }
.p16 { padding: 1rem 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .admin-layout { margin-left: 0; }

    .sidebar {
        transform: translateX(-100%);
        z-index: 101;
    }
    .sidebar.open { transform: none; }
    .sidebar-close { display: flex; }

    .sidebar-overlay.open { display: block; }
    .menu-toggle { display: flex; }

    .edit-sidebar { width: 100%; }
    .dashboard-row { flex-direction: column; }
}

@media (max-width: 600px) {
    .admin-content { padding: 1.25rem 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profiles-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .form-row .form-group { min-width: 0; }
    .admin-topbar { padding: 0 1rem; }
}
