/* Subscribe Page Styles */

.subscribe-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 1.5rem;
}

.subscribe-container {
    display: grid;
    grid-template-columns: auto 360px auto;
    grid-template-rows: auto 1fr;
    gap: 1rem 2rem;
    background: linear-gradient(135deg, rgba(160, 0, 42, 0.08) 0%, var(--bg-secondary) 50%, rgba(160, 0, 42, 0.05) 100%);
    border: 1px solid rgba(160, 0, 42, 0.2);
    border-radius: 20px;
    padding: 1.5rem 1.5rem 0 1.5rem;
    position: relative;
    max-width: 1000px;
    min-height: 420px;
}

/* Character Placeholders */
.subscribe-character {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    grid-row: 1 / 3;
    margin-bottom: -1px;
}

.character-placeholder {
    position: relative;
    overflow: hidden;
}

.character-placeholder .character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background-color: transparent;
}

.subscribe-character-left {
    grid-column: 1;
    justify-self: end;
    align-self: flex-end;
}

.subscribe-character-left .character-placeholder {
    width: 220px;
    height: 440px;
}

.subscribe-character-right {
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    align-self: flex-end;
}

.subscribe-character-right .character-placeholder {
    width: 220px;
    height: 340px;
}

/* Center Content */
.subscribe-center {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.subscribe-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.subscribe-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.4rem 0;
}

.subscribe-title .highlight {
    color: var(--accent-pink);
}

.subscribe-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Plan Cards */
.plan-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.plan-card:hover {
    border-color: rgba(160, 0, 42, 0.5);
    background: rgba(160, 0, 42, 0.05);
}

.plan-card-selected,
.plan-card-selected:hover {
    border-color: var(--accent-pink);
    background: rgba(160, 0, 42, 0.12);
}

.plan-card-featured {
    border-color: rgba(160, 0, 42, 0.4);
}

/* Plan Badge */
.plan-badge {
    position: absolute;
    top: -9px;
    left: 1rem;
    background: var(--accent-pink);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Plan Info */
.plan-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-pink);
}

/* Plan Pricing */
.plan-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.plan-original-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    position: relative;
}

.plan-original-price s {
    text-decoration: none;
    position: relative;
}

.plan-original-price s::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: var(--accent-pink);
    transform: rotate(-8deg);
}

.plan-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.25rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.trust-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    stroke: #22c55e;
}

/* Subscribe Button */
.subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--accent-pink);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    margin-bottom: 30px;
}

.subscribe-btn:hover:not(:disabled) {
    background: var(--accent-pink-hover);
}

.subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscribe-btn-disabled {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.subscribe-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.card-icon {
    height: 18px;
    width: auto;
}

.login-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.75rem;
}

.login-link {
    color: var(--accent-pink);
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* Benefits Sidebar */
.subscribe-benefits {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    width: 220px;
}

.benefits-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.benefit-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: var(--accent-pink);
}

/* Tablet / Mobile - Single column */
@media (max-width: 1180px) {
    .subscribe-page {
        padding: 0.5rem;
    }

    .subscribe-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        border-radius: 12px;
    }

    .subscribe-character {
        display: none;
    }

    .subscribe-center {
        order: 1;
        width: 100%;
        gap: 0.75rem;
    }

    .subscribe-benefits {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
    }

    .subscribe-title {
        font-size: 1.35rem;
    }

    .subscribe-subtitle {
        font-size: 0.7rem;
    }

    .plan-card {
        padding: 0.6rem 0.85rem;
    }

    .plan-name {
        font-size: 0.85rem;
    }

    .plan-price {
        font-size: 1.35rem;
    }

    .subscribe-btn {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    .benefits-title {
        font-size: 0.7rem;
    }

    .benefit-item {
        font-size: 0.65rem;
    }

    .benefit-item svg {
        width: 12px;
        height: 12px;
    }
}

