.ak-page-shell {
    min-height: 70vh;
}

.compact-section {
    padding-top: 42px;
}

.ak-course-hero,
.ak-checkout-wrap {
    margin: 24px 5vw 0;
    border-radius: 34px;
    background: linear-gradient(135deg, #080d1f, #5b21b6);
    color: #fff;
    padding: 54px;
    box-shadow: var(--ak-shadow);
}

.ak-course-hero h1,
.ak-checkout-card h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    margin: 16px 0;
}

.ak-course-hero p,
.ak-checkout-card p {
    color: #e5e7eb;
    line-height: 1.7;
    max-width: 760px;
}

.ak-courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ak-course-card-grid {
    min-width: 0 !important;
    max-width: none !important;
}

.ak-course-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ak-detail-hero {
    margin: 24px 5vw 0;
}

.ak-detail-hero-bg {
    min-height: 390px;
    display: flex;
    align-items: center;
    border-radius: 34px;
    padding: 54px;
    color: #fff;
    background: linear-gradient(135deg, #080d1f, #5b21b6);
    background-size: cover;
    background-position: center;
    box-shadow: var(--ak-shadow);
}

.ak-detail-hero-bg > div {
    max-width: 760px;
}

.ak-detail-hero-bg h1 {
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
    margin: 16px 0;
}

.ak-detail-hero-bg p {
    color: #e5e7eb;
    line-height: 1.7;
    font-size: 18px;
}

.ak-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.ak-detail-price strong {
    font-size: 34px;
    color: #bbf7d0;
}

.ak-detail-price span {
    color: #cbd5e1;
    text-decoration: line-through;
}

.ak-detail-price small {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 11px;
    font-weight: 900;
}

.ak-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

.ak-detail-main {
    display: grid;
    gap: 18px;
}

.ak-detail-side {
    position: relative;
}

.ak-sticky-card {
    position: sticky;
    top: 92px;
    background: #fff;
    border: 1px solid var(--ak-border);
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 14px 30px rgba(17, 24, 39, .06);
    display: grid;
    gap: 14px;
}

.ak-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ak-tags-list span {
    background: #ede9fe;
    color: #5b21b6;
    border-radius: 999px;
    padding: 8px 10px;
    font-weight: 900;
    font-size: 13px;
}

.ak-rich-text {
    color: #374151;
    line-height: 1.8;
}

.ak-rich-text img {
    max-width: 100%;
    border-radius: 18px;
}

.ak-mini-item.locked {
    opacity: .86;
    background: #fff7ed;
    border-color: #fed7aa;
}

.ak-safe-note {
    color: var(--ak-muted);
    font-size: 13px;
    line-height: 1.6;
}

.ak-checkout-wrap {
    display: grid;
    place-items: center;
    min-height: 580px;
}

.ak-checkout-card {
    max-width: 760px;
}

.ak-checkout-course-box {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 24px;
    padding: 20px;
    margin: 24px 0;
}

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

@media (max-width: 980px) {
    .ak-course-hero,
    .ak-checkout-wrap,
    .ak-detail-hero {
        margin: 16px;
    }

    .ak-course-hero,
    .ak-detail-hero-bg,
    .ak-checkout-wrap {
        padding: 30px;
    }

    .ak-courses-grid,
    .ak-detail-grid {
        grid-template-columns: 1fr;
    }

    .ak-sticky-card {
        position: static;
    }
}
