/**
 * Pricing Popover Styles
 * Glassmorphism Design System - Follows POPOVER_DESIGN_SPECIFICATION.md
 */

/* ===== Container & Backdrop ===== */
.pricing-popover {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pricing-popover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pricing-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

/* ===== Content Container (Glassmorphism) ===== */
.pricing-content {
    position: relative;
    width: min(95vw, 1200px);
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 2;

    /* Text scaling variable (default 1 = 100%) */
    --text-scale: 1;

    /* Text color variable (defaults to white for glassmorphism) */
    --text-color: #ffffff;
}

/* Override global body color: black !important rule - use direct color value */
.pricing-content,
.pricing-content * {
    color: #ffffff !important;
}

/* Apply text scaling to text elements */
.pricing-content h2,
.pricing-content h3,
.pricing-content h4,
.pricing-content p,
.pricing-content li,
.pricing-content span,
.pricing-content strong,
.pricing-content div,
.pricing-content button {
    font-size: calc(1em * var(--text-scale));
}

/* ===== Header ===== */
.pricing-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1001;
}

.pricing-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff !important;
    transition: all 0.2s ease;
    z-index: 10;
}

.pricing-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.pricing-header-text {
    text-align: center;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #ffffff !important;
    margin: 0.5rem 0 0 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* ===== Controls (Text Resizer + Theme Toggle) ===== */
.pricing-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.pricing-text-resizer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.font-size-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff !important;
    margin-right: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-control-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pricing-control-btn:active {
    transform: scale(0.95);
}

.control-text {
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff !important;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg) scale(1.1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pricing-theme-toggle:active {
    transform: rotate(0deg) scale(0.95);
}

/* Theme icon visibility */
.theme-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon--light {
    opacity: 1;
}

.theme-icon--dark {
    opacity: 0;
    position: absolute;
}

/* When dark theme is active */
.pricing-content.dark-theme .theme-icon--light {
    opacity: 0;
}

.pricing-content.dark-theme .theme-icon--dark {
    opacity: 1;
}

/* Dark theme styles for content */
.pricing-content.dark-theme {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pricing-content.dark-theme .pricing-header {
    background: rgba(0, 0, 0, 0.2);
}

.pricing-content.dark-theme .pricing-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pricing-content.dark-theme .pricing-card:hover {
    background: rgba(0, 0, 0, 0.4);
}

.pricing-content.dark-theme .pricing-cta-btn {
    background: rgba(0, 0, 0, 0.3);
}

.pricing-content.dark-theme .pricing-cta-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.pricing-content.dark-theme .pricing-feature-toggle {
    background: rgba(0, 0, 0, 0.3);
}

.pricing-content.dark-theme .pricing-feature-toggle:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Dark theme - maintain green checkmarks and red X marks */
.pricing-content.dark-theme .pricing-feature--included::before {
    color: #4ade80 !important; /* Keep green checkmark */
}

.pricing-content.dark-theme .pricing-feature--missing::before {
    color: #ef4444 !important; /* Keep red X mark */
}

/* ===== Main Content (Scrollable) ===== */
.pricing-main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pricing-main::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ===== Pricing Cards Grid ===== */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== Individual Pricing Card ===== */
.pricing-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.pricing-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Featured card (Tier 3) */
.pricing-card--featured {
    border: 2px solid rgba(74, 144, 226, 0.6);
    box-shadow:
        0 0 0 1px rgba(74, 144, 226, 0.3),
        0 12px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.pricing-card--featured:hover {
    box-shadow:
        0 0 0 2px rgba(74, 144, 226, 0.5),
        0 16px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ===== Card Header (Icon/Badge) ===== */
.pricing-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pricing-emoji {
    font-size: 2rem;
}

.pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-badge--featured {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.6), rgba(103, 128, 232, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pricing-spots-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(220, 38, 38, 0.8));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.02); }
}

/* ===== Card Title ===== */
.pricing-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-card-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffffff !important;
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

/* ===== Price Display ===== */
.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 1.5rem 0;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.pricing-price-period {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Commitment & Best For ===== */
.pricing-commitment,
.pricing-best-for {
    font-size: 0.9rem;
    color: #ffffff !important;
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* ===== Section Titles ===== */
.pricing-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff !important;
    margin: 1.5rem 0 0.75rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== Feature Lists ===== */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.pricing-feature {
    padding: 0.5rem 0;
    color: #ffffff !important;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-feature::before {
    content: "";
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pricing-feature--included::before {
    content: "✓";
    color: #4ade80;
    font-weight: 700;
}

.pricing-feature--missing::before {
    content: "❌";
}

/* ===== CTA Buttons (Shimmer) ===== */
.pricing-cta-btn {
    --inset: 40px;
    --shimmer-glow-hue: 213deg;

    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 0.875rem 1.5rem;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.66em;
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 1.33s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-cta-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.pricing-cta-btn--featured {
    --shimmer-glow-hue: 222deg;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.3), rgba(103, 128, 232, 0.3));
    border: 1px solid rgba(74, 144, 226, 0.5);
}

.pricing-cta-btn--featured:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.5), rgba(103, 128, 232, 0.5));
    border: 1px solid rgba(74, 144, 226, 0.7);
}

/* Shimmer effect triggers for pricing buttons (using global shimmer framework) */
.pricing-cta-btn:hover .shimmer-shimmer::before,
.pricing-cta-btn:hover .shimmer-shimmer::after {
    opacity: 1;
    animation: shimmer-shine 1.2s ease-in 1 forwards;
}

.pricing-cta-btn:hover .shimmer-text {
    animation: shimmer-text .66s ease-in 1 both;
}

/* ===== Booking Options (Flex Pass) ===== */
.pricing-booking-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pricing-booking-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.pricing-booking-option:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.booking-duration {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.booking-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pricing-cta-btn--small {
    width: 100%;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    margin-top: 0;
}

.pricing-booking-link {
    text-decoration: none;
    width: 100%;
    display: block;
}

/* ===== Feature Deep Dive Section ===== */
.pricing-deep-dive {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-feature-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pricing-feature-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.pricing-deep-dive.expanded .toggle-icon {
    transform: rotate(90deg);
}

.pricing-deep-dive-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
    opacity: 0;
    padding: 0 1.5rem;
}

.pricing-deep-dive.expanded .pricing-deep-dive-content {
    max-height: 600px;
    opacity: 1;
    padding: 2rem 1.5rem;
}

.pricing-deep-dive-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

.pricing-deep-dive-intro {
    font-size: 1rem;
    color: #ffffff !important;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.pricing-deep-dive-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-deep-dive-features li {
    padding: 0.75rem 0;
    color: #ffffff !important;
    line-height: 1.6;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-deep-dive-features li:last-child {
    border-bottom: none;
}

/* ===== Responsive Design ===== */

/* Tablet (2-column) */
@media (max-width: 1024px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .pricing-card--tier-1 {
        grid-column: 1 / -1; /* Tier 1 spans both columns */
    }
}

/* Mobile (1-column stack) */
@media (max-width: 768px) {
    .pricing-content {
        width: 95vw;
        max-height: 95vh;
    }

    .pricing-header {
        padding: 1.25rem 1.5rem;
    }

    .pricing-controls {
        gap: 0.75rem;
    }

    .pricing-control-btn,
    .pricing-theme-toggle {
        width: 2.25rem;
        height: 2.25rem;
    }

    .control-text {
        font-size: 0.9rem;
    }

    .pricing-title {
        font-size: 1.5rem;
    }

    .pricing-subtitle {
        font-size: 0.95rem;
    }

    .pricing-main {
        padding: 1.5rem;
    }

    .pricing-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card-title {
        font-size: 1.25rem;
    }

    .pricing-price-amount {
        font-size: 2rem;
    }

    .pricing-deep-dive {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .pricing-content {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
    }

    .pricing-header {
        padding: 1rem;
    }

    .pricing-controls {
        gap: 0.5rem;
    }

    .pricing-text-resizer {
        gap: 0.375rem;
        padding: 0.2rem;
    }

    .pricing-control-btn,
    .pricing-theme-toggle {
        width: 2rem;
        height: 2rem;
    }

    .control-text {
        font-size: 0.8rem;
    }

    .theme-icon {
        width: 16px;
        height: 16px;
    }

    .pricing-title {
        font-size: 1.25rem;
    }

    .pricing-subtitle {
        font-size: 0.875rem;
    }

    .pricing-main {
        padding: 1rem;
    }

    .pricing-card {
        padding: 1.25rem;
    }

    .pricing-feature-toggle {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* ===== Trial Banner ===== */

.pricing-trial-banner {
    width: 100%;
    /* Glassmorphism effect matching pricing cards */
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.pricing-trial-banner:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.trial-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.trial-banner-text {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.trial-banner-text strong {
    color: #ffffff;
    font-weight: 700;
}

.trial-banner-link {
    text-decoration: none;
}

.trial-banner-btn {
    position: relative;
    isolation: isolate;
    padding: 0.75rem 1.75rem;
    /* Glassmorphism button */
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);

    /* Shimmer variables */
    --shimmer-glow-hue: 280deg;
    --inset: 40px;
}

.trial-banner-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.trial-banner-btn:active {
    transform: translateY(0) scale(1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Shimmer effect for trial button */
.trial-banner-btn .shimmer-shimmer::before,
.trial-banner-btn .shimmer-shimmer::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trial-banner-btn:hover .shimmer-shimmer::before,
.trial-banner-btn:hover .shimmer-shimmer::after {
    opacity: 1;
    animation: shimmer-shine 1.2s ease-in 1 forwards;
}

/* Responsive trial banner */
@media (max-width: 768px) {
    .pricing-trial-banner {
        padding: 0.875rem 1.25rem;
    }

    .trial-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .trial-banner-text {
        font-size: 1rem;
    }

    .trial-banner-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-trial-banner {
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }

    .trial-banner-text {
        font-size: 0.9375rem;
    }

    .trial-banner-btn {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
    }
}

/* ===== Browser Fallbacks ===== */

/* Backdrop-filter fallback */
@supports not (backdrop-filter: blur(10px)) {
    .pricing-content,
    .pricing-card,
    .pricing-cta-btn,
    .pricing-close-btn,
    .pricing-feature-toggle {
        background: rgba(255, 255, 255, 0.25);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}
