:root {
    --primary: #0d7377;
    --primary-dark: #0a5c5f;
    --primary-light: #e6f3f3;
    --primary-50: #f0fafa;
    --secondary: #1e293b;
    --accent: #0891b2;
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --info: #0284c7;
    --info-light: #f0f9ff;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --radius: 8px;
    --radius-lg: 12px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', Menlo, Consolas, monospace;
}

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

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navbar ---- */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 3.75rem; }
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.navbar-brand:hover { color: var(--primary); }
.brand-icon { width: 28px; height: 28px; }
.brand-icon-sm { width: 20px; height: 20px; }
.navbar-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-light); }
.navbar-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 4px; }
.navbar-toggle span { display: block; width: 20px; height: 2px; background: var(--gray-600); border-radius: 2px; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
    display: none; position: absolute; right: 0; top: 100%; min-width: 180px;
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 0.25rem 0; z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--gray-700); }
.nav-dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.nav-dropdown-menu hr { border: none; border-top: 1px solid var(--gray-200); margin: 0.25rem 0; }

/* ---- Main Content ---- */
.main-content { flex: 1; padding: 2rem 0; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.02em; line-height: 1.2; }
.page-subtitle { color: var(--gray-500); font-size: 0.95rem; margin-top: 0.25rem; }
.page-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ---- Cards ---- */
.card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h2, .card-header h3 { font-size: 1rem; font-weight: 600; color: var(--gray-800); }
.card-body { padding: 1.25rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.75rem; }

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

/* ---- Stats ---- */
.stats-grid { display: grid; gap: 1rem; }
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}
.stat-card-sm { padding: 1rem; }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon-primary { background: var(--primary-light); color: var(--primary); }
.stat-icon-success { background: var(--success-light); color: var(--success); }
.stat-icon-danger { background: var(--danger-light); color: var(--danger); }
.stat-icon-warning { background: var(--warning-light); color: var(--warning); }
.stat-icon-info { background: var(--info-light); color: var(--info); }
.stat-number { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }

.stats-section { background: var(--gray-800); padding: 3rem 0; border-radius: 0; margin: 3rem 0; }
.stats-section .stats-grid { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; grid-template-columns: repeat(4, 1fr); }
.stats-section .stat-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); text-align: center; flex-direction: column; }
.stats-section .stat-number { color: #fff; font-size: 2rem; }
.stats-section .stat-label { color: rgba(255,255,255,0.7); }

/* ---- Mini Stats ---- */
.mini-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.mini-stat { display: flex; flex-direction: column; }
.mini-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.mini-stat-label { font-size: 0.75rem; color: var(--gray-500); }

/* ---- Tables ---- */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; color: var(--gray-600); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--gray-200); white-space: nowrap; }
.table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table-hover tbody tr:hover { background: var(--gray-50); }
.table-compact th, .table-compact td { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
.row-highlight { background: var(--primary-50) !important; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.55rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
    border: 1px solid transparent; cursor: pointer; transition: all 0.15s; text-decoration: none; white-space: nowrap;
    font-family: inherit; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-outline { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.btn-block { width: 100%; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.825rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; border-radius: 4px; }
.action-buttons { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* ---- Badges ---- */
.badge {
    display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge-sm { font-size: 0.7rem; padding: 0.1rem 0.4rem; }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-primary { background: var(--primary-light); color: var(--primary); }

/* ---- Forms ---- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.875rem; color: var(--gray-700); margin-bottom: 0.35rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.55rem 0.75rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    font-size: 0.9rem; font-family: inherit; color: var(--gray-800); background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}
.form-select { appearance: auto; }
.form-select-sm { padding: 0.25rem 0.5rem; font-size: 0.8rem; }
.form-textarea { resize: vertical; }
.form-help { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }
.required { color: var(--danger); }
.input-group { display: flex; }
.input-group .form-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-addon {
    display: flex; align-items: center; padding: 0 0.6rem; background: var(--gray-50);
    border: 1px solid var(--gray-300); border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer; color: var(--gray-500);
}
.input-addon:hover { color: var(--gray-700); }
.form-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--gray-100); }
.form-section:last-of-type { border-bottom: none; }
.form-section-title { font-size: 1rem; font-weight: 600; color: var(--gray-800); margin-bottom: 1rem; }
.form-actions { display: flex; gap: 0.75rem; padding-top: 1rem; }
.form-actions-inline { display: flex; gap: 0.75rem; align-items: center; padding-top: 0.5rem; }
.form-group-flex { display: flex; align-items: flex-end; gap: 0.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; cursor: pointer; padding-bottom: 0.55rem; }
.code-textarea { font-family: var(--font-mono); font-size: 0.8rem; background: var(--gray-50); }

/* ---- Alerts ---- */
.alert {
    padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 1rem;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
}
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #d1fae5; }
.alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--info-light); color: #075985; border: 1px solid #bae6fd; }
.alert-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: inherit; opacity: 0.7; line-height: 1; }

/* ---- Detail List ---- */
.detail-list { display: flex; flex-direction: column; gap: 0; }
.detail-item { display: flex; padding: 0.55rem 0; border-bottom: 1px solid var(--gray-100); }
.detail-item:last-child { border-bottom: none; }
.detail-item dt { flex: 0 0 160px; font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }
.detail-item dd { font-size: 0.9rem; color: var(--gray-800); word-break: break-all; }

/* ---- Code ---- */
code { font-family: var(--font-mono); font-size: 0.85em; }
.serial-code { background: var(--gray-100); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.8rem; }
.fingerprint { font-size: 0.75rem; word-break: break-all; color: var(--gray-600); }
.code-block { background: var(--gray-800); color: #e2e8f0; padding: 1rem; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.85rem; overflow-x: auto; margin: 0.5rem 0 1rem; }

/* ---- Hero ---- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 4rem 0; }
.hero-badge { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600; background: var(--primary-light); color: var(--primary); margin-bottom: 1rem; }
.hero h1 { font-size: 3rem; font-weight: 800; color: var(--gray-900); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 0.75rem; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.shield-icon svg { width: 200px; height: 233px; }

/* ---- Features ---- */
.features-section { padding: 4rem 0; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); text-align: center; margin-bottom: 2.5rem; letter-spacing: -0.02em; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; transition: all 0.2s; }
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.5; }

/* ---- Links Section ---- */
.links-section { padding: 3rem 0 4rem; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.link-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; transition: all 0.2s; display: block; }
.link-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.link-card h3 { font-size: 1.1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.5rem; }
.link-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 1rem; }
.link-arrow { font-size: 0.85rem; font-weight: 500; color: var(--primary); }

/* ---- Auth Page ---- */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 2rem 0; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-lg); }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo { width: 56px; height: 56px; margin-bottom: 1rem; }
.auth-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.auth-header p { font-size: 0.9rem; color: var(--gray-500); margin-top: 0.25rem; }
.auth-form { margin-top: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; }
.auth-note { font-size: 0.8rem; color: var(--gray-400); }

