/* WebHostLab Data — Complete Mobile Responsive Lock */
*,
*::before,
*::after{
  box-sizing:border-box;
}

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

img,
svg,
canvas,
video,
iframe{
  max-width:100%;
  height:auto;
}

table{
  max-width:100%;
}

body{
  -webkit-text-size-adjust:100%;
}

/* Universal layout protection */
.wrap,
.container,
.section,
.hero,
.hero-inner,
.hero-grid,
.grid,
.cards,
.features,
.feature-grid,
.tool-grid,
.chart-grid,
.report-grid,
.dashboard-grid,
.enterprise-grid,
.sample-grid,
.preview-grid,
.ai-grid{
  max-width:100% !important;
}

/* Header / Navigation */
header,
.site-header,
.topbar,
.navbar,
.main-header{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden;
}

.whl-mobile-header{
  display:none;
}

.whl-mobile-menu-btn{
  display:none;
  background:#ff7900;
  color:#fff;
  border:0;
  border-radius:12px;
  padding:10px 14px;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
}

.whl-mobile-panel{
  display:none;
}

/* Desktop should remain normal */
@media(min-width:901px){
  .whl-desktop-nav{
    display:flex !important;
  }
}

/* Mobile full rebuild */
@media(max-width:900px){

  body{
    width:100% !important;
    overflow-x:hidden !important;
    background:#eef2f7;
  }

  header{
    position:relative !important;
    padding:18px 18px !important;
    min-height:auto !important;
  }

  .whl-mobile-header{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    width:100%;
  }

  .whl-mobile-brand{
    font-size:30px;
    line-height:1.05;
    font-weight:900;
    color:#fff;
    text-decoration:none;
  }

  .whl-mobile-brand span{
    color:#ff7900;
  }

  .whl-mobile-menu-btn{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    min-width:48px;
    min-height:44px;
  }

  .whl-desktop-nav,
  header nav,
  .nav,
  .navbar nav{
    display:none !important;
  }

  .whl-mobile-panel{
    display:none;
    width:100%;
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.15);
  }

  .whl-mobile-panel.active{
    display:grid !important;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .whl-mobile-panel a{
    display:block;
    background:rgba(255,255,255,.08);
    color:#fff;
    text-decoration:none;
    padding:12px 12px;
    border-radius:12px;
    font-weight:900;
    font-size:15px;
  }

  .whl-mobile-panel a:hover{
    background:#ff7900;
  }

  /* Main content */
  main,
  section,
  .wrap,
  .container{
    width:100% !important;
    max-width:100% !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .hero,
  .top,
  .hero-section{
    width:100% !important;
    max-width:100% !important;
    padding:28px 16px !important;
    overflow:hidden !important;
  }

  h1{
    font-size:34px !important;
    line-height:1.12 !important;
    word-break:normal;
    overflow-wrap:break-word;
  }

  h2{
    font-size:28px !important;
    line-height:1.18 !important;
  }

  h3{
    font-size:22px !important;
    line-height:1.25 !important;
  }

  p,
  li,
  td,
  th,
  label{
    font-size:16px !important;
    line-height:1.65 !important;
  }

  /* Grids become mobile-safe */
  .grid,
  .cards,
  .features,
  .feature-grid,
  .tool-grid,
  .chart-grid,
  .report-grid,
  .dashboard-grid,
  .enterprise-grid,
  .sample-grid,
  .preview-grid,
  .ai-grid,
  .hero-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
    width:100% !important;
  }

  /* Format blocks like CSV/XLSX/JSON/BIG should be 2 columns */
  .format-grid,
  .hero-format-grid,
  .file-type-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:14px !important;
    width:100% !important;
  }

  .format-grid > *,
  .hero-format-grid > *,
  .file-type-grid > *{
    min-width:0 !important;
    width:100% !important;
  }

  /* Cards */
  .card,
  .feature,
  .tool-card,
  .metric-card,
  .chart-box,
  .upload-card,
  .report-card,
  .dashboard-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:24px !important;
    margin-left:0 !important;
    margin-right:0 !important;
    border-radius:22px !important;
    overflow:hidden !important;
  }

  .feature{
    min-height:auto !important;
  }

  /* Buttons */
  .btn,
  button,
  input[type="submit"]{
    max-width:100%;
    white-space:normal !important;
    text-align:center;
    line-height:1.25 !important;
    border-radius:14px !important;
  }

  .card .btn,
  .feature .btn,
  .tool-card .btn{
    width:auto;
    min-width:190px;
    display:inline-flex;
    justify-content:center;
    align-items:center;
  }

  /* Upload forms */
  input[type="file"],
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select{
    width:100% !important;
    max-width:100% !important;
    font-size:16px !important;
  }

  form{
    width:100%;
    max-width:100%;
  }

  /* Upload/drop boxes */
  .drop,
  .dropzone,
  .upload-box,
  .upload-zone{
    width:100% !important;
    max-width:100% !important;
    padding:24px 16px !important;
    min-height:auto !important;
  }

  /* Hero dark side card fix */
  .hero > *,
  .hero-inner > *,
  .hero-grid > *{
    min-width:0 !important;
  }

  /* Tables/charts scroll safely */
  .table-wrap,
  .chart-box,
  .report-table,
  .preview-table{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  table{
    min-width:620px;
  }

  .chart-img{
    width:100% !important;
    height:auto !important;
  }

  /* Large metric numbers */
  .metric{
    font-size:32px !important;
  }

  /* Footer */
  footer{
    padding:28px 16px !important;
    text-align:center;
  }
}

@media(max-width:480px){
  .whl-mobile-brand{
    font-size:28px;
  }

  .whl-mobile-panel{
    grid-template-columns:1fr !important;
  }

  h1{
    font-size:30px !important;
  }

  h2{
    font-size:25px !important;
  }

  .format-grid,
  .hero-format-grid,
  .file-type-grid{
    grid-template-columns:1fr 1fr !important;
  }

  .card,
  .feature,
  .tool-card{
    padding:22px !important;
  }

  .btn,
  button,
  input[type="submit"]{
    width:100%;
  }

  .card .btn,
  .feature .btn,
  .tool-card .btn{
    width:100%;
    min-width:0;
  }
}

/* Fix cards accidentally appearing after footer / mobile section spacing */
.whl-featured-ai-section{
  max-width:1200px;
  margin:40px auto;
  padding:0 24px;
}
.whl-featured-ai-section .grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}
@media(max-width:900px){
  .whl-featured-ai-section{
    margin:24px auto;
    padding:0 16px;
  }
  footer + .card,
  footer + .feature,
  footer ~ .card,
  footer ~ .feature{
    display:none !important;
  }
}
