/* ================================================================
   XCELLERANT VENTURES UNIFIED DESIGN SYSTEM
   Based on xcellerantventures.com branding + CRM patterns
   ================================================================ */

/* ================ TYPOGRAPHY ================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Brand Colors - From xcellerantventures.com */
    --brand-green: #02a037;
    --brand-green-light: #4ade80;
    --brand-green-dark: #028a30;
    --brand-green-hover: #047a2c;
    
    /* Dark/Hero Colors */
    --hero-dark: #1a1a1a;
    --hero-overlay: rgba(0, 0, 0, 0.6);
    --charcoal: #2d2d2d;
    --slate-dark: #1e293b;
    
    /* Green Gradients */
    --gradient-green-primary: linear-gradient(135deg, #02a037 0%, #059669 100%);
    --gradient-green-hover: linear-gradient(135deg, #028a30 0%, #047857 100%);
    --gradient-green-header: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f8fafc 100%);
    --gradient-green-modal: linear-gradient(135deg, #02a037 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    
    /* Accent Colors */
    --purple-primary: #7c3aed;
    --purple-hover: #6d28d9;
    --blue-primary: #3b82f6;
    --blue-hover: #2563eb;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #64748b;
    --gray-600: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px -4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 20px -4px rgba(2, 160, 55, 0.4);
    --shadow-xl: 0 8px 30px -4px rgba(2, 160, 55, 0.5);
    --shadow-dark: 0 4px 30px rgba(0, 0, 0, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 2rem;

    /* Semantic Surface Tokens */
    --surface-primary: #ffffff;
    --surface-secondary: #f8fafc;
    --surface-tertiary: #f1f5f9;
    --surface-elevated: #ffffff;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #64748b;
    --border-primary: #f1f5f9;
    --border-secondary: #e2e8f0;
}

/* ================ DARK MODE OVERRIDES ================ */
html.dark {
    color-scheme: dark;

    /* Semantic Surface Tokens — dark palette */
    --surface-primary: #1a1a2e;
    --surface-secondary: #16162a;
    --surface-tertiary: #1e1e38;
    --surface-elevated: #22223a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-primary: #2a2a45;
    --border-secondary: #2f2f4a;

    /* Remap gray scale */
    --gray-50: #1e1e38;
    --gray-100: #22223a;
    --gray-200: #2a2a45;
    --gray-300: #3a3a55;
    --gray-400: #7c8594;
    --gray-500: #94a3b8;
    --gray-600: #94a3b8;
    --gray-700: #cbd5e1;
    --gray-900: #f1f5f9;

    /* Dark/Hero Colors — invert for dark mode */
    --hero-dark: #0f0f1e;
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --charcoal: #1a1a2e;
    --slate-dark: #0f0f1e;

    /* Gradients adapted for dark mode */
    --gradient-green-header: linear-gradient(135deg, rgba(2, 160, 55, 0.08) 0%, rgba(5, 150, 105, 0.06) 50%, #1a1a2e 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #0f0f1e 100%);

    /* Shadows — darker and more subtle */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 20px -4px rgba(2, 160, 55, 0.3);
    --shadow-xl: 0 8px 30px -4px rgba(2, 160, 55, 0.4);
    --shadow-dark: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ================ BASE STYLES ================ */
.xce-page {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--gray-50);
    min-height: 100vh;
}

.xce-page .mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Serif display font - like xcellerantventures.com headings */
.xce-serif {
    font-family: 'DM Serif Display', Georgia, serif;
}

/* ================ HERO SECTIONS ================ */
.xce-hero {
    background: var(--hero-dark);
    background-size: cover;
    background-position: center;
    position: relative;
}

.xce-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.xce-hero-content {
    position: relative;
    z-index: 1;
}

.xce-hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    color: white;
    letter-spacing: -0.01em;
}

.xce-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    line-height: 1.7;
}

/* ================ XV STYLE BUTTONS ================ */
.xce-btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--brand-green);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.xce-btn-hero:hover {
    background: var(--brand-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-dark);
}

.xce-btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid white;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.xce-btn-outline-white:hover {
    background: white;
    color: var(--hero-dark);
}

/* ================ SECTION HEADINGS ================ */
.xce-section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--brand-green);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.xce-section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 600px;
}

/* ================ PAGE HEADER ================ */
.xce-page-header {
    background: var(--gradient-green-header);
    border-bottom: 1px solid rgba(2, 160, 55, 0.1);
}

.xce-page-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.xce-page-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 500;
}

