.bundle-marketplace{
    --bundle-ink:#1f2933;
    --bundle-muted:#6b7280;
    --bundle-surface:#ffffff;
    --bundle-line:#d7e0e8;
    --bundle-brand:#0f766e;
    --bundle-brand-strong:#115e59;
    --bundle-accent:#d97706;
    --bundle-success:#166534;
    --bundle-danger:#7f1d1d;
    padding:8px 0 24px;
}

.bundle-hero{
    background:linear-gradient(135deg,#f4fbf9 0%,#eef6ff 100%);
    border:1px solid var(--bundle-line);
    border-radius:20px;
    padding:24px;
    margin-bottom:24px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
}

.bundle-hero h2{
    margin:0 0 8px;
    color:var(--bundle-ink);
}

.bundle-hero__copy{
    margin:0;
    max-width:760px;
    color:var(--bundle-muted);
}

.bundle-hero__actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.bundle-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
}

.bundle-card{
    background:var(--bundle-surface);
    border:1px solid var(--bundle-line);
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 18px 40px rgba(15,23,42,.08);
    display:flex;
    flex-direction:column;
}

.bundle-thumb{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    display:block;
    background:#dce7ee;
}

.bundle-card__body{
    padding:22px;
    display:flex;
    flex-direction:column;
    gap:16px;
    height:100%;
}

.bundle-card__meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.bundle-status{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:6px 12px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.02em;
}

.bundle-status--ready{
    background:#e6f6f4;
    color:var(--bundle-brand-strong);
}

.bundle-status--owned{
    background:#e8f7ec;
    color:var(--bundle-success);
}

.bundle-status--partial{
    background:#fff3e5;
    color:var(--bundle-accent);
}

.bundle-status--unavailable{
    background:#fee2e2;
    color:var(--bundle-danger);
}

.bundle-count{
    color:var(--bundle-muted);
    font-size:14px;
    font-weight:600;
}

.bundle-card h3{
    margin:0;
    color:var(--bundle-ink);
}

.bundle-card__description{
    color:var(--bundle-muted);
}

.bundle-card__description p:last-child{
    margin-bottom:0;
}

.bundle-course-list{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    gap:10px;
}

.bundle-course-list li{
    padding:10px 12px;
    border:1px solid var(--bundle-line);
    border-radius:12px;
    background:#f8fbfc;
    color:var(--bundle-ink);
}

.bundle-course-list__empty{
    margin:0;
    color:var(--bundle-muted);
    font-style:italic;
}

.bundle-card__footer{
    margin-top:auto;
    padding-top:8px;
    border-top:1px solid var(--bundle-line);
}

.bundle-price{
    font-size:28px;
    font-weight:800;
    color:var(--bundle-ink);
    margin-bottom:8px;
}

.bundle-status-copy{
    margin:0 0 16px;
    color:var(--bundle-muted);
}

.bundle-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.bundle-btn{
    background:var(--bundle-brand);
    color:#fff;
    padding:11px 18px;
    border-radius:12px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.bundle-btn:hover,
.bundle-btn:focus{
    background:var(--bundle-brand-strong);
    color:#fff;
    text-decoration:none;
}

.bundle-btn--disabled{
    background:#cbd5e1;
    color:#475569;
    cursor:not-allowed;
}

.bundle-empty{
    grid-column:1 / -1;
    border:1px dashed var(--bundle-line);
    border-radius:18px;
    padding:32px 24px;
    text-align:center;
    color:var(--bundle-muted);
    background:#fbfdff;
}

@media (max-width: 767px){
    .bundle-hero{
        padding:20px;
    }

    .bundle-card__body{
        padding:18px;
    }

    .bundle-price{
        font-size:24px;
    }
}
