/* ============================================
   Çekiliş Türkiye - Yenilenmiş Arayüz
   3 Kolonlu Layout
   ============================================ */

:root {
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    
    --brand-yellow: #ffcd00;
    
    --accent-primary: #ec4899;
    --accent-secondary: #22c55e;
    --accent-tertiary: #ffcd00;
    --accent-gold: #ffcd00;
    --accent-silver: #9ca3af;
    --accent-bronze: #b45309;
    
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    --gradient-1: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    --gradient-2: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-glow: linear-gradient(135deg, #ec4899, #22c55e, #f59e0b);
    
    --shadow-glow: 0 0 40px rgba(236, 72, 153, 0.35);
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    
    --border-radius: 18px;
    --border-radius-sm: 12px;
    --border-radius-lg: 24px;
    
    --sidebar-width: 280px;
    --winners-width: 320px;

    /* Slot makinesi renkleri */
    --slot-bg: #0f172a;
    --slot-digit-color: #f9fafb;
    --slot-winner-color: #ffcd00;
    
    /* Buton gradient */
    --btn-gradient-start: #f97316;
    --btn-gradient-mid: #ffcd00;
    --btn-gradient-end: #ec4899;
    
    /* Orb renkleri */
    --orb1-color: #ec4899;
    --orb2-color: #22c55e;
    --orb3-color: #3b82f6;
    
    /* Font ailesi */
    --font-body: 'Exo 2', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

/* ============================================
   Koyu Tema
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: rgba(30, 41, 59, 0.9);
    --bg-card-hover: rgba(30, 41, 59, 1);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 45%, #1e1e2e 100%);
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .winners-panel {
    background: var(--bg-secondary);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .setting-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .link-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--text-secondary);
}

[data-theme="dark"] .link-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .summary-stat {
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .mode-label {
    background: rgba(15, 23, 42, 0.4);
}

[data-theme="dark"] .slot-frame {
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 45%, #1e1e2e 100%);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .current-prize {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(236, 72, 153, 0.4);
}

[data-theme="dark"] .prize-name {
    color: var(--text-primary);
}

[data-theme="dark"] .panel-toggle {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .panel-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .modal {
    background: var(--bg-secondary);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .modal-header {
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .modal-footer {
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(71, 85, 105, 0.8);
}

[data-theme="dark"] .data-textarea,
[data-theme="dark"] .prizes-textarea,
[data-theme="dark"] .prize-input-group input,
[data-theme="dark"] .field-select,
[data-theme="dark"] .custom-select {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .prizes-textarea:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .prizes-textarea-label,
[data-theme="dark"] .prizes-grid-label {
    color: var(--text-primary);
}

[data-theme="dark"] .prizes-divider::before,
[data-theme="dark"] .prizes-divider::after {
    background: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .field-select option,
[data-theme="dark"] .custom-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .advanced-settings-panel .field-select {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .format-label {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .format-option input[type="radio"]:checked + .format-label {
    background: rgba(236, 72, 153, 0.15);
}

[data-theme="dark"] .animation-label {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .advanced-settings-panel {
    background: var(--bg-secondary);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .advanced-settings-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(34, 197, 94, 0.15) 100%);
}

[data-theme="dark"] .advanced-settings-body {
    background: var(--bg-secondary);
}

[data-theme="dark"] .advanced-settings-panel .setting-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .advanced-settings-panel .setting-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .advanced-settings-panel .setting-hint {
    color: var(--text-muted);
}

[data-theme="dark"] .advanced-settings-panel .animation-label {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .advanced-settings-panel .animation-label:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(236, 72, 153, 0.4);
}

[data-theme="dark"] .advanced-settings-panel .animation-option input:checked + .animation-label {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .advanced-settings-panel .animation-text strong {
    color: var(--text-primary);
}

[data-theme="dark"] .advanced-settings-panel .animation-text small {
    color: var(--text-muted);
}

[data-theme="dark"] .winner-item {
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="dark"] .count-btn {
    background: rgba(51, 65, 85, 0.6);
}

[data-theme="dark"] .duration-control input[type="range"] {
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.15) 0%, 
        rgba(34, 197, 94, 0.15) 50%, 
        rgba(255, 205, 0, 0.15) 100%);
}

[data-theme="dark"] .duration-control input[type="range"]:hover {
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.25) 0%, 
        rgba(34, 197, 94, 0.25) 50%, 
        rgba(255, 205, 0, 0.25) 100%);
}

[data-theme="dark"] .duration-control input[type="range"]::-webkit-slider-thumb {
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.5), 0 0 0 2px rgba(30, 41, 59, 0.8);
}

[data-theme="dark"] .duration-control input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.7), 0 0 0 2px rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .duration-control input[type="range"]::-moz-range-thumb {
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.5), 0 0 0 2px rgba(30, 41, 59, 0.8);
}

[data-theme="dark"] .duration-control input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.7), 0 0 0 2px rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .duration-control input[type="range"]::-moz-range-track {
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.15) 0%, 
        rgba(34, 197, 94, 0.15) 50%, 
        rgba(255, 205, 0, 0.15) 100%);
}

[data-theme="dark"] .settings-icon-btn {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-secondary);
}

[data-theme="dark"] .settings-icon-btn:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="dark"] #open-customization-modal:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: var(--accent-tertiary);
    color: var(--accent-tertiary);
}

/* Dark mode - Winners Panel Buttons */
[data-theme="dark"] .winners-header {
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .winners-actions .btn {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .winners-actions .btn:hover:not(:disabled) {
    background: rgba(71, 85, 105, 0.9);
    border-color: var(--accent-secondary);
}

[data-theme="dark"] .winners-actions .btn:disabled {
    background: rgba(51, 65, 85, 0.4);
    color: var(--text-muted);
    border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .winners-actions .btn-secondary {
    background: rgba(51, 65, 85, 0.6);
}

[data-theme="dark"] .empty-winners {
    color: var(--text-muted);
}

/* Dark mode - Customization Modal */
[data-theme="dark"] .customization-section {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .theme-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .toggle-row span {
    color: var(--text-secondary);
}

[data-theme="dark"] .toggle-row {
    border-color: rgba(148, 163, 184, 0.1);
}

[data-theme="dark"] .color-picker-group label {
    color: var(--text-muted);
}

[data-theme="dark"] .font-selector label {
    color: var(--text-muted);
}

[data-theme="dark"] .radius-option span:last-child,
[data-theme="dark"] .shadow-option span:last-child {
    color: var(--text-muted);
}

[data-theme="dark"] .shadow-preview {
    background: var(--bg-card);
    border-color: rgba(148, 163, 184, 0.2);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { font-size: 15px; }

body {
    font-family: 'Exo 2', sans-serif;
    background: radial-gradient(circle at top, #e5f0ff 0, #f9fafb 45%, #eef2ff 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   tsParticles Container
   ============================================ */
#tsparticles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Kutlama konfeti container */
#tsparticles-celebration {
    position: fixed;
    inset: 0;
    z-index: 2500;
    pointer-events: none;
}

/* ============================================
   Background - Hafifletilmiş Orbler
   (blur kaldırıldı, opacity düşürüldü, animasyon basitleştirildi)
   ============================================ */
.background-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    /* Blur KALDIRILDI - en büyük performans kazancı buradan */
    opacity: 0.25;
    will-change: transform;
}

.orb-1 { 
    width: 500px; 
    height: 500px; 
    background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.6), rgba(255, 205, 0, 0.4) 50%, transparent 75%);
    top: -150px; 
    left: -150px;
    animation: bgOrbFloat1 20s ease-in-out infinite;
}

.orb-2 { 
    width: 400px; 
    height: 400px; 
    background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.55), rgba(56, 189, 248, 0.4) 50%, transparent 75%);
    bottom: -120px; 
    right: -120px;
    animation: bgOrbFloat2 18s ease-in-out infinite;
}

.orb-3 { 
    width: 280px; 
    height: 280px; 
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.25), rgba(255, 205, 0, 0.15) 50%, transparent 75%);
    top: 35%; 
    left: 55%; 
    opacity: 0.15; /* Daha az belirgin */
    animation: bgOrbFloat3 12s ease-in-out infinite; /* Daha hızlı hareket */
}

/* Daha yavaş ve basit animasyonlar - CPU yükünü azaltır */
@keyframes bgOrbFloat1 {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(60px, 40px, 0);
    }
}

