/* ========================================
   PRICING PAGE MOBILE STYLES
   Mobile-optimized styles for pricing.html
   Loaded only on screens <= 768px
   ======================================== */

/* ========================================
   BASE RESET FOR MOBILE
   ======================================== */
html {
    zoom: 1 !important;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav-glass {
    padding: 0.75rem 1rem !important;
}

.nav-container {
    padding: 0 !important;
}

/* Logo */
.logo-modern {
    gap: 0.4rem !important;
}

.logo-icon-modern img {
    width: 28px !important;
    height: 28px !important;
}

.logo-text {
    font-size: 1.1rem !important;
}

/* Hide Desktop Menu */
.nav-menu {
    display: none !important;
}

/* Show Mobile Menu Button */
.mobile-menu-btn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    background: #f5f5f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.mobile-menu-btn span {
    display: none;
}

.mobile-menu-btn::before {
    content: "Menu";
}

/* Mobile Menu Active */
.nav-menu.active {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 0.5rem;
    align-items: stretch;
    z-index: 1000;
}

.nav-menu.active .nav-link {
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.nav-menu.active .nav-link:hover {
    background: #f5f5f7;
}

.nav-menu.active .nav-auth {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.nav-menu.active .nav-login,
.nav-menu.active .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ========================================
   PRICING HERO
   ======================================== */
.pricing-hero {
    padding: 100px 1rem 40px !important;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
}

.pricing-hero p {
    font-size: 1rem !important;
    max-width: 100% !important;
}

/* ========================================
   PRICING CONTENT
   ======================================== */
.pricing-content {
    padding: 20px 1rem 60px !important;
    max-width: 100% !important;
}

/* ========================================
   BILLING TOGGLE
   ======================================== */
.pricing-content > .container > div:first-of-type {
    margin: 0 0 1.5rem 0 !important;
}

.pricing-content > .container > div:first-of-type > div {
    padding: 4px !important;
    border-radius: 12px !important;
}

#monthlyBtn,
#yearlyBtn {
    padding: 0.7rem 1.25rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

#discountBadge,
#saveBadge {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    top: -8px !important;
    right: -8px !important;
}

/* ========================================
   PRICING CARDS
   ======================================== */
.pricing-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pricing-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1.25rem !important;
    margin: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
}

.pricing-card.featured {
    padding: 1.75rem 1.25rem !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2) !important;
}

/* Popular Badge */
.popular-badge {
    font-size: 0.65rem !important;
    padding: 0.4rem 0.85rem !important;
}

/* ========================================
   PLAN HEADER
   ======================================== */
.plan-header {
    padding-bottom: 1rem !important;
    margin-bottom: 1.25rem !important;
    padding-top: 0 !important;
}

.plan-header h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.4rem !important;
}

/* Subtext */
#starterSubtext,
#proSubtext,
.plan-header > p:first-of-type {
    font-size: 0.85rem !important;
    margin-bottom: 0.85rem !important;
    color: #6b7280 !important;
}

/* Price */
.plan-price {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
}

.plan-price .currency {
    font-size: 2rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.plan-price .amount {
    font-size: 2.75rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.plan-price .period {
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-left: 4px !important;
    margin-bottom: 5px !important;
}

/* Savings Badge */
#starterSaving,
#proSaving {
    font-size: 0.9rem !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
}

/* ========================================
   FEATURES LIST
   ======================================== */
.plan-features {
    margin-bottom: 1.25rem !important;
}

.feature-item {
    gap: 10px !important;
    margin-bottom: 0.85rem !important;
}

.feature-item svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
}

/* ========================================
   CTA BUTTON
   ======================================== */
.plan-cta {
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.95rem 1.5rem !important;
    border-radius: 12px !important;
    margin-top: 0.5rem !important;
    min-height: 52px !important;
}

/* Secure Payment */
.pricing-card > p:last-child {
    font-size: 0.75rem !important;
    margin-top: 0.85rem !important;
}

.pricing-card > p:last-child svg {
    width: 14px !important;
    height: 14px !important;
}

