/* ============================================================================
   LEANPIVOT COMPONENT LIBRARY
   Version: 4.0

   Canonical shared components for the LeanPivot platform.
   All components use --lp-* tokens from lp-tokens.css.
   Loaded globally via base.html — available on every page.

   Components:
   1.  Section Card          7.  Alerts
   2.  Stat Card (white)     8.  Forms
   3.  Stats Card (colored)  9.  Tables
   4.  Info Card             10. Empty State
   5.  Buttons               11. Status Badges
   6.  Badges                12. Animations
   ============================================================================ */

/* ============================================================================
   1. SECTION CARD — Primary content wrapper
   Source: orchestrator.css (promoted to platform)
   ============================================================================ */

.section-card {
    background: white;
    border: 1px solid var(--lp-slate-200, #e2e8f0);
    border-radius: var(--lp-radius-lg, 16px);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--lp-shadow-card);
    transition: box-shadow var(--lp-duration-base) var(--lp-ease);
}

.section-card:hover {
    box-shadow: var(--lp-shadow-card-hover);
}

.section-header {
    background: linear-gradient(
        135deg,
        var(--lp-slate-50, #f8fafc) 0%,
        color-mix(in srgb, var(--lp-accent) 4%, var(--lp-slate-50, #f8fafc)) 100%
    );
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid var(--lp-slate-200, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: var(--lp-text-base, 1rem);
    color: var(--lp-slate-800, #1e293b);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.section-header .header-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--lp-accent) 14%, transparent) 0%,
        color-mix(in srgb, var(--lp-accent) 8%, transparent) 100%
    );
    border-radius: var(--lp-radius-base, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-accent);
    font-size: 0.9rem;
    transition: transform var(--lp-duration-fast) var(--lp-ease-spring);
}

.section-card:hover .section-header .header-icon {
    transform: scale(1.08);
}

.section-body {
    padding: 1.5rem;
}

/* ============================================================================
   2. STAT CARD (white background, gradient text)
   Source: orchestrator.css (promoted to platform)
   ============================================================================ */

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

.stat-card {
    background: white;
    border: 1px solid var(--lp-slate-200, #e2e8f0);
    border-radius: var(--lp-radius-lg, 16px);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--lp-duration-base) var(--lp-ease);
}

.stat-card:hover {
    box-shadow: var(--lp-shadow-card);
    transform: translateY(-1px);
}

.stat-card .stat-value {
    font-size: var(--lp-text-2xl, 1.5rem);
    font-weight: 800;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--lp-accent) 90%, #000) 0%,
        var(--lp-accent) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: var(--lp-text-xs, 0.75rem);
    color: var(--lp-slate-500, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ============================================================================
   3. STATS CARD (colored background, for dashboard hero tiles)
   Source: leanpivot-style-guide.css (promoted to platform)
   ============================================================================ */

.lp-stats-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.lp-stats-card {
    padding: var(--lp-space-8);
    border-radius: var(--lp-radius-md);
    text-align: center;
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--lp-shadow-sm);
    transition: var(--lp-transition-base);
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.lp-stats-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.lp-stats-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.lp-stats-card:active {
    transform: translateY(-3px) scale(1.01);
    transition-duration: 100ms;
}

.lp-stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
}

.lp-stat-value {
    font-size: var(--lp-text-5xl);
    font-weight: var(--lp-font-extrabold);
    line-height: 1;
    margin-bottom: var(--lp-space-3);
    letter-spacing: -0.02em;
}

.lp-stat-label {
    font-size: var(--lp-text-sm);
    font-weight: var(--lp-font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.95;
    word-break: break-word;
    line-height: 1.2;
    margin-bottom: var(--lp-space-2);
}

.lp-stat-details {
    margin-top: var(--lp-space-2);
    font-size: var(--lp-text-xs);
    line-height: 1.2;
    opacity: 0.85;
    font-weight: var(--lp-font-normal);
}

.lp-stat-action-indicator {
    position: absolute;
    bottom: 12px; right: 12px;
    opacity: 0;
    transform: translateX(-8px);
    transition: var(--lp-transition-base);
    font-size: var(--lp-text-base);
}

.lp-stats-card:hover .lp-stat-action-indicator {
    opacity: 0.8;
    transform: translateX(0);
}

/* Color variants */
.lp-stats-card--primary { background: var(--lp-brand-700); }
.lp-stats-card--primary:hover { background: var(--lp-brand-800); box-shadow: 0 12px 32px rgba(3, 105, 161, 0.35), 0 0 20px rgba(3, 105, 161, 0.2); }
.lp-stats-card--primary-bright { background: var(--lp-brand-600); }
.lp-stats-card--primary-bright:hover { background: var(--lp-brand-700); box-shadow: 0 12px 32px rgba(2, 132, 199, 0.35), 0 0 20px rgba(2, 132, 199, 0.2); }
.lp-stats-card--success { background: var(--lp-success-600); }
.lp-stats-card--success:hover { background: var(--lp-success-700); box-shadow: 0 12px 32px rgba(13, 148, 136, 0.35), 0 0 20px rgba(13, 148, 136, 0.2); }
.lp-stats-card--purple { background: var(--lp-purple-500); }
.lp-stats-card--purple:hover { background: var(--lp-purple-600); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35), 0 0 20px rgba(124, 58, 237, 0.2); }

/* ============================================================================
   4. INFO CARD (metadata display)
   Source: orchestrator.css (promoted to platform)
   ============================================================================ */

.info-card {
    background: var(--lp-glass-bg);
    backdrop-filter: blur(var(--lp-glass-blur));
    -webkit-backdrop-filter: blur(var(--lp-glass-blur));
    border: 1px solid var(--lp-slate-200, #e2e8f0);
    border-radius: var(--lp-radius-lg, 16px);
    padding: 1.125rem 1.375rem;
    height: 100%;
    transition: all var(--lp-duration-base) var(--lp-ease);
}

.info-card:hover {
    border-color: color-mix(in srgb, var(--lp-accent) 30%, var(--lp-slate-200, #e2e8f0));
    box-shadow: var(--lp-shadow-card);
}

.info-card-label {
    font-size: var(--lp-text-xs, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lp-slate-500, #64748b);
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.info-card-value {
    font-weight: 700;
    color: var(--lp-slate-900, #1e293b);
    font-size: var(--lp-text-lg, 1.125rem);
}

/* ============================================================================
   5. BUTTONS
   Source: leanpivot-style-guide.css (canonical)
   ============================================================================ */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-space-2);
    padding: var(--lp-space-3) var(--lp-space-5);
    font-size: var(--lp-text-base);
    font-weight: var(--lp-font-medium);
    line-height: 1.5;
    border-radius: var(--lp-radius-base);
    border: var(--lp-border-width) solid transparent;
    cursor: pointer;
    transition: var(--lp-transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.lp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.lp-btn--primary {
    background: var(--lp-brand-700);
    color: white;
    box-shadow: var(--lp-shadow-xs);
}
.lp-btn--primary:hover:not(:disabled) { background: var(--lp-brand-800); transform: translateY(-2px); box-shadow: var(--lp-shadow-brand); }
.lp-btn--primary:active:not(:disabled) { background: var(--lp-brand-900); transform: translateY(-1px); }

.lp-btn--outline-primary {
    color: var(--lp-brand-700);
    border-color: var(--lp-brand-700);
    background: rgba(3, 105, 161, 0.05);
}
.lp-btn--outline-primary:hover:not(:disabled) { background: var(--lp-brand-700); color: white; box-shadow: var(--lp-shadow-brand); transform: translateY(-1px); }

.lp-btn--success {
    background: var(--lp-success-600);
    color: white;
    box-shadow: var(--lp-shadow-xs);
}
.lp-btn--success:hover:not(:disabled) { background: var(--lp-success-700); transform: translateY(-2px); box-shadow: var(--lp-shadow-success); }
.lp-btn--success:active:not(:disabled) { background: var(--lp-success-800); transform: translateY(-1px); }

.lp-btn--secondary {
    background: var(--lp-slate-100);
    color: var(--lp-slate-700);
    border-color: var(--lp-slate-300);
}
.lp-btn--secondary:hover:not(:disabled) { background: var(--lp-slate-200); transform: translateY(-1px); }

.lp-btn--danger {
    background: var(--lp-danger-500);
    color: white;
    box-shadow: var(--lp-shadow-xs);
}
.lp-btn--danger:hover:not(:disabled) { background: var(--lp-danger-600); transform: translateY(-2px); }

.lp-btn--ghost {
    background: transparent;
    color: var(--lp-text-primary);
    border-color: transparent;
}
.lp-btn--ghost:hover:not(:disabled) { background: var(--lp-surface-tertiary); }

.lp-btn--sm { padding: var(--lp-space-2) var(--lp-space-4); font-size: var(--lp-text-sm); }
.lp-btn--lg { padding: var(--lp-space-4) var(--lp-space-8); font-size: var(--lp-text-lg); }
.lp-btn--xl { padding: var(--lp-space-5) var(--lp-space-10); font-size: var(--lp-text-lg); border-radius: var(--lp-radius-md); }
.lp-btn--block { width: 100%; }

.lp-btn:focus-visible {
    outline: 3px solid var(--lp-brand-700);
    outline-offset: 2px;
}

/* ============================================================================
   6. BADGES
   Source: leanpivot-style-guide.css (canonical)
   ============================================================================ */

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-space-1);
    padding: var(--lp-space-1) var(--lp-space-3);
    font-size: var(--lp-text-xs);
    font-weight: var(--lp-font-semibold);
    line-height: 1;
    border-radius: var(--lp-radius-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lp-badge--primary { background: var(--lp-brand-700); color: white; box-shadow: var(--lp-shadow-xs); }
.lp-badge--success { background: var(--lp-success-100); color: var(--lp-success-700); }
.lp-badge--warning { background: var(--lp-warning-bg); color: var(--lp-warning-700); }
.lp-badge--danger { background: var(--lp-danger-bg); color: var(--lp-danger-700); }
.lp-badge--slate { background: var(--lp-slate-100); color: var(--lp-slate-700); }
.lp-badge--purple { background: var(--lp-purple-100); color: var(--lp-purple-600); }

/* ============================================================================
   7. ALERTS
   Source: leanpivot-style-guide.css (canonical)
   ============================================================================ */

.lp-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--lp-space-3);
    padding: var(--lp-space-4) var(--lp-space-5);
    border-radius: var(--lp-radius-base);
    border-left: 4px solid;
    font-size: var(--lp-text-sm);
}

.lp-alert__icon { font-size: var(--lp-text-lg); flex-shrink: 0; }
.lp-alert__content { flex: 1; }
.lp-alert__title { font-weight: var(--lp-font-semibold); margin-bottom: var(--lp-space-1); }

.lp-alert--primary { background: linear-gradient(90deg, rgba(3, 105, 161, 0.05) 0%, transparent 100%); border-left-color: var(--lp-brand-700); color: var(--lp-slate-900); }
.lp-alert--primary .lp-alert__icon { color: var(--lp-brand-700); }
.lp-alert--success { background: linear-gradient(90deg, rgba(13, 148, 136, 0.05) 0%, transparent 100%); border-left-color: var(--lp-success-600); color: var(--lp-slate-900); }
.lp-alert--success .lp-alert__icon { color: var(--lp-success-600); }
.lp-alert--warning { background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%); border-left-color: var(--lp-warning-500); color: var(--lp-slate-900); }
.lp-alert--warning .lp-alert__icon { color: var(--lp-warning-600); }
.lp-alert--danger { background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%); border-left-color: var(--lp-danger-500); color: var(--lp-slate-900); }
.lp-alert--danger .lp-alert__icon { color: var(--lp-danger-600); }

/* ============================================================================
   8. FORMS
   Source: leanpivot-style-guide.css + components.css (consolidated)
   ============================================================================ */

.lp-input {
    width: 100%;
    padding: var(--lp-space-3) var(--lp-space-4);
    font-size: var(--lp-text-base);
    font-family: var(--lp-font-family);
    line-height: 1.5;
    color: var(--lp-slate-900);
    background: white;
    border: var(--lp-border-width) solid var(--lp-border-color);
    border-radius: var(--lp-radius-base);
    transition: var(--lp-transition-fast);
}

.lp-input:focus { outline: none; border-color: var(--lp-brand-700); box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1); }
.lp-input::placeholder { color: var(--lp-slate-400); }
.lp-input:disabled { background: var(--lp-surface-secondary); cursor: not-allowed; }

.lp-textarea { min-height: 120px; resize: vertical; }

.lp-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--lp-space-4) center;
    padding-right: var(--lp-space-10);
}

.lp-form-group { margin-bottom: var(--lp-space-4); }
.lp-form-label { display: block; margin-bottom: var(--lp-space-2); font-size: var(--lp-text-sm); font-weight: var(--lp-font-medium); color: var(--lp-text-primary); }
.lp-form-hint { margin-top: var(--lp-space-1); font-size: var(--lp-text-sm); color: var(--lp-text-tertiary); }
.lp-form-error { margin-top: var(--lp-space-1); font-size: var(--lp-text-sm); color: var(--lp-danger-500); }

/* ============================================================================
   9. TABLES
   Source: NEW — fills gap in design system
   ============================================================================ */

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--lp-text-sm);
}

.lp-table thead th {
    background: var(--lp-slate-50);
    color: var(--lp-slate-600);
    font-weight: var(--lp-font-semibold);
    font-size: var(--lp-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--lp-space-3) var(--lp-space-4);
    border-bottom: 2px solid var(--lp-slate-200);
    text-align: left;
}

.lp-table tbody td {
    padding: var(--lp-space-3) var(--lp-space-4);
    border-bottom: 1px solid var(--lp-slate-100);
    color: var(--lp-slate-700);
    vertical-align: middle;
}

.lp-table tbody tr:hover {
    background: color-mix(in srgb, var(--lp-accent) 3%, transparent);
}

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

/* ============================================================================
   10. EMPTY STATE
   Source: orchestrator.css (promoted, renamed from .orchestrator-empty-state)
   ============================================================================ */

.lp-empty-state {
    text-align: center;
    padding: 5rem 2.5rem;
    background: linear-gradient(
        160deg,
        color-mix(in srgb, var(--lp-accent) 5%, white) 0%,
        color-mix(in srgb, var(--lp-accent) 10%, white) 50%,
        color-mix(in srgb, var(--lp-brand-500, #0EA5E9) 6%, white) 100%
    );
    border-radius: var(--lp-radius-xl, 24px);
    border: 1px solid color-mix(in srgb, var(--lp-accent) 12%, white);
}

.lp-empty-state .empty-icon {
    width: 88px; height: 88px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--lp-accent) 15%, transparent) 0%, color-mix(in srgb, var(--lp-accent) 8%, transparent) 100%);
    border-radius: var(--lp-radius-xl, 24px);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 2rem;
    color: var(--lp-accent);
    font-size: 2rem;
    transition: transform var(--lp-duration-base) var(--lp-ease-spring);
}

