/* ==========================================================================
   Hiyus Wiki - Kabuk ve bilesenler
   Renk/olcu degerleri theme.css'ten gelir; burada sabit renk yoktur.
   Fontlar header.php icinde <link> ile yukleniyor (@import render-blocking).
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + var(--sp-4));
}

body {
    background: var(--bg);
    background-image: var(--grad-hero);
    background-attachment: fixed;
    color: var(--text-dim);
    font-family: var(--font-ui);
    font-size: var(--fs-md);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent-bright); }

h1, h2, h3, h4 {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.015em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

/* Bolum ayraci: iki yana sonen duz cizgi, ortada etiket.
   Sureli / suresiz gibi gruplari birbirinden net ayirmak icin. */
.sect-rule {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin: var(--sp-7) 0 var(--sp-2);
}
.sect-rule:first-of-type { margin-top: var(--sp-2); }
.sect-rule::before,
.sect-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong) 70%);
}
.sect-rule::after { background: linear-gradient(90deg, var(--line-strong) 30%, transparent); }
.sect-rule > span {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--accent-bright);
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sect-rule > span > i {
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-faint);
    padding-left: 8px;
    border-left: 1px solid var(--line);
}
/* Sure sutunu, deger sutunlarindan duz cizgiyle ayriliyor. */
.blend-table .col-dur { border-left: 1px solid var(--line); }
.blend-table th.col-dur { color: var(--accent-dim); }

.sect-note {
    margin: 0 0 var(--sp-4);
    text-align: center;
    color: var(--text-faint);
    font-size: var(--fs-sm);
}

/* Ekranda gorunmez, ekran okuyucu ve arama motoru okur.
   Tasarimda ust baslik yeri olmayan sayfalara <h1> kazandirmak icin. */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

::selection { background: var(--accent-glow); color: var(--text); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* Ince kaydirma cubugu */
* { scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--surface-hover); background-clip: content-box; }

/* ==========================================================================
   Duzen
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-5) var(--sp-8);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--accent);
    color: var(--accent-ink);
    padding: var(--sp-3) var(--sp-4);
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--accent-ink); }

/* ==========================================================================
   Ust cubuk
   ========================================================================== */

/* Iki katli baslik: ust serit (logo + arama) ve altinda ortalanmis menu. */
.site-head {
    position: sticky;
    top: 0;
    z-index: 900;
    background: color-mix(in srgb, var(--bg-deep) 82%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line);
}
.head-top { border-bottom: 1px solid var(--line-soft); }

.navbar {
    max-width: var(--content-max);
    margin: 0 auto;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: 0 var(--sp-5);
}
.head-gap { flex: 1; }

/* Menu seridi -- ince altin sizinti ile ust seritten ayriliyor. */
.head-nav {
    background: linear-gradient(180deg, rgba(232, 188, 106, .07), transparent 85%);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-brand:hover { color: var(--text); }
.nav-brand .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    background: var(--grad-accent);
    display: grid;
    place-items: center;
    color: var(--accent-ink);
    font-size: 15px;
    box-shadow: 0 0 0 1px var(--line-strong), 0 4px 14px -4px var(--accent-glow);
}

/* Menu seridi kendi bandinda durdugu icin govde genisligine bagli degil;
   13 sekme 1280 px'e sigmadigindan burasi daha genis. Yine de sigmazsa
   kirpilmak yerine alt satira geciyor (flex-wrap) -- eskiden ortalama +
   overflow birlesince sagdaki sekme yariya kesiliyordu. */
.nav-links {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 var(--sp-3);
    display: flex;
    align-items: center;
    justify-content: center;   /* menu ortada */
    flex-wrap: wrap;
    gap: 0 2px;
    min-width: 0;
}

.nav-links a {
    position: relative;
    padding: var(--sp-3) 12px;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a::after {
    /* Altin alt cizgi: hover'da acilir, acik sayfada surekli durur. */
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active {
    color: var(--accent-bright);
    background: var(--accent-soft);
    text-shadow: 0 0 18px var(--accent-glow);
}
.nav-links a.active::after { transform: scaleX(1); }

/* Arama */
.nav-search {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 0 var(--sp-2) 0 var(--sp-4);
    height: 36px;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-search:focus-within {
    border-color: var(--line-strong);
    background: var(--surface-2);
}
/* Secici bilerek input[type="search"] iceriyor: asagidaki genel form kurali
   dosyada daha sonra geldigi icin ayni oncelikte yazilirsa onu eziyor ve
   arama kutusu kutu icinde kutu gibi cift cerceveli gorunuyordu. */
.nav-search input[type="search"] {
    background: none;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    padding: 0;
    min-height: 0;
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-sm);
    width: 230px;
}
.nav-search input::placeholder { color: var(--text-faint); }
.nav-search button {
    background: none;
    border: 0;
    color: var(--text-dim);
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-search button:hover { color: var(--accent); background: var(--surface-2); }

/* Hamburger */
.mobile-nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.mobile-nav-toggle .bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text-dim);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.mobile-nav-toggle.open .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   Kartlar ve yuzeyler
   ========================================================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-5);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
                transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease);
}
.card--hover:hover,
a.card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.panel {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--line-soft);
}
.panel-body { padding: var(--sp-5); }

.section-label {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: var(--sp-4);
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--sp-8) var(--sp-6);
    margin-bottom: var(--sp-6);
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(700px 320px at 50% -30%, var(--accent-soft), transparent 70%),
        var(--bg-elev);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
    margin-bottom: var(--sp-3);
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero .subtitle {
    color: var(--text-dim);
    font-size: var(--fs-lg);
    max-width: 640px;
    margin: 0 auto var(--sp-5);
}

.hero-search {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hero-search:focus-within {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-search input {
    flex: 1;
    background: none;
    border: 0;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-md);
    min-width: 0;
}
.hero-search input::placeholder { color: var(--text-faint); }

/* ==========================================================================
   Butonlar
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--text-dim);
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--dur) var(--ease);
}
.btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--grad-accent);
    border-color: transparent;
    color: var(--accent-ink);
    font-weight: 600;
}
.btn-primary:hover {
    color: var(--accent-ink);
    filter: brightness(1.08);
    box-shadow: 0 6px 20px -6px var(--accent-glow);
}
.btn-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ghost { background: none; border-color: transparent; }
.btn-sm { min-height: 28px; padding: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* Filtre / sekme dugmeleri */
.type-filters,
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
}
.type-btn {
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-dim);
    font-family: inherit;
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.type-btn:hover { color: var(--text); border-color: var(--line-strong); }
.type-btn.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* ==========================================================================
   Rozetler
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 2px var(--sp-2);
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.6;
    background: var(--surface-2);
    color: var(--text-dim);
    border: 1px solid var(--line);
}
.badge-primary, .badge-gold { background: var(--accent-2-soft); color: var(--accent-2); border-color: transparent; }
.badge-secondary          { background: var(--surface-2);    color: var(--text-dim); }
.badge-red                { background: var(--danger-soft);  color: var(--danger);  border-color: transparent; }
.badge-blue               { background: var(--info-soft);    color: var(--info);    border-color: transparent; }
.badge-green              { background: var(--success-soft); color: var(--success); border-color: transparent; }

/* ==========================================================================
   Formlar
   ========================================================================== */

.form-group { margin-bottom: var(--sp-4); }
.form-group label {
    display: block;
    margin-bottom: var(--sp-2);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 500;
}
input[type="text"], input[type="search"], input[type="password"],
input[type="number"], input[type="email"], input[type="url"],
select, textarea {
    width: 100%;
    padding: var(--sp-2) var(--sp-3);
    min-height: 38px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-sm);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
select { cursor: pointer; color-scheme: dark; }
/* Acilan listenin zemini tarayicidan geliyordu: --surface saydam oldugu icin
   beyaz zemin uzerine acik metin dusuyor ve secenekler okunmuyordu. */
select option, select optgroup {
    background-color: var(--surface-solid);
    color: var(--text);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: auto; min-height: 0; }

.search-bar, .search-wrap, .search-box {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
    flex-wrap: wrap;
}
.search-bar input, .search-wrap input, .search-box input { flex: 1; min-width: 200px; }

.form-error, .form-success {
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius-xs);
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-4);
    border: 1px solid transparent;
}
.form-error   { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger); }
.form-success { background: var(--success-soft); color: var(--success); border-color: var(--success); }

/* ==========================================================================
   Tablolar
   ========================================================================== */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; }
thead th {
    background: var(--surface-2);
    color: var(--text-faint);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}
tbody tr { border-top: 1px solid var(--line-soft); transition: background var(--dur) var(--ease); }
tbody tr:hover { background: var(--surface); }
td { color: var(--text-dim); }
td strong, td b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Izgaralar
   ========================================================================== */

.grid { display: grid; gap: var(--sp-4); }
.grid-auto     { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-auto-sm  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-auto-lg  { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ==========================================================================
   Sayfalama
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-top: var(--sp-6);
}
.pagination a, .pagination span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--sp-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    transition: all var(--dur) var(--ease);
}
.pagination a:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.pagination .active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

/* ==========================================================================
   Bos durum
   ========================================================================== */

.empty-state {
    padding: var(--sp-8) var(--sp-5);
    text-align: center;
    color: var(--text-faint);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty-state strong { display: block; color: var(--text-dim); margin-bottom: var(--sp-2); font-size: var(--fs-lg); }

/* ==========================================================================
   Istatistik kartlari
   ========================================================================== */

.stat-grid, .stats-overview, .info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.stat-card, .stat-item, .info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--sp-4) var(--sp-5);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.stat-card:hover, .stat-item:hover, .info-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}
.stat-card .number, .stat-item .number, .stat-card .value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.stat-card .label, .stat-item .label {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint);
}

/* ==========================================================================
   Ikon kutulari
   ========================================================================== */

.item-icon, .icon-box {
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    padding: var(--sp-1);
}

/* ==========================================================================
   Detay basligi
   ========================================================================== */

.detail-header {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
    padding: var(--sp-5);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: var(--sp-5);
}

/* ==========================================================================
   Giris ekrani (admin)
   ========================================================================== */

