* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00D9FF;
    --secondary-color: #00FF88;
    --danger-color: #FF3366;
    --background: #0A0A0A;
    --secondary-bg: #141414;
    --tertiary-bg: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #666666;
    --border-color: #1A1A1A;
    --accent-glow: rgba(0, 217, 255, 0.3);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(ellipse at top, #0A0A0A 0%, #000000 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
}

/* Экран входа */
#welcome-screen {
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.container {
    background: var(--background);
    padding: 30px 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(0, 217, 255, 0.1);
    max-width: 420px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 14px;
}

input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    touch-action: manipulation;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--secondary-bg);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(0, 217, 255, 0.05);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0099CC);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.5);
}

.btn-secondary {
    background: var(--secondary-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.icon {
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

/* Экран канала */
.channel-layout {
    display: flex;
    width: 100%;
    height: 100vh;
}

.sidebar {
    width: 320px;
    background: var(--tertiary-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.channel-info {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--tertiary-bg) 100%);
}

.channel-info h2 {
    font-size: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-icon {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-icon:hover {
    background: var(--background);
    transform: scale(1.05);
}

.users-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.users-section h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.user-item {
    padding: 10px;
    margin-bottom: 5px;
    background: var(--secondary-bg);
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.user-item:hover {
    background: var(--background);
}

.user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-color);
    flex-shrink: 0;
    transition: all 0.3s;
}

.user-status.speaking {
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color), 0 0 30px rgba(0, 255, 136, 0.5);
    animation: pulse 0.8s infinite;
}

.user-name {
    flex: 1;
    transition: all 0.3s;
}

.stream-indicator {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stream-indicator:hover {
    opacity: 1;
    background: rgba(0, 217, 255, 0.1);
    transform: scale(1.1);
}

.stream-indicator:active {
    transform: scale(0.95);
}

.user-name.speaking {
    color: var(--secondary-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    animation: textGlow 1s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(0, 255, 136, 0.8); }
    50% { text-shadow: 0 0 20px rgba(0, 255, 136, 1); }
}

.mic-icon {
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.volume-control {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 90px;
}

.volume-slider {
    width: 100%;
    accent-color: var(--primary-color);
}

.hidden-volume {
    display: none;
}

/* Контекстное меню пользователя */
.user-context-menu {
    position: fixed;
    z-index: 999;
    min-width: 140px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 4px 0;
}

.user-context-menu__item {
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
}

.user-context-menu__item:hover {
    background: var(--background);
    color: var(--secondary-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.controls {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-control {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--secondary-bg);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-control:hover {
    background: var(--background);
    border-color: var(--text-secondary);
    transform: scale(1.15);
}

.btn-control.active {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-control.muted {
    background: var(--danger-color);
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}

.btn-danger {
    background: var(--danger-color) !important;
}

.btn-danger:hover {
    background: #C03639 !important;
}

.radio-mode {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.radio-mode__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.radio-mode__toggle input {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.radio-mode__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-mini {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--secondary-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mini:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-mini:not(:disabled):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-mini.waiting {
    animation: pulse 1s infinite;
}

.radio-key-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.radio-mode__hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.radio-mode.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.15);
}

.radio-mode.talking .radio-key-display {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

/* Чат */
.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background);
    overflow: hidden;
}

.camera-container {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.04) 0%, rgba(0, 0, 0, 0) 100%);
    max-height: 280px;
    overflow-y: auto;
}

.camera-container.active {
    display: flex;
}

.camera-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
    gap: 12px;
}

.camera-card {
    position: relative;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
}

.camera-card span {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.camera-video {
    width: 100%;
    display: block;
    background: #000;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.screen-share-container {
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 14px 18px 8px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    max-height: 320px;
    overflow-y: auto;
}

.screen-share-container.active {
    display: flex;
}

.screen-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.screen-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
    gap: 12px;
}

.screen-share-card {
    position: relative;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screen-share-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.screen-share-card.expanded {
    grid-column: 1 / -1;
}

.screen-share-card.expanded .screen-share-video {
    max-height: 70vh;
}

.screen-share-card span {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.screen-share-expand {
    position: absolute;
    right: 50px;
    top: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.screen-share-expand:hover {
    background: rgba(0, 0, 0, 0.8);
}

.screen-share-fullscreen {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.screen-share-fullscreen:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Полноэкранный режим для мобильных (CSS fallback) */
.screen-share-card.fullscreen-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    margin: 0;
    max-width: none;
    max-height: none;
}

.screen-share-card.fullscreen-mobile .screen-share-video {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: contain;
}

.screen-share-card.fullscreen-mobile .screen-share-expand,
.screen-share-card.fullscreen-mobile .screen-share-fullscreen {
    z-index: 10000;
}

/* Стили для полноэкранного видео */
video:fullscreen,
video:-webkit-full-screen,
video:-moz-full-screen,
video:-ms-fullscreen {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.screen-share-video {
    width: 100%;
    display: block;
    background: #000;
    object-fit: contain;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    /* Оптимизация для мобильных устройств */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Улучшенная производительность на мобильных */
    will-change: transform;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.message-username {
    font-weight: bold;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.message-text {
    color: var(--text-primary);
    word-wrap: break-word;
}

.system-message {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    padding: 5px;
}

.chat-input {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 0 14px;
}

.chat-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.chat-input .chat-attach {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-input .chat-attach:hover {
    background: var(--background);
    border-color: var(--text-secondary);
}

.chat-input .chat-attach:active {
    transform: scale(0.95);
}

.chat-input .btn {
    min-width: 120px;
}

.message-text a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-word;
}

.message-text a:hover {
    text-decoration: underline;
}

.message-image {
    margin-top: 10px;
    border-radius: 12px;
    max-width: min(320px, 100%);
    max-height: 260px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    background: #000;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary-bg);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease;
    z-index: 1000;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid var(--secondary-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .container {
        padding: 25px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }
    
    input[type="text"] {
        padding: 12px 14px;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .channel-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .chat-section {
        min-height: 60vh;
    }

    .camera-container {
        max-height: 32vh;
    }

    .camera-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .camera-video {
        aspect-ratio: 4 / 3;
    }

    .screen-share-container {
        max-height: 40vh;
    }

    .screen-share-video {
        max-height: 200px;
    }

    .screen-share-grid {
        grid-template-columns: 1fr;
    }
    
    .stream-indicator {
        font-size: 1rem;
        padding: 3px 5px;
    }
}

/* Маленькие телефоны */
@media (max-width: 400px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .button-group {
        gap: 8px;
    }
    
    input[type="text"] {
        padding: 11px 12px;
    }
    
    .btn {
        padding: 11px 18px;
        font-size: 0.88rem;
        min-height: 44px;
    }

    .screen-share-header {
        font-size: 0.8rem;
    }

    .screen-share-container {
        max-height: 35vh;
    }

    .screen-share-video {
        aspect-ratio: 16 / 10;
        max-height: 180px;
    }

    .camera-container {
        max-height: 30vh;
    }

    .camera-video {
        aspect-ratio: 4 / 3;
    }
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tertiary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--background);
}

/* Капча */
.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.captcha-modal.hidden {
    display: none;
}

.captcha-container {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(0, 217, 255, 0.2);
}

.captcha-header {
    text-align: center;
    margin-bottom: 25px;
}

.captcha-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.captcha-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.captcha-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.captcha-challenge {
    text-align: center;
}

.captcha-text-display {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 8px;
    padding: 20px;
    background: var(--tertiary-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    user-select: none;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 255, 136, 0.1));
}

.captcha-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

#captcha-answer-input {
    width: 100%;
    padding: 14px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

#captcha-answer-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.captcha-slider-container {
    margin-top: 20px;
}

.captcha-slider-wrapper {
    position: relative;
    margin-top: 10px;
}

.captcha-slider-track {
    width: 100%;
    height: 50px;
    background: var(--tertiary-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.captcha-slider-thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 46px;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    transition: left 0.1s ease-out, background 0.3s;
    user-select: none;
}

.captcha-slider-thumb:active {
    cursor: grabbing;
}

.captcha-slider-thumb.completed {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.captcha-slider-icon {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.captcha-slider-label {
    text-align: center;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.captcha-slider-label.completed {
    color: var(--secondary-color);
}

.captcha-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#captcha-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
}

#captcha-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.captcha-attempts {
    text-align: center;
    color: var(--danger-color);
    font-size: 0.85rem;
    padding: 8px;
    background: rgba(255, 51, 102, 0.1);
    border-radius: 8px;
}

