/* ── Subscription Offer ─────────────────────────────────────── */

/* No outer frame — just a centered content wrapper */
.sc-offer-wrap {
    max-width: 860px;
    margin: 2rem auto;
}

/* Two-column plan layout — CSS Grid controls columns on the parent,
   immune to theme width:100% rules targeting the child .card elements */
.sc-plans-grid {
    display: -ms-grid !important;
    display: grid !important;
    -ms-grid-columns: 1fr 1.5rem 1fr;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
    align-items: start;
}

/* Children just fill their grid cell; no width negotiation needed */
.sc-plans-grid > .sc-plan-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .sc-plans-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Plan card ── */
.sc-plan-card {
    position: relative;
    padding: 2.25rem 1.75rem 2rem;
    border-radius: 15px;
    border: 1px solid #e8e8f0;
    box-shadow: 0 4px 20px rgba(114, 18, 50, 0.06);
    transition: all 300ms linear;
    /* no overflow:hidden — keeps recommendation badge fully visible */
}

.sc-plan-card:hover {
    box-shadow: 0 8px 32px rgba(114, 18, 50, 0.14);
    transform: translateY(-5px);
}

/* Featured (yearly) card */
.sc-plan-card--featured {
    border-color: #721232;
    border-width: 2px;
    box-shadow: 0 6px 28px rgba(114, 18, 50, 0.13);
}

/* "Empfohlen" pill badge — centered above plan title */
.sc-plan-card__recommend {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #721232, #9a1a44);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.sc-plan-card__recommend .bi {
    font-size: 0.7rem;
    color: #FFD601;
}

/* Savings chip below price */
.sc-plan-card__savings {
    display: inline-block;
    background: #fff8e1;
    color: #a07a00;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.2rem 0.8rem;
    margin-bottom: 1.25rem;
    border: 1px solid #FFD601;
}

/* Plan title */
.sc-plan-card__title {
    color: #353A58;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
}

/* Price block */
.sc-plan-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    color: #721232;
    margin-bottom: 0.25rem;
}

.sc-plan-card__currency {
    font-size: 1rem;
    font-weight: 600;
    align-self: flex-start;
    margin-top: 0.6rem;
}

.sc-plan-card__amount {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
}

.sc-plan-card__period {
    font-size: 0.95rem;
    color: #A1A1A4;
    font-weight: 400;
}

/* Yearly equivalent price line */
.sc-plan-card__equiv {
    font-size: 0.82rem;
    color: #721232;
    font-weight: 500;
    margin: 0 0 1.5rem;
    opacity: 0.8;
}

/* Monthly cancelation note — subtle, not dominant */
.sc-plan-card__hint {
    font-size: 0.78rem;
    color: #A1A1A4;
    font-style: italic;
    margin: 0.1rem 0 1.5rem;
}

/* Feature list — grows to fill available height, pushes CTA to bottom */
.sc-plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    text-align: left;
    border-top: 1px solid #f5e8ec;
    padding-top: 1.25rem;
    flex-grow: 1;
}

.sc-plan-card__features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0;
    color: #4E4E4E;
    font-size: 0.92rem;
}

.sc-plan-card__features li + li {
    border-top: 1px solid #faf3f5;
}

.sc-plan-card__features .bi {
    color: #721232;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* CTA button */
.sc-plan-card__cta {
    width: 100%;
}

/* Login hint below the grid */
.sc-offer-login-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #A1A1A4;
    margin-top: 1.25rem;
}

.sc-offer-login-hint a {
    color: #721232;
    font-weight: 500;
    text-decoration: none;
}

.sc-offer-login-hint a:hover {
    color: #FFD601;
}

/* ── Active subscription card ── */
.sc-plan-card--active {
    max-width: 420px;
    margin: 0 auto;
    border-color: rgba(114, 18, 50, 0.2);
    background: linear-gradient(135deg, #fdf8f9 0%, #ffffff 100%);
}

.sc-plan-card__active-icon {
    font-size: 2.75rem;
    color: #721232;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.sc-plan-card__meta {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    border-top: 1px solid #f5e8ec;
    text-align: left;
}

.sc-plan-card__meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #faf3f5;
    font-size: 0.92rem;
}

.sc-plan-card__meta-label { color: #A1A1A4; font-weight: 500; }
.sc-plan-card__meta-value { color: #353A58; font-weight: 600; }

/* ── Circle Course Card ─────────────────────────────────────── */
.sc-circle-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: box-shadow 300ms, transform 300ms;
    background: #fff;
    height: 100%;
}

.sc-circle-card:hover {
    box-shadow: 0 6px 24px rgba(114, 18, 50, 0.13);
    transform: translateY(-3px);
}

.sc-circle-card__thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #721232, #9a1a44);
    text-decoration: none;
}

.sc-circle-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-circle-card__thumbnail--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-circle-card__icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.85);
    line-height: 1;
}

.sc-circle-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.sc-circle-card__badge {
    display: inline-block;
    background: #fff3f6;
    color: #721232;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.65rem;
    border-radius: 2rem;
    border: 1px solid rgba(114,18,50,0.2);
    margin-bottom: 0.6rem;
    width: fit-content;
}

.sc-circle-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.sc-circle-card__title a {
    color: #1a1a2e;
    text-decoration: none;
}

.sc-circle-card__title a:hover {
    color: #721232;
}

.sc-circle-card__desc {
    font-size: 0.88rem;
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.5;
    flex: 1;
}

.sc-circle-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.sc-circle-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #721232;
}

.sc-circle-card__price small {
    font-size: 0.78rem;
    font-weight: 400;
    color: #999;
}

.sc-circle-card__btn {
    display: inline-block;
    background: #721232;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 200ms;
}

.sc-circle-card__btn:hover {
    background: #9a1a44;
    color: #fff;
}

/* ── Calls List ─────────────────────────────────────────────── */
.sc-calls-container {
    max-width: 800px;
    margin: 20px auto;
}

.sc-calls-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.sc-call-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sc-call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sc-call-header h3 {
    margin: 0;
}

.sc-registered {
    background: #90EE90;
    color: #333;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.sc-call-info p {
    margin: 10px 0;
    line-height: 1.6;
}

.sc-call-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.sc-register-btn,
.sc-unregister-btn {
    cursor: pointer;
}

.sc-full {
    padding: 5px 10px;
    background: #ddd;
    color: #999;
    border-radius: 3px;
}

@media (max-width: 600px) {
    .sc-call-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Account Dashboard ──────────────────────────────────────── */
.sc-account-dashboard {
    max-width: 600px;
    margin: 20px auto;
}

.sc-no-subscription {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    text-align: center;
}

.sc-subscription-info,
.sc-invoices {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.sc-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.sc-info-table tr {
    border-bottom: 1px solid #eee;
}

.sc-info-table td {
    padding: 10px;
}

.sc-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.sc-status-active   { background: #90EE90; color: #333; }
.sc-status-pending  { background: #FFD700; color: #333; }
.sc-status-past_due { background: #FF6347; color: white; }
.sc-status-cancelled { background: #DDD; color: #666; }

.sc-invoices-table {
    width: 100%;
    border-collapse: collapse;
}

.sc-invoices-table thead {
    background: #f5f5f5;
}

.sc-invoices-table th,
.sc-invoices-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.sc-cancel-subscription-btn {
    margin-top: 15px;
}
