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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f6fa;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ---- Header ---- */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 48px 0 40px;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header .subtitle {
    margin-top: 8px;
    color: #a0a0c0;
    font-size: 1rem;
    font-weight: 400;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a0a0c0;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

/* ---- Filters ---- */
.filters {
    display: flex;
    gap: 8px;
    margin: 32px 0 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    border-radius: 100px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #1a1a2e;
    color: #1a1a2e;
}

.filter-btn.active {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
}

/* ---- Grid ---- */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

/* ---- Card (index page) ---- */
.offer-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.card-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.amount-display {
    margin-bottom: 6px;
}

.amount {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.currency {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
}

.tagline {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 18px;
    flex: 1;
}

.spending-warning {
    font-size: 0.75rem;
    font-weight: 600;
    color: #c62828;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ---- Badges ---- */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-category {
    background: #f0f0f5;
    color: #555;
}

.badge-category[data-category="Kontanter"] {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-category[data-category="Krypto"] {
    background: #fff3e0;
    color: #e65100;
}

.badge-easy {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-req {
    background: #fff3e0;
    color: #e65100;
}

/* ---- Validity ---- */
.validity {
    font-size: 0.78rem;
    color: #888;
}

.validity.urgent {
    color: #d32f2f;
}

.days-left {
    background: #ffebee;
    color: #c62828;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* ---- Detail page ---- */
.detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 36px auto 48px;
    overflow: hidden;
}

.detail-top {
    padding: 36px 32px 28px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.detail-top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.detail-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.detail-amount-row {
    margin-bottom: 4px;
}

.detail-amount {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.detail-currency {
    font-size: 1.3rem;
    font-weight: 500;
    color: #666;
    margin-left: 2px;
}

.detail-tagline {
    font-size: 1rem;
    color: #666;
    margin-top: 4px;
}

.detail-section {
    padding: 24px 32px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-section:last-of-type {
    border-bottom: none;
}

.detail-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 12px;
}

.detail-description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
}

.detail-list {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-list li {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.5;
}

.req-list li::marker {
    color: #e65100;
}

.steps-list li::marker {
    color: #1a1a2e;
    font-weight: 600;
}

.no-req-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 500;
}

.detail-validity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #888;
}

.detail-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 32px 32px;
    padding: 14px 24px;
    border-radius: 10px;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.1s;
}

.detail-cta:hover {
    opacity: 0.88;
}

.detail-cta:active {
    transform: scale(0.98);
}

/* ---- CTA (index) ---- */
.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---- No offers ---- */
.no-offers {
    text-align: center;
    padding: 64px 20px;
    color: #888;
    font-size: 1rem;
}

/* ---- Footer ---- */
footer {
    margin-top: auto;
    background: #1a1a2e;
    color: #888;
    text-align: center;
    padding: 24px 0;
    font-size: 0.8rem;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    header {
        padding: 36px 0 28px;
    }

    header h1 {
        font-size: 1.6rem;
    }

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

    .amount {
        font-size: 1.8rem;
    }

    .detail-top,
    .detail-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .detail-cta {
        margin-left: 20px;
        margin-right: 20px;
    }

    .detail-amount {
        font-size: 2.4rem;
    }
}
