/* ============================================================
   pazarsc REHBER — Monster & NPC arama/listeleme
   ============================================================ */

.rehber-section {
    padding: 30px 6% 60px;
    max-width: 1380px;
    margin: 0 auto;
}

/* ---------- Tab Switch ---------- */
.rehber-tabs {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 18px;
    gap: 2px;
    flex-wrap: wrap;
}
.rehber-tab {
    background: transparent;
    color: var(--text-dim);
    border: none;
    padding: 10px 22px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.rehber-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.rehber-tab.active {
    color: #000;
    background: var(--primary-green);
    box-shadow: 0 0 24px rgba(230,193,74,0.35);
}
.rehber-tab .tab-count {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    min-width: 30px;
    text-align: center;
}
.rehber-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary-green);
}

/* ---------- Toolbar (search + filter) ---------- */
.rehber-toolbar {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.rehber-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}
.rehber-search-wrap > i.fa-magnifying-glass {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 14px;
    pointer-events: none;
}
.rehber-search {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 40px 12px 42px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: 0.2s;
}
.rehber-search:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(230,193,74,0.15);
}
.rehber-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-dim);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}
.rehber-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.rehber-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 12px;
}
.rehber-filters .filter-label {
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}
.filter-sep { color: rgba(255,255,255,0.25); }
.rehber-select {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 700;
    min-width: 70px;
    cursor: pointer;
}
.rehber-select:focus { outline: none; border-color: var(--primary-green); }

/* ---------- Meta (sonuc sayisi) ---------- */
.rehber-meta {
    color: var(--text-dim);
    font-size: 12px;
    margin-bottom: 8px;
    padding-left: 4px;
}
.rehber-meta #result-count {
    color: var(--primary-green);
    font-weight: 800;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Tablo + virtual scroll ---------- */
.rehber-pane { display: none; }
.rehber-pane.active { display: block; }

.rehber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}
.rehber-table thead th {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(230,193,74,0.18);
}

.rehber-vscroll {
    position: relative;
    height: 580px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 10px 10px;
}
.rehber-vscroll::-webkit-scrollbar { width: 10px; }
.rehber-vscroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.rehber-vscroll::-webkit-scrollbar-thumb {
    background: rgba(230,193,74,0.25);
    border-radius: 5px;
}
.rehber-vscroll::-webkit-scrollbar-thumb:hover { background: rgba(230,193,74,0.45); }

.vscroll-spacer { width: 1px; }
.vscroll-rows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.rehber-row {
    display: flex;
    align-items: center;
    padding: 0 14px;
    height: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.1s;
    font-size: 13px;
    color: #e8e8e8;
}
.rehber-row:hover { background: rgba(230,193,74,0.06); }
.rehber-row > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}
.rehber-row .col-id {
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
}
.rehber-row .col-level {
    color: #fbbf24;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 800;
    text-align: right;
    padding-right: 18px !important;
}
.rehber-row .col-level.lv-boss {
    color: #ef4444;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}
.rehber-row .col-name-tr { color: #fff; font-weight: 600; }
.rehber-row .col-name-en {
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
}

.rehber-row mark {
    background: rgba(251, 191, 36, 0.3);
    color: #fef3c7;
    padding: 0 2px;
    border-radius: 2px;
}

/* Empty state */
.rehber-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-dim);
}
.rehber-empty i {
    font-size: 36px;
    color: rgba(230,193,74,0.3);
    margin-bottom: 12px;
    display: block;
}

/* Filter hide pane-bagimli — sadece ilgili tab'da goster */
#filter-lv, #filter-item-type, #filter-icon-only, #filter-skill-class { display: none; }
.rehber-section[data-active-tab="monsters"] #filter-lv { display: inline-flex; }
.rehber-section[data-active-tab="items"] #filter-lv,
.rehber-section[data-active-tab="items"] #filter-item-type,
.rehber-section[data-active-tab="items"] #filter-icon-only { display: inline-flex; }
.rehber-section[data-active-tab="skills"] #filter-skill-class,
.rehber-section[data-active-tab="skills"] #filter-icon-only { display: inline-flex; }

.rehber-select-wide { min-width: 140px; }