.install-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 10vh var(--sp-5) var(--sp-8);
}
.install-container h1 {
    text-align: center;
    margin-bottom: var(--sp-5);
    font-size: var(--fs-xl);
}

/* ==========================================================================
   Alt bilgi
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-deep) 60%, transparent);
    padding: var(--sp-6) var(--sp-5);
    margin-top: var(--sp-8);
}
.footer-content {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: var(--fs-xs);
}
.footer-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* Metin2Best backlink bannerı: alt menunun uzerinde, ortali. */
.footer-ad {
    max-width: var(--content-max);
    margin: 0 auto var(--sp-5);
    display: flex;
    justify-content: center;
}
.footer-ad a {
    display: inline-flex;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    line-height: 0;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.footer-ad a:hover { background: var(--surface-2); border-color: var(--accent); }
/* Dar ekranda banner sabit 260px kalirsa tasiyor. */
.footer-ad img { max-width: 100%; height: auto; }

/* ==========================================================================
   Yardimci siniflar
   ========================================================================== */

.muted    { color: var(--text-faint); }
.accent   { color: var(--accent); }
.gold     { color: var(--accent-2); }
.mono     { font-family: var(--font-mono); }
.center   { text-align: center; }
.nowrap   { white-space: nowrap; }
.stack    { display: flex; flex-direction: column; gap: var(--sp-3); }
.row      { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.spacer   { flex: 1; }
.mt-0 { margin-top: 0; }  .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mb-4 { margin-bottom: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); } .mb-6 { margin-bottom: var(--sp-6); }

/* ==========================================================================
   Duyarli
   ========================================================================== */

@media (max-width: 1180px) {
    .nav-search input[type="search"] { width: 150px; }
    /* Dar ekranda sekmeler once sikisiyor, sonra alt satira geciyor. */
    .nav-links a { padding: var(--sp-3) 9px; letter-spacing: .02em; }
}

@media (max-width: 1024px) {
    .nav-search input[type="search"] { width: 110px; }
}

@media (max-width: 860px) {
    :root { --nav-h: 56px; }

    .navbar { padding: 0 var(--sp-4); gap: var(--sp-2); }
    .mobile-nav-toggle { display: flex; order: 5; }
    .nav-search { display: none; }
    .head-top { border-bottom: 0; }
    .head-nav { background: none; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--nav-h));
        flex-direction: column;
        flex-wrap: nowrap;   /* dikey menude sarma olursa sutunlara bolunuyor */
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--line);
        padding: var(--sp-2);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links a { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-xs); }
    .nav-links a::after { display: none; }

    .container { padding: var(--sp-5) var(--sp-4) var(--sp-7); }
    .hero { padding: var(--sp-6) var(--sp-4); }
    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    body { font-size: var(--fs-sm); }
    .grid-auto    { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
    .card { padding: var(--sp-4); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .navbar, .site-footer, .skip-link, .theme-switch, .pagination { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ==========================================================================
   ANA SAYFA
   Hero kenardan kenara uzansin diye header <main class="wide"> basar; icerideki
   bloklar kendi .container kutusunu acar.
   ========================================================================== */
main.wide { display: block; }

.home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--grad-hero), var(--bg-deep);
}
.home-hero::after {
    /* Altin cizgi: hero ile icerigi ayirir. */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}
.home-hero-in {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-5) var(--sp-7);
    text-align: center;
}
.home-title {
    margin: 0 0 var(--sp-3);
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    line-height: 1.1;
    letter-spacing: -.02em;
    background: var(--grad-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home-sub {
    margin: 0 auto var(--sp-6);
    max-width: 620px;
    color: var(--text-dim);
    font-size: var(--fs-lg);
    line-height: 1.55;
}

/* --- Hero arama --- */
.home-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    max-width: 620px;
    margin: 0 auto var(--sp-5);
    padding: var(--sp-2);
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.home-search:focus-within {
    border-color: var(--line-strong);
    box-shadow: var(--shadow), 0 0 0 4px var(--accent-soft);
}
.home-search .hs-ico { margin-left: var(--sp-3); color: var(--text-faint); flex-shrink: 0; }
.home-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-md);
    padding: var(--sp-2);
}
.home-search input::placeholder { color: var(--text-faint); }
.home-search .btn { border-radius: var(--radius-pill); padding-inline: var(--sp-5); }

/* Anlik oneri kutusu (main.js doldurur) */
.home-search .suggest {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + var(--sp-2));
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-1);
    text-align: left;
    max-height: 340px;
    overflow-y: auto;
    z-index: 900;
}
.home-search .suggest[hidden] { display: none; }
.home-search .suggest a {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    font-size: var(--fs-sm);
}
.home-search .suggest a:hover,
.home-search .suggest a.on { background: var(--surface); color: var(--text); }
.home-search .suggest .sg-t { margin-left: auto; color: var(--text-faint); font-size: var(--fs-xs); }
.home-search .suggest .sg-empty { padding: var(--sp-3); color: var(--text-faint); font-size: var(--fs-sm); }

/* --- Hero kisayol rozetleri --- */
.home-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.home-chips a {
    padding: var(--sp-2) var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 500;
    transition: all var(--dur) var(--ease);
}
.home-chips a:hover {
    color: var(--accent);
    border-color: var(--line-strong);
    background: var(--accent-soft);
}

/* --- Ana govde --- */
.home-main { padding-top: var(--sp-6); }

/* --- Bolum kutulari --- */
/* Bolum basliginin altindaki bir cumlelik aciklama */
.section-note {
    max-width: 70ch;
    margin: calc(var(--sp-4) * -1) 0 var(--sp-4);
    color: var(--text-faint);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* Esya kategorileri: ad + kayit sayisi, yogun izgara */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
    gap: var(--sp-2);
    margin-bottom: var(--sp-7);
}
.cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cat:hover { border-color: var(--accent); background: var(--surface-hover); }
.cat-n { color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.cat-c {
    flex: none;
    padding: 2px var(--sp-2);
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-3);
    margin-bottom: var(--sp-7);
}
.hub {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hub:hover {
    background: var(--surface-hover);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}
.hub-ico {
    width: 40px; height: 40px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
}
.hub-txt { min-width: 0; }
.hub-txt strong {
    display: block;
    color: var(--text);
    font-size: var(--fs-md);
    font-weight: 600;
    margin-bottom: 2px;
}
.hub-txt em {
    display: block;
    font-style: normal;
    color: var(--text-faint);
    font-size: var(--fs-xs);
    line-height: 1.4;
}
.hub-arrow {
    margin-left: auto;
    color: var(--text-faint);
    font-size: var(--fs-xl);
    line-height: 1;
    transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hub:hover .hub-arrow { color: var(--accent); transform: translateX(3px); }

/* --- Sinif kartlari --- */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--sp-3);
    margin-bottom: var(--sp-7);
}
.class-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.class-top {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, var(--accent-soft), transparent);
}
.class-top img { border-radius: var(--radius-xs); flex-shrink: 0; }
.class-kicker {
    display: block;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.class-name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--text);
}
.class-links { display: grid; grid-template-columns: 1fr 1fr; }
.class-links a {
    padding: var(--sp-3);
    font-size: var(--fs-sm);
    color: var(--text-dim);
    text-align: center;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.class-links a:nth-child(2n) { border-right: 0; }
.class-links a:nth-last-child(-n+2) { border-bottom: 0; }
.class-links a:hover { background: var(--surface-hover); color: var(--accent); }

/* --- Populer esyalar --- */
.pop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--sp-2);
    margin-bottom: var(--sp-7);
}
.pop {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.pop:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.pop img { flex-shrink: 0; }
.pop-n {
    flex: 1;
    min-width: 0;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pop:hover .pop-n { color: var(--text); }
.pop-c {
    flex-shrink: 0;
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* --- Patron kartlari --- */
.boss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: var(--sp-3);
    margin-bottom: var(--sp-7);
}
.boss {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.boss:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.boss-img {
    height: 130px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 80%, var(--accent-soft), transparent 70%), var(--bg-deep);
    border-bottom: 1px solid var(--line-soft);
}
.boss-img img { max-width: 100%; max-height: 118px; object-fit: contain; }
/* Gorsel yuklenmediyse yer tutucu yaziyi goster. */
.boss-img.noimg::before {
    content: "Görsel yok";
    color: var(--text-faint);
    font-size: var(--fs-xs);
}
.boss-body { padding: var(--sp-3); text-align: center; }
.boss-body strong {
    display: block;
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.boss-body span { display: block; margin-top: 2px; color: var(--text-faint); font-size: var(--fs-xs); }

@media (max-width: 700px) {
    .home-hero-in { padding: var(--sp-6) var(--sp-4) var(--sp-5); }
    .home-title { font-size: var(--fs-2xl); }
    .home-sub { font-size: var(--fs-md); }
    .home-search { border-radius: var(--radius); flex-wrap: wrap; }
    .home-search .btn { width: 100%; }
    .hub-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ==========================================================================
   Esya detay sayfasi (item.php)
   ========================================================================== */

section.panel { margin-bottom: var(--sp-5); }
.panel-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: .01em;
}
.panel-meta { font-size: var(--fs-xs); color: var(--text-faint); }
.panel-accent { border-color: var(--accent); }

/* Baslik blogu */
.item-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-7) var(--sp-4) var(--sp-5);
}
.item-hero img { height: 80px; width: auto; image-rendering: -webkit-optimize-contrast; }
.item-hero h1 {
    margin: 0;
    font-size: var(--fs-2xl, 1.8rem);
    font-weight: 700;
    color: var(--text);
    text-align: center;
}
.item-badges { display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center; }

/* --------------------------------------------------------------------------
   Favoriler
   Liste tarayicida (localStorage) duruyor; sunucu tarafinda karsiligi yok.
   Bu yuzden dugmenin ilk halini JS boyuyor -- CSS yalnizca iki durumu tanimliyor.
   -------------------------------------------------------------------------- */
.item-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--sp-2);
}
.fav-btn { cursor: pointer; }
.fav-star { font-size: 1.05em; line-height: 1; }
.fav-btn.is-fav {
    background: var(--accent-2-soft);
    border-color: var(--accent);
    color: var(--accent);
}

