@font-face {
    font-family: 'Monument Extended';
    src: url('/assets/fonts/MonumentExtended-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Monument Extended';
    src: url('/assets/fonts/MonumentExtended-Ultrabold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Monument Extended';
    src: url('/assets/fonts/MonumentExtended-Ultrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --gold: #FFD93D;
    --gold-dark: #F6C90E;
    --gold-glow: rgba(255, 217, 61, 0.3);
    --accent: #6C5CE7;
    --accent-light: #A29BFE;
    --bg-primary: #09090B;
    --bg-secondary: #121214;
    --bg-card: #18181B;
    --bg-glass: rgba(24, 24, 27, 0.7);
    --text-primary: #FAFAFA;
    --text-secondary: #71717A;
    --border-color: rgba(255, 255, 255, 0.06);
    --success: #22C55E;
    --danger: #EF4444;
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 217, 61, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(108, 92, 231, 0.05), transparent);
    pointer-events: none;
    z-index: -1;
}

header {
    background: linear-gradient(180deg, rgba(18, 18, 20, 0.95) 0%, rgba(9, 9, 11, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section .brand-logo {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    gap: 0;
    transition: transform 0.3s ease;
}

.logo-section .brand-logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-family: 'Monument Extended', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-tv {
    font-family: 'Monument Extended', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    top: -8px;
    margin-left: 2px;
}

nav {
    display: flex;
    gap: 60px;
    align-items: center;
}

nav a {
    font-family: 'Monument Extended', 'Inter', sans-serif;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a:hover {
    color: var(--gold);
}

nav a.active {
    color: var(--gold);
    font-weight: 700;
}

.live-badge {
    background: var(--danger);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse-glow 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-badge .dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

main {
    display: block;
    padding: 24px;
    padding-right: 460px;
    max-width: 100%;
    transition: padding-right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

main.expanded {
    padding-right: 24px;
}

main.expanded .bonus-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main.expanded .bonus-banners {
    max-width: 100%;
}

main.expanded .bonus-banner {
    max-width: 1800px;
}

.stream-container {
    background: linear-gradient(145deg, rgba(18, 18, 20, 0.9) 0%, rgba(9, 9, 11, 0.95) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.stream-container:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 217, 61, 0.1);
}

.stream-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: none;
}

#video-player.active {
    display: block;
}

.stream-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.stream-placeholder.hidden {
    display: none;
}

.placeholder-content {
    padding: 60px 40px;
    z-index: 2;
    position: relative;
    text-align: center;
}

.placeholder-content.hidden {
    display: none;
}

.placeholder-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 40px var(--gold-glow);
    margin-bottom: 24px;
    animation: float 4s ease-in-out infinite;
}

.offline-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: none;
    z-index: 1;
    background: #000;
}

.offline-image.visible {
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.stream-placeholder h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stream-placeholder p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.loader {
    width: 36px;
    height: 36px;
    border: 3px solid var(--bg-card);
    border-top: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 24px auto 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.offline-msg {
    color: var(--danger);
}

.player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.95) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

#player-container:hover .player-overlay,
.player-overlay.visible {
    opacity: 1;
}

.player-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.player-controls button {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.player-controls button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

.player-controls button svg {
    width: 24px;
    height: 24px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 14px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.volume-control:hover .volume-slider-container {
    opacity: 1;
    width: 140px;
}

.volume-track {
    position: relative;
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.volume-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #FFD93D 0%, #FFFFFF 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.volume-range {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.volume-percent {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FFD93D;
    min-width: 32px;
    text-align: right;
}

.quality-selector {
    position: relative;
}

.quality-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 0 14px !important;
    width: auto !important;
    min-width: 48px;
}

.quality-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.quality-selector:hover .quality-menu,
.quality-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quality-option {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.quality-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quality-option.active {
    background: rgba(255, 217, 61, 0.15);
}

.quality-option.active .quality-name {
    color: var(--gold);
}

.quality-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.quality-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.quality-option.active::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.live-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.stream-info {
    background: linear-gradient(90deg, rgba(24, 24, 27, 0.95) 0%, rgba(18, 18, 20, 0.9) 100%);
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.streamer-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.streamer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(255, 217, 61, 0.2);
    transition: all 0.3s ease;
}

.streamer-info img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.4);
}

.streamer-details h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.streamer-details p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-stats {
    display: flex;
    gap: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 217, 61, 0.2);
}

.stat svg {
    color: var(--gold);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 700;
}

.chat-toggle {
    position: fixed;
    right: 450px;
    top: 90px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px 0 0 12px;
    padding: 14px 12px;
    cursor: pointer;
    z-index: 51;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.chat-toggle:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.chat-toggle.hidden {
    right: 0;
}

.chat-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.chat-toggle.hidden svg {
    transform: rotate(180deg);
}

.chat-container {
    background: linear-gradient(180deg, rgba(18, 18, 20, 0.95) 0%, rgba(12, 12, 14, 0.98) 100%);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    position: fixed;
    right: 24px;
    top: 88px;
    width: 420px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.chat-container.hidden {
    transform: translateX(480px);
}

.chat-header {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.98) 0%, rgba(18, 18, 20, 0.95) 100%);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chat-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-header h3 svg {
    -webkit-text-fill-color: initial;
    color: var(--gold);
}

.chat-header .viewers {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mod-controls {
    display: flex;
    gap: 6px;
}

.mod-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mod-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.mod-btn.clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.mod-btn.lock-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.mod-btn.lock-btn.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #F59E0B;
}

.chat-messages {
    padding: 16px;
    overflow-y: scroll !important;
    overflow-x: hidden;
    display: block !important;
    min-height: 0;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: block;
    margin-bottom: 8px;
}

.message-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message:hover {
    background: rgba(255,255,255,0.03);
}

.message .username {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-right: 8px;
    font-size: 0.8rem;
}

.message .username.streamer {
    color: var(--gold);
}

.message .username.mod {
    color: var(--success);
}

.message .username.vip {
    color: var(--accent-light);
}

.message .username.bot {
    color: #9147FF;
}

.message .text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

.message .text .chat-link {
    color: #7c9dff;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
}

.message .text .chat-link:hover {
    color: #a8bfff;
    text-decoration: underline;
}

.message.highlight {
    background: linear-gradient(135deg, rgba(255,217,61,0.08) 0%, transparent 100%);
    border-left: 2px solid var(--gold);
    padding-left: 14px;
}

.chat-input-container {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
}

.command-autocomplete {
    position: absolute;
    bottom: 100%;
    left: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 50;
}

.command-autocomplete.visible {
    display: block;
}

.command-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.command-item:last-child {
    border-bottom: none;
}

.command-item:hover,
.command-item.selected {
    background: rgba(255, 217, 61, 0.1);
}

.command-item.selected {
    background: rgba(255, 217, 61, 0.15);
}

.command-name {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.giveaway-banner {
    display: none;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.15), rgba(255, 217, 61, 0.05));
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 12px;
    margin: 12px;
    overflow: hidden;
    animation: giveawaySlideIn 0.3s ease;
    position: relative;
}

.giveaway-banner.active {
    display: block;
}

@keyframes giveawaySlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.giveaway-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}

.giveaway-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.giveaway-icon {
    font-size: 1.5rem;
}

.giveaway-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.giveaway-title {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.giveaway-participants {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.giveaway-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 11px 11px;
    overflow: hidden;
}

.countdown-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--gold), #F59E0B);
    border-radius: 0;
    transition: width 0.3s ease, background 0.5s ease;
}

.countdown-bar.warning {
    background: linear-gradient(90deg, #F59E0B, #EA580C);
}

.countdown-bar.danger {
    background: linear-gradient(90deg, #EF4444, #DC2626);
    animation: pulseDanger 0.5s infinite;
}

@keyframes pulseDanger {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.countdown-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    padding: 4px 10px;
    background: rgba(255, 217, 61, 0.2);
    border-radius: 6px;
    flex-shrink: 0;
}

.countdown-text.warning {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.2);
}

.countdown-text.danger {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.2);
    animation: pulseDanger 0.5s infinite;
}

.giveaway-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.giveaway-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.giveaway-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.giveaway-btn.joined {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}

.giveaway-btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.giveaway-winner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    animation: winnerPulse 1s ease infinite;
}

@keyframes winnerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.giveaway-banner.winner {
    border-color: rgba(34, 197, 94, 0.5);
}

.winner-icon {
    font-size: 1.5rem;
}

.winner-text {
    font-size: 1rem;
    color: var(--text-primary);
}

.winner-name {
    color: #4ADE80;
    font-weight: 700;
}

@media (max-width: 768px) {
    .giveaway-banner {
        margin: 8px;
        border-radius: 8px;
    }

    .giveaway-banner-content {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .giveaway-info {
        width: 100%;
    }

    .giveaway-countdown {
        flex: 1;
    }

    .giveaway-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.chat-input input::placeholder {
    color: var(--text-secondary);
}

.chat-input button {
    padding: 14px 24px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 12px;
    color: var(--bg-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}

.bonus-section {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.03) 0%, transparent 50%),
                linear-gradient(225deg, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
                var(--bg-secondary);
    padding: 60px 32px;
    margin-top: 24px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.bonus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.bonus-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: 50px 50px;
    pointer-events: none;
}

.bonus-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, var(--gold) 0%, #FFF 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonus-section > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.bonus-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bonus-banners {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bonus-banner {
    display: block;
    width: 100%;
    max-width: 1600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.bonus-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.bonus-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold)20, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.bonus-banner::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: var(--gradient-gold);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.bonus-banner:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--gold-glow);
}

