/* Ticaret Camii - Market Sistemi CSS */
/* Orijinal market.css stillerini kullanıyoruz (absolute path: iframe API base path'i /trading_glass/ olduğu için relative path bozuluyordu) */
@import url('/css/market.css?v=280');

/* ============================================
   BİNANCE-TARZI TASARIM SİSTEMİ (v2.0)
   ============================================ */
:root {
    /* Arka plan katmanları */
    --bg-primary: #0b0e11;
    --bg-secondary: #181a20;
    --bg-tertiary: #1e2329;
    --bg-elevated: #2b3139;
    --bg-overlay: rgba(11, 14, 17, 0.85);

    /* Border renkleri */
    --border-color: #2b3139;
    --border-light: #363c45;
    --border-hover: #474d57;

    /* Metin renkleri */
    --text-primary: #eaecef;
    --text-secondary: #b7bdc6;
    --text-tertiary: #848e9c;
    --text-disabled: #5e6673;

    /* Vurgu renkleri (Binance paleti) */
    --accent-green: #02c076;
    --accent-green-bg: rgba(2, 192, 118, 0.12);
    --accent-red: #f6465d;
    --accent-red-bg: rgba(246, 70, 93, 0.12);
    --accent-yellow: #f0b90b;
    --accent-yellow-bg: rgba(240, 185, 11, 0.12);
    --accent-purple: #8b5cf6;
    --accent-purple-bg: rgba(139, 92, 246, 0.12);
    --accent-blue: #1e88e5;
    --accent-blue-bg: rgba(30, 136, 229, 0.12);

    /* Hover / Interaktif */
    --hover-bg: rgba(255, 255, 255, 0.04);
    --hover-bg-strong: rgba(255, 255, 255, 0.08);
    --row-hover: rgba(240, 185, 11, 0.04);

    /* Layout */
    --header-height: 52px;
    --sidebar-width: 260px;

    /* Geçişler */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Scrollbar Stilleri (Binance-tarzı ince) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

::-webkit-scrollbar-corner {
    background: var(--bg-primary);
}

/* Ticaret Camii özel stilleri */
.exit-confirmation-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.2s;
    min-width: 100px;
}

.exit-confirmation-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.exit-confirmation-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.exit-confirmation-confirm {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.exit-confirmation-confirm:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Hover Preview Z-Index Fix - Modal'ın üstünde görünmesi için */
/* Yeniliklerv1 Tooltip Stilleri - Ticaret Camı Entegrasyonu */
/* Sağ kolon market panel - blog-frame.png kaldırıldı (sade görünüm) */
.item-popup-market-panel {
    background-image: none !important;
}

/* Yeniliklerv1 stili - item-hover-preview tooltip-container gibi davranmalı */
.item-hover-preview {
    z-index: 10000000 !important;
    position: fixed !important;
    pointer-events: none !important;
    /* Yeniliklerv1 stili - tooltip-container stillers */
    width: max-content !important;
    min-width: 220px !important;
    max-width: 400px !important;
    background-color: transparent !important;
    background: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 22px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-family: "Tahoma", Arial, sans-serif !important;
    color: #e0e0e0 !important;
    -webkit-font-smoothing: auto !important;
    -moz-osx-font-smoothing: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    word-wrap: break-word !important;
}

/* Yeniliklerv1 stili tooltip-container */
.tooltip-container {
    position: relative;
    width: max-content;
    min-width: 190px;
    background-color: transparent;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(7, 7, 7, 0.98) 100%);
    border-radius: 0;
    border: none;
    padding: 20px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    font-size: 12px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Tahoma", Arial, sans-serif !important;
    color: #e0e0e0;
    -webkit-font-smoothing: auto !important;
    -moz-osx-font-smoothing: auto !important;
    overflow: visible;
}

/* Thinboard 9-slice frame styles */
.thinboard-frame {
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    z-index: 1000 !important;
}
.thinboard-edge {
    position: absolute !important;
    pointer-events: none !important;
    image-rendering: auto !important;
}
.thinboard-lt {
    top: -1px !important;
    left: -1px !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_corner_lefttop.png') !important;
    background-size: 100% 100% !important;
}
.thinboard-rt {
    top: -1px !important;
    right: -1px !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_corner_righttop.png') !important;
    background-size: 100% 100% !important;
}
.thinboard-lb {
    bottom: -1px !important;
    left: -1px !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_corner_leftbottom.png') !important;
    background-size: 100% 100% !important;
}
.thinboard-rb {
    bottom: -1px !important;
    right: -1px !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_corner_rightbottom.png') !important;
    background-size: 100% 100% !important;
}
.thinboard-top {
    top: -1px !important;
    left: 17px !important;
    right: 17px !important;
    height: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_line_top.png') !important;
    background-repeat: repeat-x !important;
    background-size: auto 100% !important;
}
.thinboard-bottom {
    bottom: -1px !important;
    left: 17px !important;
    right: 17px !important;
    height: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_line_bottom.png') !important;
    background-repeat: repeat-x !important;
    background-size: auto 100% !important;
}
.thinboard-left {
    left: -1px !important;
    top: 17px !important;
    bottom: 17px !important;
    width: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_line_left.png') !important;
    background-repeat: repeat-y !important;
    background-size: 100% auto !important;
}
.thinboard-right {
    right: -1px !important;
    top: 17px !important;
    bottom: 17px !important;
    width: 18px !important;
    background-image: url('/market/privateshopdialog/images/_skin/thin_line_right.png') !important;
    background-repeat: repeat-y !important;
    background-size: 100% auto !important;
}

/* İçerik için - padding zaten item-hover-preview'da */
.item-hover-preview>*:first-child {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    word-wrap: break-word !important;
}

/* Modal içindeki item-hover-preview için özel stiller */
#item-details-popup .item-hover-preview,
.item-popup-preview.item-hover-preview,
#item-details-popup .item-popup-left .item-hover-preview,
#item-details-popup .item-popup-left #main-item-preview-content,
#item-details-popup #main-item-preview-content {
    position: relative !important;
    pointer-events: auto !important;
    width: 100% !important;
    min-width: auto !important;
    max-width: 100% !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    background-image: none !important;
    background: #000 !important;
    border: none !important;
    padding: 20px 22px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    overflow: visible !important;
}
    overflow: visible !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('/imlec/metin2.cur'), auto !important;
}

/* Tüm elementlerde Metin2 cursor'u - özel durumlar dahil */
*,
*::before,
*::after,
input,
textarea,
select,
button,
a,
[role="button"],
[onclick],
.market-item-row,
.filter-group *,
.custom-server-select-option,
.custom-category-option,
.search-suggestion-item,
.enchantment-widget-option,
.pagination-btn,
.close-btn,
.belt-absorbed-btn {
    cursor: url('/imlec/metin2.cur'), auto !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: url('/imlec/metin2.cur'), auto !important;
    min-height: 100vh;
}

body.iframe-mode .container,
.ticaret-cami-wrapper .container {
    /* iframe / react container */
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    background: var(--bg-primary);
}

.shop-window {
    /* Sahte pencere çerçevesi kaldırıldı - tam ekran düz panel */
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    position: relative;
}

.window-titlebar {
    /* Sticky kompakt header (Binance tarzı) */
    background: var(--bg-secondary);
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    flex-shrink: 0;
    min-height: var(--header-height);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.title-text {
    font-weight: bold;
    font-size: 1rem;
    color: #FEE3AE;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-name {
    display: inline;
}

/* Versiyon Badge - Gold Animasyonlu */
.version-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% 100%;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    box-shadow:
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: gold-shimmer 3s ease-in-out infinite;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.version-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s ease-in-out infinite;
}

@keyframes gold-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
        box-shadow:
            0 0 10px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    50% {
        background-position: 100% 50%;
        box-shadow:
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 215, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Filtre Toggle Butonu */
.filter-toggle-btn {
    display: none;
    /* Desktop'ta gizli */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.25) 0%, rgba(59, 130, 246, 0.3) 100%);
    border: 2px solid rgba(99, 179, 237, 0.5);
    color: #63b3ed;
    border-radius: 0.75rem;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 600;
    position: relative;
    box-shadow: 0 2px 8px rgba(99, 179, 237, 0.2);
    min-width: 120px;
    margin-right: 0.5rem;
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.35) 0%, rgba(59, 130, 246, 0.4) 100%);
    border-color: #63b3ed;
    color: #90cdf4;
    box-shadow: 0 4px 12px rgba(99, 179, 237, 0.3);
    transform: translateY(-1px);
}

.filter-toggle-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(251, 191, 36, 0.35) 100%);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
    animation: filter-active-pulse 2s ease-in-out infinite;
}

@keyframes filter-active-pulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2);
    }

    50% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    }
}

.filter-toggle-btn .filter-icon {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.filter-toggle-btn.active .filter-icon {
    transform: rotate(180deg);
}

.filter-toggle-btn .filter-toggle-text {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.filter-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    min-width: 22px;
    padding: 0;
}

.filter-count-badge:empty,
.filter-count-badge.hidden {
    display: none;
}

/* Filtre Kapat Butonu */
.filter-close-btn {
    display: none;
    /* Desktop'ta gizli */
    position: fixed;
    top: 4.5rem;
    /* Header'dan sonra */
    right: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 3px solid #fff;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: url('/imlec/metin2.cur'), auto !important;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 9999999;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6), 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.4);
    pointer-events: all !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6), 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.4);
    }

    50% {
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.8), 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.6);
    }
}

.filter-close-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #fbbf24;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.9), 0 5px 20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(239, 68, 68, 0.7);
    animation: none;
}

.filter-close-btn:active {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {

    /* Mobilde Ticaret Camı yazısı ve ikonunu gizle - sadece filtre butonunu göster */
    .title-text {
        display: flex !important;
        align-items: center;
        gap: 0;
    }

    /* Title brand'i (ikon + yazı) mobilde gizle */
    .title-brand {
        display: none !important;
    }

    .filter-toggle-btn {
        display: flex !important;
        min-width: 100px;
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
        box-shadow: 0 2px 8px rgba(99, 179, 237, 0.35), 0 0 12px rgba(99, 179, 237, 0.2);
        margin-right: 0;
        border-width: 2px;
        gap: 0.375rem;
    }

    .filter-toggle-btn .filter-icon {
        font-size: 1rem;
    }

    .filter-toggle-btn .filter-toggle-text {
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    .filter-count-badge {
        width: 20px;
        height: 20px;
        font-size: 0.6875rem;
        min-width: 20px;
        top: -6px;
        right: -6px;
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
        border-width: 2px;
    }

    /* Header'ı daha kompakt yap */
    .window-titlebar {
        padding: 0.5rem 0.75rem;
        min-height: auto;
    }

    .titlebar-actions {
        gap: 0.5rem;
    }

    .filter-close-btn {
        display: none !important;
        /* Başlangıçta gizli */
        position: fixed !important;
        top: 4.5rem !important;
        right: 1rem !important;
        z-index: 99999999 !important;
        width: 3.5rem !important;
        height: 3.5rem !important;
        font-size: 1.5rem !important;
        font-weight: bold !important;
        pointer-events: all !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6), 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.4) !important;
        border: 3px solid #fff !important;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        animation: pulse-glow 2s ease-in-out infinite !important;
    }

    /* Sidebar açıkken close düğmesi görünür olsun */
    body.sidebar-open .filter-close-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Mobilde input zoom'u önle - iOS için font-size minimum 16px olmalı */
    .metin2-filter-sidebar input[type="text"],
    .metin2-filter-sidebar input[type="number"],
    .metin2-filter-sidebar input[type="search"],
    .metin2-filter-sidebar textarea,
    .metin2-filter-sidebar select,
    .filter-search-input,
    .range-field,
    .filter-dropdown,
    .custom-category-search-input,
    .custom-server-select-trigger,
    input[type="text"]:not(#priceFilterPopup input),
    input[type="number"]:not(#priceFilterPopup input),
    input[type="search"]:not(#priceFilterPopup input),
    select:not(#priceFilterPopup select) {
        font-size: 16px !important;
        touch-action: manipulation !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        -webkit-user-select: text !important;
        user-select: text !important;
    }

    /* Arama input'u mobilde optimize */
    /* Arama input'ları mobilde optimize */
    #item-search-input.filter-search-input,
    #seller-search-input.filter-search-input {
        font-size: 16px !important;
        padding: 10px 40px 10px 42px !important;
        min-height: 44px !important;
        line-height: 1.5 !important;
        color: #e2e8f0 !important;
        background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(26, 32, 44, 0.98) 100%) !important;
        border: 2px solid rgba(99, 179, 237, 0.3) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
        z-index: 999998 !important;
        position: relative !important;
    }

    #item-search-input.filter-search-input:focus,
    #seller-search-input.filter-search-input:focus {
        border-color: #63b3ed !important;
        box-shadow: 0 0 0 4px rgba(99, 179, 237, 0.25), 0 4px 12px rgba(99, 179, 237, 0.4) !important;
        background: linear-gradient(135deg, rgba(45, 55, 72, 1) 0%, rgba(26, 32, 44, 1) 100%) !important;
        z-index: 999999 !important;
    }

    /* Clear search button mobilde optimize */
    #clear-item-search-btn,
    #clear-seller-search-btn {
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(99, 179, 237, 0.2) !important;
        border-radius: 50% !important;
        z-index: 999999 !important;
        font-size: 16px !important;
    }

    #clear-item-search-btn:hover,
    #clear-seller-search-btn:hover {
        background: rgba(99, 179, 237, 0.35) !important;
        color: #fff !important;
    }

    /* Search suggestions mobilde optimize */
    #item-search-suggestions,
    #seller-search-suggestions {
        max-height: 50vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        background: linear-gradient(135deg, rgba(26, 32, 44, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%) !important;
        backdrop-filter: blur(15px) !important;
        border: 2px solid rgba(99, 179, 237, 0.4) !important;
        border-radius: 12px !important;
        /* rounded-xl */
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 179, 237, 0.2) !important;
        margin-top: 4px !important;
        z-index: 999999 !important;
    }

    .suggestion-item {
        padding: 12px 14px !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        color: #e2e8f0 !important;
        border-bottom: 1px solid rgba(99, 179, 237, 0.1) !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .suggestion-item:last-child {
        border-bottom: none !important;
    }

    .suggestion-item:hover,
    .suggestion-item:active {
        background: rgba(99, 179, 237, 0.2) !important;
        color: #90cdf4 !important;
    }

    /* Input focus olduğunda scroll'u engelle ve header'ı sabitle */
    .metin2-filter-sidebar input:focus,
    .metin2-filter-sidebar select:focus,
    .filter-search-input:focus,
    .custom-category-search-input:focus,
    .custom-server-select-trigger:focus {
        position: relative !important;
        z-index: 999999 !important;
    }

    /* Search input wrapper mobilde optimize */
    .filter-group:has(#item-search-input),
    .filter-group:has(#seller-search-input) {
        position: relative !important;
        z-index: 999998 !important;
    }

    .filter-group:has(#item-search-input:focus),
    .filter-group:has(#seller-search-input:focus) {
        z-index: 999999 !important;
    }

    /* Header'ı mobilde sticky yap */
    .window-titlebar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: linear-gradient(135deg, #1a1e24 0%, #232b3a 100%) !important;
    }

    /* Body scroll'u önle input focus olduğunda */
    body.input-focused {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* Dropdown açıkken body scroll'u önle */
    body.dropdown-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
}

.title-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
    filter: drop-shadow(0 0 0.25rem rgba(255, 215, 0, 0.3));
}


.titlebar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.375rem;
    color: #22c55e;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: default;
    transition: all 0.2s;
}

.online-info:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

.online-info i {
    font-size: 0.875rem;
}

.online-count {
    font-weight: 700;
    color: #22c55e;
    text-shadow: 0 0 0.25rem rgba(34, 197, 94, 0.5);
}

.refresh-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.125rem;
    cursor: url('/imlec/metin2.cur'), auto !important;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
    padding: 0;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.refresh-btn.refreshing i {
    animation: refreshSpin 1s linear infinite;
}

@keyframes refreshSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.375rem;
    cursor: url('/imlec/metin2.cur'), auto !important;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

/* Pazarım Butonu Stilleri */
.pazarim-btn {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.15) 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.3);
    border-radius: 0.375rem;
    padding: 0.375rem;
    cursor: url('/imlec/metin2.cur'), auto !important;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pazarim-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.pazarim-btn:hover::before {
    left: 100%;
}

.pazarim-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 193, 7, 0.3) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pazarim-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pazarim-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.pazarim-btn:hover .pazarim-icon {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8)) brightness(1.2);
    transform: scale(1.1) rotate(5deg);
}

.pazarim-btn:active .pazarim-icon {
    transform: scale(0.95);
}

/* Pazarım Butonu Tooltip */
.pazarim-btn[title] {
    position: relative;
}

