/* UAVCrew.ai Design System
   Clean enterprise authority — light theme, navy + blue brand
   Semantic CSS only — no Tailwind
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Brand */
    --primary: #1a56db;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --primary-50: #eff6ff;
    --navy: #0F172A;
    --navy-light: #1E293B;

    /* Text */
    --text: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-inverse: #FFFFFF;

    /* Borders */
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* Backgrounds */
    --bg: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;

    /* Status */
    --success: #059669;
    --success-light: #ECFDF5;
    --success-border: #A7F3D0;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --warning-border: #FDE68A;
    --error: #DC2626;
    --error-light: #FEF2F2;
    --error-border: #FECACA;
    --info: #2563EB;
    --info-light: #EFF6FF;
    --info-border: #BFDBFE;

    /* Agent colors */
    --agent-arpa: #3b82f6;
    --agent-concord: #10b981;
    --agent-tucker: #f59e0b;
    --agent-meridian: #8b5cf6;
    --agent-ren: #ec4899;
    --agent-sterling: #14b8a6;

    /* Typography */
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-full: 9999px;

    /* Layout */
    --container-max: 1200px;
    --sidebar-width: 288px;
    --topbar-height: 64px;
    --nav-height: 64px;
}


/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    font-feature-settings: normal;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

p {
    margin: 0 0 var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-tertiary);
    padding: 0.125em 0.375em;
    border-radius: var(--radius-sm);
    color: var(--text);
}

pre {
    font-family: var(--font-mono);
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-lg) 0;
}


/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-mono {
    font-family: var(--font-mono);
}

[x-cloak] {
    display: none !important;
}


/* ========================================
   LAYOUT — CONTAINER
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-xl);
    }
}


/* ========================================
   LAYOUT — SITE NAVIGATION
   ======================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.site-nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .site-nav__inner {
        padding: 0 var(--space-lg);
    }
}

.site-nav__logo img {
    height: 32px;
}

.site-nav__links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .site-nav__links {
        display: flex;
        align-items: center;
    }
}

.site-nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-nav__links a:hover,
.site-nav__links a.active {
    color: var(--text);
    border-bottom-color: var(--primary);
}

.site-nav__actions {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .site-nav__actions {
        display: flex;
    }
}

.site-nav__actions a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.site-nav__actions a:hover {
    color: var(--text);
}

.site-nav__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.site-nav__hamburger:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

.site-nav__hamburger svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .site-nav__hamburger {
        display: none;
    }
}

/* Mobile menu */
.site-nav__mobile {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0 var(--space-md);
}

.site-nav__mobile a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-left: 4px solid transparent;
}

.site-nav__mobile a:hover {
    background: var(--bg-secondary);
    border-left-color: var(--border);
    color: var(--text);
}

.site-nav__mobile-divider {
    border-top: 1px solid var(--border);
    margin: var(--space-sm) 0;
    padding-top: var(--space-sm);
}

/* Body offset when nav is fixed */
body.has-nav {
    padding-top: var(--nav-height);
}


/* ========================================
   LAYOUT — DASHBOARD
   ======================================== */
.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.dashboard-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    z-index: 50;
    background: var(--bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .dashboard-sidebar {
        display: flex;
    }
}

.dashboard-sidebar__logo {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 var(--space-lg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.dashboard-sidebar__logo img {
    height: 32px;
}

.dashboard-sidebar__nav {
    flex: 1;
    padding: var(--space-lg) var(--space-lg);
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar__group {
    list-style: none;
    margin: 0 0 var(--space-xl);
    padding: 0;
}

.dashboard-sidebar__group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 var(--space-sm);
    margin-bottom: var(--space-sm);
}

.dashboard-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dashboard-sidebar__link:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dashboard-sidebar__link.active {
    background: var(--bg-secondary);
    color: var(--primary);
}

.dashboard-sidebar__link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.dashboard-sidebar__link .external-icon {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: var(--text-muted);
}

.dashboard-sidebar__footer {
    margin-top: auto;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
}

/* Mobile sidebar overlay */
.dashboard-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.5);
}

.dashboard-sidebar--mobile {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    z-index: 50;
    background: var(--bg);
    flex-direction: column;
    transform: translateX(0);
    transition: transform var(--transition-slow);
}

/* Main content area */
.dashboard-main {
    flex: 1;
    min-width: 0;
}

@media (min-width: 1024px) {
    .dashboard-main {
        margin-left: var(--sidebar-width);
    }
}

/* Topbar */
.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
    .dashboard-topbar {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .dashboard-topbar {
        padding: 0 var(--space-xl);
    }
}

.dashboard-topbar__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .dashboard-topbar__hamburger {
        display: none;
    }
}

