/* ============ TOAST NOTIFICATIONS ============ */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: toastSlideIn 0.3s ease-out;
    pointer-events: auto;
    border-left: 4px solid var(--primary);
}

.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }
.toast.warning { border-left-color: #fbbf24; }

.toast .toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast.hide {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-30px); opacity: 0; }
}

/* ============ BUTON YÜKLENİYOR ============ */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ INPUT HATA DURUMU ============ */
input.input-error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
    animation: inputShake 0.3s ease-in-out;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ============ ŞİFRE GÖSTER/GİZLE ============ */
.password-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.password-wrapper input {
    margin-bottom: 0 !important;
    padding-right: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: 0.2s;
}

.toggle-password:hover { color: #fff; }

/* ============ CONFIRM MODAL ============ */
.confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s;
}

.confirm-modal.open { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-card {
    width: 100%;
    max-width: 340px;
    background: var(--bg-elevated);
    border-radius: 22px;
    padding: 28px 22px 22px;
    border: 1px solid var(--border);
    animation: popIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    animation: iconBounce 0.5s ease-out 0.1s both;
}

@keyframes iconBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.confirm-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 8px;
}

.confirm-message {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 22px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    min-height: 48px;
    transition: 0.2s;
}

.confirm-btn.cancel {
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
}

.confirm-btn.confirm {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(240, 42, 123, 0.4);
}

.confirm-btn.danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.confirm-btn:active { transform: scale(0.96); }

/* ================================================
   🎯 REAL-TIME BANNER (yuxarıdan pərdə)
   ================================================ */

.rt-top-banner {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 70px);
    left: 50%;
    transform: translate(-50%, -200%);
    width: calc(100% - 24px);
    max-width: 400px;
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.98), rgba(30, 20, 45, 0.98));
    border: 1px solid rgba(238, 42, 123, 0.4);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(238, 42, 123, 0.25);
    z-index: 99999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    pointer-events: none;
}

.rt-top-banner.show {
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.rt-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.rt-banner-body {
    flex: 1;
    min-width: 0;
}

.rt-banner-title {
    font-size: 11px;
    font-weight: 800;
    color: #ee2a7b;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rt-banner-msg {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rt-banner-close {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: unset;
    min-height: unset;
    padding: 0;
}
.rt-banner-close::after { display: none !important; }
/* 🎯 Bottom nav badge (messages icon) */
.nav-item .nav-icon {
    position: relative;
    display: inline-block;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    border-radius: 100px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    font-family: inherit;
}

/* 🎯 Banner-dəki avatar (artıq .rt-banner-icon daxilində) */
.rt-banner-icon img {
    display: block;
    border-radius: 50%;
}

/* 🎯 Sayt daxili anons pərdəsi */
.site-announcement-banner {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    color: #fff;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 14px;
    z-index: 999999;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.site-announcement-banner.show { transform: translateY(0); }
.site-announcement-banner span { font-size: 20px; animation: pulse 1.5s infinite; }
.site-announcement-banner div { flex: 1; }
.site-announcement-banner button {
    background: rgba(0,0,0,0.2); border: none; color: #fff;
    width: 24px; height: 24px; border-radius: 50%; font-size: 12px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}


/* 🎯 Yeni Musiqi Tabları */
.music-tabs-nav {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.music-tab-btn {
    flex: 1;
    padding: 10px;
    border-radius: 100px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}
.music-tab-btn.active {
    background: linear-gradient(135deg, #ee2a7b, #6228d7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(238,42,123,0.3);
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }