/* ================================================================
   Elementor Pricing Table — Frontend Styles
   ================================================================ */

/* ----------------------------------------------------------------
   CSS Custom Properties
---------------------------------------------------------------- */
.ept-pricing-wrapper {
    --ept-accent:         #6366f1;
    --ept-accent-light:   rgba(99, 102, 241, 0.12);
    --ept-badge-color:    #f59e0b;
    --ept-card-bg:        #ffffff;
    --ept-card-radius:    16px;
    --ept-shadow:         0 4px 24px rgba(0, 0, 0, 0.08);
    --ept-shadow-hover:   0 16px 48px rgba(0, 0, 0, 0.16);
    --ept-transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

/* ----------------------------------------------------------------
   Toggle
---------------------------------------------------------------- */
.ept-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.ept-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    cursor: default;
}

/* Toggle switch */
.ept-toggle {
    position: relative;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.ept-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ept-toggle-track {
    display: block;
    width: 56px;
    height: 28px;
    background: #e5e7eb;
    border-radius: 999px;
    position: relative;
    transition: background var(--ept-transition);
}

.ept-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform var(--ept-transition);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.ept-toggle-input:checked + .ept-toggle-track {
    background: #6366f1;
}

.ept-toggle-input:checked + .ept-toggle-track .ept-toggle-thumb {
    transform: translateX(28px);
}

.ept-toggle-input:focus-visible + .ept-toggle-track {
    outline: 3px solid rgba(99, 102, 241, 0.4);
    outline-offset: 2px;
}

/* Discount badge */
.ept-discount-badge {
    display: inline-flex;
    align-items: center;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
}

/* ----------------------------------------------------------------
   Grid Layout
---------------------------------------------------------------- */
.ept-plans-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

.ept-cols-1 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.ept-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ept-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ept-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Featured scale */
.ept-plans-grid.ept-featured-scale .ept-plan-card.ept-featured {
    transform: scale(1.04);
    z-index: 2;
}

/* ----------------------------------------------------------------
   Plan Card
---------------------------------------------------------------- */
.ept-plan-card {
    position: relative;
    background: var(--ept-card-bg, #ffffff);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition:
        transform var(--ept-transition),
        box-shadow var(--ept-transition);
}

/* Accent top stripe */
.ept-plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--ept-accent, #6366f1);
    opacity: 0;
    transition: opacity var(--ept-transition);
}

.ept-plan-card:hover::before,
.ept-plan-card.ept-featured::before {
    opacity: 1;
}

/* ----------------------------------------------------------------
   Hover Effects
---------------------------------------------------------------- */
.ept-hover-lift .ept-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.ept-hover-scale .ept-plan-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.ept-hover-glow .ept-plan-card:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
}

.ept-hover-tilt .ept-plan-card:hover {
    transform: perspective(600px) rotateY(-4deg) translateY(-4px);
    box-shadow: 12px 20px 40px rgba(0, 0, 0, 0.12);
}

/* Keep featured card elevated when scale+lift combo */
.ept-plans-grid.ept-featured-scale .ept-hover-lift .ept-plan-card.ept-featured:hover {
    transform: scale(1.04) translateY(-8px);
}

/* ----------------------------------------------------------------
   Badges
---------------------------------------------------------------- */
.ept-badge {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 3;
}

