/* ==========================================================================
   InstaDraw | Premium Styling System
   ========================================================================== */

/* Color Tokens & Variables */
:root {
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f43f5e 100%);
    --gradient-instagram: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --gradient-glow: 0 0 25px rgba(236, 72, 153, 0.35);
    
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-yellow: #f59e0b;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    
    --font-primary: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
    --bg-dark: #0a0512;
    --bg-card: rgba(22, 12, 38, 0.45);
    --bg-card-hover: rgba(30, 18, 50, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(236, 72, 153, 0.4);
    
    --text-primary: #f3f1f6;
    --text-muted: #9f94b5;
    
    --bg-input: rgba(10, 5, 20, 0.6);
    --bg-input-focus: rgba(10, 5, 20, 0.85);
    --color-shadow: rgba(0, 0, 0, 0.35);
}

body.light-theme {
    --bg-dark: #f4f1fa;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(139, 92, 246, 0.15);
    --border-color-active: rgba(236, 72, 153, 0.5);
    
    --text-primary: #1c152a;
    --text-muted: #6e6485;
    
    --bg-input: rgba(255, 255, 255, 0.9);
    --bg-input-focus: #ffffff;
    --color-shadow: rgba(139, 92, 246, 0.12);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 0;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 5, 18, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.5);
}

/* Background Blur Lights */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
}
.blur-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    top: -100px;
    left: -100px;
    animation: floatingBlur 15s infinite alternate ease-in-out;
}
.blur-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-pink);
    bottom: -150px;
    right: -100px;
    animation: floatingBlur 20s infinite alternate-reverse ease-in-out;
}
.blur-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-blue);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

@keyframes floatingBlur {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* App Container Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Header Styles */
.app-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    justify-content: flex-start;
}
.logo-area:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
.logo-area:active {
    transform: scale(0.98);
}
.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--gradient-glow);
    animation: logoPulse 6s infinite alternate ease-in-out;
}
@keyframes logoPulse {
    0% { box-shadow: 0 0 15px rgba(236, 72, 153, 0.2); }
    100% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); }
}
.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-text h1 span {
    font-weight: 400;
}
.logo-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.1rem;
}

/* Navigation System Styles */
.view-nav {
    display: flex;
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.3rem;
    justify-self: center;
    align-self: center;
}
.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 1.8rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.view-container {
    display: none;
}
.view-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Grid & Dashboard layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
}

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

/* Header responsive breakpoints */
@media (max-width: 900px) {
    .app-header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .view-nav {
        grid-column: 1 / -1;
        justify-self: center;
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo-area {
        grid-column: 1;
    }
    .header-actions {
        grid-column: 2;
    }
}

@media (max-width: 580px) {
    .app-header {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        justify-items: center;
        gap: 0.75rem;
    }
    .logo-area {
        grid-column: 1;
        justify-content: center;
    }
    .header-actions {
        grid-column: 1;
        justify-content: center;
    }
    .view-nav {
        grid-column: 1;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.82rem;
    }
}

/* Glassmorphism Cards */
.card {
    border-radius: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    overflow: hidden;
}
.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.card-title i {
    font-size: 1.25rem;
}
.card-title h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}
.card-body {
    padding: 1.5rem;
}

/* Utility Badges & Gradients */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.badge {
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-pink);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid rgba(236, 72, 153, 0.25);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-yellow);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Forms & Inputs */
.input-tip {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    height: 180px;
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
    outline: none;
    transition: var(--transition-smooth);
}
textarea:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.15);
}

.textarea-wrapper {
    position: relative;
}
.char-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(10, 5, 20, 0.8);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.blacklist-area {
    height: 80px;
    font-family: var(--font-primary);
}
.save-indicator {
    font-size: 0.75rem;
    color: var(--accent-green);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
}