.pazarim-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    color: #ffd700;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease-out forwards;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.pazarim-btn[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(255, 215, 0, 0.4);
    z-index: 10001;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease-out forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.pazarim-btn[title]:hover::before {
    animation: tooltipFadeIn 0.3s ease-out forwards;
}

.window-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Market layout - tam ekran */
.metin2-market-layout {
    height: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    overflow: hidden !important;
    position: relative !important;
}

/* Sol Sidebar - Resizable + Collapsible (Binance Pro) */
.metin2-filter-sidebar {
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    max-width: 25rem !important;
    height: 100% !important;
    background: var(--bg-secondary) !important;
    border-right: 1px solid var(--border-color) !important;
    padding: 0.75rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    position: relative !important;
    box-shadow: none !important;
    transition: width var(--transition-slow), min-width var(--transition-slow), padding var(--transition-slow);
}

/* Resize handle */
.metin2-filter-sidebar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0.25rem;
    cursor: url('/imlec/metin2.cur'), auto !important;
    background: transparent;
    z-index: 10;
}

.metin2-filter-sidebar:hover::after {
    background: rgba(99, 179, 237, 0.3);
}

/* Sağ içerik alanı */
.metin2-market-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
}

/* ============================================
   AKILLI FİLTRELER SIDEBAR TOGGLE
   ============================================ */
.enchantment-sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid var(--border-color, #2b3139);
    border-radius: 10px;
    color: var(--text-primary, #eaecef);
    cursor: pointer;
    transition: all var(--transition-base, 0.2s ease);
    user-select: none;
}

.enchantment-sidebar-toggle:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 179, 237, 0.4);
}

.enchantment-sidebar-toggle.open {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 179, 237, 0.5);
    box-shadow: 0 0 0 1px rgba(99, 179, 237, 0.2) inset;
}

.enchantment-toggle-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e88e5 0%, #8b5cf6 100%);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(30, 136, 229, 0.3);
}

.enchantment-toggle-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.enchantment-toggle-text .toggle-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary, #eaecef);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.enchantment-toggle-text .toggle-subtitle {
    font-size: 10px;
    color: var(--text-tertiary, #848e9c);
    line-height: 1.2;
}

.enchantment-toggle-badge {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--accent-yellow, #f0b90b);
    color: #0b0e11;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enchantment-toggle-badge:empty,
.enchantment-toggle-badge[data-count="0"] {
    display: none;
}

/* ============================================
   KATEGORİ SEKMELERİ (Yatay Tab Navigation)
   ============================================ */
.category-tabs-wrapper {
    flex-shrink: 0;
    flex-grow: 0;
    background: var(--bg-secondary, #181a20);
    border-bottom: 1px solid var(--border-color, #2b3139);
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated, #2b3139) transparent;
    position: relative;
    z-index: 10;
}

.category-tabs-wrapper::-webkit-scrollbar {
    height: 4px;
}

.category-tabs-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.category-tabs-wrapper::-webkit-scrollbar-thumb {
    background: var(--bg-elevated, #2b3139);
    border-radius: 2px;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: max-content;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary, #b7bdc6);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-base, 0.2s ease);
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
    line-height: 1.2;
}

.category-tab i {
    font-size: 13px;
    opacity: 0.85;
}

.category-tab:hover {
    background: var(--hover-bg, rgba(255, 255, 255, 0.04));
    color: var(--text-primary, #eaecef);
    border-color: var(--border-light, #363c45);
}

.category-tab.active {
    background: var(--accent-yellow-bg, rgba(240, 185, 11, 0.12));
    color: var(--accent-yellow, #f0b90b);
    border-color: rgba(240, 185, 11, 0.35);
    font-weight: 600;
}

.category-tab.active i {
    opacity: 1;
}

.category-tab:focus {
    outline: none;
}

.category-tab:focus-visible {
    outline: 2px solid var(--accent-yellow, #f0b90b);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .category-tab span {
        display: none;
    }

    .category-tab {
        padding: 0.5rem 0.625rem;
    }

    .category-tab i {
        font-size: 15px;
    }
}

/* Alt kategori sekmeleri */
.subcategory-tabs-wrapper {
    flex-shrink: 0;
    flex-grow: 0;
    background: var(--bg-tertiary, #1e2329);
    border-bottom: 1px solid var(--border-color, #2b3139);
    padding: 0.375rem 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated, #2b3139) transparent;
}

.subcategory-tabs-wrapper::-webkit-scrollbar {
    height: 3px;
}

.subcategory-tabs-wrapper::-webkit-scrollbar-thumb {
    background: var(--bg-elevated, #2b3139);
    border-radius: 2px;
}

.subcategory-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: max-content;
}

.subcategory-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-tertiary, #848e9c);
    font-size: 11px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-base, 0.2s ease);
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
    line-height: 1.2;
}

.subcategory-tab i {
    font-size: 12px;
    opacity: 0.85;
}

.subcategory-tab:hover {
    background: var(--hover-bg, rgba(255, 255, 255, 0.04));
    color: var(--text-secondary, #b7bdc6);
    border-color: var(--border-light, #363c45);
}

.subcategory-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-yellow, #f0b90b);
    border-color: rgba(240, 185, 11, 0.25);
    font-weight: 600;
}

.subcategory-tab:focus {
    outline: none;
}

.subcategory-tab:focus-visible {
    outline: 2px solid var(--accent-yellow, #f0b90b);
    outline-offset: 2px;
}

.metin2-market-content {
        flex: 1 !important;
        min-height: 0 !important;
    }

    .market-table-container {
        padding: 0.25rem !important;
    }

    .metin2-market-table {
        min-width: 37.5rem !important;
        font-size: 0.75rem !important;
    }

    .metin2-pagination {
        gap: 0.25rem !important;
        padding: 0.375rem 0.5rem !important;
    }

    .metin2-pagination button {
        min-width: 1.75rem !important;
        height: 1.75rem !important;
        font-size: 0.6875rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Efsun Widget - Mobil */
    .enchantment-widget {
        bottom: 0.9375rem;
        right: 0.9375rem;
    }

    .enchantment-widget-toggle {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.375rem;
    }

    .enchantment-widget-content {
        width: calc(100vw - 1.875rem);
        max-width: 22.5rem;
        max-height: 85vh;
    }

    .enchantment-widget-body {
        max-height: 21.875rem;
    }

    .enchantment-widget-selected-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px;
    }

    .enchantment-widget-selected-controls {
        width: 100%;
        justify-content: space-between;
    }

    .enchantment-widget-min-value {
        width: 100%;
        flex: 1;
    }

    .enchantment-widget-actions-footer {
        flex-direction: column;
        gap: 6px;
    }

    .enchantment-widget-clear,
    .enchantment-widget-apply {
        width: 100%;
        padding: 8px 12px;
    }
}

/* Desktop - Item Popup Layout */
@media (min-width: 769px) {
    .item-popup-layout {
        display: flex !important;
        flex-direction: row !important;
        gap: 1rem !important;
    }

    .item-popup-left {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .item-popup-right {
        flex: 0 0 300px !important;
        min-width: 300px !important;
        max-width: 300px !important;
        width: 300px !important;
    }

    .item-popup-preview.item-hover-preview {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
    }

    .item-popup-left #main-item-preview-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }

    /* Desktop - absorbed-item-icon-container sağa hizalı, eşya ikonu ortada */
    .item-icon-wrapper {
        position: relative !important;
    }

.item-icon-wrapper .absorbed-item-icon-container {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    transform: translateX(100%) !important;
    margin-left: 4px !important;
}

/* Kuşak/Aura tooltip önizlemesi: emdirilen item butonu ikonun sağında kalsın */

    .item-icon-wrapper img {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .metin2-filter-sidebar {
        width: 220px !important;
        min-width: 180px !important;
    }
}

/* Resizable sidebar için JavaScript desteği */
.sidebar-resizing {
    user-select: none;
    cursor: url('/imlec/metin2.cur'), auto !important;
}

.sidebar-resizing * {
    pointer-events: none;
}

/* Belt absorbed button styles */
.belt-absorbed-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.2s ease;
    margin-top: 4px;
    margin-left: 8px;
}

.belt-absorbed-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    transform: translateY(-1px);
}

.belt-absorbed-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

/* Soket taşı özellikleri - Küçük font boyutu ve renklendirme */
.socket-properties {
    font-size: 10px !important;
    line-height: 1.3 !important;
    margin-top: 4px !important;
}

.socket-stat {
    font-size: 10px !important;
    color: #68d391 !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}

/* Soket taşı adı - Altın renk */
.socket-name {
    color: #fbbf24 !important;
    font-weight: 600 !important;
    text-shadow: 0 0 3px rgba(251, 191, 36, 0.3) !important;
    text-align: left !important;
}

.socket-bonus {
    color: #60d9ff !important;
    font-weight: 500 !important;
    text-align: left !important;
}

.socket-status {
    font-size: 9px !important;
    color: #a0aec0 !important;
    margin-top: 4px !important;
    font-style: italic !important;
}

/* Sınıf bilgisi - Giyilebilir başlığı ve sınıf listesi */
.item-popup-classes {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(99, 179, 237, 0.2) !important;
}

.classes-label {
    color: #60d9ff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
}

.classes-list {
    color: #e2e8f0 !important;
    font-size: 11px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.class-name {
    color: #e2e8f0 !important;
    font-weight: 500 !important;
    display: inline-block !important;
}

.class-name.all-classes {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
}

/* Element icon stilleri */
.stat-row.elemental-stat {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.stat-row.elemental-stat .element-icon {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle !important;
}

.item-elemental .element-icon {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle !important;
}

/* Modern Item Info Badge Stilleri - Simya, Kostüm, Gaya */
.item-info-badges {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: 4px !important;
}

/* Yan yana badge'ler (liste görünümü için) */
.item-info-badges-inline {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.item-info-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-top: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
    border: 1px solid transparent !important;
}

/* Kompakt görünüm - liste için daha küçük padding */
.item-info-badge-compact {
    padding: 3px 6px !important;
    gap: 4px !important;
    font-size: 10px !important;
    margin-top: 2px !important;
}

.item-info-badge-compact i,
.item-info-badge-compact img {
    width: 12px !important;
    height: 12px !important;
}

.item-info-badge i,
.item-info-badge img {
    flex-shrink: 0 !important;
    width: 14px !important;
    height: 14px !important;
    object-fit: contain !important;
}

.item-info-badge span {
    white-space: nowrap !important;
}

/* Kostüm Badge - Mavi */
.item-info-badge-costume {
    background: linear-gradient(135deg, rgba(96, 217, 255, 0.15) 0%, rgba(96, 217, 255, 0.08) 100%) !important;
    color: #60d9ff !important;
    border-color: rgba(96, 217, 255, 0.3) !important;
}

.item-info-badge-costume:hover {
    background: linear-gradient(135deg, rgba(96, 217, 255, 0.2) 0%, rgba(96, 217, 255, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(96, 217, 255, 0.3) !important;
}

/* Simya Badge - Altın/Sarı */
.item-info-badge-simya {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.08) 100%) !important;
    color: #fbbf24 !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}

.item-info-badge-simya:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3) !important;
}

/* Gaya Miktarı Badge - Yeşil */
.item-info-badge-gaya-amount {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.item-info-badge-gaya-amount:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3) !important;
}

/* Gaya Kalan Süre Badge - Mor */
.item-info-badge-gaya-duration {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%) !important;
    color: #a855f7 !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

.item-info-badge-gaya-duration:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(168, 85, 247, 0.3) !important;
}

/* EP Kuponu Badge - Turuncu */
.item-info-badge-ep-kupon {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 146, 60, 0.08) 100%) !important;
    color: #fb923c !important;
    border-color: rgba(251, 146, 60, 0.3) !important;
}

.item-info-badge-ep-kupon:hover {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.2) 0%, rgba(251, 146, 60, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(251, 146, 60, 0.3) !important;
}

/* Sandık Kalan Açım Badge - Altın/Sarı */
.item-info-badge-chest-openings {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%) !important;
    color: #ffd700 !important;
    border-color: rgba(255, 215, 0, 0.3) !important;
}

.item-info-badge-chest-openings:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3) !important;
}

/* Pet Container Badge - Zümrüt Yeşili */
.item-info-badge-pet-container {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.item-info-badge-pet-container:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.12) 100%) !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

/* Liste içinde badge'ler */
.item-name-cell .item-info-badge,
.item-name-cell .item-info-badges {
    margin-top: 4px !important;
    width: fit-content !important;
    max-width: 100% !important;
}

.item-name-cell .item-info-badges {
    width: 100% !important;
}

.item-name-cell .item-info-badge {
    display: inline-flex !important;
}

/* Hover preview ve detay popup içinde badge'ler - ortalanmış */
.item-popup-preview .item-info-badge,
.hover-preview .item-info-badge {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

.item-popup-preview .item-info-badges,
.hover-preview .item-info-badges {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

/* Ortalanmış badge'ler (önizleme ve detay için) */
.item-info-badge-centered {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;
}

.item-popup-preview .item-info-badge-centered,
.hover-preview .item-info-badge-centered {
    display: flex !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Satıcı adı gold stil */
.seller-name-gold {
    color: #fbbf24 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    letter-spacing: 0.5px !important;
}

/* Miktar gösterimi stilleri */
.quantity-display {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.quantity-icon {
    color: #60d9ff !important;
    font-size: 16px !important;
    filter: drop-shadow(0 0 4px rgba(96, 217, 255, 0.6)) !important;
}

.quantity-value {
    color: #60d9ff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-shadow: 0 0 6px rgba(96, 217, 255, 0.5) !important;
}

/* Sunucu bilgisi gösterimi - sunucu filtresindeki gibi */
.server-info-display {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    min-height: 24px !important;
}

.server-info-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 1px !important;
}

.server-info-name-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.server-info-name {
    color: #60d9ff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    flex: 0 1 auto !important;
    text-shadow: 0 0 8px rgba(96, 217, 255, 0.3) !important;
}

/* Metin2 cursor'u tüm durumlarda zorla uygula - en yüksek öncelik */
html,
html *,
html *::before,
html *::after {
    cursor: url('/imlec/metin2.cur'), auto !important;
}

/* Özel durumlar için de Metin2 cursor'u */
input:focus,
textarea:focus,
select:focus,
button:active,
button:hover,
a:hover,
a:active,
a:visited,
.market-item-row:hover,
.custom-server-select-option:hover,
.custom-category-option:hover,
.search-suggestion-item:hover,
.enchantment-widget-option:hover,
.pagination-btn:hover,
.pagination-btn:active,
.close-btn:hover,
.close-btn:active,
.belt-absorbed-btn:hover,
.belt-absorbed-btn:active {
    cursor: url('/imlec/metin2.cur'), auto !important;
}

/* Tüm img elementleri ve icon sınıfları için Metin2 cursor'u - market.css'deki cursor: pointer'ı override etmek için */
img,
img:hover,
img:active,
img:focus,
img *,
.item-icon,
.item-icon:hover,
.item-icon:active,
.item-icon:focus,
.item-icon *,
.item-icon-cell,
.item-icon-cell:hover,
.item-icon-cell:active,
.item-icon-cell *,
.item-icon-cell img,
.item-icon-cell img:hover,
.item-detail-image,
.item-detail-image:hover,
.item-detail-image:active,
.item-detail-image:focus,
.search-suggestion-icon,
.search-suggestion-icon:hover,
.search-suggestion-icon:active,
.search-suggestion-icon-wrapper,
.search-suggestion-icon-wrapper:hover,
.search-suggestion-icon-wrapper *,
.search-suggestion-icon-wrapper img,
.absorbed-item-icon,
.absorbed-item-icon:hover,
.absorbed-item-icon:active,
.absorbed-item-icon-container,
.absorbed-item-icon-container:hover,
.absorbed-item-icon-container *,
.absorbed-item-icon-container img,
.item-details-icon,
.item-details-icon:hover,
.item-details-icon:active,
.item-details-icon-wrapper,
.item-details-icon-wrapper:hover,
.item-details-icon-wrapper *,
.item-details-icon-wrapper img,
.hover-icon-wrapper,
.hover-icon-wrapper:hover,
.hover-icon-wrapper *,
.hover-icon-wrapper img,
.hover-icon,
.hover-icon:hover,
.hover-icon:active,
.server-info-icon,
.server-info-icon:hover,
.element-icon,
.element-icon:hover,
.belt-absorbed-btn img,
.belt-absorbed-btn img:hover,
.market-item-row img,
.market-item-row img:hover,
.market-item-row img:active,
.market-item-row .item-icon,
.market-item-row .item-icon:hover,
.market-item-row .item-icon:active,
.market-item-row .item-icon-cell,
.market-item-row .item-icon-cell:hover,
.market-item-row .item-icon-cell:active,
.market-item-row .item-icon-cell *,
.market-item-row .item-icon-cell img,
.market-item-row .item-icon-cell img:hover,
table img,
table .item-icon,
table .item-icon-cell,
table .item-icon-cell img,
tbody img,
tbody .item-icon,
tbody .item-icon-cell,
tbody .item-icon-cell img,
td img,
td .item-icon,
td .item-icon-cell,
td .item-icon-cell img {
    cursor: url('/imlec/metin2.cur'), auto !important;
}

/* Boş satır stilleri - her zaman 10 satır gösterimi için */
.market-item-row-empty {
    height: 60px !important;
    opacity: 0.3 !important;
    pointer-events: none !important;
    user-select: none !important;
    cursor: default !important;
}

/* ============ MİKTAR Filter (TEMİZ) ============ */
/* MİKTAR filtresi şu an sidebar'da değil - istenirse ileride eklenebilir */

/* ============ Tablo Header - sticky + yükseklik düzeltmesi ============ */
.metin2-market-table thead {
    display: table-header-group !important;
}

.metin2-market-table thead tr {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
}

.metin2-market-table thead th {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    /* position: sticky THEAD üzerinde - her th ayrı yapışıyordu, sorunlu */
    /* Sticky davranışı thead üzerine taşı, th'leri static yap */
    position: static !important;
    top: auto !important;
}

.metin2-market-table thead th:first-child {
    border-top-left-radius: 0 !important;
}

/* thead'in kendisini sticky yap (her th ayrı ayrı değil) */
.metin2-market-table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(8px) !important;
}

/* Pazar Trendi view'da thead gizli olduğu için bu kurallar sorun çıkarmaz */
.metin2-market-table tbody tr {
    height: auto !important;
    min-height: 48px !important;
    max-height: 100px !important;
}

.market-item-row-empty:hover {
    background: transparent !important;
    opacity: 0.3 !important;
}

.market-item-row-empty td {
    padding: 10px 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    vertical-align: middle !important;
    cursor: default !important;
}

.empty-item-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 4px !important;
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
    animation: emptyItemPulse 2s ease-in-out infinite !important;
}

.empty-item-icon i {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.15) !important;
    animation: emptyItemIconFloat 3s ease-in-out infinite !important;
}

.empty-item-text {
    color: rgba(255, 255, 255, 0.1) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-align: center !important;
    user-select: none !important;
}

/* Boş satır animasyonları */
@keyframes emptyItemPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

@keyframes emptyItemIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.15;
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
        opacity: 0.25;
    }
}

