/* ==============================================
   MIDNIGHT DARK THEME
   Палитра:
   --bg:        #0f0f13  (страница)
   --surface:   #18181f  (контейнер)
   --card:      #1f1f28  (карти)
   --card-alt:  #26262f  (алтернативни карти)
   --border:    #2e2e3a  (бордери)
   --accent:    #7c5cfc  (лилав акцент)
   --accent-h:  #9b7dfd  (hover)
   --text:      #eeeef0  (основен текст)
   --text-m:    #a0a0b8  (вторичен текст)
   --text-dim:  #60607a  (неактивен текст)
   --success:   #22c55e
   --warning:   #f59e0b
   --danger:    #ef4444
   ============================================== */

/* ── Global dark color scheme — тъмни нативни UI елементи ── */
:root {
    color-scheme: dark;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0d14;
}
::-webkit-scrollbar-thumb {
    background: rgba(124,92,252,0.45);
    border-radius: 8px;
    border: 2px solid #0f0d14;
    transition: background .2s;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c5cfc;
}
::-webkit-scrollbar-corner {
    background: #0f0d14;
}

/* ── Animated canvas background ── */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ── Базови елементи ── */
body {
    background-color: #0f0f13 !important;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(124,92,252,0.08) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(155,125,253,0.05) 0%, transparent 50%);
    color: #eeeef0 !important;
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
}

header, nav, footer {
    position: relative;
    z-index: 10;
}

.container {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    color: #eeeef0 !important;
}

p {
    color: #a0a0b8 !important;
}

strong, b {
    color: #eeeef0 !important;
}

ul li, ol li {
    color: #a0a0b8 !important;
}

a {
    color: #9b7dfd !important;
}

a:hover {
    color: #b89ffe !important;
}

label {
    color: #a0a0b8 !important;
}

/* ── Header ── */
header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 16px 32px 0 32px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.header-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