.dashboard-topbar__hamburger svg {
    width: 24px;
    height: 24px;
}

.dashboard-topbar__separator {
    width: 1px;
    height: 24px;
    background: var(--border);
}

@media (min-width: 1024px) {
    .dashboard-topbar__separator {
        display: none;
    }
}

.dashboard-topbar__spacer {
    flex: 1;
}

.dashboard-topbar__user {
    position: relative;
}

.dashboard-topbar__user-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xs);
    background: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dashboard-topbar__user-btn:hover {
    background: var(--bg-secondary);
}

.dashboard-topbar__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 0.875rem;
    font-weight: 600;
}

.dashboard-topbar__user-name {
    display: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

@media (min-width: 1024px) {
    .dashboard-topbar__user-name {
        display: block;
    }
}

.dashboard-topbar__chevron {
    display: none;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .dashboard-topbar__chevron {
        display: block;
    }
}

/* Dashboard content */
.dashboard-content {
    padding: var(--space-xl) var(--space-md);
}

@media (min-width: 768px) {
    .dashboard-content {
        padding: var(--space-xl) var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .dashboard-content {
        padding: var(--space-2xl) var(--space-xl);
    }
}

/* Dashboard footer */
.dashboard-footer {
    border-top: 1px solid var(--border);
    padding: var(--space-md);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* ========================================
   TYPOGRAPHY
   ======================================== */
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
    line-height: 1.6;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}


/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .page-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.page-header__content {
    min-width: 0;
    flex: 1;
}

.page-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}


/* ========================================
   CARD
   ======================================== */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card--shadow {
    box-shadow: var(--shadow-sm);
}

.card__header {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.card__body {
    padding: var(--space-lg);
}

.card__footer {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}


/* ========================================
   STAT CARD
   ======================================== */
.stat-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xs);
}

.stat-card__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.stat-card__value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    margin: var(--space-xs) 0 0;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.stat-card__change {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-card__change--up {
    color: var(--success);
}

.stat-card__change--down {
    color: var(--error);
}

/* Stats grid layout */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

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

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ========================================
   BADGE
   ======================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

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

.badge--warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.badge--error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid var(--error-border);
}

.badge--info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info-border);
}

.badge--neutral {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge__dot--pulse {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

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

.btn--full {
    width: 100%;
}

/* Primary */
.btn--primary {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-inverse);
}

.btn--primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Secondary */
.btn--secondary {
    background: var(--bg);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.btn--secondary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Danger */
.btn--danger {
    background: var(--error);
    color: var(--text-inverse);
    border-color: var(--error);
    box-shadow: var(--shadow-xs);
}

.btn--danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    color: var(--text-inverse);
}

.btn--danger:focus-visible {
    outline: 2px solid var(--error);
    outline-offset: 2px;
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}


/* ========================================
   ALERTS
   ======================================== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    transition: opacity var(--transition-base);
}

.alert--success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid var(--success-border);
}

.alert--warning {
    background: var(--warning-light);
    color: #92400E;
    border: 1px solid var(--warning-border);
}

.alert--error {
    background: var(--error-light);
    color: #991B1B;
    border: 1px solid var(--error-border);
}

.alert--info {
    background: var(--info-light);
    color: #1E40AF;
    border: 1px solid var(--info-border);
}

.alert__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.alert__content {
    flex: 1;
    min-width: 0;
}

.alert__title {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.alert__text {
    margin: 0;
}

.alert__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.alert__close:hover {
    opacity: 1;
}

/* Flash message container */
.flash-messages {
    max-width: var(--container-max);
    margin: var(--space-md) auto 0;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .flash-messages {
        padding: 0 var(--space-lg);
    }
}

.flash-messages--dashboard {
    max-width: none;
    margin: 0;
    padding: var(--space-md) var(--space-md) 0;
}

@media (min-width: 768px) {
    .flash-messages--dashboard {
        padding: var(--space-md) var(--space-lg) 0;
    }
}

@media (min-width: 1024px) {
    .flash-messages--dashboard {
        padding: var(--space-md) var(--space-xl) 0;
    }
}


/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
    outline: none;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-input--error,
.form-select--error,
.form-textarea--error {
    border-color: var(--error);
}

.form-input--error:focus,
.form-select--error:focus,
.form-textarea--error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    accent-color: var(--primary);
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
}

