:root {
    --apple-bg: #000000;
    --apple-surface: #1c1c1e;
    --apple-surface-light: #2c2c2e;
    --apple-border: rgba(255, 255, 255, 0.1);
    --apple-text: #f5f5f7;
    --apple-text-secondary: rgba(255, 255, 255, 0.7);
    --apple-text-tertiary: rgba(255, 255, 255, 0.5);
    --apple-blue: #ff3b3b;
    --apple-blue-dark: #ff6b6b;
    --apple-green: #30d158;
    --apple-red: #ff453a;
    --apple-orange: #ff9f0a;
    --apple-purple: #ff6b6b;
    --apple-gold: #ffd60a;
    
    --border-radius: 8px;
    --border-radius-lg: 8px;
    --border-radius-xl: 8px;
    --border-radius-sm: 4px;
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    --transition: all 0.15s ease;
    --transition-fast: all 0.1s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: #000000;
    color: var(--apple-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Static Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: -1;
}

/* Hide garland for Apple style */
.garland { display: none; }

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

.app-header {
    margin-bottom: 16px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.header-gradient {
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-lg);
    padding: 14px 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--apple-text);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-link:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-link i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

.header-link-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-link-icon svg {
    width: 22px;
    height: 22px;
}

.header-link-icon.telegram {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: rgb(59, 130, 246);
}

.header-link-icon.music {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(219, 39, 119, 0.3));
    border: 1px solid rgba(236, 72, 153, 0.4);
    color: rgb(236, 72, 153);
}

.header-link-icon.twitch {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.3), rgba(126, 58, 242, 0.3));
    border: 1px solid rgba(145, 70, 255, 0.4);
    color: rgb(145, 70, 255);
}

.header-link-icon.twitch i {
    font-size: 18px;
}

.header-link-icon.admin {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: rgb(239, 68, 68);
}

.header-link-icon.admin i {
    font-size: 18px;
}

.header-link-icon {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.3), rgba(255, 107, 0, 0.3));
    border: 1px solid rgba(255, 159, 10, 0.4);
    color: rgb(255, 159, 10);
}

.header-link-icon i {
    font-size: 18px;
}

.header-link-icon.support {
    background: linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.3),
        rgba(255, 127, 0, 0.3),
        rgba(255, 255, 0, 0.3),
        rgba(0, 255, 0, 0.3),
        rgba(0, 0, 255, 0.3),
        rgba(75, 0, 130, 0.3),
        rgba(148, 0, 211, 0.3),
        rgba(255, 0, 0, 0.3)
    );
    background-size: 200% 100%;
    border: 1px solid rgba(255, 0, 255, 0.4);
    animation: rainbow-border 3s linear infinite;
}

.header-link-icon.support i {
    font-size: 18px;
    background: linear-gradient(
        90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #9400d3,
        #ff0000
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-text 3s linear infinite;
}

.header-link-support:hover .header-link-icon.support {
    animation: rainbow-border 1.5s linear infinite;
}

.header-link-support:hover .header-link-icon.support i {
    animation: rainbow-text 1.5s linear infinite, heartbeat 1s ease-in-out infinite;
}

@keyframes rainbow-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes rainbow-text {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.header-link .fa-telegram {
    background: rgba(0, 136, 204, 0.2);
    color: #0088cc;
}

.header-link .fa-twitch {
    color: inherit;
}

.header-link:hover i,
.header-link:hover .header-link-icon {
    transform: scale(1.05);
}

.header-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-link-label {
    font-size: 0.65rem;
    color: var(--apple-text-tertiary);
    font-weight: 500;
}

.header-link-name {
    font-size: 0.8rem;
    color: var(--apple-text);
    font-weight: 600;
}

.tagline {
    color: var(--apple-text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.creator-text {
    color: var(--apple-text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
}

.app-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
}

.glass-panel {
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    height: 100%;
    transition: border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid transparent;
    flex-shrink: 0;
    position: relative;
}

.panel-header i {
    color: var(--apple-blue);
    font-size: 1rem;
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    flex: 1;
}

.info-link {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--apple-blue);
    cursor: pointer;
    transition: color 0.2s ease;
    margin-left: auto;
}

.info-link:hover {
    color: var(--apple-blue-dark);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 12px;
}

#botSettingsSection {
    margin-bottom: 0;
}

#botSettingsSection + .button-group {
    margin-top: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--apple-text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
}

.form-group label i {
    width: 16px;
    color: var(--apple-blue);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--apple-text-tertiary);
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    color: var(--apple-text);
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.1s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--apple-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
}

.input-with-icon input::placeholder {
    color: var(--apple-text-tertiary);
}

