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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 106, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 158, 255, 0.15) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Анимация фона */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 100, 50, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(50, 150, 255, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Экран входа */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: rgba(20, 20, 40, 0.9);
    border: 2px solid rgba(50, 150, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(50, 150, 255, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-container h1 {
    font-size: 2.4em;
    color: #7ba8ff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.login-container h2 {
    font-size: 1.2em;
    color: #aaa;
    margin-bottom: 30px;
    font-weight: 300;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 15px;
    background: rgba(10, 10, 20, 0.8);
    border: 2px solid rgba(50, 150, 255, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1em;
    margin-bottom: 20px;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.login-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4a9eff 0%, #ff6a4a 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.5);
}

.error-message {
    color: #ff6a4a;
    margin-top: 15px;
    font-size: 0.9em;
    min-height: 20px;
}


.clubs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.club-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: rgba(10, 10, 20, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 10px;
    transition: all 0.3s;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    gap: 20px;
}

.club-item:hover {
    border-color: rgba(74, 158, 255, 0.7);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.3);
}

.club-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.club-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #4a9eff;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

.club-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.club-id {
    font-size: 0.9em;
    color: #aaa;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.club-date {
    font-size: 0.85em;
    color: #666;
}

.club-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

.club-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
    flex-wrap: wrap;
}

.club-actions button {
    white-space: nowrap;
    min-width: auto;
    padding: 10px 18px;
    font-size: 0.9em;
    flex: 0 0 auto;
}

.hidden {
    display: none !important;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 1001;
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid rgba(74, 158, 255, 0.5);
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(74, 158, 255, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid rgba(74, 158, 255, 0.3);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #7ba8ff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(255, 106, 74, 0.2);
    color: #ff6a4a;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.modal-actions button {
    min-width: 120px;
}

.modal-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Модальное окно завершения розыгрыша */
.giveaway-finished-modal-content {
    max-width: 500px;
    text-align: center;
}

.winner-info-modal {
    padding: 20px 0;
    margin-bottom: 20px;
}

.winner-label-modal {
    font-size: 1.2em;
    color: #aaa;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.winner-name-modal {
    font-size: 2em;
    font-weight: bold;
    color: #4caf50;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skin-info-modal {
    margin-top: 30px;
    padding: 20px;
    background: rgba(10, 10, 20, 0.6);
    border-radius: 15px;
    border: 3px solid rgba(50, 150, 255, 0.3);
}

.skin-label-modal {
    font-size: 1em;
    color: #aaa;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-skin-image {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.modal-skin-image img {
    max-width: 250px;
    max-height: 250px;
    border-radius: 10px;
}

.modal-skin-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #4a9eff;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-skin-price {
    font-size: 1.3em;
    color: #ff6a4a;
    font-weight: bold;
    margin-top: 10px;
}

/* Система уведомлений */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid rgba(74, 158, 255, 0.5);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: notificationSlideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 300px;
}

.notification.success {
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.notification.error {
    border-color: rgba(255, 106, 74, 0.5);
    box-shadow: 0 0 20px rgba(255, 106, 74, 0.3);
}

.notification.warning {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

.notification.info {
    border-color: rgba(74, 158, 255, 0.5);
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.notification-message {
    flex: 1;
    color: #fff;
    font-size: 0.95em;
    line-height: 1.4;
}

.notification-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 106, 74, 0.2);
    color: #ff6a4a;
    transform: rotate(90deg);
}

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

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

.notification.hiding {
    animation: notificationSlideOut 0.3s ease-out forwards;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    user-select: none;
    color: #aaa;
    font-size: 0.95em;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4a9eff;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #4a9eff;
    font-weight: bold;
}

.checkbox-label:hover {
    color: #fff;
}

.checkbox-label input[type="checkbox"]:checked ~ input[type="text"],
.checkbox-label input[type="checkbox"]:checked ~ .password-input-wrapper {
    opacity: 1;
}

.checkbox-label input[type="checkbox"]:not(:checked) ~ input[type="text"],
.checkbox-label input[type="checkbox"]:not(:checked) ~ .password-input-wrapper {
    opacity: 0.5;
}

/* Улучшение для модального окна */
.modal-body .form-group {
    margin-bottom: 25px;
}

.modal-body .form-group input[type="text"],
.modal-body .form-group input[type="password"] {
    margin-top: 10px;
    transition: all 0.3s;
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 20, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.modal-body .form-group .password-input-wrapper input[type="password"],
.modal-body .form-group .password-input-wrapper input[type="text"] {
    margin-top: 10px;
    transition: all 0.3s;
    width: 100% !important;
    padding: 12px 45px 12px 15px !important;
    background: rgba(10, 10, 20, 0.9) !important;
    border: 2px solid rgba(74, 158, 255, 0.4) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 1em !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

.modal-body .form-group input[type="text"]:focus,
.modal-body .form-group input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
    background: rgba(10, 10, 20, 1);
}

.modal-body .form-group .password-input-wrapper input[type="password"]:focus,
.modal-body .form-group .password-input-wrapper input[type="text"]:focus {
    outline: none !important;
    border-color: #4a9eff !important;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5) !important;
    background: rgba(10, 10, 20, 1) !important;
}

.modal-body .form-group input[type="text"]:disabled,
.modal-body .form-group .password-input-wrapper input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(10, 10, 20, 0.5);
}

.modal-body .form-group .password-input-wrapper button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Улучшение для списка клубов */
.clubs-list {
    overflow-x: hidden;
}

.club-item {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .club-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .club-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .club-actions button {
        flex: 1;
    }
}

/* Админ-панель */
.admin-panel {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(20, 20, 40, 0.8);
    border: 2px solid rgba(50, 150, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.admin-header h1 {
    font-size: 2em;
    color: #7ba8ff;
    text-transform: uppercase;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.club-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Для супер-админа - другая структура */
.super-admin-panel .club-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Кнопка выхода в хедере супер-админа должна быть справа */
.super-admin-panel .admin-header .club-info {
    flex-direction: row;
    align-items: center;
    margin-left: auto;
}

#club-id-display {
    color: #aaa;
    font-size: 1.1em;
    white-space: nowrap;
    flex-shrink: 0;
}

#logout-btn,
#super-admin-logout-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
    white-space: nowrap;
    flex-shrink: 0;
}

#logout-btn:hover,
#super-admin-logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.5);
}

/* Адаптивность для админ-панели */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-header h1 {
        font-size: 1.5em;
    }
    
    .club-info {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
    
    #club-id-display {
        font-size: 1em;
    }
    
    #logout-btn {
        padding: 10px 20px;
        font-size: 0.85em;
    }
}

