/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f472b6;
    --accent-light: #f9a8d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

/* Metin seçimini engelle */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    pointer-events: none;
    z-index: -1;
}





/* Print stillerini engelle */
@media print {
    body * {
        display: none !important;
        visibility: hidden !important;
    }

    body::after {
        content: "⛔ Bu içerik yazdırılamaz ve kopyalanamaz.";
        display: block !important;
        visibility: visible !important;
        font-size: 32px;
        text-align: center;
        padding-top: 300px;
        color: #ff0000;
        background: #000;
        height: 100vh;
    }
}

/* === Security Overlays === */
.screenshot-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.screenshot-warning.active {
    display: flex;
}

.warning-content {
    text-align: center;
    color: var(--danger);
    animation: warningPulse 1s ease-in-out infinite;
}

.warning-content svg {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.5));
}

.warning-content h2 {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--danger) 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.warning-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

@keyframes warningPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.blur-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.blur-overlay.active {
    display: flex;
}

.blur-message {
    text-align: center;
    color: var(--primary);
}

.blur-message svg {
    margin-bottom: 15px;
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

.blur-message p {
    font-size: 20px;
    font-weight: 500;
}

/* === Login Overlay === */
.login-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 20000;
    /* Highest z-index */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login-overlay.active {
    display: flex;
    opacity: 1;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.login-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.error-msg {
    color: var(--danger);
    font-size: 13px;
    margin-top: 8px;
    display: none;
    animation: shake 0.4s ease-in-out;
}

.error-msg.visible {
    display: block;
}

.full-width {
    width: 100%;
    justify-content: center;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* === Protected Content Wrapper === */
.protected-content {
    position: relative;
}

/* CSS-based screenshot protection */
.protected-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9990;
    background: transparent;
    /* Bu overlay ekran görüntüsü araçlarını karıştırır */
    mix-blend-mode: difference;
    animation: protectionFlicker 0.01s steps(2) infinite;
}

@keyframes protectionFlicker {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.001;
    }

    100% {
        opacity: 0;
    }
}

/* === Container === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    z-index: 1;
}

/* === Header === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.privacy-tagline {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.credit-tagline {
    font-size: 11px;
    color: var(--primary);
    opacity: 0.8;
    letter-spacing: 0.3px;
    margin-top: -2px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 10px 60px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

.logo-icon svg {
    color: white;
}

.logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.confidential-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 12px 20px;
    border-radius: 100px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: badgePulse 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.icon-btn {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.3s;
    margin-left: 8px;
}

.icon-btn:hover {
    opacity: 1;
}

.full-width-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.full-width-input:focus {
    border-color: var(--primary);
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4),
            inset 0 0 20px rgba(239, 68, 68, 0.1);
    }

    50% {
        box-shadow: 0 0 30px 10px rgba(239, 68, 68, 0.15),
            inset 0 0 30px rgba(239, 68, 68, 0.15);
    }
}

/* === Stats Bar === */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    display: block;
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Actions Bar === */
.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow:
        0 8px 30px rgba(99, 102, 241, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(99, 102, 241, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.45);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 24px;
    flex: 1;
    max-width: 400px;
    transition: all 0.3s;
    backdrop-filter: blur(20px);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box svg {
    color: var(--text-secondary);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    width: 100%;
    outline: none;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* === Table === */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(255, 255, 255, 0.03);
}

th {
    padding: 20px 24px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

td {
    padding: 22px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-primary);
}

td strong {
    font-weight: 600;
    color: var(--text-primary);
}

.festival-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.festival-link:hover {
    text-decoration: underline;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.info-grid span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-grid small {
    color: var(--text-secondary);
    font-weight: 600;
    width: 15px;
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08) 0%, rgba(244, 114, 182, 0.05) 100%);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-pending,
.status-waiting {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.status-submitted {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.status-accepted {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.status-rejected {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: scale(1.05);
}

.action-btn.edit:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.3);
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

/* === Empty State === */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
}

.empty-state.visible {
    display: flex;
}

.empty-state svg {
    margin-bottom: 24px;
    opacity: 0.3;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* === Modal === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.modal-small {
    max-width: 450px;
    padding: 36px;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 36px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.modal-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.delete-message {
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 15px;
}

/* Form Styles */
#festival-form {
    padding: 36px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

/* New Grid for Deadlines/Fees */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sub-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 50px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 40px;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 24px;
    }

    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 26px;
    }

    .actions-bar {
        flex-direction: column;
    }

    .search-box {
        max-width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 900px;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .confidential-badge {
        font-size: 11px;
        padding: 10px 16px;
    }
}

/* === Modern Analytics === */
/* Tabs */
.tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--surface);
    padding: 6px;
    border-radius: 16px;
    width: fit-content;
    border: 1px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 24px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.view-section {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-section.active {
    display: block;
}

/* Bento Grid Layout */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* KPI Cards */
.kpi-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 0 0 100%;
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.kpi-card:nth-child(1) .kpi-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.kpi-card:nth-child(2) .kpi-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.kpi-card:nth-child(3) .kpi-icon {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.kpi-card:nth-child(4) .kpi-icon {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.kpi-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

/* Chart Cards */
.chart-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--border);
    grid-column: span 2;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.chart-card.wide {
    grid-column: span 4;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.chart-container {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-top: 20px;
    position: relative;
    height: 200px;
}

/* Modern Bar Chart */
.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 60%;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(99, 102, 241, 0.6) 100%);
    border-radius: 8px 8px 4px 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    min-width: 8px;
}

.chart-bar:hover {
    transform: scaleY(1.05);
    background: var(--primary-light);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.chart-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Donut Chart */
.donut-container {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.donut-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(var(--bg-dark) 0deg, var(--bg-dark) 360deg);
}

.donut-hole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.donut-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.donut-total {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

/* === Press Kit (EPK) === */
.epk-container {
    max-width: 1000px;
    margin: 0 auto;
}

.epk-hero {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    background: var(--surface);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    align-items: center;
}

.epk-poster-placeholder {
    width: 200px;
    height: 300px;
    background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.epk-poster-placeholder input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.epk-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epk-input-title {
    font-size: 48px;
    font-weight: 800;
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    letter-spacing: -1px;
}

.epk-input-title::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.epk-textarea-logline {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    width: 100%;
    resize: none;
    outline: none;
    padding: 8px;
    transition: all 0.3s;
}

.epk-textarea-logline:hover,
.epk-textarea-logline:focus {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
}

.epk-tags-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.epk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.epk-section {
    background: var(--surface);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.epk-section.full {
    grid-column: span 2;
}

.epk-section h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.epk-ghost-input,
.epk-ghost-textarea {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 8px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
    font-family: inherit;
}

.epk-ghost-input:hover,
.epk-ghost-input:focus,
.epk-ghost-textarea:hover,
.epk-ghost-textarea:focus {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    color: var(--text-primary);
}

.epk-ghost-textarea {
    resize: vertical;
    min-height: 100px;
}

.epk-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.epk-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.download-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 15px;
}

.download-header svg {
    color: var(--primary);
    opacity: 0.8;
}

.epk-link-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    width: 100%;
    outline: none;
    transition: all 0.3s;
}

.epk-link-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 4px;
}

.download-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .epk-hero {
        flex-direction: column;
        text-align: center;
    }

    .epk-grid {
        grid-template-columns: 1fr;
    }

    .epk-section.full {
        grid-column: span 1;
    }
}