/* ===== SX Tools - Premium Design System ===== */
:root {
    /* Primary Colors - Red */
    --primary: #FF3B3B;
    --primary-dark: #E02020;
    --primary-light: #FF6B6B;
    --primary-glow: rgba(255, 59, 59, 0.5);
    --primary-subtle: rgba(255, 59, 59, 0.08);

    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-gold: #fbbf24;

    /* Background Colors - Deep Dark */
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(15, 15, 22, 0.8);
    --bg-card-solid: #0f0f16;
    --bg-elevated: rgba(20, 20, 30, 0.9);
    --bg-input: rgba(10, 10, 15, 0.8);
    --bg-hover: rgba(255, 59, 59, 0.05);

    /* Border Colors */
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 59, 59, 0.3);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --text-dim: #3f3f46;

    /* Status Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --shadow-glow-sm: 0 0 15px var(--primary-glow);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #020024;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 62%, rgba(20, 44, 117, 1) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Background */
body::before {
    display: none;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform var(--transition-normal);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-sx {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-tools {
    color: var(--text-primary);
    font-weight: 700;
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 20px var(--primary-glow); }
    50% { text-shadow: 0 0 30px var(--primary-glow), 0 0 50px var(--primary-glow); }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: var(--space-sm);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link i {
    font-size: 0.9rem;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(15, 15, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    list-style: none;
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.dropdown-item.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

.dropdown-item.active i {
    color: var(--primary);
}

/* NEW Badge */
.new-badge {
    margin-left: auto;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 70px;
    padding: var(--space-xl);
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
}

/* ===== Page Structure ===== */
.page {
    display: none;
    max-width: 1600px;
    margin: 0 auto;
}

.page.active {
    display: block;
    animation: pageIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-green {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Cards - Glass Morphism ===== */
.card {
    background: rgba(15, 15, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.card-header span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-header i {
    color: var(--primary);
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Settings Button in Card Header */
.settings-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.settings-btn:hover {
    background: rgba(255, 59, 59, 0.1);
    border-color: rgba(255, 59, 59, 0.3);
    color: var(--primary);
}

.settings-btn i {
    font-size: 0.9rem;
    color: inherit;
    opacity: 1;
}

.card-body {
    padding: var(--space-lg);
}

/* ===== Form Elements ===== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.8rem;
}

.kick-icon {
    color: var(--success) !important;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 59, 59, 0.5);
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.1);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input.highlight {
    border-color: rgba(255, 59, 59, 0.4);
    background: rgba(255, 59, 59, 0.05);
}

.form-textarea {
    min-height: 100px;
    resize: none;
    line-height: 1.6;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: color var(--transition-normal);
}

.form-input:focus + .input-icon {
    color: var(--primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 2px 12px rgba(255, 59, 59, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 59, 59, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: rgba(255, 59, 59, 0.4);
    color: var(--primary);
    background: rgba(255, 59, 59, 0.05);
}

.btn-danger {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.08);
}

.btn-glow {
    box-shadow: 0 2px 16px rgba(255, 59, 59, 0.25);
}

.btn-glow:hover {
    box-shadow: 0 4px 24px rgba(255, 59, 59, 0.35);
}

.btn-large {
    width: 100%;
    padding: 14px 28px;
    font-size: 0.85rem;
}

/* ===== Uiverse Animated Button ===== */
.uiverse {
    --duration: 7s;
    --easing: linear;
    --c-color-1: rgba(255, 163, 26, 0.7);
    --c-color-2: #1a23ff;
    --c-color-3: #e21bda;
    --c-color-4: rgba(255, 232, 26, 0.7);
    --c-shadow: rgba(255, 223, 87, 0.5);
    --c-shadow-inset-top: rgba(255, 223, 52, 0.9);
    --c-shadow-inset-bottom: rgba(255, 250, 215, 0.8);
    --c-radial-inner: #ffd215;
    --c-radial-outer: #fff172;
    --c-color: #000;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    outline: none;
    position: relative;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    padding: 0;
    margin: 0;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color: var(--c-color);
    background: radial-gradient(circle, var(--c-radial-inner), var(--c-radial-outer) 80%);
    box-shadow: 0 0 14px var(--c-shadow);
    width: 100%;
    flex: 1;
}

.uiverse:before {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: 3;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    box-shadow: inset 0 3px 12px var(--c-shadow-inset-top), inset 0 -3px 4px var(--c-shadow-inset-bottom);
}

.uiverse .wrapper {
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    overflow: hidden;
    border-radius: 24px;
    min-width: 132px;
    padding: 14px 24px;
    width: 100%;
}

.uiverse .wrapper span {
    display: inline-block;
    position: relative;
    z-index: 1;
}

.uiverse:hover {
    --duration: 1400ms;
}

.uiverse:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.uiverse .wrapper .circle {
    position: absolute;
    left: 0;
    top: 50%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    filter: blur(var(--blur, 8px));
    background: var(--background, transparent);
    transform: translate(var(--x, 0), var(--y, 0)) translateZ(0);
    animation: var(--animation, none) var(--duration) var(--easing) infinite;
}

.uiverse .wrapper .circle.circle-1,
.uiverse .wrapper .circle.circle-9,
.uiverse .wrapper .circle.circle-10 {
    --background: var(--c-color-4);
}

.uiverse .wrapper .circle.circle-3,
.uiverse .wrapper .circle.circle-4 {
    --background: var(--c-color-2);
    --blur: 14px;
}

.uiverse .wrapper .circle.circle-5,
.uiverse .wrapper .circle.circle-6 {
    --background: var(--c-color-3);
    --blur: 16px;
}

.uiverse .wrapper .circle.circle-2,
.uiverse .wrapper .circle.circle-7,
.uiverse .wrapper .circle.circle-8,
.uiverse .wrapper .circle.circle-11,
.uiverse .wrapper .circle.circle-12 {
    --background: var(--c-color-1);
    --blur: 12px;
}

.uiverse .wrapper .circle.circle-1 { --x: 5%; --y: -40px; --animation: circle-1; }
.uiverse .wrapper .circle.circle-2 { --x: 85%; --y: 8px; --animation: circle-2; }
.uiverse .wrapper .circle.circle-3 { --x: 15%; --y: -12px; --animation: circle-3; }
.uiverse .wrapper .circle.circle-4 { --x: 70%; --y: -12px; --animation: circle-4; }
.uiverse .wrapper .circle.circle-5 { --x: 25%; --y: -4px; --animation: circle-5; }
.uiverse .wrapper .circle.circle-6 { --x: 55%; --y: 16px; --animation: circle-6; }
.uiverse .wrapper .circle.circle-7 { --x: 10%; --y: 28px; --animation: circle-7; }
.uiverse .wrapper .circle.circle-8 { --x: 40%; --y: -4px; --animation: circle-8; }
.uiverse .wrapper .circle.circle-9 { --x: 30%; --y: -12px; --animation: circle-9; }
.uiverse .wrapper .circle.circle-10 { --x: 65%; --y: 16px; --animation: circle-10; }
.uiverse .wrapper .circle.circle-11 { --x: 45%; --y: 4px; --animation: circle-11; }
.uiverse .wrapper .circle.circle-12 { --blur: 14px; --x: 75%; --y: 4px; --animation: circle-12; }

@keyframes circle-1 {
    33% { transform: translate(10%, 16px) translateZ(0); }
    66% { transform: translate(20%, 64px) translateZ(0); }
}
@keyframes circle-2 {
    33% { transform: translate(75%, -10px) translateZ(0); }
    66% { transform: translate(90%, -48px) translateZ(0); }
}
@keyframes circle-3 {
    33% { transform: translate(25%, 12px) translateZ(0); }
    66% { transform: translate(35%, 4px) translateZ(0); }
}
@keyframes circle-4 {
    33% { transform: translate(60%, -12px) translateZ(0); }
    66% { transform: translate(80%, -8px) translateZ(0); }
}
@keyframes circle-5 {
    33% { transform: translate(50%, 28px) translateZ(0); }
    66% { transform: translate(35%, -32px) translateZ(0); }
}
@keyframes circle-6 {
    33% { transform: translate(45%, -16px) translateZ(0); }
    66% { transform: translate(65%, -56px) translateZ(0); }
}
@keyframes circle-7 {
    33% { transform: translate(15%, 28px) translateZ(0); }
    66% { transform: translate(25%, -60px) translateZ(0); }
}
@keyframes circle-8 {
    33% { transform: translate(50%, -4px) translateZ(0); }
    66% { transform: translate(60%, -20px) translateZ(0); }
}
@keyframes circle-9 {
    33% { transform: translate(35%, -12px) translateZ(0); }
    66% { transform: translate(55%, -8px) translateZ(0); }
}
@keyframes circle-10 {
    33% { transform: translate(70%, 20px) translateZ(0); }
    66% { transform: translate(85%, 28px) translateZ(0); }
}
@keyframes circle-11 {
    33% { transform: translate(50%, 4px) translateZ(0); }
    66% { transform: translate(70%, 20px) translateZ(0); }
}
@keyframes circle-12 {
    33% { transform: translate(80%, 0px) translateZ(0); }
    66% { transform: translate(90%, -32px) translateZ(0); }
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: var(--radius-md);
}

.btn-icon:hover {
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.text-btn:hover {
    opacity: 0.8;
}

.button-row {
    display: flex;
    gap: var(--space-sm);
}

.button-row .btn {
    flex: 1;
    padding: 10px;
}

/* ===== Status Badges ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.status-badge i {
    font-size: 0.5rem;
}

.status-badge.connected {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.status-badge.connected i {
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.status-badge.disconnected,
.status-badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow-sm);
}

.win-count {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Timer Options ===== */
.timer-options {
    display: flex;
    gap: var(--space-xs);
}

.timer-btn {
    flex: 1;
    padding: 10px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.timer-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.timer-btn:hover:not(.active) {
    border-color: rgba(255, 59, 59, 0.4);
    color: var(--primary);
}

/* ===== Raffle Layout ===== */
.raffle-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--space-xl);
}

.raffle-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.raffle-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(15, 15, 22, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    min-width: 160px;
    transition: all var(--transition-normal);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Entries Card - Blue Theme */
.stat-card.entries-card {
    border-color: rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(15, 15, 22, 0.5));
}

.stat-card.entries-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 
        0 8px 25px rgba(59, 130, 246, 0.15),
        0 0 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

.stat-card.entries-card .stat-value {
    color: #3b82f6;
}

/* Eligible Card - Green Theme */
.stat-card.eligible-card {
    border-color: rgba(34, 197, 94, 0.2);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(15, 15, 22, 0.5));
}

.stat-card.eligible-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 
        0 8px 25px rgba(34, 197, 94, 0.15),
        0 0 20px rgba(34, 197, 94, 0.1),
        inset 0 1px 0 rgba(34, 197, 94, 0.1);
}

.stat-card.eligible-card .stat-value {
    color: #22c55e;
}

/* Keyword Card - Purple Theme */
.stat-card.keyword-card {
    border-color: rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(15, 15, 22, 0.5));
}

.stat-card.keyword-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.15),
        0 0 20px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(139, 92, 246, 0.1);
}

.stat-card.keyword-card .stat-value {
    color: #8b5cf6;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
}

.stat-icon.entries {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.stat-icon.eligible {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.stat-icon.keyword {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ===== Draw Area ===== */
/* Draw Stats Bar - Integrated into draw card */
.draw-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.draw-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.draw-stat i {
    font-size: 0.9rem;
    opacity: 0.9;
}

.draw-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
}

.draw-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

/* Entries stat - Blue */
.draw-stat.entries {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.draw-stat.entries i,
.draw-stat.entries .draw-stat-value {
    color: #3b82f6;
}

.draw-stat.entries:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Eligible stat - Green */
.draw-stat.eligible {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.draw-stat.eligible i,
.draw-stat.eligible .draw-stat-value {
    color: #22c55e;
}

.draw-stat.eligible:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

/* Keyword stat - Purple */
.draw-stat.keyword {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.draw-stat.keyword i,
.draw-stat.keyword .draw-stat-value {
    color: #8b5cf6;
}

.draw-stat.keyword:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* Calls stat - Gold (for slots) */
.draw-stat.calls {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.draw-stat.calls i,
.draw-stat.calls .draw-stat-value {
    color: #fbbf24;
}

.draw-stat.calls:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.draw-card {
    flex: 1;
    min-height: 300px;
}

.draw-area {
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(10, 10, 15, 0.4);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.draw-content {
    text-align: center;
    padding: var(--space-lg);
}

.draw-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.draw-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.6;
}

.trophy-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    background: rgba(15, 15, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text-dim);
    transition: all var(--transition-normal);
}

.trophy-icon:hover {
    transform: scale(1.03);
    border-color: rgba(255, 59, 59, 0.3);
    color: var(--primary);
}

/* Action Bar */
.action-bar {
    display: flex;
    gap: var(--space-sm);
}

.action-bar .btn-large {
    flex: 1;
}

/* Raffle Options */
.raffle-options {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    user-select: none;
}

.toggle-option input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-option input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-option input[type="checkbox"]:checked + .toggle-slider::after {
    left: 18px;
}

.toggle-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.toggle-label i {
    color: var(--primary);
}

/* Entries List */
.entries-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.entries-list::-webkit-scrollbar {
    display: none;
}

.entries-empty, .winners-empty, .rankings-empty, .chat-empty {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--text-dim);
}

.entries-empty i, .winners-empty i, .rankings-empty i, .chat-empty i {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.entries-empty p, .winners-empty p, .rankings-empty p, .chat-empty p {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.entries-empty span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Chat Card - Premium Design */
.chat-card {
    background: rgba(12, 12, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.chat-card::before {
    display: none;
}

.chat-card .card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-card .card-header i {
    color: var(--primary);
    opacity: 0.9;
}

/* Chat Tabs */
.chat-tabs-header {
    padding: 0 !important;
}

.chat-tabs {
    display: flex;
    width: 100%;
}

.chat-tab {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.chat-tab:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.chat-tab.active {
    color: var(--primary);
    background: rgba(255, 59, 59, 0.05);
}

.chat-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.chat-tab i {
    font-size: 0.85rem;
}

.chat-tab[data-tab="winner"] i {
    color: #fbbf24;
}

.chat-tab[data-tab="winner"].active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.chat-tab[data-tab="winner"].active::after {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Chat Tab Content */
.chat-tab-content {
    display: none !important;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
}

.chat-tab-content.active {
    display: flex !important;
}

/* Winner Chat Tab Content - specific styling */
#raffle-winner-chat-content {
    padding: 0;
}

#raffle-winner-chat-content.active {
    display: flex !important;
    flex-direction: column;
}

#raffle-winner-chat-content .chat-messages {
    flex: 1;
    background: rgba(8, 8, 12, 0.5);
    padding: var(--space-sm);
    overflow-y: auto;
    display: block !important;
}

#raffle-winner-chat-messages .chat-message {
    margin-bottom: var(--space-sm);
}

/* Force messages to start from top */
#raffle-winner-chat-messages {
    display: block !important;
    justify-content: unset !important;
    align-items: unset !important;
}

/* Winner Chat Messages - golden username styling */
#raffle-winner-chat-messages .chat-message-username {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

#raffle-winner-chat-messages .chat-message:hover .chat-message-username {
    color: #fcd34d !important;
}

#raffle-winner-chat-messages .chat-message-avatar {
    border-color: #fbbf24;
}

#raffle-winner-chat-messages .chat-message:hover .chat-message-avatar {
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

/* Winner Chat Empty State */
.winner-chat-empty {
    text-align: center;
    padding: 40px 20px;
}

.winner-chat-empty i {
    color: #fbbf24 !important;
    font-size: 2rem !important;
    margin-bottom: 12px;
}

.winner-chat-empty p {
    color: var(--text-muted);
}

/* Winner Chat Monitoring Banner */
.winner-monitoring-banner {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.winner-monitoring-banner .winner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fbbf24;
    overflow: hidden;
}

.winner-monitoring-banner .winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-monitoring-banner .winner-info {
    flex: 1;
}

.winner-monitoring-banner .winner-label {
    font-size: 0.7rem;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.winner-monitoring-banner .winner-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.winner-monitoring-banner .monitoring-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--success);
}

.winner-monitoring-banner .monitoring-status i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Chat Messages */
.chat-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
    background: rgba(8, 8, 12, 0.5);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: var(--radius-full);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

/* Chat Message Styles - Premium Design */
.chat-message {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    margin-bottom: var(--space-sm);
    background: var(--bg-input);
    border: 1px solid var(--border);
    position: relative;
}

.chat-message:hover {
    background: rgba(255, 59, 59, 0.03);
    border-color: rgba(255, 59, 59, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    transition: all var(--transition-normal);
}

.chat-message:hover .chat-message-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-message-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.chat-message-username {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-right: var(--space-sm);
    transition: color var(--transition-normal);
}

.chat-message:hover .chat-message-username {
    color: var(--primary);
}

.chat-message-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-word;
    line-height: 1.5;
    display: inline;
}

.chat-message-text img,
.chat-emote {
    height: 24px !important;
    width: auto !important;
    max-height: 24px !important;
    vertical-align: middle;
    margin: 0 3px;
    display: inline-block;
    border-radius: 4px;
}

/* Chat Empty State */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.chat-empty i {
    color: var(--text-dim);
    opacity: 0.5;
}

.chat-empty p {
    color: var(--text-muted);
}

/* Winners List */
.winners-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-height: 200px;
    overflow-y: auto;
    padding: var(--space-xs);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.winners-list::-webkit-scrollbar {
    display: none;
}

/* Session Winner Card (in winners list) */
.winners-list .winner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(10, 10, 15, 0.5);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.15);
    text-align: center;
    min-width: 100px;
    transition: all var(--transition-normal);
}

.winners-list .winner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.25);
}

.winner-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
    box-shadow: 0 0 12px rgba(255, 59, 59, 0.2);
}

.winner-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90px;
}

