.page-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .94)),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, .42), transparent 24rem);
    color: #fff;
    box-shadow: var(--ai-shadow);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, .22);
    background: radial-gradient(circle, rgba(6, 182, 212, .16), transparent 65%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero-eyebrow {
    color: #67e8f9;
    font-weight: 900;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.page-hero h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2.25rem);
    font-weight: 950;
    letter-spacing: -.045em;
}
.page-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: #cbd5e1;
    font-size: .98rem;
}

.ai-card, .app-card {
    background: var(--ai-surface);
    border: 1px solid var(--ai-border);
    border-radius: var(--ai-radius-lg);
    box-shadow: var(--ai-shadow-sm);
}
.ai-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 22px 0;
}
.ai-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -.025em;
}
.ai-card-subtitle {
    margin: 5px 0 0;
    color: var(--ai-muted);
    font-size: .86rem;
}
.ai-card-body { padding: 22px; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.metric-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--ai-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--ai-shadow-sm);
}
.metric-card::after {
    content: "";
    position: absolute;
    right: -32px;
    top: -32px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
}
.metric-label {
    color: var(--ai-muted);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}
.metric-value {
    margin-top: 8px;
    color: var(--ai-text);
    font-size: 2rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.06em;
}
.metric-note {
    margin-top: 9px;
    color: var(--ai-muted);
    font-size: .84rem;
}

.table-card {
    overflow: hidden;
    border: 1px solid var(--ai-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--ai-shadow-sm);
}
.table-card .table { margin-bottom: 0; }
.table thead th {
    border-bottom: 1px solid var(--ai-border);
    background: #f8fafc;
    color: #475569;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
}
.table tbody td {
    color: #1e293b;
    border-color: #eef2f7;
    vertical-align: middle;
}

.btn { border-radius: 12px; font-weight: 800; }
.btn-primary { background: var(--ai-primary); border-color: var(--ai-primary); }
.btn-primary:hover { background: var(--ai-primary-dark); border-color: var(--ai-primary-dark); }
.btn-soft-primary { color: #1d4ed8; background: #dbeafe; border-color: #bfdbfe; }
.btn-soft-primary:hover { color: #fff; background: var(--ai-primary); border-color: var(--ai-primary); }
.btn-pdf { color: #fff; background: var(--ai-danger); border-color: var(--ai-danger); }
.btn-excel { color: #fff; background: var(--ai-success); border-color: var(--ai-success); }
.btn-audit { color: #fff; background: var(--ai-purple); border-color: var(--ai-purple); }

.badge, .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: .42rem .68rem;
    font-weight: 900;
    font-size: .74rem;
}
.status-active, .badge-low { color: #166534; background: #dcfce7; }
.status-review, .badge-medium { color: #92400e; background: #fef3c7; }
.status-blocked, .badge-high { color: #991b1b; background: #fee2e2; }
.status-critical, .badge-critical { color: #fff; background: #111827; }
.status-info { color: #155e75; background: #cffafe; }

.form-control, .form-select {
    border-color: var(--ai-border);
    border-radius: 13px;
    min-height: 42px;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(37,99,235,.55);
    box-shadow: var(--ai-focus);
}
.form-label {
    color: #334155;
    font-size: .82rem;
    font-weight: 850;
}

.empty-state {
    padding: 46px 24px;
    text-align: center;
    border: 1px dashed var(--ai-border-strong);
    border-radius: 24px;
    background: #fff;
}
.empty-state h3 {
    font-weight: 950;
    letter-spacing: -.03em;
}
.empty-state p {
    max-width: 560px;
    margin: 8px auto 0;
    color: var(--ai-muted);
}

.app-dropdown {
    border: 1px solid var(--ai-border);
    border-radius: 16px;
    box-shadow: var(--ai-shadow);
    padding: 8px;
}
.app-dropdown .dropdown-item {
    border-radius: 10px;
    font-weight: 750;
    padding: 9px 11px;
}

@media (max-width: 1200px) {
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .page-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
    .metric-grid { grid-template-columns: 1fr; }
}
