/* =====================================================================
   ThemeTwentyThree — "Aurora" (M2Core 1:1 port)
   Metin2 panel teması · M2Core CMS Aurora layout'unun KESIN renk/font/efekt
   değerleriyle eşitlenmiştir. Tema varlıkları (font + bg) arkadaşın komisyon
   temasından taşındı. JS kancaları (.password-group, .pw2text, #onlineCount,
   .modal_window, .close_mw, a.itemshop, #dropdown-block) korunmuştur.
   ===================================================================== */

/* ----------------------------- Fontlar ----------------------------- */
@font-face {
  font-family: "Albertus Nova";
  src: url("../fonts/AlbertusNova.woff2") format("woff2"),
       url("../fonts/AlbertusNova.woff")  format("woff"),
       url("../fonts/AlbertusNova.ttf")   format("truetype");
  font-weight: 400 700; font-display: swap;
}
@font-face {
  font-family: "Strong Sword";
  src: url("../fonts/Strong_Sword.woff2") format("woff2"),
       url("../fonts/Strong_Sword.ttf")   format("truetype");
  font-weight: 400; font-display: swap;
}

/* ----------------------------- Değişkenler (M2Core kesin) ---------- */
:root {
  /* RGB kanalları (rgba için — altın imza) */
  --rgb-dark:   26,15,12;
  --rgb-medium: 46,27,22;
  --rgb-gold:   229,182,107;
  --rgb-crimson: 192,57,43;

  /* Arka planlar (sıcak koyu kahve / bordo) */
  --bg-darkest: #140b09;
  --bg-dark:    #1b0f0c;
  --bg-panel:   #27160f;
  --bg-panel-2: #341e15;
  --bg-elev:    #341e15;
  --bg-card:    #1b0f0c;

  /* Altın / primary */
  --gold:        #e6b465;
  --gold-bright: #f7c948;
  --gold-soft:   #e9dabb;
  --gold-muted:  #cdb886;
  --gold-deep:   #c79a4f;
  --gold-deep2:  #8a6630;
  --teal:        #2bb3a3;

  /* Kırmızı / crimson (Legends of Arion CTA + vurgular) */
  --crimson:        #c0392b;
  --crimson-bright: #e05841;
  --crimson-deep:   #8e2820;

  /* Kenarlıklar (yarı saydam altın) */
  --border:        rgba(229,182,107,0.14);
  --border-mid:    rgba(229,182,107,0.20);
  --border-bright: rgba(229,182,107,0.32);

  /* Metin (sıcak krem) */
  --text:        #cdba9a;
  --text-bright: #f1e4ca;
  --text-strong: #f1e4ca;
  --muted:       #a4917a;
  --dim:         #6f5b49;
  --link:        #d9bb8b;
  --link-hover:  #e6b465;

  /* Aksanlar */
  --red:        #4a1410;
  --red-light:  #e08a7e;
  --green:      #5cb46a;
  --info:       #c0392b;
  --warning:    #e8954a;

  /* empire */
  --shinsoo: #e74c3c; --chunjo: #f1c40f; --jinno: #3498db;

  /* Butonlar */
  --btn-gold-text:   #2a150d;
  --btn-primary-bg:  #2a1812;
  --btn-primary-text:#d9bb8b;

  /* Radius (M2Core: 4px — keskin köşe imzası) */
  --radius:    4px;
  --radius-sm: 4px;

  /* Gölge */
  --shadow:      0 4px 6px -1px rgba(0,0,0,0.15), 0 2px 4px -2px rgba(0,0,0,0.15);
  --shadow-lift: 0 20px 25px -5px rgba(0,0,0,0.25), 0 8px 10px -6px rgba(0,0,0,0.25);
  --glow-gold:   0 0 20px rgba(229,182,107,0.15);

  /* Fontlar */
  --font-head:    "Albertus Nova", Georgia, serif;
  --font-display: "Strong Sword", "Albertus Nova", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1320px;
}

