*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Arial,sans-serif;
  background:#020617;
  color:#fff;
  padding:30px 20px;
  line-height:1.5;
}

.container{
  max-width:1400px;
  margin:auto;
}

/* =====================================
   HERO
===================================== */

.hero{
  margin-bottom:35px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:50px;
  background:rgba(0,184,148,0.12);
  border:1px solid rgba(0,184,148,0.25);
  color:#5cf2cf;
  font-size:13px;
  margin-bottom:18px;
}

h1{
  font-size:3rem;
  line-height:1.05;
  margin-bottom:18px;
  font-weight:800;
}

.hero-text{
  max-width:850px;
  color:#94a3b8;
  font-size:18px;
}

/* =====================================
   SEARCH
===================================== */

.search-box{
  display:flex;
  gap:14px;
  margin-bottom:28px;
}

.search-box input{
  flex:1;
  height:62px;
  padding:0 22px;
  border:none;
  border-radius:16px;
  background:#fff;
  font-size:17px;
  outline:none;
}

.search-box button{
  min-width:220px;
  border:none;
  border-radius:16px;
  background:#00b894;
  color:#fff;
  cursor:pointer;
  font-size:17px;
  font-weight:600;
  transition:.25s;
}

.search-box button:hover{
  transform:translateY(-2px);
  opacity:.95;
}

/* =====================================
   FEATURES
===================================== */

.feature-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:35px;
}

.feature-item{
  padding:10px 16px;
  border-radius:40px;
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.06);
  color:#cbd5e1;
  font-size:14px;
}

/* =====================================
   LOADER
===================================== */

.loader-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:60px 0;
}

.loader{
  width:70px;
  height:70px;
  border:7px solid #1e293b;
  border-top:7px solid #00b894;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

.loader-wrapper p{
  font-size:18px;
  color:#cbd5e1;
}

.hidden{
  display:none !important;
}

@keyframes spin{

  100%{
    transform:rotate(360deg);
  }

}

/* =====================================
   SCORE CARDS
===================================== */

.score-cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-bottom:45px;
}

.card{
  background:linear-gradient(
    180deg,
    #0f172a,
    #111c34
  );
  border:1px solid rgba(255,255,255,0.05);
  border-radius:24px;
  padding:30px;
  transition:.25s;
}

.card:hover{
  transform:translateY(-3px);
}

.card h3{
  margin-bottom:16px;
  font-size:20px;
  color:#cbd5e1;
}

.score{
  font-size:68px;
  font-weight:800;
  line-height:1;
}

/* =====================================
   FILTER TABS
===================================== */

.issue-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:24px;
}

.issue-tab{
  border:none;
  background:#0f172a;
  color:#cbd5e1;
  padding:14px 18px;
  border-radius:14px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition:.25s;
  border:1px solid rgba(255,255,255,0.06);
}

.issue-tab:hover{
  transform:translateY(-2px);
  background:#172036;
}

.issue-tab.active{
  background:#00b894;
  color:#fff;
  border-color:#00b894;
  box-shadow:0 0 0 4px rgba(0,184,148,0.15);
}

/* =====================================
   ISSUES
===================================== */

.issues-wrapper{
  width:100%;
  overflow-x:auto;
}

/* =====================================
   TABLE
===================================== */

.issues-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  background:#0f172a;
  border-radius:20px;
  overflow:hidden;
}

.issues-table th{
  background:#111827;
  padding:22px;
  text-align:left;
  font-size:15px;
  color:#cbd5e1;
}

.issues-table td{
  border-top:1px solid rgba(255,255,255,0.06);
  padding:28px 24px;
  vertical-align:top;
}

.issue-type{
  display:inline-flex;
  align-items:center;
  background:#1e293b;
  padding:6px 12px;
  border-radius:40px;
  font-size:12px;
  margin-bottom:14px;
  color:#cbd5e1;
}

.issues-table h3{
  font-size:22px;
  margin-bottom:12px;
  line-height:1.3;
}

.issues-table p{
  color:#94a3b8;
  font-size:16px;
}

/* =====================================
   DETECTED PREVIEW
===================================== */

.detected-preview{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.compression-preview{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:180px;
  background:#050b25;
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.05);
  padding:20px;
}

/* =====================================
   IMAGE / VIDEO THUMBNAILS
===================================== */

.compression-thumb{
  width:150px;
  height:auto;
  max-height:240px;
  object-fit:contain;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  background:#fff;
  display:block;
}

.compression-video{
  width:150px;
  height:auto;
  max-height:240px;
  object-fit:contain;
  border-radius:16px;
  background:#000;
  border:1px solid rgba(255,255,255,0.08);
  display:block;
}

video{
  width:150px;
  height:auto;
  max-height:240px;
  object-fit:contain;
  border-radius:16px;
  background:#000;
  border:1px solid rgba(255,255,255,0.08);
}

/* =====================================
   HTML LOCATION
===================================== */

