/* ============================================
   Plans / Pricing Page Styles
   ============================================ */

/* Active nav link */
.active-nav {
    color: var(--primary-blue) !important;
    font-weight: 700 !important;
}

/* ---------- Hero ---------- */
.plans-hero {
    padding: 90px 0 60px;
    background: var(--dark-navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plans-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.plans-hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.plans-hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #06B6D4;
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ---------- Plans Section ---------- */
.plans-section {
    padding: 60px 0 100px;
    background: var(--dark-navy);
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

/* ---------- Plan Card ---------- */
.plan-card {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.22);
}

/* Featured card */
.plan-featured {
    border-color: var(--primary-blue);
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.15) 0%, rgba(17, 24, 39, 0.9) 60%);
    box-shadow: 0 10px 50px rgba(124, 58, 237, 0.25);
    transform: scale(1.03);
}

.plan-featured:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 25px 70px rgba(124, 58, 237, 0.35);
}

/* Badge */
.plan-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-blue), var(--neon-cyan));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 1.4rem;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.45);
}

/* Header */
.plan-header {
    text-align: center;
}

.plan-icon {
    font-size: 3rem;
    margin-bottom: 0.6rem;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.plan-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Pricing */
.plan-pricing {
    text-align: center;
}

.plan-original {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.plan-price {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.15rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.plan-price .currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-top: 0.5rem;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-period {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.3rem;
}

.plan-per-month {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

/* Features list */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.feat-check {
    color: var(--neon-cyan);
    font-weight: 700;
    flex-shrink: 0;
}

.gold-check {
    color: #F59E0B !important;
}

/* Button */
.plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(124, 58, 237, 0.15);
    color: var(--white);
    border: 2px solid rgba(124, 58, 237, 0.5);
}

.plan-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.4);
}

.plan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.plan-btn-featured {
    background: linear-gradient(135deg, var(--primary-blue), var(--neon-cyan));
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

.plan-btn-featured:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--neon-cyan-dark));
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.55);
}

.plan-note {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: -0.5rem;
}

/* ---------- Trust Section ---------- */
.trust-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(124, 58, 237, 0.15);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

.trust-icon {
    font-size: 1.4rem;
}

/* ---------- FAQ ---------- */
.faq-section {
    margin-top: 1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(124, 58, 237, 0.35);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.6rem;
}

.faq-item p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ---------- Spinner ---------- */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 0.4rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1E293B;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .plan-featured {
        transform: none;
        order: -1;
    }

    .plan-featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .plans-hero-text h1 {
        font-size: 2rem;
    }

    .trust-section {
        gap: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Light Theme ---------- */
[data-theme="light"] .plan-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .plan-card:hover {
    background: rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .plan-featured {
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.08) 0%, rgba(255, 255, 255, 0.95) 60%);
}

[data-theme="light"] .plan-name {
    color: #1E1B4B;
}

[data-theme="light"] .plan-features li {
    color: rgba(30, 27, 75, 0.85);
}

[data-theme="light"] .plan-desc,
[data-theme="light"] .plan-period {
    color: rgba(30, 27, 75, 0.5);
}

[data-theme="light"] .plan-original {
    color: rgba(30, 27, 75, 0.3);
}

[data-theme="light"] .plans-hero-text p {
    color: rgba(30, 27, 75, 0.7);
}

[data-theme="light"] .plan-note {
    color: rgba(30, 27, 75, 0.35);
}

[data-theme="light"] .trust-item {
    color: rgba(30, 27, 75, 0.75);
}

[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .faq-item p {
    color: rgba(30, 27, 75, 0.7);
}

[data-theme="light"] .plan-price .amount {
    background: linear-gradient(135deg, #1E1B4B 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