.bonus-banner:hover::before {
    opacity: 1;
}

.bonus-banner:hover::after {
    opacity: 0.5;
}

.bonus-banner:hover img {
    transform: scale(1.05);
}

.bonus-banner-large {
    max-width: 1200px;
    overflow: visible;
    border-radius: 0;
    border: none;
}

.bonus-banner-large img {
    border-radius: 20px;
}

.bonus-banner-large::before,
.bonus-banner-large::after {
    display: none;
}

.bonus-banner-large:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.bonus-banner-large:hover img {
    transform: scale(1.01);
}

/* Reduce small banners when a large one is present */
.bonus-banners:has(.bonus-banner-large) .bonus-banner-small {
    max-width: 800px;
}

main.expanded .bonus-banner-large {
    max-width: 1400px;
}

main.expanded .bonus-banners:has(.bonus-banner-large) .bonus-banner-small {
    max-width: 900px;
}

.bonus-card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.9) 0%, rgba(18, 18, 20, 0.95) 100%);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.bonus-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 217, 61, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.bonus-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 217, 61, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 217, 61, 0.1);
}

.bonus-card:hover::before {
    transform: scaleX(1);
}

.bonus-card:hover::after {
    opacity: 1;
}

.bonus-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.bonus-card .icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.bonus-card:hover .icon img {
    transform: scale(1.1);
}