/* Exit Confirmation Popup */
.exit-confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.exit-confirmation-popup.show {
    opacity: 1;
    pointer-events: all;
}

.exit-confirmation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.exit-confirmation-content {
    position: relative;
    background: linear-gradient(135deg, #1a1e24 0%, #232b3a 100%);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.3);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.exit-confirmation-popup.show .exit-confirmation-content {
    transform: scale(1);
}

.exit-confirmation-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
}

.exit-confirmation-header i {
    font-size: 24px;
    color: #ffd700;
}

.exit-confirmation-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #FEE3AE;
}

.exit-confirmation-body {
    padding: 24px;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.6;
}

.exit-confirmation-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.exit-confirmation-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: url('/imlec/metin2.cur'), auto !important;
    color: #fff;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

}

/* Detay modalında padding zaten eklendi, margin-top'a gerek yok */

/* Yeniliklerv1 stili - hover-header */
.item-hover-preview .hover-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid #4a5568 !important;
    padding-bottom: 8px !important;
}

.item-hover-preview .hover-icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    border-radius: 4px !important;
}

.item-hover-preview .hover-name {
    font-weight: bold !important;
    color: #fbbf24 !important;
    font-size: 14px !important;
}

/* Yeniliklerv1 stili - hover-attrs */
.item-hover-preview .hover-attrs {
    text-align: center !important;
    padding: 8px !important;
    background: rgba(139, 69, 19, 0.1) !important;
    border: 1px solid rgba(139, 69, 19, 0.3) !important;
    border-radius: 4px !important;
    margin-top: 6px !important;
}

.item-hover-preview .hover-attrs .stat-row {
    padding: 2px 0 !important;
    text-align: center !important;
    display: block !important;
}

.item-hover-preview .hover-attrs .hover-header {
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
    border-bottom: none !important;
}

.item-hover-preview .hover-attrs .hover-elem-short {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.item-hover-preview .hover-attrs .item-popup-classes {
    margin-top: 6px !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-top: none !important;
}

.item-hover-preview .hover-attrs .hover-sockets {
    margin-top: 6px !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Yeniliklerv1 stili tooltip-container */
.tooltip-container {
    position: relative;
    width: max-content;
    min-width: 190px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 12px;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Tahoma", Arial, sans-serif !important;
    color: #e0e0e0;
    -webkit-font-smoothing: auto !important;
    -moz-osx-font-smoothing: auto !important;
}

/* Yeniliklerv1 stili - item-icon-wrapper */
.item-icon-wrapper {
    width: 32px;
    min-height: 32px;
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: relative;
}

/* Yeniliklerv1 stili - item-name */
.item-name {
    text-align: center;
    margin-bottom: 5px;
    font-weight: normal;
    white-space: nowrap;
}

/* Yeniliklerv1 stili - text-line */
.text-line {
    width: 100%;
    margin-bottom: 2px;
    white-space: nowrap;
}

.text-center {
    text-align: center;
    justify-content: center;
}

.text-left {
    text-align: left;
    justify-content: flex-start;
}

.text-right {
    text-align: right;
    justify-content: flex-end;
}

/* Yeniliklerv1 stili - spacer */
.spacer {
    height: 5px;
    width: 100%;
}

/* Yeniliklerv1 stili - renklendirme class'ları */
.color-normal {
    color: #c4c4c4 !important;
}

.color-positive {
    color: #8ab98e !important;
}

.color-special-positive {
    color: #b0dfb4 !important;
}

.color-condition {
    color: #beb47d !important;
}

.color-rare {
    color: #ffff9b !important;
}

.color-changelook-title {
    color: #8bbdff !important;
}

.color-changelook-name {
    color: #bce55c !important;
}

.color-apply-random {
    color: #7af6d4 !important;
}

.color-negative {
    color: #e57976 !important;
}

.color-price {
    color: rgb(255, 200, 0) !important;
}

.color-title {
    color: #ffc800 !important;
}

.result-item-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    overflow: visible;
}



.changelook-overlay {
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    width: 21px !important;
    height: 21px !important;
    z-index: 12 !important;
    pointer-events: none !important;
    display: block !important;
}

.changelook-overlay-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.item-icon-wrapper .changelook-overlay,
.hover-icon-wrapper .changelook-overlay {
    width: 21px !important;
    height: 21px !important;
    top: -1px !important;
    left: -1px !important;
}

.color-white {
    color: #ffffff !important;
}

.color-disable {
    color: #ff6f6f !important;
}

.color-refine-element {
    color: #6699ff !important;
}

/* Yeniliklerv1 stili - stone-container */
.stone-container {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    width: 100%;
    padding-left: 10px;
    box-sizing: border-box;
}

.stone-icon-wrapper {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
}

.stone-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.stone-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stone-info .color-normal,
.stone-info .color-positive {
    text-align: center;
    font-size: 11px;
}

/* Eski stil kaldırıldı - yeniliklerv1 stili kullanılıyor (4591. satır) */

.item-icon-wrapper {
    width: 32px;
    min-height: 32px;
    margin-bottom: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.item-icon-wrapper img {
    max-width: 32px;
    max-height: 96px;
    transform: scale(1.12);
    transform-origin: center center;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.item-icon-wrapper,
.hover-icon-wrapper {
    position: relative !important;
    overflow: visible !important;
}

/* Tooltip/preview/detail: ikon kutusu */
.item-hover-preview .item-icon-wrapper,
.item-hover-preview .hover-icon-wrapper {
    width: fit-content !important;
    min-width: 32px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-flex !important;
}

/* Detail popup: ikon kutusu — item-icon-wrapper içeriğe göre boyutlanır */
#item-details-popup .item-icon-wrapper {
    width: fit-content !important;
    min-width: 32px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Detail popup: hover-icon-wrapper (kuşak/aura) tam genişlik, emdirilen item sağa itilir */
#item-details-popup .hover-icon-wrapper {
    width: 100% !important;
    min-width: 32px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

/* Emdirilen item butonu detail popup'da sağa hizalı */
#item-details-popup .hover-icon-wrapper .absorbed-item-icon-container,
#item-details-popup .item-icon-wrapper .absorbed-item-icon-container {
    margin-left: auto !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Detail popup: changelook overlay hover-icon ile aynı hizada kalmalı (icon 48px, ortalanmış) */
#item-details-popup .hover-icon-wrapper .changelook-overlay {
    left: calc(50% - 24px - 1px) !important;
    top: -1px !important;
}

.market-item-row .item-icon-wrapper {
    background: linear-gradient(180deg, #13161b 0%, #0c0f14 100%) !important;
    border: 1px solid #2a313d !important;
    border-radius: 6px !important;
    padding: 1px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.item-name {
    text-align: center;
    margin-bottom: 1px;
    font-weight: normal;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.3;
}

.text-line {
    width: 100%;
    margin-bottom: 2px;
    white-space: nowrap;
}

.text-line.attr-line {
    white-space: normal !important;
    /* Attrs için çok satırlı */
    max-width: 220px;
    /* Attrs'ları max genişlikle sınırla */
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible !important;
    /* Ellipsis'i kaldır */
    text-overflow: clip !important;
    /* Ellipsis'i kaldır */
}

.text-center {
    text-align: center;
    justify-content: center;
}

.text-left {
    text-align: left;
    justify-content: flex-start;
}

.text-right {
    text-align: right;
    justify-content: flex-end;
}

.spacer {
    height: 3px;
    width: 100%;
}

/* Renk Sınıfları - Yeniliklerv1'den */
.color-normal {
    color: #c4c4c4 !important;
}

.color-positive {
    color: #8ab98e !important;
}

.color-special-positive {
    color: #b0dfb4 !important;
}

.color-condition {
    color: #beb47d !important;
}

.color-rare {
    color: #ffff9b !important;
}

.color-changelook-title {
    color: #8bbdff !important;
}

.color-changelook-name {
    color: #bce55c !important;
}

.color-apply-random {
    color: #7af6d4 !important;
}

.color-negative {
    color: #e57976 !important;
}

.color-price {
    color: rgb(255, 200, 0) !important;
}

.color-title {
    color: #ffc800 !important;
}

.color-white {
    color: #ffffff !important;
}

.color-disable {
    color: #ff6f6f !important;
}

.color-refine-element {
    color: #6699ff !important;
}

.socket-line {
    color: #c4c4c4;
    font-size: 11px;
    text-align: center;
}

.stone-container {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    margin-right: 30px;
    width: 100%;
    padding-left: 10px;
    box-sizing: border-box;
    justify-content: flex-start;
    /* Sola hizalı */
}

.stone-icon-wrapper {
    width: 32px;
    height: 32px;
    background-image: url('/img/socket.png');
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    flex-shrink: 0;
    /* Icon boyutunu koru */
}

.stone-icon {
    width: 28px;
    height: 28px;
    display: block;
}

.stone-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* İçerik sola hizalı */
    font-size: 13px;
    flex: 1;
    /* Kalan alanı kapla */
    text-align: left;
    /* Metin sola hizalı */
}

/* Yeniliklerv1 stili - socket-slot (aksesuar itemlar için) */
.socket-slot {
    display: flex !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 1px !important;
    width: 100% !important;
    min-height: 35px !important;
    padding-left: 2px !important;
    box-sizing: border-box !important;
}

.socket-icon {
    position: relative !important;
    width: 32px !important;
    height: 32px !important;
    background-image: url('/img/metin_slot.png') !important;
    background-size: 32px 32px !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.socket-icon img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.socket-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding-top: 2px !important;
    width: 100% !important;
}

.socket-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding-top: 2px !important;
    width: 100% !important;
}

.socket-name {
    color: rgb(195, 195, 195) !important;
    font-size: 12px !important;
    font-weight: bold !important;
    margin-bottom: 2px !important;
}

.socket-properties {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin-top: 2px !important;
}

.socket-stat {
    color: #8ab98e !important;
    font-size: 11px !important;
    text-align: left !important;
}

.socket-status {
    color: #fbbf24 !important;
    font-size: 11px !important;
    margin-top: 4px !important;
    font-style: italic !important;
}

/* Fiyat bölümü (hover preview) */
.price-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 8px !important;
    padding-top: 4px !important;
    width: 100% !important;
    margin-bottom: 4px !important;
}

.price-section .price-label {
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
    color: rgb(255, 247, 79) !important;
}

.price-section .price-won {
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: rgb(0, 216, 255) !important;
}

.price-section .price-yang {
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: rgb(255, 200, 0) !important;
}

.price-section .price-icon {
    vertical-align: middle !important;
    display: inline-block !important;
    margin-left: 3px !important;
    margin-right: 5px !important;
    width: 16px !important;
    height: 16px !important;
}

.socket-properties {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    margin-top: 0 !important;
    width: 100% !important;
}

.socket-stat {
    color: #8ab98e !important;
    font-size: 12px !important;
    text-align: left !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.socket-status {
    color: rgb(255, 255, 155) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    font-style: italic !important;
    text-align: left !important;
}

.description-text {
    width: 100%;
    max-width: 220px;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: center;
    color: #ffffff;
    margin-bottom: 5px;
}

.color-pet-highlight {
    color: #fcd34d !important;
    margin-bottom: 6px;
}

.color-pet-base {
    color: #86efac !important;
    margin-bottom: 6px;
}

.color-pet-evolved {
    color: #8acdff !important;
    margin-bottom: 6px;
}

.color-pet-hp {
    color: #b0dfb4 !important;
    margin-bottom: 6px;
}

.color-pet-def {
    color: #b0dfb4 !important;
    margin-bottom: 6px;
}

.color-pet-sp {
    color: #b0dfb4 !important;
    margin-bottom: 6px;
}

.color-pet-skill {
    color: #b0dfb4 !important;
    margin-bottom: 6px;
}

.color-pet-skill-title {
    color: #f8d467 !important;
    margin-bottom: 6px;
}

/* Pet Skill Container (Detay Modalı için) */
.pet-skills-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
}

.pet-skill-slot {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: help !important;
    flex-shrink: 0 !important;
}

.pet-skill-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
    background-image: url('/market/pet_skill_icon/pet_socket.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
}

.pet-skill-icon {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    object-fit: contain !important;
}

.pet-skill-level {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 1px 3px !important;
    border-radius: 2px !important;
    line-height: 1 !important;
    min-width: 14px !important;
    text-align: center !important;
    z-index: 2 !important;
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: all;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-success .toast-icon {
    color: #22c55e;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info {
    border-left: 4px solid #60d9ff;
}

.toast-info .toast-icon {
    color: #60d9ff;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: url('/imlec/metin2.cur'), auto !important;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.toast-close i {
    font-size: 16px;
}

/* Custom Tooltip Styles */
.custom-tooltip {
    position: fixed;
    background: rgba(26, 32, 44, 0.98) !important;
    color: #e2e8f0 !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    z-index: 1000001 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: translate(-50%, calc(-100% - 4px)) !important;
    transition: opacity 0.05s ease, transform 0.05s ease !important;
    border: 1px solid rgba(99, 179, 237, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    line-height: 1.4;
}

.custom-tooltip.show.tooltip-top {
    opacity: 1 !important;
    transform: translate(-50%, calc(-100% - 8px)) !important;
}

.custom-tooltip.show.tooltip-bottom {
    opacity: 1 !important;
    transform: translate(-50%, 8px) !important;
}

/* Tooltip ok işareti - yukarı yön (default) */
.custom-tooltip.tooltip-top::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(26, 32, 44, 0.98);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

/* Tooltip ok işareti - aşağı yön */
.custom-tooltip.tooltip-bottom::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(26, 32, 44, 0.98);
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.2));
}

/* Developer Credit */
.developer-credit {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 0 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.developer-credit:hover {
    opacity: 1;
}

.credit-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.credit-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.credit-name {
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.credit-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 0.6;
    animation: shimmer-credit 2s ease-in-out infinite;
}

@keyframes shimmer-credit {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-100%);
    }

    50% {
        opacity: 0.8;
        transform: translateX(100%);
    }
}