.form-help {
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-error {
    margin-top: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--error);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 600px) {
    .form-row--2col {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ========================================
   DATA TABLE
   ======================================== */
.data-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead {
    background: var(--bg-secondary);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 0.75rem 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr {
    background: var(--bg);
    transition: background var(--transition-fast);
}

.data-table tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

.data-table tbody tr:hover {
    background: var(--primary-50);
}

.data-table td.actions {
    text-align: right;
    white-space: nowrap;
}

.data-table td.actions a {
    font-weight: 500;
}

.data-table td.actions a + a {
    margin-left: var(--space-md);
}

.data-table td.actions .action-danger {
    color: var(--error);
}

.data-table td.actions .action-danger:hover {
    color: #B91C1C;
}

.data-table .cell-mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--bg-tertiary);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.data-table .cell-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
}

.empty-state__icon {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.empty-state__icon svg {
    width: 100%;
    height: 100%;
}

.empty-state__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.empty-state__message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 320px;
}


/* ========================================
   DEFINITION LIST
   ======================================== */
.definition-list {
    border-top: 1px solid var(--border-light);
}

.definition-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border-light);
    gap: var(--space-xs);
}

@media (min-width: 600px) {
    .definition-item {
        flex-direction: row;
        gap: var(--space-md);
    }
}

.definition-item__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

@media (min-width: 600px) {
    .definition-item__label {
        width: 200px;
    }
}

.definition-item__value {
    font-size: 0.875rem;
    color: var(--text);
    flex: 1;
    min-width: 0;
    word-break: break-word;
}


/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    list-style: none;
    padding: 0;
    margin-top: 0;
    flex-wrap: wrap;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumb__item + .breadcrumb__item::before {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb__link {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb__link:hover {
    color: var(--primary);
}

.breadcrumb__current {
    color: var(--text);
    font-weight: 600;
}


/* ========================================
   DROPDOWN
   ======================================== */
.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    right: 0;
    z-index: 50;
    margin-top: var(--space-sm);
    min-width: 192px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs) 0;
    transform-origin: top right;
}

.dropdown__item {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    color: var(--text);
    transition: background var(--transition-fast);
}

.dropdown__item:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.dropdown__divider {
    border-top: 1px solid var(--border-light);
    margin: var(--space-xs) 0;
}


/* ========================================
   COPY BLOCK
   ======================================== */
.copy-block {
    position: relative;
}

.copy-block__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.copy-block__inner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

.copy-block__value {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text);
    word-break: break-all;
    user-select: all;
}

.copy-block__btn {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-block__btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
}


/* ========================================
   COLLAPSIBLE
   ======================================== */
.collapsible {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    overflow: hidden;
}

.collapsible + .collapsible {
    margin-top: var(--space-sm);
}

.collapsible__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-secondary);
    border: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: background var(--transition-fast);
}

.collapsible__trigger:hover {
    background: var(--bg-tertiary);
}

.collapsible[open] .collapsible__trigger {
    border-bottom-color: var(--border);
}

.collapsible__count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: var(--space-sm);
}

.collapsible__icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.collapsible[open] .collapsible__icon {
    transform: rotate(180deg);
}

.collapsible__body {
    padding: var(--space-lg);
}


/* ========================================
   AGENT CARD
   ======================================== */
.agent-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.agent-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

.agent-card__bar {
    height: 3px;
    flex-shrink: 0;
}

.agent-card__body {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.agent-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.agent-card__name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.agent-card__title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.agent-card__description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.agent-card__capabilities {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
}

.agent-card__capabilities li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.agent-card__capabilities li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.agent-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 600;
}

.agent-card__link svg {
    width: 16px;
    height: 16px;
}

/* Agent card mini (dashboard/landing) */
.agent-card-mini {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    text-decoration: none;
}

.agent-card-mini:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.agent-card-mini__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.agent-card-mini__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.agent-card-mini__title {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}


/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
    background: linear-gradient(to bottom, var(--primary-50), var(--bg));
}

@media (min-width: 1024px) {
    .hero {
        padding: 6rem 0;
    }
}

.hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .hero__inner {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .hero__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
        align-items: center;
        padding: 0 var(--space-xl);
    }
}

.hero__badge {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(26, 86, 219, 0.1);
    border: 1px solid rgba(26, 86, 219, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3.5rem;
    }
}

.hero__title-accent {
    color: var(--primary);
}

.hero__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__visual {
    margin-top: var(--space-2xl);
}

@media (min-width: 1024px) {
    .hero__visual {
        margin-top: 0;
    }
}

.hero__code-block {
    background: var(--navy);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__code-block pre {
    padding: var(--space-xl);
    margin: 0;
    overflow-x: auto;
}

.hero__code-block code {
    color: #86EFAC;
    font-size: 0.875rem;
    line-height: 1.6;
    background: none;
    padding: 0;
}


/* ========================================
   FEATURE GRID
   ======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 600px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .feature-grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg);
    transition: box-shadow var(--transition-fast);
}

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

.feature-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}

.feature-card__icon svg {
    width: 24px;
    height: 24px;
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}


/* ========================================
   STEP CARD
   ======================================== */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    padding: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--bg);
}

