/**
 * ŞEMDİNLİM - MODERN TEMA SİSTEMİ (AYDINLIK MODERN + 3 KOYU PRESTİJ TEMA + ÖZEL TEMA)
 * 1. Aydınlık Modern (Ferah, yüksek kontrast, kurumsal & sosyal medya tarzı - VARSAYILAN)
 * 2. Obsidian & Electric Indigo (Modern teknolojik derin siyah & elektrik moru)
 * 3. Deep Slate & Royal Emerald (Prestijli, zümrüt yeşili & altın dokunuşlar)
 * 4. Carbon & Sunset Coral (Dinamik, sıcak, karbon & gün batımı mercanı)
 */

/* ==========================================================
   TEMA 1: AYDINLIK MODERN (VARSAYILAN SİSTEM TEMASI)
   ========================================================== */
:root,
html,
body,
body.theme-light-modern,
body.theme-obsidian-indigo,
body.theme-slate-emerald,
body.theme-carbon-coral,
body.theme-custom,
[class*="theme-"] {
    /* Miras (Legacy) Değişken Köprüsü - Tüm eski ve yeni sınıfları otomatik olarak aktif temaya bağlar */
    --elite-primary: var(--bg-primary);
    --elite-secondary: var(--bg-secondary);
    --elite-card: var(--bg-card);
    --elite-surface: var(--bg-surface);
    --elite-border: var(--border-color);
    --elite-text: var(--text-primary);
    --elite-text-secondary: var(--text-secondary);
    --elite-text-muted: var(--text-muted);
    --elite-red: var(--accent-primary);
    --elite-red-dark: var(--accent-secondary);
    --elite-red-light: var(--accent-primary);
    --elite-gradient: var(--accent-gradient);
    --elite-gradient-hover: var(--accent-gradient-hover);
    --elite-shadow: var(--shadow-card);
    --elite-shadow-hover: var(--shadow-glow);
    --elite-glow: var(--accent-glow);
    --border-primary: var(--border-color);
    --border-secondary: var(--border-color);
    --bg-tertiary: var(--bg-card);
}

/* ==========================================================
   TEMA 1: AYDINLIK MODERN (CANLI, YÜKSEK KONTRAST, SOSYAL MEDYA - VARSAYILAN)
   ========================================================== */
:root,
body.theme-light-modern {
    --bg-primary: #f0f4f9;
    --bg-secondary: #e2e8f0;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #ffffff;
    
    --border-color: #cbd5e1;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-focus: #4f46e5;
    
    --accent-primary: #4f46e5;
    --accent-secondary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
    --accent-glow: 0 4px 20px rgba(79, 70, 229, 0.28);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --badge-bg: rgba(79, 70, 229, 0.09);
    --badge-border: rgba(79, 70, 229, 0.25);
    --badge-text: #4338ca;
    
    --nav-bg: rgba(255, 255, 255, 0.96);
    --nav-border: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.95);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0284c7;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.07), 0 0 0 1px #e2e8f0;
    --shadow-glow: 0 8px 25px -4px rgba(79, 70, 229, 0.25);
}

/* ==========================================================
   TEMA 2: OBSIDIAN & ELECTRIC INDIGO (GECE MODU)
   ========================================================== */
body.theme-obsidian-indigo {
    --bg-primary: #090a10;
    --bg-secondary: #111322;
    --bg-surface: #151829;
    --bg-card: #171b30;
    --bg-card-hover: #1e233d;
    --bg-input: #121424;
    
    --border-color: rgba(99, 102, 241, 0.22);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #6366f1;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --accent-glow: 0 0 25px rgba(99, 102, 241, 0.45);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --badge-bg: rgba(99, 102, 241, 0.15);
    --badge-border: rgba(99, 102, 241, 0.35);
    --badge-text: #a5b4fc;
    
    --nav-bg: rgba(17, 19, 34, 0.88);
    --nav-border: rgba(99, 102, 241, 0.2);
    --header-bg: rgba(9, 10, 16, 0.85);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
    --shadow-glow: 0 8px 25px -4px rgba(99, 102, 241, 0.4);
}