/* ----------------------------- Reset/Base -------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--bg-darkest);
  background-image:
    linear-gradient(180deg, rgba(20,11,8,0.55), rgba(20,11,8,0.80)),
    var(--site-bg-image, url("../images/bg2.jpg"));
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Video arka plan (bg.webm) — resim (bg2.jpg) fallback olarak body'de kalır */
.bg-video { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: cover; z-index: -2; pointer-events: none; }
.bg-overlay { position: fixed; inset: 0; background: linear-gradient(180deg, rgba(20,11,8,0.55), rgba(20,11,8,0.80)); z-index: -1; pointer-events: none; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--link-hover); }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }
center { display: block; }
hr {
  border: 0; height: 1px; margin: 18px 0;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-strong); font-weight: 700; line-height: 1.2; }
::selection { background: rgba(229,182,107,0.3); color: #fff; }

/* Kaydırma çubuğu (M2Core: 8px, altın hover) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darkest); }
::-webkit-scrollbar-thumb { background-color: var(--bg-panel-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--gold); }

.text-center { text-align: center; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.hidden-xs { }

/* =====================================================================
   ÜST BAR (dil + giriş + online) — M2Core navbar
   ===================================================================== */
.top-panel {
  position: relative; z-index: 200;
  background: linear-gradient(180deg, rgba(26,15,12,0.96), rgba(26,15,12,0.78));
  backdrop-filter: blur(10px);
  border-bottom: 0;
}
.top-panel .wrap { display: flex; align-items: center; gap: 14px; min-height: 0; flex-wrap: wrap; }
.top-panel .menu-row { padding: 6px 18px; }
.top-panel .menu-row .top-menu { flex: 1 1 auto; min-width: 0; }
.top-panel .menu-row .lang-block { flex-shrink: 0; }
.top-panel .menu-row .top-panel-status { margin-left: 0; flex-shrink: 0; }
/* Giriş/Kayıt (sol) + Dil (sağ): header'ın altında, banner üstüne bitişik */
.login-row { position: relative; z-index: 100; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0 0; }

/* Dil dropdown (JS: #dropdown-block .active -> ul.dropdown göster) */
.dropdown-block, .dropdown-block-b { position: relative; cursor: pointer; user-select: none; outline: none; }
.dropdown-block > div, .dropdown-block-b > div {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--border-mid);
  border-radius: var(--radius); background: rgba(255,255,255,0.02);
  font-size: 13px; color: var(--text-bright);
}
.dropdown-block img, .dropdown-block-b img { width: 20px; height: auto; border-radius: 2px; }
.dropdown-block .dropdown, .dropdown-block-b .dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 150px;
  background: var(--bg-panel); border: 1px solid var(--border-bright);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease; z-index: 50;
}
.dropdown-block.active .dropdown, .dropdown-block-b.active .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius); color: var(--text); font-size: 13px; }
.dropdown li a:hover { background: rgba(229,182,107,0.1); color: var(--gold); }

.login-panel { display: flex; gap: 8px; }

/* Online durum çubuğu */
.top-panel-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-left: auto; }
.top-panel-status + .top-panel-status { margin-left: 14px; }
.progress-bar-bg { display: inline-block; width: 110px; height: 7px; border-radius: 6px; background: #1b2638; overflow: hidden; border: 1px solid var(--border); }
.progress-bar { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep2), var(--gold-bright)); box-shadow: 0 0 10px rgba(251,191,36,0.6); }
.online-users { color: var(--gold); font-weight: 600; }
.online-users .user-icon::before { content: "\f007"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 4px; font-size: 11px; }

/* =====================================================================
   ANA MENÜ — M2Core nav (serif, uppercase, 2px letter-spacing)
   ===================================================================== */