.step-card__number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.step-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.step-card__text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
}


/* ========================================
   TRUST STRIP
   ======================================== */
.trust-strip {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2xl) 0;
}

.trust-strip__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 768px) {
    .trust-strip__inner {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 var(--space-lg);
    }
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.trust-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.trust-item__icon svg {
    width: 100%;
    height: 100%;
}

.trust-item__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.trust-item__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ========================================
   PRICING CARD
   ======================================== */
.pricing-card {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--space-xl);
    border: 2px solid var(--primary);
    border-radius: var(--radius-2xl);
    background: var(--bg);
}

@media (min-width: 768px) {
    .pricing-card {
        padding: var(--space-2xl);
    }
}

.pricing-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.pricing-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.pricing-card__billing {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: var(--space-xl) 0 0;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-card__features li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 1px;
}


/* ========================================
   FAQ
   ======================================== */
.faq {
    max-width: 640px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
}

.faq__item:first-child {
    padding-top: 0;
}

.faq__question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
    cursor: pointer;
}

/* When used with <details>/<summary> */
.faq__item summary {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: var(--space-md);
    transition: transform var(--transition-fast);
}

.faq__item[open] summary::after {
    content: '-';
}

.faq__answer {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* ========================================
   AUTH CARD
   ======================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.auth-card__subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-card__subtitle a {
    font-weight: 600;
}

.auth-card__body {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .auth-card__body {
        padding: var(--space-2xl);
    }
}

.auth-card__divider {
    position: relative;
    text-align: center;
    margin: var(--space-lg) 0;
}

.auth-card__divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border);
}

.auth-card__divider span {
    position: relative;
    background: var(--bg);
    padding: 0 var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.auth-card__social {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.auth-card__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast);
    box-shadow: var(--shadow-xs);
}

.auth-card__social-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.auth-card__social-btn svg {
    width: 20px;
    height: 20px;
}


/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: var(--primary);
    padding: var(--space-4xl) 0;
}

.cta-section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .cta-section__inner {
        padding: 0 var(--space-lg);
    }
}

.cta-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .cta-section__title {
        font-size: 2.5rem;
    }
}

.cta-section__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.cta-section .btn--inverse {
    background: var(--bg);
    color: var(--primary);
    border-color: var(--bg);
}

.cta-section .btn--inverse:hover {
    background: var(--primary-50);
    color: var(--primary-dark);
}

.cta-section .btn--inverse-ghost {
    background: transparent;
    color: var(--text-inverse);
    border-color: transparent;
}

.cta-section .btn--inverse-ghost:hover {
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.1);
}


/* ========================================
   SECTION LAYOUTS
   ======================================== */
.section {
    padding: var(--space-4xl) 0;
}

.section--bg {
    background: var(--bg-secondary);
}

.section--white {
    background: var(--bg);
}

.section__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .section__inner {
        padding: 0 var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .section__inner {
        padding: 0 var(--space-xl);
    }
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .section__title {
        font-size: 2.25rem;
    }
}

.section__description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* ========================================
   DELETE CONFIRM
   ======================================== */
.delete-confirm {
    max-width: 560px;
}

.delete-confirm__body {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.delete-confirm__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--error);
}

.delete-confirm__icon svg {
    width: 100%;
    height: 100%;
}

.delete-confirm__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.delete-confirm__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.delete-confirm__warning {
    margin: 0 var(--space-lg) var(--space-lg);
}

.delete-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
}


/* ========================================
   GRID UTILITIES
   ======================================== */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2col {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid--2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid--3col {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--3col {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid--4col {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .grid--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid--gap-lg {
    gap: var(--space-lg);
}

.grid--gap-xl {
    gap: var(--space-xl);
}


/* ========================================
   TAGS / SCOPE PILLS
   ======================================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.tag--primary {
    background: var(--primary-50);
    color: var(--primary-dark);
    border-color: rgba(26, 86, 219, 0.2);
}

.tag--success {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success-border);
}

.tag--warning {
    background: var(--warning-light);
    color: var(--warning);
    border-color: var(--warning-border);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}


/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.spinner--lg {
    width: 24px;
    height: 24px;
}

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


/* ========================================
   RESPONSIVE VISIBILITY
   ======================================== */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none;
    }
}


/* ========================================
   PRINT
   ======================================== */
@media print {
    .site-nav,
    .dashboard-sidebar,
    .dashboard-topbar,
    .site-footer,
    .flash-messages,
    .btn,
    .dropdown {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .dashboard-main {
        margin-left: 0 !important;
    }
}