@keyframes bgOrbFloat2 {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-50px, -30px, 0);
    }
}

@keyframes bgOrbFloat3 {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    33% {
        transform: translate(-60%, 50px);
    }
    66% {
        transform: translate(-40%, -40px);
    }
}

/* Eski CSS partikülleri KALDIRILDI - tsParticles ile değiştirildi */
/* ::before ve ::after pseudo-elementleri artık kullanılmıyor */

/* ============================================
   App Layout - 3 Kolon
   ============================================ */
.app-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--winners-width);
    min-height: 100vh;
    gap: 1.5rem;
    padding: 1.5rem;
    background: transparent;
}

.app-container.sidebar-collapsed {
    grid-template-columns: 0 1fr var(--winners-width);
}

.app-container.winners-collapsed {
    grid-template-columns: var(--sidebar-width) 1fr 0;
}

.app-container.sidebar-collapsed.winners-collapsed {
    grid-template-columns: 0 1fr 0;
}

/* ============================================
   Sol Panel - Sidebar
   ============================================ */
.sidebar {
    background: var(--bg-secondary);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius-lg);
    margin: 0.5rem 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.app-container.sidebar-collapsed .sidebar {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-12px);
}

.sidebar-header {
    margin-bottom: 0.5rem;
}

.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sidebar-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin: 0;
}

.sidebar-icon-buttons {
    display: flex;
    gap: 0.5rem;
}

.settings-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.settings-icon-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: var(--transition-fast);
}

.settings-icon-btn:hover {
    background: rgba(236, 72, 153, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.settings-icon-btn:hover svg {
    transform: rotate(45deg);
}

/* Özelleştir butonu için farklı renk */
#open-customization-modal:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-tertiary);
    color: var(--accent-tertiary);
}

.sidebar-links {
    display: flex;
    gap: 0.5rem;
}

.link-btn {
    flex: 1;
    padding: 0.6rem;
    background: #f3f4ff;
    border: 1px dashed #c7d2fe;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.link-btn:hover {
    background: #e0e7ff;
    border-color: #4f46e5;
    color: #111827;
}

.link-icon { font-size: 1rem; }

/* Setting Cards */
.setting-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.setting-card h3 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mode-option {
    cursor: pointer;
}

.mode-option input { display: none; }

.mode-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.mode-option input:checked + .mode-label {
    background: rgba(0, 245, 212, 0.1);
    border-color: var(--accent-secondary);
}

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

.mode-text {
    display: flex;
    flex-direction: column;
}

.mode-text strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.mode-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Prize Count Control */
.prize-count-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.count-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.count-btn:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

.count-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-tertiary);
    min-width: 60px;
    text-align: center;
}

.setting-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Duration Control */
.duration-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.duration-control input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.2) 0%, 
        rgba(34, 197, 94, 0.2) 50%, 
        rgba(255, 205, 0, 0.2) 100%);
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
}

.duration-control input[type="range"]:hover {
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.3) 0%, 
        rgba(34, 197, 94, 0.3) 50%, 
        rgba(255, 205, 0, 0.3) 100%);
}

.duration-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.duration-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.duration-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.duration-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.duration-control input[type="range"]::-moz-range-track {
    height: 8px;
    background: linear-gradient(90deg, 
        rgba(236, 72, 153, 0.2) 0%, 
        rgba(34, 197, 94, 0.2) 50%, 
        rgba(255, 205, 0, 0.2) 100%);
    border-radius: 4px;
}

.duration-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    min-width: 40px;
}

/* Participants Summary */
.participants-summary {
    margin-top: auto;
}