/* ---- Quick Actions ---- */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.quick-action {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.25rem;
    border: 1px solid var(--gray-200); border-radius: var(--radius); text-align: center;
    color: var(--gray-700); transition: all 0.2s;
}
.quick-action:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); transform: translateY(-2px); }
.quick-action svg { width: 28px; height: 28px; opacity: 0.7; }
.quick-action span { font-size: 0.85rem; font-weight: 500; }

/* ---- Admin Nav ---- */
.admin-nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.admin-nav-card {
    background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem;
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
    transition: all 0.2s; color: var(--gray-700);
}
.admin-nav-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--primary); }
.admin-nav-card svg { width: 32px; height: 32px; opacity: 0.7; }
.admin-nav-card h3 { font-size: 1rem; font-weight: 600; color: var(--gray-900); }
.admin-nav-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ---- Filter Bar ---- */
.filter-bar { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.4rem 0.85rem; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
    color: var(--gray-600); background: #fff; border: 1px solid var(--gray-200); transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1.5rem; }
.pagination-info { font-size: 0.85rem; color: var(--gray-500); }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--gray-500); }
.empty-state p { margin-bottom: 1rem; }
.empty-state-lg { text-align: center; padding: 4rem 1rem; }
.empty-state-lg svg { color: var(--gray-300); margin-bottom: 1rem; }
.empty-state-lg h2 { font-size: 1.25rem; color: var(--gray-700); margin-bottom: 0.5rem; }
.empty-state-lg p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ---- Modal ---- */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.modal.modal-open { display: flex; }
.modal-content { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { font-size: 1.1rem; font-weight: 600; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); line-height: 1; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 0.5rem; }

/* ---- Footer ---- */
.site-footer { background: #fff; border-top: 1px solid var(--gray-200); padding: 2rem 0; margin-top: auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray-500); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--gray-500); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 0.8rem; color: var(--gray-400); }

/* ---- Info List ---- */
.info-list { padding-left: 1.25rem; margin: 0.5rem 0; }
.info-list li { margin-bottom: 0.35rem; font-size: 0.9rem; }

/* ---- Utility ---- */
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-nowrap { white-space: nowrap; }
.search-form .form-group { margin-bottom: 0.75rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .admin-nav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    html { font-size: 14px; }
    .hero { grid-template-columns: 1fr; gap: 2rem; text-align: center; padding: 2rem 0; }
    .hero h1 { font-size: 2.25rem; }
    .hero-subtitle { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .navbar-toggle { display: flex; }
    .navbar-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--gray-200); flex-direction: column; padding: 0.75rem; box-shadow: var(--shadow-md); }
    .navbar-menu.active { display: flex; }
    .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .stats-grid-3, .stats-grid-5 { grid-template-columns: 1fr 1fr; }
    .stats-section .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .links-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .admin-nav-grid { grid-template-columns: 1fr; }
    .detail-item { flex-direction: column; gap: 0.15rem; }
    .detail-item dt { flex: none; }
    .page-header { flex-direction: column; }
}
@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .card-body { padding: 1rem; }
    .auth-card { padding: 1.5rem; }
    .quick-actions { grid-template-columns: 1fr; }
    .stats-grid-3, .stats-grid-5 { grid-template-columns: 1fr; }
}
