/* =============================================
   Plan cards — shared between signup/plan and
   subscription management pages.
   ============================================= */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 991px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.plan-card.plan-popular {
    border-color: #057ffa;
    box-shadow: 0 4px 20px rgba(5, 127, 250, 0.12);
}

.plan-popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #057ffa;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}

.plan-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #010e20;
    margin-top: 0.25rem;
}

.plan-ticket-limit {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px;
    width: fit-content;
}
.plan-ticket-limit i { font-size: 0.75rem; color: #057ffa; }

.plan-price-wrap { display: flex; align-items: baseline; gap: 0.3rem; }
.plan-price { font-size: 1.6rem; font-weight: 800; color: #010e20; line-height: 1; }
.plan-price-period { font-size: 0.82rem; color: #94a3b8; }

.plan-price-loading {
    display: inline-block;
    width: 70px;
    height: 1.6rem;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: plan-shimmer 1.4s infinite;
    border-radius: 6px;
    vertical-align: middle;
}
@keyframes plan-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.plan-price-contact { font-size: 1rem; font-weight: 700; color: #010e20; }

.plan-trial-note { font-size: 0.75rem; color: #64748b; }

.plan-cta {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
    width: 100%;
}
.plan-cta-primary { background: #057ffa; color: #fff; border-color: #057ffa; }
.plan-cta-primary:hover:not([disabled]) { background: #0066d6; border-color: #0066d6; color: #fff; }
.plan-cta-primary[disabled] { opacity: 0.7; cursor: default; }
.plan-cta-secondary { background: transparent; color: #057ffa; border-color: #057ffa; }
.plan-cta-secondary:hover { background: #f0f7ff; }
.plan-cta-outline { background: transparent; color: #64748b; border-color: #e2e8f0; }
.plan-cta-outline:hover { border-color: #94a3b8; color: #374151; }

/* ---- Features list (signup only) ---- */
.plan-features-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
}
.plan-features-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.plan-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem 1.5rem;
}
@media (max-width: 767px) { .plan-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .plan-features-grid { grid-template-columns: 1fr; } }
.plan-feat { display: flex; align-items: flex-start; gap: 0.5rem; }
.plan-feat-icon { color: #22c55e; font-size: 0.9rem; flex-shrink: 0; padding-top: 1px; }
.plan-feat-title { font-size: 0.82rem; font-weight: 600; color: #374151; }

/* ---- Setup addon card (signup only) ---- */
.setup-addon-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}
.setup-addon-card:has(input:checked) { border-color: #057ffa; background: #f0f7ff; }
.setup-addon-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    margin: 0;
}
.setup-addon-check { flex-shrink: 0; padding-top: 2px; }
.setup-addon-checkbox { display: none; }
.setup-addon-checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
    transition: background 0.15s, border-color 0.15s;
}
.setup-addon-card:has(input:checked) .setup-addon-checkmark { background: #057ffa; border-color: #057ffa; }
.setup-addon-body { flex: 1; }
.setup-addon-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #010e20;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}
.setup-addon-badge { font-size: 0.68rem; font-weight: 600; background: #f1f5f9; color: #64748b; border-radius: 20px; padding: 1px 8px; }
.setup-addon-desc { font-size: 0.82rem; color: #64748b; margin-bottom: 0.6rem; line-height: 1.4; }
.setup-addon-includes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.setup-addon-includes li { font-size: 0.8rem; color: #475569; display: flex; align-items: center; gap: 0.4rem; }
.setup-addon-includes li i { color: #057ffa; font-size: 0.85rem; }
.setup-addon-price { font-size: 1.1rem; font-weight: 700; color: #010e20; white-space: nowrap; padding-top: 2px; }