.top-menu { flex: 1 1 auto; min-width: 0; }
.top-menu > ul { display: flex; flex-wrap: wrap; gap: 4px; }
.top-menu li { position: relative; }
.top-menu > ul > li > a {
  display: block; padding: 12px 16px; font-family: var(--font-head);
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-soft); border-bottom: 2px solid transparent; transition: all .25s ease;
}
.top-menu > ul > li > a:hover { color: var(--gold); border-bottom-color: var(--border-bright); }
.top-menu > ul > li.active > a,
.top-menu > ul > li:hover > a { color: var(--gold); border-bottom-color: var(--gold); }
.top-menu li ul {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--bg-panel); border: 1px solid var(--border-bright);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 60;
}
.top-menu li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.top-menu li ul li a { display: block; padding: 9px 12px; border-radius: var(--radius); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--text); }
.top-menu li ul li a:hover { background: rgba(229,182,107,0.12); color: var(--gold); }

/* =====================================================================
   HEADER / HERO (logo)
   ===================================================================== */
.header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 190px; margin: 0 auto; overflow: hidden; }
.header .logo { position: relative; z-index: 3; padding: 28px 0; }
.header .logo img { position: relative; max-width: 100%; height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.6)); }
.glare { position: absolute; width: 520px; height: 320px; border-radius: 50%; filter: blur(70px); opacity: .22; pointer-events: none; z-index: 1; }
.glare-red    { left: 8%;  top: -40%; background: radial-gradient(circle, rgba(192,57,43,0.7), transparent 70%); }
.glare-blue   { right: 8%; top: -40%; background: radial-gradient(circle, rgba(52,152,219,0.6), transparent 70%); }
.glare-yellow { left: 50%; top: -60%; transform: translateX(-50%); width: 620px; height: 300px; border-radius: 50%; filter: blur(80px); opacity: .22; background: radial-gradient(circle, rgba(229,182,107,0.7), transparent 70%); pointer-events: none; z-index: 1; }
.light { display: none; }
/* Header dekoratif ışık/glow'lar (sol kırmızı, sağ mavi, orta sarı) kaldırıldı — "arka plan gibi" görünüyordu */
.glare, .glare-yellow { display: none; }
/* Hero metin başlığı (eklenirse) */
.hero-title { font-family: var(--font-display); font-size: 34px; line-height: 1.1; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 18px rgba(20,11,8,0.85); }

/* =====================================================================
   İSKELET (sol / içerik / sağ) — M2Core üç-kolon
   ===================================================================== */
.wrapper { max-width: var(--maxw); margin: 0 auto; padding: 0 18px 60px; }
.container { display: grid; grid-template-columns: 270px minmax(0,1fr) 290px; gap: 22px; align-items: start; }
.content { min-width: 0; }
/* Üst üste gelen panel/blokların arasını aç (üst bloğa yapışmasın) */
.content > * + .panel { margin-top: 22px; }
.left-sidebar, .right-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* =====================================================================
   KART / PANEL — M2Core panel + Aurora köşe motifi + hover-lift
   ===================================================================== */
.panel, .card, .widget {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .3s ease;
}
/* Aurora köşe motifi (L şekilli altın köşeler) */
.panel::before, .card::before, .widget::before { content:""; position:absolute; top:7px; left:7px; width:9px; height:9px; border:1px solid var(--gold); border-right:none; border-bottom:none; opacity:.5; pointer-events:none; z-index:2; }
.panel::after,  .card::after,  .widget::after  { content:""; position:absolute; bottom:7px; right:7px; width:9px; height:9px; border:1px solid var(--gold); border-left:none; border-top:none; opacity:.5; pointer-events:none; z-index:2; }
/* hover: kart/widget kalkar; büyük form paneli sadece parlar */
.card:hover, .widget:hover { border-color: var(--gold); }
.panel:hover { border-color: var(--gold); }

