/* ==========================================================================
   PREMIUM MASTER CSS PACK v1.0
   Modern Dashboard UI / UX
   ========================================================================== */

/* --- 1. GENEL AYARLAR & FONT --- */
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap);

:root {
    /* --- LIGHT MODE (Varsayılan) --- */
    --pm-bg: #f8fafc;       /* Arka Plan (Slate 50) */
    --pm-surface: #ffffff;  /* Kartlar/Kutular (Beyaz) */
    --pm-text: #1e293b;     /* Ana Yazı (Koyu) */
    --pm-text-muted: #64748b; /* Silik Yazı */
    --pm-border: #e2e8f0;   /* Çizgiler */
    --pm-input-bg: #f8fafc; /* Input Zemini */
    --pm-hover: #f1f5f9;    /* Hover Rengi */
    --pm-shadow: rgba(0,0,0,0.05);
	--m-indigo: #6366f1;
    --m-slate: #1e293b;
    --m-bg-glass: rgba(255, 255, 255, 0.85);
    --m-border: rgba(0, 0, 0, 0.08);
    --m-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--pm-bg);
    color: var(--pm-text);
}

/* MyBB Tablo Reset (Eski tabloları temizle) */
table, tr, td {
    border: none !important;
}

/* Özel Scrollbar */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ==========================================================================
   2. STABVIEW (DASHBOARD TABLO)
   ========================================================================== */