/* ==========================================================
   TEMA 3: DEEP SLATE & ROYAL EMERALD
   ========================================================== */
body.theme-slate-emerald {
    --bg-primary: #060d10;
    --bg-secondary: #0b171c;
    --bg-surface: #102127;
    --bg-card: #13272e;
    --bg-card-hover: #19333c;
    --bg-input: #0e1d23;
    
    --border-color: rgba(16, 185, 129, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #10b981;
    
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --accent-gradient-hover: linear-gradient(135deg, #059669 0%, #047857 100%);
    --accent-glow: 0 0 25px rgba(16, 185, 129, 0.45);
    
    --text-primary: #f0fdf4;
    --text-secondary: #93c5fd;
    --text-muted: #64748b;
    
    --badge-bg: rgba(16, 185, 129, 0.15);
    --badge-border: rgba(16, 185, 129, 0.35);
    --badge-text: #6ee7b7;
    
    --nav-bg: rgba(11, 23, 28, 0.88);
    --nav-border: rgba(16, 185, 129, 0.2);
    --header-bg: rgba(6, 13, 16, 0.85);
    
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
    --shadow-glow: 0 8px 25px -4px rgba(16, 185, 129, 0.4);
}

/* ==========================================================
   TEMA 3: CARBON & SUNSET CORAL
   ========================================================== */
body.theme-carbon-coral {
    --bg-primary: #0b0b0e;
    --bg-secondary: #13131a;
    --bg-surface: #181822;
    --bg-card: #1c1c28;
    --bg-card-hover: #252534;
    --bg-input: #15151f;
    
    --border-color: rgba(244, 63, 94, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #f43f5e;
    
    --accent-primary: #f43f5e;
    --accent-secondary: #fb7185;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    --accent-gradient-hover: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    --accent-glow: 0 0 25px rgba(244, 63, 94, 0.45);
    
    --text-primary: #fff1f2;
    --text-secondary: #cbd5e1;
    --text-muted: #71717a;
    
    --badge-bg: rgba(244, 63, 94, 0.15);
    --badge-border: rgba(244, 63, 94, 0.35);
    --badge-text: #fda4af;
    
    --nav-bg: rgba(19, 19, 26, 0.88);
    --nav-border: rgba(244, 63, 94, 0.2);
    --header-bg: rgba(11, 11, 14, 0.85);
    
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-subtle);
    --shadow-glow: 0 8px 25px -4px rgba(244, 63, 94, 0.4);
}

/* ==========================================================
   TEMA 4: ÖZEL TEMA (CUSTOM) - CSS DEĞİŞKENLERİ PHP'DEN ENJEKTE EDİLİR
   ========================================================== */
body.theme-custom {
    /* Varsayılan değerler PHP tarafından inline style ile ezilir */
}

/* ==========================================================
   GENEL TEMA VE YÜZEY DÜZENLEMELERİ
   ========================================================== */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-height: 100vh;
    padding-bottom: 75px; /* Mobil alt menü için güvenli boşluk */
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 992px) {
    body {
        padding-bottom: 0;
    }
}

/* Kartlar ve Yüzeyler */
.elite-post-card-index,
.confession-card,
.profile-card,
.chat-card,
.theme-box,
.stat-card-custom {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-card) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.elite-post-card-index:hover,
.confession-card:hover {
    border-color: var(--accent-primary) !important;
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-3px);
}

