/* Professional FOMO Pricing Styles */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Base variables */
:root {
    --sfp-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --sfp-primary: #1a73e8;
    --sfp-primary-light: #4285f4;
    --sfp-success: #137333;
    --sfp-success-light: #34a853;
    --sfp-warning: #f57c00;
    --sfp-warning-light: #ff9800;
    --sfp-error: #d33b2c;
    --sfp-error-light: #ea4335;
    --sfp-neutral-50: #fafafa;
    --sfp-neutral-100: #f5f5f5;
    --sfp-neutral-200: #e5e5e5;
    --sfp-neutral-300: #d4d4d4;
    --sfp-neutral-400: #a3a3a3;
    --sfp-neutral-500: #737373;
    --sfp-neutral-600: #525252;
    --sfp-neutral-700: #404040;
    --sfp-neutral-800: #262626;
    --sfp-neutral-900: #171717;
    --sfp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --sfp-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --sfp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --sfp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --sfp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --sfp-border-radius: 8px;
    --sfp-border-radius-lg: 12px;
}

/* Error messages */
.sfp-error {
    background: var(--sfp-neutral-50);
    color: var(--sfp-error);
    padding: 16px 20px;
    border: 1px solid var(--sfp-neutral-200);
    border-left: 4px solid var(--sfp-error);
    border-radius: var(--sfp-border-radius);
    margin: 24px 0;
    font-family: var(--sfp-font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Main container */
.sfp-pricing-table {
    margin: 32px 0;
    padding: 0;
    font-family: var(--sfp-font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sfp-pricing-table h3 {
    margin: 0 0 32px 0;
    text-align: center;
    color: var(--sfp-neutral-900);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* FOMO banner */
.sfp-fomo-banner {
    background: linear-gradient(135deg, var(--sfp-primary) 0%, var(--sfp-primary-light) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: var(--sfp-border-radius-lg);
    margin-bottom: 24px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--sfp-shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sfp-fomo-banner .sfp-live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Tiers grid */
.sfp-tiers {
    display: grid;
    gap: 20px;
    margin: 40px 0 32px 0;
    overflow: visible;
}

@media (min-width: 768px) {
    .sfp-tiers {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* Individual tier card */
.sfp-tier {
    background: #ffffff;
    border: 1.5px solid var(--sfp-neutral-200);
    border-radius: var(--sfp-border-radius-lg);
    padding: 24px;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sfp-tier:hover {
    transform: translateY(-2px);
    box-shadow: var(--sfp-shadow-lg);
    border-color: var(--sfp-neutral-300);
}

/* Current/Active tier */
.sfp-tier.current {
    border-color: var(--sfp-success);
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e8 100%);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(19, 115, 51, 0.15), 0 8px 10px -6px rgba(19, 115, 51, 0.1), 0 0 0 1px rgba(19, 115, 51, 0.05);
    z-index: 10;
    position: relative;
    padding: 32px 28px;
}

.sfp-tier.current:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 25px 30px -5px rgba(19, 115, 51, 0.2), 0 10px 15px -6px rgba(19, 115, 51, 0.15), 0 0 0 1px rgba(19, 115, 51, 0.1);
}

.sfp-tier.current::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sfp-success) 0%, var(--sfp-success-light) 100%);
    border-radius: var(--sfp-border-radius-lg) var(--sfp-border-radius-lg) 0 0;
}

.sfp-tier.current::after {
    content: "✓";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--sfp-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(19, 115, 51, 0.3);
    z-index: 5;
    animation: currentTierPulse 2s infinite;
}

@keyframes currentTierPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(19, 115, 51, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(19, 115, 51, 0.4);
    }
}

/* Completed/Expired tier */
.sfp-tier.completed {
    background: var(--sfp-neutral-50);
    border-color: var(--sfp-neutral-300);
    position: relative;
    opacity: 0.85;
}

.sfp-tier.completed::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--sfp-border-radius-lg);
    background: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 8px,
        rgba(115, 115, 115, 0.04) 8px,
        rgba(115, 115, 115, 0.04) 16px
    );
    pointer-events: none;
}

.sfp-tier.completed::after {
    content: "\1F512";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--sfp-neutral-500);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--sfp-shadow);
    z-index: 5;
}

/* Locked/Future tier */
.sfp-tier.locked {
    background: var(--sfp-neutral-50);
    border-color: var(--sfp-neutral-200);
    opacity: 0.9;
}

.sfp-tier.locked:hover {
    transform: translateY(-1px);
    box-shadow: var(--sfp-shadow-md);
}

/* Tier status section */
.sfp-tier-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 13px;
}

.sfp-tier.current .sfp-tier-status {
    margin-bottom: 24px;
    margin-top: 48px;
    gap: 10px;
    position: relative;
    z-index: 20;
}

.hot-icon {
    font-size: 14px;
    margin-left: 4px;
    display: inline-block;
    animation: hotPulse 1.5s infinite;
    vertical-align: middle;
    position: relative;
    z-index: 25;
}

@keyframes hotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.sfp-status-icon {
    font-size: 16px;
    line-height: 1;
}

.sfp-status-text {
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.sfp-status-text.status-current {
    color: var(--sfp-success);
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(19, 115, 51, 0.1);
}

.sfp-status-text.status-next {
    color: var(--sfp-warning);
}

.sfp-status-text.status-future {
    color: var(--sfp-neutral-500);
}

.sfp-status-text.status-final {
    color: var(--sfp-primary);
}

.sfp-status-text.status-past {
    color: var(--sfp-neutral-500);
}

/* Tier header with range and price */
.sfp-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.sfp-tier.current .sfp-tier-header {
    margin-bottom: 24px;
    gap: 20px;
}

.sfp-tier-range {
    font-size: 14px;
    color: var(--sfp-neutral-600);
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.sfp-tier-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--sfp-success);
    line-height: 1;
    letter-spacing: -0.02em;
    text-align: right;
}