/* Ust seritteki yildiz kisayolu ve sayaci. */
.nav-fav {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    color: var(--text-faint);
    text-decoration: none;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-fav:hover, .nav-fav.active { color: var(--accent); background: var(--accent-2-soft); }
.nav-fav-n {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: #1a1206;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.nav-fav-n[hidden] { display: none; }

/* Favori kartindaki cikar dugmesi: kart bir <a>, bu yuzden disinda duruyor. */
.fav-tile { padding: 0; }
.fav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-2) var(--sp-3);
    width: 100%;
    text-decoration: none;
}
.fav-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-faint);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.fav-tile:hover .fav-del, .fav-del:focus-visible { opacity: 1; }
.fav-del:hover { color: var(--danger); border-color: var(--danger); }

/* Etiket + deger ciftleri */
.fact-list { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.fact-list.center { justify-content: center; }
.fact {
    display: inline-flex;
    align-items: baseline;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
}
.fact .fk {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-faint);
}
.fact .fv { font-weight: 600; color: var(--text); }
.fact .fv.gold, .gold { color: var(--accent-2); }
.fact .fv.mono { font-family: var(--font-mono, monospace); }

/* Sinif kullanim isaretleri */
.class-flags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.cf {
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-xs);
    font-size: var(--fs-xs);
    font-weight: 600;
}
.cf.yes { background: var(--success-soft); color: var(--success); }
.cf.no  { background: var(--danger-soft);  color: var(--danger); }

/* Yukseltme tablosu */
.refine-wrap { border-radius: 0; border: 0; background: none; }
.refine-table { font-size: var(--fs-sm); }
.refine-table th, .refine-table td {
    text-align: center;
    padding: var(--sp-4) var(--sp-3);
    border-bottom: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
    white-space: nowrap;
}
.refine-table th.rt-head {
    text-align: left;
    min-width: 150px;
    border-left: 0;
    background: var(--surface);
    color: var(--text-faint);
    font-weight: 600;
    font-size: var(--fs-xs);
    text-transform: none;
    letter-spacing: 0;
    position: static;
}
.refine-table thead th { position: static; }
.refine-table thead th.on { background: var(--accent-soft); }
.refine-table thead th a { color: var(--text-faint); font-weight: 600; }
.refine-table thead th a:hover { color: var(--accent-2); }
.refine-table thead th.on span { color: var(--accent-2); font-weight: 700; }
.refine-table td.on { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.refine-table td.mats { white-space: normal; min-width: 84px; }
.refine-table .dash { color: var(--text-faint); }
.refine-table tbody tr:hover { background: transparent; }

/* Malzeme rozeti + ustune gelince ad */
.mat-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    margin: 2px;
    padding: var(--sp-1) var(--sp-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xs);
    color: var(--text-faint);
    text-decoration: none;
}
.mat-chip:hover { border-color: var(--accent); color: var(--accent-2); }
.mat-x { font-size: var(--fs-xs); font-weight: 600; }
.tip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 118%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--sp-1) var(--sp-3);
    background: var(--surface-solid, var(--bg-elev));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    color: var(--accent-2);
    font-size: var(--fs-xs);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
    z-index: 50;
}
.mat-chip:hover .tip-text, .mat-chip:focus-visible .tip-text { visibility: visible; opacity: 1; }

/* Donusum akisi */
.transform-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
    margin-bottom: var(--sp-5);
}
.tf-node { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); text-decoration: none; }
.tf-node img { height: 56px; width: auto; }
.tf-node span { font-size: var(--fs-sm); color: var(--text-faint); text-align: center; }
.tf-target span { color: var(--accent-2); font-weight: 600; }
.tf-target:hover span { color: var(--accent); }
.tf-arrow { font-size: 1.5rem; color: var(--accent-2); }

/* Rozet listeleri: dusuren canavarlar, magazalar, sandik icerigi */
.chip-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
/* Acik olan kayit (ornegin bulundugunuz gelistirme seviyesi) */
.chip.on {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-bright);
    font-weight: 600;
}
/* ---- Seviye seridi (item.php "Seviyeler") -------------------------------
   Bazi ailelerde 200'e yakin seviye var. Eskiden hepsi alt alta sariliyor,
   sayfanin yarisini kapliyordu; artik tek satirda yatay kaydiriliyor. */
.lv-strip { display: flex; align-items: center; gap: var(--sp-2); }
.lv-track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: var(--sp-2);
    padding: 2px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}
.lv-track::-webkit-scrollbar { height: 6px; }
.lv-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--radius-pill); }
.lv-chip {
    flex: 0 0 auto;
    min-width: 3.5rem;
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-variant-numeric: tabular-nums;
    text-align: center;
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lv-chip:hover { border-color: var(--accent); color: var(--accent-2); }
.lv-chip.on {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-bright);
    font-weight: 700;
}
.lv-arrow {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    color: var(--accent-2);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lv-arrow:hover { background: var(--accent-soft); border-color: var(--accent); }

.lv-jump { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); }
.lv-jump label { color: var(--text-faint); font-size: var(--fs-sm); }
.lv-plus { color: var(--accent-2); font-weight: 700; }
.lv-jump input[type="number"] {
    width: 84px;
    padding: 6px var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-sm);
    min-height: 0;
}
.lv-jump input[type="number"]:focus { outline: none; border-color: var(--accent); }
.lv-hint { color: var(--text-faint); font-size: var(--fs-xs); }
.chip img { object-fit: contain; }
.chip-name { color: var(--accent-2); font-weight: 600; }
.chip-sub { font-size: var(--fs-xs); color: var(--text-faint); }
.chip-price {
    padding: 2px var(--sp-2);
    background: var(--accent-2-soft);
    border-radius: var(--radius-xs);
    color: var(--accent-2);
    font-size: var(--fs-xs);
    font-weight: 600;
}

/* Uc sutunlu kayit listesi: sandik icerigi, dusuren canavarlar.
   Rozet bulutu 50+ kayitta duzensiz sariliyor ve ayni ad iki kez gecmis
   gibi gorunuyordu; sabit sutunlu izgara okunmayi kolaylastiriyor. */
.drop-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-2);
}
.drop-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drop-row:hover { border-color: var(--accent); color: var(--accent-2); }
.drop-row img { flex: 0 0 auto; object-fit: contain; }
/* Uzun esya adlari sutunu tasirmasin diye tek satirda kirpiliyor. */
.drop-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-r {
    flex: 0 0 auto;
    color: var(--accent-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.drop-lv { flex: 0 0 auto; color: var(--text-faint); font-size: var(--fs-xs); }
@media (max-width: 900px) { .drop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .drop-list { grid-template-columns: 1fr; } }

/* Sandik acilir kutusu */
.chest-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chest-box { position: relative; }
.chest-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    cursor: pointer;
}
.chest-btn:hover, .chest-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-2); }
.chest-caret { font-size: var(--fs-xs); color: var(--text-faint); }
/* Konum JS ile veriliyor (item.php): kutu .panel'in overflow:hidden'i
   tarafindan kirpilmasin diye ekrana sabitleniyor, dugmeye gore
   hizalaniyor ve asagi sigmiyorsa yukari aciliyor. */
.chest-pop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    width: max-content;
    min-width: 250px;
    max-width: min(360px, calc(100vw - 16px));
    max-height: 300px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--sp-3);
    background: var(--surface-solid, var(--bg-elev));
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .62);
}
.chest-pop[hidden] { display: none; }
.chest-pop-head {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding-bottom: var(--sp-2);
    margin-bottom: var(--sp-2);
    border-bottom: 1px solid var(--line-soft);
    color: var(--accent-2);
    font-weight: 600;
    font-size: var(--fs-sm);
}
.chest-pop a {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-1) 0;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    text-decoration: none;
}
.chest-pop a:hover { color: var(--accent-2); }
.chest-empty { color: var(--text-faint); font-size: var(--fs-sm); }

/* Not: eski .craft-list / .craft-card kurallari kaldirildi. Esya sayfasindaki
   "Cube ile Uretim" bolumu artik craft.php ile ayni .recipe-grid/.recipe-card
   bicimini kullaniyor (kural seti asagida, .cat-header'in yaninda). */

@media (max-width: 768px) {
    .item-hero { padding-top: var(--sp-5); }
    .refine-table th.rt-head { min-width: 120px; }
}
/* Ikon etiketi (iconImg) */
.ico { object-fit: contain; vertical-align: middle; flex: none; }

/* ==========================================================================
   Canavar detay sayfasi (mob.php)
   ========================================================================== */

.mob-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-7) var(--sp-4) var(--sp-5);
}
.mob-portrait {
    display: grid;
    place-items: center;
    width: 160px;
    height: 160px;
}
.mob-portrait img { max-width: 150px; max-height: 150px; width: auto; height: auto; object-fit: contain; }
.mob-portrait:empty::after {
    content: '';
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px dashed var(--line);
}
.mob-hero h1 { margin: 0; font-size: var(--fs-xl, 1.6rem); font-weight: 700; color: var(--text); text-align: center; }

/* Iki kolonlu istatistik listesi */
.stat-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-6); }
.stat-row {
    display: flex;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--line-soft);
}
.stat-row:last-child, .stat-grid2 .stat-row:nth-last-child(-n+2) { border-bottom: none; }
.stat-label { color: var(--text-faint); font-size: var(--fs-sm); }
.stat-val   { color: var(--text); font-size: var(--fs-sm); font-weight: 600; }

.sub-block { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.sub-label {
    margin-bottom: var(--sp-2);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-faint);
}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.spec, .res {
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--radius-xs);
    font-size: var(--fs-xs);
    border: 1px solid transparent;
}
.spec { background: var(--accent-2-soft); border-color: var(--line-soft); color: var(--accent-2); }
.spec b, .res b { color: var(--text); font-weight: 600; }
.res.hi  { background: var(--danger-soft);  color: var(--danger); }
.res.mid { background: var(--warning-soft); color: var(--warning); }
.res.low { background: var(--success-soft); color: var(--success); }

.mob-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-items: start; }

/* Harita sekmeleri ve spawn noktalari */
.map-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.map-tab {
    padding: var(--sp-1) var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-faint);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.map-tab:hover { color: var(--accent-2); border-color: var(--accent); }
