/*
 * UniDataHub - Design System Tokens
 * Generated from ui-ux-pro-max: Data-Dense Dashboard style
 * Fonts: JetBrains Mono
 * Palette: Blue primary (#1E40AF) + Amber accent (#D97706)
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
    /* --- Color Palette --- */
    --color-primary: #1E40AF;
    --color-primary-light: #3B82F6;
    --color-primary-dark: #1E3A8A;
    --color-on-primary: #FFFFFF;

    --color-secondary: #3B82F6;
    --color-on-secondary: #000000;

    --color-accent: #D97706;
    --color-accent-light: #F59E0B;
    --color-on-accent: #000000;

    --color-background: #F8FAFC;
    --color-foreground: #1E3A8A;

    --color-card: #FFFFFF;
    --color-card-foreground: #1E3A8A;

    --color-muted: #E9EEF6;
    --color-muted-foreground: #475569;

    --color-border: #DBEAFE;

    --color-destructive: #DC2626;
    --color-on-destructive: #FFFFFF;

    --color-success: #059669;
    --color-on-success: #FFFFFF;

    --color-warning: #D97706;
    --color-on-warning: #000000;

    --color-ring: #1E40AF;

    /* --- Spacing --- */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */

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

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

    /* --- Typography --- */
    --font-heading: 'JetBrains Mono', monospace;
    --font-body: 'JetBrains Mono', monospace;
    --font-mono: 'JetBrains Mono', monospace;
}

/* --- Base resets --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: #0F172A;
}

/* Hero Title Contrast Override */
.hero h1,
.hero-title,
.hero-title-main {
    color: #FFFFFF !important;
}

/* Credit Tier Visual Status */
.credit-badge-high {
    color: #059669 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #A7F3D0 !important;
}
.credit-badge-medium {
    color: #D97706 !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: #FDE68A !important;
}
.credit-badge-low {
    color: #DC2626 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: #FECACA !important;
}

.credit-text-high {
    color: #059669 !important;
}
.credit-text-medium {
    color: #D97706 !important;
}
.credit-text-low {
    color: #DC2626 !important;
}

main {
    padding-top: 76px;
    min-height: calc(100vh - 140px);
}

.card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    color: #1E293B;
}

/* --- Utility classes --- */

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

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

/* --- Flash messages --- */
.flash-messages {
    position: fixed;
    top: 80px;
    right: var(--space-md);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 420px;
    width: 100%;
}

.flash-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: flashSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash-message:hover {
    opacity: 0.9;
}

.flash-message.flash-success {
    background-color: #ECFDF5;
    color: #065F46;
    border-left: 4px solid var(--color-success);
}

.flash-message.flash-error {
    background-color: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid var(--color-destructive);
}

.flash-message.flash-info {
    background-color: #EFF6FF;
    color: #1E40AF;
    border-left: 4px solid var(--color-primary);
}

.flash-message.flash-warning {
    background-color: #FFFBEB;
    color: #92400E;
    border-left: 4px solid var(--color-warning);
}

@keyframes flashSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- Card component --- */
.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* --- Button components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #B45309;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--color-muted-foreground);
}

.btn-ghost:hover {
    background: var(--color-muted);
    color: var(--color-foreground);
}

.btn-danger {
    background: var(--color-destructive);
    color: var(--color-on-destructive);
}

.btn-danger:hover {
    background: #B91C1C;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

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

.btn:disabled,
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Input components --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-foreground);
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-card);
    color: var(--color-foreground);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.form-input::placeholder {
    color: var(--color-muted-foreground);
    opacity: 0.7;
}

.form-input.is-invalid {
    border-color: var(--color-destructive);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
}

.form-error {
    font-size: 0.8125rem;
    color: var(--color-destructive);
    font-weight: 500;
}

/* --- Badge components --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-primary {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-muted {
    background: var(--color-muted);
    color: var(--color-muted-foreground);
}

/* --- Status badge with pulse animation --- */
.badge-processing {
    background: #DBEAFE;
    color: #1E40AF;
    position: relative;
}

.badge-processing::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3B82F6;
    animation: pulse 1.5s ease-in-out infinite;
}

.badge-processing {
    padding-left: 1.25rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- Navigation --- */
.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 2px 0;
}

.nav-brand svg {
    width: 36px;
    height: 36px;
}

.nav-brand img {
    height: 48px;
    max-height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast);
}

.nav-brand:hover img {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-foreground);
    background: var(--color-muted);
}

.nav-link.active {
    color: var(--color-primary);
    background: #EFF6FF;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--color-foreground);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 99;
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-xs);
    animation: fadeIn 0.2s ease;
}

.nav-mobile.is-open {
    display: flex;
}

.nav-mobile .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Hero section --- */
.hero {
    padding: calc(64px + var(--space-3xl)) var(--space-md) var(--space-3xl);
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 40%, #3B82F6 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--space-lg);
    line-height: 1.15;
}

.hero-title span {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

/* --- Section layout --- */
.section {
    padding: var(--space-3xl) var(--space-md);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--color-muted-foreground);
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Category group cards --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1080px;
    margin: 0 auto;
}

.category-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.category-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.category-card-desc {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    line-height: 1.5;
}

.category-card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: auto;
}

.keyword-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--color-muted);
    color: var(--color-muted-foreground);
}

/* --- How it works --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    max-width: 1080px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: var(--space-lg);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step-desc {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* --- Pricing preview --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 2px solid var(--color-border);
    transition: all 0.2s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--color-accent);
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--space-sm);
}

.pricing-credits {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: var(--space-md);
}

.pricing-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.pricing-amount small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--color-muted-foreground);
}

.pricing-per {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
    margin-bottom: var(--space-lg);
}

/* --- CTA section --- */
.cta-section {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
    padding: var(--space-3xl) var(--space-md);
    text-align: center;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
}

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

/* --- Footer --- */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    font-size: 0.875rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* --- Auth pages --- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-background) 0%, #EFF6FF 100%);
}

.auth-card {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--color-border);
}

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

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: var(--space-xs);
}

.auth-subtitle {
    color: var(--color-muted-foreground);
    font-size: 0.9375rem;
}

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

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* --- Dashboard --- */
.page-header {
    padding-top: calc(64px + var(--space-xl));
    padding-bottom: var(--space-lg);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--color-muted-foreground);
    font-size: 0.9375rem;
    margin-top: var(--space-xs);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.stat-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-foreground);
}

.stat-value.accent {
    color: var(--color-accent);
}

/* --- Quick action cards --- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.quick-action-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--color-foreground);
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-icon.leads {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: var(--color-primary);
}

.quick-action-icon.business {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: var(--color-success);
}

.quick-action-icon.restaurant {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: var(--color-accent);
}

.quick-action-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.quick-action-desc {
    font-size: 0.8125rem;
    color: var(--color-muted-foreground);
}

/* --- Data table --- */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-card);
}

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

.data-table th {
    background: var(--color-muted);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-foreground);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-bottom: 2px solid var(--color-border);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-foreground);
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.03);
}

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

/* --- Empty state --- */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    color: var(--color-muted-foreground);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    color: var(--color-border);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--space-xs);
}

.empty-state-desc {
    font-size: 0.9375rem;
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

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