/* Channel Suggestions */
.channel-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.suggestion-item.selected {
    background: rgba(255, 59, 59, 0.15);
    border-left: 3px solid var(--apple-blue);
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--apple-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-game {
    font-size: 0.75rem;
    color: var(--apple-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-live {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    align-items: center; /* Центрируем кнопки по вертикали в сером блоке */
    min-height: 44px; /* Минимальная высота серого блока */
}

.mode-btn,
.mode-btn.active,
.mode-btn:hover,
.mode-btn:disabled {
    flex: 1;
    min-width: 0;
    height: 36px !important; /* Принудительно одинаковая высота */
    padding: 0 10px !important; /* Принудительно одинаковый padding */
    margin: 0 !important; /* Принудительно убираем отступы */
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    display: flex !important;
    align-items: center !important; /* Принудительно центрируем */
    justify-content: center !important; /* Принудительно центрируем */
    gap: 5px;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box !important;
    vertical-align: baseline !important; /* Выравниваем по базовой линии */
}

/* Только цвета для разных состояний */
.mode-btn {
    background: transparent;
    color: var(--apple-text-secondary);
}

.mode-btn:hover {
    color: var(--apple-text);
    background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
}

.mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mode-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--apple-text-secondary);
}

.mode-btn.active:disabled:hover {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
}

.mode-btn i { 
    font-size: 11px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#keywordGroup.hidden { display: none; }

/* Bot Info */
.bot-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bot-info-text {
    font-size: 0.75rem;
    color: #ff453a;
    margin: 0;
    margin-top: 10px;
    margin-bottom: -4px;
    line-height: 1.4;
    font-weight: 500;
}

.btn-bot {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    color: var(--apple-text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-bot:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--apple-blue);
}

.btn-bot.active {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(48, 209, 88, 0.4);
    color: #30d158;
}

.btn-bot.active:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border-color: rgba(48, 209, 88, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-bot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-bot:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--apple-border);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
}

button:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(48, 209, 88, 0.4);
    color: #30d158;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.35), rgba(56, 142, 60, 0.35));
    border-color: rgba(48, 209, 88, 0.5);
    box-shadow: 0 4px 20px rgba(48, 209, 88, 0.2);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--apple-text);
    border: 1px solid var(--apple-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(48, 209, 88, 0.4);
    color: #30d158;
}

.btn-success:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.35), rgba(56, 142, 60, 0.35));
    border-color: rgba(48, 209, 88, 0.5);
    box-shadow: 0 4px 20px rgba(48, 209, 88, 0.2);
}

.btn-instant {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.3), rgba(255, 107, 0, 0.3));
    border: 1px solid rgba(255, 159, 10, 0.4);
    color: #ff9f0a;
    margin-top: 0;
}

.btn-instant:hover {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.35), rgba(255, 107, 0, 0.35));
    border-color: rgba(255, 159, 10, 0.5);
    box-shadow: 0 4px 20px rgba(255, 159, 10, 0.2);
}

/* Контейнер для кнопок розыгрыша */
.raffle-buttons-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.raffle-buttons-row button {
    flex: 1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 10px 8px !important;
    font-size: 12px !important;
    gap: 5px !important;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
}

.raffle-buttons-row button i {
    font-size: 12px !important;
}

.raffle-buttons-row button span {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1;
}

.btn-warning {
    background: var(--apple-orange);
    color: white;
    margin-top: 15px;
}

.btn-warning:hover {
    filter: brightness(1.1);
}

.btn-success:disabled,
.btn-warning:disabled,
.btn-instant:disabled,
.btn-cards:disabled {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--apple-text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

.btn-success:disabled:hover,
.btn-warning:disabled:hover,
.btn-instant:disabled:hover,
.btn-cards:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--apple-border);
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--apple-text-secondary);
    font-weight: 500;
}

.status-message {
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-message.connected {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: var(--apple-green);
}

.status-message.disconnected {
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: var(--apple-red);
}

.status-message.info {
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.3);
    color: var(--apple-blue);
}

/* Participants List */
.participants-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    max-height: 100%;
    padding-right: 8px;
}

.participants-list::-webkit-scrollbar {
    width: 8px;
}

.participants-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.participants-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.participants-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--apple-text-tertiary);
    text-align: center;
    padding: 20px;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--apple-border);
}

.user-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--apple-text);
}

.user-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.user-status.moderator {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
    border: 1px solid rgba(48, 209, 88, 0.3);
}