.lp-empty-state:hover .empty-icon { transform: scale(1.06) rotate(-3deg); }
.lp-empty-state h3 { font-size: var(--lp-text-2xl); font-weight: 700; color: var(--lp-slate-900); margin-bottom: 0.625rem; }
.lp-empty-state p { color: var(--lp-slate-500); margin-bottom: 2rem; font-size: var(--lp-text-base); max-width: 420px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* ============================================================================
   11. STATUS BADGES
   Source: orchestrator.css (promoted to platform)
   ============================================================================ */

.status-badge-inline {
    padding: 0.25rem 0.75rem;
    border-radius: var(--lp-radius-full, 9999px);
    font-size: var(--lp-text-xs, 0.75rem);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    letter-spacing: 0.02em;
}

.status-badge-inline .status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge-inline.completed { background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%); color: #059669; }
.status-badge-inline.failed { background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.12) 100%); color: #dc2626; }
.status-badge-inline.running { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(234, 179, 8, 0.12) 100%); color: #d97706; }
.status-badge-inline.running .status-dot { animation: lp-pulse-dot 1.5s infinite; }
.status-badge-inline.paused { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(234, 179, 8, 0.12) 100%); color: #d97706; }
.status-badge-inline.pending { background: var(--lp-slate-100, #f3f4f6); color: var(--lp-slate-500, #6b7280); }

@keyframes lp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================================================
   12. ANIMATIONS
   Source: orchestrator.css (promoted, renamed from .orch-*)
   ============================================================================ */

.lp-animate-in {
    animation: lpFadeIn var(--lp-duration-base) var(--lp-ease) both;
}

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

.lp-stagger > * { animation: lpFadeIn var(--lp-duration-base) var(--lp-ease) both; }
.lp-stagger > *:nth-child(1) { animation-delay: 0ms; }
.lp-stagger > *:nth-child(2) { animation-delay: 60ms; }
.lp-stagger > *:nth-child(3) { animation-delay: 120ms; }
.lp-stagger > *:nth-child(4) { animation-delay: 180ms; }
.lp-stagger > *:nth-child(5) { animation-delay: 240ms; }
.lp-stagger > *:nth-child(6) { animation-delay: 300ms; }

/* ============================================================================
   13. CARDS (general-purpose)
   Source: leanpivot-style-guide.css
   ============================================================================ */

.lp-card {
    background: white;
    border-radius: var(--lp-radius-md);
    box-shadow: var(--lp-shadow-sm);
    border: var(--lp-border-width) solid var(--lp-border-color);
    transition: var(--lp-transition-base);
    overflow: hidden;
}

.lp-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow-lg); }
.lp-card__header { padding: var(--lp-space-5) var(--lp-space-6); border-bottom: var(--lp-border-width) solid var(--lp-border-color); background: white; }
.lp-card__body { padding: var(--lp-space-6); }
.lp-card__footer { padding: var(--lp-space-5) var(--lp-space-6); border-top: var(--lp-border-width) solid var(--lp-border-color); background: var(--lp-slate-50); }