.map-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.spawn-panel[hidden] { display: none; }
.spawn-map { position: relative; line-height: 0; }
.spawn-map img { width: 100%; height: auto; border-radius: var(--radius-sm); display: block; }
.spawn-map img.broken { display: none; }
.spawn-map img.broken + .spawn-dot { display: none; }
.spawn-dot {
    position: absolute;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--danger);
    border: 1px solid #fff;
    box-shadow: 0 0 6px var(--danger);
    z-index: 5;
}
.spawn-link {
    display: block;
    margin-top: var(--sp-2);
    text-align: center;
    color: var(--text-faint);
    font-size: var(--fs-xs);
    text-decoration: none;
}
.spawn-link:hover { color: var(--accent-2); }

/* Dusen esya kutucuklari */
.drop-grid { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
}
.drop-icon img { max-width: 32px; max-height: 32px; width: auto; height: auto; object-fit: contain; }

.muted { color: var(--text-faint); font-size: var(--fs-sm); margin: 0; }

@media (max-width: 860px) {
    .mob-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .stat-grid2 { grid-template-columns: 1fr; }
    .stat-grid2 .stat-row:nth-last-child(2) { border-bottom: 1px solid var(--line-soft); }
}
/* ==========================================================================
   Liste sayfalari (mobs.php, maps.php, items.php, chests.php ...)
   ========================================================================== */

.list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin: 0 0 var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--line-soft);
}
.list-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--text);
    letter-spacing: -.4px;
}
.list-count {
    font-size: var(--fs-sm);
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}
.filter-row.sub { margin-bottom: var(--sp-4); }

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.filter-btn:hover { background: var(--surface-hover); color: var(--text); border-color: var(--line-strong); }
.filter-btn.on {
    background: var(--accent-soft);
    border-color: var(--line-strong);
    color: var(--accent-bright);
}
.filter-btn.sm { padding: 6px 12px; font-size: var(--fs-xs); font-weight: 500; }

/* Kategori sayisi arttigi icin dar ekranda satir kaydiriliyor; sarilirsa
   filtreler ekranin yarisini kapliyordu. */
@media (max-width: 640px) {
    .filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }
    .filter-row::-webkit-scrollbar { display: none; }
    .filter-btn { flex: none; }
}

.search-bar {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-5);
}
.search-bar input[type="search"],
.search-bar input[type="text"] {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Esya karsilastirma (compare.php)
   Ilk sutun etiket, kalan sutunlar esyalar. Dar ekranda tablo yatay kayiyor,
   etiket sutunu yapisik kaliyor ki hangi satira baktigin kaybolmasin.
   -------------------------------------------------------------------------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cmp-table th, .cmp-table td {
    padding: var(--sp-3) var(--sp-4);
    border-top: 1px solid var(--line-soft);
    text-align: center;
    vertical-align: middle;
}
.cmp-table thead th { border-top: 0; background: var(--surface-2); }
.cmp-table tbody tr:hover { background: var(--surface); }

.cmp-lbl {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 150px;
    text-align: left !important;
    background: var(--surface-2);
    color: var(--text-faint);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
}
.cmp-table .dash { color: var(--text-faint); }

.cmp-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 130px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
}
.cmp-head:hover { color: var(--accent); }
.cmp-head img.broken { visibility: hidden; }
.cmp-remove {
    display: inline-block;
    margin-top: 6px;
    color: var(--text-faint);
    font-size: var(--fs-xs);
    font-weight: 400;
    text-decoration: none;
}
.cmp-remove:hover { color: var(--danger); }

/* Satirin en iyi degeri. Renk tek basina yeterli olmasin diye kalinlik da var. */
.cmp-table td.is-best {
    color: var(--accent);
    font-weight: 700;
    background: var(--accent-2-soft);
}
.cmp-classes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.drop-chip.is-on { border-color: var(--accent); color: var(--text); }
.empty-state.compact { padding: var(--sp-4); margin-bottom: var(--sp-5); }

/* --------------------------------------------------------------------------
   Farm rehberi (drops.php)
   Her canavar bir kart: solda gorsel + seviye/harita rozetleri,
   altta dusurdugu esyalar yatay serit halinde.
   -------------------------------------------------------------------------- */
.farm-card .panel-head { align-items: flex-start; gap: var(--sp-3); flex-wrap: wrap; }
.farm-mob { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.farm-img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.farm-img img { max-width: 100%; height: auto; }
.farm-card .panel-title a { color: inherit; text-decoration: none; }
.farm-card .panel-title a:hover { color: var(--accent); }
.farm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.farm-meta a.badge { text-decoration: none; }
.farm-meta a.badge:hover { filter: brightness(1.25); }

.drop-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}
.drop-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 230px;
    padding: 4px 10px 4px 4px;
    background: var(--surface-solid);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-size: var(--fs-xs);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drop-chip:hover { border-color: var(--accent); color: var(--text); }
.drop-chip img { flex: 0 0 28px; }
.drop-chip img.broken { visibility: hidden; }
.drop-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Kutucuk izgarasi --- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: var(--sp-3);
}
.tile-grid-map { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-2) var(--sp-3);
    background: var(--surface-solid);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.tile:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: var(--surface-hover);
}

.tile-corner {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, .55);
    border: 1px solid var(--line-soft);
    color: var(--text-faint);
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tile-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
}
.tile-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.tile-img.map {
    width: 100%;
    height: 118px;
    border-radius: var(--radius-xs);
    background: var(--bg-elev);
    overflow: hidden;
}
.tile-img.map img { width: 100%; height: 100%; object-fit: cover; }
/* Gorsel yuklenemezse cizgili yer tutucu kalir, kirik ikon gorunmez. */
.tile-img img.broken {
    visibility: hidden;
}
.tile-img.map:has(img.broken),
.tile-img:has(img.broken) {
    background-image: repeating-linear-gradient(45deg,
        rgba(255, 255, 255, .04) 0 8px, transparent 8px 16px);
}

.tile-name {
    color: var(--text-dim);
    font-size: var(--fs-xs);
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}
.tile:hover .tile-name { color: var(--accent-2); }
.tile-sub {
    color: var(--text-faint);
    font-size: 10px;
    font-family: var(--font-mono);
    text-align: center;
    word-break: break-all;
}

/* --- Rutbe rozetleri --- */
.rank-badge {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.rank-PAWN     { background: rgba(255, 255, 255, .06); color: var(--text-faint); border-color: var(--line-soft); }
.rank-KNIGHT   { background: var(--info-soft);    color: var(--info);    border-color: rgba(104, 133, 246, .3); }
.rank-BOSS     { background: var(--warning-soft); color: var(--warning); border-color: rgba(252, 187, 0, .3); }
.rank-KING     { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(245, 71, 75, .3); }
.rank-S_KNIGHT { background: var(--success-soft); color: var(--success); border-color: rgba(55, 184, 128, .3); }
.rank-S_BOSS   { background: var(--accent-soft);  color: var(--accent);  border-color: var(--line-strong); }
.rank-S_KING   { background: var(--grad-accent);  color: var(--accent-ink); border-color: transparent; }

@media (max-width: 560px) {
    .tile-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
    .tile-img { width: 56px; height: 56px; }
    .list-head h1 { font-size: var(--fs-xl); }
}
/* ==========================================================================
   Harita detayi (map.php)
   ========================================================================== */

.map-figure {
    display: flex;
    justify-content: center;
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: var(--sp-3);
    min-height: 120px;
}
.map-figure img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xs);
}
.map-figure img.broken { display: none; }
.map-figure:has(img.broken)::after {
    content: 'Harita görseli bulunamadı';
    color: var(--text-faint);
    font-size: var(--fs-sm);
    align-self: center;
}

/* --------------------------------------------------------------------------
   Dogus isaretleri (map.php)
   Isaretler yuzde konumla yerlestigi icin kutunun gorsel ile tam ayni olmasi
   sart: bu yuzden isaretli halde ic bosluk sifirlaniyor ve gorsel blok olup
   kutuyu tamamen dolduruyor.
   -------------------------------------------------------------------------- */
.map-figure.has-pins {
    display: block;
    position: relative;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}
.map-figure.has-pins img { width: 100%; display: block; border-radius: var(--radius-sm); }

.map-pin {
    position: absolute;
    width: 11px;
    height: 11px;
    margin: -6px 0 0 -6px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(0, 0, 0, .55);
    background: var(--text-dim);
    cursor: pointer;
    transition: transform var(--dur) var(--ease);
    z-index: 1;
}
.map-pin:hover, .map-pin:focus-visible { transform: scale(1.6); z-index: 9; }
.map-pin[hidden] { display: none; }

/* Tur renkleri: metin ve boss one ciksin, siradan canavarlar geride kalsin. */
/* z-index turden geliyor: boss ve metin, siradan canavar yiginin ustunde
   kalsin. DOM sirasina birakilamaz, sorgu bosslari basa aliyor. */
.pin-regen { background: var(--info);    opacity: .55; z-index: 1; }
.pin-npc   { background: var(--success); opacity: .7;  z-index: 2; }
.pin-stone { background: var(--accent);  width: 13px; height: 13px; margin: -7px 0 0 -7px; z-index: 3; }
.pin-boss  {
    background: var(--danger);
    width: 15px;
    height: 15px;
    margin: -8px 0 0 -8px;
    box-shadow: 0 0 0 3px var(--danger-soft);
    z-index: 4;
}

.pin-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    display: none;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: var(--radius-xs);
    background: var(--bg-elev);
    border: 1px solid var(--line-strong);
    color: var(--text-dim);
    font-size: var(--fs-xs);
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
    pointer-events: none;
}
.pin-tip b { display: block; color: var(--text); font-weight: 600; }
.map-pin:hover .pin-tip, .map-pin:focus-visible .pin-tip { display: block; }

/* Filtre dugmesindeki sayac. */
.fb-n { opacity: .6; font-variant-numeric: tabular-nums; }

/* Panel altindaki kisa aciklama satiri. */
.form-note {
    margin: var(--sp-3) 0 0;
    color: var(--text-faint);
    font-size: var(--fs-xs);
    line-height: 1.6;
}