.html-location{
  background:#050b25;
  border:1px solid rgba(255,255,255,0.05);
  border-radius:16px;
  padding:14px;
}

.html-location-label{
  font-size:12px;
  color:#94a3b8;
  text-transform:uppercase;
  letter-spacing:.6px;
  margin-bottom:10px;
}

.html-location-code{
  color:#38bdf8;
  font-size:13px;
  line-height:1.7;
  word-break:break-word;
  font-family:monospace;
}

/* =====================================
   CODE
===================================== */

.code{
  background:#020617;
  padding:16px;
  border-radius:14px;
  margin-top:14px;
  overflow:auto;
  color:#4ade80;
  font-size:14px;
  line-height:1.7;
  border:1px solid rgba(255,255,255,0.05);
}

/* =====================================
   BUTTONS
===================================== */

.action-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:16px;
}

.copy-btn,
.download-image-btn,
.download-video-btn,
.download-meta-image-btn{
  border:none;
  border-radius:14px;
  padding:14px 20px;
  cursor:pointer;
  color:#fff;
  font-size:15px;
  font-weight:700;
  transition:.2s;
  margin-top:14px;
}

.copy-btn{
  background:#2563eb;
}

.download-image-btn{
  background:#059669;
}

.download-meta-image-btn{
  background:#7c3aed;
}

.download-video-btn{
  background:#d97706;
}

.copy-btn:hover,
.download-image-btn:hover,
.download-meta-image-btn:hover,
.download-video-btn:hover{
  transform:translateY(-2px);
  opacity:.92;
}

.copy-btn:disabled,
.download-image-btn:disabled,
.download-meta-image-btn:disabled,
.download-video-btn:disabled{
  opacity:.7;
  cursor:not-allowed;
}

/* =====================================
   SIZE BOX
===================================== */

.size-box{
  background:#02092a;
  border-radius:22px;
  padding:26px;
  border:1px solid rgba(255,255,255,0.05);
}

.size-label{
  font-size:14px;
  color:#94a3b8;
  margin-bottom:14px;
}

.size-value{
  font-size:32px;
  font-weight:800;
  line-height:1;
  margin-bottom:22px;
}

.size-sub-label{
  font-size:13px;
  color:#94a3b8;
  margin-top:10px;
  margin-bottom:6px;
}

.original-size{
  font-size:24px;
  font-weight:700;
  color:#ffffff;
  margin-bottom:8px;
}

.actual-size{
  font-size:20px;
  font-weight:700;
  color:#ffffff;
  margin-top:10px;
  line-height:1.4;
}

.actual-size-label{
  margin-top:16px;
}

.saving-text{
  color:#4ade80;
  font-weight:700;
  font-size:18px;
  line-height:1.5;
  margin-top:12px;
}

/* =====================================
   EMPTY STATE
===================================== */

.empty-state,
.no-issues{
  background:#0f172a;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:20px;
  padding:40px;
  text-align:center;
  color:#94a3b8;
  font-size:18px;
}

/* =====================================
   SCROLLBAR
===================================== */

::-webkit-scrollbar{
  width:8px;
  height:8px;
}

::-webkit-scrollbar-thumb{
  background:#334155;
  border-radius:20px;
}

.asset-preview-card{
  display:flex;
  align-items:flex-start;
  gap:16px;
  background:#050b25;
  border:1px solid rgba(255,255,255,0.05);
  border-radius:18px;
  padding:16px;
}

.asset-preview-content{
  flex:1;
  min-width:0;
}

.asset-html-label{
  font-size:13px;
  font-weight:700;
  color:#cbd5e1;
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.compression-thumb{
  width:90px;
  min-width:90px;
  height:auto;
  max-height:110px;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(255,255,255,0.08);
}

.compression-video{
  width:150px;
  min-width:150px;
  height:auto;
  max-height:120px;
  object-fit:contain;
  border-radius:12px;
  background:#000;
  border:1px solid rgba(255,255,255,0.08);
}

.compact-code{
  margin-top:0;
  font-size:12px;
  line-height:1.6;
  max-height:140px;
  overflow:auto;
  word-break:break-word;
}

/* =====================================
   MOBILE
===================================== */

@media(max-width:1100px){

  .score-cards{
    grid-template-columns:1fr 1fr;
  }

}

@media(max-width:768px){

  body{
    padding:20px 14px;
  }

  h1{
    font-size:42px;
  }

  .hero-text{
    font-size:16px;
  }

  .search-box{
    flex-direction:column;
  }

  .search-box input,
  .search-box button{
    width:100%;
    min-width:100%;
    height:56px;
  }

  .score-cards{
    grid-template-columns:1fr;
  }

  .issue-tabs{
    flex-direction:column;
  }

  .issue-tab{
    width:100%;
    text-align:center;
  }

  .issues-table{
    min-width:1100px;
  }

  .size-value{
    font-size:40px;
  }

}