/* Enhanced Pricing Section Styles */
.pricing-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #ffffff 100%);
    overflow: hidden;
}

.pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(88, 80, 236, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(123, 94, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Enhanced Section Title */
.pricing-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.pricing-title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.2;
}

.pricing-title p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #5850ec, #7b5eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* Enhanced Toggle Switch */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.pricing-toggle-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    position: relative;
}

.pricing-toggle {
    padding: 12px 32px;
    border-radius: 44px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 2;
    color: #64748b;
    background: transparent;
    border: none;
    white-space: nowrap;
}

.pricing-toggle.active {
    color: white;
    transform: translateY(-1px);
}

.pricing-toggle-bg {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #5850ec, #7b5eff);
    border-radius: 44px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(88, 80, 236, 0.3);
    z-index: 1;
}

.save-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-green 2s infinite;
}

/* Enhanced Pricing Cards */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 32px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(88, 80, 236, 0.2);
}

.pricing-card:hover::before {
    background: linear-gradient(90deg, #5850ec, #7b5eff);
}

/* Popular Card Enhancement */
.pricing-card.popular {
    transform: scale(1.05);
    border-color: rgba(88, 80, 236, 0.3);
    box-shadow: 0 20px 60px rgba(88, 80, 236, 0.15);
    position: relative;
    z-index: 2;
}

.pricing-card.popular::before {
    background: linear-gradient(90deg, #5850ec, #7b5eff);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 30px 80px rgba(88, 80, 236, 0.2);
}

.popular-badge {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #5850ec, #7b5eff);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(88, 80, 236, 0.3);
    z-index: 3;
}

/* Card Header Styling */
.card-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.plan-category {
    display: inline-block;
    background: rgba(88, 80, 236, 0.1);
    color: #5850ec;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.pricing-amount {
    margin: 24px 0;
    position: relative;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: #64748b;
    margin-left: 8px;
}

.price-note {
    font-size: 0.75rem;
    color: #5850ec;
    font-weight: 600;
    margin-top: 8px;
}

.student-count {
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
}

.student-count .count {
    font-weight: 800;
    color: #1e293b;
}

/* Features List Enhancement */
.features-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 32px 0;
}

.features-header {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.feature-item:hover {
    background: rgba(88, 80, 236, 0.02);
    transform: translateX(4px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon i {
    color: white;
    font-size: 10px;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feature-text {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
}

.feature-text .highlight {
    font-weight: 600;
    color: #1e293b;
}

/* CTA Button Enhancement */
.cta-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.cta-button.primary {
    background: linear-gradient(135deg, #5850ec, #7b5eff);
    color: white;
    box-shadow: 0 8px 25px rgba(88, 80, 236, 0.3);
}

.cta-button.secondary {
    background: rgba(88, 80, 236, 0.1);
    color: #5850ec;
    border: 2px solid rgba(88, 80, 236, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    box-shadow: 0 12px 35px rgba(88, 80, 236, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(88, 80, 236, 0.15);
    border-color: rgba(88, 80, 236, 0.3);
}

.cta-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 12px;
    font-style: italic;
}

/* Enterprise Card Enhancement */
.enterprise-card {
    grid-column: 1 / -1;
    margin-top: 40px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    color: white;
    border-radius: 24px;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 41, 59, 0.3);
}

.enterprise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.enterprise-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .enterprise-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.enterprise-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enterprise-info p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.6;
}

.enterprise-cta {
    background: white;
    color: #1e293b;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.enterprise-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
    background: #f8fafc;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(88, 80, 236, 0.1), rgba(123, 94, 255, 0.1));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: -2s;
}

.floating-shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 30%;
    right: 10%;
    animation-delay: -4s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation-delay: -1s;
}

.floating-shape:nth-child(4) {
    width: 60px;
    height: 60px;
    bottom: 40%;
    right: 5%;
    animation-delay: -3s;
}

/* Value Indicators */
.value-indicators {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.value-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.value-indicator i {
    color: #10b981;
}

/* Price Calculator Integration */
.price-calculator-trigger {
    margin-top: 60px;
    text-align: center;
}

.calculator-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.calculator-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(15px) rotate(240deg);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .pricing-section {
        padding: 80px 0;
    }
    
    .pricing-cards-grid {
        gap: 24px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-toggle {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .enterprise-card {
        padding: 32px 24px;
    }
    
    .enterprise-info h3 {
        font-size: 1.875rem;
    }
    
    .value-indicators {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .pricing-title h2 {
        font-size: 2rem;
    }
    
    .pricing-title p {
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .price-value {
        font-size: 2rem;
    }
    
    .feature-text {
        font-size: 0.8rem;
    }
}

/* High Performance Mode */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shape {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .pricing-section {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
    }
    
    .pricing-title h2 {
        background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .pricing-title p {
        color: #94a3b8;
    }
    
    .pricing-card {
        background: rgba(30, 41, 59, 0.9);
        border-color: rgba(51, 65, 85, 0.3);
    }
    
    .plan-name {
        color: #f1f5f9;
    }
    
    .feature-text {
        color: #cbd5e1;
    }
    
    .value-indicator {
        background: rgba(30, 41, 59, 0.9);
        border-color: rgba(51, 65, 85, 0.3);
        color: #f1f5f9;
    }
}

/* Print Styles */
@media print {
    .pricing-section {
        background: white !important;
        color: black !important;
    }
    
    .floating-elements,
    .floating-shape {
        display: none;
    }
    
    .pricing-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}