:root {
    --primary: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fff7ed;
    --secondary: #64748b;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease-out, visibility 0.4s;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.splash-content .logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.splash-loader {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Auth Page */
.auth-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: white;
}

.auth-left h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-left p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.6;
}

.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-main);
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Login loading state */
.auth-form-container.is-loading .form-group input {
    opacity: 0.5;
    pointer-events: none;
}

.login-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.875rem;
    min-height: 1.25rem;
    transition: opacity 0.2s;
}

.login-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: status-pulse 1s ease-in-out infinite;
}

@keyframes status-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

.btn-spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}

.auth-form-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-form-container .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: none;
}

.form-error.show {
    display: block;
}

/* App Container */
.app-container {
    display: none;
    height: 100vh;
    width: 100vw;
}

.app-container.show {
    display: flex;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

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

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    margin-bottom: 0.125rem;
    font-size: 0.875rem;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-item i {
    width: 18px;
    height: 18px;
}

.badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.badge-danger {
    background-color: #fee2e2;
    color: #ef4444;
}

.badge-secondary {
    background-color: #f1f5f9;
    color: var(--text-muted);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    padding: 0.625rem;
    border-radius: var(--radius-md);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background-color: #e2e8f0;
    object-fit: cover;
}

.avatar-sm {
    width: 28px;
    height: 28px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.logout-btn {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    width: 18px;
    height: 18px;
}

.logout-btn:hover {
    color: var(--danger);
}

/* Main Content Styling */
.main-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.top-header {
    height: 64px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    width: 360px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.search-bar:focus-within {
    background-color: white;
    border-color: var(--primary);
}

.search-bar i {
    color: var(--text-muted);
    width: 16px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8125rem;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    position: relative;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #f8fafc;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.375rem;
    width: 32px;
    height: 32px;
}

/* Loading state for buttons */
.btn.loading {
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: white;
}

.btn-secondary.loading::after {
    border-top-color: var(--text-main);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.divider {
    width: 1px;
    height: 20px;
    background-color: var(--border);
    margin: 0 0.25rem;
}

.notification-trigger {
    position: relative;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background-color: var(--danger);
    border-radius: 50%;
}

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

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

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Page Content */
.content-fade {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 20px;
    height: 20px;
}

.stat-icon.blue { background-color: #eff6ff; color: #3b82f6; }
.stat-icon.green { background-color: #f0fdf4; color: #22c55e; }
.stat-icon.purple { background-color: #faf5ff; color: #a855f7; }
.stat-icon.orange { background-color: #fff7ed; color: #f97316; }
.stat-icon.red { background-color: #fef2f2; color: #ef4444; }

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Main Section Layout */
.section-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
    align-items: start;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    overflow: visible; /* Changed from hidden to show dropdowns */
}

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

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Table Styling */
.table-container {
    width: 100%;
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
}

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

tr:hover {
    background-color: #fafafa;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background-color: #f0fdf4; color: #16a34a; }
.status-pending { background-color: #fffbeb; color: #d97706; }
.status-closed, .status-banned { background-color: #fef2f2; color: #dc2626; }
.status-suspended { background-color: #fef3c7; color: #b45309; }
.status-approved, .status-verified { background-color: #f0fdf4; color: #16a34a; }
.status-rejected { background-color: #fef2f2; color: #dc2626; }

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 9999;
    max-width: 360px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.toast-visible { opacity: 1; transform: translateY(0); }
.toast-success { background-color: #16a34a; }
.toast-error   { background-color: #dc2626; }
.toast-info    { background-color: #2563eb; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

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

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    max-height: calc(90vh - 130px);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

/* User Profile Modal */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.profile-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-info p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
}

.profile-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.profile-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.profile-row-label {
    color: var(--text-muted);
}

.profile-row-value {
    font-weight: 500;
}

/* Skeleton Loading */
.skeleton-header {
    height: 32px;
    width: 200px;
    background-color: #e2e8f0;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.skeleton-card {
    height: 120px;
    background: #e2e8f0;
    border-radius: var(--radius-lg);
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-large {
    height: 300px;
    background: #e2e8f0;
    border-radius: var(--radius-lg);
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

/* Animation for page transitions */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-fade > * {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.empty-state p {
    font-size: 0.8125rem;
}

/* Filters */
.filters-bar {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    background: white;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.menu-toggle:hover {
    color: var(--text-main);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

/* ─── Card-based item list ─────────────────────────────────────────────────── */
.item-list {
    display: flex;
    flex-direction: column;
}

.item-card {
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.25rem;
    transition: background 0.12s;
}

.item-card:last-child {
    border-bottom: none;
}

.item-card:hover {
    background: #fafafa;
}

.item-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.item-main {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.item-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.375rem;
}

.chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.chip-role    { background: #f1f5f9; color: var(--text-muted); }
.chip-type    { background: #eff6ff; color: #2563eb; }
.chip-muted   { background: #f8fafc; color: var(--text-muted); }
.chip-active  { background: #f0fdf4; color: #16a34a; }
.chip-banned  { background: #fef2f2; color: #dc2626; }
.chip-suspended { background: #fef3c7; color: #b45309; }
.chip-verified  { background: #eff6ff; color: #2563eb; }

.chip-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* ─── Action Menu (dropdown) ──────────────────────────────────────────────── */
.action-menu-wrap {
    position: relative;
    flex-shrink: 0;
}

.action-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    min-width: 170px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.action-menu.show {
    display: block;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s;
    text-align: left;
}

.action-item i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.action-item:hover {
    background: #f8fafc;
}

.action-item.danger {
    color: var(--danger);
}

.action-item.danger:hover {
    background: #fef2f2;
}

/* ─── Report Cards ─────────────────────────────────────────────────────────── */
.report-reason-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: #fff7ed;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-reason-icon i { width: 18px; height: 18px; }

.report-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.5rem 0.75rem;
    margin: 0 0 0.375rem;
    background: #f8fafc;
    border-left: 3px solid var(--border);
    border-radius: 0 4px 4px 0;
}

.report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
}

/* ─── Verification Docs ────────────────────────────────────────────────────── */
.verification-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.625rem 0;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-main);
    text-decoration: none;
    background: white;
    transition: all 0.15s;
}

.doc-link i { width: 14px; height: 14px; }

.doc-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ─── Severity colors ──────────────────────────────────────────────────────── */
.chip-severity-low      { background: #f0fdf4; color: #16a34a; }
.chip-severity-medium   { background: #fffbeb; color: #d97706; }
.chip-severity-high     { background: #fff7ed; color: #ea580c; }
.chip-severity-critical { background: #fef2f2; color: #dc2626; }

.severity-low      { background: #f0fdf4; color: #16a34a; }
.severity-medium   { background: #fffbeb; color: #d97706; }
.severity-high     { background: #fff7ed; color: #ea580c; }
.severity-critical { background: #fef2f2; color: #dc2626; }

/* ─── Dashboard Quick Actions ──────────────────────────────────────────────── */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.15s;
    position: relative;
}

.quick-action-btn i { width: 22px; height: 22px; color: var(--primary); }

.quick-action-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.qa-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

/* ─── Stat rows (dashboard) ────────────────────────────────────────────────── */
.stat-rows {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.stat-row-label {
    color: var(--text-muted);
}

/* ─── Inline search in filter bar ─────────────────────────────────────────── */
.filters-wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    flex: 1;
    min-width: 200px;
}

.filter-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

/* ─── Stats grid – 3-col on desktop, 2-col on tablet, 1-col on mobile ─────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .top-header {
        padding: 0 1rem;
    }

    .search-bar {
        flex: 1;
        width: auto;
        max-width: 240px;
    }

    .content-fade {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .item-card {
        padding: 0.75rem 1rem;
    }

    .report-actions {
        padding: 0.625rem 0.75rem;
    }

    .report-actions .btn {
        flex: 1;
        min-width: 0;
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }

    .action-menu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-bar {
        display: none;
    }

    .filters-wrap {
        padding: 0.75rem;
    }

    .item-title {
        font-size: 0.8125rem;
    }
}

/* Bot Management Logs */
.log-container {
    background: #0f172a;
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    padding: 1rem;
    border-radius: var(--radius-md);
    height: 400px;
    overflow-y: auto;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.log-entry {
    padding: 0.375rem 0;
    border-bottom: 1px solid #1e293b;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.log-time {
    color: #64748b;
    min-width: 80px;
}

.log-user {
    color: #38bdf8;
    font-weight: 600;
}

.log-location {
    color: #fbbf24;
}

.log-hash {
    margin-left: auto;
    color: #475569;
    font-size: 0.75rem;
}