.stabview {
    background: #ffffff;
    margin: 20px 0;
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Sekmeler */
.stabview-tabnames {
    display: flex; align-items: center;
    background: #ffffff; padding: 12px 15px;
    border-bottom: 1px solid var(--pm-border);
}
.stabview-tabnames-container { display: flex; gap: 8px; overflow-x: auto; }
.stabview-tabnames-item {
    padding: 8px 14px; border-radius: 8px;
    color: #64748b; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: 0.2s; display: flex; align-items: center; gap: 6px;
}
.stabview-tabnames-item.active, .stabview-tabnames-item:hover {
    color: var(--pm-primary); background: #e0e7ff;
}

/* Başlıklar (TCAT) - Yan Yana Hizalama */
.stabview-tcater {
    display: flex; align-items: center; width: 100%;
    background: #f8fafc; border-bottom: 1px solid var(--pm-border);
}
.stabview-tcat {
    display: flex; align-items: center; justify-content: center;
    padding: 12px 10px; font-size: 11px; font-weight: 800;
    color: #64748b; text-transform: uppercase; white-space: nowrap;
}
.stabview-tcat:first-child { flex: 1; justify-content: flex-start; padding-left: 20px; }
.stabview-tcat:nth-child(2) { width: 15%; }
.stabview-tcat:nth-child(3) { width: 20%; justify-content: flex-start; }
.stabview-tcat:nth-child(4) { width: 15%; }
.stabview-tcat:nth-child(5) { width: 15%; border-right: none; }

/* Satırlar */
.stabview-row {
    display: flex; align-items: center; border-bottom: 1px solid var(--pm-border);
    background: #fff; transition: 0.2s; padding: 8px 0;
}
.stabview-row:hover { background: #fcfcfc; box-shadow: inset 3px 0 0 var(--pm-primary); }
.stabview-row-item { padding: 10px; font-size: 13px; color: #475569; display: flex; align-items: center; justify-content: center;}
.stabview-row-main { flex: 1; justify-content: flex-start; padding-left: 20px; gap: 10px; overflow: hidden; }
.stabview-row-rv, .stabview-row-dateline, .stabview-row-category { width: 15%; }
.stabview-row-lastpost { width: 20%; justify-content: flex-start; }

/* StabView Empty State (Boş Durum) */
.m-sv-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem 1rem; text-align: center;
}
.m-sv-empty-icon {
    font-size: 2.5rem; color: #cbd5e1; margin-bottom: 1rem;
    background: #f8fafc; width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.m-sv-empty-state:hover .m-sv-empty-icon { background: #e0e7ff; color: var(--pm-primary); transform: scale(1.1); }

/* ==========================================================================
   3. MODALLER (POPUP & NOTLAR)
   ========================================================================== */
.m-premium-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    opacity: 0; animation: mFadeIn 0.3s forwards;
}
.m-premium-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(8px); cursor: pointer;
}
.m-premium-card {
    position: relative; z-index: 10; width: 90%; max-width: 500px;
    background: #ffffff; border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden; transform: scale(0.95);
    animation: mPopUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes mFadeIn { to { opacity: 1; } }
@keyframes mPopUp { to { transform: scale(1); } }

/* Modal Header */
.m-p-header {
    padding: 20px 25px; background: #f8fafc; border-bottom: 1px solid var(--pm-border);
    display: flex; justify-content: space-between; align-items: center;
}
.m-p-icon {
    width: 40px; height: 40px; background: #e0e7ff; color: var(--pm-primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.m-p-title { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; }

/* Referans Satırları (Modal İçi) */
.m-ref-row {
    display: grid; grid-template-columns: 1fr 140px; align-items: center;
    padding: 14px 25px; border-bottom: 1px solid #f1f5f9; transition: 0.2s;
}
.m-ref-row:hover { background: #f8fafc; border-left: 3px solid var(--pm-primary); padding-left: 22px; }

/* ==========================================================================
   4. DUYURU (BENTO GRID)
   ========================================================================== */
.m-ann-grid-wrapper {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; max-width: 1200px; margin: 30px auto; padding: 0 15px;
}
.m-bento-card {
    background: #ffffff; border: 1px solid #f1f5f9; border-radius: 24px;
    padding: 24px; display: flex; flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
.m-bento-card:hover {
    transform: translateY(-5px); box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}
.m-bento-icon-box {
    width: 48px; height: 48px; border-radius: 14px; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.m-bento-icon-box.purple { background: linear-gradient(135deg, #a855f7, #9333ea); }
.m-bento-icon-box.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.m-action-btn {
    width: 40px; height: 40px; background: #0f172a; color: #fff !important;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.m-action-btn:hover { background: var(--pm-primary); transform: rotate(-45deg); }

/* ==========================================================================
   5. FORMLAR & KARTLAR (GİRİŞ, KAYIT, AKTİVASYON)
   ========================================================================== */
/* Ortalanmış Kartlar (Activation, Reset PW) */
.m-activate-card, .m-reset-card {
    background: #ffffff; width: 100%; max-width: 460px; margin: 40px auto;
    border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--pm-border); padding: 40px; position: relative; overflow: hidden;
}
.m-activate-card::before, .m-reset-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

/* Input Grupları */
.m-input-group { margin-bottom: 20px; width: 100%; }
.m-input-group label {
    display: block; font-size: 11px; font-weight: 800; color: #334155;
    margin-bottom: 8px; text-transform: uppercase;
}
.m-input-wrapper { position: relative; width: 100%; }
.m-input-wrapper i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none;
}
.m-textbox {
    width: 100%; padding: 14px 14px 14px 45px;
    background: #f8fafc; border: 2px solid var(--pm-border); border-radius: 12px;
    font-size: 14px; font-weight: 600; outline: none; transition: 0.2s;
}
.m-textbox:focus {
    background: #fff; border-color: var(--pm-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ==========================================================================
   6. BUDDY LIST (ARKADAŞ SEÇİM)
   ========================================================================== */
.m-buddy-wrapper {
    background: #fff; width: 320px; border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); border: 1px solid var(--pm-border);
}
.m-buddy-list-container { height: 200px; overflow-y: auto; padding: 10px 20px; }
.m-buddy-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 15px; background: #fff; border: 1px solid #f1f5f9;
    border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: 0.2s;
}
.m-buddy-item:hover { background: #f8fafc; transform: translateX(2px); }
.m-buddy-item.online { border-left: 3px solid #10b981; }
.m-fake-check {
    width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 6px;
    display: flex; align-items: center; justify-content: center; font-size: 10px; color: transparent;
}
.m-buddy-item input:checked + .m-fake-check {
    background: #10b981; border-color: #10b981; color: #fff;
}

/* ==========================================================================
   7. EKSTRALAR (USERNAME, WARNINGS)
   ========================================================================== */
/* Uyarı Kartı */
.m-warning-card {
    background: #fff; border-radius: 20px; border: 1px solid #fee2e2;
    overflow: hidden; margin-bottom: 20px;
}
.m-warn-header {
    background: #fff1f2; padding: 15px 25px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #fecdd3;
}
.m-warn-title { color: #881337; font-weight: 800; text-transform: uppercase; }

/* Kullanıcı Adı Stilleri (Global Class) */
.m-user-premium {
    display: inline-flex; align-items: center; gap: 4px; font-weight: 800;
}
.m-user-premium i {
    background: linear-gradient(135deg, #fbbf24, #d97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.m-user-premium .m-user-text {
    background: linear-gradient(90deg, #10b981, #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Mobil Uyumlu StabView Başlık Gizleme */
@media screen and (max-width: 768px) {
    .stabview-tcat:nth-child(2), .stabview-tcat:nth-child(3),
    .stabview-tcat:nth-child(4), .stabview-tcat:nth-child(5) { display: none; }
}

/* --- ROLE BADGE ANA YAPI --- */
.m-role-badge {
    display: inline-flex !important; /* Esnek kutu zorlaması */
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 900; /* Daha kalın font */
    font-size: 14px;
    position: relative;
    text-decoration: none !important; /* Alt çizgiyi kaldır */
    transition: transform 0.2s ease;
}

/* Link rengini ezmek için span'a özel ayar */
.m-role-badge span {
    display: inline-block;
}

.m-role-badge:hover {
    transform: scale(1.1); /* Hoverda büyüme */
}

.m-role-badge i {
    font-size: 14px;
    margin-bottom: 2px;
    /* İkonlarda gradient yerine solid renk + gölge kullanıyoruz */
}

/* --- 1. ADMIN (Ateş Kırmızısı Neon) --- */
.m-role-admin i {
    color: #ef4444; /* İkon Rengi */
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.6));
}
.m-role-admin span {
    color: #ef4444 !important; /* Yazı Rengi */
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.5); /* Neon Parlama */
}

/* --- 2. SÜPER MODERATÖR (Elektrik Moru Neon) --- */
.m-role-smod i {
    color: #a855f7;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.6));
}
.m-role-smod span {
    color: #a855f7 !important;
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* --- 3. MODERATÖR (Lazer Mavisi Neon) --- */
.m-role-mod i {
    color: #3b82f6;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.6));
}
.m-role-mod span {
    color: #3b82f6 !important;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* --- 4. KAYITLI ÜYE (Gümüş Gri) --- */
.m-role-user i {
    color: #64748b;
}
.m-role-user span {
    color: #475569 !important;
    /* Üyede neon yok, temiz dursun */
}

/* --- 5. PREMIUM (Zümrüt Yeşili Neon - Eğer kullanıyorsan) --- */
.m-user-premium i {
    color: #fbbf24; /* Taç Altın Sarısı */
    filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.6));
}
.m-user-premium .m-user-text {
    color: #10b981 !important; /* Yazı Yeşil */
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}


blockquote {
    position: relative;
    margin: 24px 0;
    padding: 20px 28px;
    background-color: #ffffff; /* Temiz beyaz arka plan */
    border: 1px solid #e2e8f0; /* master-100'e yakın ince kenarlık */
    border-left: 4px solid #3b82f6; /* master-blue vurgusu */
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Üzerine gelince master-blue derinliği artsın */
blockquote:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

/* Alıntı Metni Stili */
blockquote p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #475569; /* Slate-600 */
    font-style: italic;
    font-weight: 500;
}

/* Cite (Kaynak/Yazar) Stili */
blockquote cite {
    display: block;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a; /* master-900 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Cite içindeki linkler */
blockquote cite a {
    color: #3b82f6; /* master-blue */
    text-decoration: none;
    transition: opacity 0.2s;
}

blockquote cite a:hover {
    opacity: 0.8;
}

/* Dekoratif Tırnak İşareti Süsü (Opsiyonel) */
blockquote::before {
    content: '\f10d';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: #3b82f6; /* master-blue */
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Font Awesome 6 Free";
	font-weight: 900; /* Bu olmazsa ikon görünmez */
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* --- ÖZEL SEÇİM RENGİ (Mouse ile yazı seçince) --- */
::selection {
    background: #6366f1; /* İndigo */
    color: #ffffff;
}

/* --- ÖZEL SCROLLBAR (Chrome, Edge, Safari) --- */
::-webkit-scrollbar {
    width: 8px; /* Çubuk genişliği */
    height: 8px; /* Yatay çubuk yüksekliği */
}

/* Çubuğun arkasındaki yol */
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}

/* Çubuğun kendisi */
::-webkit-scrollbar-thumb {
    background: #cbd5e1; /* Gri renk */
    border-radius: 10px;
    border: 2px solid #f1f5f9; /* Etrafında boşluk hissi verir */
}

/* Çubuğun üzerine gelince */
::-webkit-scrollbar-thumb:hover {
    background: #6366f1; /* İndigo olur */
}

/* Dark Mode Uyumlu (Eğer CSS değişkenlerini eklediysen) */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; border-color: #0f172a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #818cf8; }


/* --- VS CODE TARZI KOD BLOĞU --- */
.codeblock {
    background: #1e1e1e; /* VS Code Dark Gri */
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #333;
}

.codeblock .title {
    background: #252526; /* Başlık Çubuğu */
    padding: 8px 15px;
    border-bottom: 1px solid #333;
    font-size: 11px; color: #9cdcfe; font-family: 'Consolas', monospace;
    display: flex; align-items: center; gap: 8px;
}

/* macOS Pencere Noktaları (Süs) */
.codeblock .title::before {
    content: ''; display: inline-block;
    width: 10px; height: 10px; border-radius: 50%;
    background: #ff5f56; /* Kırmızı */
    box-shadow: 15px 0 0 #ffbd2e, 30px 0 0 #27c93f; /* Sarı ve Yeşil */
    margin-right: 35px;
}

.codeblock code {
    display: block;
    padding: 15px;
    color: #d4d4d4; /* Kod Rengi */
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 13px; line-height: 1.6;
    overflow-x: auto;
}

/* Scrollbar'ı da koyu yapalım */
.codeblock code::-webkit-scrollbar { height: 8px; }
.codeblock code::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }


/* Konu Listesi Satır Düzeni */
.m-thread-row {
    display: flex; align-items: center; gap: 15px;
    background: #fff; padding: 15px; border-bottom: 1px solid #f1f5f9;
}
.m-thread-row:hover { background: #f8fafc; }

/* Statü İkonu Kutusu */
.m-thread-status-icon {
    width: 40px; height: 40px;
    background: #eff6ff; color: #3b82f6;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

/* Eğer konu kilitliyse (HTML'de class="locked" varsa) */
.m-thread-status-icon.dot_newfolder {
    background: #eff6ff; color: #3b82f6;
}
.m-thread-status-icon.dot_closefolder i::before {
    content: "\f086"; /* Kilit İkonu */
}


/* Eğer konu kilitliyse (HTML'de class="locked" varsa) */
.m-thread-status-icon.dot_closefolder {
    background: #fef2f2; color: #ef4444;
}
.m-thread-status-icon.dot_closefolder i::before {
    content: "\f023"; /* Kilit İkonu */
}

/* Eğer konu kilitliyse (HTML'de class="locked" varsa) */
.m-thread-status-icon.dot_hotclosefolder {
    background: #fef2f2; color: #ef4444;
}
.m-thread-status-icon.dot_hotclosefolder i::before {
    content: "\f023"; /* Kilit İkonu */
}

/* Eğer konu "Sıcak" (Hot) ise */
.m-thread-status-icon.dot_hotfolder {
    background: #fff7ed; color: #f97316;
}
.m-thread-status-icon.dot_hotfolder i::before {
    content: "\f06d"; /* Ateş İkonu */
}

.m-thread-status-icon.newclosefolder {
    background: #fef2f2; color: #ef4444;
}
.m-thread-status-icon.newclosefolder i::before {
    content: "\f023"; /* Kilit İkonu */
}

/* --- PROGRESS SCROLL TO TOP --- */
.progress-wrap {
    position: fixed; right: 30px; bottom: 30px;
    height: 46px; width: 46px;
    cursor: pointer; display: block; border-radius: 50px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1); /* Pasif Halka */
    z-index: 9999; opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
    background: #fff; color: #1e293b;
    display: flex; align-items: center; justify-content: center;
}
.progress-wrap.active-progress {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.progress-wrap::after {
    position: absolute; content: '\f062'; /* FontAwesome OK */
    font-family: 'Font Awesome 5 Free'; font-weight: 900;
    text-align: center; line-height: 46px; font-size: 16px; color: #6366f1;
}
.progress-wrap:hover::after { opacity: 0; }
.progress-wrap:hover::before { opacity: 0; }

/* İçteki OK İkonu (Hover'da değişebilir) */
.progress-wrap i { position: absolute; font-size: 16px; opacity: 0; transition: 0.2s; color: #6366f1; }
.progress-wrap:hover i { opacity: 1; }

/* SVG Çizgisi */
.progress-wrap svg path { 
    fill: none; 
}
.progress-wrap svg.progress-circle path {
    stroke: #6366f1; /* Dolum Rengi (İndigo) */
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 200ms linear;
}

/* --- PREMIUM JS TOOLTIP (ASLA KESİLMEZ) --- */

/* Tooltip Kutusu (Javascript tarafından oluşturulacak) */
#m-global-tooltip {
    position: fixed; /* Sayfaya çivili, asla kaymaz */
    z-index: 2147483647 !important; /* En, en, en üst katman */
    
    background: #0f172a; /* Koyu Arkaplan */
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600;
    line-height: 1.4;
    text-align: center;
    
    max-width: 250px;
    width: max-content;
    white-space: normal;
    word-wrap: break-word;
    
    pointer-events: none; /* Mouse etkileşimi yok */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    
    /* Açılış Efekti */
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Tooltip Görünür Olduğunda */
#m-global-tooltip.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Küçük Ok (Opsiyonel - JS ile hesaplamak zor olduğu için genelde bu yöntemde kullanılmaz ama basitçe altına ekleyebiliriz) */
#m-global-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px;
    border-width: 6px; border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

/* ==========================================================================
   ULTRA-PREMIUM NAVIGATION (SENSORY DESIGN)
   ========================================================================== */

.m-premium-nav-root {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- ICON BOX --- */
.m-nav-icon-box {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: 12px;
    transition: 0.2s cubic-bezier(0.2, 0, 0, 1);
    background: rgba(241, 245, 249, 0.5);
}
.m-nav-link:hover .m-nav-icon-box {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.m-dot-ping:not(:empty) {
    position: absolute; top: 10px; right: 10px;
    width: 8px; height: 8px; background: #6366f1;
    border-radius: 50%; border: 2px solid #fff;
}

/* --- CAPSULE --- */
.m-premium-user { position: relative; outline: none; }
.m-user-capsule {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 14px 6px 6px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 100px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.m-user-capsule:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.04);
}

.m-main-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.m-user-labels { display: flex; flex-direction: column; line-height: 1.1; }
.m-u-display { font-size: 13px; font-weight: 700; color: #0f172a; }
.m-u-status { font-size: 10px; font-weight: 500; color: #94a3b8; }
.m-u-arrow { color: #cbd5e1; transition: 0.3s; }

/* --- THE DROPDOWN (GLASSMORPHISM) --- */
.m-premium-dropdown {
    position: absolute; top: calc(100% + 15px); right: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.15), 0 18px 36px -18px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999; overflow: hidden;
}

.m-premium-user:focus-within .m-premium-dropdown {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

/* Internal Card */
.m-dd-profile-card { padding: 24px; position: relative; }
.m-dd-bg-blur {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
}
.m-dd-user-row { position: relative; display: flex; align-items: center; gap: 16px; }
.m-dd-user-row img { width: 56px; height: 56px; border-radius: 20px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.m-dd-name-group h5 { margin: 0; font-size: 16px; font-weight: 800; color: #0f172a; }
.m-dd-name-group p { margin: 2px 0 0; font-size: 11px; color: #64748b; font-weight: 500; }

/* Grid & List */
.m-dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 24px 15px; }
.m-dd-grid a {
    padding: 12px; border-radius: 16px; background: rgba(0,0,0,0.02);
    text-decoration: none; text-align: center; font-size: 11px; font-weight: 700;
    color: #1e293b; border: 1px solid transparent; transition: 0.2s;
}
.m-dd-grid a:hover { background: #fff; border-color: rgba(99,102,241,0.2); color: #6366f1; transform: translateY(-2px); }

.m-dd-list { padding: 0 12px 15px; }
.m-dd-link {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: 16px; text-decoration: none; transition: 0.2s;
}
.m-dd-link:hover { background: rgba(255,255,255,0.5); }
.m-dd-link i { font-size: 14px; color: #94a3b8; width: 20px; transition: 0.2s; }
.m-dd-link span { font-size: 13px; font-weight: 600; color: #475569; flex: 1; }
.m-dd-link:hover i { color: #6366f1; }
.m-dd-link:hover span { color: #0f172a; }
.m-dd-count { font-size: 10px; font-style: normal; font-weight: 800; color: #6366f1; background: rgba(99,102,241,0.1); padding: 2px 8px; border-radius: 10px; }

/* Footer */
.m-dd-footer { padding: 12px 24px 24px; }
.m-logout-action {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; border-radius: 18px; background: #0f172a;
    color: #fff; text-decoration: none; font-size: 12px; font-weight: 700;
    transition: 0.3s;
}
.m-logout-action:hover { background: #ef4444; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.2); }

/* Animation */
.animate-blur-in { animation: blurIn 0.5s ease-out; }
@keyframes blurIn { from { filter: blur(10px); opacity: 0; } to { filter: blur(0); opacity: 1; } }

/* --- PREMIUM GRID ITEMS --- */
.m-premium-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.m-premium-grid-item:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.08);
}

/* İkon Kutusu */
.m-grid-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.3s;
}

/* Yazı Grubu */
.m-grid-label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: center;
}
.m-grid-label span {
    font-size: 11px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.m-grid-label small {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
}

/* --- RENK TEMALARI --- */

/* --- MAVİ TEMA (Blue) --- */
.blue-theme .m-grid-icon {
    background: #eff6ff; /* Çok açık mavi */
    color: #3b82f6;      /* Canlı mavi */
}
.blue-theme:hover { border-color: rgba(59, 130, 246, 0.3); }
.blue-theme:hover .m-grid-icon { background: #3b82f6; color: #fff; }

/* --- YEŞİL TEMA (Green) --- */
.green-theme .m-grid-icon {
    background: #ecfdf5; /* Çok açık yeşil */
    color: #10b981;      /* Canlı yeşil */
}
.green-theme:hover { border-color: rgba(16, 185, 129, 0.3); }
.green-theme:hover .m-grid-icon { background: #10b981; color: #fff; }

/* --- KIRMIZI TEMA (Red) --- */
.red-theme .m-grid-icon {
    background: #fef2f2; /* Çok açık kırmızı */
    color: #ef4444;      /* Canlı kırmızı */
}
.red-theme:hover { border-color: rgba(239, 68, 68, 0.3); }
.red-theme:hover .m-grid-icon { background: #ef4444; color: #fff; }

/* --- PEMBE TEMA (Pink) --- */
.pink-theme .m-grid-icon {
    background: #fdf2f8; /* Çok açık pembe */
    color: #ec4899;      /* Canlı pembe */
}
.pink-theme:hover { border-color: rgba(236, 72, 153, 0.3); }
.pink-theme:hover .m-grid-icon { background: #ec4899; color: #fff; }

/* --- TURKUAZ TEMA (Cyan) --- */
.cyan-theme .m-grid-icon {
    background: #ecfeff; /* Çok açık turkuaz */
    color: #06b6d4;      /* Canlı turkuaz */
}
.cyan-theme:hover { border-color: rgba(6, 182, 212, 0.3); }
.cyan-theme:hover .m-grid-icon { background: #06b6d4; color: #fff; }

/* Admin (Purple) */
.purple-theme .m-grid-icon {
    background: #f5f3ff;
    color: #8b5cf6;
}
.purple-theme:hover { border-color: rgba(139, 92, 246, 0.3); }
.purple-theme:hover .m-grid-icon { background: #8b5cf6; color: #fff; }

/* Mod (Orange) */
.orange-theme .m-grid-icon {
    background: #fff7ed;
    color: #f97316;
}
.orange-theme:hover { border-color: rgba(249, 115, 22, 0.3); }
.orange-theme:hover .m-grid-icon { background: #f97316; color: #fff; }

/* --- OK DÖNME EFEKTİ --- */

/* Okun varsayılan hali */
.m-u-arrow {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Yaylanma efektli geçiş */
    will-change: transform;
}

/* Dropdown açıldığında (Container focus olduğunda) okun hali */
.m-premium-user:focus-within .m-u-arrow {
    transform: rotate(180deg); /* 180 derece tersine döner */
    color: #6366f1; /* Döndüğünde rengi hafifçe indigo olsun (opsiyonel) */
}

/* --- EKSTRA PREMIUM DOKUNUŞ: KAPSÜL EFEKTİ --- */
/* Menü açıldığında kapsülün (butonun) hafifçe içeri çökmesi veya parlaması */
.m-premium-user:focus-within .m-user-capsule {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.05); /* Yumuşak bir halka */
}

/* === ULTRA-PREMIUM RANK SYSTEM === */
.rank {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* İkon ve metin arası boşluk */
    
    padding: 5px 12px 5px 6px; /* Sol taraf ikona göre daha dar */
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    border-radius: 10px; /* Modern Apple tarzı Squircle köşeler */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Rütbe İkon Alanı */
.rank::before {
    content: '';
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* === ÖZEL RÜTBE STİLLERİ === */

/* ADMIN (İndigo/Neon) */
.rank.admin {
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.2);
}
.rank.admin::before {
    content: '\f3ed'; /* Shield Icon */
    background: #6366f1;
    color: #fff;
}
.rank.admin:hover {
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* MODERATÖR (Mavi/Okyanus) */
.rank.mod {
    color: #0ea5e9;
    border-color: rgba(14, 165, 233, 0.2);
}

.rank.mod::before {
    content: '\f0e3'; /* Gavel Icon */
    background: #0ea5e9;
    color: #fff;
}

.rank.smod {
    color: #a855f7;
    border-color: rgba(14, 165, 233, 0.2);
}

.rank.smod::before {
    content: '\f0e7' !important; 
    background: #a855f7 !important;
    color: #fff;
}
.rank.mod:hover {
    background: rgba(14, 165, 233, 0.05);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.rank.smod:hover {
    background: rgba(14, 165, 233, 0.05);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

/* VIP / ÖZEL ÜYE (Altın/Amber) */
.rank.vip {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}
.rank.vip::before {
    content: '\f005'; /* Star Icon */
    background: #f59e0b;
    color: #fff;
}

/* Standart Üye veya Diğerleri İçin Varsayılan İkon */
.rank:not(.admin):not(.mod):not(.vip)::before {
    content: '\f007'; /* User Icon */
    background: #94a3b8;
    color: #fff;
}

/* Hover Parlama Efekti */
.rank::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.rank:hover::after {
    left: 100%;
}

/* === FLOATING LEFT DISCORD === */
.m-discord-sticky {
    position: fixed;
    left: 20px;
    bottom: 30px; /* Alttan yükseklik */
    z-index: 9999;
    display: flex;
    align-items: center;
}

.m-sticky-content {
    background: rgba(88, 101, 242, 0.15); /* Discord Mavisi Cam Efekti */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 8px 15px 8px 8px;
    border-radius: 100px; /* Tam yuvarlak hap tasarımı */
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Sol İkon Dairesi */
.m-sticky-icon {
    width: 40px;
    height: 40px;
    background: #5865f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    position: relative;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* Canlılık Noktası */
.m-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #5865f2;
    border-radius: 50%;
}

/* Yazı Alanı */
.m-sticky-text {
    display: flex;
    flex-direction: column;
}

.m-sticky-text .m-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #94a3b8; /* Hafif soluk gri */
}


/* Çevrimiçi Sayısı İçin Özel Yeşil Stil */
#mini-discord-count {
    color: #10b981 !important; /* Modern Canlı Yeşil */
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4); /* Hafif Yeşil Parlama */
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Hover durumunda yeşilin daha da parlaması için */
.m-sticky-content:hover #mini-discord-count {
    color: #22c55e !important; /* Daha açık, parlak yeşil */
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

/* Küçük bir detay: Online yazısı yanına minik bir canlılık noktası */
#mini-discord-count::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    box-shadow: 0 0 5px #10b981;
}

/* Arka Plan Parlaması (Aura) */
.m-sticky-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #5865f2;
    filter: blur(40px);
    opacity: 0.2;
    z-index: -1;
}

/* Mobilde Çok Büyük Durmaması İçin */
@media (max-width: 768px) {
    .m-discord-sticky { left: 10px; bottom: 20px; }
    .m-sticky-text { display: none; } /* Mobilde sadece ikon kalsın */
    .m-sticky-content { padding: 8px; }
}


/* === POSTBIT AUTHOR DASHBOARD === */
.m-author-dashboard {
    width: 100%;
    margin-top: 15px;
    padding: 0 5px;
    font-family: 'Inter', sans-serif;
}

/* 1. METRİK IZGARASI (GRID) */
.m-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.m-metric-item {
    background: var(--m-card-bg); /* Önceki CSS'ten gelen değişken */
    border: 1px solid var(--m-border);
    padding: 10px 8px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.m-metric-item:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

.m-metric-icon {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 4px;
    transition: 0.3s;
}

.m-metric-item:hover .m-metric-icon {
    color: #6366f1;
    transform: scale(1.1);
}

.m-data-value {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--m-text-main);
    line-height: 1;
}

.m-data-label {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. KATILIM ŞERİDİ (RIBBON) */
.m-join-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(241, 245, 249, 0.5);
    border: 1px dashed var(--m-border);
    padding: 7px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.m-join-ribbon i {
    color: #6366f1;
    font-size: 11px;
}

.m-join-text {
    font-size: 10px;
    color: var(--m-text-muted);
}

.m-join-text strong {
    color: var(--m-text-main);
}

/* 3. FOOTER & PROFİL ALANLARI */
.m-author-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Repütasyon Butonu Düzenlemesi */
.m-rep-area {
    text-align: center;
}

/* MyBB'nin kendi rep linkini modernize et */
.m-rep-area a {
    display: block !important;
    padding: 6px !important;
    background: #f0fdf4 !important; /* Hafif yeşil */
    color: #16a34a !important;
    border: 1px solid #dcfce7 !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: 0.2s;
}

.m-rep-area a:hover {
    background: #16a34a !important;
    color: #fff !important;
}

/* Ceza Seviyesi */
.m-warning-box {
    font-size: 10px;
}

/* Özel Profil Alanları (Şehir, Cinsiyet vs.) */
.m-custom-fields {
    padding-top: 10px;
    border-top: 1px solid var(--m-border);
    font-size: 11px;
    color: #64748b;
    line-height: 1.6;
    text-align: center;
}

/* MyBB Butonlarını Modernize Etme */
.post_management_buttons a, .author_buttons a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 12px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: all 0.2s !important;
    margin: 0 2px !important;
}

.post_management_buttons a:hover {
    background: #6366f1 !important;
    color: #fff !important;
    border-color: #6366f1 !important;
    transform: translateY(-2px);
}

/* Alıntı (Quote) Butonunu Öne Çıkar */
.post_management_buttons a[id*="quote"] {
    background: #f1f5f9 !important;
    color: #4f46e5 !important;
}

/* === CENTERED AUTHOR DASHBOARD === */
.m-author-dashboard.centered {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Yatayda her şeyi ortalar */
    text-align: center; /* Metinleri ortalar */
}

/* Metrik Izgarası */
.m-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 15px;
}

.m-metric-item {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    padding: 12px 5px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.m-metric-item:hover {
    background: #fff;
    border-color: #6366f1;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.05);
}

/* Katılım Şeridi */
.m-join-ribbon {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.m-join-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.m-join-text {
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
}

/* Footer Alanı */
.m-author-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Repütasyon Butonu Ortalama */
.m-rep-area {
    width: 100%;
    display: flex;
    justify-content: center;
}

.m-rep-area a {
    min-width: 120px;
    justify-content: center;
}

/* Özel Profil Alanları Ortalama */
.m-custom-fields {
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Warning Level Barını Ortalama */
.m-warning-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

.m-warning-box table {
    margin: 0 auto !important; /* MyBB tablolarını ortalar */
}

/* === FIXED PREMIUM UPLOAD === */
.m-upload-container {
    margin: 20px 0 !important;
    display: block !important; /* MyBB'nin gizlemesini engeller */
    width: 100% !important;
}

.m-upload-wrapper {
    background: #ffffff !important;
    border: 2px dashed #e2e8f0 !important;
    border-radius: 24px !important;
    padding: 40px 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: block !important;
    cursor: pointer !important;
}

.m-upload-wrapper:hover {
    border-color: #6366f1 !important;
    background: #f8faff !important;
}

.m-file-input {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important; /* Gerçek input gizli ama alanı kaplıyor */
    cursor: pointer !important;
    z-index: 10 !important;
}

.m-upload-icon {
    font-size: 45px !important;
    color: #6366f1 !important;
    margin-bottom: 15px !important;
    pointer-events: none;
}

.m-primary-text {
    display: block !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    pointer-events: none;
}

.m-secondary-text {
    font-size: 13px !important;
    color: #94a3b8 !important;
    pointer-events: none;
}

.m-upload-actions {
    margin-top: 15px !important;
    display: flex !important;
    justify-content: center !important;
}

/* MyBB Buton Modernizasyonu */
.m-upload-actions input {
    background: #1e293b !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 25px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

/* === M-STUDIO LIGHTBOX SYSTEM === */
.m-studio-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 20000;
    display: none; /* JS ile açılacak */
    flex-direction: column;
    animation: m-fade-in 0.4s ease;
}

/* Üst Bar */
.m-studio-top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; color: #fff;
}

.m-studio-info { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; opacity: 0.8; }
.m-studio-tools { display: flex; gap: 15px; }

.m-studio-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none; color: #fff;
    width: 45px; height: 45px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s;
    text-decoration: none !important;
}
.m-studio-btn:hover { background: #6366f1; transform: translateY(-3px); }

/* Görsel Alanı */
.m-studio-viewport {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px; cursor: zoom-out;
}

.m-studio-viewport img {
    max-width: 95%; max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    transform: scale(0.9);
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.m-studio-overlay.active img { transform: scale(1); }

/* Alt Bilgi */
.m-studio-footer { text-align: center; padding: 30px; color: rgba(255,255,255,0.4); font-size: 12px; }
.m-studio-badge {
    display: inline-block; padding: 4px 12px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px; margin-bottom: 10px; font-weight: 800; letter-spacing: 2px;
}

@keyframes m-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* === PREMIUM MENTION BADGE === */
.m-mention-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.m-mention-badge:hover {
    background: #6366f1;
    color: #fff !important;
}

/* === PREMIUM NOTIFICATIONS & LIKES === */

/* 1. Header Çan İkonu */
.m-notif-container { position: relative; display: inline-block; margin-right: 15px; }
.m-notif-trigger { 
    font-size: 20px; color: #64748b; cursor: pointer; position: relative; transition: 0.2s; 
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.m-notif-trigger:hover { background: #f1f5f9; color: #1e293b; }
.m-notif-badge {
    position: absolute; top: 4px; right: 4px;
    background: #ef4444; color: #fff;
    font-size: 10px; font-weight: bold;
    height: 16px; min-width: 16px; padding: 0 4px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* 2. Dropdown Menü */
.m-notif-dropdown {
    position: absolute; top: 50px; right: -80px; width: 320px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    display: none; z-index: 2000; overflow: hidden;
    animation: m-drop-in 0.2s ease;
}
.m-notif-dropdown.active { display: block; }
.m-notif-header { padding: 15px 20px; font-weight: 800; font-size: 15px; border-bottom: 1px solid #f1f5f9; }
.m-notif-list { max-height: 300px; overflow-y: auto; }
.m-notif-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    text-decoration: none !important; color: #334155; transition: 0.2s;
    border-bottom: 1px solid #f8fafc;
}
.m-notif-item:hover { background: #f8fafc; }
.m-notif-item.m-notif-unread { background: #eef2ff; }
.m-notif-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.m-notif-content { font-size: 13px; line-height: 1.4; flex: 1; }
.m-notif-user { font-weight: 700; color: #1e293b; }
.m-notif-icon { float: right; font-size: 12px; margin-left: 5px; }
.m-notif-all { display: block; text-align: center; padding: 12px; font-size: 12px; font-weight: 600; color: #6366f1; background: #f8fafc; }

/* 3. Beğeni Butonu (Postbit) */
.m-like-wrapper { display: inline-flex; align-items: center; gap: 6px; }
.m-like-btn {
    background: transparent; border: none; cursor: pointer;
    font-size: 18px; color: #94a3b8; transition: 0.2s; padding: 5px;
}
.m-like-btn:hover { transform: scale(1.1); color: #ef4444; }
.m-like-btn.liked { color: #ef4444; animation: m-heart-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.m-like-count { font-size: 13px; font-weight: 700; color: #1e293b; }

@keyframes m-drop-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes m-heart-pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }



/* Kullanıcı Panel



/* --- PREMIUM DEĞİŞKENLER --- */
:root {
    --prime-bg: #ffffff;
    --prime-text: #0f172a;
    --prime-sub: #64748b;
    --prime-border: #f1f5f9;
    --prime-hover: #f8fafc;
    --prime-shadow: 0 20px 50px -12px rgba(0,0,0,0.15);
    --prime-radius: 16px;
    --prime-accent: #3b82f6;
}

/* --- HEADER ALANI --- */
.prime-nav {
    display: flex; align-items: center; gap: 24px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.prime-actions { display: flex; gap: 12px; align-items: center; }

/* Buton Stili */
.prime-icon-btn {
    width: 44px; height: 44px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; color: #334155;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.prime-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
    color: var(--prime-accent); border-color: var(--prime-accent);
}
.prime-dot {
    position: absolute; top: 10px; right: 10px;
    width: 8px; height: 8px; background: #ef4444;
    border-radius: 50%; border: 2px solid #fff;
    display: none;
}
.prime-dot:not(:empty) { display: block; }

/* Kullanıcı Kartı */
.prime-user-card {
    display: flex; align-items: center; gap: 14px;
    background: #fff; padding: 6px 8px 6px 20px;
    border-radius: 50px; border: 1px solid #e2e8f0;
    cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.prime-user-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.prime-info { text-align: right; line-height: 1.25; }
.prime-name { display: block; font-weight: 700; font-size: 14px; color: var(--prime-text); }
.prime-role { font-size: 11px; font-weight: 600; color: var(--prime-sub); background: #f1f5f9; padding: 2px 8px; border-radius: 6px; }

.prime-avatar-box img {
    width: 40px; height: 40px; border-radius: 50%;
    object-fit: cover; border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prime-hamburger { display: flex; flex-direction: column; gap: 4px; margin-left: 4px; padding-right: 6px; }
.prime-hamburger span {
    width: 18px; height: 2px; background: #334155;
    border-radius: 4px; transition: 0.3s;
}
.prime-user-card:hover .prime-hamburger span:nth-child(2) { width: 10px; margin-left: auto; }


/* --- SİTEYİ KOMPLE BLURLAMA VE OFFCANVAS --- */

/* 1. Backdrop (Arkaplan Perdesi) */
.prime-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.2); /* Çok hafif beyaz */
    backdrop-filter: blur(15px) saturate(180%); /* PREMIUM BLUR */
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    z-index: 999998; /* Header'ın üstünde */
    opacity: 0; visibility: hidden;
    transition: 0.4s ease;
}
.prime-overlay.active { opacity: 1; visibility: visible; }

/* 2. Menü Paneli */
.prime-canvas {
    position: fixed; top: 0; right: -420px;
    width: 380px; height: 100vh;
    background: #ffffff;
    z-index: 999999; /* En üstte */
    box-shadow: -10px 0 60px rgba(0,0,0,0.1);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Apple tarzı yaylanma */
    display: flex; flex-direction: column;
}
.prime-canvas.active { right: 0; }

/* Header Bölümü */
.prime-head {
    padding: 40px 30px 25px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--prime-border);
    position: relative;
}
.prime-close {
    position: absolute; top: 20px; right: 20px;
    background: #fff; border: 1px solid #e2e8f0; width: 32px; height: 32px;
    border-radius: 50%; color: #64748b; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.prime-close:hover { background: #fee2e2; color: #ef4444; border-color: #fee2e2; transform: rotate(90deg); }

.prime-profile-hero { text-align: center; margin-bottom: 20px; }
.prime-big-avatar {
    position: relative; width: 90px; height: 90px; margin: 0 auto 15px;
}
.prime-big-avatar img {
    width: 100%; height: 100%; border-radius: 30px; /* Squircle */
    object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.prime-hero-text h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--prime-text); }
.prime-hero-text p { margin: 4px 0 0; font-size: 13px; color: var(--prime-sub); }

.prime-stats {
    display: flex; justify-content: space-around;
    background: #fff; border: 1px solid var(--prime-border);
    border-radius: 16px; padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.p-stat { display: flex; flex-direction: column; align-items: center; width: 100%; }
.p-stat.middle { border-left: 1px solid #f1f5f9; border-right: 1px solid #f1f5f9; }
.p-stat b { font-size: 16px; color: var(--prime-text); }
.p-stat span { font-size: 10px; text-transform: uppercase; font-weight: 700; color: #94a3b8; margin-top: 2px; }

/* Body Bölümü */
.prime-body { flex: 1; overflow-y: auto; padding: 30px; }
.prime-label {
    display: block; font-size: 11px; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px;
}

/* Grid Menü */
.prime-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 30px;
}
.p-grid-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: #f8fafc; padding: 18px; border-radius: 18px;
    text-decoration: none; color: var(--prime-text); font-weight: 600; font-size: 13px;
    transition: 0.2s; border: 1px solid transparent;
}
.p-grid-item:hover {
    background: #fff; border-color: var(--prime-border);
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}
.p-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.color-blue { background: #eff6ff; color: #3b82f6; }
.color-indigo { background: #eef2ff; color: #6366f1; }
.color-pink { background: #fdf2f8; color: #ec4899; }
.color-orange { background: #fff7ed; color: #f97316; }

/* Liste Menü */
.prime-list { list-style: none; padding: 0; margin: 0; }
.prime-list li { margin-bottom: 8px; }
.prime-list a {
    display: flex; align-items: center; gap: 15px;
    padding: 12px; border-radius: 12px;
    color: #475569; text-decoration: none; font-weight: 500; font-size: 14px;
    transition: 0.2s;
}
.prime-list a:hover { background: #f8fafc; color: var(--prime-text); }
.p-list-icon {
    width: 36px; height: 36px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 14px; transition: 0.2s;
}
.prime-list a:hover .p-list-icon { background: var(--prime-text); color: #fff; border-color: var(--prime-text); }
.prime-list .arrow { margin-left: auto; font-size: 12px; color: #cbd5e1; }

/* Footer */
.prime-footer {
    padding: 20px 30px; border-top: 1px solid var(--prime-border);
    background: #fcfcfc;
}
.prime-logout {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    width: 100%; padding: 14px;
    background: #fff; border: 1px solid #fee2e2;
    border-radius: 14px; color: #ef4444; font-weight: 700; text-decoration: none;
    transition: 0.3s;
}
.prime-logout:hover {
    background: #ef4444; color: #fff;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

/* --- ADMIN LİNKLERİ İÇİN DÜZELTME --- */
.prime-admin-links a {
    display: block; text-align: center; margin-bottom: 8px;
    padding: 10px; background: #f0f9ff; color: #0284c7;
    border-radius: 10px; font-size: 12px; font-weight: 600; text-decoration: none;
}
.prime-admin-links a:hover { background: #0284c7; color: #fff; }


/* === POST İÇİ LİSTE DÜZENLEMESİ === */

/* Genel Liste Yapısı */
.post_body ul, .post_body ol {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 25px; /* İçerden boşluk */
    color: #334155; /* Slate 700 - Yazı Rengi */
}

/* 1. NOKTALI LİSTE (Unordered List) */
.post_body ul {
    list-style-type: disc; /* Yuvarlak nokta */
}

.post_body ul li {
    padding-left: 5px;
    margin-bottom: 8px; /* Satır arası boşluk */
    line-height: 1.6;
}

/* Nokta Rengini İndigo Yapalım (Sadece modern tarayıcılar) */
.post_body ul li::marker {
    color: #4f46e5; /* İndigo */
    font-size: 1.2em; /* Noktayı biraz büyüt */
}

/* 2. NUMARALI LİSTE (Ordered List) */
.post_body ol {
    list-style-type: decimal; /* 1. 2. 3. */
}

.post_body ol li {
    padding-left: 5px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Numara Rengini İndigo ve Kalın Yapalım */
.post_body ol li::marker {
    color: #4f46e5;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

/* 3. İÇ İÇE LİSTELER (Nested Lists) */
.post_body ul ul, .post_body ol ul, .post_body ul ol, .post_body ol ol {
    margin-top: 5px;
    margin-bottom: 5px;
}

/* İçteki listenin noktası boş daire olsun */
.post_body ul ul { list-style-type: circle; }


/* === SAĞ ÜST KÖŞE KONU SAHİBİ ROZETİ === */
.owner-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20; /* Post numarasının üstünde dursun */
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Altın Sarısı */
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 12px;    
    box-shadow: -2px 2px 10px rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none; /* Tıklamayı engellemesin */
}

.owner-ribbon i {
    font-size: 12px;
    color: #fffbeb;
}

/* Mobilde biraz küçültelim */
@media (max-width: 768px) {
    .owner-ribbon {
        font-size: 9px;
        padding: 4px 10px;
    }
}


/* === FLOATING TOC (İÇİNDEKİLER) === */
#thread-toc {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 250px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 0; transform: translateX(20px);
    transition: all 0.5s ease;
    display: none; /* JS ile açılacak */
    max-height: 70vh;
    overflow-y: auto;
}
#thread-toc.visible { opacity: 1; transform: translateX(0); display: block; }

.toc-title {
    font-size: 11px; font-weight: 900; color: #94a3b8;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px; display: block;
}

.toc-list { list-style: none; padding: 0; margin: 0; }

.toc-item {
    display: block;
    font-size: 13px; color: #64748b;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    border-left: 2px solid transparent;
}

.toc-item:hover { background: #f1f5f9; color: #4f46e5; }

/* Aktif başlık (Scroll yaptıkça değişir) */
.toc-item.active {
    background: #e0e7ff;
    color: #4338ca;
    border-left-color: #4f46e5;
    font-weight: 600;
}

/* Mobilde gizle */
@media (max-width: 1280px) {
    #thread-toc { display: none !important; }
}


/* --- Rozet Tasarımı --- */
.m-dot-ping {
    position: absolute;
    top: -6px;    /* Yukarı konumlandırma */
    right: -8px;  /* Sağa konumlandırma */
    background-color: #ef4444; /* Kırmızı renk */
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 99px; /* Yuvarlak yapı */
    padding: 2px 5px;
    min-width: 16px; /* Kare değilse uzasın */
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10;
    border: 2px solid #ffffff; /* Kutudan ayrılması için beyaz çerçeve */
    
    /* Yanıp Sönme Animasyonu */
    animation: pm-pulse 1.5s infinite;
}

/* --- Mesaj Sayısı 0 ise GİZLE --- */
.m-dot-ping[data-count="0"], 
.m-dot-ping[data-count=""] {
    display: none !important;
}

/* --- Animasyon Keyframes (Gölge ile Yanıp Sönme) --- */
@keyframes pm-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}


/* PRO TEMA KARTI CSS (v2) */
.pro-theme-card {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin: 20px 0;
    font-family: 'Segoe UI', sans-serif;
    max-width: 100%;
}
.pt-image { width: 280px; position: relative; overflow: hidden; flex-shrink: 0; background: #eee; }
.pt-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 180px; transition: 0.5s; }
.pro-theme-card:hover .pt-image img { transform: scale(1.1); }
.pt-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.pro-theme-card:hover .pt-overlay { opacity: 1; }
.pt-btn-icon { width: 45px; height: 45px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #333; font-size: 18px; transform: translateY(10px); transition: 0.3s; }
.pro-theme-card:hover .pt-btn-icon { transform: translateY(0); }
.pt-content { padding: 25px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pt-title { font-size: 20px; font-weight: 800; color: #1e293b; margin: 0 0 10px 0; }
.pt-desc { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 20px; }
.pt-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pt-btn { padding: 12px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none !important; display: inline-flex; align-items: center; gap: 8px; transition: 0.2s; color: #fff !important; }
.pt-demo { background: #64748b; } .pt-demo:hover { background: #475569; }
.pt-down { background: linear-gradient(135deg, #3b82f6, #2563eb); } .pt-down:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

@media (max-width: 768px) {
    .pro-theme-card { flex-direction: column; }
    .pt-image { width: 100%; height: 200px; }
    .pt-content { padding: 20px; }
    .pt-btn { flex: 1; justify-content: center; }
}