/* Vurgu Butonları (Primary Action Buttons) */
.btn-premium,
.btn-primary-theme,
.elite-publish-btn,
.chat-send-btn {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    box-shadow: var(--accent-glow) !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-premium:hover,
.btn-primary-theme:hover,
.elite-publish-btn:hover,
.chat-send-btn:hover {
    background: var(--accent-gradient-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Form Girişleri */
.form-control-theme,
.elite-input,
.elite-textarea,
.chat-input-field,
.input-theme {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 16px !important;
    outline: none;
}

.form-control-theme:focus,
.elite-textarea:focus,
.chat-input-field:focus {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
}

/* Kategori Rozetleri - Kesilme Engellendi, Orantılı & Akıcı */
.elite-category-badge-index,
.category-pill {
    background: var(--badge-bg) !important;
    color: var(--badge-text) !important;
    border: 1px solid var(--badge-border) !important;
    border-radius: var(--radius-full) !important;
    padding: 6px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    max-width: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.elite-category-badge-index:hover,
.category-pill:hover {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-1px);
/* ==========================================================
   EVRENSEL BİLEŞEN VE DÜZEN TEMA UYUMU (UNIVERSAL THEME OVERRIDES)
   ========================================================== */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Header & Footer */
.site-header {
    background: var(--header-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.header-navigation {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
}

.nav-btn {
    color: var(--text-secondary) !important;
}

.nav-btn:hover,
.nav-active {
    background: var(--badge-bg) !important;
    color: var(--accent-primary) !important;
}

.premium-footer {
    background: var(--bg-surface) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.premium-footer h4,
.footer-logo-text {
    color: var(--text-primary) !important;
}

.premium-footer a {
    color: var(--text-muted) !important;
}

.premium-footer a:hover {
    color: var(--accent-primary) !important;
}

.footer-bottom {
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
}

/* Gönderi Kartları ve İçerik Kutuları */
.elite-post-card-index,
.elite-post-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-card) !important;
}

.elite-post-header-index,
.elite-post-header {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.elite-post-content-index,
.elite-post-content {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

.elite-post-content-index::after {
    background: linear-gradient(transparent, var(--bg-card)) !important;
}

.elite-read-more {
    background: var(--bg-card) !important;
    color: var(--accent-primary) !important;
}

.elite-post-card-title,
.elite-post-card-title a,
.elite-author-username a,
.author-name {
    color: var(--text-primary) !important;
}

.elite-post-date-index,
.elite-stat-item-index .stat-number {
    color: var(--text-muted) !important;
}

/* Detay ve Etkileşim Butonları */
.elite-details-button {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-glow) !important;
    border: none !important;
}

.elite-details-button:hover {
    background: var(--accent-gradient-hover) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.elite-comment-button-index,
.elite-like-button-index,
.elite-stat-item-index {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
}

.elite-comment-button-index:hover,
.elite-like-button-index:hover {
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
}

/* Bildirim Butonları ve Açılır Pencereler */
.message-notification-btn,
.site-notif-btn,
.btn-theme-switch {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.message-dropdown-menu,
.notif-dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text-primary) !important;
}

.message-dropdown-header,
.notif-dropdown-header {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* ==========================================================
   MEDYA VE VİDEO BOYUT ORANTILAMA & OPTİMİZASYONU
   ========================================================== */
.post-media-video-container {
    max-width: 600px;
    max-height: 480px;
    margin: 16px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.post-media-video {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.post-media-image-container {
    max-width: 720px;
    max-height: 500px;
    margin: 16px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}

.post-media-image {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.post-cta-wrapper {
    margin: 18px 0 10px;
    text-align: center;
}

.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
}

.post-cta-btn:hover {
    background: var(--accent-gradient-hover) !important;
    transform: translateY(-2px);
}

/* ==========================================================
   MOBİL SABİT ALT NAVİGASYON (BOTTOM APP BAR) - KUSURSUZ TIKLANABİLİRLİK
   ========================================================== */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: var(--nav-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--nav-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 999999 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    padding: 0 10px !important;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15) !important;
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 4px;
    position: relative;
    padding: 6px 0;
    pointer-events: auto !important;
    cursor: pointer !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--accent-primary);
}

.bottom-nav-item.active i {
    transform: scale(1.15);
    color: var(--accent-primary);
}

/* Ortadaki Parlayan Hızlı Paylaşım FAB Butonu */
.bottom-nav-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -24px;
    box-shadow: var(--accent-glow), 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--bg-primary);
    pointer-events: auto !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    text-decoration: none;
}

.bottom-nav-fab i {
    font-size: 1.4rem;
    color: #ffffff;
}

.bottom-nav-fab:hover,
.bottom-nav-fab:active {
    transform: scale(1.1) rotate(90deg);
}

/* Okunmamış Sayaç Rozeti */
.nav-badge-count {
    position: absolute;
    top: 2px;
    right: 22%;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    border: 2px solid var(--nav-bg);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ==========================================================
   ŞEHİR NABZI BARI (CITY GLANCE BAR)
   ========================================================== */
.city-glance-bar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-card);
}

.city-glance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.city-glance-item strong {
    color: var(--text-primary);
}

.city-glance-item i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

/* Canlı Nabız Noktası */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Özel Kaydırma Çubuğu */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==========================================================
   GLOBAL GENİŞLİK VE TAŞMA ENGELLEYİCİ GÜVENCE
   ========================================================== */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================
   MOBİL SABİT WIDGET VE BUTON OFSETLERİ (MENÜ ENGELLEMESİ & ÇAKIŞMA ÖNLENDİ)
   ========================================================== */
@media (max-width: 991px) {
    .tiktok-float-button,
    .tiktok-float-btn {
        bottom: 84px !important;
        left: 16px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
        z-index: 99999 !important;
    }
    #notificationSlider,
    .notifications-slider {
        bottom: 84px !important;
        right: 16px !important;
        left: auto !important;
        max-width: min(380px, calc(100vw - 84px)) !important;
        z-index: 99998 !important;
    }
}

/* ==========================================================
   SAYFALAMA (PAGINATION) TEMA STİLLERİ
   ========================================================== */
.pagination-container,
.pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 30px 0 !important;
    flex-wrap: wrap !important;
}

.pagination a,
.pagination .page-number,
.pagination .page-info {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: var(--radius-md) !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    transition: all 0.2s ease !important;
}

.pagination a:hover {
    background: var(--bg-card-hover) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    transform: translateY(-2px) !important;
}

.pagination .page-number.active,
.pagination a.active {
    background: var(--accent-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-glow) !important;
}

/* ==========================================================================
   ELITE USER RANK BADGE SYSTEM - ANIMATIONS & PRESETS (THEME COMPATIBLE)
/* ==========================================================================
   ELITE RANK BADGES SYSTEM (EXACT ADMIN PORTAL PARITY)
   ========================================================================== */
.elite-ranks-container-index {
    display: inline-flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin: 0 4px !important;
    line-height: normal !important;
}

.elite-ranks-container-index.ranks-container-large {
    gap: 8px !important;
    margin: 6px 0 !important;
}

.elite-rank-badge-new {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.80rem !important;
    line-height: 1 !important;
    padding: 4px 11px !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    box-sizing: border-box !important;
}

.elite-rank-badge-new:hover {
    transform: translateY(-1px) scale(1.04) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40) !important;
}

.elite-rank-badge-new i.rank-badge-icon {
    font-size: 0.90em !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) !important;
}

.elite-rank-badge-new .rank-name {
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
}

.elite-rank-badge-new.size-large {
    padding: 8px 18px !important;
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
    gap: 8px !important;
}

.elite-rank-badge-new.size-large,
.elite-rank-badge-new.size-profile {
    padding: 7px 16px !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
    gap: 8px !important;
}

.elite-rank-badge-new.size-large i.rank-badge-icon,
.elite-rank-badge-new.size-profile i.rank-badge-icon {
    font-size: 1.05em !important;
}

/* 1. GLOW (Pulsing Neon Aura) */
.elite-rank-badge-new.glow {
    box-shadow: 0 0 8px var(--rank-glow-color, #6366f1), 0 0 18px var(--rank-glow-color, #6366f1) !important;
    animation: rankGlowPulse 2s infinite ease-in-out !important;
}
@keyframes rankGlowPulse {
    0%, 100% {
        box-shadow: 0 0 6px var(--rank-glow-color, #6366f1), 0 0 14px var(--rank-glow-color, #6366f1);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 16px var(--rank-glow-color, #6366f1), 0 0 32px var(--rank-glow-color, #6366f1);
        filter: brightness(1.25);
    }
}

/* 2. SHIMMER (Akan Metalik Işık Çizgisi) */
.elite-rank-badge-new.shimmer {
    position: relative !important;
    overflow: hidden !important;
}
.elite-rank-badge-new.shimmer::after {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -150% !important;
    width: 80% !important;
    height: 200% !important;
    background: linear-gradient(
        115deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        transparent 100%
    ) !important;
    transform: rotate(25deg) !important;
    animation: rankShimmerSweep 2.8s infinite ease-in-out !important;
    pointer-events: none !important;
}
@keyframes rankShimmerSweep {
    0% { left: -120%; }
    40%, 100% { left: 160%; }
}

/* 3. FIRE (Alev & Köz Efekti) */
.elite-rank-badge-new.fire {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 50%, #991b1b 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(254, 215, 170, 0.5) !important;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.7), 0 0 22px rgba(220, 38, 38, 0.4) !important;
    animation: rankFireFlicker 1.8s infinite alternate ease-in-out !important;
}
@keyframes rankFireFlicker {
    0% {
        box-shadow: 0 0 8px rgba(234, 88, 12, 0.6), 0 0 16px rgba(220, 38, 38, 0.35);
        filter: brightness(1);
    }
    100% {
        box-shadow: 0 0 16px rgba(249, 115, 22, 0.95), 0 0 30px rgba(239, 68, 68, 0.7);
        filter: brightness(1.2);
    }
}

/* 4. CYBERPUNK (Siber Neon & Matrix) */
.elite-rank-badge-new.cyberpunk {
    background: linear-gradient(135deg, #090d16 0%, #161233 100%) !important;
    color: #06b6d4 !important;
    border: 1px solid #06b6d4 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5), inset 0 0 8px rgba(236, 72, 153, 0.3) !important;
    text-shadow: 0 0 6px rgba(6, 182, 212, 0.7) !important;
    animation: rankCyberFlicker 2.5s infinite alternate ease-in-out !important;
}
@keyframes rankCyberFlicker {
    0%, 100% {
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.5), inset 0 0 8px rgba(236, 72, 153, 0.3);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 18px rgba(6, 182, 212, 0.85), inset 0 0 14px rgba(236, 72, 153, 0.6);
        filter: brightness(1.2);
    }
}
.elite-rank-badge-new.cyberpunk i {
    color: #f43f5e !important;
    filter: drop-shadow(0 0 4px #f43f5e) !important;
}

/* 5. GOLD (24K Saf Altın & Parıltı) */
.elite-rank-badge-new.gold, .badge-style-gold {
    background: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%) !important;
    color: #3b2003 !important;
    font-weight: 800 !important;
    border: 1px solid #ffe599 !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    animation: rankGoldShine 3s infinite ease-in-out !important;
}
@keyframes rankGoldShine {
    0%, 100% { box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45); }
    50% { box-shadow: 0 4px 20px rgba(252, 246, 186, 0.8), 0 0 12px rgba(212, 175, 55, 0.6); }
}
.elite-rank-badge-new.gold i {
    color: #78350f !important;
}

/* 6. ELITE (Kozmik Ametist & Macenta) */
.elite-rank-badge-new.elite, .badge-style-elite {
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 2px 12px rgba(121, 40, 202, 0.45) !important;
}

/* 7. RAINBOW (Gökkuşağı Kromatik Dalga) */
.elite-rank-badge-new.rainbow {
    background: linear-gradient(90deg, #ff416c, #8a2387, #00c6ff, #0072ff, #38ef7d, #ff416c) !important;
    background-size: 300% 100% !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    animation: rankRainbowShift 4s linear infinite !important;
    box-shadow: 0 2px 10px rgba(0, 198, 255, 0.35) !important;
}
@keyframes rankRainbowShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* 8. GLASS (Akrilik Buzlu Cam Efekti) */
.elite-rank-badge-new.glass {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

/* 9. PREMIUM (Kraliyet Elması / Safir Mavi) */
.elite-rank-badge-new.premium {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(147, 197, 253, 0.5) !important;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4) !important;
}

.elite-rank-badge-new.moderator {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    color: #ffffff !important;
}

.elite-rank-badge-new.admin {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%) !important;
    color: #ffffff !important;
}

/* --- YENİ EFEKTLER (8 ADET) --- */
/* 1. Electric */
.elite-rank-badge-new.electric {
    background: linear-gradient(135deg, #091322 0%, #1e1b4b 50%, #0369a1 100%) !important;
    color: #38bdf8 !important;
    border: 1px solid #38bdf8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.8) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6), inset 0 0 8px rgba(168, 85, 247, 0.5) !important;
    animation: rankElectricSpark 1.5s infinite alternate ease-in-out !important;
}
@keyframes rankElectricSpark {
    0%, 100% { box-shadow: 0 0 8px rgba(56, 189, 248, 0.6), inset 0 0 6px rgba(168, 85, 247, 0.4); filter: brightness(1); }
    30% { box-shadow: 0 0 18px rgba(56, 189, 248, 0.95), 0 0 28px rgba(168, 85, 247, 0.7); filter: brightness(1.25); }
    60% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.7), inset 0 0 12px rgba(56, 189, 248, 0.6); }
}
.elite-rank-badge-new.electric i {
    color: #7dd3fc !important;
    filter: drop-shadow(0 0 4px #38bdf8) !important;
}

/* 2. Plasma */
.elite-rank-badge-new.plasma {
    background: linear-gradient(135deg, #4c0519 0%, #831843 50%, #701a75 100%) !important;
    color: #fbcfe8 !important;
    border: 1px solid rgba(244, 114, 182, 0.6) !important;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6), 0 0 22px rgba(168, 85, 247, 0.4) !important;
    animation: rankPlasmaWave 2.4s infinite ease-in-out !important;
}
@keyframes rankPlasmaWave {
    0%, 100% { box-shadow: 0 0 10px rgba(236, 72, 153, 0.5), 0 0 18px rgba(168, 85, 247, 0.3); filter: hue-rotate(0deg) brightness(1); }
    50% { box-shadow: 0 0 20px rgba(244, 114, 182, 0.9), 0 0 32px rgba(192, 132, 252, 0.7); filter: hue-rotate(25deg) brightness(1.2); }
}
.elite-rank-badge-new.plasma i {
    color: #f472b6 !important;
}

/* 3. Magma */
.elite-rank-badge-new.magma {
    background: linear-gradient(110deg, #450a0a 0%, #b91c1c 30%, #ea580c 60%, #facc15 85%, #b91c1c 100%) !important;
    background-size: 250% 100% !important;
    color: #ffffff !important;
    border: 1px solid rgba(253, 224, 71, 0.6) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(234, 88, 12, 0.8) !important;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.7), 0 0 24px rgba(185, 28, 28, 0.5) !important;
    animation: rankMagmaShift 3.5s linear infinite !important;
}
@keyframes rankMagmaShift {
    0% { background-position: 0% 50%; box-shadow: 0 0 10px rgba(234, 88, 12, 0.6); }
    50% { box-shadow: 0 0 20px rgba(250, 204, 21, 0.85), 0 0 32px rgba(234, 88, 12, 0.65); }
    100% { background-position: 200% 50%; box-shadow: 0 0 10px rgba(234, 88, 12, 0.6); }
}
.elite-rank-badge-new.magma i {
    color: #fef08a !important;
}

/* 4. Aurora */
.elite-rank-badge-new.aurora {
    background: linear-gradient(120deg, #064e3b 0%, #0d9488 25%, #6366f1 60%, #8b5cf6 85%, #064e3b 100%) !important;
    background-size: 300% 100% !important;
    color: #ffffff !important;
    border: 1px solid rgba(110, 231, 183, 0.5) !important;
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.5), 0 0 22px rgba(139, 92, 246, 0.4) !important;
    animation: rankAuroraWave 4s ease infinite !important;
}
@keyframes rankAuroraWave {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 10px rgba(45, 212, 191, 0.5); }
    50% { background-position: 100% 50%; box-shadow: 0 0 20px rgba(167, 139, 250, 0.8), 0 0 30px rgba(45, 212, 191, 0.6); }
}
.elite-rank-badge-new.aurora i {
    color: #a7f3d0 !important;
}

/* 5. Frost */
.elite-rank-badge-new.frost {
    background: linear-gradient(135deg, #082f49 0%, #0284c7 45%, #e0f2fe 80%, #38bdf8 100%) !important;
    color: #0c4a6e !important;
    font-weight: 800 !important;
    border: 1px solid rgba(224, 242, 254, 0.8) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.7) !important;
    animation: rankFrostShine 2.5s infinite ease-in-out !important;
}
@keyframes rankFrostShine {
    0%, 100% { box-shadow: 0 0 8px rgba(56, 189, 248, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.6); }
    50% { box-shadow: 0 0 18px rgba(186, 230, 253, 0.95), 0 0 30px rgba(56, 189, 248, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.9); }
}
.elite-rank-badge-new.frost i {
    color: #0369a1 !important;
}

/* 6. Matrix */
.elite-rank-badge-new.matrix {
    background: linear-gradient(135deg, #022c22 0%, #051d14 100%) !important;
    color: #22c55e !important;
    border: 1px solid #22c55e !important;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.9) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5), inset 0 0 8px rgba(34, 197, 94, 0.3) !important;
    animation: rankMatrixGlitch 2s infinite ease-in-out !important;
}
@keyframes rankMatrixGlitch {
    0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.5), inset 0 0 6px rgba(34, 197, 94, 0.3); filter: brightness(1); }
    50% { box-shadow: 0 0 18px rgba(74, 222, 128, 0.9), inset 0 0 14px rgba(34, 197, 94, 0.6); filter: brightness(1.2); }
}
.elite-rank-badge-new.matrix i {
    color: #86efac !important;
}