/* Mobil Görünüm - Item List Stilleri */
@media (max-width: 768px) {

    /* Market content - mobilde viewport'a sığdır */
    .metin2-market-content {
        height: calc(100vh - 180px) !important;
        max-height: calc(100vh - 180px) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Market table container - mobilde viewport'a sığdır */
    .market-table-container {
        flex: 1 !important;
        min-height: 0 !important;
        max-height: 100% !important;
        padding: 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .market-table-container>div[style*="overflow-x"] {
        flex: 1 !important;
        min-height: 0 !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }

    .metin2-market-table {
        width: 100% !important;
        min-width: 600px !important;
        /* Minimum genişlik scroll için */
        table-layout: auto !important;
    }

    /* Loading durumunda ortalamayı düzelt */
    .metin2-market-table tbody td[colspan="6"] {
        position: relative !important;
        vertical-align: middle !important;
        height: calc(100vh - 200px) !important;
        min-height: calc(100vh - 200px) !important;
        padding: 0 !important;
    }

    .loading-wrapper {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 10 !important;
        pointer-events: none !important;
    }

    /* Satıcı kolonu - mobilde görünür */
    .seller-cell {
        display: table-cell !important;
        padding: 5px 4px !important;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .seller-name-text {
        font-size: 11px;
        display: block;
        line-height: 1.3;
    }

    /* Item name cell - mobilde kompakt */
    .item-name-cell {
        padding: 5px 4px !important;
        font-size: 12px;
        line-height: 1.3;
    }

    .item-name-cell>div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* Detay düğmesi */
    .item-detail-btn-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 10px;
        background: linear-gradient(135deg, rgba(99, 179, 237, 0.2) 0%, rgba(66, 153, 225, 0.25) 100%);
        border: 1px solid rgba(99, 179, 237, 0.4);
        border-radius: 5px;
        color: #63b3ed;
        font-size: 11px;
        font-weight: 600;
        cursor: url('/imlec/metin2.cur'), auto !important;
        transition: all 0.2s ease;
        white-space: nowrap;
        min-width: 65px;
        width: 100%;
    }

    .item-detail-btn-mobile:hover {
        background: linear-gradient(135deg, rgba(99, 179, 237, 0.3) 0%, rgba(66, 153, 225, 0.35) 100%);
        border-color: #63b3ed;
        color: #90cdf4;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(99, 179, 237, 0.3);
    }

    .item-detail-btn-mobile:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(99, 179, 237, 0.2);
    }

    .item-detail-btn-mobile i {
        font-size: 12px;
    }

    .item-detail-btn-mobile span {
        font-size: 11px;
    }

    /* Quantity cell - mobilde detay düğmesi için */
    .quantity-cell {
        text-align: center;
        padding: 5px 4px !important;
        width: auto;
        min-width: 75px;
    }

    /* Tablo kolon genişlikleri - mobilde optimize */
    .metin2-market-table {
        font-size: 11px;
    }

    .metin2-market-table th,
    .metin2-market-table td {
        padding: 5px 3px !important;
        vertical-align: middle !important;
    }

    /* Tablo satır yüksekliği - mobilde optimize */
    .metin2-market-table tbody tr {
        height: auto !important;
        min-height: auto !important;
    }

    .metin2-market-table th:nth-child(1),
    .metin2-market-table td:nth-child(1) {
        width: 40px !important;
        /* ITEM icon */
    }

    .metin2-market-table th:nth-child(2),
    .metin2-market-table td:nth-child(2) {
        width: auto !important;
        /* Eşya Adı - esnek */
        min-width: 120px;
        max-width: 200px;
    }

    .metin2-market-table th:nth-child(3),
    .metin2-market-table td:nth-child(3) {
        width: 80px !important;
        /* Satıcı */
    }

    .metin2-market-table th:nth-child(4),
    .metin2-market-table td:nth-child(4) {
        width: 80px !important;
        /* Detay düğmesi */
    }

    .metin2-market-table th:nth-child(5),
    .metin2-market-table td:nth-child(5) {
        width: 70px !important;
        /* Won */
    }

    .metin2-market-table th:nth-child(6),
    .metin2-market-table td:nth-child(6) {
        width: 70px !important;
        /* Yang */
    }

    /* Tablo başlıklarını mobilde güncelle */
    .metin2-market-table th {
        padding: 6px 3px !important;
        font-size: 10px !important;
    }

    .metin2-market-table th:nth-child(4) {
        font-size: 0 !important;
        /* Mevcut metni gizle */
        padding: 6px 3px !important;
    }

    .metin2-market-table th:nth-child(4)::after {
        content: 'Detay';
        font-size: 10px !important;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Price display - mobilde küçük */
    .price-display {
        flex-direction: column;
        align-items: center;
        gap: 1px;
    }

    .price-display img {
        width: 12px;
        height: 12px;
    }

    .price-display span {
        font-size: 10px;
        line-height: 1.2;
    }

    /* Won ve Yang kolonları - mobilde kompakt */
    .won-cell,
    .yang-cell {
        padding: 5px 2px !important;
        text-align: center;
        font-size: 10px !important;
    }

    /* Item info badges - mobilde çok kompakt */
    .item-info-badges {
        gap: 2px !important;
        margin-top: 2px !important;
    }

    .item-info-badge {
        padding: 2px 5px !important;
        gap: 4px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        margin-top: 1px !important;
        border-radius: 4px !important;
    }

    .item-info-badge i,
    .item-info-badge img {
        width: 11px !important;
        height: 11px !important;
    }

    .item-info-badge span {
        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    /* Item icon - mobilde küçük */
    .item-icon-wrapper img {
        width: 32px !important;
        height: 32px !important;
    }

    .developer-credit {
        margin-top: 15px;
        padding: 0 15px;
    }

    .credit-content {
        padding: 8px 12px;
        gap: 6px;
    }

    .credit-text {
        font-size: 11px;
    }

    .credit-name {
        font-size: 12px;
    }

    /* Mobilde body ve container düzenlemeleri */
    body {
        padding: 0 !important;
        overflow: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }

    .container {
        max-height: 100vh !important;
        height: 100vh !important;
        min-height: 100vh !important;
    }

    .shop-window {
        max-height: 100vh !important;
        height: 100vh !important;
        border-radius: 0 !important;
    }
}

/* Pet Bilgileri Stilleri */
.item-info-badge-pet-name {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.item-info-badge-pet-level {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.item-info-badge-pet-hp {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.item-info-badge-pet-def {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.item-info-badge-pet-sp {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Pet Info Section (Tooltip ve Detay Popup) */
.pet-info-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    text-align: center !important;
}

/* Petler için hover-attrs background siyah */
.hover-attrs.has-pet-info,
.hover-attrs:has(.pet-info-section),
.item-popup-preview .hover-attrs.has-pet-info,
.item-popup-preview .hover-attrs:has(.pet-info-section),
.item-detail-container .hover-attrs.has-pet-info,
.item-detail-container .hover-attrs:has(.pet-info-section),
.item-details-content .hover-attrs.has-pet-info,
.item-details-content .hover-attrs:has(.pet-info-section),
.item-detail-unified .hover-attrs.has-pet-info,
.item-detail-unified .hover-attrs:has(.pet-info-section),
.item-hover-preview .hover-attrs.has-pet-info,
.item-hover-preview .hover-attrs:has(.pet-info-section) {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Pet Header (Icon + Name) */
.pet-info-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-align: center !important;
}

.pet-info-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.pet-info-name {
    font-size: 16px;
    font-weight: 700;
    color: #fcd34d !important;
    text-align: center !important;
    margin-bottom: 4px;
}

/* Pet renk class'ları (tooltip_helper.js ile uyumlu) */
.text-line.color-pet-highlight {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

.text-line.color-pet-evolved {
    color: #8acdff !important;
    font-weight: 600 !important;
}

.text-line.color-pet-base {
    color: #86efac !important;
    font-weight: 600 !important;
}

.text-line.color-pet-hp {
    color: #ef4444 !important;
}

.text-line.color-pet-def {
    color: #22c55e !important;
}

.text-line.color-pet-sp {
    color: #3b82f6 !important;
}

.text-line.color-pet-skill {
    color: #e2e8f0 !important;
}

.text-line.color-pet-skill-title {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

.pet-info-row {
    font-size: 12px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 2px;
    text-align: center !important;
}

/* Pet renklendirme - yeniliklerv1 stili */
.pet-info-row.color-pet-highlight {
    color: #fcd34d !important;
}

.pet-info-row.color-pet-base {
    color: #86efac !important;
}

.pet-info-row.color-pet-evolved {
    color: #8acdff !important;
}

.pet-info-row.color-pet-hp {
    color: #b0dfb4 !important;
}

.pet-info-row.color-pet-def {
    color: #b0dfb4 !important;
}

.pet-info-row.color-pet-sp {
    color: #b0dfb4 !important;
}

.pet-info-row.color-pet-skill {
    color: #b0dfb4 !important;
}

.pet-info-row.color-pet-skill-title {
    color: #fdba74 !important;
}

.pet-info-row span {
    display: block;
    text-align: center !important;
}

/* Kalan süre - sarı (görseldeki gibi) */
.pet-info-remaining-time {
    color: #fcd34d !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
    margin-bottom: 6px !important;
    text-align: center !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(252, 211, 77, 0.3) !important;
}

.pet-info-remaining-time span {
    color: #fcd34d !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Pet sahibi ve tip - sarı (görseldeki gibi) */
.pet-info-owner {
    color: #fcd34d !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
}

.pet-info-owner span {
    color: #fcd34d !important;
    font-weight: 600 !important;
}

/* Pet seviye - açık mavi (normal seviye için, temaya uyumlu) */
.pet-info-level {
    color: #60d9ff !important;
    font-weight: 400 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
}

.pet-info-level span {
    color: #60d9ff !important;
    font-weight: 400 !important;
}

/* Pet seviye - evolved (Şamp. Sv) - buz mavisi (#8acdff) */
.pet-info-level-evolved {
    color: #8acdff !important;
    font-weight: 400 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
}

.pet-info-level-evolved span {
    color: #8acdff !important;
    font-weight: 400 !important;
}

/* HP - zümrüt yeşili (canlı) */
.pet-info-hp {
    color: #10b981 !important;
    margin-bottom: 2px !important;
    text-align: center !important;
}

.pet-info-hp span {
    color: #10b981 !important;
}

/* Defans - zümrüt yeşili (canlı) */
.pet-info-def {
    color: #10b981 !important;
    margin-bottom: 2px !important;
    text-align: center !important;
}

.pet-info-def span {
    color: #10b981 !important;
}

/* SP - zümrüt yeşili (canlı) */
.pet-info-sp {
    color: #10b981 !important;
    margin-bottom: 2px !important;
    text-align: center !important;
}

.pet-info-sp span {
    color: #10b981 !important;
}

/* Champion skills - zümrüt yeşili (canlı) */
.pet-info-champion {
    color: #10b981 !important;
    margin-top: 2px;
    margin-bottom: 2px !important;
    text-align: center !important;
}

.pet-info-champion span {
    color: #10b981 !important;
}

/* Normal skills - zümrüt yeşili (canlı) */
.pet-info-skill {
    color: #10b981 !important;
    margin-bottom: 2px !important;
    text-align: center !important;
}

.pet-info-skill span {
    color: #10b981 !important;
}

/* Potansiyel beceriler başlık - sarı */
.pet-info-potential-header {
    color: #fbbf24 !important;
    font-weight: 600 !important;
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    text-align: center !important;
}

.pet-info-potential-header span {
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

/* Potansiyel beceriler - zümrüt yeşili (canlı) */
.pet-info-potential {
    color: #10b981 !important;
    margin-bottom: 2px !important;
    text-align: center !important;
}

.pet-info-potential span {
    color: #10b981 !important;
}

/* Pet Duration (Pet süresi) */
.pet-info-duration {
    color: #e2e8f0 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
}

.pet-info-duration span {
    color: #e2e8f0 !important;
}

/* Pet Type (Pet türü) */
.pet-info-type {
    color: #e2e8f0 !important;
    margin-bottom: 4px !important;
    text-align: center !important;
}

.pet-info-type span {
    color: #e2e8f0 !important;
}

/* Pet Description - beyaz (görseldeki gibi) */
.pet-info-description {
    color: #ffffff !important;
    font-style: italic;
    margin-bottom: 4px !important;
    text-align: center !important;
    padding: 0 8px;
}

.pet-info-description span {
    color: #ffffff !important;
}

/* Pet Age - yaş aşamasına göre özel renkler */
.pet-info-age {
    margin-bottom: 4px !important;
    text-align: center !important;
}

.pet-info-age span {
    font-weight: 500 !important;
}

/* Genç - turkuaz mavi (temaya uyumlu) */
.pet-info-age-genc,
.pet-info-age-genc span {
    color: #06b6d4 !important;
}

/* Yabani - turuncu */
.pet-info-age-yabani,
.pet-info-age-yabani span {
    color: #f97316 !important;
}

/* Cesur - mavi */
.pet-info-age-cesur,
.pet-info-age-cesur span {
    color: #3b82f6 !important;
}

/* Kahraman - altın sarısı */
.pet-info-age-kahraman,
.pet-info-age-kahraman span {
    color: #eab308 !important;
}

/* Uyanmış - mor */
.pet-info-age-uyanmis,
.pet-info-age-uyanmis span {
    color: #a855f7 !important;
}

/* Güçlü - kırmızı-pembe */
.pet-info-age-guclu,
.pet-info-age-guclu span {
    color: #ec4899 !important;
}

/* ============================================
   YENİ ARAMA INPUT YAPISI (Yenilikler klasörü stilinde)
   ============================================ */

/* Group wrapper */
.group.relative.search-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

/* Label stili - küçük, bold, uppercase, indigo-400, tracking-widest */
.search-input-label {
    position: absolute;
    left: 40px;
    /* Icon'dan sonra başla */
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    /* Başlangıç boyutu */
    font-weight: normal;
    color: #64748b;
    /* slate-500 - placeholder rengi */
    text-transform: none;
    letter-spacing: normal;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    background: transparent;
    padding: 0 4px;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 80px);
    /* Icon ve clear button için alan bırak */
}

/* Sunucu input label'ı - icon olmadığı için soldan başla */
#custom-server-select .search-input-label {
    left: 12px !important;
    /* Icon olmadığı için soldan başla */
    max-width: calc(100% - 60px) !important;
    /* Sadece clear button için alan bırak */
}

/* Floating label - aktif durum */
.search-input-wrapper:has(.search-input-field:focus) .search-input-label,
.search-input-wrapper:has(.search-input-field:not(:placeholder-shown)) .search-input-label,
.search-input-wrapper:has(.search-input-field.has-selection) .search-input-label,
.search-input-wrapper:has(.search-input-field[value]:not([value=""])) .search-input-label {
    top: 0;
    transform: translateY(-50%) scale(0.75);
    font-size: 10px;
    font-weight: 700;
    color: #818cf8;
    /* indigo-400 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(15, 23, 42, 0.95);
    /* Input background ile aynı */
    padding: 0 6px;
    margin-left: 0;
}

/* Readonly input için (sunucu, sıralama) */
.search-input-wrapper:has(.search-input-field[readonly]:not([value=""])) .search-input-label,
.search-input-wrapper:has(.search-input-field[readonly].has-selection) .search-input-label {
    top: 0;
    transform: translateY(-50%) scale(0.75);
    font-size: 10px;
    font-weight: 700;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(15, 23, 42, 0.95);
    padding: 0 6px;
    margin-left: 0;
}

/* Input field container */
.search-input-wrapper .relative {
    position: relative;
}

/* SVG icon container */
.search-input-wrapper .absolute.inset-y-0.left-0.pl-3 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding-left: 12px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

/* SVG icon stili */
.search-input-wrapper svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    /* text-slate-400 */
    transition: color 0.2s ease;
}

/* Group focus-within için SVG rengi */
.group:focus-within svg,
.search-input-wrapper:focus-within svg {
    color: #818cf8;
    /* text-indigo-400 */
}

/* Input field stili */
.search-input-field {
    display: block;
    width: 100%;
    padding: 18px 12px 6px 40px;
    /* Üst padding artırıldı label için */
    font-size: 14px;
    /* text-sm */
    background: rgba(15, 23, 42, 0.9);
    /* bg-slate-900/90 */
    border: 1px solid #475569;
    /* border-slate-600 */
    border-radius: 12px;
    /* rounded-xl */
    color: #ffffff;
    /* text-white */
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    /* shadow-inner */
    outline: none;
}

/* Sunucu input'u için özel stil - icon olmadığı için daha geniş */
#server-search-input {
    padding: 18px 12px 6px 12px !important;
    /* Icon olmadığı için sol padding azaltıldı */
    min-width: 100% !important;
    width: 100% !important;
}

/* Sunucu input label'ı - icon olmadığı için soldan başla */
#custom-server-select .search-input-label {
    left: 12px !important;
    /* Icon olmadığı için soldan başla */
}

#custom-server-select .search-input-wrapper:has(.search-input-field:focus) .search-input-label,
#custom-server-select .search-input-wrapper:has(.search-input-field:not(:placeholder-shown)) .search-input-label,
#custom-server-select .search-input-wrapper:has(.search-input-field.has-selection) .search-input-label,
#custom-server-select .search-input-wrapper:has(.search-input-field[readonly]:not([value=""])) .search-input-label {
    left: 12px !important;
    /* Icon olmadığı için soldan başla */
    margin-left: 0 !important;
}

/* Placeholder gizle - label kullanıyoruz */
.search-input-field::placeholder {
    color: transparent;
    opacity: 0;
}

/* Focus durumunda placeholder göster (label yukarıda olduğu için) */
.search-input-wrapper:has(.search-input-field:focus) .search-input-field::placeholder,
.search-input-wrapper:has(.search-input-field:not(:placeholder-shown)) .search-input-field::placeholder {
    color: #64748b;
    opacity: 1;
}

/* Th içindeki input için placeholder - label görünürken gizle */
#th-count .search-input-field::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}

/* Th içindeki input focus olduğunda placeholder göster */
#th-count .search-input-wrapper:has(.search-input-field:focus) .search-input-field::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.search-input-field::placeholder {
    color: #64748b;
    /* placeholder-slate-500 */
}

.search-input-field:focus {
    border-color: #818cf8;
    /* focus:border-indigo-500 */
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    /* focus:ring-2 focus:ring-indigo-500 */
}

/* Clear button stili */
.clear-search-btn {
    position: absolute;
    right: 12px;
    /* right-3 */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    /* w-5 */
    height: 20px;
    /* h-5 */
    background: #334155;
    /* bg-slate-700 */
    border: none;
    border-radius: 50%;
    /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    /* text-gray-300 */
    font-size: 12px;
    /* text-xs */
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.clear-search-btn:hover {
    background: #475569;
    /* hover:bg-slate-600 */
}

.clear-search-btn.hidden {
    display: none;
}

/* Suggestions container */
.search-input-wrapper .search-suggestions {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: 4px;
    /* mt-1 */
    background: #1e293b;
    /* bg-slate-800 */
    border: 1px solid #475569;
    /* border-slate-600 */
    border-radius: 12px;
    /* rounded-xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* shadow-2xl */
    max-height: 256px;
    /* max-h-64 */
    overflow-y: auto;
    display: none;
}

/* Server display div */
.server-display {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 12px 12px;
    /* Icon olmadığı için sol padding azaltıldı */
    pointer-events: none;
    /* Input'a tıklamayı engellemez */
    color: #ffffff;
    font-size: 14px;
    z-index: 2;
    background: transparent;
    cursor: pointer;
    /* Cursor'u pointer yap */
}

/* Server input için transparent text */
#server-search-input.has-selection {
    color: transparent !important;
    caret-color: transparent !important;
}

.server-display {
    position: absolute !important;
    left: 0px !important;
    /* Icon olmadığı için soldan başla */
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    pointer-events: none !important;
    z-index: 2 !important;
    width: calc(100% - 0px) !important;
    /* Clear button için alan bırak */
    overflow: hidden !important;
}

.server-display-icon {
    flex-shrink: 0;
    object-fit: contain;
}

.server-display-prefix {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    /* Sunucu adı ile arasında boşluk */
}

.server-display-suffix {
    width: 16px;
    height: 16px;
}

.server-display-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    margin-right: 6px;
    /* Suffix iconlar ile arasında boşluk */
}

.server-display-suffix-group {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
    /* En sağa hizala */
    flex-shrink: 0 !important;
}

/* Category options için daha yüksek z-index */
#category-options {
    z-index: 999999999 !important;
    border-radius: 12px !important;
    /* rounded-xl */
}

/* Tüm dropdown'lar için rounded-xl */
#custom-server-select-dropdown,
#custom-sort-select-dropdown {
    border-radius: 12px !important;
    /* rounded-xl */
}

.search-input-wrapper .search-suggestions:not(.hidden) {
    display: block;
}

/* Dropdown'lar için custom-scrollbar class'ı ekle */
.search-suggestions.custom-scrollbar,
.custom-server-select-dropdown.custom-scrollbar,
.custom-sort-select-dropdown.custom-scrollbar,
#category-options.custom-scrollbar {
    overflow-y: auto;
}