.summary-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: #f3f4ff;
    border-radius: var(--border-radius-sm);
}

.stat-num {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-tertiary);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Orta Alan - Main
   ============================================ */
.main-area {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.header {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-glow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    -webkit-text-fill-color: initial;
}

.panel-toggle {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition:
        background var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.panel-toggle:hover {
    background: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    border-color: #4f46e5;
}

.panel-toggle.is-collapsed {
    background: #0f172a;
    color: #f9fafb;
    border-color: transparent;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Raffle Section */
.raffle-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Paneller kapalıyken slot'u yukarı çek */
.app-container.sidebar-collapsed .raffle-section,
.app-container.winners-collapsed .raffle-section {
    margin-top: -8rem;
}

/* Her iki panel de kapalıyken daha da yukarı çek */
.app-container.sidebar-collapsed.winners-collapsed .raffle-section {
    margin-top: -15rem;
}

/* Slot Machine */
.slot-machine {
    display: flex;
    justify-content: center;
}

.slot-frame {
    position: relative;
    background: radial-gradient(circle at top, #eef2ff 0, #e5e7eb 45%, #e0f2fe 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    border: 2px solid rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

/* Slot Arka Plan - Basitleştirilmiş (blur kaldırıldı) */
.slot-bg-blobs {
    position: absolute;
    inset: 12px;
    border-radius: calc(var(--border-radius-lg) - 8px);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.15), transparent 55%),
                radial-gradient(circle at 90% 100%, rgba(56, 189, 248, 0.12), transparent 55%);
}

/* Blob'lar basitleştirildi - blur ve animasyon kaldırıldı */
.slot-blob {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(236, 72, 153, 0.25), transparent 70%);
    /* filter: blur KALDIRILDI */
    opacity: 0.3;
}

.slot-blob.blob-1 {
    top: -30px;
    left: -50px;
}

.slot-blob.blob-2 {
    bottom: -50px;
    right: -30px;
    background: radial-gradient(circle at 30% 30%, rgba(34, 197, 94, 0.25), transparent 70%);
}

.slot-blob.blob-3 {
    top: 20%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.2), transparent 70%);
}

/* Slot partikülleri gizlendi - tsParticles zaten arka planda çalışıyor */
.slot-particles {
    display: none;
}

.slot-particle {
    display: none;
}

.slot-multi-window {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: radial-gradient(circle at 20% 0%, rgba(15, 23, 42, 0.9) 0%, #020617 55%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.85), 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.slot-reel-container {
    position: relative;
    width: 52px;
    height: 70px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 6px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.slot-reel-container::before,
.slot-reel-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 12px;
    z-index: 2;
    pointer-events: none;
}

.slot-reel-container::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.slot-reel-container::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.slot-reel {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.slot-digit {
    width: 52px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #f9fafb;
    text-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
}

.slot-digit.winner {
    color: var(--accent-tertiary);
    text-shadow: 0 0 20px var(--accent-tertiary), 0 0 40px var(--accent-tertiary);
    animation: digitWin 0.5s ease infinite alternate;
}

@keyframes digitWin {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.slot-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
    pointer-events: none;
    border-radius: var(--border-radius-lg);
    z-index: 2;
}

/* Current Prize Display */
.current-prize {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15), 
                0 0 0 1px rgba(236, 72, 153, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.current-prize::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.1), transparent);
    animation: prizeShimmer 3s infinite;
}

@keyframes prizeShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.prize-rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899 0%, #f97316 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.prize-name {
    font-size: 1rem;
    color: #111827;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

/* Start Button */
.btn-start {
    position: relative;
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #f97316 0%, var(--brand-yellow) 45%, #ec4899 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-normal);
}

.btn-start:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.btn-start:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-start.spinning { pointer-events: none; }

.btn-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-glow);
    background-size: 200% 200%;
    border-radius: 50px;
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-start:hover:not(:disabled) .btn-glow {
    opacity: 0.7;
    animation: gradientShift 2s ease infinite;
}

.progress-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

#draw-progress {
    color: var(--accent-secondary);
    font-family: 'Orbitron', sans-serif;
}

/* ============================================
   Sağ Panel - Kazananlar
   ============================================ */
.winners-panel {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border-radius: var(--border-radius-lg);
    margin: 0.5rem 0;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.app-container.winners-collapsed .winners-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateX(12px);
}

.winners-header {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148,163,184,0.25);
    gap: 0.75rem;
}

.winners-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent-tertiary);
}

.winners-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.winners-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 80vh;
}

.empty-winners {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
}

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