/* Mobile */
@media (max-width: 400px) {
    .subscribe-page {
        padding: 0.25rem;
    }

    .subscribe-container {
        padding: 0.75rem;
        gap: 0.6rem;
        border-radius: 10px;
    }

    .subscribe-header {
        margin-bottom: 0;
    }

    .subscribe-title {
        font-size: 1.2rem;
    }

    .subscribe-subtitle {
        font-size: 0.75rem;
    }

    .plan-cards {
        gap: 0.4rem;
    }

    .plan-card {
        padding: 0.5rem 0.75rem;
    }

    .plan-badge {
        font-size: 0.5rem;
        padding: 0.15rem 0.35rem;
        top: -7px;
    }

    .plan-name {
        font-size: 0.8rem;
    }

    .plan-discount {
        font-size: 0.6rem;
    }

    .plan-price {
        font-size: 1.2rem;
    }

    .plan-period {
        font-size: 0.6rem;
    }

    .trust-badges {
        gap: 0.25rem;
    }

    .trust-badge {
        font-size: 0.6rem;
        gap: 0.3rem;
    }

    .trust-badge svg {
        width: 10px;
        height: 10px;
    }

    .subscribe-btn {
        padding: 0.6rem 0.85rem;
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .subscribe-btn svg {
        width: 14px;
        height: 14px;
    }

    .card-icon {
        height: 14px;
    }

    .login-hint {
        font-size: 0.65rem;
    }

    .subscribe-benefits {
        padding: 0.6rem;
    }

    .benefits-title {
        font-size: 0.65rem;
        margin-bottom: 0.35rem;
    }

    .benefits-list {
        gap: 0.25rem;
    }

    .benefit-item {
        font-size: 0.6rem;
        gap: 0.35rem;
    }

    .benefit-item svg {
        width: 10px;
        height: 10px;
    }
}

/* Amount Selector */
.amount-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.amount-presets {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.amount-preset {
    padding: 0.6rem 1.1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-preset:hover {
    border-color: rgba(160, 0, 42, 0.5);
    background: rgba(160, 0, 42, 0.05);
}

.amount-preset-selected {
    border-color: var(--accent-pink);
    background: rgba(160, 0, 42, 0.12);
}

/* A badged preset row: every preset sits in a slot that reserves a 15px strip
   above the button, so the row stays even. The badge is a separate element on
   top of the button (not inside it), exactly as wide as the button, and the
   badged button squares off its top corners so the two read as one tab.
   The row is capped and centred so the buttons keep close to their old width. */
.amount-presets-badged {
    max-width: 270px;
    margin: 0 auto;
}

.amount-preset-slot {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.amount-preset-slot .amount-preset {
    width: 100%;
}

.amount-presets-badged .amount-preset.amount-preset-has-badge {
    border-radius: 0 0 8px 8px;
    border-top-color: transparent;   /* no line between the badge and the button */
}

.preset-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 15px;
    background: #ffffff;
    color: #000000;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.preset-badge-empty {
    background: transparent;
}

.preset-badge svg {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
}

/* The extra line under "you get X minutes every month" for pledges that
   include live calls. */
.amount-live-calls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.amount-live-calls[hidden] {
    display: none;
}

.amount-live-calls svg {
    width: 14px;
    height: 14px;
}

.amount-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.amount-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.amount-input {
    width: 60px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 2px rgba(160, 0, 42, 0.35);
}

/* Keyboard focus must be visible on every control, not just the text input.
   .amount-input:focus above replaces the browser ring with a themed one. */
.amount-preset:focus-visible,
.subscribe-btn:focus-visible,
.login-link:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

.amount-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.amount-slider {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-pink);
    border-radius: 50%;
    cursor: pointer;
}

.amount-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-pink);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.amount-minutes {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.amount-minutes strong {
    color: var(--accent-pink);
}

@media (max-width: 400px) {
    .amount-presets {
        gap: 0.35rem;
    }

    .amount-preset {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .amount-input {
        font-size: 1.5rem;
        width: 50px;
    }

    .amount-currency {
        font-size: 1.25rem;
    }
}

/* Support Message */
.support-message {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    width: 100%;
    margin-top: 0.25rem;
}

.support-message svg {
    width: 12px;
    height: 12px;
    stroke: var(--accent-pink);
    flex-shrink: 0;
}

@media (max-width: 400px) {
    .support-message {
        font-size: 0.6rem;
        gap: 0.3rem;
    }

    .support-message svg {
        width: 10px;
        height: 10px;
    }
}
