@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #050510;
    min-height: 100vh;
    color: #e3f2fd;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}


.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top, #1a1030 0, #050510 40%, #020208 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top, rgba(103, 58, 183, 0.35), transparent 55%),
        radial-gradient(ellipse at bottom, rgba(33, 150, 243, 0.25), transparent 55%);
    pointer-events: none;
}

.stars, .stars2 {
    position: absolute;
    inset: 0;
}

.stars {
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(144, 202, 249, 0.9), transparent),
        radial-gradient(1px 1px at 60px 70px, rgba(206, 147, 216, 0.7), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(129, 212, 250, 0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(149, 117, 205, 0.7), transparent),
        radial-gradient(1px 1px at 90px 10px, rgba(224, 242, 241, 0.8), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars-float 100s linear infinite;
    opacity: 0.6;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 100px 120px, rgba(187, 134, 252, 0.6), transparent),
        radial-gradient(1px 1px at 150px 60px, rgba(144, 202, 249, 0.7), transparent),
        radial-gradient(1px 1px at 80px 150px, rgba(94, 53, 177, 0.6), transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: stars-float 150s linear infinite;
    opacity: 0.4;
}

@keyframes stars-float {
    from { transform: translateY(0) translateX(0); }
    to { transform: translateY(-1000px) translateX(120px); }
}

.gradient-orb {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #90caf9;
    border-radius: 50%;
    box-shadow: 0 0 10px #90caf9, 0 0 20px #90caf9;
}

.orb-1 { top: 10%; left: 15%; animation: particle-float 15s ease-in-out infinite; }
.orb-2 { top: 60%; left: 80%; animation: particle-float 20s ease-in-out infinite 5s; }
.orb-3 { top: 30%; left: 50%; animation: particle-float 18s ease-in-out infinite 3s; }
.orb-4 { top: 80%; left: 30%; animation: particle-float 22s ease-in-out infinite 7s; }

@keyframes particle-float {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(100px, -100px); opacity: 0.8; }
    50% { transform: translate(220px, 60px); opacity: 0.5; }
    75% { transform: translate(-60px, 120px); opacity: 0.7; }
}

.bg-grid {
    position: absolute;
    bottom: -10%;
    left: -50%;
    width: 200%;
    height: 70%;
    background-image:
        linear-gradient(rgba(144, 202, 249, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(187, 134, 252, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
    transform-origin: top center;
    transform: perspective(700px) rotateX(70deg);
    opacity: 0.22;
    mix-blend-mode: screen;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 200px, 200px 0; }
}

.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.95);
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 24px;
    padding: 50px 0 26px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 130px;
    background: radial-gradient(ellipse, rgba(129, 212, 250, 0.7), transparent 60%);
    filter: blur(60px);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 35%, #ce93d8 70%, #f48fb1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 12px;
    text-shadow: 0 0 80px rgba(144, 202, 249, 0.9);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 30px rgba(144, 202, 249, 0.9)); }
    50% { filter: brightness(1.2) drop-shadow(0 0 60px rgba(206, 147, 216, 1)); }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #b3e5fc;
    text-transform: uppercase;
    letter-spacing: 6px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.header-actions {
    display: flex;
    justify-content: center;
}


.view-tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
}

.view-tab {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    color: #cbd5f5;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}

.view-tab.active {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 1));
    color: #e0f2fe;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.9);
}


.view-panel { display: none; }
.view-panel.active-panel { display: block; }


.search-bar { margin-bottom: 25px; }

.search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    pointer-events: none;
    opacity: 0.7;
    color: #90caf9;
}