.panel-heading, .card-title, .sidebar-title {
  position: relative;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; font-size: 13px; color: var(--text-bright);
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(46,27,22,0.85), rgba(26,15,12,0.92));
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.panel-heading::after, .card-title::after, .sidebar-title::after {
  content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.panel-body, .card-body { padding: 16px; background: var(--bg-panel); }
/* Tüm sayfalarda orta içerik aynı genişlikte (orta kolonu doldurur) */
.panel-buyuk { margin: 0 auto; }
.card-body > :first-child { margin-top: 0; }

/* Bölüm başlığı (içerik içi) — sword font */
.section-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 2px; font-size: 24px; color: var(--gold); text-align: center; margin: 6px 0 4px; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.section-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
/* Sıralama krallık bayrak görselleri */
.empire-flag { width: 30px; height: auto; vertical-align: middle; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }

/* =====================================================================
   BUTONLAR — M2Core .btn-primary + .btn-gold
   ===================================================================== */
.button, .m2-btn, .reg-buttons button, button[type="submit"], .button-n {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border: 1px solid var(--border-mid); border-radius: var(--radius);
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; cursor: pointer; line-height: 1.2;
  background: var(--btn-primary-bg); color: var(--btn-primary-text); transition: all .15s ease;
}
.button:hover, .m2-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 15px rgba(229,182,107,0.10); }
.button-bg, .m2-btn-gold, .reg-buttons .button-bg {
  background: linear-gradient(180deg, var(--crimson-bright), var(--crimson-deep));
  color: #fff; border: 1px solid rgba(224,88,65,0.55); font-weight: 700;
}
.button-bg:hover, .m2-btn-gold:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 0 16px rgba(192,57,43,0.4); }
.btn-block, .button-n.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--red); color: var(--red-light); border-color: rgba(180,50,50,0.4); }
.btn-danger:hover { border-color: rgba(180,50,50,0.7); color: #ff8888; box-shadow: 0 0 15px rgba(180,50,50,0.15); }
.btn-ghost { background: transparent; }
.reg-buttons { margin-top: 14px; text-align: center; }

/* =====================================================================
   FORMLAR — M2Core .input-field
   ===================================================================== */
.form-template label, .m2-label { display: block; margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--text-bright); letter-spacing: .4px; }
.form-template input:not([type="checkbox"]):not([type="radio"]),
.form-template select,
.form-template textarea,
.m2-input {
  width: 100%; height: 55px; padding: 0 16px; font-size: 14px; color: var(--text);
  background: var(--bg-dark); border: 1px solid rgba(229,182,107,0.2);
  border-radius: var(--radius); transition: all .15s ease; outline: none;
}
.form-template input::placeholder, .m2-input::placeholder { color: var(--dim); }
.form-template input:focus, .form-template select:focus, .form-template textarea:focus, .m2-input:focus {
  border-color: rgba(229,182,107,0.5); box-shadow: 0 0 0 3px rgba(229,182,107,0.06);
}
.form-template textarea { height: auto; min-height: 130px; padding: 12px 16px; resize: vertical; }
.form-template select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8b882' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-group { position: relative; }

/* Şifre alanı grubu (JS: .password-group > input + .pw2text/.pwcreat) */
.password-group { display: flex; align-items: stretch; gap: 6px; }
.password-group input { flex: 1; }
.password-group .btn, .password-group .icons {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; border: 1px solid var(--border-mid); border-radius: var(--radius);
  background: var(--bg-elev); color: var(--gold); cursor: pointer; transition: all .15s ease; flex-shrink: 0;
}
.password-group .btn:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(229,182,107,0.12); }
.password-group .btn.active { color: var(--gold-bright); }

/* Lisans / onay kutusu */
.license { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); margin: 6px 0; }
.license input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.license a { cursor: pointer; }
.l15 { font-size: 13px; color: var(--muted); margin: 6px 0; text-align: center; }
.l15 a { margin-left: 4px; }

/* =====================================================================
   UYARI / CALLOUT
   ===================================================================== */