/* Tabs UI */
.tabs {
    display: flex;
    background: rgba(10, 5, 20, 0.6);
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.tab-btn.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* File Dropzone */
.file-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    background: rgba(10, 5, 20, 0.3);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.file-dropzone:hover, .file-dropzone.dragover {
    border-color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.05);
}
.upload-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.file-dropzone h3 {
    font-size: 0.95rem;
    font-weight: 600;
}
.file-dropzone p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    outline: none;
    text-decoration: none;
}
.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
}
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 1rem;
}
.btn-full {
    width: 100%;
}
.btn-primary {
    background: var(--accent-purple);
    color: white;
}
.btn-primary:hover {
    background: #9333ea;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--gradient-glow);
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.55);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}
.btn-pulse {
    animation: buttonPulse 2s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes buttonPulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(236, 72, 153, 0.3); }
    100% { transform: scale(1.03); box-shadow: 0 0 35px rgba(236, 72, 153, 0.6); }
}

/* Number inputs, toggles, selectors */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.number-input-wrapper {
    display: flex;
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}
.num-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 2.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.num-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.number-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 0;
}
.number-input-wrapper input::-webkit-inner-spin-button,
.number-input-wrapper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(10, 5, 20, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.radio-label:hover {
    border-color: var(--border-color-active);
    background: rgba(236, 72, 153, 0.03);
}
.radio-label input {
    display: none;
}
.radio-custom {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    margin-top: 2px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.radio-label input:checked + .radio-custom {
    border-color: var(--accent-pink);
}
.radio-label input:checked + .radio-custom::after {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    background: var(--accent-pink);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.radio-text {
    display: flex;
    flex-direction: column;
}
.radio-text strong {
    font-size: 0.85rem;
    font-weight: 600;
}
.radio-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Divider & Subtitle */
.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}
.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

/* Checkbox Toggle Group */
.check-group {
    background: rgba(10, 5, 20, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}
.check-group:hover {
    border-color: var(--border-color-active);
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    user-select: none;
}
.checkbox-label input {
    display: none;
}
.checkbox-custom {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.checkbox-label input:checked + .checkbox-custom {
    border-color: var(--accent-pink);
    background: var(--accent-pink);
}
.checkbox-label input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.sub-input-group {
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-prefix-wrapper {
    display: flex;
    align-items: center;
    background: rgba(10, 5, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    transition: var(--transition-smooth);
    width: 100%;
}
.input-prefix-wrapper i {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.input-prefix-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    width: 100%;
}
.input-prefix-wrapper:focus-within {
    border-color: var(--accent-pink);
}

/* Scraper Dropdown & Form Customization */
.select-wrapper {
    position: relative;
    width: 100%;
}
.custom-select {
    width: 100%;
    background: rgba(10, 5, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.custom-select:focus {
    border-color: var(--accent-pink);
}
.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-muted);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.btn-icon-inside {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.25rem;
    transition: var(--transition-smooth);
}
.btn-icon-inside:hover {
    color: white;
}

/* Cookie Guide accordion styles */
.cookie-help-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.cookie-help-box ol {
    padding-left: 1.2rem;
}
.cookie-help-box li {
    margin-bottom: 0.6rem;
}
.cookie-help-box li strong {
    color: white;
}

.scrape-status-block {
    background: rgba(236, 72, 153, 0.05);
    border: 1px solid rgba(236, 72, 153, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    animation: pulseBorder 1.5s infinite alternate ease-in-out;
}
@keyframes pulseBorder {
    0% { border-color: rgba(236, 72, 153, 0.1); }
    100% { border-color: rgba(236, 72, 153, 0.35); }
}

/* Stats UI */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}
.stat-item {
    background: rgba(10, 5, 20, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 0.5rem;
}
.stat-val {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
.stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Participant List UI */
.list-header {
    flex-wrap: wrap;
    gap: 1rem;
}
.list-header.flex-column.flex-md-row {
    align-items: center;
}
.export-buttons-group {
    display: flex;
    gap: 0.5rem;
}
.list-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rows-select-wrapper select.custom-select-sm {
    background-image: none !important; /* Remove custom-select down arrow for small row selector */
    padding-right: 0.5rem !important;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}
.pagination-container {
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0, 0, 0, 0.2);
}
.pagination-buttons .btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}
.pagination-buttons .btn-outline:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}
.pagination-buttons .btn-outline:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.page-number-indicator {
    color: var(--text-muted);
}
.search-box {
    position: relative;
    width: 200px;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.search-box input {
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 0.55rem 1rem 0.55rem 2.25rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    transition: var(--transition-smooth);
}
.search-box input:focus {
    border-color: var(--accent-pink);
    width: 280px;
}

.table-scroll {
    max-height: 400px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th {
    background: rgba(15, 8, 28, 0.8);
    position: sticky;
    top: 0;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    z-index: 2;
}
.data-table td {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.data-table tbody tr {
    transition: var(--transition-smooth);
}
.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
.table-username {
    font-weight: 600;
    color: var(--accent-purple);
}
.table-comment {
    color: var(--text-primary);
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-center {
    text-align: center;
}

/* SQLite past draw history card styles */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.history-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
}
.history-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.05);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.15);
}
.hist-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hist-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.hist-card-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.hist-meta-item {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hist-meta-item i {
    color: var(--accent-purple);
}
.hist-card-badge {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* RAFFLE OVERLAY (CINEMATIC ARENA) */
.raffle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 2, 10, 0.97);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.raffle-overlay.active {
    opacity: 1;
    visibility: visible;
}
.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1005;
}
.arena-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1010;
}
.arena-stage {
    display: none;
    text-align: center;
}
.arena-stage.active {
    display: block;
    animation: arenaFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.stage-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-trophy {
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.4));
}
.trophy-bounce {
    animation: trophyBounce 3s infinite alternate ease-in-out;
}
@keyframes trophyBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px) rotate(5deg); }
}

.arena-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1px;
}
.arena-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.countdown-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--accent-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 2.5rem;
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.25);
    background: rgba(236, 72, 153, 0.05);
    position: relative;
    overflow: hidden;
}
.countdown-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent-purple);
    border-top-color: transparent;
    border-left-color: transparent;
    border-radius: 50%;
    top: -4px;
    left: -4px;
    animation: borderRotate 2s infinite linear;
}
@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Live Draw Area */
.draw-indicator {
    margin-bottom: 2rem;
}
.draw-indicator .badge {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border-color: rgba(139, 92, 246, 0.3);
    font-size: 0.85rem;
}
.draw-order-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.75rem;
    letter-spacing: -0.2px;
}