.user-status.vip {
    background: rgba(255, 105, 180, 0.15);
    color: #ff69b4;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.user-status.subscriber {
    background: rgba(10, 132, 255, 0.15);
    color: #0a84ff;
    border: 1px solid rgba(10, 132, 255, 0.3);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 4px;
    color: var(--apple-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.user-profile-btn:hover {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
    border-color: rgba(255, 59, 59, 0.5);
    transform: translateY(-1px);
}

.user-profile-btn i {
    font-size: 0.7rem;
}

.user-exclude-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 4px;
    color: var(--apple-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.user-exclude-btn:hover {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
    border-color: rgba(255, 59, 59, 0.5);
    transform: translateY(-1px);
}

.user-exclude-btn i {
    font-size: 0.7rem;
}

/* Twitch Chat Panel */
.chat-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-panel-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.twitch-chat-container-full {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    min-height: 0;
}

.twitch-chat-container-full iframe {
    border-radius: 8px;
}

.twitch-chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--apple-text-tertiary);
    gap: 12px;
}

.twitch-chat-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Control & Participants Sections */
.control-section .glass-panel,
.participants-section .glass-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Кнопки управления розыгрышем во всю ширину */
.control-section .glass-panel button {
    width: 100%;
    margin-bottom: 8px;
}

.control-section .glass-panel button:last-child {
    margin-bottom: 0;
}

.participants-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.participants-section .glass-panel {
    min-height: 0;
    max-height: 100%;
}

/* Footer */
.app-footer {
    padding: 16px 0;
    border-top: 1px solid transparent;
    flex-shrink: 0;
    background: transparent;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--apple-text);
    transition: all 0.2s ease;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--apple-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-link i {
    font-size: 1.5rem;
}

.footer-link .fa-telegram {
    color: #0088cc;
}

.footer-link .fa-twitch {
    color: #9146ff;
}

.footer-link:hover i {
    transform: scale(1.1);
}

.footer-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-link-label {
    font-size: 0.7rem;
    color: var(--apple-text-tertiary);
    font-weight: 500;
}

.footer-link-name {
    font-size: 0.85rem;
    color: var(--apple-text);
    font-weight: 600;
}

.footer-divider {
    width: 1px;
    height: 30px;
    background: var(--apple-border);
}

.footer-copyright {
    color: var(--apple-text-tertiary);
    font-size: 0.7rem;
    font-weight: 400;
}

/* Winner Message */
.winner-message {
    padding: 14px;
    background: rgba(255, 214, 10, 0.05);
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 8px;
    border-left: 3px solid var(--apple-gold);
    width: 100%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.username {
    font-weight: 600;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.timestamp {
    font-size: 0.75rem;
    color: var(--apple-text-tertiary);
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--apple-text);
    word-break: break-word;
}

/* Modals */
.roulette-modal,
.instant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.winner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Roulette Layout */
.roulette-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.roulette-wheel-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.roulette-controls-section {
    width: 320px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 28px;
    flex-shrink: 0;
}

.instant-container {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.roulette-header,
.instant-header {
    text-align: center;
    margin-bottom: 24px;
}

.roulette-header h3,
.instant-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.roulette-header p,
.instant-header p {
    color: var(--apple-text-secondary);
    font-size: 0.9rem;
}

/* Collection Status Toggle */
.collection-status-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
}

.collection-status-btn {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--apple-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.collection-status-btn:hover {
    color: var(--apple-text);
}

.collection-status-btn.active {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
}

.collection-help-icon {
    font-size: 14px;
    cursor: help;
    opacity: 0.7;
}

.collection-help-icon:hover {
    opacity: 1;
}

/* Wheel Optimization Toggle */
.wheel-optimization-toggle {
    width: 100%;
    max-width: 500px;
}

.optimization-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.2), rgba(255, 159, 10, 0.2));
    border: 1px solid rgba(255, 214, 10, 0.4);
    border-radius: 8px;
    color: #ffd60a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.optimization-btn:hover {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.3), rgba(255, 159, 10, 0.3));
    border-color: #ffd60a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 214, 10, 0.3);
}

.optimization-btn:active {
    transform: translateY(0);
}

.optimization-btn.active {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border-color: rgba(48, 209, 88, 0.5);
    color: #30d158;
}

.optimization-btn.active:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.4), rgba(56, 142, 60, 0.4));
    border-color: #30d158;
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

/* Roulette Mode Toggle */
.roulette-mode-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.roulette-mode-btn {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--apple-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.roulette-mode-btn:hover {
    color: var(--apple-text);
}

.roulette-mode-btn.active {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    color: white;
}

.elimination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.elimination-info #remainingCount {
    color: var(--apple-orange);
    font-weight: 600;
}

.auto-spin-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--apple-text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.auto-spin-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--apple-blue);
    cursor: pointer;
}

/* Wheel Styles */
.wheel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-pointer {
    position: relative;
    z-index: 10;
    color: var(--apple-gold);
    font-size: 3rem;
    filter: drop-shadow(0 0 8px rgba(255, 214, 10, 0.5));
    margin-bottom: -35px;
}

.wheel-container {
    position: relative;
    width: 520px;
    height: 520px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 
        0 0 0 6px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(10, 132, 255, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--apple-gold), #ffb800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 214, 10, 0.5);
    z-index: 5;
}