/* Toggle (Only with icon) */
.rehber-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 12px;
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.rehber-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    position: relative;
    transition: 0.15s;
}
.rehber-toggle input[type="checkbox"]:checked {
    background: var(--primary-green);
    border-color: var(--primary-green);
}
.rehber-toggle input[type="checkbox"]:checked::after {
    content: '✓';
    color: #000;
    font-size: 11px;
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Items/Skills: icon column */
.rehber-row .col-icon {
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 6px !important;
}
.rehber-icon {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    image-rendering: pixelated;
    object-fit: contain;
}
.rehber-icon.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

/* Items: type/grade columns */
.rehber-row .col-type {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.rehber-row .col-mp {
    color: #60a5fa;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 800;
    text-align: right;
    padding-right: 18px !important;
}
.rehber-row .col-lvreq {
    color: #fbbf24;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-weight: 800;
    text-align: right;
    padding-right: 18px !important;
}

/* Grade badges */
.grade-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    border: 1px solid transparent;
}
.grade-badge.g-1 { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }
.grade-badge.g-2 { background: rgba(96, 165, 250, 0.14); color: #93c5fd; border-color: rgba(96, 165, 250, 0.35); }
.grade-badge.g-3 { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.35); }
.grade-badge.g-4 { background: rgba(251, 191, 36, 0.16); color: #fcd34d; border-color: rgba(251, 191, 36, 0.45); box-shadow: 0 0 8px rgba(251, 191, 36, 0.18); }
.grade-badge.g-5 { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(251, 191, 36, 0.2)); color: #fca5a5; border-color: rgba(239, 68, 68, 0.45); }
.grade-badge.g-0 { background: rgba(255, 255, 255, 0.04); color: var(--text-dim); border-color: rgba(255, 255, 255, 0.08); }

/* Class badges (skills) */
.class-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    border: 1px solid transparent;
}
.class-badge.cls-warrior { background: rgba(239, 68, 68, 0.14); color: #fca5a5; border-color: rgba(239, 68, 68, 0.35); }
.class-badge.cls-rogue   { background: rgba(34, 197, 94, 0.14); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
.class-badge.cls-mage    { background: rgba(96, 165, 250, 0.14); color: #93c5fd; border-color: rgba(96, 165, 250, 0.35); }
.class-badge.cls-priest  { background: rgba(251, 191, 36, 0.14); color: #fcd34d; border-color: rgba(251, 191, 36, 0.35); }
.class-badge.cls-kurian  { background: rgba(167, 139, 250, 0.14); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.35); }
.class-badge.cls-portu   { background: rgba(236, 72, 153, 0.14); color: #f9a8d4; border-color: rgba(236, 72, 153, 0.35); }
.class-badge.cls-common  { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }

/* Modal hero icon variants */
.modal-hero-icon.item {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.05));
    border-color: rgba(96, 165, 250, 0.4);
}
.modal-hero-icon.item i { color: #93c5fd; }
.modal-hero-icon.skill {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(167, 139, 250, 0.05));
    border-color: rgba(167, 139, 250, 0.4);
}
.modal-hero-icon.skill i { color: #c4b5fd; }
.modal-hero-icon.has-img {
    background: rgba(0, 0, 0, 0.5);
    padding: 4px;
}
.modal-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    border-radius: 8px;
}

.rehber-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border-left: 3px solid rgba(230,193,74,0.35);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.55;
}
.rehber-note i { color: var(--primary-green); margin-right: 6px; }

/* ---------- Rozetler + nokta isaretler ---------- */
.badge-boss {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.6px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    vertical-align: middle;
}
.dot-info {
    color: var(--primary-green);
    font-size: 10px;
    margin-left: 4px;
    text-shadow: 0 0 6px rgba(230,193,74,0.6);
}
.dot-quest {
    color: #fbbf24;
    font-size: 11px;
    margin-left: 2px;
    text-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

/* ---------- Modal ---------- */
.rehber-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rehber-modal[hidden] { display: none !important; }
.rehber-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.rehber-modal-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 20, 22, 0.98), rgba(10, 10, 12, 0.98));
    border: 1px solid rgba(230,193,74,0.25);
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(230,193,74,0.05);
    animation: modal-in 0.22s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}
.rehber-modal-panel::-webkit-scrollbar { width: 8px; }
.rehber-modal-panel::-webkit-scrollbar-thumb {
    background: rgba(230,193,74,0.3); border-radius: 4px;
}
.rehber-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: 0.15s;
}
.rehber-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.rehber-modal-content { padding: 28px 32px 32px; }