/* Mobil için özel stiller */
@media (max-width: 768px) {
    .search-input-field {
        font-size: 16px !important;
        padding: 18px 40px 6px 40px !important;
        /* Üst padding label için */
        min-height: 44px !important;
    }

    /* Sunucu input'u için özel - icon olmadığı için */
    #server-search-input {
        padding: 18px 12px 6px 12px !important;
    }

    .search-input-wrapper:has(.search-input-field:focus) {
        z-index: 999999 !important;
        position: relative !important;
    }

    .search-input-wrapper .search-suggestions {
        position: fixed !important;
        z-index: 99999999 !important;
    }

    #category-options {
        z-index: 999999999 !important;
    }
}

/* ============================================
   MODERN CUSTOM SCROLLBAR (Yenilikler klasöründen)
   ============================================ */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 10px;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

.custom-scrollbar::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.3);
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 rgba(15, 23, 42, 0.3);
}

/* Dropdown'lar için scrollbar */
.search-suggestions.custom-scrollbar,
.custom-server-select-dropdown.custom-scrollbar,
.custom-sort-select-dropdown.custom-scrollbar,
#category-options.custom-scrollbar {
    overflow-y: auto;
}

/* ============================================
   TÜM SCROLL ALANLARINA MAVİMSİ SCROLLBAR
   ============================================ */

/* Firefox */
.enchantment-widget-content,
.enchantment-widget-body,
.enchantment-widget-options,
.enchantment-widget-selected-list,
.enchantment-widget-tab-content,
.market-table-container,
.item-details-popup,
.item-details-popup-content,
.item-details-popup-body,
.modal-content,
.modal,
.pet-skills-options,
html {
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 rgba(15, 23, 42, 0.3);
}

/* Webkit - genişlik/yükseklik */
.enchantment-widget-content::-webkit-scrollbar,
.enchantment-widget-body::-webkit-scrollbar,
.enchantment-widget-options::-webkit-scrollbar,
.enchantment-widget-selected-list::-webkit-scrollbar,
.enchantment-widget-tab-content::-webkit-scrollbar,
.market-table-container::-webkit-scrollbar,
.item-details-popup::-webkit-scrollbar,
.item-details-popup-content::-webkit-scrollbar,
.item-details-popup-body::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.pet-skills-options::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Webkit - track */
.enchantment-widget-content::-webkit-scrollbar-track,
.enchantment-widget-body::-webkit-scrollbar-track,
.enchantment-widget-options::-webkit-scrollbar-track,
.enchantment-widget-selected-list::-webkit-scrollbar-track,
.enchantment-widget-tab-content::-webkit-scrollbar-track,
.market-table-container::-webkit-scrollbar-track,
.item-details-popup::-webkit-scrollbar-track,
.item-details-popup-content::-webkit-scrollbar-track,
.item-details-popup-body::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track,
.pet-skills-options::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
}

/* Webkit - thumb (mavimsi indigo gradient) */
.enchantment-widget-content::-webkit-scrollbar-thumb,
.enchantment-widget-body::-webkit-scrollbar-thumb,
.enchantment-widget-options::-webkit-scrollbar-thumb,
.enchantment-widget-selected-list::-webkit-scrollbar-thumb,
.enchantment-widget-tab-content::-webkit-scrollbar-thumb,
.market-table-container::-webkit-scrollbar-thumb,
.item-details-popup::-webkit-scrollbar-thumb,
.item-details-popup-content::-webkit-scrollbar-thumb,
.item-details-popup-body::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb,
.pet-skills-options::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 10px;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

/* Webkit - thumb hover */
.enchantment-widget-content::-webkit-scrollbar-thumb:hover,
.enchantment-widget-body::-webkit-scrollbar-thumb:hover,
.enchantment-widget-options::-webkit-scrollbar-thumb:hover,
.enchantment-widget-selected-list::-webkit-scrollbar-thumb:hover,
.enchantment-widget-tab-content::-webkit-scrollbar-thumb:hover,
.market-table-container::-webkit-scrollbar-thumb:hover,
.item-details-popup::-webkit-scrollbar-thumb:hover,
.item-details-popup-content::-webkit-scrollbar-thumb:hover,
.item-details-popup-body::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover,
.pet-skills-options::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

/* Corner */
.enchantment-widget-content::-webkit-scrollbar-corner,
.market-table-container::-webkit-scrollbar-corner,
.modal::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.3);
}

/* ============================================
   AKILLI FİLTRELER WIDGET - SEKME YAPISI
   (market.css'te tanımsız, burada ekliyoruz)
   ============================================ */

.enchantment-widget-content {
    display: flex;
    flex-direction: column;
    width: 740px;
    min-width: 0;
    max-width: calc(100vw - 40px);
    max-height: 600px;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.98) 0%, rgba(45, 55, 72, 0.98) 100%);
    border: 1px solid rgba(99, 179, 237, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: widgetSlideIn 0.3s ease-out;
}

@keyframes widgetSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .enchantment-widget-content {
        width: calc(100vw - 40px);
    }
}

.enchantment-widget.minimized .enchantment-widget-content {
    display: none;
}

.enchantment-widget.show .enchantment-widget-content {
    display: flex;
}

.enchantment-widget.minimized .enchantment-widget-toggle {
    display: flex;
}

.enchantment-widget.show .enchantment-widget-toggle {
    display: none;
}

.enchantment-widget-body-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.enchantment-widget-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    background: rgba(11, 14, 17, 0.6);
    border-right: 1px solid rgba(99, 179, 237, 0.15);
    flex-shrink: 0;
    width: 60px;
    align-items: center;
}

.enchantment-widget-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(26, 32, 44, 0.6);
    border: 1px solid rgba(99, 179, 237, 0.15);
    border-radius: 8px;
    padding: 6px 2px;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.2s ease;
    width: 48px;
    min-height: 48px;
    gap: 2px;
}

.enchantment-widget-tab:hover {
    background: rgba(99, 179, 237, 0.12);
    border-color: rgba(99, 179, 237, 0.35);
}

.enchantment-widget-tab.active {
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 179, 237, 0.6);
    box-shadow: 0 0 0 1px rgba(99, 179, 237, 0.3), 0 2px 8px rgba(99, 179, 237, 0.15);
}

.enchantment-widget-tab-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.enchantment-widget-tab-label {
    font-size: 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.enchantment-widget-tab.active .enchantment-widget-tab-label {
    color: #e2e8f0;
}

.enchantment-widget-tab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--accent-yellow, #f0b90b);
    color: #0b0e11;
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 0 2px rgba(11, 14, 17, 0.8);
}

.enchantment-widget-tab-badge:empty,
.enchantment-widget-tab-badge[style*="display: none"] {
    display: none;
}

.enchantment-widget-tab-contents {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.enchantment-widget-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.enchantment-widget-tab-content.active {
    display: flex;
}

.enchantment-widget-body {
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
}

/* ============================================
   DUAL-PANEL LAYOUT (Efsun Tab)
   ============================================ */
.enchantment-widget-dual-panel {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    min-width: 0;
    gap: 0;
    overflow: hidden;
}

.enchantment-widget-panel-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.enchantment-widget-panel-right {
    width: 320px;
    min-width: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: rgba(15, 23, 42, 0.4);
    border-left: 1px solid rgba(99, 179, 237, 0.12);
}

.enchantment-widget-panel-divider {
    width: 0;
    flex-shrink: 0;
}

.enchantment-widget-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(99, 179, 237, 0.1);
    flex-shrink: 0;
}

.enchantment-widget-panel-header i {
    font-size: 14px;
    color: #63b3ed;
}

.enchantment-widget-panel-header.selected-header {
    background: rgba(99, 179, 237, 0.08);
    border-bottom-color: rgba(99, 179, 237, 0.2);
}

.enchantment-widget-selected-count {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* Left panel: search */
.enchantment-widget-panel-left .enchantment-widget-search {
    flex-shrink: 0;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(99, 179, 237, 0.08);
}

.enchantment-widget-panel-left .enchantment-widget-search input {
    width: 100%;
    height: 36px;
    padding: 0 14px 0 36px;
    border: 1px solid rgba(99, 179, 237, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.enchantment-widget-panel-left .enchantment-widget-search input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.enchantment-widget-panel-left .enchantment-widget-search i {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    pointer-events: none;
}

/* Left panel: options container */
.enchantment-widget-panel-left .enchantment-widget-options {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    min-width: 0;
    padding: 8px 6px 8px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Option items - enhanced */
.enchantment-widget-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.15s;
    cursor: url('/imlec/metin2.cur'), auto !important;
}

.enchantment-widget-option:hover {
    background: rgba(99, 179, 237, 0.08);
}

.enchantment-widget-option-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.enchantment-widget-option-checkbox {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enchantment-widget-option-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: url('/imlec/metin2.cur'), auto !important;
    border-radius: 4px;
}

.enchantment-widget-option-name {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enchantment-widget-option:hover .enchantment-widget-option-name {
    color: #e2e8f0;
}

/* Right panel: selected list */
.enchantment-widget-panel-right .enchantment-widget-selected-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    min-width: 0;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enchantment-widget-panel-right .enchantment-widget-empty {
    font-size: 13px;
    padding: 24px 12px;
    color: #475569;
    text-align: center;
    font-style: italic;
}

/* Selected badge card - enhanced */
.enchantment-widget-selected-badge {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 179, 237, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    transition: border-color 0.2s, background 0.2s;
}

.enchantment-widget-selected-badge:hover {
    border-color: rgba(99, 179, 237, 0.3);
    background: rgba(30, 41, 59, 0.8);
}

.enchantment-widget-selected-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.enchantment-widget-selected-controls .relative {
    flex: 1;
    min-width: 0;
    position: relative;
}

.enchantment-widget-selected-controls .enchantment-widget-min-value {
    width: 100%;
    height: 32px;
    padding: 8px 8px 0;
    border: none;
    border-bottom: 1px solid rgba(99, 179, 237, 0.2);
    background: transparent;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.enchantment-widget-selected-controls .enchantment-widget-min-value:focus {
    border-bottom-color: #4f46e5;
}

.enchantment-widget-selected-controls .filter-floating-label {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 8px);
}

.enchantment-widget-selected-controls .enchantment-widget-min-value.has-selection + .filter-floating-label,
.enchantment-widget-selected-controls .enchantment-widget-min-value:focus + .filter-floating-label {
    top: 0;
    transform: translateY(0);
    font-size: 9px;
    color: #4f46e5;
}

.enchantment-widget-selected-remove {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: rgba(246, 70, 93, 0.12);
    color: #f6465d;
    font-size: 16px;
    font-weight: 700;
    cursor: url('/imlec/metin2.cur'), auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}

.enchantment-widget-selected-remove:hover {
    background: rgba(246, 70, 93, 0.25);
}

/* Right panel: actions footer */
.enchantment-widget-panel-right .enchantment-widget-actions-footer {
    flex-shrink: 0;
    padding: 10px 12px;
    border-top: 1px solid rgba(99, 179, 237, 0.1);
}

.enchantment-widget-panel-right .enchantment-widget-clear {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(246, 70, 93, 0.3);
    border-radius: 8px;
    background: rgba(246, 70, 93, 0.08);
    color: #f6465d;
    font-size: 12px;
    font-weight: 600;
    cursor: url('/imlec/metin2.cur'), auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.enchantment-widget-panel-right .enchantment-widget-clear:hover {
    background: rgba(246, 70, 93, 0.18);
}

/* Right panel no-results */
.enchantment-widget-no-results {
    padding: 24px 14px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

/* Mobile: stack panels vertically */
@media (max-width: 768px) {
    .enchantment-widget-dual-panel {
        flex-direction: column;
    }

    .enchantment-widget-panel-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(99, 179, 237, 0.12);
    }

    .enchantment-widget-panel-left .enchantment-widget-options {
        max-height: 200px;
    }

    .enchantment-widget-panel-right .enchantment-widget-selected-list {
        max-height: 160px;
    }

    .enchantment-widget-dual-panel .enchantment-widget-selected-badge {
        flex-direction: row;
        align-items: center;
    }

    .enchantment-widget-dual-panel .enchantment-widget-selected-controls {
        width: auto;
        justify-content: normal;
    }
}

/* Readonly input için cursor */
.search-input-field[readonly] {
    cursor: pointer;
}


#th-count {
    position: relative;
    padding: 8px 12px;
    /* Daha az padding */
    font-weight: 600;
    /* font-semibold */
    text-align: center;
    width: 120px !important;
    min-width: 120px;
    vertical-align: middle;
}

/* Th içindeki search-input-wrapper */
#th-count .search-input-wrapper {
    margin: 0 !important;
    margin-bottom: 0 !important;
    width: 100%;
    overflow: visible !important;
    /* Label'ın taşmasına izin ver */
    display: block !important;
    /* Flow layout - input flow'da */
}

#th-count .search-input-wrapper .relative {
    overflow: visible !important;
    /* Label'ın taşmasına izin ver */
    position: relative !important;
    /* Label position:absolute için gerekli */
    display: block !important;
}

/* Th içindeki input field - başlangıçta normal padding */
#th-count .search-input-field {
    padding: 10px 12px 10px 36px !important;
    /* Başlangıçta normal padding */
    font-size: 13px !important;
    min-height: 40px;
    height: 40px;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Focus veya değer girildiğinde üst padding artır */
#th-count .search-input-wrapper:has(.search-input-field:focus) .search-input-field,
#th-count .search-input-wrapper:has(.search-input-field:not(:placeholder-shown)) .search-input-field,
#th-count .search-input-wrapper:has(.search-input-field.has-selection) .search-input-field {
    padding: 16px 12px 4px 36px !important;
    /* Üst padding label için */
}

/* Th içindeki label - başlangıçta input içinde (placeholder gibi) */
#th-count .search-input-label {
    position: absolute !important;
    left: 36px !important;
    /* Icon'dan sonra */
    top: 0 !important;
    /* Input'un üst kenarı */
    height: 40px !important;
    /* Input ile aynı yükseklik */
    line-height: 40px !important;
    /* Dikey ortala */
    display: flex !important;
    align-items: center !important;
    transform: none !important;
    /* Transform kaldırıldı - flex ile ortalanıyor */
    font-size: 13px !important;
    /* Başlangıç boyutu */
    font-weight: normal !important;
    color: #94a3b8 !important;
    /* Placeholder rengi */
    text-transform: none !important;
    letter-spacing: normal !important;
    background: transparent !important;
    padding: 0 4px !important;
    margin: 0 !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
    max-width: none !important;
    /* Genişlik sınırlamasını kaldır - tam okunabilir */
    transition: all 0.2s ease-in-out !important;
    overflow: visible !important;
    /* Kesilmesini önle */
    text-overflow: clip !important;
    z-index: 2 !important;
}

