/* Add Investment Section */
.add-investment-section {
    margin-bottom: 30px;
}

.add-investment-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #555;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.add-investment-content h2 {
    margin-bottom: 10px;
    color: #ffffff;
}

.add-investment-content p {
    color: #cccccc;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.add-investment-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Statistics */
.stats-section {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #404040;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #1a1a1a;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #404040;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Items List */
.items-section {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #404040;
}

.items-list {
    display: grid;
    gap: 16px;
}

.item-card {
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 12px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 64px 1fr auto auto;
    gap: 16px;
    align-items: center;
    transition: all 0.2s ease;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #555;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}


.item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #555;
}

.item-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.item-info p {
    color: #999;
    font-size: 0.9rem;
}

.item-stats {
    text-align: right;
    min-width: 140px;
}

.item-stats .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.item-stats .quantity {
    color: #999;
    font-size: 0.85rem;
}

/* tighter action buttons area */
.item-card .item-actions {
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p:first-child {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.empty-state p:last-child {
    font-size: 1rem;
    opacity: 0.8;
}

/* Autocomplete */
.autocomplete-container {
    position: relative;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d2d2d;
    border: 2px solid #404040;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #404040;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #404040;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item.highlighted {
    background-color: #667eea;
}

.suggestion-name {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.suggestion-type {
    font-size: 0.8rem;
    color: #999;
}

/* Skin Panel */
.skin-panel {
    position: fixed;
    top: 60px;
    right: -400px;
    width: 400px;
    height: calc(100vh - 60px);
    background: #2d2d2d;
    border-left: 1px solid #404040;
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.skin-panel.open {
    right: 0;
}

.skin-panel-header {
    padding: 20px;
    border-bottom: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skin-panel-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-panel {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-panel:hover {
    background: #404040;
    color: #ffffff;
}

.skin-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.skin-list {
    display: grid;
    gap: 12px;
}

.skin-item {
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skin-item:hover {
    background: #404040;
    border-color: #667eea;
}

.skin-item-name {
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.skin-item-rarity {
    font-size: 0.8rem;
    color: #999;
}

/* Sponsors Section */
.sponsors-section {
    background: #1a1a1a;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #404040;
}

.sponsors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.sponsors-container h3 {
    color: #999;
    margin-bottom: 30px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sponsor-item:hover {
    background: #2d2d2d;
    transform: translateY(-2px);
}

.sponsor-item img {
    width: 120px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #404040;
    padding: 10px;
}

.sponsor-item p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Components */
@media (max-width: 768px) {
    .add-investment-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .add-investment-stats {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .item-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .item-stats {
        text-align: center;
    }
    
    .skin-panel {
        width: 100%;
        right: -100%;
    }
    
    .sponsors-grid {
        gap: 20px;
    }
    
    .sponsor-item img {
        width: 100px;
        height: 50px;
    }
}