/* SLOT MACHINE VIEW */
.slot-machine-container {
    width: 100%;
    max-width: 550px;
    background: rgba(20, 10, 35, 0.75);
    border: 3px solid var(--border-color-active);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 0 50px rgba(236, 72, 153, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: visible;
}
.slot-window {
    height: 110px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 0.75rem;
    background: #06030b;
    box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.9);
}
.slot-strip {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}
.slot-card {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}
.slot-username {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    word-break: break-all;
}
.slot-comment {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.35rem;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-pointer {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-pink);
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px var(--accent-pink));
    animation: pointerPulse 1s infinite alternate;
}
@keyframes pointerPulse {
    0% { transform: translateY(-50%) translateX(0); }
    100% { transform: translateY(-50%) translateX(-6px); }
}

/* RESULTS DASHBOARD */
.results-container {
    background: rgba(15, 8, 30, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 3rem 2rem;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
.results-header {
    margin-bottom: 2.5rem;
}
.results-award-icon {
    font-size: 3.5rem;
    color: var(--accent-yellow);
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.4));
    margin-bottom: 1rem;
}
.results-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.results-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.35rem;
}

.results-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .results-split {
        grid-template-columns: 1fr;
    }
}

.result-box {
    background: rgba(10, 5, 20, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
}
.box-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}
.text-yellow { color: var(--accent-yellow); }
.text-blue { color: var(--accent-blue); }

.winners-list, .alternates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.winner-card, .alternate-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
    animation: cardReveal 0.5s ease forwards;
    opacity: 0;
}
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.winner-card:hover {
    border-color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.04);
}
.alternate-card:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.04);
}

