:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #6366f1;
    --secondary-color: #7c3aed;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0284c7;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-lighter: #e5e7eb;
    --gray-lightest: #f3f4f6;
    --white: #ffffff;
    --background: #f8fafc;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --card-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
    min-height: 100vh;
    color: var(--gray-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Authentication Pages */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
}

.auth-form {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 48px 40px;
    box-shadow: var(--card-shadow-lg);
    display: none;
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.auth-form.active {
    display: block;
}

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

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.3));
}

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

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

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.tagline {
    color: var(--gray);
    font-size: 14px;
}

.form-content h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--dark);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-dark);
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-lighter);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.input-group input:hover:not(:focus) {
    border-color: var(--gray-light);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    width: 100%;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--gray-lighter);
    color: var(--gray-dark);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gray-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-lighter);
    color: var(--gray-dark);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger-outline {
    background: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger-outline:hover {
    background: var(--danger-color);
    color: var(--white);
}

.btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

.switch-form {
    text-align: center;
    margin-top: 24px;
    color: var(--gray);
    font-size: 14px;
}

.switch-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

.info-text {
    color: var(--gray);
    margin-bottom: 24px;
    text-align: center;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--card-shadow-lg);
    display: none;
    z-index: 1000;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 400px;
    font-weight: 500;
}

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

.notification.show {
    display: block;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification.info {
    border-left: 4px solid var(--primary-color);
}

/* Dashboard Page */
.dashboard-page {
    background: var(--background);
}

.navbar {
    background: var(--white);
    box-shadow: var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.brand-name {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 32px;
}

.welcome-section {
    margin-bottom: 48px;
    text-align: center;
}

.welcome-section h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    color: var(--gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-icon {
    font-size: 48px;
}

.stat-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--gray);
    font-size: 14px;
}

.action-section {
    margin-bottom: 48px;
}

.action-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 32px;
    text-align: center;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.difficulty-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: var(--transition-slow);
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.difficulty-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.difficulty-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-shadow-lg);
}

.difficulty-card:hover::after {
    opacity: 1;
}

.difficulty-card:active {
    transform: translateY(-8px) scale(1.01);
}

.difficulty-card.easy:hover {
    border-color: var(--success-color);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.difficulty-card.medium:hover {
    border-color: var(--warning-color);
    box-shadow: 0 10px 30px rgba(217, 119, 6, 0.3);
}

.difficulty-card.hard:hover {
    border-color: var(--danger-color);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.difficulty-card.expert:hover {
    border-color: var(--dark);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

.difficulty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    text-align: center;
    display: inline-block;
    transition: transform 0.3s ease;
}

.difficulty-card:hover .difficulty-icon {
    transform: scale(1.1) rotate(5deg);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.1) translateY(0); }
    50% { transform: scale(1.15) translateY(-10px); }
}

.difficulty-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark);
}

.difficulty-card p {
    color: var(--gray);
    margin-bottom: 16px;
    min-height: 48px;
}

.difficulty-stats {
    display: flex;
    gap: 8px;
}

.stat-badge {
    background: var(--background);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.history-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--dark);
}

.history-list {
    display: grid;
    gap: 16px;
}

