/* Mobile-First Responsive Enhancements for socoff */

/* Touch Targets - Minimum 44px for accessibility */
@media (max-width: 768px) {
    .socoff-btn,
    .cta-primary,
    .cta-secondary,
    .platform-btn,
    .checkout-btn,
    .quantity-btn,
    .remove-item-btn,
    .mobile-menu-toggle,
    .cart-btn,
    .order-search-btn,
    .deal-btn,
    .purchase-btn,
    .btn-primary,
    .btn-secondary,
    .category-filter-tab,
    .modern-service-card,
    .service-platform-card-link {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Form inputs should be at least 16px to prevent zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        padding: 12px 16px;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        width: 100%;
        box-sizing: border-box;
    }

    /* Focus styles for better accessibility */
    input:focus,
    textarea:focus,
    select:focus,
    button:focus {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

    /* Container padding optimization */
    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    /* Hero section mobile optimization */
    .socoff-hero {
        padding: 60px 0 40px 0;
        text-align: center;
        transform: none !important; /* Cancel any translateY transforms */
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 16px;
        text-align: center !important;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 24px;
        text-align: center !important;
    }

    /* Hide live order section on mobile */
    .socoff-hero .hero-visual {
        display: none !important;
    }

    /* Center hero content on mobile */
    .socoff-hero .hero-content {
        text-align: center !important;
        width: 100% !important;
    }

    /* Place Get Started Now and Trustpilot side by side on mobile */
    .socoff-hero .hero-content .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        flex-wrap: wrap !important;
    }

    .socoff-hero .hero-content .hero-actions .cta-primary {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    .socoff-hero .hero-content .hero-actions .trustpilot-badge {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    /* Set body padding to 71px on mobile */
    body {
        padding-top: 71px !important;
    }

    /* Center hero badge */
    .socoff-hero .hero-content .hero-badge {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Center trust items */
    .socoff-hero .hero-content .hero-trust {
        justify-content: center !important;
        text-align: center !important;
    }

    .socoff-hero .hero-content .hero-trust .trust-item {
        text-align: center !important;
    }

    /* Services grid mobile optimization */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Homepage services section: horizontal scroll on mobile (flex to avoid overlaps)
       Scope to pages where homepage cards exist */
    .socoff-services:has(.service-platform-card-link) .services-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding: 0 16px 6px !important;
        margin: 0 -16px !important; /* bleed to edges */
    }
    .socoff-services:has(.service-platform-card-link) .services-grid::-webkit-scrollbar { display: none; }
    .socoff-services:has(.service-platform-card-link) .services-grid { -ms-overflow-style: none; scrollbar-width: none; }
    .socoff-services:has(.service-platform-card-link) .services-grid > .service-platform-card-link {
        display: block !important;
        flex: 0 0 80% !important;
        min-width: 80% !important;
        width: auto !important;
        max-width: none !important;
        scroll-snap-align: start !important;
    }
    .socoff-services:has(.service-platform-card-link) .service-platform-card {
        width: 100% !important;
    }

    .service-platform-card {
        padding: 20px;
        border-radius: 12px;
    }

    /* Cart mobile optimization */
    .cart-layout {
        display: block !important;
    }

    .cart-items-column,
    .order-summary-column {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* Quantity controls mobile */
    .quantity-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .quantity-input {
        width: 80px;
        text-align: center;
        font-size: 16px;
    }

    /* Mobile navigation */
    .socoff-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    }

    .socoff-nav .nav-container {
        padding: 0 16px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Brand section adjustments */
    .socoff-nav .nav-brand {
        flex: 1;
        min-width: 0; /* Allow flex item to shrink */
    }

    .socoff-nav .mobile-menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        padding: 12px;
        margin-left: -12px;
        border-radius: 8px;
        color: #212121;
        font-size: 22px;
        cursor: pointer;
        transition: all 0.2s ease;
        z-index: 10001;
    }

    .socoff-nav .mobile-menu-toggle:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
    }

    .socoff-nav .mobile-menu-toggle:active {
        transform: scale(0.95);
    }

    /* Show nav actions on mobile */
    .socoff-nav .nav-actions {
        display: flex !important;
        gap: 8px;
    }

    .socoff-nav .nav-actions .cart-btn {
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 10px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .socoff-nav .nav-actions .cart-btn {
        background: linear-gradient(135deg, #00b894, #00a085) !important;
        border: 1px solid rgba(0, 184, 148, 0.2) !important;
        color: white !important;
        box-shadow: 0 2px 8px rgba(0, 184, 148, 0.25) !important;
        position: relative;
    }

    .socoff-nav .nav-actions .cart-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 184, 148, 0.35) !important;
    }

    .socoff-nav .nav-actions .cart-btn .cart-count {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #ff4757 !important;
        color: white !important;
        border-radius: 50%;
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ffffff;
        min-width: 16px;
    }



    /* Mobile menu overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Menu - Original Style with Modern Improvements */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu.active {
        left: 0;
    }

    /* Mobile Menu Header - Keep Original Style */
    .mobile-menu .mobile-menu-header {
        padding: 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu .mobile-logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 12px;
    }

    .mobile-menu .mobile-logo .logo-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #3b82f6, #1e40af);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 20px;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .mobile-menu .mobile-logo .logo-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-menu .mobile-logo .logo-text .brand-name {
        font-size: 20px;
        font-weight: 700;
        color: #1e293b;
        line-height: 1;
    }

    .mobile-menu .mobile-logo .logo-text .brand-tagline {
        font-size: 10px;
        font-weight: 500;
        color: #64748b;
        line-height: 1;
        letter-spacing: 0.5px;
    }

    .mobile-menu .mobile-menu-close {
        width: 44px;
        height: 44px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        color: #212121;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-menu .mobile-menu-close:hover {
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

    /* Mobile Menu Content */
    .mobile-menu .mobile-menu-content {
        padding: 0;
    }

    /* Mobile Navigation - Improved Original Style */
    .mobile-menu .mobile-nav {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu .mobile-nav-item {
        border-bottom: 1px solid #f1f3f4;
    }

    .mobile-menu .mobile-nav-item:last-child {
        border-bottom: none;
    }

    .mobile-menu .mobile-nav-link {
        padding: 18px 20px !important;
        font-size: 16px;
        font-weight: 600;
        color: #212121;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        transition: all 0.2s ease;
        min-height: 60px;
        background: #ffffff;
    }

    .mobile-menu .mobile-nav-link:hover {
        background: rgba(59, 130, 246, 0.08);
        color: #3b82f6;
    }

    .mobile-menu .mobile-nav-link i {
        font-size: 18px;
        transition: transform 0.2s ease;
        color: #6c757d;
    }

    .mobile-menu .mobile-nav-link:hover i {
        transform: rotate(180deg);
        color: #3b82f6;
    }

    /* Mobile Submenu - Improved Original Style */
    .mobile-menu .mobile-submenu {
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu .mobile-submenu.active {
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Services submenu specific styles */
    .mobile-menu .mobile-submenu#servicesSubmenu.active {
        max-height: 400px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu .mobile-submenu li {
        border-bottom: 1px solid #e9ecef;
    }

    .mobile-menu .mobile-submenu li:last-child {
        border-bottom: none;
    }

    .mobile-menu .mobile-submenu a {
        padding: 15px 20px 15px 40px;
        font-size: 15px;
        font-weight: 500;
        color: #495057;
        display: flex;
        align-items: center;
        text-decoration: none;
        transition: all 0.2s ease;
        gap: 16px;
    }

    .mobile-menu .mobile-submenu a i {
        font-size: 16px;
        color: #6c757d;
        min-width: 16px;
        text-align: center;
        margin-right: 6px;
    }

    .mobile-menu .mobile-submenu a:hover {
        background: rgba(59, 130, 246, 0.05);
        color: #3b82f6;
        padding-left: 45px;
    }

    .mobile-menu .mobile-submenu a:hover i {
        color: #3b82f6;
    }

    /* Mobile submenu scrollbar */
    .mobile-menu .mobile-submenu::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-menu .mobile-submenu::-webkit-scrollbar-track {
        background: #f1f3f4;
    }

    .mobile-menu .mobile-submenu::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }

    .mobile-menu .mobile-submenu::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    /* Mobile Menu Actions - Improved Original Style */
    .mobile-menu-actions {
        padding: 20px;
        border-top: 1px solid #e9ecef;
        background: #f8f9fa;
        display: flex;
        gap: 12px;
    }

    .mobile-action-btn {
        flex: 1;
        height: 50px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
        border: none;
        cursor: pointer;
    }

    .mobile-action-btn.cart-mobile-btn {
        background: linear-gradient(135deg, #00b894, #00a085);
        color: white;
        box-shadow: 0 2px 8px rgba(0, 184, 148, 0.25);
    }

    .mobile-action-btn.cart-mobile-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 184, 148, 0.35);
        color: white;
    }

    .mobile-action-btn.order-mobile-btn {
        background: rgba(59, 130, 246, 0.1);
        color: #3b82f6;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .mobile-action-btn.order-mobile-btn:hover {
        background: rgba(59, 130, 246, 0.15);
        transform: translateY(-1px);
        color: #3b82f6;
    }

    .mobile-action-btn i {
        font-size: 18px;
    }

    .mobile-cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #ff4757;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 11px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #ffffff;
        min-width: 20px;
    }

    /* Mobile Menu Scrollbar */
    .mobile-menu::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-menu::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    .mobile-menu::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 2px;
    }

    .mobile-menu::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    /* Mobile Menu Animation */
    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .mobile-menu.active {
        animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Mobile Menu Responsive */
    @media (max-width: 480px) {
        .mobile-menu {
            width: 95%;
            max-width: none;
        }

        .mobile-menu .mobile-nav-link {
            padding: 18px 20px !important;
            font-size: 15px;
        }

        .mobile-menu .mobile-submenu a {
            padding: 14px 20px 14px 44px;
            font-size: 14px;
        }

        .mobile-menu-actions {
            padding: 20px 16px;
        }

        .mobile-action-btn {
            height: 48px;
            font-size: 13px;
        }

        /* Slightly wider cards on very small screens */
        .socoff-services:has(.service-platform-card-link) .services-grid > .service-platform-card-link { flex-basis: 85% !important; min-width: 85% !important; }
    }

    /* Body scroll lock when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Content margin for fixed header */
   

    /* Logo adjustments for mobile */
    .socoff-nav .nav-brand .nav-logo .logo-text .brand-name {
        font-size: 18px !important;
    }

    .socoff-nav .nav-brand .nav-logo .logo-text .brand-tagline {
        font-size: 8px !important;
    }

    .socoff-nav .nav-brand .nav-logo .logo-icon {
        width: 32px !important;
        height: 32px !important;
    }

    /* Responsive text hiding for very small screens */
    @media (max-width: 360px) {
        .socoff-nav .nav-actions .cart-btn span {
            display: none;
        }

        .socoff-nav .nav-actions .cart-btn {
            min-width: 32px !important;
            padding: 0 6px !important;
        }

        .socoff-nav .nav-brand .nav-logo .logo-text {
            display: none;
        }
    }

    /* Cart badge improvements */
    .nav-actions .cart-btn:not(:empty) .cart-count {
        display: flex !important;
    }

    .nav-actions .cart-btn.empty .cart-count {
        display: none !important;
    }

    /* Toast notifications mobile */
    .toastify {
        margin: 0 16px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }

    /* Checkout page hero title - slightly smaller on mobile */
    .checkout-page .platform-minimal-hero .minimal-hero-title {
        font-size: 22px !important;
        line-height: 1.25 !important;
    }

    /* Form header: shrink icon and title on mobile */
    .form-header {
        gap: 8px !important;
    }
    .form-header i {
        font-size: 18px !important;
    }
    .form-header .form-title,
    .form-header h1,
    .form-header h2,
    .form-header h3 {
        font-size: 18px !important;
        line-height: 1.25 !important;
        margin: 0 !important;
    }

    /* Form actions: center and make primary action full-width with larger tap area */
    .form-actions {
        justify-content: center !important;
        text-align: center !important;
    }
    .form-actions .socoff-btn,
    .form-actions button,
    .form-actions a.socoff-btn,
    .form-actions a.button {
        width: 100% !important;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    /* Security items: reduce vertical padding on mobile */
    .security-badges .security-item,
    .security-item,
    .checkout-page .security-item,
    .cart-page .security-item {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Image lazy loading optimization */
    img[loading="lazy"] {
        transition: opacity 0.3s ease;
    }

    /* Safe area for iPhone X+ */
    @supports (padding: max(0px)) {
        .container {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }

        .socoff-nav {
            padding-top: env(safe-area-inset-top);
        }
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }

    .hero-content,
    .hero-visual {
        overflow: hidden;
    }

    /* Optimize text sizes for readability */
    .section-title {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Blog post mobile optimization */
    .post-card {
        margin-bottom: 20px;
        border-radius: 12px;
        overflow: hidden;
    }

    .post-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
    }

    /* Blog listing page */
    .blog-content-section .content-layout,
    .post-content-section .content-layout {
        display: block !important;
        gap: 0 !important;
    }

    .blog-content-section .main-content,
    .post-content-section .main-content,
    .blog-content-section .sidebar,
    .post-content-section .sidebar {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .posts-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .post-card .post-content { padding: 14px; }
    .post-card .post-title { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
    .post-card .post-excerpt { font-size: 14px; line-height: 1.6; }
    .post-card .post-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-direction: row; }
    .post-card .post-meta .meta-items { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
    .post-card .post-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
    .post-card .post-meta .meta-item i { font-size: 14px; opacity: 0.8; }
    .post-card .read-more { margin-left: auto; }

    .post-card .post-meta .meta-items {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    /* Blog hero */
    .modern-hero-section .hero-title { font-size: 24px; line-height: 1.25; }
    .modern-hero-section .hero-badge { font-size: 12px; gap: 6px; }
    .modern-hero-section .hero-badge i { font-size: 16px; }

    /* Sidebar widgets grid for images */
    .random-posts,
    .related-posts {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .random-post-card .random-post-image img,
    .related-post-card .related-post-image img { width: 100%; height: auto; object-fit: cover; border-radius: 10px; }
    .random-post-title,
    .related-post-title { font-size: 14px; line-height: 1.4; margin-top: 8px; }

    /* Breadcrumb smaller */
    .modern-breadcrumb .breadcrumb-list { gap: 6px; }
    .modern-breadcrumb .breadcrumb-item { font-size: 12px; }

    /* Breadcrumb horizontal scroll on mobile */
    .modern-breadcrumb {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        padding-bottom: 6px !important;
    }
    .modern-breadcrumb::-webkit-scrollbar { display: none; }
    .modern-breadcrumb { -ms-overflow-style: none; scrollbar-width: none; }
    .modern-breadcrumb .breadcrumb-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center;
    }
    .modern-breadcrumb .breadcrumb-item { flex: 0 0 auto; }

    /* Post page specifics */
    .post-header .post-image img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
    .post-meta .meta-items { display: flex; flex-wrap: wrap; gap: 8px; }

    .toc-widget { border-radius: 10px; }
    .toc-header { display: flex; align-items: center; justify-content: space-between; }
    .toc-toggle { width: 40px; height: 40px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
    .toc-body { display: none; }
    .toc-list { padding: 10px 14px; }
    .toc-list li a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.4; }

    .post-navigation { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .post-navigation .nav-post { width: 100%; }

    /* Load more */
    .load-more-section .load-more-btn { width: 100%; }

    /* Social icons smaller on mobile */
    .social-links-section .social-icons { gap: 8px; }
    .social-links-section .social-icons a { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
    .social-links-section .social-icons i { font-size: 18px; }

    /* Post hero image: remove fixed height on mobile */
    .post-content-section .post-image,
    .post-header .post-image { height: auto !important; }
    .post-content-section .post-image img,
    .post-header .post-image img { height: auto !important; max-height: none !important; aspect-ratio: auto !important; }

    /* Homepage platform price info a bit smaller */
    .socoff-services .price-info { gap: 6px !important; }
    .socoff-services .price-from { font-size: 11px !important; }
    .socoff-services .price-amount { font-size: 18px !important; }
    .socoff-services .price-unit { font-size: 12px !important; }

    /* Payment success mobile fixes */
    .payment-hero-overlap .platform-minimal-hero .minimal-hero-content {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        position: relative !important;
        z-index: 20 !important;
    }
    .payment-hero-overlap .platform-icon-large { order: 1 !important; margin: 0 auto !important; position: relative !important; z-index: 21 !important; }
    .payment-hero-overlap .hero-text-content { order: 2 !important; }
    .payment-hero-overlap .minimal-hero-title { margin: 0 auto !important; }

    .payment-status-container { text-align: center; }
    .payment-status-container .progress-steps { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
    .payment-status-container .progress-steps .step { min-width: auto; }
    .payment-status-container .progress-steps .step-line { flex: 0 0 24px; height: 2px; background: #e5e7eb; }
    .payment-status-container .success-message { margin-top: 12px; }
    .payment-status-container .success-actions .socoff-btn { width: 100%; }

    /* Adjust overlap to avoid covering the icon */
    .payment-hero-overlap .platform-minimal-hero { padding-bottom: 120px !important; min-height: 380px !important; }
    .payment-hero-overlap .page-content-section { margin-top: -80px !important; }

    /* Category page mobile */
    .custom-col-7,
    .custom-col-5 {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .quantity-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* Payment page mobile */
    .checkout-layout {
        display: block !important;
    }

    .checkout-form-column,
    .security-info-column {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* Checkout form optimizations */
    .form-section {
        margin-bottom: 24px;
    }

    .form-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .input-wrapper {
        position: relative;
        width: 100%;
    }

    .input-wrapper i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280;
        z-index: 2;
    }

    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding-left: 44px !important;
    }

    /* Payment options mobile */
    .payment-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .payment-option {
        padding: 16px;
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        cursor: pointer;
        transition: all 0.3s ease;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .payment-option.active {
        border-color: #3b82f6;
        background-color: #eff6ff;
    }

    /* Platform services mobile */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0 4px;
    }

    .service-platform-card,
    .modern-service-card {
        padding: 20px;
        border-radius: 12px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        margin-bottom: 0;
    }

    .service-platform-card:hover,
    .modern-service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    /* Category page mobile */
    .product-purchase-section .custom-row {
        display: block !important;
    }

    .custom-col-7,
    .custom-col-5 {
        width: 100% !important;
        margin-bottom: 20px;
    }

    .purchase-card {
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .form-step {
        margin-bottom: 24px;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 20px;
    }

    .form-step:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .step-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .step-number {
        background: #3b82f6;
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 14px;
    }

    /* Quantity selection mobile */
    .quantity-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .quantity-card {
        padding: 16px;
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .quantity-card.active {
        border-color: #3b82f6;
        background-color: #eff6ff;
    }

    .quantity-amount {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 4px;
    }

    .quantity-price {
        font-size: 14px;
        color: #6b7280;
    }

    /* Service type grid mobile */
    .service-type-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .service-type-card {
        padding: 16px;
        border-radius: 8px;
        border: 2px solid #e5e7eb;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .service-type-card.active {
        border-color: #3b82f6;
        background-color: #eff6ff;
    }

    /* Blog page mobile */
    .blog-content-section .content-layout {
        display: block !important;
    }

    .main-content,
    .sidebar {
        width: 100% !important;
        margin-bottom: 24px;
    }

    .posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .post-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .post-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .post-image img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .post-excerpt {
        font-size: 14px;
        line-height: 1.6;
        color: #6b7280;
        margin-bottom: 16px;
    }

    /* Sidebar mobile */
    .sidebar-widget {
        background: #f9fafb;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .widget-header {
        margin-bottom: 16px;
    }

    .widget-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #3b82f6;
        font-weight: 600;
        font-size: 14px;
    }

    /* Landing page mobile */
    .landing-hero {
        padding: 60px 0 40px 0;
    }

    .hero-showcase {
        margin-top: 40px;
        background: white;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .live-orders-list {
        gap: 12px;
    }

    .live-order-item {
        padding: 16px;
        background: #f9fafb;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Platform filter mobile */
    .category-filter-section {
        padding: 20px 0;
        background: #f9fafb;
    }

    .category-filter-tabs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 8px 0;
        -webkit-overflow-scrolling: touch;
    }

    .category-filter-tab {
        flex-shrink: 0;
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 8px;
        padding: 12px 16px;
        min-width: auto;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .category-filter-tab.active {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }

    /* Order tracking mobile */
    .order-modal .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 20px auto;
        border-radius: 12px;
    }

    .modal-body {
        padding: 20px;
    }

    .order-search-form .form-group {
        margin-bottom: 16px;
    }

    /* Testimonials mobile */
    .testimonials-carousel {
        overflow: hidden;
        border-radius: 12px;
    }

    .testimonials-wrapper {
        display: flex;
        transition: transform 0.3s ease;
    }

    .testimonial-card {
        flex-shrink: 0;
        width: 100%;
        padding: 20px;
        background: white;
        border-radius: 12px;
        margin-right: 16px;
    }

    /* FAQ mobile */
    .faq-accordion {
        display: block !important;
    }

    .faq-accordion .custom-row {
        display: block !important;
    }

    .faq-accordion .custom-col-6 {
        width: 100% !important;
    }

    .faq-item {
        margin-bottom: 12px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .faq-question {
        padding: 16px;
        background: white;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .faq-answer {
        padding: 0 16px 16px 16px;
        background: #f9fafb;
        display: none;
    }

    .faq-answer.active {
        display: block;
    }

    /* Delivery times page mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }

    .table {
        font-size: 12px;
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 8px 4px;
        white-space: nowrap;
    }

    /* Page-default mobile (Corporate pages) */
    .page-content-section .content-layout {
        display: block !important;
    }

    .page-content-section .main-content,
    .page-content-section .sidebar {
        width: 100% !important;
        margin-bottom: 24px;
    }

    .content-card {
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .sidebar-menu {
        margin-top: 24px;
    }

    .menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu-item {
        margin-bottom: 8px;
    }

    .menu-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: white;
        border-radius: 8px;
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .menu-link:hover,
    .menu-link.active {
        background: #3b82f6;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .menu-icon {
        width: 40px;
        height: 40px;
        background: #f3f4f6;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .menu-link:hover .menu-icon,
    .menu-link.active .menu-icon {
        background: rgba(255,255,255,0.2);
    }

    .menu-content {
        flex: 1;
    }

    .menu-title {
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 2px;
        display: block;
    }

    .menu-desc {
        font-size: 12px;
        opacity: 0.8;
        display: block;
    }

    /* Cart item mobile */
    .cart-item-card {
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .cart-item-header {
        margin-bottom: 12px;
    }

    .platform-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
    }

    .cart-item-content {
        margin-bottom: 16px;
    }

    .service-target {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: #f9fafb;
        border-radius: 6px;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 8px;
    }

    .target-url {
        word-break: break-all;
        flex: 1;
    }

    .service-price {
        text-align: right;
    }

    .price-amount {
        font-size: 18px;
        font-weight: 700;
        color: #059669;
    }

    .cart-item-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .quantity-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f9fafb;
        border-radius: 8px;
        padding: 4px;
    }

    .quantity-input {
        width: 60px;
        text-align: center;
        border: none;
        background: transparent;
        font-size: 14px;
        font-weight: 600;
    }

    .remove-item-btn {
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 6px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .remove-item-btn:hover {
        background: #dc2626;
        transform: scale(1.05);
    }

    /* Order summary mobile */
    .order-summary-column {
        background: #f9fafb;
        border-radius: 12px;
        padding: 20px;
    }

    .summary-card {
        background: white;
        border-radius: 8px;
        padding: 20px;
    }

    .summary-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 16px;
        color: #1f2937;
    }

    .summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .summary-row:last-child {
        border-bottom: none;
    }

    .summary-row.total-row {
        font-weight: 700;
        font-size: 16px;
        color: #1f2937;
        border-top: 2px solid #e5e7eb;
        padding-top: 16px;
        margin-top: 8px;
    }

    .discount-row .discount-value {
        color: #059669;
        font-weight: 600;
    }

    /* Security badges mobile */
    .security-badges {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
        flex-wrap: wrap;
    }

    .security-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: #6b7280;
    }

    .security-item i {
        color: #059669;
    }

    /* Hot deals mobile */
    .socoff-hot-deals .container {
        padding: 0 16px;
    }

    .hot-deals-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .deal-card {
        border-radius: 16px;
        padding: 24px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .deal-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .deal-badge {
        position: absolute;
        top: 16px;
        right: 16px;
        background: #ef4444;
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
    }

    .deal-content {
        position: relative;
        z-index: 2;
    }

    .deal-platform {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .deal-platform i {
        font-size: 24px;
    }

    .deal-package {
        text-align: center;
        margin-bottom: 16px;
    }

    .package-amount {
        display: block;
        font-size: 32px;
        font-weight: 900;
        color: #1f2937;
        line-height: 1;
    }

    .package-type {
        font-size: 14px;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .deal-pricing {
        text-align: center;
        margin-bottom: 20px;
    }

    .original-price {
        display: block;
        text-decoration: line-through;
        color: #9ca3af;
        font-size: 14px;
        margin-bottom: 4px;
    }

    .discount-price {
        display: block;
        font-size: 24px;
        font-weight: 900;
        color: #059669;
        margin-bottom: 4px;
    }

    .savings {
        font-size: 12px;
        color: #ef4444;
        font-weight: 600;
    }

    .deal-btn {
        width: 100%;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: all 0.3s ease;
        margin-bottom: 12px;
    }

    .deal-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

    .deal-guarantee {
        text-align: center;
        font-size: 12px;
        color: #6b7280;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .deal-guarantee i {
        color: #059669;
    }

    /* Performance optimizations */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    input,
    textarea,
    [contenteditable] {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }

    /* Smooth scrolling for iOS */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* Tablet specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .container {
        padding: 0 32px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Tablet navigation */
    .socoff-nav .nav-menu {
        display: flex !important;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    /* Show text on tablet nav actions */
    .socoff-nav .nav-actions .cart-btn span,
    .socoff-nav .nav-actions .order-search-btn span {
        display: inline !important;
    }

    .socoff-nav .nav-actions .cart-btn {
        padding: 0 16px !important;
        min-width: auto !important;
    }

    /* Tablet checkout layout */
    .checkout-layout {
        display: flex !important;
        gap: 24px;
    }

    .checkout-form-column {
        flex: 2;
    }

    .security-info-column {
        flex: 1;
    }

    /* Tablet category page */
    .product-purchase-section .custom-row {
        display: flex !important;
        gap: 24px;
    }

    .custom-col-7 {
        flex: 2;
    }

    .custom-col-5 {
        flex: 1;
    }

    /* Tablet quantity grid */
    .quantity-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }

    /* Tablet blog layout */
    .blog-content-section .content-layout,
    .page-content-section .content-layout {
        display: flex !important;
        gap: 32px;
    }

    .main-content {
        flex: 2;
    }

    .sidebar {
        flex: 1;
    }

    /* Tablet posts grid */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }

    /* Tablet hot deals */
    .hot-deals-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px;
    }

    /* Tablet platform filter */
    .category-filter-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }

    .category-filter-tab {
        min-width: 120px;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

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

    .quantity-grid {
        grid-template-columns: 1fr !important;
    }

    .socoff-btn {
        font-size: 14px;
        padding: 10px 14px;
    }

    /* Extra small screens optimization */
    .service-platform-card,
    .modern-service-card {
        padding: 16px;
    }

    .post-content {
        padding: 16px;
    }

    .purchase-card {
        padding: 16px;
    }

    .checkout-form-card {
        padding: 16px;
    }

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

    .section-title {
        font-size: 1.5rem !important;
    }

    .quantity-card {
        min-height: 70px;
        padding: 12px;
    }

    .payment-option {
        padding: 12px;
        min-height: 50px;
    }

    .menu-link {
        padding: 12px;
    }

    .faq-question {
        padding: 12px;
    }

    .cart-item-card {
        padding: 12px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    /* Keep light mode as per user preference */
    body {
        background: #ffffff;
        color: #212121;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .socoff-nav,
    .mobile-menu,
    .back-to-top,
    .whatsapp-button,
    .purchase-buttons,
    .social-links-section {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .socoff-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
