/* Mobile Styles for OzPath Website - Updated for New Design */

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero {
        min-height: auto;
        height: auto;
        padding: 40px 20px 32px;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        display: flex;
        flex-direction: column;
    }
    
    .hero-left {
        text-align: center;
        align-items: center;
        order: 1;
    }
    
    .hero-title {
        font-size: clamp(2.25rem, 9vw, 3.5rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
        margin-bottom: var(--space-lg);
        max-width: 100%;
        opacity: 1 !important;
        display: block !important;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        margin-bottom: var(--space-lg);
    }
    
    .hero-download-badges {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        align-items: center;
    }
    
    .hero-app-store-link {
        display: flex;
        justify-content: center;
        order: 1;
    }
    
    .hero-google-play-link {
        display: flex;
        justify-content: center;
        order: 2;
    }
    
    .hero-app-store-badge {
        width: auto;
        max-width: 200px;
    }
    
    .hero-google-play-badge {
        width: auto;
        max-width: 176px;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-md) var(--space-xl);
    }
    
    .hero-right {
        order: 2;
        width: 100%;
    }
    
    .hero-visual {
        width: 100%;
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    
    .hero-stats-grid .stat-item {
        padding: var(--space-lg);
    }
    
    .hero-stats-grid .stat-icon {
        font-size: 2rem;
    }
    
    .hero-stats-grid .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats-grid .stat-label {
        font-size: 0.9rem;
    }
    
    .hero-features-list {
        gap: var(--space-md);
    }
    
    .hero-features-list .feature-item {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
        gap: var(--space-md);
    }
    
    .hero-features-list .feature-item i {
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    /* Old hero-section class (legacy) */
    .hero-section {
        padding: 40px 15px;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .main-logo {
        height: 80px;
        margin-bottom: 30px;
    }
    
    .main-tagline {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 25px;
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
        margin-bottom: 40px;
        padding: 0 10px;
        opacity: 1 !important;
        display: block !important;
    }
    
    .discover-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
    
    /* Features Section Mobile */
    .features-section {
        padding: 20px 15px 150px 15px; /* Increased bottom padding for mobile browser UI */
        min-height: auto; /* Changed from 100vh to auto for natural content flow */
        display: flex;
        align-items: flex-start; /* Changed from center to flex-start for top alignment */
        margin-bottom: 60px; /* Add mobile spacing */
    }
    
    /* Main page section spacing for mobile */
    body:not(.terms-page):not(.disclaimer-page) .content-section {
        padding: 60px 15px !important;
        margin-bottom: 40px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .features-text {
        padding-right: 0;
        order: 2;
    }
    
    .features-logo {
        order: 1;
    }
    
    .features-title {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 25px;
    }
    
    .features-description,
    .features-highlight {
        font-size: clamp(15px, 4vw, 17px);
    }
    
    .hexagon-logo {
        width: 150px;
        height: 150px;
    }
    
    /* Waitlist Container Mobile */
    .waitlist-container {
        margin-top: 40px; /* Further reduced spacing for compact layout */
        padding: 0 15px 150px 15px; /* Increased bottom padding to avoid browser UI overlap */
    }

    .waitlist-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 40px;
    }    .email-form {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .email-input {
        width: 100%;
        padding: 20px 24px;
        font-size: 18px;
    }
    
    .join-waitlist-button {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        letter-spacing: 0.3px;
    }
    
    /* Hide line breaks on mobile for better text flow */
    br {
        display: none;
    }
    
    /* Prevent awkward line breaks in specific phrases */
    .hero-description,
    .features-description,
    .features-highlight {
        word-spacing: normal;
        white-space: normal;
    }
    
    /* Ensure proper spacing for compound words */
    .hero-description::after,
    .features-description::after {
        content: "";
        white-space: normal;
    }
    
    /* Message styles for mobile */
    .message {
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 14px;
    }

    /* ================================================================
       MOBILE NAVIGATION MENU - Dropdown Style
       ================================================================ */
    
    .nav {
        padding: 0 16px;
        position: relative;
    }

    .nav .container {
        padding: 0;
    }

    .nav-content {
        height: 64px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-img {
        height: 36px;
    }

    /* Hamburger Menu Button - Modern Redesign */
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 48px;
        height: 48px;
        cursor: pointer;
        z-index: 1002;
        position: relative;
        background: linear-gradient(135deg, rgba(0, 101, 251, 0.08) 0%, rgba(46, 137, 230, 0.12) 100%);
        border: 1.5px solid rgba(0, 101, 251, 0.15);
        border-radius: 14px;
        padding: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(0, 101, 251, 0.1);
    }

    .nav-toggle:hover {
        background: linear-gradient(135deg, rgba(0, 101, 251, 0.12) 0%, rgba(46, 137, 230, 0.18) 100%);
        border-color: rgba(0, 101, 251, 0.25);
        box-shadow: 0 4px 16px rgba(0, 101, 251, 0.2);
        transform: scale(1.02);
    }

    .nav-toggle:active {
        transform: scale(0.96);
    }

    .nav-toggle.active {
        background: linear-gradient(135deg, #0065fb 0%, #2e89e6 100%);
        border-color: transparent;
        box-shadow: 0 4px 20px rgba(0, 101, 251, 0.35);
    }

    .nav-toggle span {
        display: block !important;
        width: 20px;
        height: 2.5px;
        background: #0065fb;
        margin: 2.5px 0;
        transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        border-radius: 3px;
        transform-origin: center;
    }

    .nav-toggle span:nth-child(1) {
        width: 20px;
    }

    .nav-toggle span:nth-child(2) {
        width: 16px;
        margin-left: -4px;
    }

    .nav-toggle span:nth-child(3) {
        width: 12px;
        margin-left: -8px;
    }

    .nav-toggle:hover span {
        width: 20px;
        margin-left: 0;
    }

    .nav-toggle.active span {
        background: #ffffff;
        width: 20px;
        margin-left: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0) translateX(-10px);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Mobile Menu - Modern Dropdown Style */
    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: auto;
        width: 240px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 101, 251, 0.15), 
                    0 2px 8px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 101, 251, 0.1);
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        padding: 0;
        z-index: 1001;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-8px) scale(0.98);
        transform-origin: top right;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 12px;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        font-size: 15px;
        font-weight: 500;
        color: #1e293b;
        padding: 14px 16px;
        width: 100%;
        text-align: left;
        border-radius: 10px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: none;
        margin-bottom: 4px;
        position: relative;
        overflow: hidden;
    }

    .nav-link:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
    }

    .nav-link:hover,
    .nav-link:active {
        background: linear-gradient(135deg, rgba(0, 101, 251, 0.1) 0%, rgba(46, 137, 230, 0.08) 100%);
        color: #0065fb;
        transform: translateX(4px);
    }

    .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%) scaleY(0);
        width: 3px;
        height: 60%;
        background: linear-gradient(180deg, #0065fb 0%, #2e89e6 100%);
        border-radius: 0 3px 3px 0;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link:hover::before,
    .nav-link:active::before {
        transform: translateY(-50%) scaleY(1);
    }

    .nav-link::after {
        display: none;
    }

    /* Hide App Store Badge in Mobile Menu */
    .nav-app-store-link {
        display: none !important;
    }

    .nav-app-store-badge {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Hero Section - Small Mobile */
    .hero {
        min-height: auto;
        height: auto;
        padding: 32px 15px 28px;
    }
    
    .hero-content-wrapper {
        gap: var(--space-sm);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
        margin-bottom: var(--space-sm);
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
        opacity: 1 !important;
        display: block !important;
        margin-bottom: var(--space-md);
    }
    
    .hero-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    
    .hero-stats-grid .stat-item {
        padding: var(--space-md);
    }
    
    .hero-stats-grid .stat-icon {
        font-size: 1.75rem;
    }
    
    .hero-stats-grid .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stats-grid .stat-label {
        font-size: 0.85rem;
    }

    .hero-actions {
        margin-bottom: var(--space-md);
    }

    .hero-features-list .feature-item {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .hero-features-list .feature-item i {
        font-size: 1.25rem;
        min-width: 30px;
    }
    
    .hero-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.95rem;
    }
    
    /* Old hero-section class (legacy) */
    .hero-section {
        padding: 30px 10px;
    }
    
    .features-section,
    .waitlist-section {
        padding: 3rem 10px !important;
        margin-bottom: 0;
    }

    /* Lodgement Section Mobile */
    .lodgement-section {
        padding: 60px 0;
    }

    .lodgement-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: var(--space-xl) auto 0;
        padding: 0 16px;
    }

    .lodgement-card {
        padding: var(--space-lg);
    }

    .lodgement-card.featured {
        transform: none;
        order: -1;
    }

    .lodgement-card.featured:hover {
        transform: translateY(-8px);
    }

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

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

    .lodgement-features li {
        padding: 8px 0;
        font-size: 0.875rem;
    }

    .btn-read-more {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }
    
    /* Smaller section spacing for very small screens */
    body:not(.terms-page):not(.disclaimer-page) .content-section {
        padding: 40px 10px !important;
        margin-bottom: 30px;
    }
    
    .waitlist-container {
        margin-top: 30px; /* Further reduced for small screens */
        padding-bottom: 180px; /* Increased bottom padding for waitlist on small screens */
    }
    
    .main-logo {
        height: 60px;
        margin-bottom: 25px;
    }
    
    .main-tagline {
        font-size: clamp(24px, 8vw, 32px);
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: clamp(14px, 4.5vw, 16px);
        margin-bottom: 35px;
    }
    
    .discover-button {
        padding: 10px 22px;
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
    
    .features-title,
    .waitlist-title {
        font-size: clamp(26px, 8vw, 32px);
        margin-bottom: 20px;
    }
    
    .features-description,
    .features-highlight {
        font-size: clamp(14px, 4.5vw, 16px);
    }
    
    .hexagon-logo {
        width: 120px;
        height: 120px;
    }
    
    .email-input,
    .join-waitlist-button {
        padding: 14px 22px;
        font-size: 0.95rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .discover-button:hover,
    .join-waitlist-button:hover,
    .main-logo:hover,
    .hexagon-logo:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Ensure buttons are still visually responsive on touch */
    .discover-button:active,
    .join-waitlist-button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    /* Hero Section - Landscape */
    .hero {
        min-height: auto;
        padding: 60px 20px 40px;
    }
    
    .hero-content-wrapper {
        gap: var(--space-xl);
        display: flex;
        flex-direction: column;
    }
    
    .hero-left {
        order: 1;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.75rem);
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
        margin-bottom: var(--space-lg);
        opacity: 1 !important;
        display: block !important;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .hero-btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    /* Old hero-section class (legacy) */
    .hero-section {
        min-height: 100vh;
        padding: 20px 15px;
    }
    
    .main-logo {
        height: 50px;
        margin-bottom: 20px;
    }
    
    .main-tagline {
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
        margin-bottom: 25px;
        opacity: 1 !important;
        display: block !important;
    }
    
    .features-section {
        min-height: auto;
        padding: 15px 15px 80px 15px; /* Reduced top padding for landscape */
    }
    
    .waitlist-container {
        margin-top: 25px; /* Reduced spacing for landscape mode */
        padding-bottom: 80px; /* Extra padding for landscape mode */
    }
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
    .modal {
        padding: var(--space-md);
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 90vh;
        padding: var(--space-lg);
        border-radius: var(--border-radius-md);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .modal-body {
        font-size: 0.9rem;
    }
    
    .modal-body h3 {
        font-size: 1.1rem;
        margin-top: var(--space-lg);
    }
    
    .modal-body ul {
        padding-left: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .modal {
        padding: var(--space-sm);
    }
    
    .modal-content {
        padding: var(--space-md);
        max-height: 95vh;
    }
    
    .modal-header {
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        font-size: 0.875rem;
    }
    
    .modal-body h3 {
        font-size: 1rem;
    }
}

/* Screenshots Section Mobile - 3D Carousel Responsive */
@media (max-width: 1024px) {
    .carousel-container {
        max-width: 100%;
        padding: var(--space-2xl) 0;
    }
    
    .carousel-track {
        height: 580px;
    }
    
    .screenshot-card {
        max-width: fit-content;
        width: auto;
        padding: var(--space-md);
    }
    
    .screenshot-image {
        max-height: 480px;
        border-radius: 18px;
    }
    
    .carousel-slide[data-position="right"] {
        transform: translateX(320px) scale(0.75);
    }
    
    .carousel-slide[data-position="left"] {
        transform: translateX(-320px) scale(0.75);
    }
    
    .carousel-slide[data-position="right-2"] {
        transform: translateX(450px) scale(0.6);
    }
    
    .carousel-slide[data-position="left-2"] {
        transform: translateX(-450px) scale(0.6);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: var(--space-xl) 0;
    }
    
    .carousel-track {
        height: 520px;
    }
    
    .screenshot-card {
        max-width: fit-content;
        width: auto;
        padding: var(--space-md);
    }
    
    .screenshot-image {
        max-height: 420px;
        border-radius: 16px;
    }
    
    .screenshot-title {
        font-size: 1rem;
    }
    
    .carousel-slide[data-position="right"] {
        transform: translateX(260px) scale(0.7);
    }
    
    .carousel-slide[data-position="left"] {
        transform: translateX(-260px) scale(0.7);
    }
    
    .carousel-slide[data-position="right-2"] {
        transform: translateX(360px) scale(0.55);
        opacity: 0.15;
    }
    
    .carousel-slide[data-position="left-2"] {
        transform: translateX(-360px) scale(0.55);
        opacity: 0.15;
    }
    
    .carousel-slide[data-position="right"]:hover,
    .carousel-slide[data-position="left"]:hover {
        transform: translateX(var(--hover-x, 0)) scale(0.75);
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: var(--space-lg) 0;
    }
    
    .carousel-track {
        height: 480px;
    }
    
    .screenshot-card {
        max-width: fit-content;
        width: auto;
        padding: var(--space-sm);
    }
    
    .screenshot-image {
        max-height: 380px;
        border-radius: 12px;
    }
    
    .screenshot-title {
        font-size: 0.9rem;
    }
    
    .carousel-slide[data-position="right"] {
        transform: translateX(200px) scale(0.65);
        opacity: 0.5;
    }
    
    .carousel-slide[data-position="left"] {
        transform: translateX(-200px) scale(0.65);
        opacity: 0.5;
    }
    
    .carousel-slide[data-position="right-2"] {
        transform: translateX(280px) scale(0.5);
        opacity: 0.1;
    }
    
    .carousel-slide[data-position="left-2"] {
        transform: translateX(-280px) scale(0.5);
        opacity: 0.1;
    }
    
    .carousel-slide[data-position="right"]:hover,
    .carousel-slide[data-position="left"]:hover,
    .carousel-slide[data-position="right-2"]:hover,
    .carousel-slide[data-position="left-2"]:hover {
        transform: translateX(var(--hover-x, 0)) scale(var(--hover-scale, 0.7));
        opacity: 0.6;
    }
}

/* Screenshot Modal Mobile */
@media (max-width: 768px) {
    .screenshot-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: var(--space-md);
    }
    
    .screenshot-modal-image-wrapper {
        padding: var(--space-lg);
    }
    
    .screenshot-modal-image {
        max-height: 70vh;
    }
    
    .screenshot-modal-title {
        font-size: 1.1rem;
        margin-top: var(--space-md);
    }
    
    .screenshot-modal-close {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .screenshot-modal-content {
        padding: var(--space-sm);
    }
    
    .screenshot-modal-image-wrapper {
        padding: var(--space-md);
        border-radius: 16px;
    }
    
    .screenshot-modal-image {
        max-height: 65vh;
        border-radius: 12px;
    }
    
    .screenshot-modal-title {
        font-size: 1rem;
    }
    
    .screenshot-modal-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 1.2rem;
    }
}

/* FAQ Mobile Styles */
@media (max-width: 768px) {
    .faq-section {
        padding: var(--space-xl) 0;
    }
    
    .faq-container {
        gap: var(--space-lg);
    }
    
    .faq-category {
        padding: var(--space-md);
    }
    
    .faq-category-title {
        font-size: 1.1rem;
        margin-bottom: var(--space-md);
        padding-bottom: var(--space-md);
    }
    
    .faq-question {
        padding: var(--space-md);
        font-size: 0.95rem;
    }
    
    .faq-item.active .faq-answer {
        padding: var(--space-md);
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    .faq-contact {
        padding: var(--space-lg);
    }
    
    .faq-contact h3 {
        font-size: 1.1rem;
    }
    
    .faq-contact p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .faq-category {
        padding: var(--space-sm);
    }
    
    .faq-category-title {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: var(--space-md);
    }
}
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .waitlist-container {
            padding-bottom: max(150px, calc(env(safe-area-inset-bottom, 0px) + 150px));
        }
        
        .features-section {
            padding-bottom: max(150px, calc(env(safe-area-inset-bottom, 0px) + 150px));
        }
    }
}

/* ================================================================
   ADDITIONAL MOBILE OPTIMIZATIONS - SITE-WIDE
   ================================================================ */

/* Auth Pages (Login/Register) Mobile Enhancements */
@media (max-width: 768px) {
    .auth-container {
        padding: 24px 16px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 60px;
    }

    .auth-card {
        padding: 24px 20px 32px;
        border-radius: 20px;
        max-width: 100%;
    }

    .auth-logo {
        width: 64px;
        height: 64px;
    }

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

    .auth-subtitle {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom */
        border-radius: 10px;
    }

    .btn-auth,
    .btn-google {
        padding: 14px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .back-to-home-btn {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .auth-divider {
        margin: 20px 0;
        font-size: 0.85rem;
    }

    .auth-footer {
        font-size: 0.9rem;
    }

    /* Password field with toggle */
    .password-toggle {
        right: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 16px 12px;
        padding-top: 40px;
    }

    .auth-card {
        padding: 20px 16px 28px;
        border-radius: 16px;
    }

    .auth-logo {
        width: 56px;
        height: 56px;
    }

    .auth-title {
        font-size: 1.35rem;
    }

    .auth-header {
        margin-bottom: 24px;
    }
}

/* Blog Page Mobile */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 16px 40px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 16px;
    }

    .blog-card {
        border-radius: 16px;
    }

    .blog-card-image {
        height: 180px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-card-excerpt {
        font-size: 0.9rem;
    }

    .blog-search-container {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .blog-search-input {
        padding: 14px 16px;
        font-size: 16px;
    }
}

/* Support Page Mobile */
@media (max-width: 768px) {
    .support-container {
        padding: 80px 16px 60px;
    }

    .support-header h1 {
        font-size: 1.75rem;
    }

    .support-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .support-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .support-card i {
        font-size: 2rem;
    }

    .support-card h3 {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .contact-form textarea {
        min-height: 120px;
    }
}

/* Terms/Privacy/Disclaimer Pages Mobile */
@media (max-width: 768px) {
    .terms-page .container,
    .privacy-page .container,
    .disclaimer-page .container {
        padding: 80px 16px 60px;
    }

    .terms-page h1,
    .privacy-page h1,
    .disclaimer-page h1 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .terms-page h2,
    .privacy-page h2,
    .disclaimer-page h2 {
        font-size: 1.25rem;
        margin-top: 32px;
    }

    .terms-page p,
    .privacy-page p,
    .disclaimer-page p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .terms-page ul,
    .privacy-page ul,
    .disclaimer-page ul {
        padding-left: 20px;
    }

    .terms-page li,
    .privacy-page li,
    .disclaimer-page li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
}

/* Section Headers Mobile */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.95rem;
    }
}

/* Buttons - Global Mobile Touch Targets */
@media (max-width: 768px) {
    button,
    .btn,
    .btn-primary,
    .btn-secondary,
    a.btn {
        min-height: 48px;
        padding: 14px 24px;
    }
}

/* App Store Badge Mobile */
@media (max-width: 768px) {
    .hero-app-store-badge {
        width: 180px;
        height: auto;
    }

    .hero-app-store-link {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .hero-app-store-badge {
        width: 160px;
        height: auto;
    }
}

/* Container Global Mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Fix for iOS input zoom */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Hide scrollbar but allow scrolling on mobile */
@media (max-width: 768px) {
    .hide-scrollbar-mobile {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .hide-scrollbar-mobile::-webkit-scrollbar {
        display: none;
    }
}

/* Improve tap highlight */
@media (max-width: 768px) {
    a,
    button,
    input,
    select,
    textarea,
    [role="button"] {
        -webkit-tap-highlight-color: rgba(0, 101, 251, 0.1);
    }
}

/* Smooth scrolling on iOS */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}

/* Terms, Privacy, Disclaimer, App Terms Pages - Mobile Spacing Fix */
@media (max-width: 768px) {
    .page-terms .section,
    .page-privacy .section,
    .page-disclaimer .section,
    .page-appterms .section {
        min-height: auto;
        padding-top: 60px;
    }
    
    .page-terms .content-wrapper,
    .page-privacy .content-wrapper,
    .page-disclaimer .content-wrapper,
    .page-appterms .content-wrapper {
        padding-top: 0;
    }
    
    .page-terms .page-header,
    .page-privacy .page-header,
    .page-disclaimer .page-header,
    .page-appterms .page-header {
        padding-top: 0 !important;
        margin-top: 0;
    }
    
    .page-terms .page-title,
    .page-privacy .page-title,
    .page-disclaimer .page-title,
    .page-appterms .page-title {
        margin-top: 0;
        padding-top: 0;
    }
}

/* Android Waitlist Mobile Styles */
@media (max-width: 768px) {
    .android-waitlist-container {
        margin-top: var(--space-md);
        max-width: 100%;
    }
    
    .android-waitlist-input-group {
        flex-direction: row;
        gap: var(--space-xs);
    }

    .android-email-input {
        min-width: 0;
    }
    
    .android-email-input {
        padding: var(--space-md) var(--space-md) !important;
        font-size: 1rem;
    }
    
    .android-waitlist-submit {
        width: auto;
        padding: var(--space-md);
        font-size: 0.9rem;
    }
    
    .download-badges {
        flex-direction: column !important;
        gap: var(--space-lg) !important;
        align-items: center !important;
    }
}

/* Privacy Policy Page - Mobile Specific Styles */
@media (max-width: 768px) {
    /* Reduce top spacing by 80% */
    .page-privacy .section {
        padding-top: 30px !important;
    }
    
    .page-privacy .page-header {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .page-privacy .content-wrapper {
        padding-top: 0 !important;
    }
}

/* Android Waitlist Modal - Mobile Styles */
@media (max-width: 768px) {
    .modal.android-waitlist-modal {
        padding: var(--space-sm);
    }

    .modal-content {
        max-width: 90%;
        padding: var(--space-lg);
        border-radius: var(--radius-lg);
    }

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

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

    .modal-waitlist-form .android-email-input {
        font-size: 1rem;
    }

    .modal-waitlist-form .android-waitlist-submit {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Modal optimizations for mobile */
    .modal.android-waitlist-modal {
        padding: var(--space-sm);
        align-items: center;
    }

    .modal-content {
        max-width: 100%;
        width: 100%;
        padding: var(--space-lg) var(--space-md);
        border-radius: var(--radius-lg);
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        margin-bottom: var(--space-md);
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: var(--space-sm);
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .modal-label {
        display: none;
    }

    .modal-input-wrapper {
        display: flex;
        justify-content: center;
    }

    .modal-email-input {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 14px 18px;
        border-radius: 50px;
        text-align: center;
        width: 100%;
        max-width: 320px;
    }

    .modal-submit-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .modal-form-message {
        font-size: 0.8rem;
        padding: 8px 12px;
        margin-top: var(--space-xs);
    }
}