/* Entry Cards */
.entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: rgba(15, 15, 22, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-width: 70px;
    position: relative;
}

.entry-card:hover {
    border-color: rgba(255, 59, 59, 0.3);
    background: rgba(255, 59, 59, 0.03);
}

.entry-card:hover .entry-remove-btn {
    opacity: 1;
}

.entry-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    color: white;
    font-size: 10px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.entry-remove-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.entry-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(20, 20, 28, 0.6);
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.entry-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-card-name {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65px;
    text-align: center;
}

/* Connected State */
.connected-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.connected-channel {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.channel-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.channel-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.channel-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.channel-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.status-badge.live {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.live i {
    font-size: 0.5rem;
    animation: pulse-dot 1.5s infinite;
}

.viewers-badge {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-disconnect {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: var(--danger);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-disconnect:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Connected Actions Container */
.connected-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* OBS Widget Section */
.obs-widget-section {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.btn-obs-settings {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.25);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-obs-settings:hover {
    background: rgba(255, 59, 59, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.2);
}

.btn-obs-settings i {
    font-size: 0.9rem;
}

/* OBS Widget Button (small version) */
.btn-obs-widget {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: var(--radius-md);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-obs-widget:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
}

/* OBS Widget Modal */
.obs-widget-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.obs-widget-content {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255, 59, 59, 0.2);
}

.obs-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.obs-widget-header i {
    color: var(--primary);
    font-size: 1.5rem;
}

.obs-widget-header span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.obs-widget-body {
    margin-bottom: 20px;
}

.obs-widget-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.obs-widget-url-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.obs-widget-url {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--primary);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.obs-copy-btn {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
}

.obs-copy-btn:hover {
    background: #FF6B6B;
    transform: scale(1.05);
}

.obs-widget-settings {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.obs-setting {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.obs-setting:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.obs-setting-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.obs-setting-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.obs-close-btn {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.obs-close-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.keyword-section {
    margin-top: var(--space-md);
}

.keyword-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.keyword-label i {
    color: var(--primary);
}

.keyword-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    transition: all var(--transition-normal);
}

.keyword-input:focus {
    outline: none;
    background: var(--primary-subtle);
    box-shadow: 0 0 0 4px var(--primary-subtle), var(--shadow-glow-sm);
}

.keyword-input::placeholder {
    color: var(--text-dim);
    font-weight: 500;
}

/* Keyword Highlight in Chat */
.keyword-highlight {
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* ===== Trivia Layout ===== */
.trivia-container {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    gap: var(--space-xl);
}

.trivia-left, .trivia-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.trivia-center {
    display: flex;
    flex-direction: column;
}

/* Game Area */
.game-card {
    flex: 1;
    min-height: 400px;
}

.game-area {
    height: 100%;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.game-content {
    text-align: center;
    padding: var(--space-2xl);
}

.game-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.next-up {
    margin-top: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
}

.next-up span:first-child {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.next-type {
    color: var(--primary);
    font-weight: 700;
}

/* Timer Circle */
.question-timer {
    margin-bottom: var(--space-xl);
}

.timer-circle {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bg-input), var(--bg-primary));
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.timer-circle span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.question-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Winner Display */
.winner-crown {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: var(--space-md);
    animation: crownBounce 0.6s ease;
}

@keyframes crownBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.winner-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.winner-answer {
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.winner-answer span {
    color: var(--primary);
    font-weight: 600;
}

/* Rankings */
.rankings-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rankings-list::-webkit-scrollbar {
    display: none;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
    transform: translateX(4px);
}

.ranking-position {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    flex-shrink: 0;
}

.ranking-position.gold {
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.ranking-position.silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: #000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.ranking-position.bronze {
    background: linear-gradient(135deg, #cd7f32, #b8722d);
    color: #fff;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.ranking-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-score {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 59, 59, 0.1);
    border: 1px solid rgba(255, 59, 59, 0.3);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}

.ranking-score::before {
    content: '🏆';
    font-size: 0.75rem;
}

/* First place special styling */
.ranking-item:first-child {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 184, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.ranking-item:first-child .ranking-name {
    color: #ffd700;
}

/* ===== Wheel Layout ===== */
.wheel-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-xl);
}

.wheel-left {
    display: flex;
    flex-direction: column;
}

.wheel-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.wheel-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
}

.wheel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary-glow));
    z-index: 10;
}

#wheel-canvas {
    max-width: 100%;
    height: auto;
}

.spin-button {
    position: absolute;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-normal);
    z-index: 5;
}

.spin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--primary-glow);
}

.wheel-waiting {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 8, 0.9);
    border-radius: 50%;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.wheel-entries {
    max-height: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px;
}

/* Wheel Entry Item */
.entry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(20, 20, 28, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.entry-item:hover {
    background: rgba(25, 25, 35, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.entry-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.entry-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.entry-item .remove-entry {
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 4px;
    line-height: 1;
}

.entry-item .remove-entry:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Wheel Winner Display */
.wheel-winner-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wheel-winner-display.active {
    opacity: 1;
    visibility: visible;
}

.wheel-winner-display .winner-content {
    background: var(--bg-card-solid);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 32px 48px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
}

.wheel-winner-display .winner-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.wheel-winner-display .winner-close-btn:hover {
    color: var(--text-primary);
}

.wheel-winner-display .winner-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.wheel-winner-display .winner-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    word-break: break-word;
    text-shadow: 0 0 20px var(--primary-glow);
}

.wheel-winner-display .respin-btn {
    padding: 12px 32px;
    font-size: 0.85rem;
    border-radius: 10px;
}

/* ===== Slot Machine Animation ===== */
.slot-machine-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
}

.slot-machine-container.active {
    display: flex;
}

.slot-machine-strip {
    display: flex;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    will-change: left;
}

.slot-indicator-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--primary), transparent);
    box-shadow: var(--shadow-glow);
    pointer-events: none;
    z-index: 10;
}