.winner-rank {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.winner-rank.gold {
    background: radial-gradient(circle at 30% 0%, #fff7cc 0, var(--accent-gold) 45%, #d97706 100%);
    color: #111827;
}
.winner-rank.silver {
    background: radial-gradient(circle at 30% 0%, #f9fafb 0, #e5e7eb 45%, #9ca3af 100%);
    color: #111827;
}
.winner-rank.bronze {
    background: radial-gradient(circle at 30% 0%, #fef3c7 0, #f97316 45%, #92400e 100%);
    color: #111827;
}
.winner-rank.normal {
    background: #e5e7eb;
    color: var(--text-secondary);
}

.winner-info {
    flex: 1;
    min-width: 0;
}

.winner-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.winner-prize {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--text-primary);
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-danger {
    background: rgba(255, 45, 117, 0.2);
    color: var(--accent-primary);
}

.btn-danger:hover {
    background: rgba(255, 45, 117, 0.3);
}

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

/* ============================================
   Modals
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.modal {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalIn 0.3s ease;
    border: 1px solid rgba(148,163,184,0.35);
}

.modal-wide {
    max-width: 700px;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(148,163,184,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--accent-secondary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(148,163,184,0.25);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Data Modal */
.data-format-selector {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.format-option {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.format-option input[type="radio"] {
    display: none;
}

.format-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.format-label:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(236, 72, 153, 0.4);
}

.format-option input[type="radio"]:checked + .format-label {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.format-label strong {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.format-label small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.data-help {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.data-help code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 245, 212, 0.1);
    color: var(--accent-secondary);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.data-textarea {
    width: 100%;
    min-height: 250px;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: vertical;
}

.data-textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

.data-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
}

.data-message.success {
    background: rgba(0, 245, 212, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.data-message.error {
    background: rgba(255, 45, 117, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(255, 45, 117, 0.3);
}

/* Prizes Modal */
/* Ödül Textarea Bölümü */
.prizes-textarea-section {
    margin-bottom: 1.5rem;
}

.prizes-textarea-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.prizes-textarea {
    width: 100%;
    min-height: 150px;
    padding: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.85rem;
    resize: vertical;
    transition: var(--transition-fast);
}

.prizes-textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.prizes-textarea-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.prizes-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
}

.prizes-divider::before,
.prizes-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
}

.prizes-divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.prizes-grid-section {
    margin-top: 1.5rem;
}

.prizes-grid-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.prize-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(15,23,42,0.03);
    border-radius: var(--border-radius-sm);
}

.prize-input-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 30px;
    color: var(--accent-tertiary);
}

.prize-input-group input {
    flex: 1;
    padding: 0.5rem;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.prize-input-group input:focus {
    outline: none;
    border-color: var(--accent-secondary);
}

/* ============================================
   Winner Notification
   ============================================ */
.winner-notification {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.winner-notification.show {
    opacity: 1;
    visibility: visible;
}

.notification-content {
    text-align: center;
    animation: notificationIn 0.5s ease;
}

@keyframes notificationIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.notification-rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: #f59e0b;
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.6));
}

.notification-prize {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.notification-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3rem;
    margin-bottom: 1.5rem;
    animation: winnerGlow 2s ease infinite;
}

@keyframes winnerGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(254, 228, 64, 0.8)); }
    50% { filter: drop-shadow(0 0 40px rgba(254, 228, 64, 1)); }
}

/* Confetti */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    to { top: 100vh; transform: rotate(720deg); }
}

/* ============================================
   Gelişmiş Ayarlar Panel
   ============================================ */
.advanced-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    border-radius: var(--border-radius-lg);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal), transform var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(148, 163, 184, 0.2);
}

.advanced-settings-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.advanced-settings-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 85vh;
}

.advanced-settings-header {
    padding: 1.5rem;
    border-bottom: 2px solid rgba(148, 163, 184, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.advanced-settings-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.advanced-settings-close {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 300;
}

.advanced-settings-close:hover {
    color: #ffffff;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

.advanced-settings-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
}

.advanced-settings-panel .setting-card {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.advanced-settings-panel .setting-card h3 {
    color: var(--text-primary);
    font-weight: 600;
}

.advanced-settings-panel .field-select {
    background: #ffffff;
    border: 2px solid rgba(148, 163, 184, 0.4);
    color: var(--text-primary);
}

.advanced-settings-panel .field-select:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.advanced-settings-panel .animation-label {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.3);
}

.advanced-settings-panel .animation-label:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(236, 72, 153, 0.5);
}

.advanced-settings-panel .animation-option input:checked + .animation-label {
    background: rgba(236, 72, 153, 0.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.advanced-settings-panel .animation-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.advanced-settings-panel .setting-hint {
    color: var(--text-secondary);
    font-weight: 400;
}

.advanced-settings-panel .toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-weight: 600;
}

.save-draw-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.save-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: var(--text-primary);
}

.save-field input {
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-primary);
    background: #ffffff;
}

.save-field input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.input-with-button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.save-status-success { color: var(--accent-secondary); }
.save-status-error { color: #dc2626; }

.w-100 { width: 100%; }

/* Overlay backdrop */
.advanced-settings-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1499;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.advanced-settings-backdrop.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 900px) {
    .advanced-settings-panel {
        max-width: 90%;
        max-height: 90vh;
    }
}

@media (max-width: 600px) {
    .advanced-settings-panel {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .advanced-settings-header {
        padding: 1rem;
    }
    
    .advanced-settings-body {
        padding: 1rem;
    }
}

/* ============================================
   Leaderboard Overlay
   ============================================ */
.leaderboard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(12px);
}

.leaderboard-overlay.show {
    opacity: 1;
    visibility: visible;
}

.leaderboard-container {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 0 100px rgba(236, 72, 153, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: leaderboardSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes leaderboardSlideIn {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.leaderboard-header {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(236, 72, 153, 0.15) 0%, transparent 100%);
    border-bottom: 2px solid rgba(255, 205, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.leaderboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.leaderboard-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-glow);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.trophy-icon {
    font-size: 3.5rem;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 0 20px rgba(255, 205, 0, 0.8));
    animation: trophyBounce 2s ease-in-out infinite;
}

@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

.leaderboard-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.leaderboard-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
    align-content: start;
}

/* Custom Scrollbar */
.leaderboard-content::-webkit-scrollbar {
    width: 10px;
}

.leaderboard-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.leaderboard-content::-webkit-scrollbar-thumb {
    background: rgba(255, 205, 0, 0.5);
    border-radius: 10px;
}

.leaderboard-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 205, 0, 0.7);
}

.leaderboard-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: itemFadeIn 0.5s ease forwards;
    min-height: 90px;
}

.leaderboard-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 205, 0, 0.3);
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Sıralı animasyon için delay */
.leaderboard-item:nth-child(1) { animation-delay: 0.05s; }
.leaderboard-item:nth-child(2) { animation-delay: 0.1s; }
.leaderboard-item:nth-child(3) { animation-delay: 0.15s; }
.leaderboard-item:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-item:nth-child(5) { animation-delay: 0.25s; }
.leaderboard-item:nth-child(6) { animation-delay: 0.3s; }
.leaderboard-item:nth-child(7) { animation-delay: 0.35s; }
.leaderboard-item:nth-child(8) { animation-delay: 0.4s; }
.leaderboard-item:nth-child(9) { animation-delay: 0.45s; }
.leaderboard-item:nth-child(10) { animation-delay: 0.5s; }
.leaderboard-item:nth-child(n+11) { animation-delay: 0.55s; }

