/* 🎨 TELEGRAM CALLS - КРАСИВЫЕ СТИЛИ */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #000000);
    line-height: 1.4;
    overflow-x: hidden;
}

/* ===== TELEGRAM ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-color: var(--tg-theme-button-color, #3390ec);
    --primary-text: var(--tg-theme-button-text-color, #ffffff);
    --secondary-color: var(--tg-theme-secondary-bg-color, #f0f0f0);
    --text-color: var(--tg-theme-text-color, #000000);
    --hint-color: var(--tg-theme-hint-color, #999999);
    --link-color: var(--tg-theme-link-color, #3390ec);
    --bg-color: var(--tg-theme-bg-color, #ffffff);
    
    /* Дополнительные цвета */
    --success-color: #4CAF50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== КОНТЕЙНЕР ПРИЛОЖЕНИЯ ===== */
#app {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ===== ЭКРАНЫ ===== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    padding: 20px;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== ЭКРАН ЗАГРУЗКИ ===== */
#loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen p {
    color: var(--hint-color);
    font-size: 16px;
    margin-top: 10px;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
#main-screen {
    background: var(--bg-color);
}

#main-screen h2 {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px 0;
}

/* ===== СПИСОК ПОЛЬЗОВАТЕЛЕЙ ===== */
#user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.user-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-text);
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}

.user-status {
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
}

.btn-call {
    background: var(--primary-color);
    color: var(--primary-text);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    justify-content: center;
}

.btn-call:hover {
    background: color-mix(in srgb, var(--primary-color) 80%, black);
    transform: scale(1.05);
}

.btn-call:active {
    transform: scale(0.95);
}

/* ===== НЕТ ПОЛЬЗОВАТЕЛЕЙ ===== */
.no-users {
    text-align: center;
    padding: 40px 20px;
    color: var(--hint-color);
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.no-users p {
    margin: 8px 0;
    font-size: 16px;
}

.no-users p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* ===== ЭКРАН ЗВОНКА ===== */
#call-screen {
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.video-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #1a1a1a;
}

#local-video {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    background: #333;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* ===== КНОПКА ВОСПРОИЗВЕДЕНИЯ ВИДЕО ===== */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 200px;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.05);
}

.video-play-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.video-play-btn .play-icon {
    font-size: 32px;
    margin-bottom: 5px;
}

.video-play-btn .play-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    opacity: 0.9;
}

.video-play-btn .play-subtext {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    line-height: 1.2;
    opacity: 0.7;
    margin-top: 4px;
}

/* ===== УПРАВЛЕНИЕ ЗВОНКОМ ===== */
.call-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    z-index: 20;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.control-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: var(--transition);
}

.control-btn:hover:before {
    opacity: 1;
}

.control-btn:active {
    transform: scale(0.9);
}

.control-btn.muted {
    background: var(--danger-color);
    animation: pulse 1.5s infinite;
}

.control-btn.btn-danger {
    background: var(--danger-color);
    color: #fff;
    width: 70px;
    height: 70px;
    font-size: 28px;
}

.control-btn.btn-danger:hover {
    background: color-mix(in srgb, var(--danger-color) 80%, black);
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== ИНФОРМАЦИЯ О ЗВОНКЕ ===== */
.call-info {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 16px 24px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 20;
}

#call-status {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

#call-timer {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Courier New', monospace;
}

/* ===== ЭКРАН ОШИБКИ ===== */
#error-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
    gap: 20px;
}

#error-screen h2 {
    color: var(--danger-color);
    font-size: 24px;
    margin-bottom: 10px;
}

#error-message {
    color: var(--text-color);
    font-size: 16px;
    max-width: 300px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ===== КНОПКИ ===== */
.btn {
    background: var(--primary-color);
    color: var(--primary-text);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-height: 44px;
}