.slot-gradient-left,
.slot-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    pointer-events: none;
    z-index: 5;
}

.slot-gradient-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-card-solid), transparent);
}

.slot-gradient-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-card-solid), transparent);
}

.slot-item {
    flex-shrink: 0;
    width: 120px;
    height: 140px;
    margin-right: 12px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-normal);
}

.slot-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    overflow: hidden;
}

.slot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-item.winner-highlight {
    border-color: var(--primary);
    background: var(--primary-subtle);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.slot-item.winner-highlight .slot-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
}

.slot-item.winner-highlight .slot-name {
    color: var(--primary);
    font-weight: 800;
}

/* ===== Winner Display ===== */
.slot-winner-display {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    animation: winnerFadeIn 0.5s ease;
}

@keyframes winnerFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.winner-card {
    background: rgba(15, 15, 22, 0.98);
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) 60px;
    text-align: center;
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.winner-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.winner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.winner-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.winner-username {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.winner-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    margin-top: var(--space-xl);
}

/* ===== Provably Fair Bar ===== */
.pf-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    font-size: 0.75rem;
}

.pf-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
    font-weight: 800;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.pf-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}

.pf-item span {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== Giveaway Styles ===== */
.giveaway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.giveaway-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px var(--space-xl);
    color: var(--text-dim);
}