.roulette-controls,
.instant-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.spin-duration-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.spin-duration-selector label {
    color: var(--apple-text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spin-duration-selector input {
    width: 50px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--apple-border);
    border-radius: 4px;
    color: var(--apple-text);
    font-size: 13px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.spin-duration-selector input::-webkit-outer-spin-button,
.spin-duration-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.spin-duration-selector input:focus {
    outline: none;
    border-color: var(--apple-blue);
}

.duration-unit {
    color: var(--apple-text-tertiary);
    font-size: 13px;
}

.spin-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spin-buttons button {
    width: 100%;
}

/* Winner Modal */
.winner-modal-container {
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.95), rgba(44, 44, 46, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.winner-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--apple-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
    z-index: 10;
}

.winner-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--apple-text);
}

.winner-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid transparent;
    flex-shrink: 0;
    position: relative;
}

.winner-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apple-gold);
    flex: 1;
}

.winner-modal-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.winner-modal-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.winner-modal-bottom {
    flex: 1;
    min-height: 0;
}

.winner-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.winner-avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--apple-gold);
    box-shadow: 0 8px 24px rgba(255, 214, 10, 0.3);
    margin-bottom: 8px;
}

.winner-follow-date {
    font-size: 12px;
    color: var(--apple-text-secondary);
    text-align: center;
}

.winner-modal-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--apple-gold);
    margin-bottom: 16px;
    text-align: center;
}

.winner-info-cards {
    display: flex;
    gap: 12px;
    width: 100%;
}

.winner-modal-time-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}

.winner-modal-time-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.winner-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.winner-card-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.winner-wait-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffd60a;
    white-space: nowrap;
}

.winner-wait-time.counting {
    color: #ffd60a;
}

.winner-modal-status {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease;
}

.winner-modal-status:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.winner-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.winner-status-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.winner-status-text.moderator {
    color: #30d158;
}

.winner-status-text.vip {
    color: #ff69b4;
}

.winner-status-text.subscriber {
    color: #0a84ff;
}

.winner-status-text.none {
    color: var(--apple-text-tertiary);
}

/* Winner Chat */
.winner-modal-chat {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.winner-modal-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--apple-border);
    font-weight: 500;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.winner-modal-chat-header i {
    color: var(--apple-blue);
}

.winner-modal-chat-messages {
    overflow-y: auto;
    padding: 12px;
    height: 240px;
    max-height: 240px;
}

.winner-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--apple-text-tertiary);
    text-align: center;
}

.winner-chat-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.winner-chat-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.winner-chat-message:hover {
    background: rgba(255, 255, 255, 0.08);
}

.winner-chat-message:last-child {
    margin-bottom: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.copy-message-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    color: var(--apple-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
}

.copy-message-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--apple-blue);
    border-color: var(--apple-blue);
}

.copy-message-btn:active {
    transform: scale(0.95);
}

.copy-message-btn.copied {
    background: rgba(48, 209, 88, 0.2);
    color: var(--apple-green);
    border-color: var(--apple-green);
}

.copy-message-btn i {
    font-size: 12px;
}

/* Winner Modal Actions */
.winner-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.winner-action-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.winner-keep-btn {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(48, 209, 88, 0.5);
    color: #30d158;
}

.winner-keep-btn:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.4), rgba(56, 142, 60, 0.4));
    border-color: #30d158;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

.winner-kick-btn {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.3), rgba(200, 30, 30, 0.3));
    border: 1px solid rgba(255, 59, 48, 0.5);
    color: #ff3b30;
}

.winner-kick-btn:hover {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.4), rgba(200, 30, 30, 0.4));
    border-color: #ff3b30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.winner-action-btn:active {
    transform: translateY(0);
}

/* Elimination Toast */
.elimination-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.98), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 14px 20px;
    z-index: 2000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    max-width: 400px;
    min-width: 300px;
}

.elimination-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.elimination-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.elimination-toast-content i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.2), rgba(56, 142, 60, 0.2));
    border: 1px solid rgba(48, 209, 88, 0.3);
    border-radius: 50%;
    font-size: 1rem;
    color: #30d158;
    flex-shrink: 0;
}

.elimination-toast-content.kicked i {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.2), rgba(255, 45, 85, 0.2));
    border-color: rgba(255, 69, 58, 0.3);
    color: var(--apple-red);
}

.elimination-toast-content.eliminated i {
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.2), rgba(255, 107, 0, 0.2));
    border-color: rgba(255, 159, 10, 0.3);
    color: var(--apple-orange);
}

#eliminationToastName {
    color: var(--apple-text);
    font-weight: 700;
}

.elimination-toast-text {
    color: var(--apple-text-secondary);
    font-weight: 500;
}

/* Simple Roulette Modal */
#simpleRouletteModal > .modal-content {
    background: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#simpleRouletteModal .winner-modal-container {
    background: linear-gradient(135deg, rgba(28, 28, 30, 0.95), rgba(44, 44, 46, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    max-width: 700px;
}

.simple-roulette-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.simple-roulette-stats {
    display: none; /* Скрыто по требованию */
    gap: 12px;
    width: 100%;
}

.simple-stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: border-color 0.15s ease;
}