.history-item {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.history-item:hover {
    transform: translateX(4px);
    box-shadow: var(--card-shadow-hover);
}

.history-icon {
    font-size: 48px;
}

.history-details h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.history-meta {
    color: var(--gray);
    font-size: 14px;
}

.history-score {
    text-align: right;
}

.score-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.score-label {
    font-size: 12px;
    color: var(--gray);
}

.empty-state {
    text-align: center;
    padding: 64px 32px;
    color: var(--gray);
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.empty-state p {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-subtitle {
    font-size: 14px;
    color: var(--gray-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    padding: 32px 32px 24px;
    border-bottom: 2px solid var(--gray-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 28px;
    color: var(--dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.modal-close:hover {
    background: var(--gray-lighter);
    color: var(--gray-dark);
}

.modal-body {
    padding: 32px;
}

.modal-description {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 16px;
}

.product-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.preset-btn {
    background: var(--background);
    border: 2px solid transparent;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--gray-dark);
    font-size: 14px;
}

.preset-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.preset-btn.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Training Page */
.training-page {
    background: var(--background);
    height: 100vh;
    overflow: hidden;
}

.training-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: auto auto 1fr auto;
    gap: 24px;
    height: calc(100vh - 80px);
}

.training-info {
    grid-column: 1 / -1;
    display: flex;
    gap: 16px;
}

.info-card {
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-label {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.info-value {
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
}

.client-area {
    grid-column: 1;
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 24px;
}

.client-avatar {
    position: relative;
    animation: avatarAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes avatarAppear {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.avatar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.client-status {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.client-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--dark);
}

.client-mood {
    color: var(--gray);
    font-size: 16px;
}

.conversation-area {
    grid-column: 1;
    grid-row: 3;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.conversation-history {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.conversation-history::-webkit-scrollbar {
    width: 8px;
}

.conversation-history::-webkit-scrollbar-track {
    background: var(--gray-lightest);
    border-radius: 4px;
}

.conversation-history::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
}

.conversation-history::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

.message {
    padding: 16px 20px;
    border-radius: 16px;
    max-width: 80%;
    animation: messageAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

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

.message.user-message {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    align-self: flex-end;
    margin-left: auto;
}

.message.client-message {
    background: var(--gray-lighter);
    color: var(--gray-dark);
    align-self: flex-start;
}

.message.system-message {
    background: var(--background);
    color: var(--gray);
    align-self: center;
    text-align: center;
    font-size: 14px;
    max-width: 100%;
}

.controls-area {
    grid-column: 1;
    background: var(--white);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.voice-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.voice-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-slow);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    color: var(--white);
    position: relative;
}

.voice-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(10px);
}

.voice-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.5);
}

.voice-btn:hover::before {
    opacity: 0.6;
}

.voice-btn:active, .voice-btn.recording {
    background: linear-gradient(135deg, var(--danger-color), #ef4444);
    animation: recordingPulse 1.5s ease-in-out infinite;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
}

@keyframes recordingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(220, 38, 38, 0.7);
    }
}

.voice-icon {
    font-size: 48px;
}

.voice-text {
    font-size: 12px;
    font-weight: 600;
}

.voice-indicator {
    display: none;
}

.voice-indicator.active {
    display: block;
    position: relative;
    width: 60px;
    height: 60px;
}

.pulse {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--danger-color);
    animation: pulse 1.5s ease-in-out infinite;
}

.text-input-area {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.text-input-area input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-lighter);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
}

.text-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.text-input-area input::placeholder {
    color: var(--gray-light);
}

.control-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.metrics-sidebar {
    grid-column: 2;
    grid-row: 2 / -1;
    background: var(--white);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow-y: auto;
}

.metrics-sidebar h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--dark);
}

.metric-item {
    margin-bottom: 24px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-dark);
}

.metric-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-lighter);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 4px;
}

.metric-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.objections-list {
    margin-top: 32px;
}

.objections-list h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--dark);
}

.objections-content {
    font-size: 14px;
}

.empty-text {
    color: var(--gray-light);
    font-style: italic;
}

.objection-item {
    background: var(--background);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

/* Results Modal */
.results-summary {
    text-align: center;
    margin-bottom: 40px;
}

.result-score {
    display: inline-block;
}

.score-circle {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.4);
    position: relative;
    animation: scoreReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}

@keyframes scoreReveal {
    from {
        transform: scale(0.5) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.score-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.score-total {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.score-verdict {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.result-metric {
    background: var(--background);
    padding: 24px;
    border-radius: 16px;
}

.result-metric h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--dark);
}

.metric-score {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.metric-feedback {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.results-recommendations {
    background: var(--background);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.results-recommendations h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--dark);
}

.results-recommendations ul {
    list-style: none;
    padding: 0;
}

.results-recommendations li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-lighter);
    color: var(--gray-dark);
    display: flex;
    align-items: start;
    gap: 12px;
}

.results-recommendations li:last-child {
    border-bottom: none;
}

.results-recommendations li:before {
    content: "💡";
    flex-shrink: 0;
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hint-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-dark);
    background: var(--background);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .training-container {
        padding: 16px;
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .training-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto 1fr auto;
    }

    .metrics-sidebar {
        grid-column: 1;
        grid-row: 3;
        max-height: 300px;
    }

    .conversation-area {
        grid-row: 4;
    }

    .controls-area {
        grid-row: 5;
    }
}

@media (max-width: 768px) {
    .difficulty-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        gap: 12px;
    }

    .voice-btn {
        width: 100px;
        height: 100px;
    }

    .voice-icon {
        font-size: 36px;
    }

    .results-metrics {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }

    .welcome-section h1 {
        font-size: 32px;
    }
}

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

    .stat-card {
        padding: 20px;
    }

    .difficulty-card {
        padding: 24px;
    }

    .auth-form {
        padding: 32px 24px;
    }

    .training-info {
        flex-wrap: wrap;
    }

    .info-card {
        flex: 1 1 auto;
        min-width: 140px;
    }
}