.winner-rank {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.winner-card:nth-child(1) .winner-rank {
    background: linear-gradient(135deg, #ffe066, #f59e0b);
    color: #3b2300;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.winner-card:nth-child(2) .winner-rank {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #1e293b;
}
.winner-card:nth-child(3) .winner-rank {
    background: linear-gradient(135deg, #fcd34d, #b45309);
    color: white;
}
.winner-rank-default {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.winner-info {
    flex: 1;
    min-width: 0;
}
.winner-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    word-break: break-all;
}
.winner-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.15rem;
}

.winner-ticket-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* INSTAGRAM STORY MODAL & DESIGNER */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.story-modal.active {
    opacity: 1;
    visibility: visible;
}
.story-modal-content {
    width: 100%;
    max-width: 950px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    backdrop-filter: blur(25px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.story-modal-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.story-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.close-btn:hover {
    color: white;
}

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

.story-designer-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .story-designer-layout {
        grid-template-columns: 1fr;
    }
}

.story-preview-container {
    background: #000;
    border-radius: 1.25rem;
    padding: 0.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 9 / 16;
    max-height: 520px;
    margin: 0 auto;
}
#story-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.85rem;
}

.story-config-panel {
    background: rgba(10, 5, 20, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.config-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-pink);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.story-config-panel input[type="text"] {
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}
.story-config-panel input[type="text"]:focus {
    border-color: var(--accent-pink);
}

.gradient-selectors {
    display: flex;
    gap: 0.75rem;
}
.gradient-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.gradient-btn.active {
    border-color: white;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Helpers */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-5 { padding: 3rem !important; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-3 { gap: 1rem; }

/* ==========================================================================
   Yeni Eklenen Tematik ve Etkileşim Stilleri (Toast, Theme, Confirm, Sessions)
   ========================================================================== */

/* Tema Butonu & İkonu */
.btn-icon-only {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}
.btn-icon-only:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-active);
    transform: translateY(-2px);
}

/* Toast Bildirim Sistemi */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100vw - 48px);
    pointer-events: none;
}
.toast-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px var(--color-shadow);
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.35s ease;
    pointer-events: auto;
}
.toast-item.fade-out {
    animation: toastFadeOut 0.3s ease forwards;
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastFadeOut {
    to { opacity: 0; transform: translateY(-20px); }
}
.toast-item.toast-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}
.toast-item.toast-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}
.toast-item.toast-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-yellow);
}
.toast-item.toast-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--accent-blue);
}
.toast-icon {
    margin-right: 12px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}
.toast-content {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
}
.toast-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    margin-left: 12px;
    line-height: 1;
}
.toast-close-btn:hover {
    opacity: 1;
}

/* Özel Onay Modali (Confirm Modal) */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 2, 10, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmFadeIn 0.3s ease forwards;
}
.confirm-overlay.fade-out {
    animation: confirmFadeOut 0.3s ease forwards;
}
.confirm-box {
    max-width: 440px;
    width: calc(100vw - 32px);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 20px 50px var(--color-shadow);
    animation: confirmZoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.confirm-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.confirm-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}
@keyframes confirmFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes confirmFadeOut {
    to { opacity: 0; }
}
@keyframes confirmZoomIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Yarım Kalan Taramalar Listesi */
.scrape-session-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}
.scrape-session-row:hover {
    border-color: var(--border-color-active);
    background: var(--bg-card-hover);
}
.session-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}
.session-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.session-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.session-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.session-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* input ve select öğelerinde renklerin uyumlulaştırılması */
textarea, 
.number-input-wrapper, 
.radio-label, 
.check-group, 
.input-prefix-wrapper, 
.custom-select, 
.stat-item {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
}
textarea:focus, 
.input-prefix-wrapper:focus-within, 
.custom-select:focus {
    background: var(--bg-input-focus) !important;
}
.number-input-wrapper input, 
.input-prefix-wrapper input, 
.custom-select {
    color: var(--text-primary) !important;
}
.data-table th {
    background: rgba(139, 92, 246, 0.08) !important;
    color: var(--text-primary) !important;
}
body.light-theme .cookie-help-box {
    background: rgba(139, 92, 246, 0.05);
    color: #4a4163;
}
body.light-theme .cookie-help-box li strong {
    color: #1e1333;
}
body.light-theme .bg-blur {
    opacity: 0.12;
}
body.light-theme .data-table tr:hover {
    background: rgba(139, 92, 246, 0.04) !important;
}
body.light-theme .history-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
    color: #1c152a !important;
}
body.light-theme .history-card:hover {
    background: #ffffff !important;
    border-color: var(--accent-purple) !important;
}
body.light-theme .hist-card-title {
    color: #1c152a !important;
}
body.light-theme .slot-window {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--accent-pink) !important;
}
body.light-theme .slot-card {
    background: #ffffff !important;
    border-bottom-color: rgba(139, 92, 246, 0.15) !important;
}
body.light-theme .slot-username {
    color: #1c152a !important;
}
body.light-theme .slot-comment {
    color: #6e6485 !important;
}

