/* ═══════════════════════════════════════════════════════════════════════════
   Central V — Global Stylesheet v8
   Tema: Koyu, keskin, minimal — FiveM Roleplay
   ═══════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:     #000;
  --dark:      #0a0a0a;
  --darker:    #060606;
  --card:      #111;
  --border:    rgba(255,255,255,.1);
  --border-h:  rgba(255,255,255,.25);
  --white:     #fff;
  --gray:      #909090;
  --text-gray: #909090;
  --accent:    #fff;
  --success:   #2ed573;
  --warning:   #ffaa00;
  --error:     #e63946;
  --info:      #3399ff;
}

html { scroll-behavior: smooth; background: var(--black); }
body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; }

select, select option { background: #0d0d0d !important; color: #fff !important; }
select { color-scheme: dark; }

img { max-width: 100%; display: block; }

/* ─── NAVBAR ───────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.97) 0%, rgba(0,0,0,.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s;
}
.navbar.scrolled { padding: 12px 48px; }

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: .5px;
}
.logo img { height: 36px; object-fit: contain; }
.logo span { opacity: .55; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1px;
  position: relative; padding: 5px 0;
  transition: opacity .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--white);
  transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-buttons { display: flex; gap: 12px; align-items: center; }

.notif-menu { position: relative; flex-shrink: 0; }
.notif-btn {
  width: 42px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.notif-btn:hover, .notif-btn:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: var(--border-h);
  box-shadow: 0 0 18px rgba(255,255,255,.08);
  transform: translateY(-1px);
  outline: none;
}
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  background: var(--error);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  font-family: 'Orbitron', sans-serif;
  font-size: .62rem; font-weight: 700;
  line-height: 18px; text-align: center;
}
.notif-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(360px, 88vw);
  background: rgba(8,8,8,.99);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(0,0,0,.65);
  overflow: hidden;
  animation: fadeDown .18s ease;
}
.notif-dropdown.show { display: block; }
.notif-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: 'Orbitron', sans-serif;
  font-size: .78rem; font-weight: 700;
}
.notif-head-actions { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.notif-head a,
.notif-head button {
  color: var(--gray);
  background: transparent;
  border: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: .74rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s;
}
.notif-head a:hover, .notif-head button:hover { color: var(--white); }
.notif-list { max-height: 360px; overflow-y: auto; padding: 6px; }
.notif-item {
  display: flex; align-items: stretch; gap: 4px;
  padding: 0;
  color: var(--white);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.notif-item + .notif-item { margin-top: 4px; }
.notif-item:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); }
.notif-item.unread { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.notif-item.read { opacity: .72; }
.notif-main {
  display: flex; gap: 10px; flex: 1; min-width: 0;
  padding: 11px 9px 11px 10px;
  color: var(--white);
  text-decoration: none;
}
.notif-main i { width: 18px; margin-top: 3px; color: var(--gray); text-align: center; flex-shrink: 0; }
.notif-item.success .notif-main i { color: var(--success); }
.notif-item.warning .notif-main i { color: var(--warning); }
.notif-item.error .notif-main i { color: var(--error); }
.notif-copy { min-width: 0; }
.notif-title { font-weight: 700; font-size: .86rem; margin-bottom: 2px; }
.notif-msg {
  color: var(--gray); font-size: .8rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time { color: rgba(255,255,255,.38); font-size: .72rem; margin-top: 4px; }
.notif-mark-btn {
  width: 32px; min-height: 100%;
  border: 0; border-left: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  color: var(--gray);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.notif-mark-btn:hover { color: var(--success); background: rgba(46,213,115,.08); }
.notif-more {
  display: block;
  margin: 7px 4px 2px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: var(--gray);
  text-decoration: none;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.notif-more:hover { color: var(--white); background: rgba(255,255,255,.05); }
.notif-empty { padding: 24px 14px; text-align: center; color: var(--gray); font-size: .86rem; }
.mob-notif-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px;
  border-radius: 999px;
  background: var(--error);
  color: var(--white);
  font-size: .7rem;
}

/* ─── DISCORD BUTONU ─────────────────────────────────
   İkon butonu — yazı yok, sadece Discord logosu.
   Yüksekliği Giriş/Kayıt butonlarıyla aynı (yaklaşık 40px).
*/
.discord-link {
  background: #5865F2;
  color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 8px;
}
.discord-link:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88,101,242,.35);
  opacity: 1;
}
.discord-link i { color: #fff !important; font-size: 1.2rem; margin: 0; }
/* Butonun içindeki yazıları gizle (geriye dönük uyumluluk için) */
.discord-link > *:not(i) { display: none; }

/* Büyük boy Discord butonu — sadece hero/CTA için .btn ile birlikte kullanılır
   (yazı gösterir, çünkü .btn-discord class'ıdır, .discord-link değil). */
.btn-discord {
  background: #5865F2 !important;
  color: #fff !important;
  border-color: #5865F2 !important;
}
.btn-discord:hover {
  background: #4752C4 !important;
  border-color: #4752C4 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(88,101,242,.4);
}
.btn-discord i { color: #fff !important; }

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  padding: 7px 14px; border-radius: 8px;
  cursor: pointer; transition: all .25s;
}
.user-btn:hover { background: rgba(255,255,255,.12); border-color: var(--border-h); }
.nav-username {
  font-weight: 600; font-size: .88rem; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: rgba(8,8,8,.99);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 8px; min-width: 210px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  animation: fadeDown .18s ease;
}
.user-dropdown.show { display: block; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; color: var(--white);
  text-decoration: none; border-radius: 7px;
  transition: background .2s; font-size: .9rem;
}
.user-dropdown a:hover { background: rgba(255,255,255,.08); }
.user-dropdown a i { width: 15px; text-align: center; color: var(--gray); }

.dd-head { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 5px; }
.dd-name { font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.dd-divider { height: 1px; background: rgba(255,255,255,.08); margin: 5px 0; }

.user-role { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.role-admin { background: rgba(255,255,255,.18); color: var(--white); }
.role-mod   { background: rgba(255,170,0,.18);   color: var(--warning); }
.role-user  { background: rgba(255,255,255,.07); color: var(--gray); }

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.4rem; cursor: pointer; padding: 4px;
}

/* ─── MOBİL NAV ────────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999; padding: 70px 24px 24px; overflow-y: auto;
}
.mobile-nav.active { display: block; animation: slideIn .28s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }

.mob-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--white); font-size: 1.7rem; cursor: pointer; }
.mob-links { display: flex; flex-direction: column; gap: 3px; }
.mob-links a { color: var(--white); text-decoration: none; font-size: 1rem; font-weight: 600; text-transform: uppercase; padding: 12px 14px; border-radius: 8px; transition: background .2s; }
.mob-links a:hover, .mob-links a.active { background: rgba(255,255,255,.08); }
/* Discord butonu mobil nav içinde tam genişlik solid mavi (ikonu yanında gösterir) */
.mob-links .discord-link {
  background: #5865F2;
  color: #fff !important;
  width: auto; height: auto;
  justify-content: flex-start;
  gap: 10px;
  font-size: 1rem; font-weight: 600;
  padding: 12px 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mob-links .discord-link > *:not(i) { display: inline; }
.mob-links .discord-link::after {
  content: 'Discord';
}
.mob-links .discord-link:hover { background: #4752C4; transform: none; box-shadow: none; }
.mob-divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 0; }
.mob-user { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.05); border-radius: 9px; margin-bottom: 6px; }
.mob-uname { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }

/* ─── BUTONLAR ─────────────────────────────────────── */
.btn {
  padding: 10px 22px; border-radius: 8px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .86rem;
  text-transform: uppercase; letter-spacing: .8px;
  cursor: pointer; transition: all .25s;
  text-decoration: none; border: 2px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1;
}
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-primary:hover { background: #e8e8e8; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,255,255,.15); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.3); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.07); }
.btn-danger { background: transparent; border-color: var(--error); color: var(--error); }
.btn-danger:hover { background: var(--error); color: var(--white); }
.btn-sm { padding: 6px 13px; font-size: .76rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ─── ANA İÇERİK & SAYFA ───────────────────────────── */
.main-content { margin-top: 72px; min-height: calc(100vh - 72px); }
.page-wrap    { padding: 46px 40px; max-width: 1200px; margin: 0 auto; }
.page-header  { text-align: center; margin-bottom: 40px; }
.page-header h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; }
.page-header p  { color: var(--gray); font-size: 1rem; }

/* ─── KARTLAR ──────────────────────────────────────── */
.card {
  background: linear-gradient(145deg, rgba(18,18,18,.92), rgba(8,8,8,.96));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; transition: border-color .25s;
}
.card:hover { border-color: var(--border-h); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.card-title  { font-family: 'Orbitron', sans-serif; font-size: 1rem; display: flex; align-items: center; gap: 9px; }

/* ─── FORM ─────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  color: var(--gray); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 14px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif; font-size: .92rem;
  outline: none; transition: border-color .22s, background .22s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.28); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field-hint { font-size: .76rem; color: var(--gray); margin-top: 5px; }
.char-count { text-align: right; font-size: .74rem; color: var(--gray); margin-top: 4px; }
.char-count.over { color: var(--error); }

/* ─── BİLDİRİMLER ──────────────────────────────────── */
.notice {
  border-radius: 9px; padding: 12px 16px; margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.55; font-size: .87rem;
}
.notice i { flex-shrink: 0; margin-top: 2px; font-size: .9rem; }
.notice-error   { background: rgba(230,57,70,.1);   border: 1px solid rgba(230,57,70,.3);   color: #ff9999; }
.notice-warning { background: rgba(255,170,0,.08);  border: 1px solid rgba(255,170,0,.25);  color: #ffd580; }
.notice-info    { background: rgba(51,153,255,.08); border: 1px solid rgba(51,153,255,.25); color: #99ccff; }
.notice-success { background: rgba(46,213,115,.08); border: 1px solid rgba(46,213,115,.25); color: var(--success); }

/* ─── ROZETLER ─────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.badge-pending   { background: rgba(255,170,0,.18);  color: var(--warning); }
.badge-approved  { background: rgba(46,213,115,.18); color: var(--success); }
.badge-rejected  { background: rgba(230,57,70,.18);  color: var(--error); }
.badge-whitelist { background: rgba(255,170,0,.14);  color: var(--warning); }
.badge-house     { background: rgba(46,213,115,.14); color: var(--success); }
.badge-business  { background: rgba(51,153,255,.14); color: var(--info); }
.badge-admin     { background: rgba(255,255,255,.16); color: var(--white); }
.badge-mod       { background: rgba(255,170,0,.16);   color: var(--warning); }
.badge-user      { background: rgba(255,255,255,.06); color: var(--gray); }

/* ─── TOAST ────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 26px; border-radius: 9px;
  font-weight: 700; z-index: 10000; opacity: 0;
  transition: all .3s ease;
  font-family: 'Rajdhani', sans-serif; font-size: .92rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  pointer-events: none; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--success); color: var(--black); }
.toast-error   { background: var(--error);   color: var(--white); }
.toast-info    { background: var(--info);    color: var(--white); }
.toast-warning { background: var(--warning); color: var(--black); }

/* ─── SPINNER & ANİMASYONLAR ───────────────────────── */
.spinner-wrap { text-align: center; padding: 50px; color: var(--gray); }
.spinner-wrap i { font-size: 1.8rem; animation: spin 1s linear infinite; }

@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse  { 0%, 100% { box-shadow: 0 0 18px rgba(46,213,115,.3); } 50% { box-shadow: 0 0 36px rgba(46,213,115,.55); } }
@keyframes slowZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ─── SEKMELER ─────────────────────────────────────── */
.page-tabs {
  display: flex; gap: 6px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page-tabs::-webkit-scrollbar { display: none; }
.page-tab {
  background: transparent; border: none; color: var(--gray);
  padding: 10px 20px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .84rem;
  text-transform: uppercase; letter-spacing: .5px;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all .22s; display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.page-tab:hover { color: var(--white); }
.page-tab.active { color: var(--white); border-bottom-color: var(--white); }

/* ─── TABLOLAR ─────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead th {
  background: rgba(255,255,255,.04); padding: 12px 15px;
  text-align: left; font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray); border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.025); }

/* ─── RESPONSİVE ───────────────────────────────────── */
@media (max-width: 1100px) {
  .navbar { padding: 14px 20px; }
  .navbar.scrolled { padding: 11px 20px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-buttons .discord-link { display: none; }
}
@media (max-width: 768px) {
  .page-wrap { padding: 28px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .btn { padding: 9px 18px; font-size: .8rem; }
  .logo { font-size: 1.2rem; }
  .logo img { height: 30px; }
}
@media (max-width: 480px) {
  .nav-buttons .btn-outline { display: none; }
  .navbar { padding: 12px 16px; }
}