.callout, .m2-alert { border-radius: var(--radius); padding: 13px 16px; margin: 0 0 16px; font-size: 13.5px; border: 1px solid; }
.callout-success, .m2-alert-success { background: rgba(92,180,106,0.10); border-color: rgba(92,180,106,0.35); color: #8fd99a; }
.callout-danger, .callout-warning, .m2-alert-error { background: rgba(192,57,43,0.12); border-color: rgba(192,57,43,0.4); color: var(--red-light); }
.callout-info, .m2-alert-info { background: rgba(229,182,107,0.10); border-color: rgba(229,182,107,0.25); color: var(--gold); }

/* =====================================================================
   TABLO — M2Core .data-table (zebra + hover)
   ===================================================================== */
.m2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.m2-table th {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em;
  font-size: 13px; font-weight: 700; color: var(--gold); text-align: left; padding: 16px;
  border-bottom: 1px solid var(--border);
}
.m2-table td { padding: 14px 16px; border-bottom: 1px solid var(--bg-panel); color: var(--text); }
.m2-table tbody tr { transition: background .15s ease; }
.m2-table tbody tr:nth-child(odd) { background: rgba(0,0,0,0.15); }
.m2-table tbody tr:hover { background: rgba(0,0,0,0.275); color: var(--text-bright); }
.m2-table tbody tr:last-child td { border-bottom: 0; }

/* Sayfalama */
.pagination { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; justify-content: center; }
.pagination a, .pagination strong, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
  padding: 0 10px; border: 1px solid var(--border-mid); border-radius: var(--radius);
  color: var(--text-bright); font-size: 13px; font-weight: 600; transition: all .15s ease;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); background: rgba(229,182,107,0.1); }
.pagination strong, .pagination .active { background: linear-gradient(180deg, var(--gold-deep), var(--gold-deep2)); color: var(--btn-gold-text); border-color: rgba(229,182,107,0.4); }

/* Etiketler / rozetler */
.badge { display: inline-block; padding: 3px 10px; border-radius: var(--radius); font-size: 11.5px; font-weight: 600; border: 1px solid var(--border); }
.badge-gold { color: var(--gold); border-color: var(--border-bright); background: rgba(229,182,107,0.1); }
.badge-green { color: var(--green); border-color: rgba(92,180,106,0.4); background: rgba(92,180,106,0.1); }
.badge-red { color: var(--red-light); border-color: rgba(192,57,43,0.4); background: rgba(192,57,43,0.1); }

/* =====================================================================
   ANASAYFA: HABERLER
   ===================================================================== */
.news-top-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.top-news {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-mid); background: var(--bg-panel);
  display: flex; flex-direction: column; transition: border-color .25s ease;
}
.top-news:hover { border-color: var(--gold); }
.top-news-img { height: 150px; background-size: cover; background-position: center; flex-shrink: 0; }
.top-news-body { padding: 14px 16px; display: flex; flex-direction: column; }
.top-news-title a { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text-bright); }
.top-news-info { font-size: 12.5px; color: var(--text); margin: 6px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-news-read-more a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); }
.top-news-read-more a::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; transition: transform .18s ease; }
.top-news-read-more a:hover::after { color: var(--gold-bright); }
.nav-icon { display: none; }

.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--border-mid); border-radius: var(--radius);
  background: var(--bg-panel); transition: all .18s ease;
}
.news-row:hover { border-color: var(--gold); }
.news-row .title { font-weight: 600; color: var(--text-bright); }
.news-row .date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.facebook-block.text-center { padding: 14px; }

/* =====================================================================
   SOL/SAĞ KENAR WIDGET'LARI
   ===================================================================== */
.sidebar-title a { color: var(--gold); }
.sidebar-title-light { color: var(--gold-soft); }