.tile-boss { border-color: var(--line-strong); background: var(--accent-soft); }
.tile-boss:hover { background: var(--accent-2-soft); }

/* ==========================================================================
   NPC magazalari (shops.php)
   ========================================================================== */

.tile-grid-shop { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

button.tile {
    font: inherit;
    cursor: pointer;
    text-align: center;
    appearance: none;
}
button.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(3px);
    z-index: 2000;
    opacity: 0;
    transition: opacity var(--dur) var(--ease);
}
.shop-overlay.open { opacity: 1; }

.shop-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.96);
    width: 540px;
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2001;
    opacity: 0;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.shop-panel.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--line-soft);
    flex-shrink: 0;
}
.sp-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--accent-2);
}
.sp-close {
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 26px;
    line-height: 1;
    padding: 2px 8px;
    cursor: pointer;
    border-radius: var(--radius-xs);
}
.sp-close:hover { color: var(--text); background: var(--surface-hover); }

.sp-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4) var(--sp-5);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: var(--sp-2);
    align-content: start;
}
.sp-items::-webkit-scrollbar { width: 5px; }
.sp-items::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.sp-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 6px;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sp-item:hover { background: var(--surface-hover); border-color: var(--line-strong); z-index: 10; }
.sp-item img { width: 36px; height: 36px; object-fit: contain; }

.sp-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
    z-index: 20;
    box-shadow: var(--shadow);
}
.sp-item:hover .sp-tooltip,
.sp-item:focus-visible .sp-tooltip { display: block; }
.sp-tooltip .tt-name { display: block; color: var(--text); font-size: var(--fs-xs); }
.sp-tooltip .tt-gold { display: block; color: var(--accent-2); font-size: var(--fs-xs); font-weight: 600; }
.sp-tooltip .tt-qty  { display: block; color: var(--text-faint); font-size: 10px; }

/* ==========================================================================
   Zindan kartlari (dungeons.php)
   ========================================================================== */

.dgn-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-4);
}
.dgn-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-solid);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dgn-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.dgn-card-img {
    display: block;
    width: 100%;
    height: 158px;
    background: var(--bg-elev);
    background-image: repeating-linear-gradient(45deg,
        rgba(255, 255, 255, .035) 0 10px, transparent 10px 20px);
    overflow: hidden;
}
.dgn-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgn-card-img img.broken { display: none; }

.dgn-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-4);
    flex: 1;
}
.dgn-card-name {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--accent-2);
}
.dgn-card-desc {
    color: var(--text-faint);
    font-size: var(--fs-sm);
    line-height: 1.5;
}
.dgn-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: auto;
    padding-top: var(--sp-2);
}

@media (max-width: 560px) {
    .shop-panel { width: 95vw; max-height: 88vh; }
    .sp-items { padding: var(--sp-3); }
}
/* ==========================================================================
   Iksir karisimlari (blends.php)
   ========================================================================== */

.blend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-4);
}
.blend-card {
    background: var(--surface-solid);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease);
}
.blend-card:hover { border-color: var(--line-strong); }

.blend-head {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
}
.blend-head .ico { flex-shrink: 0; }
.blend-head a {
    color: var(--text);
    text-decoration: none;
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: 1.3;
}
.blend-head a:hover { color: var(--accent-2); }

.blend-apply {
    display: inline-block;
    margin: 0 var(--sp-4) var(--sp-3);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    border: 1px solid var(--line-strong);
    color: var(--accent-bright);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.blend-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.blend-table thead th {
    background: var(--bg-elev);
    color: var(--accent-2);
    padding: 7px 14px;
    text-align: left;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-top: 1px solid var(--line-soft);
}
.blend-table tbody td {
    padding: 7px 14px;
    color: var(--text-dim);
    border-top: 1px solid var(--line-soft);
    font-variant-numeric: tabular-nums;
}
.blend-table tbody tr:hover td { background: var(--surface); }

/* ==========================================================================
   Efsun deger tablosu (efsun.php) -- .blend-table govdesini kullaniyor
   ========================================================================== */

.efsun-table { font-size: var(--fs-md); }
/* Efsun adi uzun; kademe sutunlari dar ve sagda hizali kalsin. */
.efsun-table .ef-name { color: var(--text); font-weight: 600; white-space: nowrap; }
.efsun-table tbody td:not(.ef-name) { text-align: right; white-space: nowrap; }
.efsun-table thead th:not(:first-child) { text-align: right; }
/* Kademesi olmayan sutun: cizgi okunusu bozmasin diye soluk. */
.efsun-table .ef-none { color: var(--text-faint); }
.efsun-table tbody td:last-child,
.efsun-table thead th:last-child { text-align: left; width: 1%; }

.ef-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
}
.ef-farm { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.ef-vs   { background: var(--danger-soft);  border-color: var(--danger);  color: var(--danger); }
.ef-both { background: var(--info-soft);    border-color: var(--info);    color: var(--info); }

@media (max-width: 640px) {
    .efsun-table { font-size: var(--fs-sm); }
    .efsun-table .ef-name { white-space: normal; min-width: 130px; }
}

/* ==========================================================================
   Zindan detayi (dungeon.php)
   ========================================================================== */

.dgn-hero {
    position: relative;
    isolation: isolate;
    margin: 0 0 var(--sp-5);
    padding: var(--sp-7) var(--sp-5);
    text-align: center;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elev);
}
.dgn-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) brightness(.32);
    transform: scale(1.08);
    z-index: -2;
}
.dgn-hero.has-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 4, 7, .35) 0%, rgba(3, 4, 7, .92) 100%);
    z-index: -1;
}
.dgn-hero h1 {
    margin: 0 0 var(--sp-2);
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    color: var(--text);
    letter-spacing: -.6px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .8);
}
.dgn-hero-sub {
    margin: 0 auto;
    max-width: 62ch;
    color: var(--text-dim);
    font-size: var(--fs-md);
    line-height: 1.6;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}
.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-4) var(--sp-3);
    background: var(--surface-solid);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    text-align: center;
}
.ic-label {
    color: var(--text-faint);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ic-value {
    color: var(--accent-2);
    font-size: var(--fs-lg);
    font-weight: 700;
}
.ic-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    text-decoration: none;
}
.ic-link:hover { color: var(--accent-bright); }

.req-text {
    margin: 0;
    color: var(--text-dim);
    font-size: var(--fs-md);
    line-height: 1.75;
}

.stage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.stage-card {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    padding: var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    transition: border-color var(--dur) var(--ease);
}
.stage-card:hover { border-color: var(--line-strong); }
.stage-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--line-strong);
    color: var(--accent-bright);
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 700;
}
.stage-body { display: flex; flex-direction: column; gap: var(--sp-1); }
.stage-title { color: var(--text); font-size: var(--fs-md); font-weight: 600; }
.stage-desc  { color: var(--text-dim); font-size: var(--fs-sm); line-height: 1.65; }

.boss-card {
    display: flex;
    gap: var(--sp-5);
    align-items: center;
    padding: var(--sp-4);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
}
.boss-card img { max-width: 120px; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.boss-info { display: flex; flex-direction: column; gap: var(--sp-2); }
.boss-name {
    color: var(--accent-2);
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    font-weight: 700;
    text-decoration: none;
}
.boss-name:hover { color: var(--accent-bright); }

@media (max-width: 600px) {
    .boss-card { flex-direction: column; text-align: center; }
    .info-cards { grid-template-columns: repeat(2, 1fr); }
    .dgn-hero { padding: var(--sp-6) var(--sp-4); }
    .dgn-hero h1 { font-size: var(--fs-2xl); }
}
/* ==========================================================================
   Cube tarifleri (craft.php)
   ========================================================================== */

.craft-layout {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    min-height: 70vh;
}

.craft-nav {
    width: 232px;
    flex-shrink: 0;
    position: sticky;
    top: var(--nav-h);
    align-self: flex-start;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: var(--sp-5) 0;
    background: var(--surface);
    border-right: 1px solid var(--line-soft);
}
.craft-nav::-webkit-scrollbar { width: 4px; }
.craft-nav::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 2px; }

.nav-npc + .nav-npc { border-top: 1px solid var(--line-soft); margin-top: var(--sp-2); padding-top: var(--sp-2); }

.nav-npc-title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    width: 100%;
    padding: 10px var(--sp-4);
    background: none;
    border: none;
    color: var(--accent-2);
    font: 600 var(--fs-sm) / 1.3 var(--font-ui);
    letter-spacing: .3px;
    text-align: left;
    cursor: pointer;
}
.nav-npc-title:hover { color: var(--text); }
.nav-npc-title .arrow { font-size: 8px; color: var(--accent-dim); transition: transform var(--dur) var(--ease); }
.nav-npc.open .nav-npc-title .arrow { transform: rotate(90deg); }

.nav-cats { display: none; padding-bottom: var(--sp-1); }
.nav-npc.open .nav-cats { display: block; }

.nav-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    width: 100%;
    padding: 6px var(--sp-4) 6px 30px;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    color: var(--text-dim);
    font: 400 var(--fs-xs) / 1.4 var(--font-ui);
    text-align: left;
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-cat:hover { color: var(--text); }
.nav-cat.active { color: var(--accent-2); border-left-color: var(--accent-2); background: var(--accent-soft); }
.nav-cat.all { font-weight: 600; color: var(--accent-dim); }
.nav-cat.all.active { color: var(--accent-2); }
.cat-cnt { color: var(--text-faint); font-size: 10px; font-variant-numeric: tabular-nums; }

.craft-main {
    flex: 1;
    min-width: 0;
    padding: var(--sp-5) var(--sp-5) var(--sp-8);
}

.craft-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-3);
    flex-wrap: wrap;
    margin-bottom: var(--sp-5);
}
.craft-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--text);
    letter-spacing: -.4px;
}
.craft-subtitle { color: var(--text-faint); font-size: var(--fs-xs); }
.craft-search { width: 240px; margin: 0; }

.npc-block { display: none; }
.npc-block.active { display: block; }