header h1 {
    color: #eeeef0 !important;
    font-size: 1.4rem !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

header p, header span {
    color: #a0a0b8 !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-btn, .login-btn, .register-btn {
    padding: 6px 16px !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.logout-btn {
    background: #2e2e3a !important;
    color: #eeeef0 !important;
    border: 1px solid #3e3e4e !important;
}

.logout-btn:hover {
    background: #3e3e4e !important;
    color: #eeeef0 !important;
}

.login-btn, .register-btn {
    background: #7c5cfc !important;
    color: #ffffff !important;
}

.login-btn:hover, .register-btn:hover {
    background: #9b7dfd !important;
    color: #ffffff !important;
}

/* ── Language switcher ── */
.lang-switcher {
    display: flex !important;
    gap: 4px !important;
    margin-left: 8px !important;
    align-items: center !important;
}

.lang-btn {
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    color: #aaa !important;
    background: transparent !important;
    border: 1px solid #3e3e4e !important;
    text-decoration: none !important;
    transition: all 0.15s !important;
    line-height: 1.5 !important;
}

.lang-btn:hover {
    border-color: #7c5cfc !important;
    color: #c4b0ff !important;
    background: rgba(124,92,252,0.08) !important;
}

.lang-btn.active {
    background: rgba(124,92,252,0.18) !important;
    border-color: #7c5cfc !important;
    color: #c4b0ff !important;
}

/* ── Навигация ── */
nav {
    background: rgba(10,7,17,0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(46, 46, 58, 0.5) !important;
    padding: 0 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

.nav-links {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

nav a {
    color: #a0a0b8 !important;
    background: transparent !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.15s !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

nav a:hover {
    color: #eeeef0 !important;
    background: transparent !important;
    border-bottom-color: #7c5cfc !important;
}

nav a.active {
    color: #7c5cfc !important;
    border-bottom-color: #7c5cfc !important;
}

/* ── Hamburger бутон ── */
.nav-burger {
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: 1px solid rgba(124,92,252,0.5) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 50 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    color: #7c5cfc !important;
    transition: border-color 0.2s, background 0.2s !important;
    pointer-events: all !important;
}
.nav-burger:hover {
    border-color: #7c5cfc !important;
    background: rgba(124,92,252,0.1) !important;
}
.nav-burger span {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    background: #7c5cfc !important;
    border-radius: 2px !important;
    transition: all 0.25s !important;
    transform: none !important;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) !important; background: #7c5cfc !important; }
.nav-burger.open span:nth-child(2) { opacity: 0 !important; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) !important; background: #7c5cfc !important; }

/* ── Responsive ── */
@media (max-width: 860px) {
    nav {
        padding: 4px 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        min-height: 48px !important;
        overflow: visible !important;
        position: relative !important;
    }
    .nav-burger {
        display: flex !important;
        align-self: flex-end !important;
        margin: 4px 0 !important;
    }
    .nav-links {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 200 !important;
        flex-direction: column !important;
        width: 100% !important;
        background: rgba(12,12,18,0.98) !important;
        border-top: 1px solid rgba(124,92,252,0.2) !important;
        border-bottom: 1px solid rgba(124,92,252,0.4) !important;
        padding: 4px 0 !important;
        gap: 0 !important;
        justify-content: flex-start !important;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    }
    .nav-links.open { display: flex !important; }
    .nav-links a {
        padding: 14px 28px !important;
        border-bottom: 1px solid #2e2e3a !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-right: none !important;
        font-size: 1rem !important;
    }
    .nav-links a:last-child { border-bottom: none !important; }
}

/* ── Custom number spinner ── */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0; }
input[type="number"] { -moz-appearance: textfield !important; appearance: textfield !important; }

.num-wrap { display: flex; border: 1px solid #2e2e3a; border-radius: 8px; overflow: hidden; background: #26262f; transition: border-color 0.2s, box-shadow 0.2s; }
.num-wrap:focus-within { border-color: #7c5cfc !important; box-shadow: 0 0 0 2px rgba(124,92,252,0.2); }
.num-wrap input[type="number"] { flex: 1; border: none !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; padding: 8px 10px !important; min-width: 0; width: auto !important; }
.num-spin-btns { display: flex; flex-direction: column; width: 24px; flex-shrink: 0; border-left: 1px solid #3a3a4a; }
.num-spin-btn { flex: 1; background: transparent; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; user-select: none; padding: 0; }
.num-spin-btn:hover { background: rgba(124,92,252,0.25); }
.num-spin-btn:active { background: rgba(124,92,252,0.45); }
.num-spin-btn + .num-spin-btn { border-top: 1px solid #3a3a4a; }

/* ── Custom select dropdown ── */
.csel-wrap { position: relative; display: block; z-index: 1; }
.csel-wrap.open { z-index: 10000; }
.csel-wrap select { display: none !important; }
.csel-trigger { width: 100%; padding: 8px 36px 8px 12px; background: #26262f; border: 1px solid #2e2e3a; border-radius: 8px; color: #eeeef0; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; user-select: none; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; position: relative; }
.csel-trigger::after { content: ''; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #7c5cfc; transition: transform 0.2s; pointer-events: none; }
.csel-wrap.open .csel-trigger { border-color: #7c5cfc; box-shadow: 0 0 0 2px rgba(124,92,252,0.2); }
.csel-wrap.open .csel-trigger::after { transform: translateY(-50%) rotate(180deg); }
.csel-dropdown { position: fixed; z-index: 99999; background: #1f1f28; border: 1px solid rgba(124,92,252,0.5); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.5); display: none; }
.csel-option { padding: 10px 14px; color: #eeeef0; cursor: pointer; font-size: 0.95rem; transition: background 0.15s; }
.csel-option:hover { background: rgba(124,92,252,0.18); color: #c4b5fd; }
.csel-option.selected { background: rgba(124,92,252,0.25); color: #9b7dfd; font-weight: 600; }
.csel-option + .csel-option { border-top: 1px solid #2e2e3a; }

/* ── Flatpickr тема ── */
.flatpickr-calendar { background: #18181f !important; border: 1px solid rgba(124,92,252,0.5) !important; border-radius: 14px !important; box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(124,92,252,0.15) !important; font-family: inherit !important; overflow: hidden; }
.flatpickr-months { background: #18181f !important; border-bottom: 1px solid #2e2e3a !important; padding: 8px 0 !important; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month { background: transparent !important; color: #eeeef0 !important; fill: #eeeef0 !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { background: #18181f !important; color: #eeeef0 !important; border: none !important; font-size: 1rem !important; font-weight: 600 !important; }
.flatpickr-current-month input.cur-year { color: #eeeef0 !important; font-weight: 600 !important; }
.flatpickr-prev-month, .flatpickr-next-month { color: #7c5cfc !important; fill: #7c5cfc !important; }
.flatpickr-prev-month:hover, .flatpickr-next-month:hover { color: #9b7dfd !important; fill: #9b7dfd !important; background: rgba(124,92,252,0.12) !important; border-radius: 8px !important; }
.flatpickr-weekdays { background: #18181f !important; border-bottom: 1px solid #2e2e3a !important; }
.flatpickr-weekday { background: transparent !important; color: #7c5cfc !important; font-weight: 700 !important; font-size: 0.78rem !important; }
.flatpickr-days, .dayContainer, .flatpickr-innerContainer { background: #18181f !important; }
.flatpickr-day { background: transparent !important; border: none !important; color: #eeeef0 !important; border-radius: 8px !important; }
.flatpickr-day:hover { background: rgba(124,92,252,0.18) !important; color: #eeeef0 !important; }
.flatpickr-day.today { border: 1px solid #7c5cfc !important; color: #7c5cfc !important; font-weight: 700 !important; }
.flatpickr-day.today:hover { background: rgba(124,92,252,0.18) !important; color: #9b7dfd !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: #7c5cfc !important; border-color: #7c5cfc !important; color: #fff !important; box-shadow: 0 0 10px rgba(124,92,252,0.5) !important; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: #3a3a50 !important; }
.flatpickr-day.disabled { color: #2e2e3a !important; }

/* ── Контейнер ── */
.container {
    background-color: rgba(24, 24, 31, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(124, 92, 252, 0.6) !important;
    border-radius: 16px !important;
    box-shadow:
        0 0 0 1px rgba(124, 92, 252, 0.3),
        0 0 25px rgba(124, 92, 252, 0.3),
        0 0 70px rgba(124, 92, 252, 0.15),
        inset 0 0 60px rgba(124, 92, 252, 0.04),
        0 8px 40px rgba(0, 0, 0, 0.7) !important;
    animation: neon-pulse 3s ease-in-out infinite !important;
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(124, 92, 252, 0.3),
            0 0 25px rgba(124, 92, 252, 0.3),
            0 0 70px rgba(124, 92, 252, 0.15),
            inset 0 0 60px rgba(124, 92, 252, 0.04),
            0 8px 40px rgba(0, 0, 0, 0.7);
        border-color: rgba(124, 92, 252, 0.6);
    }
    50% {
        box-shadow:
            0 0 0 2px rgba(155, 125, 253, 0.55),
            0 0 45px rgba(155, 125, 253, 0.5),
            0 0 100px rgba(124, 92, 252, 0.3),
            inset 0 0 80px rgba(155, 125, 253, 0.08),
            0 8px 40px rgba(0, 0, 0, 0.7);
        border-color: rgba(155, 125, 253, 0.85);
    }
}

/* ── Бутони ── */
button, input[type="submit"] {
    background-color: #7c5cfc !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: background-color 0.15s, transform 0.1s !important;
}

button:hover, input[type="submit"]:hover {
    background-color: #9b7dfd !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

button:active, input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* ── File input бутон ── */
input[type="file"] {
    background-color: transparent !important;
    border: 1px dashed #2e2e3a !important;
    border-radius: 8px !important;
    padding: 8px !important;
    color: #a0a0b8 !important;
    cursor: pointer !important;
}

input[type="file"]::file-selector-button {
    background-color: #26262f !important;
    color: #eeeef0 !important;
    border: 1px solid #2e2e3a !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.15s !important;
    margin-right: 10px !important;
}

input[type="file"]::file-selector-button:hover {
    background-color: #7c5cfc !important;
    color: #ffffff !important;
    border-color: #7c5cfc !important;
}

/* Специфични бутони */
.submit-btn, .btn-primary, .btn {
    background-color: #7c5cfc !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    display: inline-block !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.submit-btn:hover, .btn-primary:hover, .btn:hover {
    background-color: #9b7dfd !important;
    color: #ffffff !important;
}

.delete-btn, .btn-danger {
    background-color: #3d1515 !important;
    color: #ef4444 !important;
    border: 1px solid #ef444433 !important;
    border-radius: 8px !important;
}

.delete-btn:hover, .btn-danger:hover {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

.btn-success {
    background-color: #14532d !important;
    color: #22c55e !important;
    border: 1px solid #22c55e33 !important;
    border-radius: 8px !important;
}

.btn-success:hover {
    background-color: #22c55e !important;
    color: #ffffff !important;
}

/* ── Линкове-бутони (a тагове стилизирани като бутони) ── */
a.btn-primary, a[class*="btn"]:not(.btn-social), a.admin-button {
    background-color: #7c5cfc !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background-color 0.15s, transform 0.1s !important;
}

a.btn-primary:hover, a[class*="btn"]:not(.btn-social):hover, a.admin-button:hover {
    background-color: #9b7dfd !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* ── Checkboxes и radio ── */
input[type="checkbox"],
input[type="radio"] {
    accent-color: #7c5cfc !important;
    cursor: pointer !important;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
    outline: 2px solid rgba(124, 92, 252, 0.5) !important;
    outline-offset: 2px !important;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    outline: 2px solid #7c5cfc !important;
    outline-offset: 2px !important;
}

/* ── Форми ── */
input, textarea, select {
    background-color: #26262f !important;
    border: 1px solid #2e2e3a !important;
    color: #eeeef0 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
}

input::placeholder, textarea::placeholder {
    color: #8080a0 !important;
    font-size: 0.95rem !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #7c5cfc !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(124, 92, 252, 0.2) !important;
}

/* ── Autofill — спира браузъра да бели полетата ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #26262f inset !important;
    -webkit-text-fill-color: #eeeef0 !important;
    caret-color: #eeeef0 !important;
    border-color: #2e2e3a !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* ── Карти и секции ── */
.card, .summary-card, .admin-actions,
.add-artist-form, .artist-item,
.payment-details, .chart-container,
.about-section, .mission-section, .offer-section,
.contact-form, .form-container, .no-artists,
.trackForm, .upload-section, .section-card,
.stat-card, .platform-item, .earnings-container {
    background-color: #1f1f28 !important;
    border: 1px solid #2e2e3a !important;
    border-radius: 12px !important;
    color: #eeeef0 !important;
}

/* Всички inline бели фонове */
[style*="background: white"],
[style*="background-color: white"],
[style*="background: #fff"],
[style*="background-color: #fff"],
[style*="background: #f8f9fa"],
[style*="background-color: #f8f9fa"],
[style*="background: #fafafa"],
[style*="background-color: #fafafa"],
[style*="background: #f9f9f9"],
[style*="background-color: #f9f9f9"] {
    background-color: #1f1f28 !important;
    color: #eeeef0 !important;
    border-color: #2e2e3a !important;
}

/* Контейнер секции */
.container section {
    background-color: #1f1f28 !important;
    color: #eeeef0 !important;
}

/* ── Таблици ── */
table {
    background-color: #18181f !important;
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid #2e2e3a !important;
}

th {
    background-color: #26262f !important;
    color: #a0a0b8 !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

td {
    border-bottom: 1px solid #2e2e3a !important;
    color: #eeeef0 !important;
}

tr:hover td {
    background-color: #26262f !important;
}

/* ── Flash съобщения (legacy) ── */
.flash-message { display: none !important; }

/* ── Toast нотификации ── */
.toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.toast {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 18px 14px 20px !important;
    border-radius: 12px !important;
    border-left-width: 3px !important;
    border-left-style: solid !important;
    min-width: 280px !important;
    max-width: 420px !important;
    pointer-events: all !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transition: opacity 0.5s ease, transform 0.5s ease !important;
}

.toast-hide {
    opacity: 0 !important;
    transform: translateX(30px) !important;
}

/* success */
.toast-success {
    background: rgba(20, 40, 28, 0.85) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-left-color: #22c55e !important;
    color: #86efac !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important;
}
.toast-success::before { content: '✔'; color: #22c55e; margin-right: 8px; font-style: normal; }

.toast-danger, .toast-error {
    background: rgba(40, 15, 15, 0.85) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-left-color: #ef4444 !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important;
}
.toast-danger::before, .toast-error::before { content: '✖'; color: #ef4444; margin-right: 8px; }

.toast-warning {
    background: rgba(40, 30, 10, 0.85) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-left-color: #f59e0b !important;
    color: #fcd34d !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important;
}
.toast-warning::before { content: '⚠'; color: #f59e0b; margin-right: 8px; }

.toast-info, .toast-message {
    background: rgba(20, 15, 40, 0.85) !important;
    border: 1px solid rgba(124, 92, 252, 0.3) !important;
    border-left-color: #7c5cfc !important;
    color: #c4b5fd !important;
    box-shadow: 0 0 20px rgba(124, 92, 252, 0.15), 0 4px 20px rgba(0,0,0,0.5) !important;
}
.toast-info::before, .toast-message::before { content: 'ℹ'; color: #7c5cfc; margin-right: 8px; }

.toast-text {
    flex: 1 !important;
}

.toast-close {
    background: none !important;
    border: none !important;
    color: inherit !important;
    opacity: 0.5 !important;
    cursor: pointer !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    transition: opacity 0.15s !important;
}
.toast-close:hover { opacity: 1 !important; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0)   scale(1); }
}

/* ── Footer ── */
footer {
    background-color: #0f0f13 !important;
    border-top: 1px solid #2e2e3a !important;
    color: #60607a !important;
}

/* ── Artists страница ── */
.artist-item:hover {
    border-color: #7c5cfc !important;
}

.platform-tab {
    background-color: #26262f !important;
    border: 1px solid #2e2e3a !important;
    color: #a0a0b8 !important;
    border-radius: 8px !important;
    transition: all 0.15s !important;
}

.platform-tab.active {
    background-color: #7c5cfc !important;
    border-color: #7c5cfc !important;
    color: #ffffff !important;
}

.platform-tab:hover:not(.active) {
    background-color: #2e2e3a !important;
    color: #eeeef0 !important;
}

.platform-tabs {
    border-bottom-color: #2e2e3a !important;
}

.url-examples, .form-note {
    color: #7c5cfc !important;
}

/* ── Earnings страница ── */
.stat-amount { color: #7c5cfc !important; }
.period-tab {
    background: #26262f !important;
    color: #a0a0b8 !important;
    border: 1px solid #2e2e3a !important;
    border-radius: 8px !important;
}
.period-tab.active {
    background: #7c5cfc !important;
    color: #ffffff !important;
    border-color: #7c5cfc !important;
}
.badge-paid { background: #14532d !important; color: #22c55e !important; }
.badge-pending { background: #422006 !important; color: #f59e0b !important; }

section h2 {
    color: #eeeef0 !important;
    border-bottom: 1px solid #2e2e3a !important;
    padding-bottom: 8px !important;
}

/* ── Status badges ── */
.status-badge.approved, .status-paid {
    background-color: #14532d !important;
    color: #22c55e !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
}
.status-badge.pending, .status-pending {
    background-color: #422006 !important;
    color: #f59e0b !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
}
.status-badge.review {
    background-color: #2d1b69 !important;
    color: #9b7dfd !important;
    border-radius: 6px !important;
    padding: 3px 10px !important;
}

/* ── Upload страница ── */
.store-option {
    background-color: #1f1f28 !important;
    border: 2px solid #2e2e3a !important;
    border-radius: 10px !important;
    color: #eeeef0 !important;
    transition: border-color 0.15s, background-color 0.15s !important;
}
.store-option:hover {
    border-color: #7c5cfc !important;
    background-color: #261f3a !important;
}
.store-option:has(input:checked) {
    border-color: #7c5cfc !important;
    background-color: #1a1228 !important;
}

.trackForm {
    background-color: #1f1f28 !important;
    border: 1px solid #2e2e3a !important;
    border-radius: 10px !important;
}

/* ── Release карти ── */
.release-card {
    background-color: #1f1f28 !important;
    border: 1px solid #2e2e3a !important;
    border-radius: 12px !important;
}
.release-card:hover {
    border-color: #7c5cfc !important;
    box-shadow: 0 0 0 1px #7c5cfc !important;
}

/* ── Info блокове ── */
div[style*="background-color: #f0f7ff"] {
    background-color: #1a1228 !important;
    border: 1px solid #2d1b69 !important;
    border-radius: 10px !important;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
    .container {
        margin: 16px !important;
        padding: 20px !important;
    }

    nav {
        padding: 0 16px !important;
    }

    nav a {
        padding: 10px 12px !important;
        font-size: 0.85rem !important;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stats-cards, .platform-breakdown {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 12px 16px !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }

    header h1 {
        font-size: 1.1rem !important;
    }

    .user-info {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    /* Nav — hamburger menu на мобилен */
    nav {
        padding: 4px 16px !important;
        gap: 0 !important;
        overflow: visible !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: nowrap !important;
    }

    nav a {
        padding: 14px 28px !important;
        font-size: 1rem !important;
        white-space: normal !important;
    }

    /* Container */
    .container {
        margin: 8px !important;
        padding: 16px !important;
        border-radius: 12px !important;
    }

    /* Grids — 1 колона */
    .stats-cards,
    .platform-breakdown,
    .earnings-summary {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

    /* Таблици — scroll */
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    /* Бутони */
    button, input[type="submit"], .submit-btn, .btn-primary {
        width: 100% !important;
        padding: 12px !important;
        font-size: 1rem !important;
    }

    /* Store options grid */
    .store-options-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Upload бутони */
    .upload-options {
        flex-direction: column !important;
    }

    /* Form грид 2 колони → 1 */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Artists */
    .artist-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Platform tabs */
    .platform-tabs {
        flex-wrap: wrap !important;
    }

    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.2rem !important; }
    h3 { font-size: 1rem !important; }
}

/* ── Date picker и Select dropdown — тъмна тема ── */
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
    color-scheme: dark !important;
}

select {
    color-scheme: dark !important;
}

/* ── Number input spinners ── */
.num-spin-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 50% !important;
    min-height: 0 !important;
    transform: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.num-spin-btn:hover {
    background: rgba(124,92,252,0.25) !important;
    background-color: rgba(124,92,252,0.25) !important;
    transform: none !important;
}
.num-spin-btn:active {
    background: rgba(124,92,252,0.45) !important;
    transform: none !important;
}

input[type="number"]:not(.cur-year)::-webkit-outer-spin-button,
input[type="number"]:not(.cur-year)::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
}
input[type="number"]:not(.cur-year) { -moz-appearance: textfield !important; }

/* Flatpickr year spinner — purple */
.cur-year::-webkit-outer-spin-button,
.cur-year::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button !important;
    opacity: 1 !important;
    filter: hue-rotate(220deg) saturate(2) brightness(1.2) !important;
    cursor: pointer !important;
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
    .container {
        margin: 4px !important;
        padding: 12px !important;
        border-radius: 8px !important;
    }

    .store-options-grid {
        grid-template-columns: 1fr !important;
    }

    .store-option {
        padding: 10px !important;
    }

    .stat-card {
        padding: 14px !important;
    }

    .stat-amount {
        font-size: 1.5rem !important;
    }
}