/* ============================================================================
   14. GLASSMORPHISM UTILITY
   ============================================================================ */

.lp-glass {
    background: var(--lp-glass-bg);
    backdrop-filter: blur(var(--lp-glass-blur));
    -webkit-backdrop-filter: blur(var(--lp-glass-blur));
    border: 1px solid var(--lp-glass-border);
    border-radius: var(--lp-radius-lg, 16px);
}

/* ============================================================================
   15. TYPOGRAPHY UTILITIES
   ============================================================================ */

.lp-heading-1 { font-size: var(--lp-text-4xl); font-weight: var(--lp-font-bold); line-height: 1.2; color: var(--lp-slate-900); }
.lp-heading-2 { font-size: var(--lp-text-3xl); font-weight: var(--lp-font-bold); line-height: 1.2; color: var(--lp-slate-900); }
.lp-heading-3 { font-size: var(--lp-text-2xl); font-weight: var(--lp-font-semibold); line-height: 1.3; color: var(--lp-slate-900); }
.lp-text-muted { color: var(--lp-slate-600); }

/* ============================================================================
   16. FOCUS & ACCESSIBILITY
   ============================================================================ */

.section-card :focus-visible,
.lp-card :focus-visible,
.stat-card :focus-visible {
    outline: 2px solid var(--lp-accent);
    outline-offset: 2px;
    border-radius: var(--lp-radius-sm, 4px);
}

