:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --critical: #7c3aed;
    --critical-light: #ede9fe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.login-card h1 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.login-card .subtitle {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #047857; }

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

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

.btn-block { width: 100%; justify-content: center; }

.error-msg {
    background: var(--danger-light);
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca;
}

.navbar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    position: relative;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.navbar-nav a {
    padding: 0.5rem 0.875rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.navbar-nav a:hover { background: var(--gray-100); color: var(--gray-900); }
.navbar-nav a.active { background: var(--primary); color: white; }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-badge {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

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

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    color: var(--gray-900);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gray-300);
}

.stat-card.primary { border-left-color: var(--primary); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.critical { border-left-color: var(--critical); }

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

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

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-body {
    padding: 1.25rem;
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

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

.table-wrap {
    overflow-x: auto;
}

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

table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

table tr:hover { background: var(--gray-50); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-in_progress { background: #dbeafe; color: #2563eb; }
.badge-completed { background: var(--success-light); color: var(--success); }

.badge-low { background: var(--gray-100); color: var(--gray-600); }
.badge-medium { background: var(--warning-light); color: var(--warning); }
.badge-high { background: #fee2e2; color: var(--danger); }
.badge-critical { background: var(--critical-light); color: var(--critical); }

.badge-draft { background: var(--warning-light); color: var(--warning); }

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

.actions form { display: inline; }

.actions select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.75rem;
    background: white;
}

.icon-btn {
    padding: 0.375rem;
    border: none;
    background: none;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.icon-btn:hover { background: var(--danger-light); color: var(--danger); }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.2s;
}

.hamburger:hover { background: var(--gray-100); }

@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .hamburger { display: flex; }
    .navbar-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0.5rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }
    .navbar-nav.open { display: flex; }
    .navbar-right .user-badge { display: none; }
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

.modal {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal h2 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.log-list {
    list-style: none;
}

.log-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.8125rem;
}

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

.log-item .log-action {
    font-weight: 500;
    color: var(--gray-800);
}

.log-item .log-time {
    color: var(--gray-400);
    font-size: 0.75rem;
}

.log-item .log-detail {
    color: var(--gray-500);
}

.doc-content {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.7;
    max-height: 70vh;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400);
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.empty-state-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.empty-state-content p {
    margin: 0;
}

.progress-bar-container {
    background: var(--gray-200);
    border-radius: 50px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
    background: var(--success);
    transition: width 0.5s ease;
}

.flash-msg {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: flash-in 0.3s ease;
}

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

.flash-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.flash-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0 0.25rem;
    line-height: 1;
}

.flash-close:hover { opacity: 1; }

.link-muted {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.8125rem;
}

.link-muted:hover { color: var(--primary); text-decoration: underline; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

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

.hero {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, #eff6ff 100%);
    border-bottom: 1px solid var(--gray-200);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.15;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.features-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

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

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.cta-section {
    padding: 3rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-900);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer .navbar-brand { color: #fff; }

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.8125rem;
}

.footer-links a:hover {
    color: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    transition: box-shadow 0.2s;
}

.pricing-card:hover { box-shadow: var(--shadow-md); }

.pricing-card.featured {
    border-color: var(--primary);
    border-width: 2px;
    transform: scale(1.03);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
}

.pricing-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.pricing-features li.disabled {
    color: var(--gray-400);
}

.pricing-action { margin-top: auto; }

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.legal-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.legal-content li {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.verification-banner {
    background: var(--warning-light);
    border: 1px solid var(--warning);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.form-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-800);
    background: #fff;
    appearance: auto;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-800);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.onboarding-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e0e7ff 100%);
    padding: 1rem;
}

.onboarding-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 640px;
    box-shadow: var(--shadow-md);
}

.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.progress-step span {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.progress-step.active span {
    color: var(--primary);
}

.progress-step.completed span {
    color: var(--success);
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--gray-500);
    transition: all 0.2s;
}

.progress-step.active .step-circle {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-circle {
    background: var(--success);
    color: white;
}

.progress-line {
    width: 60px;
    height: 3px;
    background: var(--gray-200);
    margin: 0 0.25rem;
    margin-bottom: 1.2rem;
    border-radius: 2px;
    transition: background 0.2s;
}

.progress-line.active {
    background: var(--success);
}

.onboarding-content h1 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.onboarding-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.admin-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-600);
    background: white;
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.danger-card {
    border: 2px solid var(--danger-light);
    background: #fff5f5;
}

.danger-card .card-header {
    border-bottom-color: var(--danger-light);
}

.assistant-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}

.chat-container {
    display: flex;
    flex-direction: column;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 90%;
}

.user-message {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.user-message p { color: white; }

.assistant-message {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
}

.assistant-message strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.suggestions-panel .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-btn {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
    font-size: 0.85rem;
    color: var(--gray-700);
    transition: all 0.15s;
}

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

.filter-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
}

.badge-critical { background: var(--critical-light); color: var(--critical); }
.badge-high { background: var(--danger-light); color: var(--danger); }
.badge-medium { background: var(--warning-light); color: var(--warning); }
.badge-low { background: var(--success-light); color: var(--success); }
.badge-completed { background: var(--success-light); color: var(--success); }
.badge-pending { background: var(--warning-light); color: var(--warning); }
.badge-default { background: var(--gray-100); color: var(--gray-500); }
.badge-info { background: #dbeafe; color: #1d4ed8; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.framework-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.framework-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.15s;
    cursor: pointer;
}

.framework-card:hover {
    border-color: var(--primary-light);
    background: #eff6ff;
}

.framework-card.active {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--primary);
}

.framework-card strong {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.framework-card span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

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

.gap-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #fff5f5;
}

.gap-item.covered {
    background: #f0fdf4;
}

.gap-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gap-icon {
    font-size: 1.1rem;
    color: var(--danger);
}

.gap-recommendation {
    font-size: 0.85rem;
    color: var(--gray-600);
    padding-left: 1.6rem;
}

.gap-matches {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-left: 1.6rem;
    margin-top: 0.35rem;
}

.match-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-right: 0.25rem;
}

.match-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    background: var(--gray-100);
    border-radius: 4px;
    color: var(--gray-700);
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.next-step-card {
    display: block;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.15s;
}

.next-step-card:hover {
    border-color: var(--primary-light);
    background: #eff6ff;
    transform: translateY(-1px);
}

.next-step-card strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.next-step-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.75rem; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
    .pricing-card.featured { transform: none; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .verification-banner { flex-direction: column; text-align: center; }
    .onboarding-card { padding: 1.5rem; }
    .progress-line { width: 30px; }
    .onboarding-actions { flex-direction: column; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .assistant-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .framework-selector { grid-template-columns: 1fr 1fr; }
    .next-steps-grid { grid-template-columns: 1fr; }
}