/* ==========================================================================
   Premium Giriş Paneli Stilleri (Glassmorphism & Tematik Uyum)
   ========================================================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 2, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}
.login-overlay.active {
    display: flex;
}
.login-card {
    width: 90%;
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    opacity: 0;
    animation: loginCardShow 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loginCardShow {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}
.login-logo {
    width: 65px;
    height: 65px;
    border-radius: 1.25rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.35);
}
.login-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}
.login-header h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Light Theme overrides for Login screen */
body.light-theme .login-overlay {
    background: rgba(245, 243, 250, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}
body.light-theme .login-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.1) !important;
}
body.light-theme .login-header p {
    color: #5c5570;
}
body.light-theme .login-header h2 {
    color: #1c152a;
}

/* ==========================================================================
   Gelişmiş Üyelik, Şifre Göster/Gizle & Admin Onay Stilleri
   ========================================================================== */

/* Şifre Göster/Gizle İkon Konumlandırması */
.input-prefix-wrapper {
    position: relative;
}
.input-prefix-wrapper .password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}
.input-prefix-wrapper .password-toggle:hover {
    color: var(--accent-pink);
    transform: translateY(-50%) scale(1.1);
}

/* Onay Bekliyor İkon Nabız (Pulse) Animasyonu */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.45);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(234, 179, 8, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(234, 179, 8, 0);
    }
}
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* Üye Yönetim Paneli Cam Buton Tasarımları */
.btn-approve {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: var(--accent-green) !important;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-approve:hover {
    background: var(--accent-green) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-delete-user {
    background: rgba(244, 63, 94, 0.1) !important;
    border: 1px solid rgba(244, 63, 94, 0.25) !important;
    color: #f43f5e !important;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-delete-user:hover {
    background: #f43f5e !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
    transform: translateY(-2px);
}

/* Tablodaki onay durumu rozetleri */
.status-badge-approved {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.status-badge-pending {
    background: rgba(234, 179, 8, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Premium User Profile Badge Micro-interactions */
.user-profile-badge {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.user-profile-badge:hover {
    opacity: 0.9;
    transform: scale(1.03);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}
.user-profile-badge:active {
    transform: scale(0.97);
}

/* Compact Credits Badge */
.credits-display-badge {
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}
.credits-display-badge:hover {
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
    filter: brightness(1.15);
}
.credits-display-badge:active {
    transform: scale(0.95);
}

/* ======================================================
   PACKAGES MANAGEMENT VIEW — Premium Card Grid Layout
   ====================================================== */
.pkg-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.pkg-page-title {
    font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 60%, #3b82f6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin: 0 0 0.3rem 0; display: flex; align-items: center; gap: 0.6rem;
}
.pkg-page-sub { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.btn-pkg-add {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #fff; border: none; border-radius: var(--radius-md);
    padding: 0.65rem 1.3rem; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(168,85,247,0.35); white-space: nowrap;
}
.btn-pkg-add:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(168,85,247,0.5); filter: brightness(1.1); }
.btn-pkg-add:active { transform: translateY(0); }
.pkg-stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin-bottom: 1.75rem;
}
.pkg-stat {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 1rem 1.25rem;
    display: flex; flex-direction: column; align-items: center;
    gap: 0.3rem; text-align: center; backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}
.pkg-stat:hover { border-color: rgba(168,85,247,0.3); box-shadow: 0 4px 20px rgba(168,85,247,0.08); }
.pkg-stat i { font-size: 1.2rem; color: var(--accent-purple); margin-bottom: 0.2rem; }
.pkg-stat span { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.pkg-stat small { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 700px) { .pkg-stats-bar { grid-template-columns: repeat(2, 1fr); } }
.pkg-cards-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem;
}
.pkg-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 1.25rem; overflow: hidden; backdrop-filter: blur(16px);
    transition: all 0.3s ease; display: flex; flex-direction: column;
}
.pkg-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.35); box-shadow: 0 12px 40px rgba(139,92,246,0.18); }
.pkg-card.type-subscription { border-top: 3px solid #8b5cf6; }
.pkg-card.type-single { border-top: 3px solid #ec4899; }
.pkg-card-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1.1rem 1.25rem 0.6rem; gap: 0.5rem;
}
.pkg-card-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.3; }
.pkg-type-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.65rem; border-radius: 20px; font-size: 0.68rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0;
}
.pkg-type-badge.single { background: rgba(236,72,153,0.12); color: #ec4899; border: 1px solid rgba(236,72,153,0.25); }
.pkg-type-badge.subscription { background: rgba(139,92,246,0.12); color: #8b5cf6; border: 1px solid rgba(139,92,246,0.25); }
.pkg-card-body { padding: 0 1.25rem 1rem; flex: 1; }
.pkg-price-row { display: flex; align-items: baseline; gap: 0.35rem; margin-bottom: 0.9rem; }
.pkg-price-amount {
    font-size: 2.2rem; font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.pkg-price-currency { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.pkg-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 0.9rem; }
.pkg-meta-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.6rem; padding: 0.5rem 0.7rem;
}
.pkg-meta-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.2rem; }
.pkg-meta-value { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.pkg-features-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pkg-feature-chip {
    background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.15);
    color: var(--text-muted); border-radius: 20px; padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 500;
}
.pkg-card-footer {
    display: flex; gap: 0.6rem; padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.12);
}
.btn-pkg-edit {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 0.55rem 0; border-radius: var(--radius-md); font-size: 0.85rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    background: rgba(168,85,247,0.12); border: 1px solid rgba(168,85,247,0.25); color: #c084fc;
}
.btn-pkg-edit:hover { background: rgba(168,85,247,0.22); border-color: rgba(168,85,247,0.5); transform: translateY(-1px); }
.btn-pkg-delete {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 0.55rem 0.9rem; border-radius: var(--radius-md); font-size: 0.85rem;
    font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.2); color: #fb7185;
}
.btn-pkg-delete:hover { background: rgba(251,113,133,0.2); border-color: rgba(251,113,133,0.5); transform: translateY(-1px); }
.pkg-loading-state {
    grid-column: 1/-1; text-align: center; padding: 4rem 2rem; color: var(--text-muted);
}
.pkg-loading-state i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* ---- Clickable Stat Cards ---- */
.pkg-stat-clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.22s ease;
}
.pkg-stat-clickable:hover {
    border-color: rgba(168,85,247,0.45);
    box-shadow: 0 6px 24px rgba(168,85,247,0.15);
    transform: translateY(-3px);
}
.pkg-stat-clickable.active-stat {
    border-color: rgba(168,85,247,0.55);
    background: rgba(168,85,247,0.12);
    box-shadow: 0 0 0 2px rgba(168,85,247,0.25), 0 6px 24px rgba(168,85,247,0.12);
}
.pkg-stat-clickable.active-stat i { filter: brightness(1.3); }
.stat-filter-hint {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(168,85,247,0.65);
    opacity: 0;
    transition: opacity 0.18s ease;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.pkg-stat-clickable:hover .stat-filter-hint,
.pkg-stat-clickable.active-stat .stat-filter-hint { opacity: 1; }

/* ---- Sort & Search Toolbar ---- */
.pkg-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.pkg-search-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}
.pkg-search-wrap i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}
.pkg-search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.9rem 0.5rem 2.1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.pkg-search-input:focus {
    border-color: rgba(168,85,247,0.5);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.12);
}
.pkg-search-input::placeholder { color: var(--text-muted); opacity: 0.7; }
.pkg-sort-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.pkg-sort-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 0.15rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.pkg-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.75rem;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    white-space: nowrap;
}
.pkg-sort-btn:hover {
    background: rgba(168,85,247,0.1);
    border-color: rgba(168,85,247,0.3);
    color: #c084fc;
}
.pkg-sort-btn.active {
    background: rgba(168,85,247,0.18);
    border-color: rgba(168,85,247,0.45);
    color: #c084fc;
    box-shadow: 0 0 10px rgba(168,85,247,0.15);
}

