* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideDown 0.5s ease-out;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header .tagline {
    font-size: 1.2em;
    color: #555;
    font-weight: 300;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease-out;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #2c3e50;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.business-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #3498db;
    animation: fadeIn 0.5s ease-out;
}

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

.business-emoji {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
}

.business-name {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 8px;
}

.business-desc {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 12px;
    line-height: 1.5;
}

.business-price {
    font-size: 1.3em;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 12px;
}

.business-revenue {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 12px;
}

.business-reason {
    font-size: 0.85em;
    color: #e74c3c;
    font-style: italic;
    margin-bottom: 12px;
}

.view-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.3s ease;
    width: 100%;
}

.view-btn:hover {
    background: #2980b9;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #2c3e50;
}

.modal-emoji {
    font-size: 3em;
    margin-bottom: 16px;
}

.modal-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 12px;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 6px;
}

.modal-value {
    color: #555;
    line-height: 1.6;
}

.modal-value.highlight {
    font-size: 1.3em;
    color: #27ae60;
    font-weight: bold;
}

.modal-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    width: 100%;
    margin-top: 12px;
    transition: background 0.3s ease;
}

.modal-btn:hover {
    background: #229954;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.offer-slider {
    width: 100%;
    margin-top: 12px;
    accent-color: #27ae60;
    cursor: pointer;
}

#offerValue {
    font-size: 1.3em;
    color: #27ae60;
    font-weight: bold;
}

.offer-result {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #2c3e50;
    line-height: 1.5;
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.offer-result.show {
    display: block;
}

.offer-result-emoji {
    font-size: 2.5em;
    margin-bottom: 8px;
}

.offer-disclaimer {
    margin-top: 12px;
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}