.simple-stat-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.simple-stat-icon {
    font-size: 0.85rem;
    color: var(--apple-blue);
    margin-right: 6px;
}

.simple-stat-info {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.simple-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.simple-stat-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.simple-participants-counter {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 16px 0 16px;
    margin-bottom: -3px;
}

.simple-counter-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.simple-counter-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--apple-gold);
    text-align: center;
}

/* Odometer стили для счетчика */
.simple-counter-number.odometer {
    display: inline-block;
}

.simple-counter-number.odometer .odometer-inside {
    display: inline-block;
}

.simple-counter-number.odometer .odometer-digit {
    display: inline-block;
}

.simple-counter-number.odometer .odometer-value {
    color: var(--apple-gold);
}

.simple-participant-added {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(48, 209, 88, 0.4);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    justify-content: center;
    margin-top: -8px;
}

.simple-participant-added > span {
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.simple-participant-added #simpleLastParticipant {
    color: #30d158;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.simple-select-winner-btn {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.3), rgba(255, 159, 10, 0.3));
    border: 1px solid rgba(255, 214, 10, 0.4);
    border-radius: 8px;
    color: var(--apple-gold);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.simple-select-winner-btn:hover {
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.4), rgba(255, 159, 10, 0.4));
    border-color: var(--apple-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 214, 10, 0.3);
}

.simple-select-winner-btn i {
    font-size: 0.85rem;
}

/* Info Modal */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
}

.info-modal-container {
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 32px;
    position: relative;
    overflow-y: auto;
}

.info-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--apple-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
    z-index: 10;
}

.info-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--apple-text);
}

.info-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--apple-border);
}

.info-modal-header i {
    font-size: 1.5rem;
    color: var(--apple-blue);
}

.info-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apple-text);
}

.info-modal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    padding: 20px;
}

.info-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item {
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    display: block;
    color: var(--apple-blue);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.info-item p {
    color: var(--apple-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .app-main {
        grid-template-columns: 1fr 1fr;
    }
    .chat-section {
        grid-column: 1 / -1;
        order: 3;
    }
    
    .roulette-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .roulette-controls-section {
        width: 100%;
        max-width: 400px;
    }
    
    .wheel-container {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .app-container { 
        padding: 12px; 
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    .app-main { 
        grid-template-columns: 1fr; 
        gap: 16px;
        overflow: visible;
    }
    .header-content { flex-direction: column; gap: 12px; text-align: center; }
    .logo { justify-content: center; }
    .header-links { flex-direction: column; width: 100%; }
    .header-link { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    .wheel-center {
        width: 40px;
        height: 40px;
    }
    
    .wheel-pointer {
        font-size: 2.5rem;
    }
    
    .roulette-controls-section {
        padding: 20px;
    }
    
    .control-section .glass-panel,
    .chat-panel-full,
    .participants-section .glass-panel {
        height: auto;
        min-height: 350px;
    }
    
    .participants-list {
        height: 250px;
        flex: none;
    }
    
    .twitch-chat-container-full {
        height: 350px;
        flex: none;
    }
    
    .wheel-container {
        width: 280px;
        height: 280px;
    }
    
    .wheel-center {
        width: 35px;
        height: 35px;
    }
    
    .roulette-container,
    .instant-container {
        padding: 20px;
    }
    
    .roulette-header h3,
    .instant-header h3 {
        font-size: 1.4rem;
    }
    
    .spin-duration-selector {
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .roulette-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .spin-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .spin-buttons button {
        width: 100%;
    }
    
    .winner-info-cards {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo-text h1 { font-size: 1.3rem; }
    .glass-panel { padding: 14px; }
    
    .wheel-container {
        width: 240px;
        height: 240px;
    }
    
    .winner-modal-container {
        padding: 20px;
    }
    
    .winner-modal-name {
        font-size: 1.3rem;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Auth Styles */
.btn-auth {
    width: 100%;
    padding: 10px 16px;
    background: var(--apple-surface);
    color: var(--apple-text);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-auth:hover {
    background: var(--apple-surface-light);
    border-color: rgba(145, 70, 255, 0.5);
    transform: translateY(-1px);
}

.btn-auth i {
    color: #9146ff;
    font-size: 18px;
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
}

.user-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--apple-blue);
}

.user-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-label {
    font-size: 12px;
    color: var(--apple-text-secondary);
}

.user-display-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--apple-text);
}

.btn-logout {
    padding: 8px 16px;
    background: rgba(255, 69, 58, 0.1);
    color: var(--apple-red);
    border: 1px solid rgba(255, 69, 58, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(255, 69, 58, 0.2);
    border-color: rgba(255, 69, 58, 0.5);
}

/* IRC Connection Status */
.irc-status {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.15), rgba(56, 142, 60, 0.15));
    border: 1px solid rgba(48, 209, 88, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #30d158;
}

.irc-status i {
    font-size: 16px;
}

.irc-status strong {
    color: #30d158;
    font-weight: 600;
}

/* Restore Session Modal */
.restore-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1300;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.restore-modal-container {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restore-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.2), rgba(255, 107, 0, 0.2));
    border: 2px solid rgba(255, 159, 10, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 159, 10, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 159, 10, 0);
    }
}

.restore-modal-icon i {
    font-size: 2.5rem;
    color: var(--apple-orange);
}

.restore-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.restore-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.restore-modal-header p {
    font-size: 1rem;
    color: var(--apple-text-secondary);
}

.restore-modal-info {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.restore-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--apple-text-secondary);
}

.restore-info-item i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.restore-info-item strong {
    color: var(--apple-text);
    font-weight: 600;
}

.restore-modal-buttons {
    display: flex;
    gap: 12px;
}

.restore-modal-buttons button {
    flex: 1;
}

@media (max-width: 480px) {
    .restore-modal-container {
        padding: 28px 20px;
    }
    
    .restore-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .restore-modal-buttons {
        flex-direction: column;
    }
    
    .restore-modal-buttons button {
        width: 100%;
    }
}

/* Bot Settings Button */
.btn-bot-settings {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    color: var(--apple-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-bot-settings:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-bot-settings i {
    font-size: 1rem;
}

.btn-bot-settings:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-bot-settings:disabled:hover {
    border-color: var(--apple-border);
    transform: none;
    box-shadow: none;
}

/* Bot Settings Modal */
.bot-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1300;
    animation: fadeIn 0.3s ease;
}

.bot-settings-container {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 32px;
    position: relative;
    animation: slideUp 0.4s ease;
}

.bot-settings-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--apple-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
    z-index: 10;
}

.bot-settings-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--apple-text);
}

