* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: #0a0a0a;
    color: #ffffff;
    padding-top: 80px;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}



/* Header Section */
.header-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 1.5rem 0;
    background: transparent;
}



.search-container {
    position: relative !important;
    display: inline-block;
    flex-shrink: 0;
}

.search-icon {
    position: absolute !important;
    left: 0.8rem !important;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.search-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.8rem 0.5rem 2.5rem !important;
    color: white !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    width: 800px !important;
    max-width: 800px !important;
    min-width: 400px !important;
    height: 36px !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
}

.search-input:focus {
    outline: none;
    border-color: #5048E5;
    box-shadow: 0 0 0 3px rgba(80, 72, 229, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filters-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    white-space: nowrap;
    height: 36px;
    flex-shrink: 0;
}

.filters-btn:hover {
    background: #151515;
    border-color: #202020;
    color: #ffffff;
}

.filters-btn.active {
    background: #5048E5;
    border-color: #5048E5;
    color: #ffffff;
}

/* Filter Section */
.filter-section {
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.2rem;
}

.filter-select {
    background: #111111;
    border: 1px solid #151515;
    border-radius: 5px;
    color: #ffffff;
    padding: 0.4rem 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 32px;
}

.filter-select:focus {
    outline: none;
    border-color: #5048E5;
    box-shadow: 0 0 0 2px rgba(80, 72, 229, 0.1);
}

.filter-select:hover {
    border-color: #202020;
}

.filter-select option {
    background: #111111;
    color: #ffffff;
}

.checkbox-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checkbox-input {
    width: 14px;
    height: 14px;
    accent-color: #5048E5;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
}

.clear-filters-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 28px;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Trades Section */
.trades-section {
    min-height: 400px;
}

.trades-section:has(.no-trades) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-trades {
    text-align: center;
    padding: 4rem 2rem;
}

.no-trades-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-trades-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-trades-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.trade-link {
    color: #5048E5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.trade-link:hover {
    color: #4338CA;
    text-decoration: underline;
}

/* Trade Cards */
.trades-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 0;
    max-width: 100%;
    margin: 0 auto;
}

.trade-card {
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s ease;
}

.trade-card:hover {
    border-color: #202020;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: transparent;
}

.trader-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trader-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.trader-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.trader-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.9rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0.2rem 0.5rem;
}

.star-icon {
    font-size: 0.8rem;
}

.rating-number {
    color: #FFD700;
    font-weight: 600;
    font-size: 0.8rem;
}

.trade-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expires-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.chat-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #5048E5;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.chat-btn:hover {
    background: #4338CA;
    transform: translateY(-1px);
}

.trade-divider {
    height: 1px;
    background: #151515;
}

.trade-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.2rem;
}

.trade-section .section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trade-section .section-title img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.items-display {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    justify-content: flex-start;
    width: 100%;
}

.trade-item {
    aspect-ratio: 1;
    background: #111111;
    border: 1px solid #151515;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.trade-item.empty {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.trade-item img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.trade-item .item-quantity {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(80, 72, 229, 0.9);
    color: white;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 600;
}

.section-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.section-value .value-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Tooltip Styles */
.item-tooltip {
    position: absolute;
    background: #0d0d0d;
    border: 1px solid #151515;
    border-radius: 8px;
    padding: 0.8rem;
    color: white;
    font-size: 0.8rem;
    z-index: 1000;
    transform: translateX(-50%) translateY(-100%);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.item-tooltip .tooltip-header {
    margin-bottom: 0.5rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #151515;
}

.item-tooltip div {
    margin-bottom: 0.2rem;
}

.item-tooltip div:last-child {
    margin-bottom: 0;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: #151515;
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.3rem;
}

.pagination-number {
    background: #111111;
    border: 1px solid #151515;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background: #151515;
    color: #ffffff;
}

.pagination-number.active {
    background: #5048E5;
    border-color: #5048E5;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .filter-section {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .other-filters {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-group {
        min-width: 100px;
    }
    
    .size-filter {
        min-width: 120px;
    }
    
    .header-section {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .create-trade-btn,
    .filters-btn {
        justify-content: center;
        height: 40px;
    }
    
    .search-container {
        align-self: center;
    }
    
    .search-input {
        height: 40px !important;
        width: 400px !important;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .checkbox-filters {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    
    .filter-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
        margin: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .features {
        padding: 2rem 0;
    }
    
    .header-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-container {
        align-self: center;
    }
    
    .search-input {
        width: 400px !important;
    }
    
    .trades-grid {
        grid-template-columns: 1fr;
    }
    
    .trade-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .trader-details {
        gap: 0.2rem;
    }
    
    .rating-display {
        font-size: 0.7rem;
    }
    
    .rating-badge {
        padding: 0.1rem 0.3rem;
    }
    
    .trade-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
        text-align: center;
    }
    
    .trade-actions {
        justify-content: center;
    }
    
    .items-display {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .filter-section {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .filters-grid {
        gap: 0.6rem;
    }
    
    .checkbox-filters {
        gap: 0.6rem;
    }
}

@media (max-width: 320px) {
    .search-input {
        width: 350px !important;
    }
}
.create-trade-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #5048E5;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    white-space: nowrap;
    height: 36px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 35px rgba(80, 72, 229, 0.6), 0 0 70px rgba(80, 72, 229, 0.3);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

.create-trade-btn:hover {
    background: #4338CA;
    transform: translateY(-1px);
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 30px rgba(80, 72, 229, 0.5), 0 0 60px rgba(80, 72, 229, 0.2);
    }
    100% {
        box-shadow: 0 0 40px rgba(80, 72, 229, 0.7), 0 0 80px rgba(80, 72, 229, 0.4);
    }
}

/* Search Form Styles */
.form {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    transition: all 0.3s ease;
    width: 800px;
    max-width: 800px;
    min-width: 400px;
    height: 36px;
}

.form:focus-within {
    border-color: #5048E5;
    box-shadow: 0 0 0 3px rgba(80, 72, 229, 0.1);
}

.form button {
    all: unset;
    cursor: pointer;
    width: 17px;
    height: 17px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.form button:hover {
    color: rgba(255, 255, 255, 0.8);
}

.input {
    all: unset;
    flex: 1;
    height: 100%;
    color: white;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