.best-price-block { display: flex; flex-direction: column; gap: 14px; }
.best-price {
  display: block; position: relative; min-height: 96px; border-radius: var(--radius);
  padding: 16px; border: 1px solid var(--border-mid); overflow: hidden; color: var(--text-bright);
  background: linear-gradient(135deg, rgba(192,57,43,0.18), var(--bg-panel)); transition: border-color .22s ease;
}
.best-price.two { background: linear-gradient(135deg, rgba(43,179,163,0.18), var(--bg-panel)); }
.best-price:hover { border-color: var(--gold); }
.best-price-bottom span { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: #fff; }
.best-price-bottom { font-size: 12.5px; color: var(--text); }

.dowload-button a, .download-cta {
  display: block; text-align: center; padding: 16px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--btn-gold-text); background: linear-gradient(180deg, var(--gold-deep), var(--gold-deep2));
  border: 1px solid rgba(229,182,107,0.4); box-shadow: var(--glow-gold); transition: all .2s ease;
}
.dowload-button a::before { content: "\f019"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; }
.dowload-button a:hover { color: var(--btn-gold-text); border-color: var(--gold-bright); }

.hero-guides-block { display: block; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border-mid); background: linear-gradient(135deg, rgba(229,182,107,0.12), var(--bg-panel)); transition: all .2s ease; }
.hero-guides-block:hover { border-color: var(--gold); }
.block-info span { display: block; font-family: var(--font-head); font-size: 15px; color: var(--gold); }
.block-info { font-size: 12.5px; color: var(--text); }

