/* Основные переменные */
:root {
    --bg-primary: #1A1A1A;
    --bg-secondary: #282825;
    --accent-color: #ADC948;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(40, 40, 37, 0.8);
    --glass-border: rgba(173, 201, 72, 0.2);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 16px 60px rgba(0, 0, 0, 0.5);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Контейнер авторизации */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

/* Карточка авторизации */
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 48px 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Логотип */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.logo p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Вкладки */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 32px;
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 16px rgba(173, 201, 72, 0.3);
}

/* Формы */
.auth-form {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.auth-form.active {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid rgba(173, 201, 72, 0.3);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 0 0 3px rgba(173, 201, 72, 0.1);
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Кнопки */
.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--accent-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: #9bb83f;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
}

.btn-shine {
    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 .btn-shine {
    left: 100%;
}

/* Неактивная кнопка */
.btn-primary.disabled,
.btn-primary:disabled {
    background: #666666;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    background: #666666;
    transform: none;
    box-shadow: none;
}

.btn-primary.disabled .btn-shine,
.btn-primary:disabled .btn-shine {
    display: none;
}

/* Требования к паролю */
.password-requirements {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-requirements p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
}

.password-requirements li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.password-requirements li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Алерты */
.alert {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.5s ease-out;
    position: relative;
    z-index: 10;
    max-width: 400px;
    box-shadow: var(--shadow-heavy);
}

/* Алерты на странице авторизации */
.auth-card .alert {
    position: relative;
    margin-top: 20px;
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    z-index: 1;
    order: 1;
}

/* Перемещаем уведомления в конец карточки */
.auth-card {
    display: flex;
    flex-direction: column;
}

.auth-card .logo {
    order: 0;
}

.auth-card .auth-tabs {
    order: 1;
}

.auth-card .auth-content {
    order: 2;
}

.auth-card .alert {
    order: 3;
}

/* Алерты на других страницах (dashboard и т.д.) */
.dashboard-container .alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #DC2626;
}

.alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16A34A;
}

.alert-icon {
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Простой градиентный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #2a2a2a 100%);
    z-index: -1;
}

/* Dashboard стили */
.dashboard-container {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
}

.dashboard-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 9999999;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header .logo {
    margin-bottom: 0;
}

.dashboard-header .logo h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Центрирование логотипа по вертикали на десктопе */
.dashboard-header .logo {
    display: flex;
    align-items: center;
}

.dashboard-header .logo h1 {
    line-height: 1;
    transform: translateY(1px);
}

.dashboard-header .logo h1 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard-header .logo h1 a:hover {
    color: var(--accent-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #9bb83f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(173, 201, 72, 0.3);
}

.user-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.user-details p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #DC2626;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.admin-stats-btn {
    padding: 8px 16px;
    background: rgba(173, 201, 72, 0.1);
    border: 1px solid rgba(173, 201, 72, 0.2);
    border-radius: 12px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.admin-stats-btn:hover {
    background: rgba(173, 201, 72, 0.2);
    transform: translateY(-1px);
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.welcome-section {
    margin-bottom: 60px;
}

/* Точная настройка отступов для секции статистики */
.stats-section {
    margin-top: 28px; /* чуть больше отступ сверху от блока агента */
    margin-bottom: 24px; /* чуть ближе к таблице */
}

.welcome-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 40px;
    box-shadow: var(--shadow-light);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.welcome-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #9bb83f);
    border-radius: 12px;
    color: white;
}

.stat-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-content p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.features-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-primary);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all 0.2s ease;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Анимации */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Стили подписки */
.subscription-section {
    margin-top: 24px;
}