.btn:hover {
    background: color-mix(in srgb, var(--primary-color) 80%, black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* ===== ТЕСТОВАЯ КНОПКА ===== */
button[onclick="testButton()"] {
    background: var(--danger-color) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 10px auto;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

button[onclick="testButton()"]:hover {
    background: color-mix(in srgb, var(--danger-color) 80%, black) !important;
    transform: scale(1.05);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 480px) {
    .screen {
        padding: 16px;
    }
    
    #main-screen h2 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .user-item {
        padding: 12px;
        gap: 8px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .user-status {
        font-size: 12px;
    }
    
    .btn-call {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
    }
    
    #local-video {
        width: 100px;
        height: 130px;
        top: 16px;
        right: 16px;
    }
    
    .call-controls {
        bottom: 20px;
        padding: 16px;
        gap: 16px;
    }
    
    .btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .btn-end {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .call-info {
        top: 20px;
        padding: 12px 20px;
    }
    
    #call-status {
        font-size: 14px;
    }
    
    #call-timer {
        font-size: 12px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-item {
    animation: fadeInUp 0.5s ease;
}

.user-item:nth-child(1) { animation-delay: 0.1s; }
.user-item:nth-child(2) { animation-delay: 0.2s; }
.user-item:nth-child(3) { animation-delay: 0.3s; }
.user-item:nth-child(4) { animation-delay: 0.4s; }
.user-item:nth-child(5) { animation-delay: 0.5s; }

/* ===== ТЕМНАЯ ТЕМА ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #ffffff;
        --secondary-color: #2d2d2d;
        --hint-color: #888888;
    }
}

/* ===== СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ ===== */
.user-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.user-item:hover::before {
    left: 100%;
}

/* ===== СТАТУС СОЕДИНЕНИЯ ===== */
.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1000;
    transition: var(--transition);
}

.connection-status.connected {
    background: var(--success-color);
    color: white;
}

.connection-status.disconnected {
    background: var(--danger-color);
    color: white;
}

.connection-status.connecting {
    background: var(--warning-color);
    color: white;
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--hint-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== ФОКУС ДЛЯ ДОСТУПНОСТИ ===== */
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== ПЛАВНЫЕ ПЕРЕХОДЫ ===== */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* ===== ЭКРАН ОШИБКИ ===== */
#error-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.error-content {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 100%;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-content h2 {
    color: var(--danger-color);
    margin-bottom: 16px;
    font-size: 24px;
}

.error-content p {
    color: var(--text-color);
    margin-bottom: 24px;
    line-height: 1.5;
    white-space: pre-line;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.error-actions .btn {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.error-actions .btn-success {
    background: var(--success-color) !important;
    color: white !important;
}

.error-actions .btn-warning {
    background: var(--warning-color) !important;
    color: white !important;
}

.error-actions .btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
}

.error-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.error-actions .btn:active {
    transform: translateY(0);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ОШИБОК ===== */
@media (max-width: 480px) {
    .error-content {
        padding: 20px;
        margin: 0 16px;
    }
    
    .error-icon {
        font-size: 36px;
    }
    
    .error-content h2 {
        font-size: 20px;
    }
    
    .error-content p {
        font-size: 14px;
    }
    
    .error-actions .btn {
        padding: 14px 16px !important;
        font-size: 16px !important;
        min-height: 52px;
    }
}

/* ===== НОВЫЕ ЭЛЕМЕНТЫ ИНТЕРФЕЙСА ===== */

/* 📋 Заголовок с кнопками */
.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 80%, black);
    transform: translateY(-1px);
}

.back-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: var(--bg-secondary);
}

/* 📑 Табы */
.tabs {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    margin: 16px 0;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.tab-btn:hover:not(.active) {
    color: var(--text-color);
    background: rgba(0, 123, 255, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 📞 Улучшенные кнопки звонка */
.incoming-call-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.call-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.call-action-btn .btn-icon {
    font-size: 32px;
    margin-bottom: 8px;
    pointer-events: none; /* Пропускаем клики к родителю */
}

.call-action-btn .btn-text {
    font-size: 12px;
    font-weight: 500;
    color: white;
    pointer-events: none; /* Пропускаем клики к родителю */
}

.reject-btn {
    background: var(--danger-color);
}

.reject-btn:hover {
    background: color-mix(in srgb, var(--danger-color) 80%, black);
    transform: scale(1.1);
}

.accept-btn {
    background: var(--success-color);
}

.accept-btn:hover {
    background: color-mix(in srgb, var(--success-color) 80%, black);
    transform: scale(1.1);
}

/* 👥 Контакты */
.contacts-section {
    padding: 16px;
}

.search-box {
    margin-bottom: 16px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--card-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 16px;
}

.contact-status {
    font-size: 12px;
    color: var(--secondary-text);
}

.contact-actions {
    display: flex;
    gap: 8px;
}

.no-contacts {
    text-align: center;
    color: var(--secondary-text);
    padding: 40px 16px;
    font-size: 16px;
}

/* 📋 История звонков */
.history-section {
    padding: 16px;
}

.call-history-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.call-history-item:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.call-history-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 16px;
    color: white;
}

.call-history-info {
    flex: 1;
}

.call-history-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.call-history-details {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 16px;
}

.call-history-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.call-history-status.missed {
    color: var(--danger-color);
}

.call-history-status.answered {
    color: var(--success-color);
}

.call-history-status.outgoing {
    color: var(--primary-color);
}

.call-history-call-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-history-call-btn:hover {
    background: color-mix(in srgb, var(--primary-color) 80%, black);
    transform: scale(1.1);
}

/* 🔗 Стили для попапа инвайт-ссылки */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    background: var(--bg-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.popup-header h3 {
    margin: 0;
    color: var(--text-color);
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.popup-body {
    padding: 20px;
}

.popup-body p {
    color: var(--text-color);
    margin-bottom: 15px;
}

.invite-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.invite-link-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    font-family: monospace;
}

.copy-btn {
    white-space: nowrap;
    min-width: 120px;
}

.invite-instructions {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.invite-instructions p {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-weight: 600;
}

.invite-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.invite-instructions li {
    color: var(--text-color);
    margin-bottom: 5px;
}

.popup-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

/* ===== ГОТОВО! ===== */