.bonus-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.bonus-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.bonus-card .code {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.2);
}

.bonus-card .code:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.4);
}

footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 48px 32px;
    text-align: center;
    margin-top: 48px;
}

footer .logo-footer {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    margin-bottom: 16px;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-links a svg {
    width: 22px;
    height: 22px;
}

.disclaimer {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 16px 28px;
    margin: 24px;
    border-radius: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 1200px) {
    main {
        padding-right: 24px;
    }

    .chat-container {
        position: relative;
        right: auto;
        top: 0;
        width: 100%;
        height: 500px;
        max-height: 500px;
        margin-top: 24px;
        display: flex;
        flex-direction: column;
    }

    .chat-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 14px 20px;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-section a {
        gap: 10px;
    }

    .logo-section img {
        width: 38px;
        height: 38px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-tv {
        font-size: 0.7rem;
        top: -6px;
    }

    nav {
        display: none;
    }

    .header-right {
        gap: 12px;
    }

    .live-badge {
        display: none !important;
    }

    .login-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .login-btn span {
        display: none;
    }

    .user-btn {
        padding: 8px 12px;
        gap: 8px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
    }

    .user-name {
        display: none;
    }

    .mobile-clips-btn {
        display: flex !important;
    }

    .mobile-bonus-btn {
        display: flex !important;
    }

    .bonus-section,
    .disclaimer,
    footer {
        display: none !important;
    }

    .bonus-section.mobile-visible,
    .disclaimer.mobile-visible,
    footer.mobile-visible {
        display: block !important;
    }

    body:has(.bonus-section.mobile-visible) {
        overflow: auto !important;
        height: auto !important;
    }

    body:has(.bonus-section.mobile-visible) main {
        height: auto !important;
        overflow: visible !important;
    }

    body:has(.bonus-section.mobile-visible) .chat-container {
        height: 400px !important;
    }

    body {
        height: 100vh !important;
        overflow: hidden !important;
    }

    main {
        flex-direction: column;
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        height: calc(100vh - 56px) !important;
        display: flex !important;
        overflow: hidden !important;
    }

    main > section,
    main > aside {
        margin: 0 !important;
        padding: 0 !important;
    }

    .stream-container {
        flex-shrink: 0 !important;
    }

    .stream-container {
        width: 100%;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #18181b !important;
    }

    .stream-video {
        border-radius: 0 !important;
        aspect-ratio: 16/9;
        margin: 0 !important;
    }

    .stream-placeholder {
        border-radius: 0 !important;
    }

    .stream-info {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .player-overlay {
        padding: 10px;
    }

    .player-controls {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .play-btn, .mute-btn, .fullscreen-btn {
        width: 40px;
        height: 40px;
    }

    .volume-control {
        flex: 0 0 auto;
    }

    .volume-slider-container {
        width: 80px;
    }

    .quality-btn {
        padding: 8px 12px;
    }

    .quality-label {
        font-size: 0.8rem;
    }

    .clip-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .clip-btn span {
        display: none;
    }

    .live-indicator {
        top: 10px;
        left: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .chat-container {
        width: 100% !important;
        height: calc(100vh - 56px - 56.25vw) !important;
        min-height: 250px !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: var(--bg-secondary) !important;
        flex: 1 !important;
    }

    .chat-header {
        display: none !important;
    }

    .chat-messages {
        height: 100% !important;
        max-height: none !important;
    }

    .chat-messages {
        padding: 12px;
    }

    .message {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .chat-input-container {
        padding: 12px;
    }

    .chat-input input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .chat-input button {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .bonus-section {
        padding: 40px 20px;
    }

    .bonus-section h2 {
        font-size: 1.8rem;
    }

    .bonus-section > p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .bonus-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bonus-banners {
        gap: 12px;
        padding: 0 10px;
    }

    .bonus-banner {
        max-width: 100%;
        border-radius: 12px;
    }

    .bonus-card {
        padding: 25px 20px;
    }

    .bonus-card .icon img {
        width: 50px;
        height: 50px;
    }

    .bonus-card h3 {
        font-size: 1.2rem;
    }

    .bonus-card p {
        font-size: 0.9rem;
    }

    .bonus-card .code {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .chat-toggle {
        display: none;
    }

    .mod-controls {
        gap: 6px;
    }

    .mod-btn {
        padding: 6px;
    }

    footer {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 16px;
    }

    .logo-section img {
        width: 34px;
        height: 34px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .header-right {
        gap: 10px;
    }

    .user-btn {
        padding: 6px 10px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }

    .chat-container {
        height: 350px;
    }

    .message {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .bonus-section {
        padding: 30px 16px;
    }

    .bonus-section h2 {
        font-size: 1.5rem;
    }

    .bonus-card {
        padding: 20px 16px;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--text-secondary);
}

.glow {
    box-shadow: 0 0 30px var(--gold-glow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-clips-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.15) 0%, rgba(255, 217, 61, 0.05) 100%);
    border: 1px solid rgba(255, 217, 61, 0.3);
    border-radius: 12px;
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-clips-btn:hover,
.mobile-clips-btn:active {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.25) 0%, rgba(255, 217, 61, 0.1) 100%);
    border-color: var(--gold);
    transform: scale(1.05);
}

.mobile-clips-btn svg {
    width: 22px;
    height: 22px;
}

.mobile-bonus-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22C55E;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-bonus-btn:hover,
.mobile-bonus-btn:active {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-color: #22C55E;
    transform: scale(1.05);
}

.mobile-bonus-btn.active {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
    border-color: #22C55E;
}

.mobile-bonus-btn svg {
    width: 22px;
    height: 22px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.25);
}

.login-btn:hover {
    background: linear-gradient(135deg, #4752C4 0%, #3B41A8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.login-btn svg {
    width: 20px;
    height: 20px;
}

.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.user-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--gold);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.user-dropdown a:hover {
    background: var(--bg-secondary);
}

.user-dropdown a svg {
    color: var(--text-secondary);
}

.user-dropdown a:hover svg {
    color: var(--gold);
}

.user-dropdown .logout {
    color: var(--danger);
}

.user-dropdown .logout svg {
    color: var(--danger);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(165deg, rgba(24, 24, 27, 0.95) 0%, rgba(9, 9, 11, 0.98) 100%);
    border: 1px solid rgba(255, 217, 61, 0.15);
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(255, 217, 61, 0.1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(180deg, rgba(255, 217, 61, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 217, 61, 0.5), transparent);
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFD93D 0%, #F6C90E 50%, #FFE566 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(85vh - 85px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-body::-webkit-scrollbar {
    display: none;
}

.modal .profile-section {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: sectionReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal .profile-section:nth-child(1) { animation-delay: 0.1s; }
.modal .profile-section:nth-child(2) { animation-delay: 0.15s; }
.modal .profile-section:nth-child(3) { animation-delay: 0.2s; }
.modal .profile-section:nth-child(4) { animation-delay: 0.25s; }
.modal .profile-section:nth-child(5) { animation-delay: 0.3s; }

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal .profile-section:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 217, 61, 0.1);
}

.modal .profile-section:last-of-type {
    margin-bottom: 24px;
}

.modal .profile-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal .profile-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 217, 61, 0.3), transparent);
}

.modal .avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.modal .current-avatar {
    position: relative;
}

.modal .current-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #FFD93D, #F6C90E, #FFE566) border-box;
    object-fit: cover;
    transition: all 0.3s ease;
}

.modal .current-avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.4), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal .current-avatar:hover::after {
    opacity: 1;
}

.modal .avatar-actions {
    flex: 1;
}

.modal .avatar-actions input[type="file"] {
    display: none;
}

.modal .upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.15), rgba(255, 217, 61, 0.05));
    border: 1px solid rgba(255, 217, 61, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.modal .upload-btn::before {
    content: '';
    font-size: 1.1rem;
}

.modal .upload-btn:hover {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.25), rgba(255, 217, 61, 0.1));
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 217, 61, 0.2);
}