.bot-settings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--apple-border);
}

.bot-settings-header i {
    font-size: 1.8rem;
    color: var(--apple-blue);
}

.bot-settings-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apple-text);
}

.bot-settings-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.bot-setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.bot-setting-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.bot-setting-info {
    flex: 1;
}

.bot-setting-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bot-setting-title i {
    color: var(--apple-blue);
    font-size: 1.1rem;
}

.bot-setting-title span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--apple-text);
}

.bot-setting-description {
    font-size: 0.9rem;
    color: var(--apple-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--apple-border);
    transition: 0.3s;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #30d158, #38a169);
    border-color: rgba(48, 209, 88, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.bot-settings-warning {
    font-size: 0.85rem;
    color: #ff453a;
    margin: 0;
    padding: 12px;
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.3);
    border-radius: 8px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.bot-settings-save-btn {
    width: 100%;
    padding: 14px 20px;
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(48, 209, 88, 0.4);
    border-radius: 8px;
    color: #30d158;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bot-settings-save-btn:hover {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.4), rgba(56, 142, 60, 0.4));
    border-color: #30d158;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

.bot-settings-save-btn:active {
    transform: translateY(0);
}

.bot-settings-save-btn i {
    font-size: 1rem;
}

/* Confirmation Modal */
.confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1400;
    animation: fadeIn 0.3s ease;
}

.confirmation-container {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 32px;
    position: relative;
    animation: slideUp 0.4s ease;
}

.confirmation-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255, 159, 10, 0.2), rgba(255, 107, 0, 0.2));
    border: 2px solid rgba(255, 159, 10, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--apple-orange);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 28px;
}

.confirmation-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--apple-text);
    margin-bottom: 12px;
}

.confirmation-header p {
    font-size: 1rem;
    color: var(--apple-text-secondary);
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
}

.confirmation-buttons button {
    flex: 1;
}

@media (max-width: 480px) {
    .bot-settings-container {
        padding: 24px 20px;
    }
    
    .bot-setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .toggle-switch {
        align-self: flex-end;
    }
}

/* Simple Winner Modal Styles */
.winner-simple-container {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 40px;
    position: relative;
}

.winner-simple-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.winner-action-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.winner-keep-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.winner-keep-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.winner-kick-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.winner-kick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .winner-simple-container {
        padding: 30px 20px;
    }
    
    .winner-simple-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .winner-action-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

.winner-user-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    margin-bottom: 30px;
}

.winner-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.5);
    flex-shrink: 0;
}

.winner-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.winner-user-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.winner-user-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.winner-reroll-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.winner-reroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.winner-reroll-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .winner-user-card {
        padding: 20px;
        gap: 16px;
    }
    
    .winner-user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .winner-user-name {
        font-size: 1.4rem;
    }
    
    .winner-reroll-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* Winner User Card (��� �������� �����) */
.winner-user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    margin-bottom: 20px;
}

.winner-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.5);
    flex-shrink: 0;
}