/* ---- Active Filter Indicator ---- */
.pkg-filter-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.22);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: #c084fc;
    margin-bottom: 1rem;
    animation: fadeInDown 0.25s ease;
}
.pkg-filter-indicator i { font-size: 0.8rem; }
.pkg-filter-indicator span { flex: 1; font-weight: 500; }
.pkg-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background: rgba(251,113,133,0.12);
    border: 1px solid rgba(251,113,133,0.25);
    color: #fb7185;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.pkg-filter-clear:hover { background: rgba(251,113,133,0.22); }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Hide old stat filter hint text */
.stat-filter-hint { display: none !important; }

/* ==========================================================================
   Daytime (Light Theme) Contrast & Readability Enhancements
   ========================================================================== */
body.light-theme {
    background-color: #f4f1fa !important;
}
body.light-theme label, 
body.light-theme .form-label,
body.light-theme form label {
    color: #1c152a !important; /* Force dark purple text for labels */
}
body.light-theme .form-control,
body.light-theme input[type="text"],
body.light-theme input[type="number"],
body.light-theme input[type="password"],
body.light-theme input[type="email"],
body.light-theme select {
    background: #ffffff !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: #1c152a !important; /* Force dark text in input boxes */
}
body.light-theme .form-control::placeholder,
body.light-theme input::placeholder {
    color: #8c82a5 !important; /* Force highly readable muted placeholder */
}
body.light-theme .card h2,
body.light-theme .card-title h2,
body.light-theme h2,
body.light-theme h3 {
    color: #1c152a !important; /* Force highly visible headings */
}
body.light-theme .webhook-endpoint-info {
    background: rgba(139, 92, 246, 0.06) !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
}
body.light-theme .webhook-endpoint-info p {
    color: #1c152a !important;
}
body.light-theme #settings-webhook-url {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #ec4899 !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}
body.light-theme .selected-pkg-summary {
    background: rgba(139, 92, 246, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}
body.light-theme #stripe-modal-pkg-name {
    color: #1c152a !important;
}
body.light-theme #stripe-modal-pkg-details {
    color: #6e6485 !important;
}
body.light-theme #stripe-card-element {
    background: #ffffff !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}