/* Focus veya değer girildiğinde label aynı yerde kalır (zaten yukarıda) */
#th-count .search-input-wrapper:has(.search-input-field:focus) .search-input-label,
#th-count .search-input-wrapper:has(.search-input-field:not(:placeholder-shown)) .search-input-label,
#th-count .search-input-wrapper:has(.search-input-field.has-selection) .search-input-label {
    top: 0 !important;
    height: 40px !important;
    line-height: 40px !important;
    display: flex !important;
    align-items: flex-start !important;
    padding-top: 2px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #818cf8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    background: rgba(15, 23, 42, 0.95) !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Th içindeki icon */
#th-count .absolute.inset-y-0.left-0.pl-3 {
    padding-left: 10px;
}

#th-count .absolute.inset-y-0.left-0.pl-3 svg {
    width: 14px;
    height: 14px;
}

/* Number input spinner butonlarını gizle */
#countInput::-webkit-inner-spin-button,
#countInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#countInput[type=number] {
    -moz-appearance: textfield;
    /* Firefox için */
    appearance: textfield;
    /* Standard property */
}

/* ============================================
   PRICE FILTER (YANG/WON) STYLES
   ============================================ */

/* Price Filter Inputs - spinner buttons gizle (yenilikler klasöründen) */
#priceFilterPopup input::-webkit-outer-spin-button,
#priceFilterPopup input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#priceFilterPopup input[type="text"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Price Filter Popup - daha dolgun görünüm için */
#priceFilterPopup {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Price Filter Popup - border class'larını kaldır (Bootstrap ve Tailwind) */
#priceFilterPopup.border,
#priceFilterPopup .border,
#priceFilterPopup[class*="border"] {
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
}

/* Tailwind border class'larını da kaldır */
#priceFilterPopup.border-slate-600,
#priceFilterPopup[class*="border-slate"] {
    border: none !important;
    border-width: 0 !important;
}

/* Price Filter Container - boşluklar için */
#priceFilterPopup>div.flex.flex-col {
    margin-top: 1.25rem !important;
    gap: 0.75rem !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Price Filter Row - tek satır için */
.price-filter-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    height: 60px !important;
}


.price-filter-icon {
    flex-shrink: 0 !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.5rem !important;
}

.price-filter-icon.yang-icon {
    background: linear-gradient(to bottom right, rgba(217, 119, 6, 0.2), rgba(234, 88, 12, 0.2)) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.price-filter-icon.won-icon {
    background: linear-gradient(to bottom right, rgba(5, 150, 105, 0.2), rgba(22, 163, 74, 0.2)) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.price-filter-inputs {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

/* Price Filter - Floating Label Styles (underline) */
.price-input-wrapper {
    margin-bottom: 0;
    overflow: visible;
    min-width: 0 !important;
    flex: 1 1 0 !important;
    max-width: calc(50% - 0.25rem) !important;
    flex-shrink: 1 !important;
}

.price-input-wrapper .relative {
    position: relative !important;
    width: 100% !important;
}

.price-input-label {
    position: absolute !important;
    top: 14px !important;
    left: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    pointer-events: none !important;
    transition: all 0.2s ease !important;
    z-index: 10 !important;
    background: transparent !important;
    padding: 0 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.price-input-field:focus+.price-input-label,
.price-input-field:not(:placeholder-shown)+.price-input-label,
.price-input-field.has-selection+.price-input-label {
    top: -6px !important;
    font-size: 10px !important;
}

.price-input-field {
    width: 100% !important;
    padding: 18px 4px 6px 4px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #334155 !important;
    border-radius: 0 !important;
    color: #f1f5f9 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    outline: none !important;
    text-overflow: ellipsis;
    flex-shrink: 1 !important;
    display: block !important;
    position: relative;
    z-index: 1 !important;
    min-height: 36px !important;
    max-width: 100% !important;
}

.price-input-field::placeholder {
    color: transparent !important;
}

/* Yang */
.yang-input {
    border-bottom-color: rgba(251, 191, 36, 0.3) !important;
    color: #fbbf24 !important;
}

.yang-input:focus {
    border-bottom-color: rgba(251, 191, 36, 0.7) !important;
}

.yang-input+.price-input-label {
    color: rgba(251, 191, 36, 0.6) !important;
}

.yang-input:focus+.price-input-label,
.yang-input:not(:placeholder-shown)+.price-input-label,
.yang-input.has-selection+.price-input-label {
    color: #fbbf24 !important;
}

/* Won */
.won-input {
    border-bottom-color: rgba(16, 185, 129, 0.3) !important;
    color: #68d391 !important;
}

.won-input:focus {
    border-bottom-color: rgba(16, 185, 129, 0.7) !important;
}

.won-input+.price-input-label {
    color: rgba(16, 185, 129, 0.6) !important;
}

.won-input:focus+.price-input-label,
.won-input:not(:placeholder-shown)+.price-input-label,
.won-input.has-selection+.price-input-label {
    color: #68d391 !important;
}

/* ============================================
   Level, Plus, Days Filter Boxes Styles
   ============================================ */
body.iframe-mode .flex-1 {
    flex: 1 1 0%;
}

body.iframe-mode .w-full {
    width: 100%;
}

body.iframe-mode .flex {
    display: flex;
}

body.iframe-mode .flex-col {
    flex-direction: column;
}

body.iframe-mode .lg\:flex-row {
    flex-direction: column !important;
    /* Her zaman alt alta */
}

body.iframe-mode .gap-3 {
    gap: 0.75rem;
}

#advancedFiltersSection {
    display: none;
}

#advancedFiltersSection.visible {
    display: block;
}

#levelFilterBox,
#plusFilterBox,
#daysFilterBox {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(71, 85, 105, 1) !important;
    border-radius: 0.75rem !important;
    padding: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

#levelFilterBox:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
}

#levelFilterBox:focus-within {
    border-color: rgba(99, 102, 241, 1) !important;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

#plusFilterBox:hover {
    border-color: rgba(245, 158, 11, 0.5) !important;
}

#plusFilterBox:focus-within {
    border-color: rgba(245, 158, 11, 1) !important;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

#daysFilterBox:hover {
    border-color: rgba(34, 197, 94, 0.5) !important;
}

#daysFilterBox:focus-within {
    border-color: rgba(34, 197, 94, 1) !important;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

#levelFilterBox>div:first-child,
#plusFilterBox>div:first-child,
#daysFilterBox>div:first-child {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(51, 65, 85, 1) !important;
    border-radius: 0.5rem !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}

#levelFilterBox.group:hover>div:first-child,
#plusFilterBox.group:hover>div:first-child,
#daysFilterBox.group:hover>div:first-child {
    color: white !important;
    border-color: currentColor !important;
}

#levelFilterBox.group:hover>div:first-child {
    background: rgba(99, 102, 241, 1) !important;
}

#plusFilterBox.group:hover>div:first-child {
    background: rgba(245, 158, 11, 1) !important;
}

#daysFilterBox.group:hover>div:first-child {
    background: rgba(34, 197, 94, 1) !important;
}

#levelFilterBox>div:nth-child(2),
#plusFilterBox>div:nth-child(2),
#daysFilterBox>div:nth-child(2) {
    flex: 1 1 0% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    padding: 0 0.25rem !important;
}

#levelFilterBox input[type="number"],
#plusFilterBox input[type="number"],
#daysFilterBox input[type="number"] {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    color: white !important;
    font-weight: 500 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

#levelFilterBox input[type="number"]::-webkit-outer-spin-button,
#levelFilterBox input[type="number"]::-webkit-inner-spin-button,
#plusFilterBox input[type="number"]::-webkit-outer-spin-button,
#plusFilterBox input[type="number"]::-webkit-inner-spin-button,
#daysFilterBox input[type="number"]::-webkit-outer-spin-button,
#daysFilterBox input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

#levelFilterBox input[type="number"]::placeholder,
#plusFilterBox input[type="number"]::placeholder,
#daysFilterBox input[type="number"]::placeholder {
    color: rgba(71, 85, 105, 1) !important;
}

#levelFilterBox>div:nth-child(2)>div,
#plusFilterBox>div:nth-child(2)>div,
#daysFilterBox>div:nth-child(2)>div {
    width: 0.625rem !important;
    height: 1px !important;
    background: rgba(71, 85, 105, 1) !important;
}

#levelFilterBox button,
#plusFilterBox button,
#daysFilterBox button {
    width: 1.75rem !important;
    height: 2.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(71, 85, 105, 1) !important;
    transition: color 0.2s ease !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
}

#levelFilterBox button:hover {
    color: rgba(99, 102, 241, 1) !important;
}

#plusFilterBox button:hover {
    color: rgba(245, 158, 11, 1) !important;
}

#daysFilterBox button:hover {
    color: rgba(34, 197, 94, 1) !important;
}

#levelFilterBox button svg,
#plusFilterBox button svg,
#daysFilterBox button svg {
    width: 0.75rem !important;
    height: 0.75rem !important;
}

#levelFilterBox label,
#plusFilterBox label,
#daysFilterBox label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.375rem !important;
    cursor: pointer !important;
    border-left: 1px solid rgba(51, 65, 85, 0.5) !important;
    transition: background-color 0.2s ease !important;
    height: 100% !important;
}

#levelFilterBox label:hover,
#plusFilterBox label:hover,
#daysFilterBox label:hover {
    background: rgba(30, 41, 59, 0.3) !important;
}

#levelFilterBox label input[type="checkbox"],
#plusFilterBox label input[type="checkbox"],
#daysFilterBox label input[type="checkbox"] {
    width: 0.875rem !important;
    height: 0.875rem !important;
    background: rgba(30, 41, 59, 1) !important;
    border: 1px solid rgba(71, 85, 105, 1) !important;
    border-radius: 0.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

#levelFilterBox label input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 1) !important;
}

#levelFilterBox label span {
    margin-left: 0.25rem !important;
    font-size: 0.5625rem !important;
    font-weight: 500 !important;
    color: rgba(148, 163, 184, 1) !important;
    user-select: none !important;
}

/* Level, Plus, Days Filters Container - Her zaman alt alta (mobil ve masaüstü) */
.flex-1.w-full.flex.flex-col,
div.flex-1.w-full.flex {
    flex-direction: column !important;
    width: 100% !important;
    display: flex !important;
    margin-top: 1rem !important;
    /* header-filter-group ile arasına boşluk */
}

/* Tüm ekran boyutlarında alt alta */
#levelFilterBox,
#plusFilterBox,
#daysFilterBox {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    margin-bottom: 0.75rem !important;
    display: flex !important;
}

#levelFilterBox:last-child,
#plusFilterBox:last-child,
#daysFilterBox:last-child {
    margin-bottom: 0 !important;
}

/* lg:flex-row sınıfını override et - her zaman column */
.lg\:flex-row {
    flex-direction: column !important;
}

/* Tüm media query'lerde column olarak kal */
@media (min-width: 1024px) {

    .flex-1.w-full.flex.flex-col,
    div.flex-1.w-full.flex,
    .flex-1.w-full.flex.lg\:flex-row {
        flex-direction: column !important;
    }

    #levelFilterBox,
    #plusFilterBox,
    #daysFilterBox {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================ */
/* Premium Required Modal / Seller History Modal / (!) Button    */
/* ============================================================ */
.tg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.tg-modal {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tg-modal-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.tg-modal-close:hover { color: #fff; }

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}
.tg-btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.tg-btn-primary:hover { background: #1d4ed8; }
.tg-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.15);
}
.tg-btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

.seller-history-btn {
    background: transparent;
    border: 1px solid rgba(255, 200, 87, 0.4);
    color: #ffc857;
    padding: 0;
    margin-left: 6px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}
.seller-history-btn:hover {
    background: rgba(255, 200, 87, 0.15);
    border-color: #ffc857;
    color: #fff;
}
.seller-history-svg {
    display: block;
}

/* Custom category option locked (premium gerekli) */
.custom-category-option.locked {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}
.custom-category-option.locked::after {
    content: "🔒";
    margin-left: 8px;
    font-size: 12px;
}

/* ============================================================================
   PREMIUM ITEM HISTORY MODAL – Eşya İşlem Geçmişi (v2 Premium Redesign)
   ============================================================================ */

/* Overlay */
.ihm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* Panel */
.ihm-panel {
    background: linear-gradient(145deg, #1a1033 0%, #0f172a 40%, #0c0f1a 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    width: auto !important;
    min-width: 760px !important;
    max-width: 95vw !important;
    min-height: 300px !important;
    height: auto !important;
    max-height: 60vh !important;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.1),
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 80px rgba(168, 85, 247, 0.08);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: none;
}

.ihm-panel-enter {
    animation: ihmSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ihmSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Header ─── */
.ihm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.ihm-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ihm-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.ihm-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
}

.ihm-item-img-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    padding: 2px;
}

.ihm-title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ihm-title {
    margin: 0;
    color: #f1f5f9;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

.ihm-subtitle {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.ihm-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
    flex-shrink: 0;
}


.ihm-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Live status bar in left preview panel */
.ihm-live-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(30, 41, 59, 0.4);
}
.ihm-live-bar.ihm-live-active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.ihm-live-bar.ihm-live-stale {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

/* Sonar efekti */
.ihm-live-dot.sonar {
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: ihmSonar 1.5s ease-in-out infinite;
}
@keyframes ihmSonar {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ihm-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ihm-refresh-btn, .ihm-close-btn {
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ihm-refresh-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    color: #c4b5fd;
    transform: rotate(45deg);
}

.ihm-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ─── Tabs ─── */
.ihm-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 22px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    background: rgba(15, 23, 42, 0.4);
}

.ihm-tab {
    background: rgba(51, 65, 85, 0.3);
    color: #94a3b8;
    border: 1px solid rgba(71, 85, 105, 0.3);
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ihm-tab:hover:not(.ihm-tab-locked) {
    background: rgba(168, 85, 247, 0.12);
    color: #e2e8f0;
    border-color: rgba(168, 85, 247, 0.3);
}

.ihm-tab.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.ihm-tab-locked {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
}

.ihm-tab-locked:hover {
    opacity: 0.65;
    background: rgba(168, 85, 247, 0.08);
}

/* ─── Body ─── */
.ihm-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 22px;
    color: #cbd5e1;
}

/* ─── Split Layout ─── */
.ihm-body-split {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    overflow: hidden;
    flex: 1;
}

.ihm-left-panel {
    width: auto !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ihm-middle-panel {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.ihm-middle-panel::-webkit-scrollbar { width: 5px; }
.ihm-middle-panel::-webkit-scrollbar-track { background: transparent; }
.ihm-middle-panel::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.2); border-radius: 10px; }

/* ─── Left Panel Container ─── */
.ihm-item-preview-container {
    flex: 1;
    overflow: visible !important;
}

/* ─── Real Tooltip Embedded in Left Panel ─── */
/* Override the floating tooltip styles when displayed inline */
.item-popup-preview.item-hover-preview.ihm-real-tooltip {
    position: relative !important;
    width: max-content !important;
    min-width: 220px !important;
    max-width: 350px !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Keep the inner item-hover-preview box looking nice in panel */
.ihm-item-preview-container .item-popup-preview {
    position: relative !important;
    width: max-content !important;
    max-width: 350px !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.ihm-left-loading {
    color: #475569;
    font-size: 12px;
    text-align: center;
    padding: 40px 12px;
    font-style: italic;
}

/* ─── Item Preview Card (left panel) ─── */
.ihm-item-preview-card {
    background: linear-gradient(145deg, rgba(26,16,51,0.8), rgba(15,23,42,0.7));
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.ihm-item-preview-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a855f7, transparent);
}

.ihm-item-img-big {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(168,85,247,0.5));
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 10px;
    background: rgba(15,23,42,0.5);
    padding: 6px;
    transition: filter 0.3s;
}

.ihm-item-img-big:hover {
    filter: drop-shadow(0 0 24px rgba(168,85,247,0.8));
}

.ihm-item-name-card {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    word-break: break-word;
}

.ihm-item-id-card {
    color: #475569;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
}

.ihm-item-price-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.ihm-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(51,65,85,0.4);
}