.admin-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* Секция ТВ-страницы на всю ширину (3 столбца) */
.tv-section-full-width {
    grid-column: 1 / -1;
}

/* Два столбика для TV + Portable EXE */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tv-grid .admin-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tv-grid .tv-link {
    flex: 1;
}

/* Выровнять кнопки внизу обоих столбиков */
.tv-grid .tv-link > button {
    margin-top: auto;
}

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

/* Переопределение для супер-админа */
.super-admin-panel .admin-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
}

@media (max-width: 1200px) {
    .super-admin-panel .admin-content {
        grid-template-columns: 1fr;
    }
}

.admin-section {
    background: rgba(20, 20, 40, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-section:hover {
    border-color: rgba(74, 158, 255, 0.7);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.4);
    transform: translateY(-2px);
}

.admin-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #7ba8ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid rgba(74, 158, 255, 0.4);
    padding-bottom: 10px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 20, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Кнопки внутри form-group на всю ширину */
.form-group button {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Исключение для кнопок в timer-modify-buttons */
.timer-modify-buttons button {
    margin: 0;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
    background: rgba(10, 10, 20, 1);
}

.form-group input:disabled,
.form-group input[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(10, 10, 20, 0.5);
    border-color: rgba(74, 158, 255, 0.2);
}

.form-group input:disabled:focus {
    border-color: rgba(74, 158, 255, 0.2);
    box-shadow: none;
}

/* Поле ввода пароля с иконкой глаза */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"] {
    width: 100% !important;
    padding: 12px 45px 12px 15px !important;
    background: rgba(10, 10, 20, 0.9) !important;
    border: 2px solid rgba(74, 158, 255, 0.4) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 1em !important;
    transition: all 0.3s !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    margin: 0 !important;
}

.password-input-wrapper input[type="password"]:focus,
.password-input-wrapper input[type="text"]:focus {
    outline: none !important;
    border-color: #4a9eff !important;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5) !important;
    background: rgba(10, 10, 20, 1) !important;
}

.password-input-wrapper input[type="password"]:disabled,
.password-input-wrapper input[type="text"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: rgba(10, 10, 20, 0.5) !important;
    border-color: rgba(74, 158, 255, 0.2) !important;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    transition: all 0.3s;
    z-index: 10;
    pointer-events: auto;
}

/* Explicit styles for toggle password button to override any inline styles */
#toggle-password-btn {
    width: 30px;
    top: 50%;
    left: auto;
}

