/* ========================================
   Subscription Pages
   ======================================== */

.subscriptions-page { padding: 30px 0 70px; }

/* ---- Hero ---- */
.sub-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 20px;
    background: linear-gradient(135deg, #5D3754 0%, #3d2238 100%);
    border-radius: 20px;
    color: #fff;
}
.sub-hero__title {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-heading-family, 'Playfair Display', serif);
    margin: 0 0 12px;
    color: #fff;
}
.sub-hero__subtitle {
    font-size: 16px;
    opacity: 0.75;
    margin: 0 0 24px;
    line-height: 1.6;
}
.sub-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.sub-hero__badge svg {
    stroke: #fff;
}

/* ---- Grid ---- */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* ---- Card ---- */
.sub-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(var(--color-foreground), .06);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .3s;
    box-shadow: 0 2px 12px rgba(93,55,84,0.04);
}
.sub-card:hover {
    border-color: rgba(var(--color-button), .3);
    box-shadow: 0 8px 30px rgba(93,55,84,0.12);
    transform: translateY(-4px);
}
.sub-card__image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.sub-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.sub-card:hover .sub-card__image img {
    transform: scale(1.05);
}
.sub-card__body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sub-card__name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    font-family: var(--font-heading-family, 'Playfair Display', serif);
}
.sub-card__desc {
    font-size: 14px;
    color: rgba(var(--color-foreground), .55);
    margin: 0 0 20px;
    line-height: 1.6;
}
.sub-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
}
.sub-card__price {
    font-size: 32px;
    font-weight: 700;
    color: rgb(var(--color-button));
}
.sub-card__period {
    font-size: 14px;
    color: rgba(var(--color-foreground), .45);
    font-weight: 500;
}
.sub-card__monthly-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(var(--color-button), .05);
    border-radius: 10px;
    font-size: 12px;
    color: rgba(var(--color-foreground), .65);
    margin-bottom: 20px;
    line-height: 1.5;
    border-left: 3px solid rgb(var(--color-button));
}
.sub-card__monthly-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    stroke: rgb(var(--color-button));
}
.sub-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-card__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(var(--color-foreground), .75);
}
.sub-card__features li svg { flex-shrink: 0; }
.sub-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 14px;
    background: rgb(var(--color-button));
    color: rgb(var(--color-button-text));
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all .25s;
}
.sub-card:hover .sub-card__cta {
    box-shadow: 0 4px 12px rgba(var(--color-button), .2);
}

/* ---- Detail Page ---- */
.sub-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.sub-detail__image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(93,55,84,0.08);
}
.sub-detail__image img {
    width: 100%;
    display: block;
}
.sub-detail__content {
    min-width: 0;
}
.sub-detail__title {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-heading-family, 'Playfair Display', serif);
    margin: 0 0 16px;
}
.sub-detail__desc {
    font-size: 15px;
    color: rgba(var(--color-foreground), .65);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Pricing Box */
.sub-detail__pricing-box {
    background: #fff;
    border: 2px solid rgba(var(--color-button), .15);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(93,55,84,0.06);
}
.sub-detail__price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(var(--color-button), .1);
}
.sub-detail__price {
    font-size: 40px;
    font-weight: 700;
    color: rgb(var(--color-button));
    font-family: var(--font-heading-family, 'Playfair Display', serif);
}
.sub-detail__period {
    font-size: 16px;
    color: rgba(var(--color-foreground), .45);
    font-weight: 500;
}
.sub-detail__billing-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.sub-detail__billing-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.sub-detail__billing-item svg { flex-shrink: 0; margin-top: 2px; }
.sub-detail__billing-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    color: rgb(var(--color-foreground));
}
.sub-detail__billing-item p {
    font-size: 13px;
    color: rgba(var(--color-foreground), .55);
    margin: 0;
    line-height: 1.5;
}

/* Features */
.sub-detail__features {
    margin-bottom: 28px;
}
.sub-detail__features h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
}
.sub-detail__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sub-detail__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(var(--color-foreground), .75);
}
.sub-detail__features li svg { flex-shrink: 0; }

/* CTA */
.sub-detail__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: rgb(var(--color-button));
    color: #fff !important;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(var(--color-button), .35), inset 0 1px 0 rgba(255,255,255,.18);
    letter-spacing: .2px;
    font-family: inherit;
}
.sub-detail__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--color-button), .45), inset 0 1px 0 rgba(255,255,255,.18);
    background: rgb(var(--color-button));
    filter: brightness(1.08);
}
.sub-detail__btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--color-button), .3), inset 0 1px 0 rgba(255,255,255,.12);
}
.sub-detail__btn svg { stroke: #fff !important; }
.sub-detail__btn--cta {
    background: linear-gradient(135deg, rgb(var(--color-button)) 0%, #3d2238 100%);
}
.sub-detail__login-hint {
    font-size: 13px;
    color: rgba(var(--color-foreground), .5);
    text-align: center;
    margin: 0 0 16px;
}
.sub-detail__login-hint a {
    color: rgb(var(--color-button));
    text-decoration: none;
    font-weight: 600;
}

/* Summary */
.sub-detail__summary {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}
.sub-detail__summary svg {
    flex-shrink: 0;
    margin-top: 1px;
    stroke: #d97706;
}

/* ---- Empty State ---- */
.sub-empty {
    text-align: center;
    padding: 80px 20px;
}
.sub-empty h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 20px 0 8px;
}
.sub-empty p {
    font-size: 14px;
    color: rgba(var(--color-foreground), .5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .sub-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .sub-hero {
        padding: 40px 20px;
    }
}
@media (max-width: 767px) {
    .sub-grid {
        grid-template-columns: 1fr;
    }
    .sub-hero__title {
        font-size: 28px;
    }
    .sub-hero {
        padding: 32px 16px;
        border-radius: 14px;
    }
    .sub-detail__price {
        font-size: 32px;
    }
    .sub-card__body {
        padding: 20px;
    }
}