.modal-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 18px;
}
.modal-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(230,193,74,0.2), rgba(230,193,74,0.05));
    border: 1px solid rgba(230,193,74,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.modal-hero-icon i {
    font-size: 24px;
    color: var(--primary-green);
}
.modal-hero-icon.npc {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.05));
    border-color: rgba(251, 191, 36, 0.4);
}
.modal-hero-icon.npc i { color: #fbbf24; }

.modal-hero-text { flex: 1; min-width: 0; }
.modal-hero h2 {
    font-size: 22px;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}
.modal-hero .modal-sub {
    margin-top: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    color: var(--text-dim);
}
.modal-badge.boss {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    border-radius: 6px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.ms {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ms span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-dim);
    font-weight: 700;
}
.ms strong {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 16px;
    color: #fff;
    font-weight: 800;
}
.ms strong.lv-boss { color: #ef4444; }

.modal-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.modal-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-green);
    font-weight: 800;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-section h4 i { font-size: 13px; }

.loc-list { display: flex; flex-direction: column; gap: 8px; }
.loc-zone, .loc-item {
    font-size: 13px;
    color: #e8e8e8;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}
.loc-zone:last-child, .loc-item:last-child { border-bottom: none; }
.loc-zone strong, .loc-item strong {
    color: var(--primary-green);
    font-weight: 700;
    margin-right: 8px;
}
.loc-coord {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.loc-desc {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.5;
}

.family-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.family-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(230,193,74,0.05);
    border: 1px solid rgba(230,193,74,0.18);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: 0.15s;
}
.family-chip:hover {
    background: rgba(230,193,74,0.15);
    border-color: var(--primary-green);
    transform: translateY(-1px);
}
.family-chip .chip-lv {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
}

.quest-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.qid {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 5px;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.modal-note-small {
    color: var(--text-dim);
    font-size: 11px;
    margin: 6px 0 0;
    line-height: 1.5;
    font-style: italic;
}
.modal-note-small i { color: #60a5fa; margin-right: 4px; }

/* ---------- 3-katmanli Skill Filter Butonlari ---------- */
.skill-filter-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.skill-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.skill-fbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    transition: 0.15s;
    line-height: 1;
}
.skill-fbtn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.skill-fbtn.active {
    background: var(--primary-green);
    color: #000;
    border-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(230,193,74,0.4);
}
.skill-fbtn .fbtn-count {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-dim);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
}
.skill-fbtn.active .fbtn-count {
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-green);
}

/* Class butonlari renkli vurgu */
.skill-fbtn.cls-warrior:not(.active) { color: #fca5a5; border-color: rgba(239,68,68,0.35); }
.skill-fbtn.cls-rogue:not(.active)   { color: #86efac; border-color: rgba(34,197,94,0.35); }
.skill-fbtn.cls-mage:not(.active)    { color: #93c5fd; border-color: rgba(96,165,250,0.35); }
.skill-fbtn.cls-priest:not(.active)  { color: #fcd34d; border-color: rgba(251,191,36,0.35); }
.skill-fbtn.cls-kurian:not(.active)  { color: #c4b5fd; border-color: rgba(167,139,250,0.35); }
.skill-fbtn.cls-common:not(.active)  { color: #a3a3a3; border-color: rgba(160,160,160,0.35); }

/* Race ve sub butonlari icin daha minimal stil */
.skill-fbtn.race { font-size: 11px; padding: 5px 10px; }
.skill-fbtn.sub  { font-size: 11px; padding: 5px 9px; opacity: 0.92; }
.skill-fbtn.race.active, .skill-fbtn.sub.active { opacity: 1; }

/* ---------- KO in-game style item tooltip card ---------- */
.ko-card {
    background: #000;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 24px 32px 20px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    font-family: 'Verdana', 'Tahoma', sans-serif;
}
.koc-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
.koc-icon {
    width: 56px;
    height: 56px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #1a1a1a;
    image-rendering: pixelated;
}
.koc-icon-placeholder {
    display: flex; align-items: center; justify-content: center;
    color: #555;
}
.koc-name {
    font-size: 22px;
    font-weight: 700;
    color: #d9a85f;             /* KO altın isim */
    margin-bottom: 4px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}
.koc-class {
    font-size: 14px;
    color: #ff4444;              /* class restriction kırmızı */
    font-weight: 700;
    margin-bottom: 16px;
}
.koc-stats {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 12px 0;
}
.koc-stat {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.45;
}
.koc-desc {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,0.12);
    color: #c9c9c9;
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
    text-align: left;
}
.koc-foot {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 11px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- KO upgrade selector (+0 / +1 / ... / +9) ---------- */
.koc-up-row {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.koc-up-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-dim);
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    font-weight: 800;
    min-width: 36px;
    transition: 0.15s;
}
.koc-up-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.koc-up-btn.active {
    background: #d9a85f;
    color: #000;
    border-color: #f2c878;
    box-shadow: 0 0 12px rgba(217, 168, 95, 0.5);
}