/* Ribbon badge */
.ept-badge-ribbon {
    top: 20px;
    right: -28px;
    background: var(--ept-badge-color, #f59e0b);
    padding: 5px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transform-origin: center;
    width: 120px;
    text-align: center;
}

/* Pill badge */
.ept-badge-pill {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ept-badge-color, #f59e0b);
    padding: 5px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

/* Tag badge */
.ept-badge-tag {
    top: 16px;
    right: 16px;
    background: var(--ept-badge-color, #f59e0b);
    padding: 5px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ----------------------------------------------------------------
   Plan Header
---------------------------------------------------------------- */
.ept-plan-header {
    text-align: center;
    margin-bottom: 24px;
}

.ept-plan-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    margin-bottom: 16px;
    transition: transform var(--ept-transition), background var(--ept-transition);
}

.ept-plan-icon i {
    font-size: 28px;
    color: var(--ept-accent, #6366f1);
    transition: color var(--ept-transition);
}

.ept-plan-card:hover .ept-plan-icon {
    transform: scale(1.1) rotate(-4deg);
    background: var(--ept-accent-light, rgba(99, 102, 241, 0.18));
}

.ept-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.2;
}

.ept-plan-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   Price Block
---------------------------------------------------------------- */
.ept-price-block {
    text-align: center;
    margin-bottom: 28px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ept-price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.ept-currency {
    font-size: 24px;
    font-weight: 700;
    color: #374151;
    align-self: flex-start;
    margin-top: 12px;
}

.ept-price-amount {
    font-size: 56px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    /* Price transition animation */
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ept-price-amount.ept-price-animating {
    opacity: 0;
    transform: translateY(-12px);
}

.ept-price-amount.ept-price-entering {
    animation: eptPriceIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes eptPriceIn {
    from { opacity: 0; transform: translateY(12px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.ept-price-period-wrap {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
    padding-bottom: 8px;
}

.ept-price-period {
    font-size: 14px;
    color: #9ca3af;
    white-space: nowrap;
}

.ept-billing-note {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
    transition: opacity 0.3s ease;
}

/* ----------------------------------------------------------------
   Features List
---------------------------------------------------------------- */
.ept-features-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1;
}

.ept-plan-card.ept-has-dividers .ept-feature-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ept-plan-card.ept-has-dividers .ept-feature-item:last-child {
    border-bottom: none;
}

.ept-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    transition: color var(--ept-transition);
}

.ept-feature-item.ept-feature-unavailable {
    color: #9ca3af;
    text-decoration: line-through;
    opacity: 0.6;
}

.ept-feature-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.ept-feature-icon.ept-available  { color: #10b981; }
.ept-feature-icon.ept-unavailable { color: #d1d5db; }

/* ----------------------------------------------------------------
   CTA Button
---------------------------------------------------------------- */
.ept-cta-wrap {
    margin-top: auto;
}

.ept-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition:
        background-color var(--ept-transition),
        color var(--ept-transition),
        border-color var(--ept-transition),
        transform 0.18s ease,
        box-shadow var(--ept-transition);
    letter-spacing: 0.01em;
}

.ept-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.ept-cta-btn:active {
    transform: translateY(0);
}

/* Filled */
.ept-btn-filled {
    background-color: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.ept-btn-filled:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

/* Outline */
.ept-btn-outline {
    background-color: transparent;
    color: #6366f1;
    border-color: #6366f1;
}

.ept-btn-outline:hover {
    background-color: #6366f1;
    color: #ffffff;
}

/* Gradient */
.ept-btn-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: transparent;
}

.ept-btn-gradient:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* ----------------------------------------------------------------
   Featured Card Overrides
---------------------------------------------------------------- */
.ept-plan-card.ept-featured .ept-plan-name,
.ept-plan-card.ept-featured .ept-price-amount,
.ept-plan-card.ept-featured .ept-currency,
.ept-plan-card.ept-featured .ept-feature-item {
    color: #ffffff;
}

.ept-plan-card.ept-featured .ept-plan-description,
.ept-plan-card.ept-featured .ept-price-period,
.ept-plan-card.ept-featured .ept-billing-note {
    color: rgba(255, 255, 255, 0.75);
}

.ept-plan-card.ept-featured .ept-price-block {
    border-color: rgba(255, 255, 255, 0.2);
}

.ept-plan-card.ept-featured .ept-feature-item.ept-feature-unavailable {
    color: rgba(255, 255, 255, 0.4);
}

.ept-plan-card.ept-featured .ept-plan-icon {
    background: rgba(255, 255, 255, 0.15);
}

.ept-plan-card.ept-featured .ept-plan-icon i {
    color: #ffffff;
}

.ept-plan-card.ept-featured .ept-feature-icon.ept-available {
    color: #6ee7b7;
}

.ept-plan-card.ept-featured .ept-feature-icon.ept-unavailable {
    color: rgba(255, 255, 255, 0.3);
}

.ept-plan-card.ept-featured .ept-has-dividers .ept-feature-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ept-plan-card.ept-featured .ept-cta-btn.ept-btn-filled {
    background: #ffffff;
    color: #6366f1;
    border-color: #ffffff;
}

.ept-plan-card.ept-featured .ept-cta-btn.ept-btn-filled:hover {
    background: rgba(255, 255, 255, 0.9);
}

.ept-plan-card.ept-featured .ept-cta-btn.ept-btn-outline {
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.ept-plan-card.ept-featured .ept-cta-btn.ept-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Custom accent color overrides */
.ept-plan-card[style*="--ept-accent"] .ept-plan-icon i { color: var(--ept-accent); }
.ept-plan-card[style*="--ept-accent"] .ept-feature-icon.ept-available { color: var(--ept-accent); }
.ept-plan-card[style*="--ept-accent"] .ept-cta-btn.ept-btn-filled {
    background-color: var(--ept-accent);
    border-color: var(--ept-accent);
}
.ept-plan-card[style*="--ept-accent"] .ept-cta-btn.ept-btn-outline {
    color: var(--ept-accent);
    border-color: var(--ept-accent);
}
.ept-plan-card[style*="--ept-accent"]::before { background: var(--ept-accent); }

/* ----------------------------------------------------------------
   Responsive
---------------------------------------------------------------- */
@media (max-width: 1200px) {
    .ept-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .ept-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .ept-cols-4 { grid-template-columns: repeat(2, 1fr); }

    /* Disable scale on medium screens */
    .ept-plans-grid.ept-featured-scale .ept-plan-card.ept-featured {
        transform: none;
    }
}

@media (max-width: 600px) {
    .ept-cols-2,
    .ept-cols-3,
    .ept-cols-4 { grid-template-columns: 1fr; }

    .ept-plan-card { padding: 28px 20px; }

    .ept-toggle-wrapper {
        gap: 8px;
        justify-content: center;
    }

    .ept-price-amount { font-size: 44px; }

    .ept-plans-grid.ept-featured-scale .ept-plan-card.ept-featured {
        transform: none;
    }
}

@media (max-width: 380px) {
    .ept-toggle-label { font-size: 13px; }
    .ept-toggle-track { width: 46px; height: 24px; }
    .ept-toggle-thumb { width: 18px; height: 18px; }
    .ept-toggle-input:checked + .ept-toggle-track .ept-toggle-thumb {
        transform: translateX(22px);
    }
}

/* ----------------------------------------------------------------
   Pill badge — keep visible on featured
---------------------------------------------------------------- */
.ept-plan-card.ept-featured .ept-badge-pill,
.ept-plan-card.ept-featured .ept-badge-tag {
    mix-blend-mode: normal;
}