.giveaway-empty i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.giveaway-empty p {
    font-size: 1.1rem;
    font-weight: 600;
}

.giveaway-container {
    max-width: 600px;
    margin: 0 auto;
}

.duration-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.duration-inputs input {
    text-align: center;
}

/* ===== Profile/Settings ===== */
.settings-container {
    max-width: 800px;
    margin: 0 auto;
}

.settings-header {
    margin-bottom: var(--space-xl);
}

.settings-title {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.settings-title i {
    color: var(--primary);
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.profile-header {
    position: relative;
    padding-bottom: 40px;
}

.profile-banner {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
}

.profile-avatar-wrapper {
    position: absolute;
    left: 40px;
    bottom: -10px;
    width: 120px;
    height: 120px;
    padding: 4px;
    background: var(--bg-primary);
    border-radius: 50%;
    z-index: 2;
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 24px;
    height: 24px;
    background: var(--success);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
}

.profile-title {
    margin-left: 180px;
    padding: var(--space-lg);
}

.profile-title h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-title span {
    color: var(--text-muted);
}

.profile-content {
    padding: var(--space-2xl);
}

.profile-tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
    padding-bottom: var(--space-md);
}

.profile-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.profile-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.profile-tab i {
    color: var(--primary);
    opacity: 0.7;
}

.profile-tab.active {
    color: var(--text-primary);
    background: var(--primary-subtle);
}

.profile-tab.active i {
    opacity: 1;
}

.profile-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.profile-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-grid {
    display: grid;
    gap: var(--space-xl);
    max-width: 600px;
}

.info-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.info-group input,
.info-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.info-group textarea {
    height: 120px;
    resize: none;
}

.info-group input:focus,
.info-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--primary-subtle);
}