body.light-theme .input-tip {
    color: #5c5570 !important;
}
body.light-theme .help-method ol li,
body.light-theme .help-method p {
    color: #4a4163 !important;
}
body.light-theme .credits-display-badge {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
    color: #7c3aed !important;
}
body.light-theme .user-profile-badge {
    background: #ffffff !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: #1c152a !important;
}
body.light-theme .checkbox-label span {
    color: #1c152a !important;
}
body.light-theme .pkg-stat small {
    color: #6e6485 !important;
}
body.light-theme .pkg-stat-clickable:not(.active-stat) {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(139, 92, 246, 0.1) !important;
}
body.light-theme .pkg-stat-clickable:not(.active-stat) small {
    color: #6e6485 !important;
}
body.light-theme .pkg-toolbar {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(139, 92, 246, 0.1) !important;
}
body.light-theme .pkg-sort-label {
    color: #6e6485 !important;
}
body.light-theme .pkg-sort-btn:not(.active) {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
    color: #6e6485 !important;
}
body.light-theme .pkg-sort-btn:hover {
    color: #a855f7 !important;
    background: rgba(168, 85, 247, 0.08) !important;
}
body.light-theme .pkg-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}
body.light-theme .pkg-card:hover {
    background: #ffffff !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}
body.light-theme .pkg-feature-chip {
    background: rgba(139, 92, 246, 0.05) !important;
    color: #4a4163 !important;
}
body.light-theme .pkg-search-wrap i {
    color: #6e6485 !important;
}
body.light-theme .toast-item {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
    color: #1c152a !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15) !important;
}
body.light-theme .toast-content strong {
    color: #1c152a !important;
}
body.light-theme .toast-content small {
    color: #6e6485 !important;
}
body.light-theme .toast-close-btn {
    color: #6e6485 !important;
}
body.light-theme .view-nav {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}
body.light-theme .nav-btn:not(.active) {
    color: #6e6485 !important;
}
body.light-theme .nav-btn:not(.active):hover {
    color: #1c152a !important;
    background: rgba(139, 92, 246, 0.08) !important;
}
body.light-theme .cookie-help-container button {
    border-color: rgba(139, 92, 246, 0.2) !important;
}
body.light-theme #comments-input {
    background: #ffffff !important;
    color: #1c152a !important;
}
body.light-theme .char-count {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #6e6485 !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
}
body.light-theme .logo-text h1 {
    color: #1c152a !important;
}
body.light-theme .logo-text h1 span {
    color: #a855f7 !important;
}

