:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --success: #10b981;
    --dark: #0f172a;
    --light: #f8fafc;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.header-section {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

h1 {
    font-weight: 900;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.money-display {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--dark);
    margin: 1.5rem 0;
    font-variant-numeric: tabular-nums;
}

.spent-display {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(245, 87, 108, 0.3);
}

.money-sticky {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    animation: slideDown 0.3s ease;
}

.money-sticky.show {
    display: block;
}

.money-sticky .money-display {
    font-size: 1.8rem;
    margin: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.spent-display h3 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.spent-amount {
    font-size: 2.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.item-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-body {
    padding: 1.5rem;
}

.item-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.item-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.item-source {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.btn-action {
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    flex: 1;
    cursor: pointer;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

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

.quantity-input {
    width: 80px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-sell {
    background: #ef4444;
    color: white;
}

.btn-sell:hover {
    transform: scale(1.05);
    background: #dc2626;
}

.subtitle {
    color: #64748b;
    font-size: 1.1rem;
}
.footer{
    color:white;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    .money-display {
        font-size: 2rem;
    }
    .spent-amount {
        font-size: 1.8rem;
    }
}