/* ===== Identity Selector ===== */
.identity-selector {
    display: flex;
    gap: var(--space-sm);
    background: var(--bg-input);
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.identity-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
}

.identity-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.identity-option.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

.identity-option[data-identity="kick"].active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.identity-option[data-identity="discord"].active {
    background: rgba(88, 101, 242, 0.1);
    color: #5865f2;
}

.static-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-input);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.kick-account-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-input);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.kick-avatar {
    width: 50px;
    height: 50px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--success);
}

.kick-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kick-info span:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.profile-actions {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

/* ===== User Navigation ===== */
.btn-discord-connect {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
}

.btn-discord-connect:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
}

.btn-discord-connect img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.user-nav-item:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px) scale(1);
}

.user-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 180px;
}

.user-dropdown-menu .logout-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger) !important;
}

.user-dropdown-menu .edit-profile-btn:hover {
    background: var(--bg-hover) !important;
    color: var(--text-secondary) !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .raffle-container {
        grid-template-columns: 1fr;
    }
    
    .trivia-container {
        grid-template-columns: 1fr;
    }
    
    .wheel-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-md);
        flex-wrap: wrap;
        gap: 10px;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .navbar {
        height: auto;
        min-height: 70px;
    }
    
    .nav-right {
        width: 100%;
        justify-content: center;
        order: 2;
    }
    
    .main-content {
        padding: var(--space-md);
        margin-top: 120px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .stats-bar {
        flex-wrap: wrap;
    }
    
    .stat-card {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .main-content {
        margin-top: 140px;
    }
}

/* ===== Raffle Settings Modal ===== */
.raffle-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.raffle-settings-modal.active {
    display: flex;
    opacity: 1;
}

.raffle-settings-content {
    background: linear-gradient(145deg, rgba(15, 15, 22, 0.98) 0%, rgba(10, 10, 15, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.raffle-settings-modal.active .raffle-settings-content {
    transform: scale(1);
}

.raffle-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.raffle-settings-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.raffle-settings-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.raffle-settings-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.raffle-settings-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.raffle-settings-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.settings-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-section-header i {
    color: var(--primary);
}

.settings-section-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.role-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.role-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.role-option:hover {
    background: rgba(15, 15, 22, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.role-option input[type="checkbox"] {
    display: none;
}

.role-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.role-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.role-icon.subscriber-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-icon.vip-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.role-icon.og-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.role-icon.mod-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.role-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.role-check {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s ease;
}

.role-option input[type="checkbox"]:checked ~ .role-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.role-option input[type="checkbox"]:checked ~ .role-option-content .role-name {
    color: #fff;
}

.role-option:has(input[type="checkbox"]:checked) {
    border-color: rgba(255, 59, 59, 0.3);
    background: rgba(255, 59, 59, 0.05);
}

.raffle-settings-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.raffle-settings-footer .btn {
    width: 100%;
}

@media (max-width: 480px) {
    .role-options {
        grid-template-columns: 1fr;
    }
}


/* ===== Slots Layout ===== */
.slots-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--space-xl);
}

.slots-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.slots-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Slots Stats */
.stat-icon.calls {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
}

/* Slots Calls Card */
.slots-calls-card {
    flex: 1;
    min-height: 400px;
}

.slots-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.slots-empty {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    color: var(--text-dim);
    width: 100%;
}

.slots-empty i {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
    color: var(--accent-gold);
}

.slots-empty p {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
}

.slots-empty span {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Slot Call Card - Compact Chip Style */
.slot-call-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(15, 15, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all var(--transition-normal);
    position: relative;
}

.slot-call-card:hover {
    background: rgba(251, 191, 36, 0.03);
    border-color: rgba(251, 191, 36, 0.2);
}

.slot-call-card.new-call {
    animation: slotCallPulse 0.4s ease-out;
}

@keyframes slotCallPulse {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.slot-call-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.slot-call-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot-call-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.slot-call-username {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-gold);
    white-space: nowrap;
}

.slot-call-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    word-break: break-word;
}

.slot-call-name i {
    color: var(--accent-gold);
    font-size: 0.75rem;
}

.slot-call-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.slot-call-remove {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
    font-size: 0.7rem;
    padding: 0;
}

.slot-call-card:hover .slot-call-remove {
    opacity: 1;
}

.slot-call-remove:hover {
    color: var(--danger);
}

/* Slots calls list - flex wrap for multiple items */
.slots-calls-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
    align-content: flex-start;
}

/* Slots Responsive */
@media (max-width: 1024px) {
    .slots-container {
        grid-template-columns: 1fr;
    }
    
    .slots-left {
        order: 2;
    }
    
    .slots-right {
        order: 1;
    }
}

@media (max-width: 768px) {
    .slot-call-card {
        padding: var(--space-sm);
    }
    
    .slot-call-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .slot-call-name {
        font-size: 1rem;
    }
}


/* ===== Slots Settings Modal ===== */
.slots-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slots-settings-modal.active {
    display: flex;
    opacity: 1;
}

.slots-settings-content {
    background: linear-gradient(165deg, #0f0f14 0%, #080810 100%);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(88, 101, 242, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slots-settings-modal.active .slots-settings-content {
    transform: scale(1) translateY(0);
}

.slots-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
    position: relative;
}

.slots-settings-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #5865F2, transparent);
}

.slots-settings-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.slots-settings-title i {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.slots-settings-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.slots-settings-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.slots-settings-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

.slots-settings-body .settings-section {
    background: linear-gradient(145deg, rgba(88, 101, 242, 0.08) 0%, rgba(88, 101, 242, 0.02) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 18px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.slots-settings-body .settings-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.slots-settings-body .settings-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slots-settings-body .settings-section-header i {
    color: #5865F2;
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px rgba(88, 101, 242, 0.5));
}

.slots-settings-body .settings-section-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.webhook-input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.webhook-input-group .form-group {
    margin-bottom: 0;
}

.webhook-input-group .form-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(88, 101, 242, 0.3);
}

.webhook-input-group .form-input:focus {
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.2);
}

.webhook-toggle {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.webhook-toggle .toggle-label {
    color: var(--text-primary);
    font-weight: 500;
}

.webhook-input-group .btn-outline {
    border-color: rgba(88, 101, 242, 0.4);
    color: #5865F2;
}

.webhook-input-group .btn-outline:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
}

.slots-settings-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(88, 101, 242, 0.2);
    background: linear-gradient(180deg, transparent 0%, rgba(88, 101, 242, 0.05) 100%);
}

.slots-settings-footer .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.slots-settings-footer .btn:hover {
    background: linear-gradient(135deg, #6875f5, #5865F2);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* Discord icon color in input */
.webhook-input-group .input-icon {
    color: #5865F2;
}

.webhook-input-group .form-input:focus + .input-icon {
    color: #5865F2;
}

/* Discord toggle color when enabled */
.webhook-toggle .toggle-option input:checked + .toggle-slider {
    background: #5865F2;
}

.webhook-toggle .toggle-option input:checked + .toggle-slider::before {
    transform: translateX(20px);
}


/* ===== Comic Radio Button Navigation ===== */
.comic-radio-group {
    --bg: #ffd700;
    --text-light: #ffffff;
    --text-dark: #000000;
    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 12px;
    border: 4px solid var(--text-dark);
    box-shadow: 8px 8px 0px var(--text-dark);
    overflow: hidden;
    width: fit-content;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-style: italic;
    font-weight: 500;
}

.comic-radio-group input {
    display: none;
}

.comic-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    font-size: 18px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    letter-spacing: 1px;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
    text-shadow:
        -1px -1px 0 var(--text-light),
        1px -1px 0 var(--text-light),
        -1px 1px 0 var(--text-light),
        1px 1px 0 var(--text-light);
}

.comic-radio-group label i {
    font-style: normal;
    font-size: 16px;
}

.comic-radio-group input:checked + label {
    color: var(--text-light);
    text-shadow:
        -2px -2px 0 var(--text-dark),
        2px -2px 0 var(--text-dark),
        -2px 2px 0 var(--text-dark),
        2px 2px 0 var(--text-dark);
}

.comic-glider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% / 5);
    border-radius: 8px;
    z-index: 1;
    transition:
        transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56),
        background 0.4s ease-in-out,
        box-shadow 0.4s ease-in-out;
    border-right: 4px solid var(--text-dark);
    border-left: 4px solid var(--text-dark);
}