.cat-header {
    margin: var(--sp-5) 0 var(--sp-3);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-faint);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cat-section:first-of-type .cat-header { margin-top: 0; }

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--sp-3);
}
.recipe-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--surface-solid);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.recipe-card:hover { background: var(--surface-hover); border-color: var(--line-strong); }
/* Kartin bosluguna tiklamak kup penceresini aciyor; imlec bunu belli etsin. */
.recipe-card { cursor: pointer; }
.recipe-card a, .recipe-card button { cursor: pointer; }

.rc-product {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--line-soft);
}
.rc-product-info { flex: 1; min-width: 0; }
.rc-product-info a {
    display: block;
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-product-info a:hover { color: var(--accent-2); }
.rc-qty { color: var(--text-faint); font-size: 10px; }

.rc-mats { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.rc-mat { display: flex; align-items: center; gap: 6px; padding: 2px 0; text-decoration: none; }
.rc-mat:hover .rc-mat-name { color: var(--accent-2); }
.rc-mat-name {
    flex: 1;
    min-width: 0;
    color: var(--text-dim);
    font-size: var(--fs-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rc-mat-qty { flex-shrink: 0; color: var(--accent-dim); font-size: 10px; font-weight: 600; }

.rc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line-soft);
}
.rc-gold { color: var(--accent-2); font-size: var(--fs-xs); font-weight: 600; }
.rc-pct { font-size: var(--fs-xs); font-weight: 700; }
.rc-pct.hi { color: var(--success); }
.rc-pct.md { color: var(--warning); }
.rc-pct.lo { color: var(--danger); }

@media (max-width: 900px) {
    .craft-layout { flex-direction: column; }
    .craft-nav {
        width: 100%;
        position: static;
        max-height: none;
        padding: var(--sp-3) var(--sp-4);
        border-right: none;
        border-bottom: 1px solid var(--line-soft);
    }
    .craft-main { padding: var(--sp-4); }
    .craft-search { width: 100%; }
}

/* ==========================================================================
   Savas Bileti (battlepass.php)
   ========================================================================== */

/* Ust tanitim seridi */
.bp-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--sp-5);
    padding: var(--sp-6);
    background:
        radial-gradient(120% 160% at 100% 0%, var(--accent-soft), transparent 60%),
        linear-gradient(140deg, var(--bg-elev), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.bp-hero::after {
    /* Sag ustte solan altin hale; sadece dekor. */
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(60px);
    pointer-events: none;
}
.bp-hero > * { position: relative; z-index: 1; }
.bp-kicker {
    display: inline-block;
    margin-bottom: var(--sp-2);
    padding: 3px 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line, var(--line));
    border-radius: var(--radius-pill);
    color: var(--accent-bright);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.bp-hero h1 { margin: 0 0 var(--sp-2); }
.bp-hero p { max-width: 56ch; margin: 0; color: var(--text-dim); font-size: var(--fs-sm); }
.bp-hero-stats { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-5); }
.bp-hs { display: flex; flex-direction: column; gap: 2px; }
.bp-hs b {
    color: var(--accent-bright);
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.bp-hs span { color: var(--text-faint); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; }

/* Arac cubugu: tip sekmeleri + arama */
.bp-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}
.bp-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); flex: 1 1 auto; min-width: 0; }
.bp-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 7px var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    color: var(--text-dim);
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bp-tab:hover { border-color: var(--accent); color: var(--accent-2); }
.bp-tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-bright); }
.bp-tab i {
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--bg-deep);
    color: var(--text-faint);
    font-size: var(--fs-xs);
    font-style: normal;
    font-variant-numeric: tabular-nums;
}
.bp-tab.on i { color: var(--accent-bright); }
.bp-search input[type="search"] {
    width: 240px;
    max-width: 100%;
    padding: 8px var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-pill);
    color: var(--text);
    font-family: inherit;
    font-size: var(--fs-sm);
}
.bp-search input[type="search"]:focus { outline: none; border-color: var(--accent); }

/* Gorev kartlari */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-4);
}
.bp-card {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--bg-elev);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.bp-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.bp-card-top { display: flex; align-items: center; gap: var(--sp-3); }
.bp-num {
    flex: 0 0 auto;
    min-width: 26px;
    color: var(--text-faint);
    font-size: var(--fs-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.bp-name { margin: 0; color: var(--text); font-size: var(--fs-md); font-weight: 600; line-height: 1.35; }

.bp-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    text-decoration: none;
    min-width: 0;
}
a.bp-row:hover { border-color: var(--accent); color: var(--accent-2); }
.bp-row img { flex: 0 0 auto; object-fit: contain; }
.bp-row-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-row-v { flex: 0 0 auto; color: var(--accent-2); font-weight: 600; font-variant-numeric: tabular-nums; }

.bp-rewards { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); border-top: 1px dashed var(--line-soft); }
.bp-rw {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--accent-2-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-xs);
    color: var(--accent-2);
    font-size: var(--fs-xs);
}
.bp-rw img { object-fit: contain; }
.bp-rw.bonus { background: var(--info-soft); color: var(--info); }
.bp-empty { padding: var(--sp-6); color: var(--text-faint); text-align: center; }

@media (max-width: 560px) {
    .bp-hero { padding: var(--sp-5); }
    .bp-hero-stats { gap: var(--sp-4); }
    .bp-search input[type="search"] { width: 100%; }
    .bp-search { flex: 1 1 100%; }
}

.bp-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
}
.bp-type-kill    { background: var(--danger-soft);  color: var(--danger); }
.bp-type-destroy { background: var(--warning-soft); color: var(--warning); }
.bp-type-time    { background: var(--info-soft);    color: var(--info); }
.bp-type-shop    { background: var(--success-soft); color: var(--success); }

/* Refine tablosu ek satirlari (refine.php) */
.rt-step { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.rt-mats { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.rt-mat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    color: var(--text-dim);
    font-size: var(--fs-xs);
    text-decoration: none;
}
.rt-mat:hover { border-color: var(--line-strong); color: var(--accent-2); }
.rt-mat-qty { color: var(--accent-dim); font-weight: 600; }
/* --------------------------------------------------------------------------
   Liste sayfalarinin kisa aciklama satiri
   -------------------------------------------------------------------------- */
.page-intro {
    max-width: 74ch;
    margin: calc(var(--sp-3) * -1) 0 var(--sp-5);
    color: var(--text-faint);
    font-size: var(--fs-sm);
    line-height: 1.7;
}
/* --------------------------------------------------------------------------
   Degisiklik gunlugu zaman cizgisi (changelog.php)
   Sol kenarda ince bir cizgi, her kaydin hizasinda kucuk bir nokta.
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 var(--sp-5);
}
.timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-2-soft), transparent);
}
.timeline-item {
    position: relative;
    padding: 0 0 var(--sp-5);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    top: 7px;
    left: calc(var(--sp-5) * -1 + 1px);
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.timeline-top {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}
.timeline-date {
    font-size: var(--fs-xs);
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}
.timeline-title {
    margin: 6px 0 0;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    color: var(--text);
}
.timeline-body {
    margin: 6px 0 0;
    max-width: 74ch;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* ==========================================================================
   ANA SAYFA -- uc kolonlu portal duzeni
   Sol: sinif kartlari | Orta: banner + buyuk kartlar + hizli erisim
   Sag: sosyal baglantilar + icerik kartlari
   Eski tek kolonlu hero duzeninin yerini aldi; .home-hero / .hub-grid gibi
   siniflar hala baska sayfalarda kullanildigi icin duruyor.
   ========================================================================== */
.hm-wrap { max-width: var(--content-max); margin: 0 auto; padding: var(--sp-5); }
.hm-cols {
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr) 258px;
    gap: var(--sp-4);
    align-items: start;
}