/* 7. Hologram */
.elite-rank-badge-new.hologram {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.2) 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(236, 72, 153, 0.4), 0 0 20px rgba(56, 189, 248, 0.4) !important;
    animation: rankHologramSweep 3.5s infinite linear !important;
}
@keyframes rankHologramSweep {
    0% { filter: hue-rotate(0deg); box-shadow: 0 0 12px rgba(236, 72, 153, 0.4), 0 0 20px rgba(56, 189, 248, 0.4); }
    50% { filter: hue-rotate(180deg); box-shadow: 0 0 18px rgba(34, 197, 94, 0.6), 0 0 26px rgba(234, 179, 8, 0.6); }
    100% { filter: hue-rotate(360deg); box-shadow: 0 0 12px rgba(236, 72, 153, 0.4), 0 0 20px rgba(56, 189, 248, 0.4); }
}
.elite-rank-badge-new.hologram i {
    color: #fbcfe8 !important;
}

/* 8. Cosmic */
.elite-rank-badge-new.cosmic {
    background: linear-gradient(135deg, #030712 0%, #1e1b4b 40%, #311042 80%, #030712 100%) !important;
    color: #c084fc !important;
    border: 1px solid rgba(192, 132, 252, 0.5) !important;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.7) !important;
    box-shadow: 0 0 14px rgba(147, 51, 234, 0.5), inset 0 0 10px rgba(236, 72, 153, 0.3) !important;
    animation: rankCosmicPulse 2.6s infinite ease-in-out !important;
}
@keyframes rankCosmicPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(147, 51, 234, 0.4), inset 0 0 8px rgba(236, 72, 153, 0.25); filter: brightness(1); }
    50% { box-shadow: 0 0 22px rgba(192, 132, 252, 0.85), inset 0 0 16px rgba(236, 72, 153, 0.55); filter: brightness(1.2); }
}
.elite-rank-badge-new.cosmic i {
    color: #f472b6 !important;
}