/* ========================================
   TESTIMONIALS IMAGE
   ======================================== */
img[alt="Customer Testimonials"] {
    max-width: 100% !important;
    height: auto !important;
    margin-top: 2rem !important;
}

/* ========================================
   TESTIMONIALS CARDS
   ======================================== */
.testimonials-container {
    flex-direction: column !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.testimonial-card {
    padding: 1.25rem !important;
    border-radius: 14px !important;
    flex-direction: column !important;
    text-align: center !important;
}

.testimonial-avatar {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 0.75rem !important;
}

.avatar-placeholder {
    font-size: 1rem !important;
}

.testimonial-text {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.testimonial-author {
    font-size: 0.8rem !important;
    margin-top: 0.75rem !important;
}

/* ========================================
   CHECKOUT OVERLAY / MODAL
   ======================================== */
#checkout-overlay {
    padding: 0 !important;
    align-items: flex-start !important;
}

#checkout-overlay > div {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Checkout Header */
#checkout-overlay > div > div:first-child {
    padding: 16px !important;
}

#checkout-overlay h3 {
    font-size: 1rem !important;
}

#checkout-overlay p {
    font-size: 0.8rem !important;
}

/* Currency Toggle */
#modal-currency-toggle {
    margin-top: 12px !important;
}

#modal-currency-toggle button {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

/* Checkout Container */
#checkout-container {
    max-height: calc(100vh - 120px) !important;
}

/* Close Button */
#checkout-overlay button[onclick="closeCheckoutOverlay()"] {
    width: 32px !important;
    height: 32px !important;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2.5rem 1rem 1.5rem !important;
}

.footer .container {
    padding: 0 !important;
}

.footer-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: center !important;
}

/* Footer Brand */
.footer-brand {
    text-align: center !important;
    width: 100% !important;
}

.footer-brand .logo-modern {
    justify-content: center !important;
    margin-bottom: 0.75rem !important;
}

.footer-brand > p {
    font-size: 0.85rem !important;
    max-width: 280px !important;
    margin: 0 auto !important;
}

/* Footer Links - 2x2 Grid */
.footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem 2rem !important;
    width: 100% !important;
    max-width: 320px !important;
    text-align: center !important;
}

.footer-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.footer-column h4 {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

.footer-column a {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
}

/* Footer Bottom */
.footer-bottom {
    flex-direction: column !important;
    gap: 1rem !important;
    text-align: center !important;
    padding-top: 1.5rem !important;
    margin-top: 1.5rem !important;
}

.footer-bottom p {
    font-size: 0.75rem !important;
}

/* Social Links */
.social-links {
    justify-content: center !important;
    gap: 1rem !important;
}

.social-links a {
    width: 40px !important;
    height: 40px !important;
}

.social-links svg {
    width: 18px !important;
    height: 18px !important;
}

/* ========================================
   SMALLER SCREENS (480px and below)
   ======================================== */
@media (max-width: 480px) {
    .pricing-hero {
        padding: 90px 0.75rem 30px !important;
    }

    .pricing-hero h1 {
        font-size: 1.75rem !important;
    }

    .pricing-content {
        padding: 16px 0.75rem 50px !important;
    }

    .pricing-card {
        padding: 1.25rem 1rem !important;
    }

    .plan-price .amount {
        font-size: 2.5rem !important;
    }

    .plan-cta {
        padding: 0.85rem 1.25rem !important;
    }
}

/* ========================================
   VERY SMALL SCREENS (360px and below)
   ======================================== */
@media (max-width: 360px) {
    .pricing-hero h1 {
        font-size: 1.5rem !important;
    }

    .plan-price .amount {
        font-size: 2.25rem !important;
    }

    .plan-price .currency {
        font-size: 1.75rem !important;
    }

    #monthlyBtn,
    #yearlyBtn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ========================================
   HIDE DESKTOP-ONLY ELEMENTS
   ======================================== */
.desktop-only {
    display: none !important;
}

/* ========================================
   SHOW MOBILE-ONLY ELEMENTS
   ======================================== */
.mobile-only {
    display: block !important;
}