.modal .help-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
    opacity: 0.7;
}

.modal .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.modal .form-group {
    position: relative;
}

.modal .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal .form-group input[type="text"],
.modal .form-group input[type="number"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.modal .form-group input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.modal .form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 217, 61, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 217, 61, 0.1);
}

.modal .form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
}

.modal .form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.modal .color-picker {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.modal .color-picker:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.modal .color-picker input[type="color"] {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

.modal .color-picker input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.modal .color-picker input[type="color"]::-webkit-color-swatch {
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.modal .color-preview {
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 20px currentColor;
}

.modal .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 10px;
}

.modal .icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal .icon-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal .icon-option:hover {
    border-color: rgba(255, 217, 61, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modal .icon-option:hover::before {
    opacity: 1;
}

.modal .icon-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.15), rgba(255, 217, 61, 0.05));
    box-shadow:
        0 0 0 1px rgba(255, 217, 61, 0.3),
        0 4px 15px rgba(255, 217, 61, 0.2);
}

.modal .icon-option.selected::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 0.65rem;
    color: var(--gold);
    font-weight: bold;
}

.modal .icon-option input {
    display: none;
}

.modal .icon-option .icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.modal .icon-option:hover .icon {
    transform: scale(1.15);
}

.modal .icon-option .icon-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.modal .chat-preview {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.modal .chat-preview::before {
    content: 'APERCU';
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.6rem;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: 1px;
    font-weight: 600;
}

.modal .preview-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.modal .preview-message .chat-icon {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.modal .preview-message .username {
    font-weight: 700;
    text-shadow: 0 0 30px currentColor;
}

.modal .preview-message .text {
    color: var(--text-primary);
}

.modal .save-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFD93D 0%, #F6C90E 50%, #E5B800 100%);
    color: #000;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.modal .save-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal .save-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(255, 217, 61, 0.4),
        0 0 0 1px rgba(255, 217, 61, 0.5);
}

.modal .save-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.modal .save-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.modal .save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(30%);
}