.winner-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.winner-user-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.winner-user-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.winner-reroll-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.winner-reroll-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.winner-reroll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.winner-reroll-btn i {
    font-size: 1.1rem;
}

/* Winner Close Button */
.winner-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: rgba(255, 69, 58, 0.2);
    border: 2px solid rgba(255, 69, 58, 0.4);
    border-radius: 50%;
    color: #ff453a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.winner-close-btn:hover {
    background: rgba(255, 69, 58, 0.4);
    border-color: rgba(255, 69, 58, 0.7);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(255, 69, 58, 0.4);
}

/* Winner Header Card (��� �������� �����, �����) */
.winner-header-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px; /* Еще уменьшен padding */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 16px;
    width: 100%;
    min-height: 70px; /* Еще уменьшена высота */
}

.winner-header-avatar {
    width: 64px; /* Увеличен с 48px */
    height: 64px; /* Увеличен с 48px */
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3); /* Увеличена толщина border */
    flex-shrink: 0;
}

.winner-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-header-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.4rem; /* Увеличен размер для лучшей видимости */
    font-weight: 700; /* Увеличен вес шрифта */
    color: #fff;
    flex: 1;
    line-height: 1.3;
}

.winner-name-container {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Увеличен gap */
    flex: 1;
}

.winner-follow-date {
    font-size: 1.05rem; /* Увеличен размер для лучшей видимости */
    color: rgba(255, 255, 255, 0.7); /* Немного светлее для лучшей читаемости */
    line-height: 1.3;
    text-align: left;
    font-weight: 500; /* Добавлен вес шрифта */
}

/* Winner Action Cards (��� ������ ����� ������) */
.winner-action-card {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.winner-keep-card {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.3), rgba(56, 142, 60, 0.3));
    border: 1px solid rgba(48, 209, 88, 0.4);
    color: rgb(48, 209, 88);
}

.winner-keep-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(48, 209, 88, 0.3);
}

.winner-kick-card {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.3), rgba(255, 69, 58, 0.3));
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: rgb(255, 59, 48);
}

.winner-kick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* Winner Reroll Card (��� ������ ����� ������, ������) */
.winner-reroll-wrapper {
    margin-top: 12px;
}

.winner-reroll-card {
    width: 100%;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    color: rgb(245, 158, 11);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.winner-reroll-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .winner-header-card {
        padding: 10px 14px;
     width: 100%;}
    
    .winner-header-avatar {
        width: 40px;
        height: 40px;
    }
    
    .winner-header-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
        font-size: 1.1rem;
    }
}



/* Simple Winner Card Styles */
#simpleWinnerCard {
    width: 100%;
}

#simpleWinnerCard .winner-header-card {
    width: 100%;
    margin-bottom: 16px;
}

#simpleWinnerCard .winner-info-cards {
    width: 100%;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#simpleWinnerCard .winner-modal-chat {
    width: 100%;
    margin-bottom: 16px;
}

#simpleWinnerCard .winner-simple-actions {
    width: 100%;
    display: flex;
    gap: 12px;
}

#simpleWinnerCard .winner-action-card {
    flex: 1;
}


/* Simple Counter Display */
.simple-counter-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.simple-counter-display .simple-counter-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.simple-counter-display .simple-counter-number {
    font-size: 5rem;
    font-weight: 700;
    color: var(--apple-gold);
}


/* Winner Header Divider and Badge */
.winner-header-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 16px;
}

.winner-header-badge {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--apple-gold);
    white-space: nowrap;
}


/* Icons in stat cards */
.simple-stat-info i {
    font-size: 0.85rem;
    color: var(--apple-blue);
    margin-right: 6px;
}

.winner-card-content i,
.winner-status-badges i {
    font-size: 0.85rem;
    color: var(--apple-blue);
    margin-right: 6px;
}


/* Simple stat column */
.simple-stat-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Simple participant wrapper */
.simple-participant-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    margin-bottom: 4px;
}


/* Winner Following Link */
.winner-following-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.15), rgba(255, 107, 107, 0.15));
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: 8px;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: auto;
    white-space: nowrap;
}

.winner-following-link:hover {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.25), rgba(255, 107, 107, 0.25));
    border-color: rgba(255, 59, 59, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 59, 59, 0.2);
}

.winner-following-link i {
    font-size: 0.85rem;
}