.subscription-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    color: white;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.subscription-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.no-subscription {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.basic-subscription {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.premium-subscription {
    background: rgba(168, 85, 247, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.subscription-details {
    margin: 12px 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.subscription-end {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-label {
    color: #a1a1aa;
    font-size: 1.0rem;
    font-weight: 400;
}

.end-label {
    color: #a1a1aa;
    font-size: 1.0rem;
    font-weight: 400;
}

.level-value {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 5px;
}

.level-value.no-subscription {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.level-value.starter-subscription {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.level-value.basic-subscription {
    background: rgba(173, 201, 72, 0.2);
    border: 1px solid rgba(173, 201, 72, 0.3);
}

.level-value.pro-subscription {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.level-value.enterprise-subscription {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.level-value.premium-subscription {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.end-date {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.2);
    padding: 3px 6px;
    border-radius: 5px;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.subscription-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-secondary {
    padding: 8px 16px;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-secondary:hover {
    background: #9bb83f;
    transform: translateY(-1px);
}

/* Стили страницы планов */
.plan-section {
    max-width: 800px;
    margin: 0 auto;
}

.plan-header {
    text-align: center;
    margin-bottom: 40px;
}

.plan-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.plan-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    max-width: 1600px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.plan-card {
    background: rgba(40, 40, 37, 0.95);
    border: 2px solid rgba(173, 201, 72, 0.1);
    border-radius: 20px;
    padding: 28px 20px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(173, 201, 72, 0.15);
    border-color: rgba(173, 201, 72, 0.3);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), #9bb83f);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(173, 201, 72, 0.3);
}

.plan-card .plan-header {
    text-align: left;
    margin-bottom: 16px;
}

.plan-card .plan-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.enterprise-price {
    font-size: 1.4rem !important;
    line-height: 1.2;
}

.enterprise-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.enterprise-card {
    width: 340px !important;
    border: 2px solid rgba(173, 201, 72, 0.1) !important;
    background: rgba(40, 40, 37, 0.95) !important;
}

.enterprise-card:hover {
    border-color: rgba(173, 201, 72, 0.3) !important;
    box-shadow: 0 20px 40px rgba(173, 201, 72, 0.15) !important;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
    border-bottom: 2px solid rgba(173, 201, 72, 0.1);
    padding-bottom: 8px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.feature-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.feature-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
}

.feature-item:last-child {
    border-bottom: none;
}


.plan-actions {
    margin-top: auto;
    padding-top: 20px;
}

.plan-actions .btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #9bb83f);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.plan-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(173, 201, 72, 0.3);
}

.btn-cancel {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #DC2626;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-cancel::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-cancel:hover::before {
    left: 100%;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.subscription-active {
    text-align: center;
}

.active-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    color: #16A34A;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.active-icon {
    width: 20px;
    height: 20px;
    background: #16A34A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-disabled {
    width: 100%;
    padding: 14px 24px;
    background: #e5e7eb;
    border: none;
    border-radius: 12px;
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 500;
    cursor: not-allowed;
    transition: none;
    box-shadow: none;
}

.btn-disabled:hover {
    background: #e5e7eb;
    transform: none;
    box-shadow: none;
}

/* Стили страницы успеха */
.success-section {
    max-width: 600px;
    margin: 0 auto;
}

.success-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.success-icon {
    margin-bottom: 32px;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    position: relative;
    animation: checkmark-scale 0.6s ease-in-out;
}

.checkmark-stem {
    position: absolute;
    width: 3px;
    height: 20px;
    background: white;
    left: 35px;
    top: 40px;
    transform: rotate(45deg);
    animation: checkmark-stem 0.3s ease-in-out 0.3s both;
}

.checkmark-kick {
    position: absolute;
    width: 3px;
    height: 12px;
    background: white;
    left: 45px;
    top: 35px;
    transform: rotate(-45deg);
    animation: checkmark-kick 0.3s ease-in-out 0.6s both;
}

.success-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.success-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.subscription-details {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #a1a1aa;
    font-weight: 400;
}

.detail-value {
    color: white;
    font-weight: 500;
}

.detail-value.status-active {
    color: #86efac;
}

.success-actions {
    margin-top: 32px;
}

/* Анимации для чекмарка */
@keyframes checkmark-scale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkmark-stem {
    0% {
        height: 0;
    }
    100% {
        height: 20px;
    }
}

@keyframes checkmark-kick {
    0% {
        height: 0;
    }
    100% {
        height: 12px;
    }
}

/* Стили агентов */
.agent-section {
    margin-top: 24px;
}

.agent-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1;
}

.agent-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.agent-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.field-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
}

.field-value.voice-name {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(173, 201, 72, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(173, 201, 72, 0.2);
}

.phone-number {
    background: var(--bg-secondary);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.phone-instruction {
    margin-top: 12px;
    padding: 16px;
    background: rgba(173, 201, 72, 0.05);
    border: 1px solid rgba(173, 201, 72, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.phone-instruction p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.phone-instruction p:last-child {
    margin-bottom: 0;
}

/* Стили для модальных окон подтверждения */
.confirmation-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5px;
    margin-top: 0;
}

.confirmation-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.confirmation-warning {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Компактное модальное окно */
.compact-modal {
    max-width: 400px !important;
    padding: 20px 20px 16px 20px !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.compact-modal .modal-header {
    margin-bottom: 0px;
}

.compact-modal .modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.compact-modal .modal-body {
    padding-bottom: 0 !important;
}

.compact-modal .modal-actions {
    gap: 12px;
    margin-top: 0;
    margin-bottom: 0;
}

.compact-modal .modal-actions button {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.compact-modal .confirmation-icon {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.compact-modal .confirmation-text {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.compact-modal .confirmation-warning {
    margin-top: 0 !important;
    margin-bottom: 73px !important;
}

.phone-instruction strong {
    color: var(--accent-color);
}

.prompt-text {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.5;
    white-space: pre-wrap;
    color: white;
}

/* Таблица звонков */
.calls-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.calls-table th,
.calls-table td {
    text-align: left;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.calls-table thead th {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calls-table tbody tr {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calls-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

.calls-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.calls-table .nowrap {
    white-space: nowrap;
}

.calls-table .summary-cell {
    max-width: 520px;
}

/* Бейджи типа звонка */
.call-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.call-type-badge.inbound {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16A34A;
}

.call-type-badge.outbound {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
}

.call-type-badge.unknown {
    background: rgba(161, 161, 170, 0.1);
    border: 1px solid rgba(161, 161, 170, 0.3);
    color: var(--text-secondary);
}

/* Кликабельная плашка summary */
.summary-chip {
    display: inline-block;
    width: 100%;
    background: rgba(173, 201, 72, 0.06);
    border: 1px solid rgba(173, 201, 72, 0.35);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.summary-chip:hover {
    background: rgba(173, 201, 72, 0.1);
    box-shadow: 0 0 0 3px rgba(173, 201, 72, 0.12);
}

.summary-chip:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(173, 201, 72, 0.2);
}

.summary-chip-text {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-download {
    padding: 8px 12px;
    margin: 0;
}

.agent-actions {
    display: flex;
    gap: 12px;
}

.btn-danger {
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #DC2626;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.no-agent {
    text-align: center;
    padding: 32px 20px;
}

.no-agent-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.no-agent p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(40, 40, 37, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    padding: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(173, 201, 72, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 26, 0.9);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(26, 26, 26, 1);
    box-shadow: 0 0 0 3px rgba(173, 201, 72, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.char-counter {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 4px;
}

.char-counter.invalid {
    color: #DC2626;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.prompt-preview {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.prompt-preview .prompt-text {
    background: none;
    border: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    line-height: 1.6;
    white-space: pre-wrap;
    color: white;
}

.prompt-edit {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
    width: 100%;
}

.prompt-edit:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(173, 201, 72, 0.1);
}

.loading-modal {
    text-align: center;
    padding: 40px 24px;
}

.loading-spinner {
    margin-bottom: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(173, 201, 72, 0.2);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-modal p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Анимации */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-main {
        padding: 20px 10px;
    }
    
    .plan-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .plan-cards {
        flex-wrap: wrap;
        max-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .plan-cards {
        gap: 16px;
    }
    
    .plan-card {
        width: 260px;
    }
    
    .enterprise-card {
        width: 320px !important;
    }
}

@media (max-width: 768px) {
    .plan-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .plan-card {
        width: 100%;
        max-width: 320px;
    }
    
    .enterprise-card {
        width: 100% !important;
        max-width: 360px !important;
    }
    
    .plan-card {
        padding: 24px;
    }
    
    .subscription-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .success-card {
        padding: 32px 24px;
    }
    
    .checkmark {
        width: 60px;
        height: 60px;
    }
    
    .checkmark-circle {
        width: 60px;
        height: 60px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header,
    .modal-body {
        padding: 16px;
    }
    
    .agent-field {
        gap: 8px;
    }
    
    .prompt-text {
        max-height: 150px;
    }
}

/* Стили для выбора голоса */
.voice-selector {
    position: relative;
    margin-bottom: 20px;
}

.voice-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.temp-call-content {
    position: relative;
    z-index: 50;
}

.voice-dropdown {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.voice-dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.voice-dropdown-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(173, 201, 72, 0.2);
}

.voice-dropdown-toggle.active {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(173, 201, 72, 0.3);
}

.voice-dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.voice-dropdown-toggle.active .voice-dropdown-arrow {
    transform: rotate(180deg);
}

.voice-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 4px;
    padding-bottom: 4px;
}

.voice-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.voice-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(173, 201, 72, 0.1);
    margin-bottom: 0;
}

.voice-option:last-child {
    border-bottom: none;
    margin-bottom: 4px;
}

.voice-option:hover {
    background: rgba(173, 201, 72, 0.1);
}

.voice-option.selected {
    background: rgba(173, 201, 72, 0.2);
    color: var(--accent-color);
}

.voice-name {
    font-weight: 500;
    color: var(--text-primary);
}

.voice-option.selected .voice-name {
    color: var(--accent-color);
}

.voice-play-btn {
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--bg-primary);
    font-size: 12px;
}

.voice-play-btn:hover {
    background: #9bb03a;
    transform: scale(1.1);
}

.voice-play-btn.playing {
    background: #dc2626;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.voice-preview {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(173, 201, 72, 0.1);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    display: none;
}

.voice-preview.active {
    display: block;
}

/* Стили для селектора языка */
.language-selector {
    margin-bottom: 24px;
    position: relative;
    z-index: 999;
}

.language-selector label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 14px;
}

.language-dropdown {
    position: relative;
    width: 100%;
    z-index: 999;
}

.language-dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.language-dropdown-toggle:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(173, 201, 72, 0.2);
}

.language-dropdown-toggle.active {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(173, 201, 72, 0.3);
}

.language-dropdown-arrow {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.language-dropdown-toggle.active .language-dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999999;
    padding-bottom: 4px;
}

/* Стили для прокрутки в dropdown меню */
.language-dropdown-menu::-webkit-scrollbar,
.voice-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown-menu::-webkit-scrollbar-track,
.voice-dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb,
.voice-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb:hover,
.voice-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #8fb032;
}

.language-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    color: var(--text-primary);
    margin-bottom: 0;
}

.language-option:last-child {
    margin-bottom: 4px;
}

.language-option:hover {
    background: rgba(173, 201, 72, 0.1);
}

.language-option.selected {
    background: rgba(173, 201, 72, 0.2);
    color: var(--accent-color);
}

.language-name {
    flex: 1;
    font-size: 14px;
}

/* Стили для верификации */
.verification-section {
    animation: fadeIn 0.5s ease-out;
}

.verification-header {
    text-align: center;
    margin-bottom: 32px;
}

.verification-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.verification-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.verification-header strong {
    color: var(--accent-color);
    font-weight: 600;
}

.verification-info {
    background: rgba(173, 201, 72, 0.05);
    border: 1px solid rgba(173, 201, 72, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.verification-info p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.attempts-info {
    margin-bottom: 12px;
}

.attempts-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

#attemptsLeft {
    color: var(--accent-color);
    font-weight: 600;
}

.timer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.timer-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.verification-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.verification-actions .btn-primary {
    flex: 1;
    min-width: 120px;
}

.verification-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    margin-bottom: 0;
}

#countdown {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-secondary {
    width: 100%;
    padding: 12px 24px;
    background: rgba(173, 201, 72, 0.1);
    border: 1px solid rgba(173, 201, 72, 0.3);
    border-radius: 12px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: rgba(173, 201, 72, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(173, 201, 72, 0.2);
}

.btn-secondary:disabled {
    background: rgba(102, 102, 102, 0.1);
    border-color: rgba(102, 102, 102, 0.3);
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-secondary:disabled:hover {
    background: rgba(102, 102, 102, 0.1);
    border-color: rgba(102, 102, 102, 0.3);
    transform: none;
    box-shadow: none;
}

/* Стили для поля ввода кода */
#verificationCode {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

#verificationCode:focus {
    letter-spacing: 3px;
}

/* Анимация появления секции верификации */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для уведомлений о статусе отправки */
.code-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.code-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #16A34A;
}

.code-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #DC2626;
}

.code-status.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #2563EB;
}

/* Адаптивность для выбора голоса и языка */
@media (max-width: 768px) {
    .voice-dropdown-menu {
        max-height: 320px;
    }
    
    .voice-option {
        padding: 10px 12px;
    }
    
    .voice-play-btn {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .language-dropdown-menu {
        max-height: 280px;
    }
    
    .language-option {
        padding: 10px 12px;
    }
    
    .verification-header h3 {
        font-size: 1.2rem;
    }
    
    .verification-header p {
        font-size: 0.9rem;
    }
    
    .verification-info {
        padding: 12px;
    }
    
    .verification-info p {
        font-size: 0.85rem;
    }
    
    .attempts-info span,
    .timer-info span {
        font-size: 0.8rem;
    }
    
    #verificationCode {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    
    .verification-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .verification-actions .btn-primary,
    .verification-actions .btn-secondary {
        width: 100%;
        min-width: auto;
    }
}

/* Компактный header на мобильных */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 8px 0;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 0 12px;
    }

    .dashboard-header .logo h1 {
        font-size: 1.2rem;
    }

    .dashboard-header .logo {
        display: flex;
        align-items: center;
    }

    .dashboard-header .logo h1 {
        line-height: 1;
        transform: translateY(1px);
    }

    .user-info {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .user-details h3 {
        font-size: 0.95rem;
        margin: 0;
    }

    .user-details p {
        display: none;
    }

    .logout-btn,
    .admin-stats-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 8px;
    }
}