#searchInput {
    width: 100%;
    padding: 20px 24px 20px 60px;
    font-size: 1.15rem;
    font-weight: 600;
    border: 2px solid rgba(144, 202, 249, 0.65);
    background: radial-gradient(circle at 0 0, rgba(144, 202, 249, 0.18), rgba(5, 5, 20, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 50px;
    color: #e3f2fd;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7), 0 0 25px rgba(144, 202, 249, 0.5);
}

#searchInput::placeholder { color: rgba(179, 229, 252, 0.7); }

#searchInput:focus {
    outline: none;
    border-color: #f48fb1;
    background: rgba(5, 5, 24, 0.98);
    box-shadow: 
        0 0 50px rgba(206, 147, 216, 0.9), 
        0 4px 25px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(144, 202, 249, 0.25);
    transform: translateY(-2px);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(6, 10, 30, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(56, 189, 248, 0.35);
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
    z-index: 50;
    display: none;
    backdrop-filter: blur(20px);
}

.search-suggestion-item {
    padding: 10px 18px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.search-suggestion-item::after {
    content: "↵";
    opacity: 0.3;
    font-size: 0.8rem;
}

.search-suggestion-item:hover {
    background: radial-gradient(circle at 0 0,
        rgba(139, 92, 246, 0.35),
        rgba(15, 23, 42, 0.98)
    );
    transform: translateY(-1px);
    opacity: 1;
}

.search-suggestion-item.active {
    background: radial-gradient(circle at 0 0,
        rgba(96, 165, 250, 0.35),
        rgba(15, 23, 42, 0.98)
    );
}

.suggestion-match { color: #f48fb1; font-weight: 700; }

.suggestion-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-left: 6px;
    background: rgba(30, 64, 175, 0.75);
    border: 1px solid rgba(191, 219, 254, 0.5);
}

.tier-tag { background: rgba(126, 34, 206, 0.7); }
.cat-tag { background: rgba(14, 116, 144, 0.7); }


.filters-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    background: linear-gradient(90deg, rgba(3, 10, 30, 0.85), rgba(5, 15, 40, 0.85));
    border-radius: 20px;
    padding: 14px 20px;
    border: 1px solid rgba(144, 164, 174, 0.5);
    backdrop-filter: blur(14px);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    color: #b3e5fc;
    margin-right: 5px;
}

.filter-btn {
    border: 1px solid rgba(176, 190, 197, 0.4);
    background: rgba(6, 16, 40, 0.9);
    color: #e3f2fd;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(17, 26, 61, 0.95);
    border-color: rgba(144, 202, 249, 0.95);
    box-shadow: 0 0 18px rgba(144, 202, 249, 0.8);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #90caf9, #ce93d8, #f48fb1);
    border-color: transparent;
    color: #0b1020;
    box-shadow: 0 0 24px rgba(144, 202, 249, 0.9);
}


.items-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.tier-section { width: 100%; }

.tier-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tier-title-pill {
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.tier-spp-pill {
    background: linear-gradient(135deg, #f06292, #ec407a);
    box-shadow: 0 0 25px rgba(236, 64, 122, 0.95);
}
.tier-sp-pill {
    background: linear-gradient(135deg, #ffb74d, #ff7043);
    box-shadow: 0 0 22px rgba(255, 183, 77, 0.9);
}
.tier-s-pill {
    background: linear-gradient(135deg, #ffe082, #ffb74d);
    box-shadow: 0 0 18px rgba(255, 224, 130, 0.9);
}
.tier-a-pill {
    background: linear-gradient(135deg, #ba68c8, #9575cd);
    box-shadow: 0 0 18px rgba(149, 117, 205, 0.9);
}
.tier-b-pill {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    box-shadow: 0 0 18px rgba(100, 181, 246, 0.9);
}
.tier-c-pill {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    box-shadow: 0 0 18px rgba(129, 199, 132, 0.9);
}

.tier-name {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
    color: #e3f2fd;
}

.tier-description {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #b0bec5;
}

.tier-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    perspective: 1000px;
}


.item-card {
    background: radial-gradient(circle at top left, rgba(144, 202, 249, 0.15), rgba(5, 5, 20, 0.98));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(144, 164, 174, 0.45);
    border-radius: 22px;
    padding: 20px 24px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.85),
        0 0 32px rgba(129, 212, 250, 0.45);
    transform-style: preserve-3d;
    transform-origin: center;
    transition: transform 0.12s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.item-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(187, 222, 251, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.item-card:hover::before {
    opacity: 1;
    transform: translate3d(20px, 20px, 0);
}

.item-card:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(206, 147, 216, 0.95);
    border-color: rgba(227, 242, 253, 0.9);
}

.item-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    transform: translateZ(22px);
}

.item-image-inner {
    width: 90%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(207, 216, 220, 0.4);
    background: radial-gradient(circle at top, rgba(227, 242, 253, 0.14), rgba(0,0,0,0.88));
    box-shadow: 0 12px 30px rgba(0,0,0,0.9);
}

.item-image-inner img {
    width: 100%; height: 100%; object-fit: cover;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 10px;
    transform: translateZ(18px);
}

.item-name {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: #e3f2fd;
    flex: 1;
    line-height: 1.3;
}

.item-tier {
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    transform: translateZ(24px);
}

.tier-spp {
    background: linear-gradient(135deg, #f06292, #ec407a);
    box-shadow: 0 0 25px rgba(236, 64, 122, 1);
    animation: legendary-glow 2s ease-in-out infinite;
}
.tier-sp {
    background: linear-gradient(135deg, #ffb74d, #ff7043);
    box-shadow: 0 0 20px rgba(255, 183, 77, 1);
}
.tier-s {
    background: linear-gradient(135deg, #ffe082, #ffb74d);
    box-shadow: 0 0 20px rgba(255, 224, 130, 0.95);
}
.tier-a {
    background: linear-gradient(135deg, #ba68c8, #9575cd);
    box-shadow: 0 0 20px rgba(149, 117, 205, 1);
}
.tier-b {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    box-shadow: 0 0 20px rgba(100, 181, 246, 1);
}
.tier-c {
    background: linear-gradient(135deg, #81c784, #66bb6a);
    box-shadow: 0 0 20px rgba(129, 199, 132, 1);
}

@keyframes legendary-glow {
    0%, 100% { box-shadow: 0 0 25px rgba(236, 64, 122, 1); filter: brightness(1); }
    50% { box-shadow: 0 0 40px rgba(236, 64, 122, 1); filter: brightness(1.25); }
}

.item-category {
    color: #b3e5fc;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.9;
}

.item-description {
    color: rgba(225, 245, 254, 0.9);
    font-size: 1rem;
    margin-top: 8px;
    line-height: 1.5;
    margin-bottom: 18px;
    transform: translateZ(12px);
}

.item-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(144, 164, 174, 0.6);
    transform: translateZ(10px);
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(3, 7, 30, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(144, 164, 174, 0.6);
    transition: all 0.25s ease;
}

.value-item:hover {
    background: rgba(13, 20, 60, 0.98);
    border-color: rgba(144, 202, 249, 0.95);
    transform: translateY(-2px);
}

.value-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(227, 242, 253, 0.9));
}

.value-amount {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.value-amount.ore-value {
    color: #fff59d;
    text-shadow: 0 0 15px rgba(255, 241, 118, 0.9);
}

.value-amount.flesh-value {
    color: #ffab91;
    text-shadow: 0 0 15px rgba(255, 171, 145, 0.95);
}

.value-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    color: #cfd8dc;
}

.demand-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 10px;
    background: linear-gradient(90deg, rgba(3, 10, 30, 0.9), rgba(25, 118, 210, 0.3));
    border-radius: 12px;
    border: 1px solid rgba(144, 164, 174, 0.7);
    transform: translateZ(8px);
}

.demand-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.demand-value {
    font-size: 1rem;
    font-weight: 700;
    color: #ffeb3b;
}


.trade-section {
    margin: 10px 0 40px;
    padding: 24px 20px 26px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.45), rgba(3, 7, 18, 0.96));
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(59, 130, 246, 0.6);
}

.trade-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.trade-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.trade-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 6px;
    max-width: 520px;
}

.trade-metric {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.trade-metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    color: #cbd5f5;
}


.trade-metric-control {
    position: relative;
    border-radius: 999px;
    padding: 5px 30px 5px 14px;
    border: 1px solid rgba(96, 165, 250, 0.9);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.35), rgba(15, 23, 42, 0.98));
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

.trade-metric-select {
    border: none;
    outline: none;
    background: transparent;
    color: #e5f2ff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: capitalize;
    appearance: none;
    padding: 2px 0;
}

.trade-metric-select option {
    background-color: #020617;
    color: #e5e7eb;
}

.trade-metric-control::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    border-left: 2px solid rgba(226, 232, 240, 0.9);
    border-bottom: 2px solid rgba(226, 232, 240, 0.9);
    transform: translateY(-40%) rotate(-45deg);
    pointer-events: none;
    opacity: 0.8;
}

.trade-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.trade-column {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    padding: 14px 14px 16px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
}

.trade-column-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.trade-column-title {
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.trade-column-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.9);
    color: #cbd5f5;
}