/* Предупреждение о правах модератора */
.mod-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mod-warning-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mod-warning-content > i {
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.mod-warning-text {
    flex: 1;
    min-width: 300px;
}

.mod-warning-text strong {
    font-weight: 600;
}

.mod-warning-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-recheck,
.btn-help {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn-recheck {
    background: white;
    color: #ff6b6b;
}

.btn-recheck:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

.btn-recheck:active {
    transform: translateY(0);
}

.btn-recheck i {
    animation: none;
}

.btn-recheck:hover i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-help {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-help:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Сдвигаем контент вниз когда показано предупреждение */
body.mod-warning-shown {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .mod-warning {
        padding: 12px 15px;
    }
    
    .mod-warning-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mod-warning-text {
        min-width: 100%;
    }
    
    .mod-warning-actions {
        width: 100%;
    }
    
    .btn-recheck,
    .btn-help {
        flex: 1;
        justify-content: center;
    }
    
    body.mod-warning-shown {
        padding-top: 140px;
    }
}

/* Предупреждение о правах модератора - в стиле заголовка */
.mod-warning-header {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%) !important;
    background-size: 200% 100% !important;
    animation: warningPulse 3s ease-in-out infinite, gradientShift 4s ease-in-out infinite !important;
    margin-top: 10px;
}

@keyframes warningPulse {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.mod-warning-icon {
    animation: warningBounce 2s ease-in-out infinite;
}

@keyframes warningBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.btn-recheck-header {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: white;
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-recheck-header:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-recheck-header:active {
    transform: translateY(0);
}

.btn-recheck-header i {
    animation: none;
}

.btn-recheck-header:hover i {
    animation: spinRecheck 1s linear infinite;
}

@keyframes spinRecheck {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Cards Raffle Modal */
.cards-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.cards-modal-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: linear-gradient(to right, rgba(25, 25, 25, 1), rgba(22, 22, 22, 1) 33%, rgba(20, 20, 20, 1) 66%, rgba(20, 20, 20, 1));
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.cards-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--apple-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--apple-text);
    font-size: 18px;
}

.cards-close-btn:hover {
    background: rgba(255, 69, 58, 0.2);
    border-color: var(--apple-red);
    color: var(--apple-red);
    transform: rotate(90deg);
}

.cards-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.cards-modal-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.cards-modal-header p {
    color: var(--apple-text-secondary);
    font-size: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
}

.card-item {
    aspect-ratio: 2/3;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    isolation: isolate;
    height: 0;
    padding-bottom: 150%;
}

.card-item.flipped,
.card-item.winner {
    z-index: 10;
}

.card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.card-item.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--apple-border);
    top: 0;
    left: 0;
}

.card-back {
    transform: rotateY(180deg);
}

.card-front {
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: cardPattern 20s linear infinite;
}

.card-front::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

@keyframes cardPattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.card-front i {
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
}

.card-back::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: cardPattern 20s linear infinite;
    z-index: 0;
}

.card-back::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    z-index: 0;
}

.card-back .card-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card-back .card-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.card-back .card-username {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    word-break: break-word;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-item:hover:not(.flipped) .card-front {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 59, 59, 0.4);
}

.card-item.winner .card-back {
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.9), rgba(56, 142, 60, 0.9));
    border-color: rgba(48, 209, 88, 0.8);
    animation: winnerPulse 1.5s ease-in-out infinite;
}

.card-item.winner .card-back::before {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.15) 10px,
        rgba(255, 255, 255, 0.15) 20px
    );
}

.card-item.winner .card-back::after {
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes winnerPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(48, 209, 88, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(48, 209, 88, 0.8), 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Button for Cards */
.btn-cards {
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.3), rgba(147, 51, 234, 0.3));
    border: 1px solid rgba(191, 90, 242, 0.4);
    color: #bf5af2;
}

.btn-cards:hover {
    background: linear-gradient(135deg, rgba(191, 90, 242, 0.35), rgba(147, 51, 234, 0.35));
    border-color: rgba(191, 90, 242, 0.5);
    box-shadow: 0 4px 20px rgba(191, 90, 242, 0.2);
}

/* Responsive для карточек */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cards-modal-container {
        padding: 30px 20px;
    }
}

/* Admin Message Modal */
.admin-message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.admin-message-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.98), rgba(20, 20, 20, 0.98));
    border: 2px solid rgba(145, 70, 255, 0.5);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(145, 70, 255, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-message-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.admin-message-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--apple-red);
    color: var(--apple-red);
    transform: rotate(90deg);
}

.admin-message-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.2), rgba(126, 58, 242, 0.2));
    border: 2px solid rgba(145, 70, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.admin-message-icon i {
    font-size: 36px;
    color: #9146ff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(145, 70, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(145, 70, 255, 0.6);
    }
}

.admin-message-header {
    text-align: center;
    margin-bottom: 24px;
}

.admin-message-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #9146ff;
    margin: 0;
    letter-spacing: -0.5px;
}

.admin-message-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.admin-message-ok-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #9146ff, #7e3af2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-message-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(145, 70, 255, 0.4);
}

.admin-message-ok-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .admin-message-container {
        padding: 30px 20px;
        max-width: 90%;
    }
    
    .admin-message-icon {
        width: 60px;
        height: 60px;
    }
    
    .admin-message-icon i {
        font-size: 28px;
    }
    
    .admin-message-header h3 {
        font-size: 20px;
    }
    
    .admin-message-content {
        font-size: 14px;
        padding: 20px;
    }
}