/* --- Sol: sinif kartlari -------------------------------------------------- */
.hm-class {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--sp-3);
    min-height: 158px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    transition: border-color var(--dur) var(--ease);
}
.hm-class:hover { border-color: var(--line-strong); }
.hm-class-art {
    /* Sinif rengi: portre gelene kadar zeminde duran renk katmani. */
    position: absolute;
    inset: 0 0 0 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
    mask-image: linear-gradient(90deg, transparent, #000 45%);
}
/* Portreler geldi: gradient altta duruyor, resim yuklenmezse kart bos gorunmesin. */
.hm-class[data-class="warrior"] .hm-class-art { background: url("../img/class-warrior.png") right center / cover no-repeat, radial-gradient(120% 80% at 70% 20%, #7a4a2a, #2a1a10); }
.hm-class[data-class="ninja"]   .hm-class-art { background: url("../img/class-ninja.png")   right center / cover no-repeat, radial-gradient(120% 80% at 70% 20%, #4a5a3a, #182014); }
.hm-class[data-class="sura"]    .hm-class-art { background: url("../img/class-sura.png")    right center / cover no-repeat, radial-gradient(120% 80% at 70% 20%, #5a3050, #20101c); }
.hm-class[data-class="shaman"]  .hm-class-art { background: url("../img/class-shaman.png")  right center / cover no-repeat, radial-gradient(120% 80% at 70% 20%, #2f5a66, #101e22); }
.hm-class-face {
    position: absolute;
    right: var(--sp-3);
    top: var(--sp-3);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    box-shadow: 0 6px 18px -6px #000;
}
.hm-class-in { position: relative; padding: var(--sp-3) var(--sp-4); }
.hm-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.hm-class-name {
    margin: 2px 0 var(--sp-3);
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--accent-bright);
}
.hm-class-links { display: flex; flex-direction: column; gap: 4px; width: 96px; margin-left: -6px; }
.hm-class-links a {
    display: block;
    padding: 4px 8px;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: rgba(10, 7, 5, .62);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hm-class-links a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* --- Orta: banner --------------------------------------------------------- */
.hm-banner {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    margin-bottom: var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background:
        radial-gradient(600px 280px at 78% 30%, rgba(232, 188, 106, .16), transparent 60%),
        linear-gradient(115deg, #12100f 0%, #0d1418 55%, #0a0f14 100%);
}
.hm-slide {
    display: none;
    align-items: center;
    min-height: 158px;
    padding: var(--sp-5) var(--sp-7);
    text-decoration: none;
}
.hm-slide.on { display: flex; }
.hm-slide h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--accent-bright);
}
.hm-slide p { margin: 0; max-width: 42ch; font-size: var(--fs-sm); line-height: 1.65; color: var(--text-dim); }
.hm-go { font-size: 11px; letter-spacing: .16em; color: var(--accent); }
.hm-slide .hm-go { position: absolute; right: var(--sp-7); bottom: var(--sp-4); }
.hm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    background: rgba(10, 7, 5, .55);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}
.hm-arrow:hover { color: var(--accent); border-color: var(--accent); }
.hm-prev { left: 10px; }
.hm-next { right: 10px; }
.hm-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; }
.hm-dots button {
    width: 6px; height: 6px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--line-strong);
    cursor: pointer;
}
.hm-dots button.on { background: var(--accent); }

/* --- Orta: uc buyuk kart -------------------------------------------------- */
.hm-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.hm-big {
    position: relative;
    overflow: hidden;
    min-height: 268px;
    /* .hm-big-art yuksekligiyle birebir: metin akisi resmin bittigi yerde basliyor. */
    padding-top: 168px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hm-big:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Gorsel alani sabit yukseklikte ve kartin ust padding'i tam bu kadar: boylece
   metin ne kadar uzarsa uzasin resmin uzerine binemez, kart asagi dogru buyur. */
.hm-big-art {
    position: absolute;
    inset: 0 0 auto 0;
    height: 168px;
    background: #0f0b07;
    border-bottom: 1px solid var(--line-soft);
}
/* Gorsel <img> olarak basiliyor: dosya yoksa onerror ile siliniyor ve
   arkada duz zemin kaliyor -- kirik resim ikonu cikmiyor. */
.hm-big-art img,
.hm-side-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Tasarimdan gelen gorseller kutunun olculerine gore hazirlandi, contain
   birakildiginda kenarlarda bos zemin kaliyordu. Mob gorselleri degisken
   oranli oldugu icin onlar contain kalmaya devam ediyor. */
.hm-big-art img.hm-art-fill,
.hm-side-art img.hm-art-fill { object-fit: cover; }
.hm-big-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(13, 9, 6, .92));
}
.hm-big-in { position: relative; padding: var(--sp-4); }
.hm-big-in h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--accent-bright); }
.hm-big-in p { margin: 0 0 var(--sp-4); font-size: var(--fs-xs); line-height: 1.6; color: var(--text-dim); }
.hm-count {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    padding: 3px 9px;
    font-size: var(--fs-xs);
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    background: rgba(10, 7, 5, .7);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

/* --- Orta: sayac seridi --------------------------------------------------- */
.hm-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.hm-stat {
    padding: var(--sp-3) var(--sp-4);
    text-align: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease);
}
.hm-stat:hover { border-color: var(--accent); }
.hm-stat b {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--accent-bright);
    font-variant-numeric: tabular-nums;
}
.hm-stat span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }

/* --- Orta: hizli erisim --------------------------------------------------- */
.hm-quick {
    overflow: hidden;
    margin-bottom: var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.hm-quick-head {
    padding: var(--sp-4);
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(232, 188, 106, .07), transparent);
}
.hm-quick-head h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-bright);
}
.hm-quick-head p { margin: 0; font-size: var(--fs-xs); color: var(--text-faint); }
.hm-quick-grid { display: grid; grid-template-columns: 1fr 1fr; }
.hm-quick-grid a {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 11px var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--text-dim);
    text-decoration: none;
    border-top: 1px solid var(--line-soft);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hm-quick-grid a:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.hm-quick-grid a:hover { background: var(--surface-hover); color: var(--accent); }
.hm-qi {
    flex: none;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    border-radius: var(--radius-xs);
    color: var(--accent);
}
.hm-qn { flex: 1; }
.hm-qc { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* --- Sag kolon ------------------------------------------------------------ */
.hm-social { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.hm-social a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    font-size: var(--fs-xs);
    color: var(--text-dim);
    text-decoration: none;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.hm-social a:hover { color: var(--accent); border-color: var(--accent); }
.hm-social .hm-ic {
    flex: none;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.hm-social .hm-ic svg { display: block; }
/* Uzerine gelince agin kendi rengi cikiyor: dort baglanti birbirinden
   ayirt edilebilir olsun. */
.hm-social a:hover .hm-ic { background: var(--accent); color: var(--accent-ink); }
.hm-so-facebook:hover  .hm-ic { background: #1877f2; color: #fff; }
.hm-so-instagram:hover .hm-ic { background: #d6249f; color: #fff; }
.hm-so-whatsapp:hover  .hm-ic { background: #25d366; color: #fff; }
.hm-so-discord:hover   .hm-ic { background: #5865f2; color: #fff; }
.hm-side {
    display: block;
    overflow: hidden;
    margin-bottom: var(--sp-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    text-decoration: none;
    transition: border-color var(--dur) var(--ease);
}
.hm-side:hover { border-color: var(--accent); }
.hm-side-in { padding: var(--sp-3) var(--sp-4); text-align: center; }
.hm-side-in h4 {
    margin: 0 0 3px;
    font-family: var(--font-display);
    font-size: var(--fs-md);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-bright);
}
.hm-side-in p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--text-faint); }
.hm-side-art {
    height: 104px;
    background: #0f0b07;
    border-top: 1px solid var(--line-soft);
}
.hm-side-list { border-top: 1px solid var(--line-soft); }
.hm-side-list a {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 8px var(--sp-3);
    font-size: var(--fs-xs);
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid var(--line-soft);
}
.hm-side-list a:last-child { border-bottom: 0; }
.hm-side-list a:hover { background: var(--surface-hover); color: var(--accent); }
.hm-side-list .hm-qn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
    .hm-cols { grid-template-columns: 220px minmax(0, 1fr); }
    .hm-right { grid-column: 1 / -1; }
    .hm-social { grid-template-columns: repeat(4, 1fr); }
    .hm-sides { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-3); }
    .hm-side { margin-bottom: 0; }
}
@media (max-width: 760px) {
    .hm-wrap { padding: var(--sp-4); }
    .hm-cols { grid-template-columns: 1fr; }
    .hm-trio { grid-template-columns: 1fr; }
    .hm-stats { grid-template-columns: repeat(2, 1fr); }
    .hm-big { min-height: 230px; }
    .hm-quick-grid { grid-template-columns: 1fr; }
    .hm-quick-grid a:nth-child(odd) { border-right: 0; }
}
/* ==========================================================================
   CUBE PENCERESİ
   Oyun istemcisindeki cuberenewalwindow.py düzeninin birebir karşılığı.
   Arka plan cube.tga'nın PNG'ye çevrilmiş hâli (655x353); üzerindeki tüm
   kutular o görselin piksel koordinatlarına oturuyor, bu yüzden ölçek
   değiştirmek yerine tüm pencere transform ile küçültülüyor. Yüzdeye
   çevirmek ikonları da esnetir ve hizayı bozardı.
   ========================================================================== */
.cube-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: var(--sp-4);
    background: rgba(6, 4, 3, .78);
    backdrop-filter: blur(3px);
}
.cube-overlay[hidden] { display: none; }

/* Sayfaya gomulu kup (item.php "Cube ile Uretim"). Ayni .cube-win govdesi,
   karartma yok; genislik JS ile kapsayiciya sigdiriliyor. */
.cube-inline {
    width: 100%;
    margin-bottom: var(--sp-4);
    /* Olcek JS gelene kadar 675px'lik pencere paneli tasmasin. */
    overflow: hidden;
}
.cube-inline .cube-win { box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.cube-inline + .cube-src { margin-top: var(--sp-4); }

/* Olcek sarmalayici: .cube-win kendi 675x400 boyutunu korur, kapsayici da
   olceklenmis boyutu kaplasin diye genislik/yukseklik ayri hesaplaniyor. */
.cube-fit {
    width: calc(675px * var(--cs, 1));
    height: calc(400px * var(--cs, 1));
}
.cube-win {
    position: relative;
    width: 675px;
    height: 400px;
    transform: scale(var(--cs, 1));
    transform-origin: top left;
    background: linear-gradient(180deg, #17110b 0%, #0e0a07 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}
.cube-title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    height: 26px;
    padding: 0 8px 0 12px;
    border-bottom: 1px solid var(--line);
    color: var(--accent-2);
    font-family: var(--font-display);
    font-size: var(--fs-xs);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.cube-title .ct-sub {
    color: var(--text-faint);
    font-family: var(--font-ui);
    letter-spacing: 0;
    text-transform: none;
}
.cube-close {
    margin-left: auto;
    width: 20px; height: 20px;
    padding: 0;
    display: grid; place-items: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px; line-height: 1;
}
.cube-close:hover { color: var(--danger); border-color: var(--danger); }

/* Tahta: cube.tga. left/top degerleri uiscript'teki x=10, y=30 ile ayni. */
.cw-board {
    position: absolute;
    left: 10px;
    top: 30px;
    width: 655px;
    height: 353px;
    background: url('../img/cube-bg.png') no-repeat 0 0;
    image-rendering: pixelated;
}

/* --- Sol taraf: tarif listesi --------------------------------------------- */
.cw-list {
    position: absolute;
    left: 6px; top: 6px;
    width: 306px; height: 341px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2px;
}
.cw-list::-webkit-scrollbar { width: 5px; }
.cw-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.cw-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 3px 5px;
    margin: 0 0 2px;
    background: rgba(255, 255, 255, .012);
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}
.cw-row:hover { background: rgba(198, 158, 78, .10); border-color: var(--line); color: var(--text); }
.cw-row.on { background: var(--accent-2-soft); border-color: var(--accent-dim); color: var(--accent-2); }
.cw-row img { width: 22px; height: 22px; flex-shrink: 0; image-rendering: pixelated; }
.cw-row .cw-row-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-row .cw-row-p { flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--text-faint); }

/* --- Slotlar -------------------------------------------------------------- */
.cw-slot {
    position: absolute;
    display: grid;
    place-items: center;
    text-decoration: none;
}
.cw-slot img { image-rendering: pixelated; }
/* Dolu slotun uzerine gelince altin bir parlama; bos slot tepki vermiyor. */
.cw-slot.filled { border-radius: 5px; transition: box-shadow var(--dur) var(--ease); }
.cw-slot.filled:hover { box-shadow: 0 0 0 1px var(--accent), 0 0 12px var(--accent-glow); }
.cw-slot .cw-cnt {
    position: absolute;
    right: 1px; bottom: 0;
    padding: 0 2px;
    background: rgba(0, 0, 0, .72);
    border-radius: 3px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 13px;
}

/* Sutun altindaki miktar seridi (oyunda material_qty_text_N). */
/* Serit dar: uzun malzeme adlari uc nokta ile kesilsin diye grid degil blok
   (grid + overflow:hidden ellipsis vermiyor). */
.cw-qty {
    position: absolute;
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    line-height: 18px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 2px;
}

/* Yang seridi ve basari orani. */
/* Resimdeki siyah kutunun ici. Tek satir: tasarsa kutunun disina cikiyordu. */
.cw-yang {
    position: absolute;
    display: block;
    padding: 0 4px;
    color: var(--accent-2);
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cw-pct {
    position: absolute;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}
.cw-pct.hi { color: var(--success); }
.cw-pct.md { color: var(--warning); }
.cw-pct.lo { color: var(--danger); }

/* Oyundaki onay/iptal dugmelerinin durdugu yer. */
.cw-btn {
    position: absolute;
    display: grid;
    place-items: center;
    padding: 0;
    background: linear-gradient(180deg, #241a11, #150f0a);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    color: var(--text-dim);
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}
.cw-btn:hover { color: var(--accent-2); border-color: var(--accent-dim); }
.cw-btn.primary { color: var(--accent-2); border-color: var(--accent-dim); }

/* Kartlardaki "cube arayüzünde aç" düğmesi. */
.rc-open {
    margin-left: auto;
    padding: 2px 7px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--text-faint);
    font-size: 10px;
    cursor: pointer;
}
.rc-open:hover { color: var(--accent-2); border-color: var(--accent-dim); }

@media (max-width: 720px) {
    .cube-overlay { padding: var(--sp-2); }
}

/* ==========================================================================
   HASAR HESAPLAYICI (calc.php)
   ========================================================================== */
.calc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--sp-4);
    align-items: start;
}
.calc-col { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }

/* Sonuç paneli uzun formda kaydırılırken görünür kalsın. */
.calc-out { position: sticky; top: var(--sp-4); }

.calc-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--sp-3);
}
.calc-fields label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-dim);
    font-size: var(--fs-xs);
}
.calc-fields input,
.calc-fields select {
    width: 100%;
    padding: 7px 9px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-sm);
}
.calc-fields input:focus,
.calc-fields select:focus { outline: none; border-color: var(--accent-dim); }

