:root {
    --bg-page: #0c0d10;
    --bg-nav: #111317;
    --bg-panel: #13151b;
    --bg-row: #181a20;
    --bg-inner: #15181e;
    --primary-orange: #ff7700;
    --primary-hover: #ff881a;
    --primary-glow: rgba(255, 119, 0, 0.4);
    --text-white: #f5f6f8;
    --text-grey: #8b92a0;
    --border-dark: #22252e;
    --border-light: #2d313c;
    --online-green: #00e676;
    --gold-pin: #eab308;
    --danger-red: #e30a17;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-white);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 119, 0, 0.08) 0%, transparent 60%),
        linear-gradient(to bottom, #111317 0%, var(--bg-page) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text, .nav-links a, .btn-tactical, .section-title {
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toast-notification {
    position: fixed; top: 90px; right: 30px; background: var(--online-green);
    color: #000; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 15px;
    padding: 14px 26px; border-radius: 50px; box-shadow: 0 0 25px rgba(0, 230, 118, 0.8);
    z-index: 99999; display: none; align-items: center; gap: 10px; animation: slideInToast 0.3s ease;
    border: 2px solid #fff;
}
@keyframes slideInToast { from { opacity: 0; transform: translateY(-20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

.tactical-toast {
    position: fixed; bottom: 30px; right: 30px; background: #13151b;
    color: #fff; font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 14px;
    padding: 14px 22px; border-left: 4px solid var(--danger-red); border: 1px solid var(--border-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); z-index: 99999; display: none; align-items: center; gap: 12px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    animation: slideInBottomRight 0.3s ease;
}
@keyframes slideInBottomRight { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- HEADER --- */
header {
    background: var(--bg-nav);
    border-bottom: 2px solid var(--border-dark);
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.logo-wrapper { display: flex; align-items: center; gap: 14px; position: relative; }
.brand-text { line-height: 1; }
.brand-text .main-title { font-family: 'Teko', sans-serif; font-size: 32px; font-weight: 700; letter-spacing: 2px; color: #fff; }
.brand-text .sub-title { font-size: 11px; color: #e30a17; letter-spacing: 2.5px; font-weight: 700; margin-top: -4px; }

/* Sallanan Bayrak Rozeti Yazıları Kapatmayacak Şekilde Konumlandırıldı */
.hanging-flag {
    position: absolute; top: 74px; left: 160px; background: linear-gradient(180deg, #e30a17 0%, #a8000a 100%);
    color: white; padding: 4px 10px 8px 10px; font-size: 14px; font-weight: bold; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
    box-shadow: 0 5px 15px rgba(227, 10, 23, 0.4); z-index: 999;
}

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-white); text-decoration: none; font-size: 15px; font-weight: 700; transition: color 0.2s; position: relative; padding: 5px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-orange); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -23px; left: 0; width: 100%; height: 3px;
    background: var(--primary-orange); box-shadow: 0 -2px 8px var(--primary-glow);
}

.header-buttons { display: flex; gap: 12px; align-items: center; }

/* --- BİLDİRİM SİSTEMİ (Eksik Olan ve Tasarımı Bozan Kısım Eklendi) --- */
.notif-wrapper { display: none; position: relative; align-items: center; }
.notif-trigger {
    background: #181a20; border: 1px solid var(--border-dark); color: #fff; font-size: 18px;
    width: 42px; height: 42px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; position: relative;
}
.notif-trigger:hover, .notif-trigger.active { border-color: var(--primary-orange); color: var(--primary-orange); background: rgba(255,119,0,0.1); }
.notif-badge {
    position: absolute; top: -5px; right: -5px; background: var(--danger-red); color: #fff;
    font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 10px; box-shadow: 0 0 10px rgba(227,10,23,0.8);
    display: none; animation: badgePulse 1.5s infinite;
}
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.notif-dropdown-menu {
    position: absolute; top: 52px; right: 0; background: #13151b; border: 2px solid var(--primary-orange);
    width: 320px; max-height: 380px; overflow-y: auto; display: none; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.9); z-index: 1200;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.notif-dropdown-menu.active { display: flex; }
.notif-header { padding: 10px 14px; background: #181a20; border-bottom: 1px solid var(--border-dark); font-family: 'Chakra Petch', sans-serif; font-size: 13px; font-weight: 700; color: var(--primary-orange); display: flex; justify-content: space-between; align-items: center; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--border-dark); font-size: 13px; color: #d1d5db; transition: 0.2s; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.notif-item:hover { background: rgba(255,119,0,0.08); color: #fff; }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { border-left: 3px solid var(--online-green); background: rgba(0,230,118,0.03); }
.notif-time { font-size: 11px; color: var(--text-grey); font-weight: 600; }

/* --- KULLANICI PROFİL MENÜSÜ --- */
.user-status-wrapper { display: none; align-items: center; gap: 10px; position: relative; }
.user-trigger { display: flex; align-items: center; gap: 10px; cursor: pointer; background: #181a20; border: 1px solid var(--border-dark); padding: 5px 12px 5px 5px; transition: border 0.3s; }
.user-trigger:hover { border-color: var(--primary-orange); }
.user-avatar-sm { width: 34px; height: 34px; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid var(--primary-orange); }
.user-status { font-size: 14px; color: var(--online-green); font-weight: 700; display: flex; align-items: center; gap: 6px; font-family: 'Chakra Petch', sans-serif; }
.user-status::before { content: ''; width: 8px; height: 8px; background: var(--online-green); border-radius: 50%; box-shadow: 0 0 8px var(--online-green); }

.user-dropdown-menu {
    position: absolute; top: 55px; right: 0; background: #13151b; border: 2px solid var(--primary-orange);
    width: 190px; display: none; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.9); z-index: 1100;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.user-dropdown-menu.active { display: flex; }
.user-dropdown-item { padding: 12px 16px; color: #fff; text-decoration: none; font-family: 'Chakra Petch', sans-serif; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--border-dark); transition: all 0.2s; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.user-dropdown-item:last-child { border-bottom: none; }
.user-dropdown-item:hover { background: var(--primary-orange); color: #000; }
.user-dropdown-item.admin-btn { color: #00e676; border-left: 3px solid #00e676; }
.user-dropdown-item.admin-btn:hover { background: #00e676; color: #000; }
.user-dropdown-item.danger:hover { background: var(--danger-red); color: #fff; }

.btn-tactical {
    background: var(--primary-orange); color: #000; font-weight: 700; font-size: 14px; padding: 10px 22px; border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: all 0.2s; box-shadow: 0 0 15px var(--primary-glow);
}
.btn-tactical:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary-orange); border: 1px solid var(--primary-orange); box-shadow: inset 0 0 10px rgba(255,119,0,0.1); }
.btn-outline:hover { background: rgba(255,119,0,0.15); color: #fff; }

/* --- ANA İÇERİK (Yazıların Kapanmaması İçin Üst Boşluk Verildi) --- */
.main-container { max-width: 1400px; margin: 45px auto 40px; padding: 0 4%; }

.page-header {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px;
    border-bottom: 2px solid var(--border-dark); padding-bottom: 15px; flex-wrap: wrap; gap: 15px;
}
.page-header h1 { font-size: 32px; color: #fff; line-height: 1; }
.page-header p { color: var(--text-grey); font-size: 15px; margin-top: 5px; }

/* --- MODALLAR --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; animation: fadeInModal 0.3s ease; }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: #111317; border: 1px solid var(--primary-orange); width: 100%; max-width: 650px; position: relative; clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); box-shadow: 0 0 35px rgba(255, 119, 0, 0.25); max-height: 90vh; overflow-y: auto; padding: 30px; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; color: var(--text-grey); cursor: pointer; transition: color 0.2s; }
.close-modal:hover { color: var(--primary-orange); }
.modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border-dark); padding-bottom: 12px; }
.modal-header .shield-sm { background: #e30a17; color: white; font-weight: 700; font-family: 'Teko', sans-serif; font-size: 18px; padding: 2px 8px; clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); }
.modal-header h3 { font-size: 20px; color: #fff; }
.modal-desc { font-size: 13px; color: var(--text-grey); margin-bottom: 20px; line-height: 1.4; }

.tactical-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 12px; color: var(--primary-orange); font-weight: 700; }
.form-group input, .form-group textarea, .form-group select { background: #181a20; border: 1px solid var(--border-dark); color: #fff; padding: 10px 12px; font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 600; outline: none; transition: all 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary-orange); background: #1d2028; box-shadow: 0 0 8px rgba(255,119,0,0.2); }
.form-group textarea { resize: vertical; min-height: 100px; }

.avatar-selection-grid { display: flex; gap: 10px; margin-top: 5px; flex-wrap: wrap; }
.avatar-preset { width: 48px; height: 48px; border-radius: 50%; background-size: cover; background-position: center; border: 2px solid var(--border-dark); cursor: pointer; transition: all 0.2s; }
.avatar-preset.selected, .avatar-preset:hover { border-color: var(--primary-orange); transform: scale(1.1); box-shadow: 0 0 10px var(--primary-glow); }
.btn-modal-submit { width: 100%; padding: 14px; font-size: 16px; margin-top: 10px; letter-spacing: 1.5px; }

.remember-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.remember-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary-orange); cursor: pointer; }
.remember-row label { font-size: 13px; color: var(--text-grey); cursor: pointer; font-family: 'Rajdhani', sans-serif; font-weight: 600; }

footer { background: #08090b; border-top: 1px solid var(--border-dark); padding: 24px 4%; margin-top: 50px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-grey); flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--text-grey); text-decoration: none; font-family: 'Chakra Petch', sans-serif; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-orange); }

@media (max-width: 768px) {
    .main-container { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .notif-dropdown-menu { width: 280px; }
}