.top-guilds, .rankings { padding: 6px 10px 12px; }
.rankings-title { display: flex; align-items: center; gap: 8px; padding: 8px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--border); }
.guilds, .rankings-title-block { display: flex; align-items: center; gap: 8px; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background .15s ease; }
.rankings-title-block:hover, .guilds:hover { background: rgba(229,182,107,0.05); }
.rankings-title-block:last-child, .guilds:last-child { border-bottom: 0; }
.rank-number, .rank-number-first, .rank-number-second, .rank-number-third, .guild-img { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--text-bright); background: var(--bg-elev); font-family: var(--font-head); }
.rank-number-first, .rankings-title-block.first .rank-number { background: linear-gradient(180deg, #ffe08a, #d9a441); color: #3a2a05; box-shadow: 0 0 10px rgba(251,191,36,0.45); border: 1px solid rgba(255,224,138,0.7); }
.rank-number-second, .rankings-title-block.second .rank-number { background: linear-gradient(180deg, #eef2f7, #aab4c2); color: #2a2f38; box-shadow: 0 0 8px rgba(220,228,238,0.25); border: 1px solid rgba(238,242,247,0.7); }
.rank-number-third, .rankings-title-block.third .rank-number { background: linear-gradient(180deg, #e8a268, #a8662f); color: #2a1c10; box-shadow: 0 0 8px rgba(232,162,104,0.3); border: 1px solid rgba(232,162,104,0.7); }
.clan-team, .rank-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-team span { display: block; font-size: 11px; color: var(--muted); }
.clan-team-name { color: var(--text-strong); font-weight: 600; }
.clan-team-lord { color: var(--gold); }
.points, .rank-lvl { font-size: 12.5px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.purple { color: var(--teal); }

.events { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.events li { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: var(--radius); background: rgba(255,255,255,0.02); border: 1px solid var(--border); }
.events li a { color: var(--text-strong); font-weight: 600; font-size: 13px; }
.events li span { font-size: 11.5px; color: var(--muted); }
.renkli { color: var(--gold) !important; }
/* Etkinlik durum renkleri (bitti=kırmızı, devam=yeşil, başlayacak=turuncu) */
.events li span.is-finished { color: var(--red-light); }
.events li span.is-ongoing { color: var(--green); }
.events li span.is-upcoming { color: #e0975a; }

.wallpaper-block { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.wallpaper, .wallpaper-big { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-mid); aspect-ratio: 16/9; }
.wallpaper-big { grid-column: 1 / -1; }
.wallpaper img, .wallpaper-big img { width: 100%; height: 100%; object-fit: cover; }
.wallpaper:hover { border-color: var(--gold); }
.wallpaper::after, .wallpaper-big::after { content: "\f04b"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(18,9,7,0.4); opacity: 0; transition: opacity .2s ease; }
.wallpaper:hover::after, .wallpaper-big:hover::after { opacity: 1; }

/* =====================================================================
   SIRALAMA SAYFASI
   ===================================================================== */
.rank-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.rank-tabs a { padding: 9px 20px; border: 1px solid var(--border-mid); border-radius: var(--radius); font-family: var(--font-head); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-bright); }
.rank-tabs a.active, .rank-tabs a:hover { color: var(--gold); border-color: var(--gold); background: rgba(229,182,107,0.1); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; align-items: end; }
.podium-item { text-align: center; padding: 18px 12px; border-radius: var(--radius); border: 1px solid var(--border-mid); background: var(--bg-panel); }
.podium-item .pos { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.podium-1 { order: 2; border-color: var(--border-bright); background: linear-gradient(135deg, rgba(229,182,107,0.12), rgba(26,15,12,0.6)); box-shadow: 0 0 30px -10px rgba(247,201,72,0.45); }
.podium-1 .pos { color: var(--gold-bright); }
.podium-2 { order: 1; } .podium-2 .pos { color: #d9dde3; }
.podium-3 { order: 3; } .podium-3 .pos { color: #e0975a; }
.podium-name { font-weight: 700; color: var(--text-strong); margin-top: 6px; }
.podium-meta { font-size: 12px; color: var(--muted); }

/* =====================================================================
   İNDİRME / DETAY / HESAP
   ===================================================================== */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.download-card { padding: 18px; text-align: center; border: 1px solid var(--border-mid); border-radius: var(--radius); background: var(--bg-panel); transition: all .2s ease; }
.download-card:hover { border-color: var(--gold); }
.download-card .ico { font-size: 30px; color: var(--gold); margin-bottom: 8px; }
.prose { color: var(--text); line-height: 1.8; }
.prose h1, .prose h2, .prose h3 { color: var(--gold); margin: 18px 0 10px; }
.prose a { color: var(--link); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 10px 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose li { list-style: disc; margin: 4px 0; }

.account-head { display: flex; align-items: center; gap: 16px; padding: 20px; flex-wrap: wrap; border: 1px solid var(--border-bright); border-radius: var(--radius); background: linear-gradient(135deg, rgba(229,182,107,0.12), var(--bg-panel)); margin-bottom: 20px; }
.account-head .avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--btn-gold-text); background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep)); font-family: var(--font-head); font-weight: 700; }
.account-head .who { flex: 1; min-width: 160px; }
.account-head .who h3 { font-size: 18px; }
.account-head .who p { color: var(--muted); font-size: 13px; }
.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px; }
.stat { padding: 14px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.02); }
.stat .v { font-family: var(--font-head); font-size: 20px; color: var(--gold); }
.stat .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.account-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--border-mid); border-radius: var(--radius); font-size: 13px; color: var(--text-bright); }
.account-nav a:hover, .account-nav a.active { color: var(--gold); border-color: var(--gold); background: rgba(229,182,107,0.1); }

/* Control Panel — cp-menu (ThemeTwentyFour port, T23 değişkenleri; hover = sadece kenarlık rengi) */
.cp-menu { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.cp-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--border-mid); background: rgba(var(--rgb-dark),0.35); border-radius: var(--radius); transition: border-color .2s ease, background-color .2s ease; text-decoration: none; }
.cp-item:hover { border-color: var(--gold); background: rgba(229,182,107,0.08); }
.cp-ico { width: 42px; height: 42px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--bg-panel-2); color: var(--gold); font-size: 16px; }
.cp-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cp-title { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-bright); }
.cp-desc { font-size: 12px; color: var(--muted); }
.cp-arrow { color: var(--dim); font-size: 12px; flex-shrink: 0; transition: color .2s ease; }
.cp-item:hover .cp-arrow { color: var(--gold); }
.cp-item.gold .cp-ico { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: var(--btn-gold-text); }
.cp-item.danger .cp-ico { background: rgba(180,50,50,0.5); color: #f0b89a; }
.cp-item.danger .cp-title { color: var(--red-light); }

/* =====================================================================
   MODAL (JS modalx.js)
   ===================================================================== */
.modalx-overlay { position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 20px; }
.modal_window { position: relative; display: none; width: 100%; max-width: 640px; background: var(--bg-panel); border: 1px solid var(--border-bright); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9); transform: scale(.96); transition: transform .2s ease, opacity .2s ease; opacity: 1; }
.modal_window .popup-block { padding: 26px; max-height: 80vh; overflow-y: auto; }
.close_mw, .close-r { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; z-index: 5; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--border-mid); background: var(--bg-elev); color: var(--gold); cursor: pointer; }
.close_mw:hover { color: var(--gold-bright); border-color: var(--gold); }
.close_mw::before { content: "\f00d"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
.reg-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-size: 16px; text-align: center; margin-bottom: 14px; }
.reg-form { color: var(--text); line-height: 1.7; font-size: 13.5px; }
.videoModal .popup-block iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); }