.modal .save-btn .btn-text,
.modal .save-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal .spinner {
    animation: spin 0.8s linear infinite;
}

.modal .alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: alertSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal .alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ADE80;
}

.modal .alert-success::before {
    content: '';
    width: 24px;
    height: 24px;
    background: rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.modal .alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
}

.modal .alert-error::before {
    content: '!';
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.logo-section a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.reply-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(108, 92, 231, 0.05));
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 12px 12px 0 0;
    padding: 10px 14px;
    margin-bottom: -1px;
    animation: slideDown 0.2s ease;
}

.reply-bar.active {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reply-bar .reply-bar-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    color: var(--accent-light);
}

.reply-bar .reply-bar-content svg {
    flex-shrink: 0;
}

.reply-bar .reply-bar-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reply-bar .reply-bar-text strong {
    color: var(--accent-light);
    font-weight: 600;
}

.reply-bar .reply-bar-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reply-bar .reply-bar-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.message .reply-quote {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 92, 231, 0.1);
    border-left: 3px solid var(--accent);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.message .reply-quote:hover {
    background: rgba(108, 92, 231, 0.15);
}

.message .reply-quote svg {
    flex-shrink: 0;
    color: var(--accent-light);
}

.message .reply-quote .reply-to-user {
    color: var(--accent-light);
    font-weight: 600;
    white-space: nowrap;
}