.trade-column-tag-get {
    background: rgba(17, 94, 89, 0.95);
    border-color: rgba(45, 212, 191, 0.9);
    color: #a7f3d0;
}

.trade-items-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}


.trade-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 32px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.32), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(75, 85, 99, 0.9);
}

.trade-item-search {
    position: relative;
}

.trade-item-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.7);
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    padding: 6px 8px;
    font-size: 0.85rem;
    outline: none;
}

.trade-qty-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.98);
    color: #e5e7eb;
    padding: 6px 6px;
    font-size: 0.85rem;
    text-align: center;
    outline: none;
}

.trade-qty-input::-webkit-inner-spin-button,
.trade-qty-input::-webkit-outer-spin-button {
    margin: 0;
}

.trade-remove-btn {
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.8);
    background: rgba(127, 29, 29, 0.9);
    color: #fee2e2;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.trade-add-btn {
    margin-top: 4px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.9);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.35), rgba(15, 23, 42, 0.98));
    color: #e0f2fe;
    font-size: 0.85rem;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.trade-add-btn:hover {
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.9);
    transform: translateY(-1px);
}

.trade-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.trade-main-btn {
    flex: 1;
    min-width: 180px;
    border-radius: 999px;
    border: none;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f0fdf4;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.9);
}

.trade-main-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }

