:root {
    --space-ink: #0f1724;
    --space-muted: #5a6473;
    --space-highlight: #0f8b8d;
}

.space-modern-page {
    background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 60%);
}

.space-modern-hero {
    position: relative;
    padding-bottom: 1.5rem;
    overflow: hidden;
}

.space-modern-hero__gallery {
    margin-bottom: 1.25rem;
}

.space-modern-hero__content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.75rem 2rem;
    margin: 0 auto;
    max-width: 1100px;
    box-shadow: 0 30px 80px -40px rgba(15, 23, 36, 0.45);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.space-modern-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--space-highlight);
}

.space-modern-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.35rem 0 0.5rem;
    color: var(--space-ink);
}

.space-modern-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--space-muted);
    font-weight: 600;
}

.space-modern-hero__meta i {
    color: var(--space-highlight);
    margin-right: 0.35rem;
}

.space-modern-hero__rating {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 139, 141, 0.1);
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
}

.space-modern-hero__rating-badge {
    background: var(--space-highlight);
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 700;
}

.space-modern-hero__cta {
    text-align: right;
}

.space-modern-hero__price {
    display: block;
    color: var(--space-muted);
    margin-bottom: 0.5rem;
}

.space-modern-hero__price strong {
    display: block;
    font-size: 2rem;
    color: var(--space-ink);
}

.space-modern-hero__button {
    border-radius: 999px;
    padding: 0.85rem 2.5rem;
    font-weight: 600;
}

.space-modern-body {
    padding-top: 2rem;
}

.space-modern-body .space-featured-card,
.space-modern-body .space-featured-card .card {
    border-radius: 18px;
    box-shadow: 0 20px 60px -35px rgba(15, 23, 36, 0.35);
}

.space-related-modern {
    padding: 4rem 0;
}

.space-related-modern__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.space-related-modern__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--space-highlight);
}

.space-related-modern__header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0.5rem 0 0.75rem;
}

.space-related-modern__header p {
    color: var(--space-muted);
}

.space-related-card {
    height: 100%;
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 24px 65px -35px rgba(15, 23, 36, 0.4);
    border: 1px solid rgba(15, 23, 36, 0.08);
    background: #fff;
}

.space-related-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.space-related-card .card-body {
    padding-bottom: 1.25rem;
}

.space-modern-book {
    position: sticky;
    top: 100px;
}

.space-modern-book__card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 80px -45px rgba(15, 23, 36, 0.45);
    overflow: hidden;
}

.space-modern-book__price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(120deg, rgba(15, 139, 141, 0.08), rgba(15, 139, 141, 0.2));
}

.space-modern-book__price small {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--space-muted);
}

.space-modern-book__price strong {
    display: block;
    font-size: 1.8rem;
    color: var(--space-ink);
}

.space-modern-book__price span {
    color: var(--space-muted);
}

.space-modern-book__badge {
    background: var(--space-highlight);
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.space-modern-book__sale {
    text-decoration: line-through;
    color: #e63946;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.space-modern-book__body {
    padding: 1.75rem;
}

.space-modern-book__group {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 36, 0.08);
    padding-bottom: 1.1rem;
}

.space-modern-book__group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.space-modern-book__group-inner {
    display: grid;
    gap: 0.45rem;
}

.space-modern-book__group-inner label,
.space-modern-book__group-inner span {
    font-weight: 600;
}

.space-modern-book__fees {
    margin-bottom: 1.25rem;
}

.space-modern-book__total {
    padding-left: 0;
    list-style: none;
    border-top: 1px solid rgba(15, 23, 36, 0.08);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.space-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
}

.space-modern-header h2 {
    font-size: 2rem;
    margin: 0;
}

.space-modern-header__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--space-muted);
    flex-wrap: wrap;
}

.space-modern-header__rating {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--space-highlight);
}

.space-modern-header__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.space-modern-header__action,
.space-modern-header__action button {
    border: 1px solid rgba(15, 23, 36, 0.12);
    border-radius: 14px;
    background: #fff;
    padding: 0.55rem 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--space-ink);
}

.space-modern-header__action button {
    border: none;
    box-shadow: none;
}

.space-modern-header__action:hover,
.space-modern-header__action button:hover {
    border-color: rgba(15, 139, 141, 0.35);
}

.space-modern-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px solid rgba(15, 23, 36, 0.08);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.space-modern-stats__item {
    display: grid;
    gap: 0.25rem;
    min-width: 140px;
}

.space-modern-stats__item i {
    color: var(--space-highlight);
}

@media (max-width: 992px) {
    .space-modern-hero__content {
        padding: 1.5rem;
    }

    .space-modern-hero__cta {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .space-modern-hero__content {
        padding: 1.25rem;
    }
}