.ihm-price-row-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ihm-price-row-value {
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.ihm-price-row-value.yang { color: rgb(255, 200, 0); }
.ihm-price-row-value.won  { color: #34d399; }

.ihm-item-meta-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.ihm-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(51,65,85,0.2);
}

.ihm-meta-row:last-child { border-bottom: none; }

.ihm-meta-label {
    color: #475569;
    font-weight: 500;
}

.ihm-meta-value {
    color: #94a3b8;
    font-weight: 600;
    text-align: right;
}

.ihm-meta-value.active  { color: #10b981; }
.ihm-meta-value.offline { color: #ef4444; }

.ihm-empty-preview {
    color: #475569;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* ─── Responsive Split ─── */
@media (max-width: 760px) {
    .ihm-body-split {
        flex-direction: column;
        overflow-y: auto;
    }
    .ihm-left-panel {
        width: 100%;
    }
    .ihm-middle-panel {
        overflow-y: visible;
    }
}

.ihm-body::-webkit-scrollbar {
    width: 6px;
}

.ihm-body::-webkit-scrollbar-track {
    background: transparent;
}

.ihm-body::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 10px;
}

.ihm-body::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}

/* ─── Stats Row ─── */
.ihm-stats-row, .ihm-chart-wrap {
    display: none !important;
}

.ihm-stat-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.4);
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    transition: border-color 0.2s;
}

.ihm-stat-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.ihm-stat-label {
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    margin-bottom: 5px;
}

.ihm-stat-value {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ihm-stat-high { color: #ef4444; }
.ihm-stat-low  { color: #10b981; }

/* ─── Chart ─── */
.ihm-chart-wrap {
    margin-bottom: 18px;
    min-height: 200px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    padding: 12px;
}

.ihm-chart-svg {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ─── Timeline Header ─── */
.ihm-timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.ihm-timeline-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c4b5fd;
    font-size: 14px;
    font-weight: 600;
}

.ihm-event-count {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

/* ─── Timeline ─── */
.ihm-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.ihm-timeline::-webkit-scrollbar {
    width: 5px;
}

.ihm-timeline::-webkit-scrollbar-track {
    background: transparent;
}

.ihm-timeline::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 10px;
}

/* ─── Timeline (Süreç Çubuğu) ─── */
.tl-track {
    position: relative;
    padding-left: 48px;
}

.tl-item {
    position: relative;
    padding-bottom: 24px;
}
.tl-item:last-child {
    padding-bottom: 0;
}

/* Dikey çizgi - dot merkezinden başla */
.tl-line {
    position: absolute;
    left: -20px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(71, 85, 105, 0.5), rgba(71, 85, 105, 0.15));
}
.tl-item:last-child .tl-line {
    display: none;
}

/* Nokta - çizgiyle aynı eksende ortalanmış */
.tl-dot {
    position: absolute;
    left: -33px;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tl-item:hover .tl-dot {
    transform: scale(1.18);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.9), 0 0 16px currentColor;
}

/* Dot renkleri - opak arkaplan */
.tl-dot-new        { background: rgba(59,130,246,0.85); color: #fff; }
.tl-dot-price-up   { background: rgba(239,68,68,0.85);  color: #fff; }
.tl-dot-price-down { background: rgba(16,185,129,0.85); color: #fff; }
.tl-dot-seller     { background: rgba(251,191,36,0.85); color: #1e293b; }
.tl-dot-qty        { background: rgba(167,139,250,0.85);color: #fff; }
.tl-dot-attrs      { background: rgba(52,211,153,0.85); color: #1e293b; }
.tl-dot-sockets    { background: rgba(244,114,182,0.85);color: #fff; }
.tl-dot-elem       { background: rgba(251,146,60,0.85); color: #1e293b; }
.tl-dot-removed    { background: rgba(107,114,128,0.85);color: #fff; }
.tl-dot-reappeared { background: rgba(168,85,247,0.85); color: #fff; }

/* İçerik */
.tl-body {
    background: rgba(30, 41, 59, 0.15);
    border: 1px solid rgba(51, 65, 85, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    transition: background 0.15s;
    cursor: default;
}
.tl-item[data-ev] .tl-body {
    cursor: pointer;
}
.tl-item[data-ev] .tl-body:hover {
    background: rgba(30, 41, 59, 0.35);
    border-color: rgba(71, 85, 105, 0.3);
}

.tl-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.tl-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 1px 6px;
    border-radius: 4px;
}
.tl-label-new        { background: rgba(59,130,246,0.15); color: #60a5fa; }
.tl-label-price-up   { background: rgba(239,68,68,0.15);  color: #fca5a5; }
.tl-label-price-down { background: rgba(16,185,129,0.15); color: #86efac; }
.tl-label-seller     { background: rgba(251,191,36,0.15); color: #fde68a; }
.tl-label-qty        { background: rgba(167,139,250,0.15);color: #c4b5fd; }
.tl-label-attrs      { background: rgba(52,211,153,0.15); color: #86efac; }
.tl-label-sockets    { background: rgba(244,114,182,0.15);color: #f9a8d4; }
.tl-label-elem       { background: rgba(251,146,60,0.15); color: #fdba74; }
.tl-label-removed    { background: rgba(107,114,128,0.15);color: #9ca3af; }
.tl-label-reappeared { background: rgba(168,85,247,0.15); color: #c4b5fd; }

.tl-time {
    font-size: 11px;
    color: #64748b;
}

.tl-count {
    font-size: 10px;
    font-weight: 700;
    color: #c4b5fd;
    background: rgba(168, 85, 247, 0.15);
    padding: 0 5px;
    border-radius: 4px;
    line-height: 16px;
}

.tl-text {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.4;
}

.ihm-event-seller {
    font-size: 12px;
    font-weight: 500;
}

.ihm-detail-old {
    color: #64748b;
    text-decoration: line-through;
    text-decoration-color: rgba(100, 116, 139, 0.4);
}

.ihm-detail-new {
    color: #e2e8f0;
    font-weight: 600;
}

.ihm-price-up {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.ihm-price-down {
    color: #86efac;
    background: rgba(16, 185, 129, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

/* ─── Hover Preview Popup (mor arka planlı, kullanılmıyor) ─── */
/* .ihm-preview-popup stilleri korunuyor, geri dönüş için */

/* ─── Gerçek tooltip flyout (arka plansız, sadece tooltip) ─── */
.ihm-real-tooltip-flyout {
    position: fixed;
    z-index: 10100;
    pointer-events: none;
}
.ihm-real-tooltip-flyout .item-popup-preview.item-hover-preview.ihm-real-tooltip {
    position: relative !important;
    width: max-content !important;
    max-width: 400px !important;
    margin: 0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.ihm-preview-title {
    color: #c4b5fd;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.ihm-preview-section {
    color: #a78bfa;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 5px;
}

.ihm-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
    color: #cbd5e1;
    gap: 6px;
}

.ihm-preview-changed {
    background: rgba(168, 85, 247, 0.06);
    border-radius: 4px;
    padding: 3px 6px;
    margin: 0 -6px;
}

.ihm-preview-key {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.ihm-preview-old {
    color: #64748b;
    text-decoration: line-through;
    font-size: 11px;
}

.ihm-preview-new {
    color: #c4b5fd;
    font-weight: 600;
    font-size: 11px;
}

.ihm-muted {
    color: #475569;
    font-style: italic;
}

/* ─── Premium Gate Notification ─── */
.ihm-premium-gate {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(124, 58, 237, 0.06));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    animation: ihmGateIn 0.3s ease-out;
    position: relative;
}

@keyframes ihmGateIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ihm-gate-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

.ihm-gate-text {
    flex: 1;
}

.ihm-gate-text strong {
    color: #c4b5fd;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.ihm-gate-text p {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

.ihm-gate-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 2px;
}

.ihm-gate-close:hover {
    color: #cbd5e1;
}

/* ─── Login Gate (Giriş Uyarısı) ─── */
.ihm-login-gate,
.ihm-login-gate-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    color: #e2e8f0;
}

.ihm-login-gate-inline {
    min-height: 300px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    margin: 8px 0;
}

.ihm-login-gate-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    margin-bottom: 16px;
}

.ihm-login-gate-inline .ihm-login-gate-icon {
    width: 64px;
    height: 64px;
    background: rgba(168, 85, 247, 0.08);
    margin-bottom: 14px;
}

.ihm-login-gate-title {
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 8px 0;
}

.ihm-login-gate-inline .ihm-login-gate-title {
    font-size: 15px;
}

.ihm-login-gate-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 22px 0;
    max-width: 340px;
    line-height: 1.5;
}

.ihm-login-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.ihm-login-gate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, #b366ff 0%, #8b4dff 100%);
}

.ihm-login-gate-btn:active {
    transform: translateY(0);
}

/* ─── Loading / Empty ─── */
.ihm-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #64748b;
    font-size: 13px;
}

.ihm-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: ihmSpin 0.7s linear infinite;
}

@keyframes ihmSpin {
    to { transform: rotate(360deg); }
}

.ihm-empty {
    text-align: center;
    color: #475569;
    padding: 30px;
    font-size: 13px;
}

/* ─── History Button in Table Rows ─── */
.tg-item-history-btn {
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 5px;
    padding: 3px 6px;
    cursor: pointer;
    font-size: 13px;
    color: #a78bfa;
    transition: all 0.2s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.tg-item-history-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
    color: #c4b5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}

.tg-item-history-btn:active {
    transform: translateY(0);
}

.tg-item-history-btn i {
    font-size: 12px;
}

/* Old .item-history-btn compat */
.item-history-btn {
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 5px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #a78bfa;
    transition: all 0.2s;
    line-height: 1;
}

.item-history-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.item-history-btn:active {
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .ihm-overlay {
        padding: 8px;
    }
    .ihm-panel {
        max-height: 95vh;
        border-radius: 12px;
    }
    .ihm-header {
        padding: 12px 14px;
        flex-wrap: wrap;
    }
    .ihm-title {
        font-size: 14px;
        max-width: 200px;
    }
    .ihm-tabs {
        padding: 8px 14px;
        overflow-x: auto;
    }
    .ihm-tab {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    .ihm-stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    .ihm-body {
        padding: 14px;
    }
    .ihm-event-card {
        padding: 8px 10px;
    }
    .ihm-preview-popup {
        width: 260px;
    }
}

/* Timeline */
.tg-timeline { list-style: none; padding: 0; margin: 0; }
.tg-timeline-item {
    position: relative;
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tg-timeline-item:last-child { border-bottom: none; }
.tg-timeline-dot {
    position: absolute;
    left: 6px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}
.tg-timeline-content {
    color: #e5e7eb;
}

/* ============================================
   CHANGELOOK OVERLAY (Yansıtma rozeti)
   ============================================ */
.changelook-overlay {
    position: absolute !important;
    top: -1px !important;
    left: -1px !important;
    width: 25px !important;
    height: 25px !important;
    z-index: 12 !important;
    pointer-events: none !important;
    display: block !important;
}

.changelook-overlay-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.item-icon-wrapper .changelook-overlay,
.hover-icon-wrapper .changelook-overlay {
    width: 25px !important;
    height: 25px !important;
    top: -1px !important;
    left: -1px !important;
}

/* ============================================
   PET FİLTRE (Ticaret Camı - Sekme)
   ============================================ */

/* Bölüm etiketi */
.pet-section-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 0 6px 0;
    display: block;
}

/* Pet tipi butonları (1-8) */
.pet-type-section {
    margin-bottom: 4px;
}

.pet-type-buttons {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.pet-type-btn {
    height: 32px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pet-type-btn:hover {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fde68a;
}

.pet-type-btn.active {
    background: rgba(251, 191, 36, 0.18);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.4);
}

/* Seviye + Şampiyon satırı */
.pet-level-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    align-items: stretch;
}

.pet-level-input-wrap {
    flex: 1;
    position: relative;
}

.pet-input {
    width: 100%;
    height: 38px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #fde68a;
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.12s ease;
}

.pet-input:focus {
    border-color: #fbbf24;
}

.pet-input::-webkit-outer-spin-button,
.pet-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pet-input[type="number"] {
    -moz-appearance: textfield;
}

/* Floating label input */
.filter-floating-input {
    width: 100%;
    height: 38px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #fde68a;
    font-size: 13px;
    font-weight: 500;
    padding: 14px 12px 0 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.12s ease;
}

.filter-floating-input:focus {
    border-color: #fbbf24;
}

.filter-floating-input:focus + .filter-floating-label,
.filter-floating-input:not(:placeholder-shown) + .filter-floating-label,
.filter-floating-input.has-selection + .filter-floating-label {
    top: 4px;
    font-size: 9px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.filter-floating-input::-webkit-outer-spin-button,
.filter-floating-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.item-details-popup-content {
    pointer-events: auto;
    /* Modal part */
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
}

@media (max-width: 1023px) {
    .flex-1.w-full.flex.flex-col,
    div.flex-1.w-full.flex {
        flex-direction: column !important;
    }

    #levelFilterBox,
    #plusFilterBox,
    #daysFilterBox {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ─── Two-Column Split Layout for History Modal ─── */
.ihm-body-split {
    display: flex !important;
    gap: 20px;
    height: auto !important;
    min-height: 0;
    flex: 1;
    overflow: hidden !important;
    padding: 18px 22px;
}

.ihm-left-panel {
    width: auto !important;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: none !important;
}

.ihm-middle-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 4px;
}

.ihm-item-preview-container {
    width: 100%;
}

.ihm-empty-preview {
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
    margin-top: 40px;
}

.ihm-left-panel::-webkit-scrollbar,
.ihm-middle-panel::-webkit-scrollbar {
    width: 6px;
}

.ihm-left-panel::-webkit-scrollbar-thumb,
.ihm-middle-panel::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 3px;
}

.ihm-left-panel::-webkit-scrollbar-thumb:hover,
.ihm-middle-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}

@media (max-width: 768px) {
    .ihm-body-split {
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    .ihm-left-panel {
        width: 100% !important;
        max-height: 320px;
        overflow-y: auto !important;
        align-items: center !important;
    }
    .ihm-middle-panel {
        overflow-y: visible !important;
    }
}

/* ============================================
   AKILLI FİLTRELER WIDGET - EKSİK STİLLER
   (Sidebar header tabs + tab content sections)
   ============================================ */

/* ---- Sidebar Header Filter Tabs (4 icon row) ---- */
.header-filter-group.enchantment-filter {
    margin-bottom: 6px;
}

.header-filter-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.header-filter-tab {
    position: relative;
    height: 40px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.15s ease;
    padding: 0;
    overflow: hidden;
}

.header-filter-tab:hover {
    background: rgba(99, 179, 237, 0.1);
    border-color: rgba(99, 179, 237, 0.4);
}

.header-filter-tab.active {
    background: linear-gradient(135deg, rgba(99, 179, 237, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(99, 179, 237, 0.6);
    box-shadow: 0 0 0 1px rgba(99, 179, 237, 0.3);
}

.header-filter-tab-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.header-filter-tab-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #f0b90b;
    color: #0b0e11;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    box-shadow: 0 0 0 2px rgba(11, 14, 17, 0.8);
}

.header-filter-tab-badge:empty,
.header-filter-tab-badge[style*="display: none"] {
    display: none;
}

/* ---- Widget Tab Content (generic) ---- */
.filter-tab-content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---- Filter Input Rows & Groups ---- */
.filter-input-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.filter-input-group {
    position: relative;
    flex: 1;
    min-width: 0;
}

.filter-input-group .relative {
    position: relative;
    width: 100%;
}

.filter-input-third {
    flex: 1 1 0;
    min-width: 0;
}

/* ---- Floating Label ---- */
.filter-floating-label {
    position: absolute;
    top: 11px;
    left: 12px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.15s ease;
    background: transparent;
    padding: 0;
    z-index: 2;
}

.filter-floating-input::placeholder {
    color: transparent;
}

/* ---- Pet Level Input Wrap ---- */
.pet-level-input-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

.pet-level-input {
    width: 100%;
}

/* ---- Pet Champion Toggle (Şampiyon checkbox) ---- */
.pet-champion-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    cursor: url('/imlec/metin2.cur'), auto !important;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    height: 38px;
    transition: all 0.15s ease;
    user-select: none;
}

.pet-champion-toggle:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.04);
}

.pet-champion-toggle:has(.filter-checkbox:checked) {
    background: rgba(251, 191, 36, 0.12);
    border-color: #fbbf24;
    color: #fde68a;
}

.filter-checkbox {
    width: 14px;
    height: 14px;
    accent-color: #fbbf24;
    cursor: url('/imlec/metin2.cur'), auto !important;
    flex-shrink: 0;
}

/* ---- Pet Age Row ---- */
.pet-age-row {
    display: flex;
    gap: 6px;
    margin-bottom: 0;
}

.pet-age-input-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

/* ---- Pet Base Section (Başlangıç Değerleri) ---- */
.pet-base-section {
    margin-top: 4px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 8px;
    padding: 8px 10px;
}

.pet-base-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
    cursor: pointer;
    user-select: none;
}

.pet-base-header-static {
    cursor: default;
}

.pet-base-section-title {
    font-size: 10px;
    color: #fde68a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pet-base-section-hint {
    font-size: 9px;
    color: #64748b;
    font-style: italic;
}

.pet-base-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pet-base-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pet-base-cell-label {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.pet-base-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pet-base-input {
    width: 100%;
    height: 32px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 5px;
    color: #fde68a;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    padding: 0 20px 0 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.12s ease;
}

.pet-base-input:focus {
    border-color: #fbbf24;
}

.pet-base-spinner {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pet-base-spin-btn {
    width: 14px;
    height: 13px;
    background: transparent;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('/imlec/metin2.cur'), auto !important;
    padding: 0;
    transition: color 0.12s ease;
}

.pet-base-spin-btn:hover {
    color: #fbbf24;
}

/* ---- Pet Skills Section ---- */
.pet-skills-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.pet-skills-search {
    margin-bottom: 4px;
}

.pet-skills-search-input {
    width: 100%;
    height: 32px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 12px;
    padding: 0 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.12s ease;
}

.pet-skills-search-input:focus {
    border-color: #fbbf24;
}

.pet-skills-search-input::placeholder {
    color: #64748b;
}

.pet-skills-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 160px;
    overflow-y: auto;
    padding: 4px 0;
}

.pet-skill-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.12s ease;
    user-select: none;
}

.pet-skill-option:hover {
    background: rgba(99, 179, 237, 0.08);
    border-color: rgba(99, 179, 237, 0.25);
}

.pet-skill-option.selected {
    background: rgba(251, 191, 36, 0.12);
    border-color: #fbbf24;
}

.pet-skill-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #fbbf24;
    cursor: url('/imlec/metin2.cur'), auto !important;
    flex-shrink: 0;
}

.pet-skill-option-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
}

.pet-skill-option-name {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Belt Input ---- */
.belt-input {
    width: 100%;
}

/* ---- Element Selector (Kuşak tab) ---- */
.filter-input-group:has(.element-selector) {
    background: transparent;
    border: none;
    padding: 0;
}

.filter-input-group > label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.element-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.element-btn {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 4px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.15s ease;
}

.element-btn:hover {
    background: rgba(99, 179, 237, 0.1);
    border-color: rgba(99, 179, 237, 0.4);
}

.element-btn.selected {
    background: rgba(99, 179, 237, 0.2);
    border-color: #63b3ed;
    box-shadow: 0 0 0 1px #63b3ed, 0 2px 6px rgba(99, 179, 237, 0.2);
}

.element-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

/* ---- Widget Empty / Selected Label ---- */
.enchantment-widget-empty {
    text-align: center;
    color: #64748b;
    font-size: 11px;
    font-style: italic;
    padding: 12px 8px;
}

.enchantment-widget-selected-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* ---- Widget Footer Global (Tüm Filtreleri Temizle) ---- */
.enchantment-widget-footer-global {
    padding: 10px 12px;
    border-top: 1px solid rgba(99, 179, 237, 0.2);
    background: rgba(11, 14, 17, 0.6);
    flex-shrink: 0;
}

.enchantment-widget-clear-all {
    width: 100%;
    height: 36px;
    background: linear-gradient(135deg, rgba(246, 70, 93, 0.15), rgba(246, 70, 93, 0.08));
    border: 1px solid rgba(246, 70, 93, 0.4);
    border-radius: 8px;
    color: #f6465d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: all 0.15s ease;
}

.enchantment-widget-clear-all:hover {
    background: linear-gradient(135deg, rgba(246, 70, 93, 0.25), rgba(246, 70, 93, 0.15));
    border-color: #f6465d;
    color: #fff;
}

.enchantment-widget-clear-all i {
    font-size: 14px;
}

/* ---- Search Suggestions (autocomplete) ---- */
.search-suggestions {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid #334155;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}

.search-suggestion-item {
    padding: 6px 10px;
    color: #e2e8f0;
    font-size: 12px;
    border-radius: 4px;
    cursor: url('/imlec/metin2.cur'), auto !important;
    transition: background 0.12s ease;
}

.search-suggestion-item:hover {
    background: rgba(99, 179, 237, 0.15);
}

/* ---- Price Filter Popup Wrapper ---- */
#priceFilterPopup {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 14px 12px;
    margin-top: 8px;
}

#priceFilterPopup > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ---- Side-by-Side Hover Tooltips Overrides ---- */
.ihm-preview-popup.ihm-side-by-side-mode {
    width: auto !important;
    max-width: 90vw !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
}

.ihm-tooltip-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ihm-tooltip-header {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #7c3aed;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.ihm-preview-popup.ihm-side-by-side-mode .item-popup-preview.item-hover-preview.ihm-real-tooltip {
    position: relative !important;
    margin: 0 !important;
}
/* ============================================
   AKILLI FILTRELER - KOMPAKT SEKME YERLESIMI
   Her sekme kendi icerik yogunluguna gore boyutlanir.
   ============================================ */
#enchantment-widget.enchantment-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    z-index: 1000000000;
}

#enchantment-widget .enchantment-widget-content {
    width: min(760px, calc(100vw - 44px));
    height: min(520px, calc(100vh - 44px));
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #111827;
    border: 1px solid #31445d;
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .68);
    isolation: isolate;
    transition: width .18s ease, height .18s ease;
}

#enchantment-widget[data-active-tab="pet"] .enchantment-widget-content {
    width: min(780px, calc(100vw - 44px));
    height: min(540px, calc(100vh - 44px));
}

#enchantment-widget[data-active-tab="belt"] .enchantment-widget-content {
    width: min(680px, calc(100vw - 44px));
    height: min(360px, calc(100vh - 44px));
}

#enchantment-widget[data-active-tab="price"] .enchantment-widget-content {
    width: min(620px, calc(100vw - 44px));
    height: min(330px, calc(100vh - 44px));
}

#enchantment-widget.minimized .enchantment-widget-content { display: none; }
#enchantment-widget.show .enchantment-widget-content { display: flex; }

#enchantment-widget .enchantment-widget-header {
    flex: 0 0 48px;
    min-height: 48px;
    padding: 8px 14px;
    background: #182235;
    border-bottom: 1px solid #2a3a50;
    cursor: move;
}

#enchantment-widget .enchantment-widget-title { min-width: 0; font-size: 14px; }
#enchantment-widget .enchantment-widget-close { appearance: none; padding: 0; }

#enchantment-widget .enchantment-widget-body-wrapper {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

#enchantment-widget .enchantment-widget-tabs {
    width: 64px;
    height: 100%;
    min-height: 0;
    gap: 6px;
    padding: 9px 7px;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    background: #0c1420;
    border-right: 1px solid #26364b;
}

#enchantment-widget .enchantment-widget-tab {
    width: 48px;
    min-width: 48px;
    min-height: 50px;
    padding: 5px 2px;
    flex: 0 0 auto;
}

#enchantment-widget .enchantment-widget-tab-icon { width: 21px; height: 21px; }
#enchantment-widget .enchantment-widget-tab-label { font-size: 8px; }

#enchantment-widget .enchantment-widget-tab-contents,
#enchantment-widget .enchantment-widget-tab-content {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

#enchantment-widget .enchantment-widget-tab-content.active {
    display: flex;
    flex-direction: column;
}

#enchantment-widget .enchantment-widget-body {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Efsun: dengeli iki kolon, listeler kontrollu kayar. */
#enchantment-widget .enchantment-widget-dual-panel {
    display: grid;
    grid-template-columns: minmax(290px, 1.15fr) minmax(250px, .85fr);
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

#enchantment-widget .enchantment-widget-panel-left,
#enchantment-widget .enchantment-widget-panel-right {
    width: auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #111b2b;
}

#enchantment-widget .enchantment-widget-panel-right {
    border-left: 1px solid #2a3a50;
    background: #101928;
}

#enchantment-widget .enchantment-widget-panel-divider { display: none; }
#enchantment-widget .enchantment-widget-panel-header {
    min-height: 42px;
    padding: 8px 12px;
    background: #172338;
}

#enchantment-widget .enchantment-widget-panel-left .enchantment-widget-search {
    padding: 9px 12px;
    background: #111b2b;
}

#enchantment-widget .enchantment-widget-panel-left .enchantment-widget-options,
#enchantment-widget .enchantment-widget-panel-right .enchantment-widget-selected-list {
    min-height: 0;
    max-height: none;
    padding-top: 7px;
    padding-bottom: 7px;
    overflow-y: auto;
}

#enchantment-widget .enchantment-widget-option { padding: 6px 9px; }
#enchantment-widget .enchantment-widget-option-name { font-size: 12px; }

#enchantment-widget .enchantment-widget-actions-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 46px;
    min-height: 46px;
    padding: 7px 11px;
    border-top: 1px solid #25354a;
    background: #0e1724;
}

#enchantment-widget .enchantment-widget-actions-footer .enchantment-widget-clear {
    width: auto;
    min-width: 104px;
    height: 32px;
    padding: 6px 12px;
}

