:root {
    --purple-primary: #6D28D9;
    --purple-dark: #2E1065;
    --purple-light: #F8FAFC;
    --purple-secondary: #7C3AED;
    --purple-accent: #8B5CF6;
    --purple-subtle: #FAF5FF;
    --purple-border: #E9D5FF;
    --green: #10B981;
    --green-bg: #DCFCE7;
    --green-text: #166534;
    --amber: #F59E0B;
    --amber-bg: #FEF3C7;
    --amber-text: #92400E;
    --red: #EF4444;
    --red-bg: #FEE2E2;
    --red-text: #991B1B;
    --blue: #3B82F6;
    --blue-bg: #DBEAFE;
    --blue-text: #1E40AF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --card-shadow: 0 4px 20px -2px rgba(88, 28, 135, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 10px 25px -5px rgba(88, 28, 135, 0.09), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--purple-light);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* =========================================================
   SIDEBAR NAVIGATION (Desktop + Responsive Drawer)
   ========================================================= */

/* Backdrop overlay for mobile drawer */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar {
    width: 275px;
    background: linear-gradient(180deg, #1E0A3C 0%, #3B0764 45%, #581C87 100%);
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 6px;
    position: relative;
}

.logo-badge {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.logo-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.logo-text h2 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Close button inside mobile drawer */
.btn-sidebar-close {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-sidebar-close:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Sidebar Admin Chip */
.sidebar-admin-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 20px;
}

.chip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #A855F7;
    color: white;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chip-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.chip-name {
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-badge {
    font-size: 10px;
    color: #D8B4FE;
    font-weight: 600;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nav-item a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
}

.nav-item.active a {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-item.active a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #C084FC;
    border-radius: 4px;
}

.nav-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item-badge {
    font-size: 10px;
    font-weight: 700;
    background: #10B981;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sidebar-footer {
    padding-top: 18px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-status-indicator {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 4px var(--green); }
    50% { transform: scale(1.15); box-shadow: 0 0 12px var(--green); }
    100% { transform: scale(0.95); box-shadow: 0 0 4px var(--green); }
}

.btn-logout {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    color: #FCA5A5;
}

/* =========================================================
   MOBILE BOTTOM NAVIGATION BAR
   ========================================================= */
.mobile-bottom-nav {
    display: none;
}

/* =========================================================
   MAIN CONTENT & TOP NAVIGATION
   ========================================================= */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 30px 36px 40px 36px;
    overflow-y: auto;
    max-height: 100vh;
    background: var(--purple-light);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    gap: 16px;
    flex-wrap: wrap;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

/* Hamburger button */
.btn-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-menu-toggle:hover {
    background: var(--purple-subtle);
    border-color: var(--purple-border);
}

.btn-menu-toggle .hamburger-bar {
    width: 18px;
    height: 2.2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.page-title {
    min-width: 0;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.25;
    word-break: break-word;
}

.page-title p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
    line-height: 1.4;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.server-badge {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
    flex-shrink: 0;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-profile:hover {
    border-color: var(--purple-border);
    background: var(--purple-subtle);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED 0%, #581C87 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(88, 28, 135, 0.2);
    flex-shrink: 0;
}

.admin-details .admin-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.2;
}

.admin-details .admin-role {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================================
   STATISTICS & KPI CARDS (Fully Responsive Grid)
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.stat-card {
    background: white;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--purple-border);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, var(--purple-primary) 0%, #A855F7 100%);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.stat-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.6px;
    line-height: 1.2;
    word-break: break-all;
}

.stat-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.4;
}

/* =========================================================
   BADGES & PILLS
   ========================================================= */
.badge-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge-green {
    background: var(--green-bg);
    color: var(--green-text);
}

.badge-purple {
    background: #F3E8FF;
    color: var(--purple-primary);
}

.badge-amber {
    background: var(--amber-bg);
    color: var(--amber-text);
}

.badge-red {
    background: var(--red-bg);
    color: var(--red-text);
}

.badge-blue {
    background: var(--blue-bg);
    color: var(--blue-text);
}

/* =========================================================
   CARD BOXES & RESPONSIVE TABLES
   ========================================================= */
.card-box {
    background: white;
    border-radius: 18px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    max-width: 100%;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.card-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
}

th {
    font-size: 11.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    background: #F8FAFC;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

td {
    font-size: 13px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

tr:hover td {
    background: #FAF8FE;
}

.truncate-text {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

.url-pill {
    background: #F1F5F9;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    font-family: monospace;
    color: var(--purple-dark);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.3;
    white-space: nowrap;
    min-height: 38px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--purple-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

.btn-primary:hover {
    background: var(--purple-dark);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.35);
}

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

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

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

.btn-danger:hover {
    background: #DC2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    min-height: 32px;
}

/* =========================================================
   FILTERS & FORMS (Responsive Auto-Wrap)
   ========================================================= */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1 1 220px;
    min-width: 180px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    background: white;
    max-width: 100%;
}

.search-input:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

.select-filter {
    flex: 0 1 auto;
    min-width: 150px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    background: white;
    outline: none;
    color: var(--text-dark);
    font-weight: 500;
}

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

.form-group {
    margin-bottom: 16px;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.2s;
    background: white;
    max-width: 100%;
}

.form-control:focus {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}

/* Tabs Navigation Bar (Scrollable on small screens) */
.tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.tab-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--purple-primary);
    background: var(--purple-subtle);
}

.tab-btn.active {
    background: var(--purple-primary);
    color: white;
    border-color: var(--purple-primary);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.tab-pane {
    display: none;
    animation: tabFade 0.25s ease-out;
}

.tab-pane.active {
    display: block;
}

@keyframes tabFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

pre.code-block {
    background: #0F172A;
    color: #38BDF8;
    padding: 16px;
    border-radius: 12px;
    font-size: 12px;
    overflow-x: auto;
    max-height: 280px;
    font-family: monospace;
}

/* =========================================================
   MODAL POPUP (Mobile Safe & Centered)
   ========================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    margin: auto;
}

@keyframes modalPop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
}

/* Responsive Pricing Plans Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (DESKTOP, TABLET, MOBILE)
   ========================================================= */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
    .sidebar-backdrop {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 285px;
        max-width: 86vw;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2000;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .btn-sidebar-close {
        display: flex;
    }

    .btn-menu-toggle {
        display: flex;
    }

    .main-content {
        padding: 22px 20px 84px 20px;
        max-height: none;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 14px;
    }
}

/* Mobile Phones (<= 768px) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .main-content {
        padding: 16px 12px 90px 12px;
    }

    .top-nav {
        margin-bottom: 16px;
        gap: 10px;
    }

    .page-title h1 {
        font-size: 19px;
    }

    .page-title p {
        font-size: 11.5px;
    }

    .server-badge {
        display: none;
    }

    .admin-details {
        display: none;
    }

    .admin-profile {
        padding: 4px;
        border-radius: 50%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .stat-card {
        padding: 16px 18px;
    }

    .stat-value {
        font-size: 22px;
    }

    .card-box {
        padding: 18px 14px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .card-actions .btn {
        flex: 1 1 auto;
    }

    .card-title {
        font-size: 15.5px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-input, .select-filter, .filter-bar .btn {
        width: 100%;
        min-width: 0;
    }

    /* Override inline CSS multi-columns to single column on mobile */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .profile-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px !important;
        gap: 14px !important;
    }

    .profile-banner .avatar-circle {
        margin: 0 auto;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        z-index: 1500;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    }

    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 600;
        padding: 6px 8px;
        border-radius: 10px;
        transition: all 0.2s ease;
        border: none;
        background: transparent;
        cursor: pointer;
        flex: 1;
        min-height: 48px;
    }

    .mob-nav-item.active {
        color: var(--purple-primary);
        font-weight: 700;
    }

    .mob-nav-icon {
        font-size: 18px;
        margin-bottom: 2px;
        line-height: 1;
    }

    .modal-box {
        padding: 20px 16px;
        border-radius: 16px;
    }
}