.message .reply-quote .reply-to-text {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message .role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
    vertical-align: middle;
}

.message .role-badge.streamer {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.25), rgba(255, 217, 61, 0.1));
    color: var(--gold);
    border: 1px solid rgba(255, 217, 61, 0.4);
}

.message .role-badge.admin {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.1));
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.message .role-badge.mod {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.message .role-badge.vip {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.1));
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.message .role-badge.bot {
    background: linear-gradient(135deg, rgba(145, 71, 255, 0.25), rgba(145, 71, 255, 0.1));
    color: #A78BFA;
    border: 1px solid rgba(145, 71, 255, 0.4);
}

.message .sub-badge-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 4px;
}

.message {
    position: relative;
}

.message .message-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.message:hover .message-actions {
    display: flex;
}

.message .message-actions button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message .message-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.message .message-actions button.reply-btn:hover {
    color: var(--accent-light);
    background: rgba(108, 92, 231, 0.15);
}

.message .message-actions button.profile-btn:hover {
    color: var(--gold);
    background: rgba(255, 217, 61, 0.15);
}

.message .message-actions button.mute-btn:hover {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.15);
}

.message .message-actions button.delete-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

.message .message-actions button.ban-btn:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.15);
}

.message.muted {
    opacity: 0.4;
    filter: grayscale(50%);
}