/* Seçilmiş silah / hedef kartı. */
.calc-pick {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
    padding: var(--sp-3);
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
}
.calc-pick > div { flex: 1; min-width: 0; }
.calc-pick a { color: var(--text); font-weight: 600; text-decoration: none; }
.calc-pick a:hover { color: var(--accent-2); }
.calc-pick img { image-rendering: pixelated; }

.calc-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--sp-4) 0 var(--sp-5);
    margin-bottom: var(--sp-3);
    border-bottom: 1px solid var(--line-soft);
}
.cb-n {
    color: var(--accent-2);
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    line-height: 1;
}
.cb-c { color: var(--text-faint); font-size: var(--fs-xs); }

/* admin.css yalnızca panelde yükleniyor; ön yüz için burada da tanımlı. */
.form-hint { font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--sp-1); }

@media (max-width: 900px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-out { position: static; }
}

/* ==========================================================================
   ÇOK KRİTERLİ FİLTRE ÇUBU�?U (items.php / mobs.php)
   .search-bar'ın metin kutusu esneyip tüm satırı kaplıyor; seviye ve
   sıralama alanları kendi genişliklerinde kalsın diye ayrı sınıf.
   ========================================================================== */
.search-bar.wrap { align-items: stretch; }
.search-bar.wrap > input[type="search"] { flex: 1 1 220px; min-width: 180px; }

.mini-field {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0 10px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    color: var(--text-faint);
    font-size: var(--fs-xs);
    white-space: nowrap;
}
.mini-field input,
.search-bar.wrap .mini-field input {
    flex: 0 0 auto;
    width: 58px;
    min-width: 0;
    padding: 6px 4px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
    text-align: center;
}
.mini-field select {
    max-width: 190px;
    padding: 6px 4px;
    background: transparent;
    border: 0;
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-xs);
}
.mini-field select option { background: var(--surface-solid); color: var(--text); }
.mini-field input:focus,
.mini-field select:focus { outline: none; color: var(--accent-2); }
.mini-field:focus-within { border-color: var(--accent-dim); }

@media (max-width: 620px) {
    .mini-field { flex: 1 1 100%; justify-content: space-between; }
    .mini-field select { max-width: none; flex: 1; }
}

/* --- Baglanti kopyalama dugmesi -------------------------------------
   Kopyalama basarili oldugunda dugme kisa sure yesile donuyor; metin
   JS tarafinda degisiyor, burada yalniz renk var. */
.btn.copied {
    border-color: var(--success);
    color: var(--success);
    background: var(--success-soft);
}


/* --- Sik sorulan sorular (SSS) --------------------------------------
   <details>/<summary> ile aciliyor: JS yok, arama motoru icerigi yine de
   okuyor (kapali details'in metni sayfada mevcut). Yapisal veri FAQPage
   olarak header.php'de ayrica basiliyor. */
.faq-block {
    margin: var(--sp-5) 0;
}

.faq-block > h2 {
    margin: 0 0 var(--sp-3);
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    color: var(--text);
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: var(--sp-2);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease);
}

.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--accent-dim); background: var(--surface-2); }

.faq-item > summary {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: var(--fs-md);
    color: var(--text);
}

/* Tarayicinin varsayilan ucgeni gizleniyor; yerine kendi + isaretimiz. */
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ''; }

.faq-item > summary::after {
    content: '+';
    margin-left: auto;
    flex: none;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    color: var(--accent);
    font-size: var(--fs-md);
    line-height: 1;
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.faq-item[open] > summary::after {
    content: '\2212';   /* eksi */
    border-color: var(--accent-dim);
}

.faq-item > summary:hover { color: var(--accent); }
.faq-item > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.faq-a {
    padding: 0 var(--sp-4) var(--sp-4);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.faq-a p { margin: 0 0 var(--sp-2); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--accent); }
.faq-a strong { color: var(--text); }
.faq-a ul { margin: 0 0 var(--sp-2); padding-left: 1.2em; }

/* --- SSS sayfasindaki kisayol dizisi -------------------------------- */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.quick-links a {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    font-weight: 600;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.quick-links a:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    background: var(--accent-soft);
}
/* ==========================================================================
   Oyun sistemleri (systems.php, system.php)

   Hub kartlari ve detay tablosu. Tablo govdesi .table-wrap icindeki genel
   table kurallarindan geliyor; buradakiler yalnizca sistemlere ozel sutun
   turlerini bicimlendiriyor.
   ========================================================================== */
.sys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}
.sys-card {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color var(--dur) var(--ease),
                background var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}
.sys-card:hover {
    border-color: var(--accent-dim);
    background: var(--surface-hover);
    transform: translateY(-2px);
}
.sys-card-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-soft);
    background: var(--bg-elev);
    font-size: 22px;
    line-height: 1;
}
.sys-card-body { min-width: 0; display: block; }
.sys-card-body strong {
    display: block;
    color: var(--text);
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 3px;
}
.sys-card:hover .sys-card-body strong { color: var(--accent-bright); }
.sys-card-body em {
    display: block;
    font-style: normal;
    color: var(--text-faint);
    font-size: var(--fs-xs);
    line-height: 1.45;
}
.sys-card-count {
    flex: none;
    margin-left: auto;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-soft);
    background: var(--bg-elev);
    color: var(--accent-dim);
    font-size: var(--fs-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sys-crumbs {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
    color: var(--text-faint);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.sys-crumbs a { color: var(--accent-dim); }
.sys-crumbs a:hover { color: var(--accent-bright); }

.sys-h1-icon { font-size: .85em; margin-right: 4px; }

/* Sistemin nasil isledigini anlatan kisa not; tablonun uzerinde duruyor. */
.sys-intro {
    margin-bottom: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--accent-dim);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface);
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.sys-table { font-size: var(--fs-sm); }
.sys-table tbody tr:hover td { background: var(--surface-hover); }
.sys-table tbody td { border-top: 1px solid var(--line-soft); vertical-align: top; }
.sys-table .sys-col-num,
.sys-table .sys-col-level,
.sys-table .sys-col-pct,
.sys-table .sys-col-gold,
.sys-table .sys-col-coin,
.sys-table .sys-col-dur { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Esya ve canavar bagi: ikon + ad tek satirda, tasarsa kirpiliyor. */
.sys-ref {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
    color: var(--text-dim);
}
.sys-ref span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sys-ref b { color: var(--accent-dim); font-weight: 700; }
.sys-ref:hover { color: var(--accent-bright); }
.sys-ref img { flex: none; }
.sys-reflist { display: flex; flex-direction: column; gap: 4px; }

/* Bonus listesi: ad solda, deger sagda; tek sutunda alt alta. */
.sys-bonus { list-style: none; margin: 0; padding: 0; min-width: 180px; }
.sys-bonus li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 2px 0;
    color: var(--text-dim);
}
.sys-bonus li + li { border-top: 1px dashed var(--line-soft); }
.sys-bonus b { color: var(--accent-bright); font-variant-numeric: tabular-nums; }

.sys-lv {
    display: inline-block;
    min-width: 30px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    border: 1px solid var(--line-strong);
    color: var(--accent-bright);
    text-align: center;
    font-weight: 700;
}
.sys-val  { color: var(--accent-bright); }
.sys-gold { color: var(--warning); }
.sys-coin { color: var(--info); }

@media (max-width: 640px) {
    .sys-grid { grid-template-columns: 1fr; }
    .sys-ref { max-width: 160px; }
    .sys-bonus { min-width: 0; }
}

/* Odul tablosundaki oyuncu adi: bag degil, sadece vurgu. */
.sys-player {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-soft);
    background: var(--bg-elev);
    color: var(--accent-2);
    font-weight: 600;
}
