/* ============================================
   TALENTSHENASI PREMIUM - COMPREHENSIVE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* Secondary Colors */
    --secondary-500: #ec4899;
    --secondary-600: #db2777;
    
    /* Accent Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutral Colors - Light Mode */
    --bg-light: #ffffff;
    --bg-secondary-light: #f8fafc;
    --bg-tertiary-light: #f1f5f9;
    --bg-elevated-light: #ffffff;
    --border-light: #e2e8f0;
    --text-primary-light: #0f172a;
    --text-secondary-light: #475569;
    --text-tertiary-light: #94a3b8;
    
    /* Neutral Colors - Dark Mode */
    --bg-dark: #0f172a;
    --bg-secondary-dark: #1e293b;
    --bg-tertiary-dark: #334155;
    --bg-elevated-dark: #1e293b;
    --border-dark: #334155;
    --text-primary-dark: #f8fafc;
    --text-secondary-dark: #cbd5e1;
    --text-tertiary-dark: #94a3b8;
    
    /* Active Theme Variables */
    --bg: var(--bg-light);
    --bg-secondary: var(--bg-secondary-light);
    --bg-tertiary: var(--bg-tertiary-light);
    --bg-elevated: var(--bg-elevated-light);
    --border: var(--border-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-tertiary: var(--text-tertiary-light);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode */
body.dark-mode {
    --bg: var(--bg-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --bg-tertiary: var(--bg-tertiary-dark);
    --bg-elevated: var(--bg-elevated-dark);
    --border: var(--border-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-tertiary: var(--text-tertiary-dark);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Font Size Variants */
body.font-small {
    font-size: 14px;
}

body.font-medium {
    font-size: 16px;
}

body.font-large {
    font-size: 18px;
}

/* Dyslexia Font */
body.dyslexia-font {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif;
}

/* High Contrast Mode */
body.high-contrast {
    --primary-500: #0000ff;
    --text-primary-light: #000000;
    --text-secondary-light: #333333;
    --bg-light: #ffffff;
    --border-light: #000000;
}

/* Base Typography */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    font-size: 0.875rem;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.language-btn .flag {
    font-size: 1.25rem;
}

.language-btn .arrow {
    font-size: 0.625rem;
    transition: transform var(--transition-fast);
}

.language-selector.active .arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--text-primary);
}

.language-option:hover {
    background: var(--bg-secondary);
}

.language-option:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.language-option:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Theme Toggle */
.theme-toggle {
    width: 64px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 2px;
    transition: all var(--transition-base);
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.theme-toggle-circle {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-bounce);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle.active .theme-toggle-circle {
    transform: translateX(28px);
}

.theme-icon {
    font-size: 1rem;
}

/* Settings Button */
.settings-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1.25rem;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1) rotate(90deg);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding: 2rem;
}

.screen {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: block;
}

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

/* ============================================
   WELCOME SCREEN
   ============================================ */

.welcome-container {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
    margin-bottom: 4rem;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--info), var(--primary-400));
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-500), var(--warning));
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(0, -100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, -50px) rotate(270deg);
    }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary-600);
    margin-bottom: 2rem;
}

body.dark-mode .hero-badge {
    color: var(--primary-300);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 2rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Testimonials */
.testimonials-section {
    margin-top: 4rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    transition: all var(--transition-base);
}

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

.testimonial-stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-primary);
}

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-bounce);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--primary-500);
    background: var(--bg-secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-4px);
}

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

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

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-500);
    transform: scale(1.1);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