/* Specific styles for edit password toggle button */
#toggle-edit-password-btn {
    justify-content: flex-end;
    align-items: flex-end;
    width: 30px;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: -3px;
    margin-bottom: -3px;
}

.password-toggle-btn:hover {
    color: #4a9eff;
    transform: translateY(-50%) scale(1.1);
}

.password-toggle-btn:focus {
    outline: none;
}

.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.image-preview {
    margin-top: 15px;
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(50, 150, 255, 0.3);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопки */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #4a9eff 0%, #3a8eef 100%);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.5);
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-success:disabled,
.btn-danger:disabled,
.btn-warning:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover,
.btn-secondary:disabled:hover,
.btn-success:disabled:hover,
.btn-danger:disabled:hover,
.btn-warning:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(100, 100, 120, 0.5);
    color: #fff;
    border: 2px solid rgba(100, 100, 120, 0.8);
}

.btn-secondary:hover {
    background: rgba(100, 100, 120, 0.8);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.5);
}

/* Управление розыгрышем */
.giveaway-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Вкладки управления таймером */
.timer-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.timer-mode-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    border: 2px solid rgba(74, 158, 255, 0.4);
    background: rgba(10, 10, 20, 0.8);
    color: #aaa;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}

.timer-mode-tab.active {
    background: linear-gradient(135deg, #4a9eff 0%, #ff6a4a 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.timer-mode-panel {
    margin-top: 5px;
}

.timer-presets {
    margin-top: 10px;
}

.timer-duration-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.timer-duration-row input[type="number"],
.timer-duration-row .timer-preset-select {
    flex: 1 1 0;
    margin-bottom: 0;
}

.timer-duration-row .timer-preset-select {
    width: auto;
}

.timer-preset-select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 20, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#set-timer-btn {
    margin-top: 8px;
}

.timer-preset-select:focus {
    border-color: #4a9eff;
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.5);
}

.fixed-timer-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.fixed-timer-row input[type="date"],
.fixed-timer-row input[type="time"] {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 12px 15px;
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 8px;
    color: #fff;
    caret-color: #fff;
}

.fixed-timer-row input[type="date"]::placeholder,
.fixed-timer-row input[type="time"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.fixed-timer-row input[type="date"]::-webkit-calendar-picker-indicator,
.fixed-timer-row input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
}

.fixed-timer-row input[type="date"]:focus::-webkit-calendar-picker-indicator,
.fixed-timer-row input[type="time"]:focus::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.fixed-timer-row input[type="date"],
.fixed-timer-row input[type="time"] {
    font-weight: 500;
    letter-spacing: 0.5px;
    background-color: rgba(10, 10, 20, 0.9);
}