.lp-stats-card-link:focus {
    outline: 3px solid var(--lp-brand-700);
    outline-offset: 3px;
    border-radius: var(--lp-radius-md);
}

.lp-stats-card-link:focus .lp-stats-card {
    transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================================
   17. RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 991px) {
    .lp-stats-card { min-height: 130px; padding: var(--lp-space-6); }
    .lp-stat-value { font-size: var(--lp-text-4xl); }
    .lp-stat-label { font-size: var(--lp-text-xs); }
    .lp-stats-card:hover { transform: translateY(-2px) scale(1.01); }
}

@media (max-width: 768px) {
    .section-body { padding: 1.125rem; }
    .section-header { padding: 1rem 1.125rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .lp-stats-card { min-height: 120px; padding: var(--lp-space-5); }
    .lp-stat-value { font-size: var(--lp-text-3xl); }
    .lp-stat-action-indicator { display: none; }
    .lp-stats-card:hover { transform: translateY(-2px); }
    .lp-empty-state { padding: 3rem 1.5rem; }
}

@media (max-width: 576px) {
    .lp-stats-card { min-height: 110px; padding: var(--lp-space-4); }
    .lp-stat-value { font-size: var(--lp-text-2xl); }
    .lp-stat-label { font-size: 0.7rem; letter-spacing: 0; }
}

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

/* ============================================================================
   END LEANPIVOT COMPONENT LIBRARY
   ============================================================================ */