.link {
    color: var(--primary-600);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .logo-title {
        font-size: 1.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
    }
    
    .language-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .language-btn .lang-text {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
    }
    
    /* Test selection screen mobile */
    .test-selection-container {
        padding: 1rem 0.5rem;
    }
    
    .test-selection-header {
        margin-bottom: 2rem;
    }
    
    .test-selection-title {
        font-size: 1.75rem;
    }
    
    .test-selection-subtitle {
        font-size: 1rem;
    }
    
    .test-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .test-version-card {
        padding: 2rem 1.5rem;
    }
    
    .test-card-icon {
        font-size: 3rem;
    }
    
    .test-card-title {
        font-size: 1.5rem;
    }
    
    .test-card-questions {
        font-size: 1rem;
    }
    
    .test-card-description {
        font-size: 0.9375rem;
        min-height: auto;
    }
    
    .test-card-features {
        font-size: 0.9375rem;
    }
    
    .test-version-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    /* Registration screen mobile */
    .registration-container {
        padding: 1rem;
    }
    
    .progress-header {
        margin-bottom: 2rem;
        gap: 0.5rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    /* Questions screen mobile */
    .questions-main {
        flex-direction: column;
    }
    
    .questions-sidebar {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }
    
    .questions-content {
        order: 1;
        padding: 1rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .question-number {
        font-size: 0.75rem;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .option {
        padding: 1rem;
    }
    
    .option-text {
        font-size: 0.875rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
    
    .question-dots {
        display: none; /* Hide on mobile for cleaner UI */
    }
    
    /* Results screen mobile */
    .results-header {
        padding: 1.5rem;
    }
    
    .results-title {
        font-size: 1.5rem;
    }
    
    .results-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .results-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
        white-space: nowrap;
    }
    
    .result-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mbti-code {
        font-size: 3rem;
    }
    
    .dimension-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .career-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .career-match {
        align-self: flex-end;
    }
    
    /* Forms mobile */
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    /* Modals mobile */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    /* Charts mobile */
    canvas {
        max-height: 300px !important;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    .option label {
        min-height: 60px;
        padding: 1rem 1.25rem;
    }
    
    /* Smooth animations */
    .test-version-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .option label {
        transition: transform 0.2s ease, border-color 0.2s ease;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .header {
        padding: 0.5rem;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    /* Test selection extra small */
    .test-selection-title {
        font-size: 1.5rem;
    }
    
    .test-selection-subtitle {
        font-size: 0.875rem;
    }
    
    .test-version-card {
        padding: 1.5rem 1rem;
    }
    
    .test-card-icon {
        font-size: 2.5rem;
    }
    
    .test-card-title {
        font-size: 1.25rem;
    }
    
    .test-card-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
        top: -10px;
        right: 1rem;
    }
    
    .test-card-time {
        flex-direction: column;
        padding: 0.5rem 1rem;
    }
    
    .test-card-features li {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    .question-card {
        padding: 1rem;
    }
    
    .question-text {
        font-size: 0.9375rem;
    }
    
    .option {
        padding: 0.75rem;
    }
    
    .option label {
        min-height: 52px;
        padding: 0.75rem 1rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .mbti-code {
        font-size: 2.5rem;
    }
    
    /* Reduce animations on very small screens for better performance */
    .test-version-card:hover {
        transform: translateY(-4px);
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .results-actions,
    .results-tabs,
    .results-footer {
        display: none;
    }
}

/* ============================================
   REGISTRATION SCREEN
   ============================================ */

/* ============================================
   TEST SELECTION SCREEN
   ============================================ */

.test-selection-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.test-selection-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.test-selection-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.test-selection-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.test-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.test-version-card {
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-bounce);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

.test-version-card:nth-child(1) { animation-delay: 0.1s; }
.test-version-card:nth-child(2) { animation-delay: 0.2s; }
.test-version-card:nth-child(3) { animation-delay: 0.3s; }

.test-version-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-500);
}

.test-version-card.recommended {
    border-color: var(--primary-500);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.test-card-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: linear-gradient(135deg, var(--info), var(--primary-500));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.test-card-badge.recommended-badge {
    background: linear-gradient(135deg, var(--secondary-500), var(--warning));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.test-card-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.test-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--text-primary);
}

.test-card-questions {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.test-card-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-lg);
}

.time-icon {
    font-size: 1.25rem;
}

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

.test-card-description {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.test-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.test-card-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.test-card-features li:last-child {
    border-bottom: none;
}

.test-card-features li:hover {
    padding-right: 0.5rem;
    color: var(--primary-600);
}

.test-version-card .btn {
    width: 100%;
}

.test-selection-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================
   REGISTRATION SCREEN
   ============================================ */

.registration-container {
    max-width: 800px;
    margin: 0 auto;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-color: var(--primary-500);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

.progress-step.active .step-label {
    color: var(--primary-600);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 100px;
}

.registration-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.registration-header {
    text-align: center;
    margin-bottom: 2rem;
}

.registration-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.registration-header p {
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* ============================================
   QUESTIONS SCREEN
   ============================================ */

.questions-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.test-progress {
    grid-column: 1 / -1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-bar-container {
    position: relative;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: visible;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-full);
    transition: width var(--transition-bounce);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.progress-milestones {
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 28px;
    display: flex;
    justify-content: space-between;
    padding: 0 25%;
}

.milestone {
    width: 28px;
    height: 28px;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
}

.milestone.reached {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
    transform: scale(1.2);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.question-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.question-category-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--primary-500);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
}

.question-content {
    margin-bottom: 2rem;
}

.question-text {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.question-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.question-image img {
    width: 100%;
    height: auto;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    position: relative;
}

.option input[type="radio"] {
    display: none;
}

.option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-bounce);
    font-weight: 500;
    color: var(--text-primary);
}

.option label:hover {
    border-color: var(--primary-500);
    background: var(--bg-elevated);
    transform: translateX(-8px);
    box-shadow: var(--shadow-md);
}

.option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(59, 130, 246, 0.05));
    border-color: var(--primary-500);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
    transform: translateX(-8px);
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    position: relative;
}

.option input[type="radio"]:checked + label .option-radio {
    border-color: var(--primary-500);
    background: var(--primary-500);
    box-shadow: inset 0 0 0 4px var(--bg-elevated);
}

.option-text {
    flex: 1;
    line-height: 1.6;
}

.question-footer {
    margin-top: 2rem;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.question-dots {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.question-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.question-dot.answered {
    background: var(--success);
}

.question-dot.current {
    width: 24px;
    border-radius: var(--radius-full);
    background: var(--primary-500);
}

.question-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.sidebar-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.sidebar-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.category-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.category-name {
    font-weight: 600;
    color: var(--text-secondary);
}

.category-count {
    font-weight: 700;
    color: var(--primary-600);
}

/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.loading-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 4px solid transparent;
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
    border-top-color: var(--secondary-500);
    animation-duration: 2s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    border-top-color: var(--info);
    animation-duration: 2.5s;
}

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

.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.loading-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all var(--transition-base);
}

.loading-step.active {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(59, 130, 246, 0.03));
}

.loading-step.completed {
    opacity: 0.6;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.loading-step.active .step-icon {
    background: var(--primary-500);
    color: white;
}

.loading-step.completed .step-icon {
    background: var(--success);
    color: white;
}

.loading-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.loading-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.loading-percent {
    font-weight: 800;
    color: var(--primary-600);
    min-width: 48px;
}

/* ============================================
   RESULTS SCREEN
   ============================================ */

.results-container {
    max-width: 1400px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-2xl);
}

.celebration-animation {
    margin-bottom: 2rem;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: var(--primary-500);
    background: var(--bg-secondary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-color: var(--primary-500);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.tab-icon {
    font-size: 1.25rem;
}

.results-content {
    animation: fadeIn 0.5s ease-in-out;
}

.result-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all var(--transition-base);
}

.result-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-500);
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

.results-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.4s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-weight: 500;
    color: var(--text-secondary);
}

.setting-item select,
.setting-item input[type="checkbox"] {
    margin-left: 1rem;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 5rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

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

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--danger);
}

.toast.info {
    border-color: var(--info);
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

/* Print Styles */
@media print {
    .header,
    .results-actions,
    .results-tabs,
    .results-footer {
        display: none;
    }
}