/* Özel arka plan parıltısı */
.leaderboard-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.leaderboard-item:hover::before {
    opacity: 1;
}

.leaderboard-rank-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.leaderboard-rank-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: inherit;
    --webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.leaderboard-rank-badge.rank-1 {
    background: radial-gradient(circle at 30% 30%, #fff7cc 0%, #ffcd00 40%, #d97706 100%);
    color: #111827;
    box-shadow: 0 0 40px rgba(255, 205, 0, 0.8), 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: goldPulse 2s ease-in-out infinite;
}

.leaderboard-rank-badge.rank-2 {
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #e5e7eb 40%, #9ca3af 100%);
    color: #111827;
    box-shadow: 0 0 35px rgba(229, 231, 235, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: silverPulse 2s ease-in-out infinite;
}

.leaderboard-rank-badge.rank-3 {
    background: radial-gradient(circle at 30% 30%, #fef3c7 0%, #f97316 40%, #92400e 100%);
    color: #111827;
    box-shadow: 0 0 35px rgba(249, 115, 22, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: bronzePulse 2s ease-in-out infinite;
}

.leaderboard-rank-badge.rank-normal {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
    color: #ffffff;
}

@keyframes goldPulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(255, 205, 0, 0.8), 0 8px 25px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 60px rgba(255, 205, 0, 1), 0 12px 35px rgba(0, 0, 0, 0.5);
        transform: scale(1.05);
    }
}

@keyframes silverPulse {
    0%, 100% { 
        box-shadow: 0 0 35px rgba(229, 231, 235, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(229, 231, 235, 0.9), 0 12px 35px rgba(0, 0, 0, 0.5);
        transform: scale(1.05);
    }
}

@keyframes bronzePulse {
    0%, 100% { 
        box-shadow: 0 0 35px rgba(249, 115, 22, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(249, 115, 22, 0.9), 0 12px 35px rgba(0, 0, 0, 0.5);
        transform: scale(1.05);
    }
}

.leaderboard-details {
    flex: 1;
    min-width: 0;
}

.leaderboard-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.leaderboard-prize {
    font-size: 1rem;
    color: rgba(255, 205, 0, 0.9);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* İlk 3 için özel parlama efekti */
.leaderboard-item.top-3 {
    border-width: 2px;
}

.leaderboard-item.top-3::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    opacity: 0.3;
    pointer-events: none;
}

.leaderboard-item.top-3.rank-1 {
    border-color: rgba(255, 205, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 205, 0, 0.3);
}

.leaderboard-item.top-3.rank-1::after {
    background: radial-gradient(circle at 50% 0%, rgba(255, 205, 0, 0.3), transparent 70%);
}

.leaderboard-item.top-3.rank-2 {
    border-color: rgba(229, 231, 235, 0.5);
    box-shadow: 0 0 25px rgba(229, 231, 235, 0.2);
}

.leaderboard-item.top-3.rank-2::after {
    background: radial-gradient(circle at 50% 0%, rgba(229, 231, 235, 0.3), transparent 70%);
}

.leaderboard-item.top-3.rank-3 {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.2);
}

.leaderboard-item.top-3.rank-3::after {
    background: radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.3), transparent 70%);
}

.leaderboard-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Leaderboard Confetti */
.leaderboard-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.leaderboard-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: leaderboardConfettiFall linear forwards;
}

@keyframes leaderboardConfettiFall {
    to { 
        top: 110vh; 
        transform: rotate(720deg); 
        opacity: 0;
    }
}

/* Hidden */
.hidden {
    display: none !important;
}

/* ============================================
   Field Selector
   ============================================ */
.field-selector {
    width: 100%;
}

.field-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.03);
    border: 2px solid rgba(148, 163, 184, 0.4);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-select:hover {
    border-color: var(--accent-secondary);
}

.field-select:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* ============================================
   Animation Selector
   ============================================ */
.animation-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.animation-option {
    cursor: pointer;
}

.animation-option input { display: none; }

.animation-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: rgba(255,255,255,0.5);
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.animation-label:hover {
    background: rgba(255,255,255,0.8);
    border-color: rgba(236, 72, 153, 0.3);
}

.animation-option input:checked + .animation-label {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--accent-primary);
}

.animation-icon { 
    font-size: 1.3rem;
    flex-shrink: 0;
}

.animation-text {
    display: flex;
    flex-direction: column;
}

.animation-text strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.animation-text small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   Shuffle Animation Styles
   ============================================ */
.shuffle-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    background: radial-gradient(circle at 20% 0%, rgba(15, 23, 42, 0.9) 0%, #020617 55%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.85), 0 0 0 1px rgba(148, 163, 184, 0.18);
    min-width: 280px;
    min-height: 90px;
}

.shuffle-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: rgba(15, 23, 42, 0.92);
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    min-width: 250px;
    min-height: 70px;
    overflow: hidden;
}

.shuffle-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f9fafb;
    text-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: filter 0.1s ease;
}

.shuffle-text.winner {
    color: var(--accent-tertiary);
    text-shadow: 0 0 20px var(--accent-tertiary), 0 0 40px var(--accent-tertiary);
    animation: shuffleWin 0.5s ease infinite alternate;
}

