/* ============================================
   SADEE JODI — Membership Plans Styles
   Premium pricing cards and PIN activation
   ============================================ */

/* ---- Plans Page ---- */
.plans-page {
    padding-top: 100px;
    min-height: 100vh;
}

.plans-hero {
    text-align: center;
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.plans-hero h1 {
    font-size: clamp(var(--fs-3xl), 4vw, 48px);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-md);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plans-hero p {
    font-size: var(--fs-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Plans Grid ---- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
    align-items: stretch;
}

/* ---- Plan Card ---- */
.plan-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(233, 30, 99, 0.15);
}

.plan-card.popular::before {
    content: '⭐ MOST POPULAR';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    border-radius: var(--border-radius-pill);
    white-space: nowrap;
}

.plan-card.diamond {
    border-color: rgba(124, 77, 255, 0.4);
    background: linear-gradient(145deg, rgba(124, 77, 255, 0.05), var(--bg-card));
}

.plan-card.diamond::before {
    content: '💎 PREMIUM';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-secondary);
    color: #fff;
    font-size: 11px;
    font-weight: var(--fw-bold);
    letter-spacing: 1px;
    border-radius: var(--border-radius-pill);
    white-space: nowrap;
}

/* Plan Header */
.plan-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    display: block;
}

.plan-name {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
}

.plan-card.free .plan-name { color: var(--text-secondary); }
.plan-card.silver .plan-name { color: #C0C0C0; }
.plan-card.gold .plan-name, .plan-card.popular .plan-name { color: var(--gold); }
.plan-card.diamond .plan-name { color: var(--secondary); }

.plan-tagline {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* Plan Price */
.plan-price {
    margin-bottom: var(--space-xl);
}

.plan-price .price-amount {
    font-size: 42px;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.plan-price .price-currency {
    font-size: var(--fs-lg);
    vertical-align: super;
    color: var(--text-muted);
}

.plan-price .price-duration {
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

.plan-price .price-original {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-top: 4px;
}

/* Plan Features */
.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
    flex: 1;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li .feature-icon {
    font-size: var(--fs-base);
    flex-shrink: 0;
}

.plan-features li.disabled {
    opacity: 0.3;
    text-decoration: line-through;
}

/* Plan CTA */
.plan-cta {
    margin-top: auto;
}

.plan-cta .btn {
    width: 100%;
}

/* ---- Feature Comparison Table ---- */
.comparison-section {
    margin-bottom: var(--space-4xl);
}

.comparison-section h3 {
    font-size: var(--fs-2xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.comparison-table thead th {
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table tbody td {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-sm);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: var(--fw-medium);
    color: var(--text-primary);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ---- PIN/Voucher Activation ---- */
.pin-activate-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    text-align: center;
}

.pin-activate-card h3 {
    margin-bottom: var(--space-sm);
}

.pin-activate-card p {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.pin-input-group {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.pin-input-group input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.pin-input-group input:focus {
    border-color: var(--primary);
    outline: none;
}

/* ---- FAQ Section ---- */
.faq-section {
    max-width: 800px;
    margin: 0 auto var(--space-4xl);
}

.faq-section h3 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.faq-item {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: var(--fw-medium);
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question .faq-toggle {
    transition: transform var(--transition-fast);
}

.faq-item.open .faq-question .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 var(--space-xl) var(--space-lg);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: var(--lh-relaxed);
}

/* ---- Responsive Plans ---- */
@media screen and (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .comparison-table {
        font-size: var(--fs-xs);
    }
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: var(--space-sm);
    }
}