/* Raffle - Red */
#comic-raffle:checked ~ .comic-glider {
    transform: translateX(0%);
    background-color: #e74c3c;
    background-image: radial-gradient(circle at 4px 4px, #c0392b 2px, transparent 0);
    background-size: 8px 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Trivia - Blue */
#comic-trivia:checked ~ .comic-glider {
    transform: translateX(100%);
    background-color: #3498db;
    background-image: radial-gradient(circle at 4px 4px, #2980b9 2px, transparent 0);
    background-size: 8px 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Wheel - Green */
#comic-wheel:checked ~ .comic-glider {
    transform: translateX(200%);
    background-color: #2ecc71;
    background-image: radial-gradient(circle at 4px 4px, #27ae60 2px, transparent 0);
    background-size: 8px 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Slots - Purple */
#comic-slots:checked ~ .comic-glider {
    transform: translateX(300%);
    background-color: #9b59b6;
    background-image: radial-gradient(circle at 4px 4px, #8e44ad 2px, transparent 0);
    background-size: 8px 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Giveaway - Gold */
#comic-giveaway:checked ~ .comic-glider {
    transform: translateX(400%);
    background-color: #f1c40f;
    background-image: radial-gradient(circle at 4px 4px, #d4ac0d 2px, transparent 0);
    background-size: 8px 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for comic radio group */
@media (max-width: 768px) {
    .comic-radio-group {
        box-shadow: 4px 4px 0px var(--text-dark);
        border-width: 3px;
    }
    
    .comic-radio-group label {
        min-width: 70px;
        font-size: 12px;
        padding: 0.4rem 0.6rem;
    }
    
    .comic-radio-group label i {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .comic-radio-group {
        flex-wrap: wrap;
        width: 100%;
        max-width: 220px;
        box-shadow: 3px 3px 0px var(--text-dark);
    }
    
    .comic-radio-group label {
        min-width: 50%;
        flex: 0 0 50%;
        font-size: 11px;
        padding: 0.4rem 0.5rem;
        gap: 4px;
    }
    
    .comic-radio-group label i {
        font-size: 10px;
    }
    
    /* 5th tab (Giveaway) takes full width on bottom */
    .comic-radio-group label[for="comic-giveaway"] {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .comic-glider {
        width: 50%;
        height: calc(100% / 3);
    }
    
    /* Row 1: Raffle, Trivia */
    #comic-raffle:checked ~ .comic-glider {
        transform: translateX(0%) translateY(0%);
    }
    
    #comic-trivia:checked ~ .comic-glider {
        transform: translateX(100%) translateY(0%);
    }
    
    /* Row 2: Wheel, Slots */
    #comic-wheel:checked ~ .comic-glider {
        transform: translateX(0%) translateY(100%);
    }
    
    #comic-slots:checked ~ .comic-glider {
        transform: translateX(100%) translateY(100%);
    }
    
    /* Row 3: Giveaway (full width) */
    #comic-giveaway:checked ~ .comic-glider {
        transform: translateX(0%) translateY(200%);
        width: 100%;
    }
}


/* ===== Comic Brutal Button Style ===== */
.comic-brutal-button {
    --primary-color: #ff3d3d;
    --secondary-color: #3d3dff;
    --text-color: #000000;
    --accent-color: #ffef00;
    --panel-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.75);
    position: relative;
    font-size: 1em;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transform: rotate(-2deg);
    transform-origin: center;
    transition: transform 0.15s cubic-bezier(0.22, 0.61, 0.36, 1);
    width: 100%;
}

.comic-brutal-button .button-inner {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.8em 1.5em;
    z-index: 3;
    overflow: hidden;
    transform: skew(-3deg, 1deg);
    transition: transform 0.15s cubic-bezier(0.22, 0.61, 0.36, 1);
    clip-path: polygon(0% 10%, 3% 0%, 97% 0%, 100% 10%, 100% 90%, 97% 100%, 3% 100%, 0% 90%);
}

.comic-brutal-button .button-text {
    position: relative;
    font-weight: 900;
    font-size: 1.1em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 5;
    color: var(--text-color);
    text-shadow:
        0.05em 0.05em 0 var(--panel-color),
        -0.05em -0.05em 0 var(--panel-color),
        0.05em -0.05em 0 var(--panel-color),
        -0.05em 0.05em 0 var(--panel-color);
    transform: rotate(2deg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comic-brutal-button .button-text i {
    font-style: normal;
}

.comic-brutal-button .button-frame {
    position: absolute;
    top: -0.3em;
    left: -0.3em;
    right: -0.3em;
    bottom: -0.3em;
    background-color: var(--accent-color);
    border: 0.15em solid var(--text-color);
    z-index: 1;
    transition: transform 0.15s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.comic-brutal-button .button-shadow {
    position: absolute;
    top: 0.4em;
    left: 0.4em;
    right: -0.4em;
    bottom: -0.4em;
    background-color: var(--shadow-color);
    z-index: 0;
    transition: all 0.15s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.comic-brutal-button .halftone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.2) 0.1em, transparent 0.1em);
    background-size: 0.5em 0.5em;
    background-position: 0 0;
    opacity: 0.3;
    z-index: 2;
    mix-blend-mode: multiply;
}

.comic-brutal-button .ink-splatter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.08) 20%, transparent 50%),
        radial-gradient(circle at 70% 65%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.08) 25%, transparent 50%),
        radial-gradient(circle at 40% 50%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.08) 30%, transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.08) 15%, transparent 40%);
}