@keyframes shuffleWin {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* ============================================
   FlipCard Animation Styles
   ============================================ */
.flipcard-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.flipcard {
    width: 280px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flipcard.flipped {
    transform: rotateY(180deg);
}

.flipcard-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.flipcard-front {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    border: 2px solid rgba(148, 163, 184, 0.3);
}

.flipcard-front .flipcard-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.flipcard-icon {
    font-size: 2rem;
    animation: cardIconPulse 2s ease-in-out infinite;
}

@keyframes cardIconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.flipcard-question {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-tertiary);
    text-shadow: 0 0 20px var(--accent-tertiary);
}

.flipcard-back {
    background: linear-gradient(135deg, #0f172a 0%, #020617 50%, #0f172a 100%);
    border: 2px solid rgba(255, 205, 0, 0.4);
    transform: rotateY(180deg);
}

.flipcard-back .flipcard-content {
    padding: 1rem;
    width: 100%;
    text-align: center;
}

.flipcard-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #f9fafb;
    text-shadow: 0 0 12px rgba(15, 23, 42, 0.9);
    word-break: break-word;
    line-height: 1.2;
}

.flipcard-value.winner {
    color: var(--accent-tertiary);
    text-shadow: 0 0 20px var(--accent-tertiary), 0 0 40px var(--accent-tertiary);
    animation: flipcardWin 0.5s ease infinite alternate;
}

.flipcard.winner {
    box-shadow: 0 0 40px rgba(255, 205, 0, 0.6);
}

@keyframes flipcardWin {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* FlipCard shine effect */
.flipcard-front::after,
.flipcard-back::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    border-radius: 16px;
    pointer-events: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --sidebar-width: 240px;
        --winners-width: 280px;
    }
}

/* ============================================
   Mobil Drawer Backdrop
   ============================================ */
.mobile-drawer-backdrop {
    display: none;
}