.message.muted::after {
    content: 'MUTE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.profile-modal-overlay.active {
    opacity: 1;
}

.profile-modal {
    background: linear-gradient(165deg, rgba(24, 24, 27, 0.98) 0%, rgba(9, 9, 11, 0.98) 100%);
    border: 1px solid rgba(255, 217, 61, 0.15);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    padding: 24px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.profile-modal-overlay.active .profile-modal {
    transform: scale(1);
}

.profile-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.profile-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-modal-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.profile-modal-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-modal-info .profile-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
}

.profile-modal-info .profile-role.streamer {
    background: rgba(255, 217, 61, 0.2);
    color: var(--gold);
}

.profile-modal-info .profile-role.admin {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

.profile-modal-info .profile-role.mod {
    background: rgba(34, 197, 94, 0.2);
    color: #4ADE80;
}

.profile-modal-info .profile-role.vip {
    background: rgba(168, 85, 247, 0.2);
    color: #C084FC;
}

.profile-modal-info .profile-role.user {
    background: rgba(113, 113, 122, 0.2);
    color: var(--text-secondary);
}

.profile-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-modal-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-modal-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-modal-stat .stat-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.profile-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.profile-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.profile-action-btn.mute {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
}

.profile-action-btn.mute:hover {
    background: rgba(245, 158, 11, 0.25);
}

.profile-action-btn.ban {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.profile-action-btn.ban:hover {
    background: rgba(239, 68, 68, 0.25);
}

.mod-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: all 0.2s ease;
    padding: 20px;
}

.mod-modal-overlay.active {
    opacity: 1;
}

.mod-modal {
    background: linear-gradient(165deg, rgba(24, 24, 27, 0.98) 0%, rgba(9, 9, 11, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mod-modal-overlay.active .mod-modal {
    transform: scale(1) translateY(0);
}

.mod-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mod-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mod-modal-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.mod-modal-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.mod-modal-icon.success {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}

.mod-modal-icon.primary {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-light);
}

.mod-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.mod-modal-body {
    padding: 20px 24px;
}

.mod-modal-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.mod-modal-field {
    margin-bottom: 16px;
}

.mod-modal-field:last-child {
    margin-bottom: 0;
}

.mod-modal-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mod-modal-field input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.mod-modal-field input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 217, 61, 0.05);
}

.mod-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mod-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mod-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.mod-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.mod-modal-btn.danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.mod-modal-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.mod-modal-btn.warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.mod-modal-btn.warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.mod-modal-btn.success {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white;
}

.mod-modal-btn.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.mod-modal-btn.primary {
    background: var(--gradient-gold);
    color: var(--bg-primary);
}

.mod-modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.chat-input-container.replying {
    padding-top: 0;
}

.chat-input-container.replying .chat-input {
    border-radius: 0 0 12px 12px;
}

.chat-input-container.replying .chat-input input {
    border-radius: 0 0 12px 12px;
}

.chat-input-container.muted {
    position: relative;
}

.chat-input-container.muted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #D97706);
    border-radius: 3px 3px 0 0;
    animation: muteGlow 2s ease-in-out infinite;
}

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

.chat-input input.muted {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #F59E0B !important;
}

.chat-input input.muted::placeholder {
    color: #F59E0B !important;
    opacity: 1;
}

@media (max-width: 640px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .modal {
        max-height: 90vh;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }

    .modal-overlay.active .modal {
        transform: scale(1) translateY(0);
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 70px);
    }

    .modal .profile-section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .modal .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal .avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .modal .current-avatar img {
        width: 80px;
        height: 80px;
    }

    .modal .icon-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .modal .icon-option {
        padding: 12px 8px;
    }

    .modal .icon-option .icon {
        font-size: 1.3rem;
    }

    .modal .save-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}