/* ================ STAT CARDS ================ */
.xce-stat-card {
    position: relative;
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.xce-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.xce-stat-card:hover {
    transform: translateY(-4px);
}

.xce-stat-card:hover::before {
    opacity: 1;
}

/* Primary Green Card */
.xce-stat-card-primary {
    background: var(--gradient-green-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.xce-stat-card-primary::before {
    background: var(--gradient-green-hover);
}

.xce-stat-card-primary:hover {
    box-shadow: var(--shadow-xl);
}

/* Neutral White Card */
.xce-stat-card-neutral {
    background: var(--surface-primary);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.xce-stat-card-neutral::before {
    background: linear-gradient(135deg, rgba(2, 160, 55, 0.03) 0%, rgba(2, 160, 55, 0.06) 100%);
}

.xce-stat-card-neutral:hover {
    border-color: var(--brand-green);
    box-shadow: 0 8px 30px -8px rgba(2, 160, 55, 0.15);
}

/* Dark Card - XV Style */
.xce-stat-card-dark {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-dark);
}

.xce-stat-card-dark:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Purple Action Card */
.xce-stat-card-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px -4px rgba(124, 58, 237, 0.4);
}

.xce-stat-card-purple::before {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #8b5cf6 100%);
}

.xce-stat-card-purple:hover {
    box-shadow: 0 8px 30px -4px rgba(124, 58, 237, 0.5);
}

/* Blue Info Card */
.xce-stat-card-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #60a5fa 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px -4px rgba(59, 130, 246, 0.4);
}

.xce-stat-card-blue::before {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #3b82f6 100%);
}

.xce-stat-card-blue:hover {
    box-shadow: 0 8px 30px -4px rgba(59, 130, 246, 0.5);
}

/* Stat Card Content */
.xce-stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.xce-stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 0.375rem;
}

.xce-stat-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.xce-stat-card-neutral .xce-stat-icon-wrap {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.xce-stat-card-neutral .xce-stat-icon-wrap svg {
    color: var(--brand-green);
}

/* ================ FEATURE CARDS (XV Style) ================ */
.xce-feature-card {
    background: var(--surface-primary);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.xce-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.xce-feature-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius-xl);
}

.xce-feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--brand-green);
}

.xce-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.xce-feature-description {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ================ TOOLBAR ================ */
.xce-toolbar {
    background: var(--surface-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* ================ SEARCH & FILTERS ================ */
.xce-search-box {
    position: relative;
}

.xce-search-box input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--surface-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.xce-search-box input:focus {
    outline: none;
    border-color: var(--brand-green);
    background: var(--surface-primary);
    box-shadow: 0 0 0 3px rgba(2, 160, 55, 0.1);
}

.xce-search-box input::placeholder {
    color: var(--gray-400);
}

.xce-search-box .xce-search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
    transition: color 0.2s ease;
}

.xce-search-box input:focus + .xce-search-icon,
.xce-search-box:focus-within .xce-search-icon {
    color: var(--brand-green);
}

.xce-filter-select {
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--surface-secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") right 0.5rem center/1.25rem no-repeat;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xce-filter-select:focus {
    outline: none;
    border-color: var(--brand-green);
    background-color: var(--surface-primary);
    box-shadow: 0 0 0 3px rgba(2, 160, 55, 0.1);
}

.xce-filter-select:hover {
    border-color: #d1d5db;
}

/* ================ BUTTONS ================ */
.xce-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--brand-green);
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px -2px rgba(2, 160, 55, 0.4);
    border: none;
    cursor: pointer;
}

.xce-btn-primary:hover {
    background: var(--brand-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(2, 160, 55, 0.5);
}

.xce-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--surface-primary);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    transition: all 0.2s ease;
    cursor: pointer;
}

.xce-btn-secondary:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

html:not(.dark) .xce-btn-secondary:hover {
    background: #f0fdf4;
}

html.dark .xce-btn-secondary:hover {
    background: rgba(2, 160, 55, 0.1);
}

/* ================ TABLE ================ */
.xce-table-container {
    background: var(--surface-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-primary);
    overflow: hidden;
}

.xce-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.xce-table th {
    padding: 1rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: left;
}

.xce-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.xce-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.15s ease;
    cursor: pointer;
}

.xce-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(2, 160, 55, 0.04) 0%, rgba(2, 160, 55, 0.02) 50%, transparent 100%);
}

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

/* ================ AVATARS ================ */
.xce-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.xce-avatar-square {
    border-radius: 0.75rem;
}