.trade-secondary-btn {
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.85);
    background: rgba(15, 23, 42, 0.9);
    color: #bfdbfe;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
}

.trade-secondary-btn:hover {
    background: rgba(30, 64, 175, 0.95);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.8);
}

.trade-clear-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 100px;
}

.trade-clear-btn:hover { background: rgba(30, 41, 59, 0.95); }

.trade-result { margin-top: 6px; }

.trade-result-card {
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
}

.trade-result-label {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.trade-result-values {
    font-size: 0.95rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 4px;
    margin-bottom: 6px;
}

.trade-result-values span { opacity: 0.75; }

.trade-result-note {
    font-size: 0.8rem;
    opacity: 0.7;
}

.trade-result-w {
    border-color: rgba(34, 197, 94, 0.95);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.8);
}
.trade-result-w .trade-result-label { color: #bbf7d0; }

.trade-result-l {
    border-color: rgba(248, 113, 113, 0.95);
    box-shadow: 0 0 30px rgba(248, 113, 113, 0.8);
}
.trade-result-l .trade-result-label { color: #fecaca; }

.trade-result-fair {
    border-color: rgba(56, 189, 248, 0.95);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.8);
}
.trade-result-fair .trade-result-label { color: #bae6fd; }

.trade-warning {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #fed7aa;
    opacity: 0.85;
}


footer {
    text-align: center;
    padding: 30px 0 20px;
    color: rgba(179, 229, 252, 0.75);
    border-top: 1px solid rgba(120, 144, 156, 0.7);
    margin-top: 10px;
}

footer p { margin: 8px 0; }
.footer-note { font-size: 0.95rem; font-style: italic; }


@media (max-width: 900px) {
    .trade-columns { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body { padding: 15px; }

    header h1 {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .tier-items-grid { grid-template-columns: 1fr; }
    .item-values { grid-template-columns: 1fr; }

    .trade-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.trade-suggestion {
    margin-top: 18px;
}

.trade-suggestion-card {
    padding: 14px 18px;
    border-radius: 16px;
    background: radial-gradient(circle at 0 0,
        rgba(244, 143, 177, 0.15),
        rgba(13, 25, 48, 0.95)
    );
    border: 1px solid rgba(244, 143, 177, 0.5);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85);
    font-size: 0.92rem;
}

.trade-suggestion-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffb3c1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.trade-suggestion-text {
    margin-bottom: 8px;
    color: #e3f2fd;
}

.trade-suggestion-list {
    margin: 6px 0 6px 18px;
    padding: 0;
}

.trade-suggestion-list li {
    margin-bottom: 3px;
    list-style: disc;
    color: #ffeef5;
}

.trade-suggestion-alt {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #ffccdd;
}

.trade-suggestion-note {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.8;
    color: #cfd8dc;
}
.discord-tag {
    font-weight: 700;
    color: #90caf9;
    text-shadow: 0 0 10px rgba(144, 202, 249, 0.6);
    text-decoration: none;
}

.discord-tag:hover {
    color: #f48fb1;
    cursor: pointer;
    text-shadow: 0 0 14px rgba(244, 143, 177, 0.9);
}

