/* ==========================================================================
   Premium Assets List Styles
   ========================================================================== */

/* 1. SADECE BU SAYFA İÇİN GRİDİ TERSİNE ÇEVİR (SOL: DAR, SAĞ: GENİŞ) */
@media (min-width: 1025px) {
    body .lx-main {
        grid-template-columns: 380px minmax(0, 1fr) !important;
    }
}

/* 2. LÜKS KUTU TASARIMLARI (PREMIUM PANEL) */
.lx-market-widget {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
    border: 1px solid var(--lx-border, rgba(255,255,255,0.06)) !important;
    border-radius: var(--lx-radius-lg, 20px) !important;
    padding: 24px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.lx-market-mainbox {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005)) !important;
    border: 1px solid var(--lx-border, rgba(255,255,255,0.06)) !important;
    border-radius: var(--lx-radius-xl, 24px) !important;
    padding: 32px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

/* 3. SWAP BUTONU (Mor Premium Hap) */
.lx-swap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 36px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(187,134,252,0.18), rgba(187,134,252,0.08));
    box-shadow: inset 0 0 0 1px rgba(187,134,252,0.35), 0 6px 18px rgba(0,0,0,0.25);
    color: rgba(255,255,255,0.95);
}
.lx-swap-txt {
    font-family: var(--lx-font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.lx-swap-btn:hover {
    background: linear-gradient(180deg, rgba(187,134,252,0.26), rgba(187,134,252,0.12));
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(187,134,252,0.45), 0 8px 20px rgba(0,0,0,0.30);
}

/* 4. TABLO VE LİSTELER */
.lx-table-wrapper {
    width: 100%;
    overflow-x: auto;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lx-table-wrapper.is-switching {
    opacity: 0;
    transform: translateY(10px);
}

.lx-list-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}
.lx-list-table th {
    font-family: var(--lx-font-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lx-list-table td {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    vertical-align: middle;
    transition: background 0.2s ease;
}
.lx-list-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.lx-td-rank { text-align: center; color: rgba(255,255,255,0.4); font-size: 14px; font-weight: 600; }
.lx-td-val { font-size: 15px; font-weight: 500; color: #fff; font-family: var(--lx-font-display); }
.lx-td-asset { display: flex; align-items: center; gap: 14px; }
.lx-td-asset img { width: 36px; height: 36px; border-radius: 50%; }
.lx-td-meta { display: flex; flex-direction: column; }
.lx-td-name { font-weight: 600; font-size: 15px; color: #fff; }
.lx-td-sym { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500; }

/* 5. MİNİ WIDGET LİSTELERİ */
.lx-mini-list { display: flex; flex-direction: column; gap: 8px; }
.lx-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.lx-mini-item:hover { 
    background: rgba(255,255,255,0.04); 
    border: 1px solid var(--lx-border);
    transform: translateY(-2px);
}
.lx-mini-asset { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #fff; }
.lx-mini-asset img { width: 32px; height: 32px; border-radius: 50%; }

/* 6. GERİ SAYIM (Amber) */
.lx-countdown {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}
.lx-cd-item { 
    flex: 1;
    background: rgba(241,184,96,0.1);
    border: 1px solid rgba(241,184,96,0.15);
    border-radius: 12px;
    padding: 12px 0;
    text-align: center; 
}
.lx-cd-val { 
    font-family: var(--lx-font-display);
    font-size: 20px; 
    font-weight: 700; 
    color: #f1b860; 
    line-height: 1;
}
.lx-cd-lbl { 
    font-size: 10px; 
    color: rgba(255,255,255,0.6); 
    text-transform: uppercase; 
    font-weight: 700; 
    margin-top: 6px;
}

/* ====================================
   Compact Table & Scrollbar Styles
   ==================================== */

#lxListWrapper::-webkit-scrollbar { width: 6px; }
#lxListWrapper::-webkit-scrollbar-track { background: transparent; }
#lxListWrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
#lxListWrapper::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

.lx-list-table--compact th { padding: 12px 16px; font-size: 10px; letter-spacing: 0.08em; }
.lx-list-table--compact td { padding: 10px 16px; }
.lx-list-table--compact .lx-td-rank { font-size: 12px; }
.lx-list-table--compact .lx-td-val { font-size: 13px; font-weight: 500; }
.lx-list-table--compact .lx-td-asset { gap: 10px; }
.lx-list-table--compact .lx-td-asset img { width: 24px; height: 24px; } 
.lx-list-table--compact .lx-td-name { font-size: 13px; font-weight: 600; }
.lx-list-table--compact .lx-td-sym { font-size: 11px; }

.lx-market-mainbox { padding: 0 !important; }

/* ====================================
   Refined Left Widgets (Kompakt ve İnce)
   ==================================== */

.lx-widget--compact { padding: 16px 20px !important; border-radius: 16px !important; }
.lx-widget-head-sleek { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lx-widget-head-sleek .lx-pairTitle { font-size: 15px !important; letter-spacing: 0.02em; }

.lx-swap-icon-btn {
    width: 28px; height: 28px; padding: 0; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lx-swap-icon-btn svg { width: 14px; height: 14px; }
.lx-swap-icon-btn:hover { background: rgba(187,134,252,0.1); color: #bb86fc; border-color: rgba(187,134,252,0.3); transform: rotate(180deg); }

.lx-mini-item--compact { padding: 10px 12px; border-radius: 10px; margin: 0 -8px; }
.lx-mini-asset--compact img { width: 24px; height: 24px; }
.lx-mini-asset--compact span { font-size: 13px; font-weight: 600; }

.lx-countdown-sleek { display: flex; gap: 6px; margin-top: 12px; }
.lx-countdown-sleek .lx-cd-item { flex: 1; background: rgba(241,184,96,0.08); border: 1px solid rgba(241,184,96,0.15); border-radius: 8px; padding: 8px 0; text-align: center; }
.lx-countdown-sleek .lx-cd-val { font-family: var(--lx-font-display); font-size: 16px; font-weight: 700; color: #f1b860; }
.lx-countdown-sleek .lx-cd-lbl { font-size: 9px; font-weight: 600; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 4px; letter-spacing: 0.05em; }

/* ====================================
   Premium Borsa Pagination (Lüks Cam Efekti)
   ==================================== */

.lx-pagination-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255,255,255,0.01), rgba(255,255,255,0.025), rgba(255,255,255,0.01));
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 14px 24px;
    flex-shrink: 0;
}

.lx-page-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    color: #fff; font-family: var(--lx-font-display); font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lx-page-btn svg { width: 14px; height: 14px; }
.lx-page-btn:hover:not(.is-disabled) {
    background: rgba(187,134,252,0.1); border-color: rgba(187,134,252,0.3); color: #bb86fc;
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(187,134,252,0.15);
}
.lx-page-btn.is-disabled { opacity: 0.3; cursor: not-allowed; background: transparent; border-color: transparent; }

.lx-page-dots { display: flex; align-items: baseline; gap: 6px; font-family: var(--lx-font-display); }
.lx-page-current { font-size: 14px; font-weight: 700; color: #fff; }
.lx-page-total { font-size: 12px; color: rgba(255,255,255,0.4); font-weight: 500; }

/* ====================================
   Refined Left Sidebar & Widgets
   ==================================== */

.lx-sidebar-scroll { padding-right: 6px; }
.lx-sidebar-scroll::-webkit-scrollbar { width: 4px; }
.lx-sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.lx-sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }

.lx-widget--premium {
    padding: 20px !important; border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)) !important;
    border: 1px solid rgba(255,255,255,0.05) !important; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}
.lx-widget--amber { border-color: rgba(241, 184, 96, 0.2) !important; }

.lx-mini-list { display: flex; flex-direction: column; }
.lx-mini-item--premium {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03); cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; border-radius: 8px;
}
.lx-mini-item--premium:last-child { border-bottom: none; }
.lx-mini-item--premium:hover { background: rgba(255,255,255,0.04); transform: translateX(4px); }

.lx-mini-asset { display: flex; align-items: center; gap: 12px; }
.lx-mini-asset img { width: 24px; height: 24px; border-radius: 50%; }
.lx-mini-meta { display: flex; flex-direction: column; }
.lx-mini-name { font-size: 13px; font-weight: 600; color: #fff; }
.lx-mini-sym { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.4); }

.lx-badge-hot {
    background: rgba(245, 101, 101, 0.15); color: #f56565; padding: 4px 8px; border-radius: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
}

/* ====================================
   Premium Inline Timer (Upcoming)
   ==================================== */
.lx-inline-timer { display: flex; gap: 6px; align-items: center; font-family: var(--lx-font-display); }
.lx-it-val {
    background: rgba(241,184,96,0.1); color: #f1b860; padding: 4px 6px; border-radius: 6px; font-size: 13px;
    font-weight: 700; min-width: 32px; text-align: center; border: 1px solid rgba(241,184,96,0.2); font-variant-numeric: tabular-nums;
}
.lx-it-val small { font-size: 9px; color: rgba(241,184,96,0.7); margin-left: 1px; font-family: var(--lx-font-ui); }

/* ====================================
   Ultimate Data Terminal Additions
   ==================================== */

.lx-tabsBar a.lx-tab { text-decoration: none; color: var(--lx-muted); transition: all 0.3s ease; }
.lx-tabsBar a.lx-tab:hover { color: #fff; }
.lx-tabsBar a.lx-tab.is-active { color: #fff; border-radius: 8px; }

.lx-star-btn {
    background: transparent; border: none; color: rgba(255,255,255,0.2); cursor: pointer; padding: 6px;
    border-radius: 6px; transition: all 0.2s ease; display: inline-flex; align-items: center; justify-content: center;
}
.lx-star-btn svg { width: 16px; height: 16px; transition: all 0.2s ease; }
.lx-star-btn:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); }
.lx-star-btn.is-starred { color: #f1b860; }
.lx-star-btn.is-starred svg { fill: #f1b860; }

.lx-sector-badge {
    display: inline-block; padding: 4px 6px; border-radius: 6px; font-size: 8px; font-weight: 700;
    letter-spacing: 0.05em; font-family: var(--lx-font-display); border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.7); text-transform: uppercase; white-space: nowrap;
}
/* Altın Sarısı (Layer 1 - Bitcoin/Ağ Temeli) */
.lx-sector-badge[data-cat="layer 0"] { background: rgba(251, 211, 141, 0.15); color: #fbd38d; border-color: rgba(251, 211, 141, 0.35); }

/* Elektrik Mor (Layer 2 - Ölçeklendirme/Hız) */
.lx-sector-badge[data-cat="layer 1"] { background: rgba(183, 148, 244, 0.15); color: #b794f4; border-color: rgba(183, 148, 244, 0.35); }

/* Canlı Pembe/Magenta (Layer 0 - Polkadot/Cosmos Havası) */
.lx-sector-badge[data-cat="layer 2"] { background: rgba(246, 135, 179, 0.15); color: #f687b3; border-color: rgba(246, 135, 179, 0.35); }

/* Zümrüt Yeşili (DeFi - Finans/Para) */
.lx-sector-badge[data-cat="defi"] { background: rgba(104, 211, 145, 0.15); color: #68d391; border-color: rgba(104, 211, 145, 0.35); }

/* Fosforlu Açık Lime (Meme - Eğlenceli/Dikkat Çekici) */
.lx-sector-badge[data-cat="meme"] { background: rgba(217, 249, 157, 0.15); color: #d9f99d; border-color: rgba(217, 249, 157, 0.35); }

/* Siber Turkuaz (AI - Teknoloji/Gelecek) */
.lx-sector-badge[data-cat="ai"] { background: rgba(11, 197, 234, 0.15); color: #0bc5ea; border-color: rgba(11, 197, 234, 0.35); }

/* Gökyüzü Mavisi (Stablecoin - Güven/Dolar) */
.lx-sector-badge[data-cat="stablecoin"] { background: rgba(99, 179, 237, 0.15); color: #63b3ed; border-color: rgba(99, 179, 237, 0.35); }

/* İndigo/Lacivert (Exchange - Kurumsal/Borsa) */
.lx-sector-badge[data-cat="exchange"] { background: rgba(127, 156, 245, 0.15); color: #7f9cf5; border-color: rgba(127, 156, 245, 0.35); }

/* Crimson Kırmızı (Gaming - Arcade/Oyun) */
.lx-sector-badge[data-cat="gaming"] { background: rgba(252, 129, 129, 0.15); color: #fc8181; border-color: rgba(252, 129, 129, 0.35); }

/* Bronz/Toprak (RWA - Gerçek Dünya Varlıkları) */
.lx-sector-badge[data-cat="rwa"] { background: rgba(246, 173, 85, 0.15); color: #f6ad55; border-color: rgba(246, 173, 85, 0.35); }

/* Keskin Turuncu (Oracle - Veri Akışı) */
.lx-sector-badge[data-cat="oracle"] { background: rgba(237, 137, 54, 0.15); color: #ed8936; border-color: rgba(237, 137, 54, 0.35); }

/* Buz Beyazı/Gümüş (Wrapped - Paketlenmiş/Saf) */
.lx-sector-badge[data-cat="wrapped"] { background: rgba(226, 232, 240, 0.15); color: #e2e8f0; border-color: rgba(226, 232, 240, 0.35); }

/* Nötr Arduvaz Grisi (Altcoin - Standart) */
.lx-sector-badge[data-cat="altcoin"] { background: rgba(160, 174, 192, 0.15); color: #a0aec0; border-color: rgba(160, 174, 192, 0.35); }

/* ====================================
   Ultimate Terminal Additions
   ==================================== */

.lx-subtabs { scrollbar-width: none; }
.lx-subtabs::-webkit-scrollbar { display: none; }
.lx-subtab {
    padding: 6px 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 600; text-decoration: none;
    white-space: nowrap; transition: all 0.3s ease;
}
.lx-subtab:hover { background: rgba(255,255,255,0.08); color: #fff; }
.lx-subtab.is-active { background: rgba(187,134,252,0.15); color: #bb86fc; border-color: rgba(187,134,252,0.3); }

.lx-list-table th { transition: color 0.2s ease; }
.lx-list-table th:hover { color: #fff; }
.lx-sort-icon { font-size: 10px; margin-left: 4px; opacity: 0.3; }
.lx-sort-icon.is-active { opacity: 1; color: #bb86fc; }

.lx-global-stats {
    display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lx-gstat-item { display: flex; justify-content: space-between; align-items: center; }
.lx-gstat-lbl { font-size: 13px; color: var(--lx-muted); font-weight: 500; }
.lx-gstat-val { font-size: 14px; color: #fff; font-weight: 700; font-family: var(--lx-font-display); }

.lx-fng-box {
    display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2);
    padding: 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03);
}
.lx-fng-text { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7); }
.lx-fng-badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.lx-fng-badge.greed { background: rgba(72,187,120,0.2); color: #48bb78; }

.lx-exchange-logos { display: flex; gap: 6px; }
.lx-ex-badge { background: rgba(255,255,255,0.05); padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 600; color: #fff; }
.lx-btn-trade { background: #fff; color: #000; padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; transition: transform 0.2s ease; }
.lx-btn-trade:hover { transform: scale(1.05); }
.lx-timer-right { justify-content: flex-end; }

/* ====================================
   VMAX Terminal & Interactions
   ==================================== */

.lx-table-search { position: relative; display: flex; align-items: center; }
.lx-table-search svg { position: absolute; left: 12px; width: 14px; height: 14px; color: rgba(255,255,255,0.4); }
.lx-table-search input {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px;
    padding: 8px 16px 8px 32px; color: #fff; font-family: var(--lx-font-ui); font-size: 13px; width: 200px; transition: all 0.3s ease;
}
.lx-table-search input:focus {
    outline: none; background: rgba(255,255,255,0.06); border-color: rgba(187,134,252,0.4); width: 240px; box-shadow: 0 0 0 2px rgba(187,134,252,0.1);
}

.lx-hover-row { position: relative; }
.lx-row-actions {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%) translateX(10px); opacity: 0;
    transition: all 0.2s ease; pointer-events: none; background: linear-gradient(90deg, transparent, var(--lx-panel) 20%); padding-left: 24px;
}
.lx-hover-row:hover .lx-row-actions { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
.lx-hover-row:hover td { background: rgba(255,255,255,0.02); }

.lx-vol-bar { width: 60px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.lx-vol-fill { height: 100%; background: #bb86fc; border-radius: 2px; }

.lx-td-meta { gap: 4px; }
.lx-td-sym { margin-right: 4px; }

/* --------------------------------------------------------------------
   4. TABLE ALIGNMENT (KUSURSUZ HİZALAMA)
-------------------------------------------------------------------- */
.lx-list-table th:nth-child(1), .lx-list-table td:nth-child(1), .lx-list-table th:nth-child(2), .lx-list-table td:nth-child(2) { text-align: center !important; width: 10px; }
.lx-list-table th:nth-child(3), .lx-list-table td:nth-child(3) { text-align: left !important; width: 30px; }
.lx-list-table th:nth-child(n+4):nth-child(-n+9), .lx-list-table td:nth-child(n+4):nth-child(-n+9) { text-align: right !important; }
.lx-list-table td:nth-child(9) > div { align-items: flex-end !important; }
.lx-list-table th:nth-child(10), .lx-list-table td:nth-child(10) { text-align: right !important; padding-right: 20px !important; }


/* ====================================================================
   YENİ VE KUSURSUZ MİMARİ: TAM OTOMATİK FLEXBOX DÜZENİ
   (Yukarıdaki Tüm "display: block" ve "height: auto" kirlilikleri temizlendi)
   ==================================================================== */

/* 1. KESİN KİLİT: Sayfa hiçbir cihazda aşağı/yukarı kayamaz */
html, body {
    margin: 0 !important; 
    padding: 0 !important;
    overflow: hidden !important; 
    height: 100vh !important;
    height: 100dvh !important; 
}

/* 2. ANA TAŞIYICI: Tüm ekranı kaplar */
body .lx-main,
.lx-content {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 3. MASAÜSTÜ İÇİN SOL-SAĞ IZGARA VE KESİN SINIRLAR */
@media (min-width: 1025px) {
    body .lx-main, 
    .lx-content {
        height: calc(100vh - 100px) !important; 
        padding: 0 40px 40px 24px !important; /* Kaybolan padding geri eklendi */
        box-sizing: border-box !important;
        min-height: 0 !important; /* Tablonun ekran dışına taşmasını bıçak gibi keser */
        overflow: hidden !important;
    }

    body .lx-main {
        display: grid !important;
        grid-template-columns: 380px minmax(0, 1fr) !important;
    }

    .lx-sidebar-scroll {
        height: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 8px !important;
    }
}

/* 4. MASAÜSTÜ & MOBİL ORTAK TERMİNAL DÜZENİ (FLEX OTOMATİK DOLDURMA) */
.lx-hero.lx-terminal-right {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important; 
    min-height: 0 !important; 
    width: 100% !important;
    overflow: hidden !important; 
    padding: 0 !important; 
}

/* Sabit Kalacak Üst Elemanlar (Sekmeler, Arama vs.) */
.lx-hero.lx-terminal-right > div:first-child,
.lx-subtabs,
.lx-pagination-premium {
    flex-shrink: 0 !important; 
}

/* Tablonun Dış Kutusu (Kalan boşluğu otomatik alır) */
.lx-panel.lx-market-mainbox {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important; 
    min-height: 0 !important; 
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Sadece Tablonun Kayacağı İç Alan */
.lx-table-wrapper {
    flex: 1 1 auto !important; 
    min-height: 0 !important;
    overflow-y: auto !important; 
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    display: block !important;
}

/* Başlık Sabitleme */
.lx-list-table thead th {
    position: sticky;
    top: 0;
    z-index: 20 !important;
    background: #181818; 
}

/* 5. SADECE MOBİL: İNCE AYARLAR */
@media (max-width: 1024px) {
    body .lx-main, .lx-content {
        /* Sitenin en üstündeki menüye (header) pay bırakıyoruz */
        height: calc(100dvh - 70px) !important;
        padding: 0px 10px 10px 10px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .lx-table-search { width: 100% !important; margin: 4px 0 !important; }
    .lx-table-search input { width: 100% !important; box-sizing: border-box !important; }

    /* Sayfalama (Zorunlu Tek Satır) */
    .lx-pagination-premium {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; 
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .lx-page-btn, .lx-page-dots {
        font-size: 11px !important;
        padding: 4px 8px !important;
        flex-shrink: 0 !important;
    }
    .lx-page-btn svg { width: 12px !important; height: 12px !important; }
    
    /* Gereksiz Hukuki Butonu Gizle */
    .lx-row-actions { display: none !important; }
    
    /* Yıldız ve Rank Daraltması */
    #lxListWrapper .lx-list-table th:first-child,
    #lxListWrapper .lx-list-table td:first-child {
        display: table-cell !important; width: 32px !important; min-width: 32px !important; padding: 0 4px !important;
    }
    #lxListWrapper .lx-list-table th:nth-child(2),
    #lxListWrapper .lx-list-table td:nth-child(2) {
        width: 24px !important; min-width: 24px !important; padding-left: 2px !important; padding-right: 8px !important; font-size: 10px !important;
    }
}