#enchantment-widget .enchantment-widget-footer-global {
    display: flex;
    align-items: center;
    flex: 0 0 48px;
    min-height: 48px;
    padding: 7px 12px;
    background: #0b131f;
    border-top: 1px solid #26364b;
}

#enchantment-widget .enchantment-widget-clear-all { height: 34px; font-size: 11px; }

/* Pet: temel alanlar solda, beceriler her zaman gorunen sag kolonda. */
#enchantment-widget #petTabContent .enchantment-widget-body { overflow: hidden; }
#enchantment-widget #petTabContent .filter-tab-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(250px, .95fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    gap: 8px 12px;
    height: 100%;
    padding: 12px;
}

#enchantment-widget #petTabContent .pet-type-section { grid-column: 1 / -1; margin: 0; }
#enchantment-widget #petTabContent .pet-level-row { grid-column: 1; grid-row: 2; margin: 0; }
#enchantment-widget #petTabContent .filter-input-row { grid-column: 1; grid-row: 3; }
#enchantment-widget #petTabContent .pet-age-row { grid-column: 1; grid-row: 4; }
#enchantment-widget #petTabContent .pet-base-section { grid-column: 1; grid-row: 5; margin: 0; align-self: start; }
#enchantment-widget #petTabContent .pet-skills-section {
    grid-column: 2;
    grid-row: 2 / 6;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 10px;
    gap: 6px;
    overflow: hidden;
    background: #0e1826;
    border: 1px solid #2a3a50;
    border-radius: 8px;
}

#enchantment-widget #petTabContent .pet-skills-search { margin: 0; }
#enchantment-widget #petTabContent .pet-skills-options {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 2px 0;
    overflow-y: auto;
}

#enchantment-widget #petTabContent .pet-type-buttons { margin-bottom: 0; }
#enchantment-widget #petTabContent .pet-section-label { margin-top: 0; }
#enchantment-widget #petTabContent .pet-base-section { padding: 7px 9px; }

/* Kusak: uc kontrol dev bir kolona yayilmaz. */
#enchantment-widget #beltTabContent .enchantment-widget-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

#enchantment-widget #beltTabContent .filter-tab-content {
    display: grid;
    grid-template-columns: 180px minmax(260px, 1fr);
    gap: 12px;
    width: min(590px, 100%);
    padding: 18px;
    align-items: end;
}

#enchantment-widget #beltTabContent .filter-input-group { margin: 0; }
#enchantment-widget #beltTabContent .filter-input-group:has(.element-selector) { grid-column: 1 / -1; }

/* Fiyat: iki para satiri kompakt kart olarak ortalanir. */
#enchantment-widget #priceTabContent .enchantment-widget-body {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

#enchantment-widget #priceFilterPopup {
    width: min(500px, calc(100% - 28px));
    margin: 0;
    padding: 12px;
    background: #101a29;
    border-color: #2c3e56;
    box-shadow: none;
}

#enchantment-widget #priceFilterPopup > div { gap: 10px; margin-top: 0 !important; }
#enchantment-widget .price-filter-row { min-height: 48px; padding: 6px 8px; }

@media (max-width: 768px) {
    #enchantment-widget.enchantment-widget {
        inset: 8px;
        width: auto;
        height: auto;
        max-width: none;
        max-height: none;
        transform: none !important;
    }

    #enchantment-widget .enchantment-widget-content,
    #enchantment-widget[data-active-tab="pet"] .enchantment-widget-content,
    #enchantment-widget[data-active-tab="belt"] .enchantment-widget-content,
    #enchantment-widget[data-active-tab="price"] .enchantment-widget-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 9px;
    }

    #enchantment-widget .enchantment-widget-header { cursor: default; }
    #enchantment-widget .enchantment-widget-body-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 58px minmax(0, 1fr);
    }

    #enchantment-widget .enchantment-widget-tabs {
        width: 100%;
        height: 58px;
        flex-direction: row;
        justify-content: center;
        gap: 7px;
        padding: 5px 8px;
        border-right: 0;
        border-bottom: 1px solid #26364b;
        overflow-x: auto;
        overflow-y: hidden;
    }

    #enchantment-widget .enchantment-widget-tab { width: 56px; min-width: 56px; min-height: 46px; }
    #enchantment-widget .enchantment-widget-dual-panel {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(210px, 1fr) minmax(170px, .75fr);
        overflow-y: auto;
    }

    #enchantment-widget .enchantment-widget-panel-right { width: 100%; border-left: 0; border-top: 1px solid #2a3a50; }
    #enchantment-widget #petTabContent .enchantment-widget-body { overflow-y: auto; }
    #enchantment-widget #petTabContent .filter-tab-content {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    #enchantment-widget #petTabContent .pet-skills-section { min-height: 220px; overflow: hidden; }
    #enchantment-widget #beltTabContent .filter-tab-content { grid-template-columns: 1fr; width: 100%; padding: 12px; }
    #enchantment-widget #beltTabContent .filter-input-group:has(.element-selector) { grid-column: 1; }
}

.category-tab.access-locked,
.subcategory-tab.access-locked,
.custom-category-option.access-locked {
    border-color: rgba(251, 191, 36, .42) !important;
    color: #fbbf24 !important;
    background: rgba(251, 191, 36, .07) !important;
    cursor: pointer;
}
.category-tab.access-locked:hover,
.subcategory-tab.access-locked:hover,
.custom-category-option.access-locked:hover {
    background: rgba(251, 191, 36, .14) !important;
    border-color: rgba(251, 191, 36, .7) !important;
}
.category-tab.access-locked .bi-lock-fill,
.subcategory-tab.access-locked .bi-lock-fill,
.custom-category-option.access-locked .bi-lock-fill { color: #fbbf24; }
/* Next.js iframe yüksekliğini gerçek içerikten ölçer; 100vh boşluğu üretme. */
html:has(body.iframe-mode),
body.iframe-mode {
    height: auto !important;
    min-height: 0 !important;
    overflow-y: hidden !important;
}
body.iframe-mode .container {
    height: auto !important;
    min-height: 0 !important;
}
body.iframe-mode .shop-window {
    height: auto !important;
    min-height: 0 !important;
}
/* Modal çalışma alanı iframe'in tamamıdır; ilk açılış tablo hizasında kalır. */
#enchantment-widget.enchantment-widget:not(.is-dragging) {
    top: clamp(120px, 30vh, 340px);
    bottom: auto;
}
#enchantment-widget.enchantment-widget.is-dragging {
    bottom: auto;
}
/* Autocomplete contrast fix */
/* These dropdowns are portaled under body, so wrapper-scoped text colors do not apply. */
#item-search-suggestions,
#seller-search-suggestions {
    color: #eaecef !important;
    background: #181a20 !important;
}

#item-search-suggestions > .suggestion-item,
#seller-search-suggestions > .suggestion-item {
    color: #eaecef !important;
    background-color: #181a20 !important;
    border-bottom: 1px solid #2b3139 !important;
    opacity: 1 !important;
}

#item-search-suggestions > .suggestion-item:hover,
#item-search-suggestions > .suggestion-item:focus,
#seller-search-suggestions > .suggestion-item:hover,
#seller-search-suggestions > .suggestion-item:focus {
    color: #ffffff !important;
    background-color: #2b3139 !important;
}