/* ==========================================================================
   Gündüz Modu (Light Theme) İlave Kontrast ve Okunabilirlik İyileştirmeleri
   ========================================================================== */
body.light-theme .pricing-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(139, 92, 246, 0.18) !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.08) !important;
}
body.light-theme .pricing-card:hover {
    background: #ffffff !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.15) !important;
}
body.light-theme .pricing-card h4 {
    color: #1c152a !important;
}
body.light-theme .pricing-card .pricing-price {
    color: #1c152a !important;
}
body.light-theme .pricing-tabs-wrapper {
    background: rgba(139, 92, 246, 0.06) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}
body.light-theme .advanced-filters-header {
    background: rgba(139, 92, 246, 0.06) !important;
    border-color: rgba(139, 92, 246, 0.18) !important;
}
body.light-theme .advanced-filters-header h3 {
    color: #1c152a !important;
}
body.light-theme input:disabled {
    background: #e9e4f5 !important;
    color: #5c5570 !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
    cursor: not-allowed !important;
}
body.light-theme select option {
    background: #ffffff !important;
    color: #1c152a !important;
}
body.light-theme #approval-logout-btn {
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: #fb7185 !important;
}
body.light-theme #approval-logout-btn:hover {
    background: rgba(244, 63, 94, 0.08) !important;
}
body.light-theme #export-csv-btn,
body.light-theme #export-json-btn {
    border-color: rgba(139, 92, 246, 0.25) !important;
    color: #6e6485 !important;
}
body.light-theme #export-csv-btn:hover,
body.light-theme #export-json-btn:hover {
    background: rgba(139, 92, 246, 0.08) !important;
    color: #1c152a !important;
}
body.light-theme #rows-per-page-select {
    border-color: rgba(139, 92, 246, 0.25) !important;
    background-color: #ffffff !important;
    color: #1c152a !important;
}
body.light-theme .pagination-container {
    background: rgba(139, 92, 246, 0.03) !important;
    border-top: 1px solid rgba(139, 92, 246, 0.1) !important;
}

/* Dinamik Oluşturulan Durum Rozetleri İçin Kontrast Ayarları */
body.light-theme .badge:has(.fa-exclamation-circle) {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}
body.light-theme .badge:has(.fa-exclamation-triangle) {
    background: rgba(217, 119, 6, 0.08) !important;
    color: #b45309 !important;
    border-color: rgba(217, 119, 6, 0.2) !important;
}
body.light-theme .badge:has(.fa-spinner) {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}
body.light-theme .badge:has(.fa-image-slash) {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}
body.light-theme .badge:has(.fa-folder-open) {
    background: rgba(217, 119, 6, 0.08) !important;
    color: #b45309 !important;
    border-color: rgba(217, 119, 6, 0.2) !important;
}
body.light-theme .badge:has(.fa-images) {
    background: rgba(139, 92, 246, 0.08) !important;
    color: #6e6485 !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}
body.light-theme .badge:has(.fa-robot) {
    background: rgba(147, 51, 234, 0.08) !important;
    color: #7c3aed !important;
    border-color: rgba(147, 51, 234, 0.2) !important;
}
body.light-theme .badge:has(.fa-user-minus) {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.2) !important;
}
body.light-theme .badge:has(.fa-user-check) {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* Çekiliş Sonuçları Ekranı Kontrast İyileştirmeleri */
body.light-theme .result-box {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(139, 92, 246, 0.18) !important;
}
body.light-theme .box-title {
    color: #1c152a !important;
    border-color: rgba(139, 92, 246, 0.12) !important;
}
body.light-theme .winner-card,
body.light-theme .alternate-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}
body.light-theme .winner-card:hover {
    background: #ffffff !important;
    border-color: var(--accent-yellow) !important;
}
body.light-theme .alternate-card:hover {
    background: #ffffff !important;
    border-color: var(--accent-blue) !important;
}
body.light-theme .winner-name {
    color: #1c152a !important;
}
body.light-theme .winner-rank-default {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #1c152a !important;
}
body.light-theme .winner-ticket-badge {
    background: rgba(139, 92, 246, 0.08) !important;
    color: #6e6485 !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}