.comic-brutal-button:hover {
    transform: rotate(-1deg) scale(1.05);
}

.comic-brutal-button:hover .button-inner {
    transform: skew(-5deg, 2deg);
    background-color: var(--secondary-color);
}

.comic-brutal-button:hover .button-text {
    color: var(--panel-color);
    text-shadow:
        0.05em 0.05em 0 var(--text-color),
        -0.05em -0.05em 0 var(--text-color),
        0.05em -0.05em 0 var(--text-color),
        -0.05em 0.05em 0 var(--text-color);
}

.comic-brutal-button:hover .button-shadow {
    transform: translate(0.2em, 0.2em);
}

.comic-brutal-button:hover .ink-splatter {
    opacity: 1;
}

.comic-brutal-button:focus {
    outline: none;
}

.comic-brutal-button:focus .button-frame {
    border-color: var(--secondary-color);
}

.comic-brutal-button:active {
    transform: rotate(0) scale(0.98);
}

.comic-brutal-button:active .button-inner {
    transform: skew(0, 0);
}

.comic-brutal-button:active .button-shadow {
    transform: translate(0.1em, 0.1em);
}

@keyframes burst {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.comic-brutal-button:active .button-text {
    animation: burst 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dash {
    to { stroke-dashoffset: -20; }
}

.comic-brutal-button:focus::after {
    content: "";
    position: absolute;
    top: -0.5em;
    left: -0.5em;
    right: -0.5em;
    bottom: -0.5em;
    border: 0.15em dashed var(--text-color);
    z-index: 0;
    animation: dash 1s linear infinite;
    pointer-events: none;
}

.comic-brutal-button::before {
    content: "";
    position: absolute;
    top: 0.4em;
    left: 0.8em;
    width: 1em;
    height: 1em;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.comic-brutal-button:hover::before {
    opacity: 0.7;
}

/* Disabled state for comic brutal button */
.comic-brutal-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: rotate(-2deg);
}

.comic-brutal-button:disabled:hover {
    transform: rotate(-2deg) scale(1);
}

.comic-brutal-button:disabled:hover .button-inner {
    transform: skew(-3deg, 1deg);
    background-color: var(--primary-color);
}

.comic-brutal-button:disabled:hover .button-text {
    color: var(--text-color);
    text-shadow:
        0.05em 0.05em 0 var(--panel-color),
        -0.05em -0.05em 0 var(--panel-color),
        0.05em -0.05em 0 var(--panel-color),
        -0.05em 0.05em 0 var(--panel-color);
}

.comic-brutal-button:disabled:hover .button-shadow {
    transform: translate(0, 0);
}


/* ===== Link Warning Modal Buttons - 3D Style ===== */
.link-warning-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: 0;
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.link-warning-btn.close-btn {
    background-color: #3a3a45;
    box-shadow: #2a2a35 0px 6px 0px 0px;
    color: #fff;
}

.link-warning-btn.close-btn:hover {
    box-shadow: #2a2a35 0px 4px 0px 0px;
    transform: translateY(2px);
}

.link-warning-btn.close-btn:active {
    box-shadow: #2a2a35 0px 0px 0px 0px;
    transform: translateY(6px);
    transition: 200ms;
}

.link-warning-btn.open-btn {
    background-color: rgb(255, 56, 86);
    box-shadow: rgb(201, 46, 70) 0px 6px 0px 0px;
    color: #fff;
}

.link-warning-btn.open-btn:hover {
    box-shadow: rgb(201, 46, 70) 0px 4px 0px 0px;
    transform: translateY(2px);
}

.link-warning-btn.open-btn:active {
    box-shadow: rgb(201, 46, 70) 0px 0px 0px 0px;
    transform: translateY(6px);
    transition: 200ms;
}