/* ================ BADGES ================ */
.xce-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.xce-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Confidence Badges */
.xce-badge-high {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}
.xce-badge-high::before { background: #22c55e; }

.xce-badge-medium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #a16207;
}
.xce-badge-medium::before { background: #f59e0b; }

.xce-badge-low {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
}
.xce-badge-low::before { background: #ef4444; }

/* Status Badges */
.xce-badge-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
}
.xce-badge-success::before { background: #22c55e; }

.xce-badge-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}
.xce-badge-warning::before { background: #f59e0b; }

.xce-badge-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
}
.xce-badge-error::before { background: #ef4444; }

.xce-badge-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}
.xce-badge-info::before { background: #3b82f6; }

.xce-badge-purple {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}
.xce-badge-purple::before { background: #8b5cf6; }

/* Stage Badges */
.xce-stage-pre-seed { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7c3aed; }
.xce-stage-pre-seed::before { background: #8b5cf6; }

.xce-stage-seed { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.xce-stage-seed::before { background: #22c55e; }

.xce-stage-series-a { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.xce-stage-series-a::before { background: #3b82f6; }

.xce-stage-series-b { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #4338ca; }
.xce-stage-series-b::before { background: #6366f1; }

/* Simple Tag */
.xce-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================ PAGINATION ================ */
.xce-pagination {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
    background: var(--surface-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xce-pagination-info {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

.xce-pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--surface-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.xce-pagination-btn:hover:not(:disabled) {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

html:not(.dark) .xce-pagination-btn:hover:not(:disabled) {
    background: #f0fdf4;
}

html.dark .xce-pagination-btn:hover:not(:disabled) {
    background: rgba(2, 160, 55, 0.1);
}

.xce-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================ CARDS ================ */
.xce-card {
    background: var(--surface-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.xce-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.xce-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.xce-card-body {
    padding: 1.5rem;
}

/* ================ EMPTY STATE ================ */
.xce-empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.xce-empty-state-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);
}

.xce-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.xce-empty-state p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* ================ MODAL ================ */
.xce-modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.xce-modal-enter {
    animation: xceModalFadeIn 0.2s ease-out;
}

@keyframes xceModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.xce-modal-header {
    background: var(--gradient-green-modal);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.xce-modal-section {
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    padding: 1rem;
    margin-bottom: 1rem;
}

.xce-modal-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

/* ================ SKELETON LOADING ================ */
@keyframes xceShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.xce-skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: xceShimmer 1.5s infinite;
    border-radius: 4px;
}

/* ================ FORM INPUTS ================ */
.xce-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--surface-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.xce-input:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(2, 160, 55, 0.1);
}

.xce-input::placeholder {
    color: var(--gray-400);
}

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

/* ================ PLACEHOLDER ================ */
.xce-placeholder {
    color: #d1d5db;
    font-size: 1rem;
    font-weight: 500;
}

/* ================ BREADCRUMB ================ */
.xce-breadcrumb {
    background: var(--surface-primary);
    border-bottom: 1px solid var(--gray-200);
}

.xce-breadcrumb nav {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.xce-breadcrumb a:hover {
    color: var(--brand-green);
}

/* ================ SIDEBAR LINK ACTIVE STATE ================ */
.xce-sidebar-link.active,
.xce-sidebar-link:hover {
    background: rgba(2, 160, 55, 0.1);
    color: var(--brand-green);
}

.xce-sidebar-link.active {
    border-left: 3px solid var(--brand-green);
}

/* ================ SCORE DISPLAYS ================ */
.xce-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.xce-score-circle-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #15803d;
}

/* Score bar */
.xce-score-bar {
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.xce-score-bar-fill {
    height: 100%;
    background: var(--brand-green);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ================ FILE UPLOAD ================ */
.xce-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-primary) 100%);
}

.xce-upload-zone:hover,
.xce-upload-zone.dragover {
    border-color: var(--brand-green);
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
}

.xce-upload-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: var(--radius-2xl);
    transition: all 0.3s ease;
}

.xce-upload-zone:hover .xce-upload-icon,
.xce-upload-zone.dragover .xce-upload-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.xce-upload-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--gray-400);
    transition: color 0.3s ease;
}

.xce-upload-zone:hover .xce-upload-icon svg,
.xce-upload-zone.dragover .xce-upload-icon svg {
    color: var(--brand-green);
}

/* ================ UTILITIES ================ */
.xce-text-brand {
    color: var(--brand-green);
}

.xce-bg-brand {
    background-color: var(--brand-green);
}

.xce-border-brand {
    border-color: var(--brand-green);
}

.xce-hover-brand:hover {
    color: var(--brand-green);
}

/* Animation utilities */
.xce-fade-in {
    animation: xceFadeIn 0.3s ease-out;
}

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

.xce-slide-up {
    animation: xceSlideUp 0.3s ease-out;
}

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

/* ================ RESPONSIVE UTILITIES ================ */
@media (max-width: 768px) {
    .xce-stat-number {
        font-size: 2rem;
    }
    
    .xce-page-title {
        font-size: 1.5rem;
    }
    
    .xce-hero-title {
        font-size: 2rem;
    }
    
    .xce-section-title {
        font-size: 1.75rem;
    }
}
