/* ========================================
   ValuePersonality - Modern UI Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Emerald & Cyan Theme */
    --bg-primary: #050a0a;
    --bg-secondary: #0a1414;
    --bg-card: rgba(10, 20, 20, 0.8);
    --bg-card-hover: rgba(15, 30, 30, 0.9);
    
    /* Accent Colors */
    --accent-primary: #10b981;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Type Colors */
    --analyst-color: #8b5cf6;
    --diplomat-color: #10b981;
    --sentinel-color: #3b82f6;
    --explorer-color: #f59e0b;
    
    /* Text Colors */
    --text-primary: #f0fdf4;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Borders */
    --border-color: rgba(16, 185, 129, 0.1);
    --border-hover: rgba(16, 185, 129, 0.25);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
    
    /* Typography */
    --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(6, 182, 212, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(139, 92, 246, 0.06), transparent);
    z-index: -3;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.bg-glow-1 {
    top: -200px;
    right: -200px;
    background: var(--accent-primary);
}

.bg-glow-2 {
    bottom: -200px;
    left: -200px;
    background: var(--accent-secondary);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.1);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Main Content */
.main-content {
    min-height: 100vh;
    padding-top: 80px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--border-hover);
}

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

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Forms */
.select-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.select-input:hover {
    border-color: var(--border-hover);
}

.select-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.select-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Typography */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 0.75rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Upload Section */
.upload-section {
    position: relative;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-zone {
    position: relative;
    padding: 3rem 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    background: rgba(16, 185, 129, 0.02);
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.08);
}

.upload-zone.hidden {
    display: none;
}

.upload-icon {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.upload-primary {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.upload-secondary {
    color: var(--text-muted);
}

.upload-formats {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Preview */
.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.preview-container.hidden {
    display: none;
}

.preview-image-wrapper {
    position: relative;
    max-width: 100%;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.clear-preview {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
}

.clear-preview:hover {
    background: rgba(239, 68, 68, 0.8);
}

.preview-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.file-name {
    font-weight: 500;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* AI Section */
.ai-section {
    background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.03), transparent);
    padding: 6rem 2rem;
}

.ai-content {
    max-width: 800px;
    margin: 0 auto;
}

.ai-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.ai-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.ai-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-point {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.ai-point:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.ai-point-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.ai-point-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ai-point-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section Styles */
.section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    position: relative;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Types Preview */
.types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.type-chip {
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.type-chip:hover {
    transform: scale(1.05);
}

.type-chip.analyst {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

.type-chip.diplomat {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.type-chip.sentinel {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.type-chip.explorer {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* Results Page */
.results-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

.results-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-primary);
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
}

.results-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

/* User Card */
.user-card {
    position: sticky;
    top: 100px;
}

.user-image-wrapper {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.user-image {
    width: 100%;
    height: auto;
    display: block;
}

.controls-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Predictions */
.predictions-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.predictions-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.predictions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prediction-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.prediction-item:hover {
    background: rgba(16, 185, 129, 0.05);
}

.prediction-item.active {
    border-color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.1);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.prediction-label {
    font-weight: 600;
}

.prediction-match {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.prediction-bar {
    height: 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.prediction-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width var(--transition-base);
}

/* Insight Box */
.insight-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius-md);
}

.insight-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.insight-text a {
    color: var(--accent-secondary);
    text-decoration: none;
}

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

/* Examples Section */
.examples-card {
    min-height: 500px;
}

.examples-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.examples-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    min-height: 300px;
}

.celebrity-card {
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
}

.celebrity-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.celebrity-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.celebrity-info {
    padding: 0.75rem;
}

.celebrity-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.page-indicator {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Archive Page */
.archive-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.archive-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.stat-badge {
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.archive-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.archive-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.archive-card-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.archive-card:hover .archive-card-image img {
    transform: scale(1.05);
}

.archive-card-content {
    padding: 1rem;
}

.archive-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.archive-card-tags {
    display: flex;
    gap: 0.5rem;
}

.type-badge {
    padding: 0.25rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.gender-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* Pagination Nav */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.page-number:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-primary);
}

.page-number.current {
    background: var(--accent-primary);
    color: white;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-muted);
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.flash-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.flash-success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.flash-icon {
    font-weight: 700;
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    color: var(--accent-primary);
    font-weight: 600;
}

.footer-divider {
    margin: 0 0.75rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    grid-column: 1 / -1;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: #f87171;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-results-full {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-results-full h3 {
    margin-bottom: 0.5rem;
}

.no-results-full p {
    color: var(--text-muted);
}

.no-results-full a {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .results-layout {
        grid-template-columns: 1fr;
    }
    
    .user-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-section {
        grid-template-columns: 1fr;
    }
    
    .archive-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .pagination-pages {
        display: none;
    }
    
    .ai-point {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .archive-filters {
        flex-direction: column;
        align-items: stretch;
    }
}
