/* =============================================================================
   MOBILE.CSS - VinTrusted Mobile & Tablet Responsive Styles
   ============================================================================= */

/* Safe Area CSS Variables for iOS Dynamic Island & Notches */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  /* Legacy names for compatibility */
  --safe-top: var(--sat);
  --safe-right: var(--sar);
  --safe-bottom: var(--sab);
  --safe-left: var(--sal);
}

/* =============================================================================
   MOBILE & TABLET BASE STYLES (0-1023px)
   ============================================================================= */

@media (max-width: 1023px) {
  
  /* Override Desktop Constraints */
  html {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    background-color: #0f0f0f !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Set background color for Safari address bar - must be visible color, not transparent */
    background-color: #0f0f0f !important;
    background-image: none !important;
    position: relative;
    /* Remove padding to allow background to extend into safe-area */
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    min-height: 100svh !important;
  }
  
  /* Fixed background overlay for safe-area (Dynamic Island) - extends hero-section background */
  body::before {
    content: "";
    position: fixed;
    inset: calc(-1 * var(--sat)) calc(-1 * var(--sar)) calc(-1 * var(--sab)) calc(-1 * var(--sal));
    z-index: -1;
    /* Extend hero background into safe-area - use image only (gradient handled by hero-section pseudo) */
    background: url('hero-background.jpg') center top / cover no-repeat fixed;
    background-color: #181818;
    pointer-events: none;
  }

  /* Mobile Container - Single Column, Max Width 480px */
  .m-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
  }

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

  /* =============================================================================
     HEADER - MOBILE
     ============================================================================= */
  
  /* Show loading page on mobile, but hide desktop header */
  .loading-page .header,
  #loadingPage .header {
    display: none !important;
    visibility: hidden !important;
  }

  /* Loading page - mobile adaptation */
  .loading-page,
  #loadingPage {
    display: none !important; /* Hidden by default, shown via JavaScript */
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100svh !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(15, 23, 42, 0.8) 30%, rgba(30, 58, 138, 0.4) 100%),
                url('hero-background.jpg') center center / cover no-repeat scroll !important;
    background-color: #0f0f0f !important;
    z-index: 9999 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  
  /* Show loading page when display: flex is set via JavaScript */
  .loading-page[style*="display: flex"],
  #loadingPage[style*="display: flex"] {
    display: flex !important;
  }
  
  .loading-container {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(16px, var(--sat)) max(16px, var(--sar)) max(16px, var(--sab)) max(16px, var(--sal)) !important;
    box-sizing: border-box !important;
  }
  
  .loading-content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }
  
  .loading-header {
    width: 100% !important;
    text-align: center !important;
  }
  
  .loading-title {
    font-size: clamp(20px, 5vw, 28px) !important;
    color: #ffffff !important;
    margin-bottom: 24px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }
  
  .loading-field {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
  }
  
  .progress-bar-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 25px !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  
  .progress-bar-overlay {
    height: 100% !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    border-radius: 25px !important;
    transition: width 0.1s ease !important;
  }
  
  .progress-text {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    z-index: 1 !important;
  }
  
  #updateNotification {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
    padding: 16px !important;
    font-size: 14px !important;
  }

  /* Hide header completely on mobile */
  .header,
  header.header,
  #mainPage .header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  
  /* Main header - single, fixed at top - REMOVED */
  /*
  #mainPage .header,
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding-top: calc(12px + var(--safe-top));
    padding-bottom: 12px;
    height: auto;
    min-height: calc(60px + var(--safe-top));
    z-index: 1000;
    display: block !important;
    visibility: visible !important;
  }
  */

  /* Ensure main page is visible */
  #mainPage {
    display: block !important;
    visibility: visible !important;
  }

  .header-content {
    height: auto;
    min-height: 50px;
    padding: 8px 0;
    justify-content: center;
  }

  .logo {
    margin-left: 0;
    transform: scale(0.8);
  }

  .logo-img {
    height: 80px;
    width: auto;
  }

  .nav, 
  .header-actions {
    display: none;
  }

  /* Mobile Menu Toggle (if needed in future) */
  .m-menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  /* =============================================================================
     HERO SECTION - MOBILE
     ============================================================================= */
  
  .hero-section,
  html body .hero-section {
    --hero-parallax-offset: 0px;
    margin-top: -5px !important;
    padding: 0 !important;
    /* Extend height to include safe-area for transparent effect */
    height: calc(100svh + var(--sat) + var(--sab)) !important;
    min-height: calc(100svh + var(--sat) + var(--sab)) !important;
    max-height: calc(100svh + var(--sat) + var(--sab)) !important;
    /* Extend background into safe-area */
    padding-top: var(--sat) !important;
    padding-bottom: var(--sab) !important;
    padding-left: var(--sal) !important;
    padding-right: var(--sar) !important;
    background: url('hero-background.jpg') center center / cover no-repeat scroll !important;
    background-color: #181818 !important;
    position: relative !important;
    overflow: hidden !important;
    transform: none !important;
    display: flex !important;
    align-items: stretch !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 0 !important;
    box-sizing: border-box !important;
  }
  
  html body .hero-section .hero-container,
  html body .hero-container,
  .hero-section .hero-container,
  .hero-container {
    transform: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: -5px auto 0 auto !important;
    padding: 2px 16px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 0px !important;
    height: calc(100% - var(--sat) - var(--sab)) !important;
    min-height: calc(100% - var(--sat) - var(--sab)) !important;
    max-height: calc(100% - var(--sat) - var(--sab)) !important;
    visibility: visible !important;
    box-sizing: border-box !important;
    text-align: left !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .hero-section::before,
  html body .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0.86) 0%,
                rgba(0, 0, 0, 0.8) 55%,
                rgba(0, 0, 0, 0.62) 90%,
                rgba(0, 0, 0, 0.25) 96%,
                rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 0;
    transform: translate3d(0, var(--hero-parallax-offset, 0), 0);
    will-change: transform;
  }

  .hero-container > * {
    flex-shrink: 0 !important;
  }

  /* Mobile logo at top of hero section - AGGRESSIVE STYLES */
  html body .hero-section .mobile-hero-logo,
  html body .hero-container .mobile-hero-logo,
  html body section.hero-section div.hero-container div.mobile-hero-logo,
  .hero-section .mobile-hero-logo,
  .hero-container .mobile-hero-logo,
  .mobile-hero-logo {
    transform: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    margin-top: calc(5mm + 1cm - var(--safe-top, 0px)) !important;
    position: relative !important;
    z-index: 1000 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    order: -1 !important;
  }
  
  html body .hero-section .mobile-hero-logo img,
  html body .hero-container .mobile-hero-logo img,
  html body section.hero-section div.hero-container div.mobile-hero-logo img,
  .hero-section .mobile-hero-logo img,
  .hero-container .mobile-hero-logo img,
  .mobile-logo-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 108px !important;
    width: auto !important;
    max-width: 324px !important;
    min-width: 216px !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 101 !important;
  }
  
  /* Hide mobile logo on desktop */
  @media (min-width: 1024px) {
    html body .hero-section .mobile-hero-logo,
    html body .hero-container .mobile-hero-logo,
    .hero-section .mobile-hero-logo,
    .hero-container .mobile-hero-logo,
    .mobile-hero-logo {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      height: 0 !important;
      overflow: hidden !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .mobile-hero-logo img,
    .mobile-logo-img {
      display: none !important;
      visibility: hidden !important;
    }
  }

  /* Hide desktop title on mobile - this is the title "Know the Real History" */
  .main-title,
  .hero-container .main-title,
  .hero-section .main-title,
  html body .main-title,
  html body .hero-container .main-title,
  html body .hero-section .main-title {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
  }
  
  /* Hide title from search-form-container */
  .search-form-container::before {
    content: none !important;
    display: none !important;
  }
  
  /* Hide subtitle-chips pseudo title - use real mobile-main-title instead */
  .subtitle-chips::before {
    content: none !important;
    display: none !important;
  }
  
  .subtitle-chips::after {
    content: none !important;
    display: none !important;
  }
  
  /* Mobile main title */
  .mobile-main-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0 !important;
    color: #ffffff !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .mobile-title-line {
    font-size: clamp(35.2px, 6.6vw, 41.8px) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
  }
  
  .mobile-title-line .yellow-text {
    color: #fbbf24 !important;
  }
  
  /* Force remove all margins from title */
  html body .hero-section .subtitle-chips::before,
  html body .hero-container .subtitle-chips::before,
  .hero-section .subtitle-chips::before,
  .hero-container .subtitle-chips::before {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Allow title to have margin-top */
  .hero-section .mobile-hero-logo {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  .hero-section .main-title {
    margin-top: 20px !important;
  }

  .subtitle {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
    max-width: 100%;
  }
  
  /* Subtitle chips - AFTER title (created via ::before), before form */
  .subtitle-chips {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    order: 2 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
  }
  
  /* Force remove all margins from subtitle-chips on mobile */
  html body .hero-section .subtitle-chips,
  html body .hero-container .subtitle-chips,
  .hero-section .subtitle-chips,
  .hero-container .subtitle-chips {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* Mobile logo - first (order: 0) */
  .mobile-hero-logo {
    order: 0 !important;
  }
  
  /* Title via ::before - second (order: 1) */
  /* Subtitle chips - third (order: 2) */
  /* Form container - last (order: 3) */
  .search-form-container {
    order: 3 !important;
  }

  .yellow-text {
    display: inline;
  }

  /* =============================================================================
     VIN SEARCH FORM - MOBILE - UNIFIED CONTAINER
     ============================================================================= */
  
  .search-form-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px auto 0 auto !important;
    padding: 0 16px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Show search-form inside unified container */
  .search-form-container > .search-form {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: block !important;
    visibility: visible !important;
  }
  
  .form-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
  }
  
  /* Show only new unified form structure */
  .search-form-container > .search-form {
    display: block !important;
    visibility: visible !important;
  }
  
  /* Hide old search button inside form-content */
  .search-form .form-content .search-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  /* Ensure form-content displays properly but hides old button */
  .search-form .form-content {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Mode buttons - separate buttons with gap */
  .search-form-container .mode-buttons {
    display: flex !important;
    gap: 12px !important;
    margin: 0 0 16px 0 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .m-form-tabs,
  .search-form-container .mode-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: center;
    width: 100%;
  }

  .m-tab-btn,
  .search-form-container .mode-btn {
    flex: 1 !important;
    height: 54px !important;
    padding: 0 !important;
    border-radius: 27px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .m-tab-btn.active,
  .search-form-container .mode-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1a1a1a !important;
    border-color: #fbbf24 !important;
  }
  
  /* Input field - separate with margin */
  .search-form-container .search-form {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
  }

  /* VIN Form Fields */
  .m-vin-field,
  .vin-mode-content,
  .plate-mode-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .m-vin-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  /* Input fields - full width inside container - OVERRIDE styles.css hiding */
  .search-form-container .search-form .form-content #vin-mode,
  .search-form-container .search-form .form-content #plate-mode {
    display: none !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Show only active mode - with margins */
  .search-form-container .search-form .form-content #vin-mode.active,
  .search-form-container .search-form .form-content #plate-mode.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  
  /* Hide inactive modes */
  .search-form-container .search-form .form-content #vin-mode:not(.active),
  .search-form-container .search-form .form-content #plate-mode:not(.active) {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Style inputs inside active mode - separate field */
  .search-form-container .search-form .form-content #vin-mode.active .vin-input {
    width: 100% !important;
    height: 54px !important;
    border-radius: 27px !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  
  /* Plate mode - stacked select and input with gap */
  .search-form-container .search-form .form-content #plate-mode.active {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    margin-bottom: 16px !important;
    border-radius: 0 !important;
  }
  
  /* ВЕРТИКАЛЬНЫЕ ОТСТУПЫ И ИСПРАВЛЕНИЕ НАЛОЖЕНИЙ (только ≤768px) */
  @media (max-width: 768px) {
    /* ПЕРЕОПРЕДЕЛЯЕМ gap для form-content - перекрываем правило gap: 0 */
    .search-form-container .search-form .form-content {
      gap: 16px !important;
      display: flex !important;
      flex-direction: column !important;
    }
    
    /* VIN mode - убираем margin-bottom, используем gap */
    .search-form-container .search-form .form-content #vin-mode.active {
      margin: 0 !important;
      margin-bottom: 0 !important;
    }
    
    /* Plate mode - убираем margin-bottom, используем gap */
    .search-form-container .search-form .form-content #plate-mode.active {
      margin: 0 !important;
      margin-bottom: 0 !important;
    }
    
    /* Исправляем наложение кнопки Get My Report - она ВНЕ form-content */
    .search-form-container .search-form {
      display: flex !important;
      flex-direction: column !important;
      gap: 16px !important;
    }
    
    .search-form-container .search-form .mobile-search-btn {
      position: relative !important;
      z-index: 10 !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      order: 999 !important;
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      width: 100% !important;
      height: 54px !important;
      min-height: 54px !important;
      max-height: 54px !important;
    }
    
    /* Убираем margin-bottom у search-form чтобы gap работал */
    .search-form-container .search-form {
      margin: 0 !important;
      margin-bottom: 0 !important;
    }
    
    /* --- АГРЕССИВНАЯ БЛОКИРОВКА iOS меню (только ≤768px) --- */
    /* Применяем стили ко ВСЕМ кнопкам с максимальной специфичностью */
    html body .search-form-container button,
    html body .search-form-container .btn,
    html body .search-form-container .mode-btn,
    html body .search-form-container .mobile-search-btn,
    html body .search-form-container .search-btn,
    html body .mode-buttons button,
    html body .mode-buttons .mode-btn,
    html body .search-form button,
    html body .search-form .btn,
    html body .search-form .mobile-search-btn,
    html body .search-form .search-btn,
    html body button.mode-btn,
    html body button.mobile-search-btn,
    html body button.search-btn,
    html body .search-form-container button.mode-btn,
    html body .search-form-container button.mobile-search-btn,
    button.mode-btn,
    button.mobile-search-btn,
    button.search-btn,
    .mode-btn,
    .mobile-search-btn,
    .search-btn {
      -webkit-user-select: none !important;
      -moz-user-select: none !important;
      -ms-user-select: none !important;
      user-select: none !important;
      -webkit-touch-callout: none !important;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
      touch-action: manipulation !important;
      -webkit-appearance: none !important;
      -moz-appearance: none !important;
      appearance: none !important;
      pointer-events: auto !important;
      /* Дополнительные стили для iOS */
      -webkit-user-drag: none !important;
      -khtml-user-drag: none !important;
      -moz-user-drag: none !important;
      -o-user-drag: none !important;
    }
    
    /* Блокируем focus outline */
    html body .search-form-container button:focus,
    html body .search-form-container .btn:focus,
    html body .search-form-container .mode-btn:focus,
    html body .search-form-container .mobile-search-btn:focus,
    html body .mode-buttons button:focus,
    html body .mode-buttons .mode-btn:focus,
    html body button.mode-btn:focus,
    html body button.mobile-search-btn:focus,
    button.mode-btn:focus,
    button.mobile-search-btn:focus,
    button:focus,
    .btn:focus,
    .mode-btn:focus,
    .mobile-search-btn:focus {
      outline: none !important;
      -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    }
  }
  
  /* Для экранов больше 768px - оставляем как было */
  .search-form-container .search-form .form-content #vin-mode.active {
    margin-bottom: 16px !important;
  }
  
  .search-form-container .search-form .form-content #plate-mode.active .state-select,
  .search-form-container .search-form .form-content #plate-mode.active .plate-input {
    width: 100% !important;
    height: 54px !important;
    border-radius: 27px !important;
    padding: 0 20px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #1a1a1a !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* Get Report button - separate button with margin, исправляем наложение */
  .search-form-container .search-form .mobile-search-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 54px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 24px !important;
    border-radius: 27px !important;
    border: none !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    color: #1a1a1a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
  }

  .vin-input,
  .plate-input,
  .state-select,
  input[data-vin-input] {
    flex: 1;
    height: 54px;
    border-radius: 27px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #1a1a1a;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  /* Mobile VIN input - cached value styling (bold black) */
  .mobile-vin-input.vin-cached,
  #mobile-vin-input.vin-cached {
    font-weight: 700 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
  }

  .vin-input:focus,
  .plate-input:focus,
  .state-select:focus,
  input[data-vin-input]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  /* VIN Validation Colors */
  .vin-input.valid {
    color: #51cf66 !important;
    border-color: #51cf66;
  }

  .vin-input.invalid {
    color: #ff6b6b !important;
    border-color: #ff6b6b;
  }

  /* Get Report Button - inside unified container */
  .search-form-container .mobile-search-btn,
  .mobile-search-btn {
    width: 100% !important;
    height: 54px !important;
    border-radius: 0 0 20px 20px !important;
    padding: 0 24px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    position: relative !important;
  }
  
  .search-form-container .mobile-search-btn:active,
  .mobile-search-btn:active {
    transform: scale(0.98) !important;
  }

  /* Search Button */
  .search-btn,
  button[data-vin-submit] {
    width: 100%;
    height: 54px;
    border-radius: 27px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
  }

  .search-btn:active,
  button[data-vin-submit]:active {
    transform: scale(0.98);
  }

  .search-btn:disabled,
  button[data-vin-submit]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Error Message */
  .m-error,
  .error-message {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ff6b6b;
  }

  /* =============================================================================
     HERO FEATURES GRID - MOBILE
     ============================================================================= */
  
  .hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 24px auto 16px;
    padding: 0 8px;
    max-width: 100%;
  }

  .feature-item {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
  }

  .feature-icon {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .feature-text {
    font-size: 11px;
    line-height: 1.3;
  }

  /* =============================================================================
     FEATURES SECTION - MOBILE
     ============================================================================= */
  
  .features-section {
    padding: 40px 0;
  }

  .features-grid,
  .m-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0;
  }

  .feature-card {
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }

  .feature-title,
  .feature-heading {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
  }

  .feature-description,
  .feature-text {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
  }

  /* =============================================================================
     BLACK PANELS / INFO SECTIONS - MOBILE
     ============================================================================= */
  
  .black-panel,
  .info-panel {
    padding: 32px 16px;
    margin: 24px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
  }

  .panel-title {
    font-size: 22px;
    margin-bottom: 16px;
    text-align: center;
    color: #ffffff;
  }

  .panel-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .panel-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }

  .panel-feature-icon {
    font-size: 20px;
    flex-shrink: 0;
  }

  .panel-feature-text {
    font-size: 13px;
    line-height: 1.4;
    color: #e5e7eb;
  }

  /* =============================================================================
     COMPARISON TABLE - MOBILE
     ============================================================================= */
  
  .comparison-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .comparison-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
  }

  .comparison-subtitle {
    font-size: 14px;
    text-align: center;
    margin-bottom: 24px;
    color: #e5e7eb;
  }

  .comparison-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table table {
    width: 100%;
    min-width: 300px;
    border-collapse: separate;
    border-spacing: 0;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .comparison-table th {
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
  }

  /* =============================================================================
     PRICING SECTION - MOBILE
     ============================================================================= */
  
  .pricing-section {
    padding: 40px 0;
  }

  .pricing-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 16px;
    color: #ffffff;
  }

  .pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }

  .pricing-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(59, 130, 246, 0.3);
  }

  .pricing-card.featured {
    border-color: #fbbf24;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
  }

  .price {
    font-size: 36px;
    font-weight: 700;
    margin: 16px 0;
    color: #1a1a1a;
  }

  .pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
  }

  .pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: #4b5563;
  }

  .pricing-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
  }

  /* =============================================================================
     REVIEWS SECTION - MOBILE
     ============================================================================= */
  
  /* Hide reviews section on mobile */
  .reviews-section,
  section.reviews-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 16px;
  }

  .reviews-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease;
  }

  .review-card {
    min-width: 100%;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
  }

  .review-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    justify-content: center;
  }

  .review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
  }

  .review-author {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .review-location {
    font-size: 12px;
    color: #6b7280;
  }

  /* Carousel Controls */
  .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
  }

  .prev-btn,
  .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-dots {
    display: flex;
    gap: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .dot.active {
    width: 24px;
    border-radius: 4px;
    background: #fbbf24;
  }

  /* =============================================================================
     FAQ SECTION - MOBILE
     ============================================================================= */
  
  .faq-section,
  .faqs__container {
    padding: 40px 0;
  }

  .faq-title,
  .faqs__title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
    color: #ffffff;
  }

  .faq-item,
  .spollers-faq__item {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
  }

  .faq-question,
  .spollers-faq__button {
    width: 100%;
    padding: 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
  }

  .faq-question span,
  .spollers-faq__button span {
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .faq-question img,
  .spollers-faq__button img {
    padding-right: 0;
    width: 20px;
    height: 20px;
  }

  .faq-answer,
  .spollers-faq__text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .faq-item.active .faq-answer,
  .spollers-faq__item.active .spollers-faq__text {
    max-height: 1000px;
  }

  .faq-answer-content,
  .spollers-faq__inner {
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    margin-top: -12px;
  }

  /* =============================================================================
     FOOTER - MOBILE
     ============================================================================= */
  
  .footer {
    padding-top: 32px;
    padding-bottom: max(32px, var(--sab));
    padding-left: max(16px, var(--sal));
    padding-right: max(16px, var(--sar));
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-section {
    width: 100%;
  }

  .footer-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-link:hover {
    color: #fbbf24;
  }

  .footer-bottom {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  .footer-copyright {
    font-size: 12px;
    color: #6b7280;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: calc(32px + var(--safe-bottom));
  }

  .footer__policy,
  .footer__copyright {
    font-size: 12px;
    text-align: center;
  }

  .footer__logo {
    margin: 16px 0;
  }

  .logo {
    font-size: 16px;
  }

  /* =============================================================================
     STICKY CTA BAR - MOBILE
     ============================================================================= */
  
  .m-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: max(10px, var(--sat)) max(16px, var(--sal)) max(4px, calc(var(--sab) / 4)) max(16px, var(--sar));
    padding-top: 10px;
    padding-bottom: max(5px, calc(3px + (var(--sab) / 4)));
    padding-left: 16px;
    padding-right: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
    opacity: 0;
  }

  .m-cta-bar.visible {
    transform: translateY(0);
    pointer-events: auto;
    opacity: 1;
  }
  
  /* Гарантируем, что кнопка не занимает место и не видна на первом экране */
  body:has(.hero-section:target) .m-cta-bar,
  .hero-section:has(+ *) .m-cta-bar {
    transform: translateY(100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .m-cta-btn {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: block;
    height: 52px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
  }

  /* =============================================================================
     LANDSCAPE ORIENTATION - KEEP SINGLE COLUMN
     ============================================================================= */
  
  @media (orientation: landscape) and (max-width: 1023px) {
    .m-container {
      max-width: 480px;
    }

    .hero-features {
      grid-template-columns: repeat(3, 1fr);
    }

    /* Ensure scrollability for landscape */
    body {
      overflow-y: auto;
    }
  }

  /* =============================================================================
     PHABLET ADJUSTMENTS (600-767px)
     ============================================================================= */
  
  @media (min-width: 600px) and (max-width: 767px) {
    .m-container {
      padding: 0 24px;
    }

    .main-title {
      font-size: 32px;
    }

    .subtitle {
      font-size: 16px;
    }

    .hero-features {
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .features-grid,
    .m-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* =============================================================================
     TABLET ADJUSTMENTS (768-1023px)
     ============================================================================= */
  
  @media (min-width: 768px) and (max-width: 1023px) {
    .m-container {
      max-width: 640px;
      padding: 0 32px;
    }

    .main-title {
      font-size: 36px;
    }

    .subtitle {
      font-size: 16px;
    }

    .hero-features {
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
    }

    .features-grid,
    .m-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }

    .pricing-cards {
      flex-direction: row;
      gap: 20px;
    }

    .pricing-card {
      flex: 1;
    }

    .review-card {
      min-width: calc(50% - 8px);
    }
  }

  /* =============================================================================
     UTILITIES - MOBILE
     ============================================================================= */
  
  .m-hide {
    display: none !important;
  }

  .m-show {
    display: block !important;
  }

  .m-text-center {
    text-align: center;
  }

  .m-mt-0 { margin-top: 0; }
  .m-mt-1 { margin-top: 8px; }
  .m-mt-2 { margin-top: 16px; }
  .m-mt-3 { margin-top: 24px; }
  .m-mt-4 { margin-top: 32px; }

  .m-mb-0 { margin-bottom: 0; }
  .m-mb-1 { margin-bottom: 8px; }
  .m-mb-2 { margin-bottom: 16px; }
  .m-mb-3 { margin-bottom: 24px; }
  .m-mb-4 { margin-bottom: 32px; }

  .m-p-0 { padding: 0; }
  .m-p-1 { padding: 8px; }
  .m-p-2 { padding: 16px; }
  .m-p-3 { padding: 24px; }
  .m-p-4 { padding: 32px; }

  /* Touch-friendly tap targets */
  .m-tap-target {
    min-width: 44px;
    min-height: 44px;
  }

  /* Prevent text selection on tap */
  .m-no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  /* Smooth scrolling and background for safe-area transparency */
  html {
    scroll-behavior: smooth;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(15, 23, 42, 0.8) 30%, rgba(30, 58, 138, 0.4) 100%),
                url('hero-background.jpg') center top / cover no-repeat fixed !important;
    background-color: #0f0f0f !important;
  }

  /* =============================================================================
     ACCESSIBILITY - MOBILE
     ============================================================================= */
  
  /* Focus visible for keyboard navigation */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
  }

  /* High contrast mode adjustments */
  @media (prefers-contrast: high) {
    .m-tab-btn,
    .mode-btn,
    .search-btn,
    .pricing-btn {
      border-width: 3px;
    }
  }

  /* Reduced 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;
    }
  }
  
  /* Hide desktop second screen on mobile */
  .second-screen {
    display: none !important;
  }
  
  /* Mobile second screen - image replacement */
  /* Remove white space between first and second screen - negative margin to overlap */
  section.mobile-second-screen,
  .mobile-second-screen {
    margin-top: calc(-60px - 4mm) !important;
    padding-top: 0 !important;
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    min-height: calc(100svh - var(--sat) - var(--sab)) !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    overflow: hidden !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  section.mobile-second-screen img,
  .mobile-second-screen img,
  .mobile-second-screen .mobile-second-image,
  img.mobile-second-image,
  .mobile-second-image {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    padding: 0 !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* =============================================================================
     RESULTS SCREEN - MOBILE (3rd screen)
     ============================================================================= */
  
  /* Results screen: hidden by default on mobile, shown via JavaScript */
  /* Only apply to mobile devices (within @media max-width: 1023px) */
  .results-screen {
    display: none !important;
    margin-top: -2cm !important;
    padding-top: clamp(24px, 6vw, 40px) !important;
    background: #f5f5f5 !important;
    background-color: #f5f5f5 !important;
  }
  
  /* Show results screen when JavaScript sets display: block */
  /* Use more specific selector to override display: none */
  section.results-screen[style*="display: block"],
  .results-screen[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Also show if show-results class is added */
  .results-screen.show-results {
    display: block !important;
    visibility: visible !important;
  }
  
  /* Ensure results screen is always visible when explicitly shown */
  section.results-screen[style*="display: block"],
  section.results-screen.show-results {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Hide desktop action card on mobile */
  .results-right,
  .results-screen .results-right,
  .action-card {
    display: none !important;
  }
  
  /* Navigation tabs: 3 on top, 2 on bottom */
  .results-screen .nav-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px !important;
    margin-bottom: 20px !important;
  }
  
  .results-screen .nav-tabs::before {
    content: '';
    flex-basis: 100%;
    order: 2;
    height: 0;
  }
  
  /* First 3 tabs on top (Odometer, Damage, Sales) */
  .results-screen .nav-tab[data-tab="odometer"],
  .results-screen .nav-tab[data-tab="damage"],
  .results-screen .nav-tab[data-tab="sales"] {
    order: 1;
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    max-width: none;
  }
  
  /* Last 2 tabs on bottom (Ownership, Technical - longest text) */
  .results-screen .nav-tab[data-tab="ownership"],
  .results-screen .nav-tab[data-tab="technical"] {
    order: 3;
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    max-width: none;
  }
  
  .results-screen .nav-tab {
    padding: 12px 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  
  .results-screen .nav-tab.active {
    background: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: #1a1a1a !important;
  }
  
  /* Content action (logo + button) after container */
  .results-screen .content-action {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 24px 16px !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .results-screen .content-action .action-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .results-screen .content-action .action-logo {
    max-width: 120px !important;
    height: auto !important;
    width: auto !important;
  }
  
  .results-screen .content-action .action-btn {
    width: 100% !important;
    max-width: 320px !important;
    height: 54px !important;
    padding: 0 24px !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    border: none !important;
    border-radius: 27px !important;
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
  }
  
  .results-screen .content-action .action-btn:active {
    transform: scale(0.98) !important;
  }
  
  /* Content image styling - full width edge to edge */
  .results-screen .results-left {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .results-screen .content-display {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  
  .results-screen .content-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: none !important;
  }
  
  .results-screen .content-item.active {
    display: block !important;
  }
  
  /* Mobile tab images are replaced via JavaScript */
  
  .results-screen .content-image {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
  }
  
  .results-screen .content-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  
  /* Results screen container - additional styling when visible */
  .results-screen[style*="display: block"],
  .results-screen.show-results {
    padding: 20px 0 !important;
    overflow-x: hidden !important;
  }
  
  .results-screen > .container {
    padding: 0 16px !important;
    max-width: 100% !important;
  }
  
  .results-screen .results-content {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .results-screen .results-header {
    margin-bottom: 20px !important;
    text-align: center !important;
  }
  
  .results-screen .results-title {
    font-size: 24px !important;
    margin-bottom: 12px !important;
  }
  
  .results-screen .results-subtitle {
    font-size: 14px !important;
    padding: 0 !important;
  }
  
  /* =============================================================================
     MOBILE FINAL SCREEN (Last Screen)
     ============================================================================= */
  
  .mobile-final-screen {
    display: block !important;
    padding: 40px 16px !important;
    background: transparent !important;
  }
  
  .mobile-final-content {
    text-align: center !important;
    margin-bottom: 40px !important;
  }
  
  .mobile-final-screen .footer-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
  
  .mobile-final-screen .footer-logo-img {
    width: 40px !important;
    height: auto !important;
  }
  
  .mobile-final-screen .footer-logo-text {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }
  
  .mobile-final-screen .footer-description {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 24px !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .mobile-final-screen .footer-social {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
  }
  
  .mobile-final-screen .social-link {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .mobile-final-screen .social-link:active {
    transform: scale(0.95) !important;
    background: rgba(255, 255, 255, 0.25) !important;
  }
  
  /* Form styling for final screen */
  .mobile-final-screen .search-form-container {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }
  
  /* Hide mobile final screen - use comparison-section instead */
  .mobile-final-screen {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  
  /* Hide comparison section on mobile - remove all space */
  .comparison-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .comparison-section .container {
    padding: 0 8px !important;
  }
  
  .comparison-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  
  /* Hide right column with form */
  .comparison-right {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* Show left column with table - shift left */
  .comparison-left {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: -8px !important;
    padding-left: 8px !important;
  }
  
  /* Proportional scaling of comparison table for mobile - keep original structure */
  .comparison-left .comparison-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  
  .comparison-left .comparison-subtitle {
    font-size: 11px !important;
    margin-bottom: 16px !important;
  }
  
  /* Scale cards layout proportionally - expand to full width */
  .comparison-left .cards-layout {
    gap: 8px !important;
    padding: 12px 8px !important;
    margin-top: 12px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    box-sizing: border-box !important;
  }
  
  /* Make columns equal width to fill screen */
  .comparison-left .gold-cards-container,
  .comparison-left .right-cards-container,
  .comparison-left .third-column-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
  }
  
  /* Logo positioning - center in first column */
  /* First column center = (width / 3) / 2 = width / 6, minus half logo width (39px) */
  .comparison-left .logo-above-stripe {
    top: 6px !important;
    left: calc(100% / 6 - 39px) !important;
    width: 78px !important;
  }
  
  .comparison-left .logo-image {
    height: 42px !important;
  }
  
  /* Yellow stripe - scale proportionally */
  .comparison-left .yellow-stripe {
    top: 39px !important;
    height: 3px !important;
  }
  
  /* Gold cards - scale proportionally */
  .comparison-left .gold-cards-container {
    gap: 8px !important;
  }
  
  .comparison-left .gold-card {
    height: 42px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
  
  .comparison-left .gold-card .card-icon {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }
  
  .comparison-left .gold-card .card-text {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
  
  /* Right cards - scale proportionally */
  .comparison-left .right-cards-container {
    gap: 8px !important;
    margin-top: 47px !important;
  }
  
  .comparison-left .right-card {
    width: 78px !important;
    height: 42px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
  }
  
  .comparison-left .right-card .card-icon {
    font-size: 16px !important;
  }
  
  .comparison-left .price-right-card {
    height: 59px !important;
  }
  
  .comparison-left .price-text {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
  
  /* Adjust card widths to fill columns */
  .comparison-left .gold-card {
    width: 100% !important;
    min-width: 100% !important;
  }
  
  .comparison-left .gold-cards-container::before {
    width: 100% !important;
    height: 39px !important;
  }
  
  .comparison-left .right-card {
    width: 100% !important;
    min-width: 100% !important;
  }
  
  .comparison-left .third-card {
    width: 100% !important;
    min-width: 100% !important;
  }
  
  /* Third column - center CarFax text in its column */
  /* Third column center = width / 3 * 2 + (width / 3) / 2 = width / 3 * 2 + width / 6 = width * 5/6, minus half logo width (39px) */
  .comparison-left .carfax-above-stripe {
    top: 13px !important;
    left: calc(100% * 5 / 6 - 39px) !important;
    width: 78px !important;
    font-size: 16px !important;
  }
  
  .comparison-left .third-cards-container {
    gap: 8px !important;
    margin-top: 47px !important;
  }
  
  .comparison-left .third-card {
    width: 78px !important;
    height: 42px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
  }
  
  .comparison-left .third-card .card-icon {
    font-size: 16px !important;
  }
  
  .comparison-left .price-third-card {
    height: 59px !important;
  }
  
  /* Ensure horizontal scroll if needed */
  .comparison-left {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  
  /* Force logo to move up 5px - highest specificity */
  html body section.hero-section div.hero-container div.mobile-hero-logo,
  html body .hero-section .hero-container .mobile-hero-logo,
  html body .hero-container .mobile-hero-logo {
    transform: translateY(-5px) !important;
  }
  
  /* Force hero-section to move up 5px - highest specificity */
  html body section.hero-section,
  html body .hero-section {
    margin-top: -5px !important;
  }
}

/* Hide mobile final screen on desktop */
@media (min-width: 1024px) {
  .mobile-final-screen {
    display: none !important;
  }
  
  /* Ensure results screen is visible on desktop (override mobile rules) */
  .results-screen {
    display: block !important;
    visibility: visible !important;
  }
  
  /* Only hide if explicitly set to none */
  .results-screen[style*="display: none"] {
    display: none !important;
  }
}

/* =============================================================================
   REPORT PAGE - MOBILE (50/50 split)
   ============================================================================= */

@media (max-width: 768px) {
  /* Report container: vertical layout, full height */
  .report-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    min-height: calc(100svh - var(--sat) - var(--sab)) !important;
    height: calc(100svh - var(--sat) - var(--sab)) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Report left: 50% of screen height, scrollable */
  .report-left {
    flex: 0 0 calc(50svh - var(--sat) / 2) !important;
    height: calc(50svh - var(--sat) / 2) !important;
    max-height: calc(50svh - var(--sat) / 2) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f0f0f0 !important;
    box-sizing: border-box !important;
  }

  /* Report right: 50% of screen height, scrollable */
  .report-right {
    flex: 0 0 calc(50svh - var(--sab) / 2) !important;
    height: calc(50svh - var(--sab) / 2) !important;
    max-height: calc(50svh - var(--sab) / 2) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: static !important;
    top: auto !important;
    background: #f0f0f0 !important;
    box-sizing: border-box !important;
  }

  /* Optimize content spacing for mobile */
  .report-left .vehicle-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  .report-left .vehicle-image img {
    width: 120px !important;
    max-width: 100% !important;
  }

  .report-left .vehicle-title {
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
  }

  .report-left .alerts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  .report-left .alert-card {
    padding: 12px !important;
    font-size: 0.85rem !important;
  }

  .report-left .specs-table {
    margin-top: 16px !important;
  }

  .report-left .specs-row {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .report-right .report-header {
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }

  .report-right .report-title {
    font-size: 1.3rem !important;
    margin-bottom: 8px !important;
  }
}

/* =============================================================================
   END MOBILE STYLES
   ============================================================================= */

