/* ========================================
   ADVANCED ENHANCEMENTS - TOP 11 IMPROVEMENTS
   ======================================== */

/* ========================================
   1. STICKY CTA BAR
   ======================================== */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #60A5FA 0%, #C4B5FD 100%);
    padding: 1rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.sticky-cta-text h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.sticky-cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.sticky-cta-button {
    background: white;
    color: #60A5FA;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sticky-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sticky-cta-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.sticky-cta-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .sticky-cta-bar {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .sticky-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sticky-cta-text h3 {
        font-size: 1rem;
    }
    
    .sticky-cta-button {
        width: 100%;
    }
}

/* ========================================
   2. FAQ SECTION
   ======================================== */
.faq-section {
    padding: 5rem 2rem;
    background: var(--bg-alt);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* ========================================
   3. USE CASES SECTION
   ======================================== */
.use-cases-section {
    padding: 5rem 2rem;
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.use-case-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #93C5FD 0%, #C4B5FD 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.use-case-card:hover::before {
    transform: scaleX(1);
}

.use-case-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(96, 165, 250, 0.15);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.use-case-card .use-case-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.use-case-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.use-case-stat {
    flex: 1;
}

.use-case-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.use-case-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.use-case-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-case-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ========================================
   4. COMPARISON TABLE
   ======================================== */
.comparison-section {
    padding: 5rem 2rem;
    background: var(--bg-alt);
}

.comparison-table {
    max-width: 1000px;
    margin: 3rem auto 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: linear-gradient(135deg, #93C5FD 0%, #C4B5FD 100%);
}

.comparison-table th {
    padding: 1.5rem;
    color: white;
    font-weight: 700;
    text-align: left;
    font-size: 1.1rem;
}

.comparison-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-gray);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-alt);
}

.comparison-feature {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-check {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-cross {
    color: #F87171;
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-highlight {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.1) 0%, rgba(196, 181, 253, 0.1) 100%);
}

@media (max-width: 768px) {
    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   5. PRICING HIGHLIGHTS
   ======================================== */
.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 10;
}

.pricing-card {
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.2);
}

.pricing-savings {
    display: inline-block;
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ========================================
   6. TESTIMONIAL CAROUSEL
   ======================================== */
.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 2rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   7. PRICING CALCULATOR
   ======================================== */
.pricing-calculator {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.1) 0%, rgba(196, 181, 253, 0.1) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    margin: 3rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    color: var(--text-gray);
}

.calculator-input-group {
    margin-bottom: 2rem;
}

.calculator-label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.calculator-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA 0%, #C4B5FD 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

.calculator-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA 0%, #C4B5FD 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}

.calculator-value {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.calculator-result {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.calculator-result h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.calculator-result .recommended-tier {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60A5FA 0%, #C4B5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.calculator-result .tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.calculator-result .tier-price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* ========================================
   8. MOBILE BOTTOM NAV
   ======================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 0.75rem 0;
    z-index: 998;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.75rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-icon {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }
}

/* ========================================
   9. LOADING SKELETON SCREENS
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

.skeleton-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-header {
    height: 24px;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.skeleton-text.short {
    width: 80%;
}

.skeleton-text.medium {
    width: 90%;
}

.skeleton-button {
    height: 44px;
    width: 150px;
    margin-top: 1rem;
}

.skeleton-stat {
    height: 100px;
    border-radius: 12px;
}

.skeleton-table-row {
    height: 60px;
    margin-bottom: 0.5rem;
}

/* Dashboard specific skeletons */
.dashboard-skeleton {
    padding: 2rem;
}

.skeleton-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skeleton-campaign-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-campaign-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skeleton-campaign-title {
    height: 20px;
    width: 40%;
}

.skeleton-campaign-status {
    height: 20px;
    width: 80px;
}

.skeleton-campaign-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.skeleton-campaign-stat {
    height: 60px;
}

/* Hide real content when loading */
.loading .real-content {
    display: none;
}

.loading .skeleton-content {
    display: block;
}

.skeleton-content {
    display: none;
}

/* ========================================
   10. PERFORMANCE - PRELOAD HINTS
   ======================================== */
/* This will be added to HTML head, documented here */
/*
<link rel="preload" href="/images/logo.png" as="image">
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" as="style">
<link rel="dns-prefetch" href="https://fonts.googleapis.com">
<link rel="dns-prefetch" href="https://fonts.gstatic.com">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
*/

/* ========================================
   11. GRADIENT HOVER EFFECTS
   ======================================== */
.feature-card,
.pricing-card,
.testimonial-card,
.step-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after,
.pricing-card::after,
.testimonial-card::after,
.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.1) 0%, rgba(196, 181, 253, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after,
.pricing-card:hover::after,
.testimonial-card:hover::after,
.step-card:hover::after {
    opacity: 1;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .pricing-calculator {
        padding: 1.5rem;
    }

    .calculator-value {
        font-size: 1.5rem;
    }

    .calculator-result .tier-price {
        font-size: 2rem;
    }
}