.sfp-tier.current .sfp-tier-price {
    font-size: 32px;
    color: var(--sfp-success);
    text-shadow: 0 2px 4px rgba(19, 115, 51, 0.1);
}

.sfp-tier-price.price-locked {
    color: var(--sfp-neutral-500);
}

.completed .sfp-tier-price {
    color: var(--sfp-neutral-500);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.7;
}

/* Tier progress section */
.sfp-tier-progress {
    margin-top: 20px;
}

.sfp-tier.current .sfp-tier-progress {
    margin-top: 24px;
}

.sfp-progress-bar {
    background: var(--sfp-neutral-200);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.sfp-progress-fill {
    background: linear-gradient(90deg, var(--sfp-success) 0%, var(--sfp-success-light) 100%);
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.sfp-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.sfp-progress-text {
    font-size: 13px;
    color: var(--sfp-error);
    font-weight: 600;
    display: block;
    text-align: center;
    line-height: 1.4;
}

/* Tier info for locked tiers */
.sfp-tier-info {
    background: var(--sfp-neutral-100);
    border: 1px solid var(--sfp-neutral-200);
    border-radius: var(--sfp-border-radius);
    padding: 16px;
    margin-top: 20px;
    text-align: center;
}

.sfp-tier-message {
    color: var(--sfp-neutral-600);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* CTA Section for Active Tier */
.sfp-cta-section {
    margin-top: 24px;
    text-align: center;
    padding: 0 4px;
}

.sfp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--sfp-error) 0%, var(--sfp-error-light) 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(211, 59, 44, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.01em;
}

.sfp-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 59, 44, 0.35);
    text-decoration: none;
    color: white;
}

.sfp-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(211, 59, 44, 0.25);
}

.sfp-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.sfp-cta-button:hover::before {
    left: 100%;
}

.sfp-cta-text {
    font-weight: 600;
    line-height: 1;
}

.sfp-cta-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.sfp-cta-button:hover .sfp-cta-arrow {
    transform: translateX(3px);
}

.sfp-cta-subtitle {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: var(--sfp-error);
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.3;
}

/* Tier badges */
.sfp-tier-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--sfp-success);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: var(--sfp-shadow-md);
    z-index: 10;
    animation: badgeGlow 3s infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: var(--sfp-shadow-md);
    }
    50% {
        box-shadow: 0 0 20px rgba(19, 115, 51, 0.4), var(--sfp-shadow-md);
    }
}

.sfp-tier.completed .sfp-tier-badge {
    left: 16px;
    background: var(--sfp-neutral-500);
    animation: none;
}

.sfp-tier.current .sfp-tier-badge {
    left: 20px;
    top: 20px;
    background: var(--sfp-success);
    animation: badgeGlow 3s infinite;
    z-index: 15;
    padding: 8px 14px;
    font-size: 12px;
}


.sfp-tier-badge.completed {
    background: var(--sfp-neutral-500);
    animation: none;
}

/* Urgency indicators */
.sfp-tier.locked[data-needed="1"],
.sfp-tier.locked[data-needed="2"],
.sfp-tier.locked[data-needed="3"] {
    border-color: var(--sfp-warning);
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
    box-shadow: var(--sfp-shadow-lg);
}

.sfp-tier.locked[data-needed="1"] .sfp-tier-message,
.sfp-tier.locked[data-needed="2"] .sfp-tier-message,
.sfp-tier.locked[data-needed="3"] .sfp-tier-message {
    color: var(--sfp-warning);
    font-weight: 600;
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Footer section */
.sfp-footer {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
    background: var(--sfp-neutral-50);
    border-radius: var(--sfp-border-radius-lg);
    border: 1px solid var(--sfp-neutral-200);
}

.sfp-footer p {
    color: var(--sfp-primary);
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Social proof */
.sfp-social-proof {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--sfp-neutral-600);
    font-weight: 500;
}

/* Live notifications */
.sfp-live-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--sfp-success);
    color: white;
    padding: 16px 20px;
    border-radius: var(--sfp-border-radius);
    box-shadow: var(--sfp-shadow-xl);
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
    max-width: 320px;
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .sfp-pricing-table {
        padding: 0 16px;
        margin: 24px 0;
    }

    .sfp-pricing-table h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .sfp-tier {
        padding: 20px;
    }

    .sfp-tier.current {
        transform: scale(1);
    }

    .sfp-tier.current:hover {
        transform: translateY(-2px);
    }

    .sfp-tier-price {
        font-size: 24px;
    }

    .sfp-tier-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .sfp-tier-price {
        text-align: left;
    }

    .sfp-live-notification {
        left: 16px;
        right: 16px;
        max-width: none;
    }

    .sfp-cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .sfp-cta-section {
        margin-top: 20px;
        padding: 0 8px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .sfp-tier,
    .sfp-progress-fill,
    .sfp-tier-badge {
        animation: none;
        transition: none;
    }

    .sfp-tier:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .sfp-pricing-table {
        box-shadow: none;
        background: white;
    }

    .sfp-tier {
        box-shadow: none;
        border: 2px solid #000;
        break-inside: avoid;
    }

    .sfp-tier-badge,
    .sfp-live-notification {
        display: none;
    }
}