/* Bağımsız modal (modalx'siz) — üyelik sözleşmesi, youtube vb. */
.nuyah-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.nuyah-modal.open { display: flex; animation: nuyahModalIn .2s ease; }
.nuyah-modal-backdrop { position: absolute; inset: 0; background: rgba(20,11,8,0.85); backdrop-filter: blur(3px); }
.nuyah-modal-box { position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto; background: var(--bg-panel); border: 1px solid var(--border-bright); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); }
.nuyah-modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-mid); background: var(--bg-elev); color: var(--gold); border-radius: var(--radius); cursor: pointer; font-size: 16px; transition: .2s; }
.nuyah-modal-x:hover { background: var(--gold); color: var(--btn-gold-text); }
@keyframes nuyahModalIn { from { opacity: 0; } to { opacity: 1; } }
.nuyah-modal-box-video { max-width: 900px; padding: 14px; }
.nuyah-modal-box-video iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; display: block; border-radius: var(--radius); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { max-width: var(--maxw); margin: 30px auto 0; padding: 34px 18px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 13px; }
.soc-block { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.social { display: flex; align-items: center; gap: 10px; color: var(--text-bright); font-size: 13px; }
.social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--border-mid); color: var(--gold); font-size: 15px; transition: all .18s ease; }
.social a:hover { border-color: var(--gold); background: rgba(229,182,107,0.12); }
.social a.fb::before   { content: "\f39e"; font-family: "Font Awesome 6 Brands"; }
.social a.inst::before { content: "\f16d"; font-family: "Font Awesome 6 Brands"; }
.footer-logo img { margin: 0 auto; opacity: .9; }
.footer-menu ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 16px 0; }
.footer-menu a { color: var(--text-bright); font-size: 13px; }
.footer-menu a:hover { color: var(--gold); }
.copyright { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.copyright a { color: var(--gold); }
.lang-block-bottom { display: inline-block; }
.discord-widget { position: fixed; bottom: 18px; right: 18px; z-index: 150; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-bright); }

/* =====================================================================
   DUYARLI (RESPONSIVE)
   ===================================================================== */
@media (max-width: 1080px) {
  .container { grid-template-columns: minmax(0,1fr) 280px; }
  .left-sidebar { display: none; }
}
@media (max-width: 820px) {
  .container { grid-template-columns: 1fr; }
  .right-sidebar { display: none; }
  .news-top-block { grid-template-columns: 1fr; }
  .top-panel .wrap { gap: 10px; }
  .top-panel-status { display: none; }
  .top-menu > ul { justify-content: center; }
  .hidden-xs { display: none !important; }
}
@media (max-width: 520px) {
  .podium { grid-template-columns: 1fr; }
  .podium-item { order: 0 !important; }
  .header { min-height: 140px; }
  .header .logo img { max-height: 100px; }
  .panel-body, .card-body { padding: 14px; }
}