.fixed-timer-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fixed-timer-presets .preset-label {
    font-size: 0.85em;
    color: #aaa;
    margin-right: 4px;
}

.timer-status {
    padding: 12px 15px;
    background: rgba(10, 10, 20, 0.85);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9em;
}

.timer-status-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.timer-status-label {
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8em;
}

.timer-status-value {
    color: #fff;
    text-align: right;
}

.timer-display {
    padding: 15px;
    background: rgba(10, 10, 20, 0.8);
    border: 2px solid rgba(74, 158, 255, 0.5);
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #4a9eff;
}

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

.control-buttons button {
    flex: 1;
    min-width: 150px;
    font-size: 1em;
    padding: 12px 20px;
}

.control-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.timer-modify-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.timer-modify-buttons button {
    flex: 1;
}

.draw-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 2px solid rgba(74, 158, 255, 0.3);
}

.draw-controls button {
    width: 100%;
}

.draw-controls-hint {
    font-size: 0.8em;
    color: #ffb3a4;
    margin: 0;
    line-height: 1.4;
}

/* Участники */
.participants-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.participants-hint {
    color: #aaa;
    font-size: 0.85em;
    margin-bottom: 12px;
    line-height: 1.4;
    font-style: italic;
}

.participants-list {
    max-height: 800px;
    overflow-y: auto;
    margin-top: 15px;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(10, 10, 20, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 8px;
    transition: all 0.3s;
}

.participant-item:hover {
    border-color: rgba(74, 158, 255, 0.4);
    transform: none;
    box-shadow: none;
    background: rgba(10, 10, 20, 0.9);
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.participant-number {
    color: #4a9eff;
    font-weight: bold;
    min-width: 30px;
}

.participant-nickname {
    color: #fff;
}

.delete-participant-btn {
    padding: 6px 12px;
    background: rgba(255, 106, 74, 0.2);
    border: 2px solid #ff6a4a;
    border-radius: 6px;
    color: #ff6a4a;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.delete-participant-btn:hover {
    background: rgba(255, 106, 74, 0.4);
}


.winner-display {
    margin-top: 20px;
    padding: 20px;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4caf50;
    border-radius: 10px;
    text-align: center;
}

.winner-name {
    font-size: 2em;
    color: #4caf50;
    font-weight: bold;
    margin-top: 10px;
}

/* ТВ-ссылка */
.tv-link {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tv-help {
    color: #c8c8c8;
    line-height: 1.5;
}

.tv-note {
    color: #9a9a9a;
    font-size: 0.9em;
    line-height: 1.4;
}

.tv-note code {
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid rgba(74, 158, 255, 0.25);
    padding: 2px 6px;
    border-radius: 6px;
    color: #cfe3ff;
}

.steps {
    background: rgba(10, 10, 20, 0.55);
    border: 2px solid rgba(74, 158, 255, 0.22);
    border-radius: 12px;
    padding: 14px 16px;
}

.steps-title {
    color: #7ba8ff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.steps-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #d7d7d7;
    line-height: 1.5;
}

.steps-list b {
    color: #ffffff;
}

.tv-link input {
    padding: 12px;
    background: rgba(10, 10, 20, 0.8);
    border: 2px solid rgba(50, 150, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9em;
    width: 100%;
    box-sizing: border-box;
}

/* Скроллбар */
.participants-list::-webkit-scrollbar {
    width: 8px;
}

.participants-list::-webkit-scrollbar-track {
    background: rgba(10, 10, 20, 0.5);
    border-radius: 4px;
}

.participants-list::-webkit-scrollbar-thumb {
    background: rgba(50, 150, 255, 0.5);
    border-radius: 4px;
}

.participants-list::-webkit-scrollbar-thumb:hover {
    background: rgba(50, 150, 255, 0.8);
}
