﻿* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: #0b0f19; color: #f8fafc; display: flex; height: 100vh; overflow: hidden; position: relative; }

#sidebar { width: 260px; min-width: 260px; background-color: #111827; border-right: 1px solid #1f2937; display: flex; flex-direction: column; height: 100vh; transition: transform 0.3s ease; z-index: 100; }
#sidebar .brand { padding: 20px; font-size: 1.1rem; font-weight: 700; color: #38bdf8; border-bottom: 1px solid #1f2937; display: flex; justify-content: space-between; align-items: center; }
#claim-list { list-style: none; overflow-y: auto; flex: 1; }
#claim-list li { padding: 12px 20px; cursor: pointer; border-bottom: 1px solid #1f2937; transition: all 0.2s; font-size: 0.9rem; font-weight: 500; color: #9ca3af; }
#claim-list li:hover { background-color: #1f2937; color: #f8fafc; }
#claim-list li.active { background-color: #0284c7; color: #ffffff; font-weight: 600; }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(11, 15, 25, 0.7); backdrop-filter: blur(2px); z-index: 90; }

#main-content { flex: 1; height: 100vh; overflow-y: auto; padding: 24px 32px; display: flex; flex-direction: column; gap: 20px; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; flex-shrink: 0; }
.header-title-container { display: flex; align-items: center; gap: 12px; }
.header h1 { font-size: 1.35rem; font-weight: 700; color: #f8fafc; }

.mobile-menu-btn { display: none; background: #111827; border: 1px solid #1f2937; color: #f8fafc; padding: 8px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; width: 40px; height: 40px; }
.mobile-menu-btn svg { width: 20px; height: 20px; fill: currentColor; }

.controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box input { width: 100%; padding: 8px 14px 8px 36px; background-color: #111827; border: 1px solid #1f2937; border-radius: 8px; color: #f8fafc; font-size: 0.85rem; outline: none; transition: border-color 0.2s; }
.search-box input:focus { border-color: #38bdf8; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); fill: #6b7280; width: 16px; height: 16px; }

.filter-group { display: flex; background-color: #111827; border: 1px solid #1f2937; border-radius: 8px; padding: 2px; overflow-x: auto; max-width: 100%; }
.filter-btn { background: none; border: none; color: #9ca3af; padding: 6px 12px; font-size: 0.8rem; font-weight: 500; cursor: pointer; border-radius: 6px; transition: all 0.2s; white-space: nowrap; }
.filter-btn:hover { color: #f8fafc; }
.filter-btn.active { background-color: #1f2937; color: #38bdf8; }

.sort-select { background-color: #111827; border: 1px solid #1f2937; border-radius: 8px; color: #f8fafc; padding: 7px 12px; font-size: 0.85rem; outline: none; cursor: pointer; }
.sort-select:focus { border-color: #38bdf8; }

.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; flex-shrink: 0; }

.shop-card { background-color: #111827; border: 1px solid #1f2937; border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s, box-shadow 0.2s; cursor: pointer; }
.shop-card:hover { border-color: #374151; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

.card-top { display: flex; align-items: center; gap: 10px; }
.item-icon-wrapper { width: 40px; height: 40px; background: #0b0f19; border: 1px solid #1f2937; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.item-icon { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }

.item-info { overflow: hidden; }
.item-name { font-size: 0.9rem; font-weight: 600; color: #f3f4f6; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-owner { font-size: 0.75rem; color: #6b7280; }

.card-details { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: #9ca3af; padding-top: 4px; border-top: 1px solid #1f2937; }
.detail-row { display: flex; justify-content: space-between; align-items: center; }

.price-tag { font-weight: 500; font-size: 0.8rem; }
.price-buy { color: #34d399; }
.price-sell { color: #38bdf8; }

.coords { font-family: monospace; cursor: pointer; color: #6b7280; font-size: 0.75rem; transition: color 0.2s; }
.coords:hover { color: #38bdf8; }

.badge { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; font-weight: 500; font-size: 0.75rem; }
.badge-green { background-color: rgba(16, 185, 129, 0.1); color: #34d399; }
.badge-yellow { background-color: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.badge-red { background-color: rgba(239, 68, 68, 0.1); color: #f87171; }

#modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(11, 15, 25, 0.8); backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 150; padding: 20px; }
.modal-content { background: #111827; padding: 20px; border-radius: 12px; border: 1px solid #1f2937; width: 1050px; max-width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 16px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1f2937; padding-bottom: 10px; }
.modal-header h3 { font-size: 1.1rem; font-weight: 600; color: #f8fafc; }
.close-btn { cursor: pointer; font-size: 1.25rem; color: #6b7280; transition: color 0.2s; }
.close-btn:hover { color: #f8fafc; }

.modal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.charts-column { display: flex; flex-direction: column; gap: 16px; }

.chart-container { background: #0b0f19; padding: 12px; border-radius: 8px; border: 1px solid #1f2937; display: flex; flex-direction: column; gap: 8px; }
.chart-title { font-size: 0.8rem; font-weight: 600; color: #9ca3af; }
.chart-wrapper { position: relative; height: 190px; width: 100%; }

.comparison-sidebar { background: #0b0f19; border: 1px solid #1f2937; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 420px; }
.comparison-title { font-size: 0.8rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; padding-bottom: 4px; border-bottom: 1px solid #1f2937; }

.comparison-list { display: flex; flex-direction: column; gap: 8px; }
.comparison-card { background: #111827; border: 1px solid #1f2937; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.comparison-card.current { border-color: #0284c7; background: rgba(2, 132, 199, 0.05); }

.comp-row-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.comp-claim-name { font-weight: 600; color: #f3f4f6; }
.comp-time { font-size: 0.7rem; color: #6b7280; }

.comp-row-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: #9ca3af; }

@media (max-width: 1200px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .modal-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) { 
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #main-content { padding: 16px; }
}
@media (max-width: 640px) {
    #sidebar { position: fixed; top: 0; left: 0; transform: translateX(-100%); }
    #sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .mobile-menu-btn { display: flex; }
    .shop-grid { grid-template-columns: 1fr; }
    .controls { flex-direction: column; align-items: stretch; }
    .search-box { width: 100%; }
    .sort-select { width: 100%; }
    .filter-group { width: 100%; justify-content: space-between; }
    .filter-btn { flex: 1; text-align: center; padding: 6px 2px; }
    .chart-wrapper { height: 160px; }
}
.mod-download-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #10b981;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mod-download-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
}