@media (max-width: 900px) {
    html { font-size: 14px; }
    
    /* Mobil Drawer Backdrop - Panellerin arkasında kalır, panelleri kapsamaz */
    .mobile-drawer-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 50;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, left 0.3s ease, right 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-drawer-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Paneller backdrop'un üstünde olmalı - çok yüksek z-index ve yeni stacking context */
    .sidebar,
    .winners-panel {
        z-index: 1000 !important;
        position: fixed !important;
        isolation: isolate;
        will-change: transform;
    }
    
    /* Paneller açıkken backdrop'un panelleri kapsamaması için */
    .app-container:not(.sidebar-collapsed) .sidebar {
        z-index: 1000 !important;
    }
    
    .app-container:not(.winners-collapsed) .winners-panel {
        z-index: 1000 !important;
    }
    
    /* Backdrop'un konumu JavaScript ile ayarlanır - CSS'te transition için hazır */
    
    /* Body scroll kilitleme */
    body.drawer-open {
        overflow: hidden;
    }
    
    /* Ana container - sadece main-area görünür */
    .app-container {
        display: block;
        padding: 0;
        gap: 0;
        min-height: 100vh;
    }
    
    /* Main area - her zaman görünür ve tam ekran */
    .main-area {
        padding: 1rem;
        min-height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* Header - mobilde sabit üstte */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0.75rem 1rem;
        background: var(--bg-secondary);
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        z-index: 50;
        margin-bottom: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Raffle section - header'ın altında ortalanmış */
    .raffle-section {
        margin-top: 4rem;
        gap: 1.25rem;
        width: 100%;
        max-width: 500px;
    }
    
    /* Panel toggle margin kaldırma */
    .app-container.sidebar-collapsed .raffle-section,
    .app-container.winners-collapsed .raffle-section,
    .app-container.sidebar-collapsed.winners-collapsed .raffle-section {
        margin-top: 4rem;
    }
    
    /* Sol Panel - Slide-in Drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        z-index: 110;
        border-radius: 0;
        margin: 0;
        padding: 1rem;
        padding-top: 1.5rem;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
        background: var(--bg-secondary);
        pointer-events: auto;
        isolation: isolate;
    }
    
    /* Sidebar açıkken - sidebar-collapsed class'ı OLMAMALI */
    .app-container:not(.sidebar-collapsed) .sidebar {
        transform: translateX(0);
    }
    
    /* Sidebar kapalıyken */
    .app-container.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Sağ Panel - Slide-in Drawer */
    .winners-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        z-index: 110;
        border-radius: 0;
        margin: 0;
        max-height: none;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        background: var(--bg-secondary);
        pointer-events: auto;
        isolation: isolate;
    }
    
    /* Winners panel açıkken - winners-collapsed class'ı OLMAMALI */
    .app-container:not(.winners-collapsed) .winners-panel {
        transform: translateX(0);
    }
    
    /* Winners panel kapalıyken */
    .app-container.winners-collapsed .winners-panel {
        transform: translateX(100%);
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Panel toggle butonları - her zaman görünür */
    .panel-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .panel-toggle.is-collapsed {
        background: rgba(255, 255, 255, 0.9);
        color: #111827;
        border-color: rgba(148, 163, 184, 0.6);
    }
    
    /* Sidebar içi düzenlemeler */
    .sidebar-header { 
        width: 100%; 
        margin-bottom: 0.5rem; 
    }
    
    .sidebar-header h2 {
        font-size: 1rem;
    }
    
    .setting-card { 
        width: 100%;
    }
    
    .participants-summary { 
        margin-top: 0; 
    }
    
    /* Leaderboard mobil */
    .leaderboard-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .leaderboard-title {
        font-size: 2rem;
    }
    
    .trophy-icon {
        font-size: 2.5rem;
    }
    
    .leaderboard-subtitle {
        font-size: 1rem;
    }
    
    .leaderboard-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .leaderboard-rank-badge {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .leaderboard-number {
        font-size: 1.5rem;
    }
    
    .leaderboard-prize {
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .slot-frame {
        padding: 1.25rem;
    }
    
    .current-prize {
        padding: 0.6rem 1.25rem;
    }
    
    .prize-rank {
        font-size: 1.25rem;
    }
    
    .prize-name {
        font-size: 0.9rem;
    }
    
    .btn-start {
        padding: 0.85rem 2rem;
        font-size: 1rem;
    }
    
    .modal { 
        max-width: 95%; 
        border-radius: var(--border-radius);
    }
    
    .prizes-grid { 
        grid-template-columns: 1fr; 
    }
    
    .winner-item {
        padding: 0.65rem;
    }
    
    /* Header center - mobilde başlık ortalanması */
    .header-center {
        flex: 1;
        justify-content: center;
        gap: 0.5rem;
    }
    
    /* Logo mobil ayarları */
    .custom-logo {
        max-height: 36px;
        max-width: 80px;
    }
    
    .logo-placeholder {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    html { font-size: 13px; }
    
    .header {
        padding: 0.5rem 0.75rem;
    }
    
    .raffle-section {
        margin-top: 3.5rem;
        padding: 0 0.5rem;
    }
    
    .sidebar,
    .winners-panel {
        width: 90%;
        max-width: 300px;
        padding: 0.85rem;
    }
    
    .leaderboard-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .leaderboard-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .trophy-icon {
        font-size: 2rem;
    }
    
    .leaderboard-subtitle {
        font-size: 0.85rem;
    }
    
    .leaderboard-content {
        padding: 1rem;
    }
    
    .leaderboard-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .leaderboard-rank-badge {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .leaderboard-number {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .leaderboard-prize {
        font-size: 0.8rem;
    }
    
    .leaderboard-footer {
        flex-direction: column;
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .slot-multi-window {
        gap: 4px;
        padding: 6px;
    }
    
    .slot-reel-container { 
        width: 36px; 
        height: 50px; 
    }
    
    .slot-digit { 
        width: 36px; 
        height: 50px; 
        font-size: 1.4rem; 
    }
    
    .title {
        font-size: 1rem;
    }
    
    .panel-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .btn-start {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 400px) {
    html { font-size: 12px; }
    
    .sidebar,
    .winners-panel {
        width: 92%;
    }
    
    .slot-reel-container { 
        width: 32px; 
        height: 45px; 
    }
    
    .slot-digit { 
        width: 32px; 
        height: 45px; 
        font-size: 1.3rem; 
    }
    
    .slot-multi-window {
        gap: 3px;
        padding: 5px;
    }
    
    .slot-frame {
        padding: 1rem;
    }
    
    .notification-number { 
        font-size: 2rem; 
        letter-spacing: 0.15rem;
    }
    
    .notification-rank {
        font-size: 2.5rem;
    }
    
    .current-prize {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.5rem 1rem;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .panel-toggle {
        width: 32px;
        height: 32px;
    }
}

/* ============================================
   Başlık Düzenleme
   ============================================ */
.title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.title-text {
    outline: none;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    transition: var(--transition-fast);
    background: transparent;
}

.title-text:hover {
    background: rgba(255, 255, 255, 0.1);
}

.title-text:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.15);
}

.title-edit-btn {
    opacity: 0;
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
    border-radius: 4px;
}

.title:hover .title-edit-btn {
    opacity: 0.6;
}

.title-edit-btn:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Özelleştirme Modal
   ============================================ */
.customization-modal {
    max-width: 700px;
    max-height: 90vh;
}

.customization-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.customization-body::-webkit-scrollbar {
    width: 8px;
}

.customization-body::-webkit-scrollbar-track {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
}

.customization-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.customization-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.customization-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toggle Switch */
.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.theme-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 28px;
    transition: var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '☀️';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(28px);
    content: '🌙';
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.toggle-row:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.toggle-row span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Color Picker */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.color-picker-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-picker-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.05);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .color-input-wrapper {
    background: rgba(15, 23, 42, 0.4);
}

.color-input-wrapper input[type="color"] {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
}

.color-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Font Selector */
.font-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.font-selector label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.03);
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.custom-select:hover {
    border-color: var(--accent-primary);
}

.custom-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

/* Radius Selector */
.radius-selector {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.radius-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radius-option input {
    display: none;
}

.radius-preview {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.radius-preview.sharp {
    border-radius: 4px;
}

.radius-preview.normal {
    border-radius: 12px;
}

.radius-preview.rounded {
    border-radius: 18px;
}

.radius-preview.pill {
    border-radius: 25px;
}

.radius-option span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.radius-option input:checked ~ .radius-preview {
    box-shadow: 0 0 0 3px var(--accent-primary), 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.radius-option input:checked ~ span:last-child {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Shadow Selector */
.shadow-selector {
    display: flex;
    gap: 1rem;
    justify-content: space-around;
}

.shadow-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.shadow-option input {
    display: none;
}

.shadow-preview {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition-fast);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.shadow-preview.none {
    box-shadow: none;
}

.shadow-preview.light {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.shadow-preview.normal {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.shadow-preview.strong {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.shadow-option span:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shadow-option input:checked ~ .shadow-preview {
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.shadow-option input:checked ~ span:last-child {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Customization Modal Footer */
.customization-modal .modal-footer {
    display: flex;
    justify-content: space-between;
}

.customization-modal .modal-footer .btn-danger {
    margin-right: auto;
}

/* Font Families */
.font-modern {
    --font-body: 'Inter', sans-serif;
    --font-display: 'Poppins', sans-serif;
}

.font-elegant {
    --font-body: 'Lato', sans-serif;
    --font-display: 'Playfair Display', serif;
}

.font-tech {
    --font-body: 'Space Grotesk', sans-serif;
    --font-display: 'JetBrains Mono', monospace;
}

.font-fun {
    --font-body: 'Quicksand', sans-serif;
    --font-display: 'Nunito', sans-serif;
}

/* Apply font variables */
body {
    font-family: var(--font-body);
}

.title,
.title-text,
.sidebar-header h2,
.winners-header h2,
.count-value,
.stat-num,
.duration-value,
.slot-digit,
.prize-rank,
.notification-rank,
.notification-number,
.leaderboard-title,
.leaderboard-rank-badge,
.leaderboard-number,
.winner-number,
.modal-header h2,
.advanced-settings-header h2 {
    font-family: var(--font-display);
}

/* Background effects toggle */
.bg-effects-hidden .gradient-orb {
    display: none !important;
}

/* tsParticles gizleme */
.particles-hidden #tsparticles {
    display: none !important;
}

/* Dynamic orb colors */
.orb-1 {
    background: radial-gradient(circle at 30% 30%, 
        rgba(var(--orb1-color-rgb, 236, 72, 153), 0.9), 
        rgba(255, 205, 0, 0.7) 45%, 
        transparent 70%) !important;
}

.orb-2 {
    background: radial-gradient(circle at 30% 30%, 
        rgba(var(--orb2-color-rgb, 34, 197, 94), 0.85), 
        rgba(56, 189, 248, 0.7) 45%, 
        transparent 70%) !important;
}

.orb-3 {
    background: radial-gradient(circle at 30% 30%, 
        rgba(var(--orb3-color-rgb, 59, 130, 246), 0.8), 
        rgba(255, 205, 0, 0.6) 45%, 
        transparent 70%) !important;
}

/* Dynamic button gradient */
.btn-start {
    background: linear-gradient(135deg, 
        var(--btn-gradient-start) 0%, 
        var(--btn-gradient-mid) 45%, 
        var(--btn-gradient-end) 100%) !important;
}

/* Slot machine dynamic colors */
.slot-multi-window {
    background: radial-gradient(circle at 20% 0%, 
        rgba(var(--slot-bg-rgb, 15, 23, 42), 0.9) 0%, 
        var(--slot-bg) 55%, 
        rgba(var(--slot-bg-rgb, 15, 23, 42), 0.9) 100%) !important;
}

.slot-digit {
    color: var(--slot-digit-color) !important;
}

.slot-digit.winner {
    color: var(--slot-winner-color) !important;
    text-shadow: 0 0 20px var(--slot-winner-color), 0 0 40px var(--slot-winner-color) !important;
}

/* Responsive */
@media (max-width: 700px) {
    .color-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .radius-selector,
    .shadow-selector {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .radius-preview,
    .shadow-preview {
        width: 45px;
        height: 45px;
    }
    
    .customization-modal {
        max-width: 95%;
    }
    
    .customization-body {
        max-height: 55vh;
    }
}

@media (max-width: 500px) {
    .color-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-toggle-container {
        gap: 0.75rem;
    }
}

/* ============================================
   Header ve Logo Stilleri
   ============================================ */
.header-center {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.logo-container {
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-logo {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: var(--transition-fast);
}

.custom-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.5);
}

.logo-placeholder:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(236, 72, 153, 0.1);
    transform: scale(1.05);
}

.logo-placeholder svg {
    opacity: 0.6;
}

[data-theme="dark"] .logo-placeholder {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .logo-placeholder:hover {
    background: rgba(236, 72, 153, 0.15);
}

/* Logo Yükleme Bölümü (Modal) */
.logo-upload-section {
    margin-bottom: 1.25rem;
}

.logo-upload-label,
.icon-selector-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-upload-area {
    position: relative;
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.5);
}

.logo-upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(236, 72, 153, 0.05);
}

.logo-upload-area.drag-over {
    border-color: var(--accent-secondary);
    background: rgba(34, 197, 94, 0.1);
    border-style: solid;
}

[data-theme="dark"] .logo-upload-area {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .logo-upload-area:hover {
    background: rgba(236, 72, 153, 0.1);
}

.logo-preview-container {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.logo-upload-placeholder svg {
    opacity: 0.5;
}

.logo-upload-placeholder span {
    font-weight: 600;
    font-size: 0.9rem;
}

.logo-upload-placeholder small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.logo-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

/* İkon Seçici Bölümü */
.icon-selector-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.icon-selector-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.current-icon-preview {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(255, 205, 0, 0.1) 100%);
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-radius: var(--border-radius-sm);
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .emoji-grid {
    background: rgba(15, 23, 42, 0.4);
}

.emoji-option {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.emoji-option:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    transform: scale(1.15);
}

.emoji-option.selected {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.custom-emoji-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-emoji-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
    text-align: center;
    transition: var(--transition-fast);
}

.custom-emoji-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .custom-emoji-input input {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .custom-emoji-input input:focus {
    background: rgba(15, 23, 42, 0.8);
}

/* Responsive Logo ve Emoji */
@media (max-width: 700px) {
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .emoji-option {
        width: 40px;
        height: 40px;
    }
    
    .custom-logo {
        max-height: 40px;
        max-width: 100px;
    }
    
    .logo-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .header-center {
        gap: 0.75rem;
    }
}

@media (max-width: 500px) {
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .emoji-option {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .current-icon-preview {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* ============================================
   Otomatik Çekiliş Kontrolü - Kompakt
   ============================================ */
.raffle-controls-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.auto-raffle-compact {
    position: relative;
}

.auto-raffle-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.auto-raffle-toggle-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.auto-raffle-toggle-btn.active {
    background: rgba(236, 72, 153, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.auto-raffle-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    z-index: 100;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
}

.auto-raffle-popover.hidden {
    display: none;
}

.auto-raffle-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auto-toggle-label-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    flex: 1;
}

.auto-toggle-label-compact input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-primary);
    flex-shrink: 0;
}

.auto-raffle-timer-compact {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    padding: 0.2rem 0.5rem;
    background: rgba(236, 72, 153, 0.1);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(236, 72, 153, 0.3);
    white-space: nowrap;
}

.auto-raffle-popover-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.timer-input-group-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timer-input-group-compact label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.timer-input-compact {
    flex: 1;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    min-width: 0;
}

.timer-input-compact:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.15);
}

.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

[data-theme="dark"] .auto-raffle-toggle-btn {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-secondary);
}

[data-theme="dark"] .auto-raffle-toggle-btn:hover {
    background: rgba(236, 72, 153, 0.25);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="dark"] .auto-raffle-toggle-btn.active {
    background: rgba(236, 72, 153, 0.3);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="dark"] .auto-raffle-popover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(148, 163, 184, 0.15);
}

[data-theme="dark"] .timer-input-compact {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .auto-raffle-timer-compact {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #111827;
    color: #f9fafb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.error {
    background: #991b1b;
}

.toast.success {
    background: #166534;
}

.toast.info {
    background: #1e40af;
}

[data-theme="dark"] .toast {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .toast.error {
    background: #7f1d1d;
}

[data-theme="dark"] .toast.success {
    background: #14532d;
}

[data-theme="dark"] .toast.info {
    background: #1e3a8a;
}

[data-theme="dark"] .save-field input {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .save-field input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
    background: rgba(15, 23, 42, 0.95);
}