:root{
  --primary:#006FA8;
  --primary2:#00B7FF;
  --dark:#071827;
  --card:rgba(255,255,255,.92);
  --text:#102033;
  --muted:#667085;
  --green:#12B76A;
  --red:#F04438;
  --orange:#F79009;
  --blue:#2E90FA;
  --shadow:0 20px 60px rgba(7,24,39,.16);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(0,183,255,.22), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(0,111,168,.26), transparent 28%),
    linear-gradient(135deg,#f4fbff 0%,#eef8ff 38%,#ffffff 100%);
  overflow-x:hidden;
}

.bg-orb{
  position:fixed;
  width:280px;
  height:280px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(0,183,255,.28),rgba(0,111,168,.05));
  filter:blur(4px);
  z-index:-1;
  animation:floatOrb 9s ease-in-out infinite;
}

.orb-1{left:-80px;top:160px}
.orb-2{right:-100px;bottom:90px;animation-delay:1.5s}

@keyframes floatOrb{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-28px)}
}

.wrap{
  width:min(1440px,94%);
  margin:auto;
}

header{
  padding:24px 0 10px;
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(18px);
  background:rgba(244,251,255,.76);
  border-bottom:1px solid rgba(0,111,168,.08);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo-box{
  width:58px;
  height:58px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  display:grid;
  place-items:center;
  color:#fff;
  box-shadow:0 18px 35px rgba(0,111,168,.28);
  overflow:hidden;
  flex-shrink:0;
}

.logo-box img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
  padding:5px;
}

.logo-box span{
  display:none;
  font-size:22px;
  font-weight:900;
}

.brand h1{
  font-size:22px;
  line-height:1.1;
  color:#061c30;
}

.brand p{
  color:var(--muted);
  font-size:13px;
  margin-top:4px;
}

.nav-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

button,.btn{
  border:0;
  outline:0;
  cursor:pointer;
  border-radius:999px;
  padding:12px 17px;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:.25s ease;
  white-space:nowrap;
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--primary2));
  box-shadow:0 13px 28px rgba(0,111,168,.24);
}

.btn-primary:hover{transform:translateY(-2px)}

.btn-soft{
  background:rgba(0,111,168,.1);
  color:var(--primary);
  border:1px solid rgba(0,111,168,.15);
}

.hero{
  padding:42px 0 28px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:26px;
  align-items:stretch;
}

.hero-card{
  background:linear-gradient(135deg,rgba(7,24,39,.97),rgba(0,111,168,.88));
  color:#fff;
  border-radius:34px;
  padding:38px;
  position:relative;
  overflow:hidden;
  min-height:330px;
  box-shadow:var(--shadow);
}

.hero-card:before{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  border-radius:50%;
  right:-110px;
  top:-140px;
  background:radial-gradient(circle,rgba(255,255,255,.24),transparent 65%);
}

.hero-card:after{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  left:50px;
  bottom:-120px;
  background:radial-gradient(circle,rgba(0,183,255,.38),transparent 68%);
}

.hero-card > *{position:relative;z-index:1}

.badge{
  width:max-content;
  max-width:100%;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  padding:9px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  margin-bottom:18px;
}

.hero h2{
  font-size:clamp(30px,4.2vw,58px);
  line-height:1.02;
  letter-spacing:-1.8px;
  margin-bottom:16px;
}

.hero p{
  max-width:760px;
  font-size:16px;
  line-height:1.7;
  color:rgba(255,255,255,.82);
}

.hero-mini{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-top:26px;
}

.mini{
  padding:17px;
  border-radius:20px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.16);
}

.mini strong{
  display:block;
  font-size:22px;
  margin-bottom:4px;
}

.mini span{
  font-size:12px;
  color:rgba(255,255,255,.75);
  font-weight:700;
}

.panel{
  background:rgba(255,255,255,.84);
  border:1px solid rgba(0,111,168,.1);
  border-radius:34px;
  padding:24px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
}

.panel h3{
  font-size:20px;
  margin-bottom:8px;
  color:#061c30;
}

.panel .help{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  margin-bottom:18px;
}

.form-grid{
  display:grid;
  gap:12px;
}

input,textarea{
  width:100%;
  border:1px solid rgba(0,111,168,.15);
  background:#fff;
  padding:14px 15px;
  border-radius:16px;
  outline:0;
  font-size:14px;
  color:#172033;
  transition:.2s;
}

input:focus,textarea:focus{
  border-color:var(--primary2);
  box-shadow:0 0 0 4px rgba(0,183,255,.12);
}

textarea{min-height:82px;resize:vertical}

.row2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
  margin:8px 0 24px;
}

.stat{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,111,168,.09);
  border-radius:24px;
  padding:20px;
  box-shadow:0 16px 36px rgba(7,24,39,.08);
  position:relative;
  overflow:hidden;
}

.stat:after{
  content:"";
  position:absolute;
  inset:auto -35px -50px auto;
  width:110px;
  height:110px;
  border-radius:50%;
  background:rgba(0,183,255,.13);
}

.stat span{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.stat strong{
  display:block;
  font-size:32px;
  margin-top:8px;
  color:#061c30;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin:18px 0;
}

.section-head h2{
  font-size:30px;
  color:#061c30;
}

.section-head p{
  color:var(--muted);
  font-size:14px;
  margin-top:6px;
}

.searchbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.searchbar input{
  width:280px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  padding-bottom:45px;
}

.site-card{
  background:var(--card);
  border:1px solid rgba(0,111,168,.1);
  border-radius:28px;
  box-shadow:0 18px 45px rgba(7,24,39,.09);
  padding:20px;
  position:relative;
  overflow:hidden;
  transition:.28s ease;
}

.site-card:hover{
  transform:translateY(-5px);
  box-shadow:0 28px 60px rgba(7,24,39,.14);
}

.site-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:5px;
  background:linear-gradient(90deg,var(--primary),var(--primary2));
}

.site-top{
  display:flex;
  gap:13px;
  align-items:flex-start;
  margin-bottom:16px;
}

.favicon{
  width:46px;
  height:46px;
  border-radius:15px;
  background:rgba(0,111,168,.08);
  display:grid;
  place-items:center;
  overflow:hidden;
  flex-shrink:0;
}

.favicon img{
  width:24px;
  height:24px;
  object-fit:contain;
}

.site-title{
  min-width:0;
  flex:1;
}

.site-title h3{
  font-size:18px;
  line-height:1.2;
  margin-bottom:5px;
  color:#061c30;
}

.site-title a{
  color:var(--muted);
  text-decoration:none;
  font-size:12.5px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:block;
}

.status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:currentColor;
  opacity:.85;
}

.online{color:var(--green);background:rgba(18,183,106,.1)}
.offline{color:var(--red);background:rgba(240,68,56,.1)}
.checking{color:var(--blue);background:rgba(46,144,250,.1)}

.metrics{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin:14px 0;
}

.metric{
  border-radius:17px;
  padding:13px;
  background:rgba(0,111,168,.055);
  border:1px solid rgba(0,111,168,.07);
}

.metric small{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  margin-bottom:5px;
  text-transform:uppercase;
  letter-spacing:.4px;
}

.metric strong{
  font-size:15px;
  color:#061c30;
}

.expiry{
  display:grid;
  gap:8px;
  margin:12px 0 16px;
}

.expiry-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:11px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(0,111,168,.08);
  font-size:13px;
}

.expiry-line b{color:#061c30}
.expiry-line span{color:var(--muted);font-weight:800}

.warn-green{color:var(--green)!important}
.warn-orange{color:var(--orange)!important}
.warn-red{color:var(--red)!important}

.card-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

.small-btn{
  padding:9px 12px;
  font-size:12px;
  border-radius:999px;
  background:rgba(0,111,168,.08);
  color:var(--primary);
  border:1px solid rgba(0,111,168,.09);
  text-decoration:none;
  font-weight:900;
  cursor:pointer;
}

.small-danger{color:var(--red);background:rgba(240,68,56,.08)}

.footer-note{
  margin:0 0 34px;
  border-radius:28px;
  background:linear-gradient(135deg,#071827,#0b4060);
  color:#fff;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  flex-wrap:wrap;
  box-shadow:var(--shadow);
}

.footer-note p{
  color:rgba(255,255,255,.78);
  line-height:1.6;
  font-size:14px;
  margin-top:4px;
}

.toast{
  position:fixed;
  right:18px;
  bottom:18px;
  background:#061c30;
  color:#fff;
  padding:14px 16px;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(7,24,39,.24);
  font-weight:800;
  font-size:13px;
  opacity:0;
  transform:translateY(20px);
  pointer-events:none;
  transition:.3s;
  z-index:50;
}

.toast.show{
  opacity:1;
  transform:translateY(0);
}

.edit-box{
  display:none;
  margin-top:12px;
  padding:13px;
  border-radius:18px;
  background:rgba(0,111,168,.05);
  border:1px dashed rgba(0,111,168,.2);
}

.edit-box.show{display:block}

.note{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(247,144,9,.08);
  border:1px solid rgba(247,144,9,.16);
  color:#7a4b05;
  font-size:13px;
  line-height:1.55;
  margin-top:14px;
  font-weight:700;
}

@media(max-width:1100px){
  .hero{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(3,1fr)}
  .grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:720px){
  header{position:relative}
  .nav,.section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .brand h1{font-size:18px}
  .brand p{font-size:12px}
  .nav-actions,.searchbar{width:100%;justify-content:flex-start}
  .hero-card{padding:25px;border-radius:26px}
  .hero-mini,.row2,.stats,.grid,.metrics{
    grid-template-columns:1fr;
  }
  .searchbar input{width:100%}
  .panel{padding:18px;border-radius:26px}
  .section-head h2{font-size:24px}
  button,.btn{width:100%}
  .small-btn{width:auto}
}


.auto-check-text{
  margin-top:16px;
  font-size:13px!important;
  color:rgba(255,255,255,.78)!important;
  font-weight:800;
}

@media(max-width:1250px){
  .stats{grid-template-columns:repeat(3,1fr)}
}


/* ===== Final V2 Premium Dashboard Polish ===== */
body{
  background:
    radial-gradient(circle at 8% 10%, rgba(0,183,255,.30), transparent 25%),
    radial-gradient(circle at 92% 20%, rgba(0,111,168,.22), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(0,183,255,.16), transparent 35%),
    linear-gradient(135deg,#edfaff 0%,#f7fcff 48%,#ffffff 100%)!important;
}

header{
  padding:18px 0 14px!important;
  background:rgba(239,250,255,.82)!important;
  box-shadow:0 18px 45px rgba(7,24,39,.08);
}

.logo-box{
  width:76px!important;
  height:76px!important;
  border-radius:23px!important;
}

.logo-box img{
  padding:3px!important;
}

.brand h1{
  font-size:26px!important;
  letter-spacing:-.6px;
}

.brand p{
  font-size:14px!important;
  font-weight:650;
}

.live-counter-box{
  min-width:142px;
  height:56px;
  border-radius:999px;
  padding:8px 15px 8px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#06304a;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(199,237,255,.78));
  border:1px solid rgba(0,111,168,.16);
  box-shadow:0 12px 28px rgba(0,111,168,.12);
}

.live-counter-box b{
  display:block;
  font-size:20px;
  line-height:1;
  color:#006FA8;
}

.live-counter-box small{
  display:block;
  font-size:11px;
  font-weight:900;
  color:#667085;
  margin-top:3px;
  white-space:nowrap;
}

.pulse-dot{
  width:14px;
  height:14px;
  border-radius:50%;
  background:#12B76A;
  box-shadow:0 0 0 0 rgba(18,183,106,.5);
  animation:livePulse 1.4s infinite;
  flex-shrink:0;
}

@keyframes livePulse{
  0%{box-shadow:0 0 0 0 rgba(18,183,106,.55)}
  70%{box-shadow:0 0 0 13px rgba(18,183,106,0)}
  100%{box-shadow:0 0 0 0 rgba(18,183,106,0)}
}

.hero{
  padding-top:46px!important;
}

.hero-card{
  border-radius:38px!important;
  background:
    linear-gradient(135deg,rgba(4,22,38,.98),rgba(0,111,168,.86)),
    radial-gradient(circle at 88% 18%,rgba(0,183,255,.45),transparent 28%)!important;
  border:1px solid rgba(255,255,255,.12);
}

.hero-card h2{
  text-shadow:0 14px 35px rgba(0,0,0,.22);
}

.panel{
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(255,255,255,.75)!important;
  box-shadow:0 30px 75px rgba(7,24,39,.13)!important;
}

.stats{
  margin-top:18px!important;
}

.stat{
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(242,251,255,.92))!important;
  border:1px solid rgba(255,255,255,.8)!important;
}

.site-card{
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(248,253,255,.96))!important;
  border:1px solid rgba(255,255,255,.82)!important;
}

.site-card:before{
  height:6px!important;
}

.btn-soft{
  background:linear-gradient(135deg,rgba(224,246,255,.9),rgba(198,236,252,.78))!important;
}

.btn-primary{
  background:linear-gradient(135deg,#0078B8,#00B7FF)!important;
}

.auto-check-text{
  display:inline-flex;
  margin-top:18px!important;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.18);
}

@media(max-width:720px){
  .logo-box{
    width:62px!important;
    height:62px!important;
  }

  .brand h1{
    font-size:20px!important;
  }

  .live-counter-box{
    width:100%;
    justify-content:center;
  }
}


/* ===== V3 Proper Auto Count Button ===== */
.auto-check-btn{
  height:62px!important;
  min-width:198px!important;
  padding:8px 16px 8px 9px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  background:linear-gradient(135deg,#ffffff 0%,#d8f4ff 100%)!important;
  border:1px solid rgba(0,111,168,.22)!important;
  box-shadow:0 16px 35px rgba(0,111,168,.16)!important;
  color:#06304a!important;
  position:relative!important;
  overflow:hidden!important;
}
.auto-ring{
  width:46px!important;
  height:46px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  flex-shrink:0!important;
  background:conic-gradient(#12B76A var(--progress, 100%), rgba(18,183,106,.16) 0)!important;
  position:relative!important;
  z-index:1!important;
  box-shadow:0 0 0 6px rgba(18,183,106,.08)!important;
}
.auto-ring:after{
  content:""!important;
  position:absolute!important;
  inset:5px!important;
  border-radius:50%!important;
  background:#ffffff!important;
  z-index:-1!important;
}
.auto-ring b{
  font-size:20px!important;
  color:#006FA8!important;
  font-weight:950!important;
}
.auto-copy{position:relative!important;z-index:1!important;display:flex!important;flex-direction:column!important;line-height:1.05!important}
.auto-copy strong{font-size:14px!important;font-weight:950!important;color:#06304a!important;white-space:nowrap!important}
.auto-copy small{margin-top:5px!important;font-size:11px!important;font-weight:850!important;color:#667085!important;white-space:nowrap!important}
.auto-copy em{color:#006FA8!important;font-style:normal!important;font-weight:950!important}
.auto-check-btn.checking-now .auto-ring{animation:ringBeat .7s ease-in-out infinite alternate!important}
@keyframes ringBeat{from{transform:scale(1)}to{transform:scale(1.08)}}


/* ===== V4: 10 Sec All Website Check + Landscape Logo + Mobile Fix ===== */
.landscape-brand{
  display:flex!important;
  align-items:center!important;
}

.logo-landscape{
  width:250px!important;
  height:78px!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
}

.logo-landscape img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:left center!important;
  padding:0!important;
  background:transparent!important;
}

.status-summary-btn{
  min-height:58px!important;
  padding:8px 12px!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  background:linear-gradient(135deg,#ffffff,#e6f8ff)!important;
  border:1px solid rgba(0,111,168,.18)!important;
  box-shadow:0 14px 30px rgba(0,111,168,.12)!important;
}

.status-badge{
  height:38px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  font-size:12px!important;
  font-weight:950!important;
  white-space:nowrap!important;
}

.status-badge b{
  font-size:17px!important;
}

.online-badge{
  color:#027A48!important;
  background:rgba(18,183,106,.12)!important;
  border:1px solid rgba(18,183,106,.20)!important;
}

.offline-badge{
  color:#B42318!important;
  background:rgba(240,68,56,.11)!important;
  border:1px solid rgba(240,68,56,.18)!important;
}

.hero{
  grid-template-columns:1.05fr .95fr!important;
}

.hero-card{
  min-height:360px!important;
}

.panel{
  min-height:360px!important;
}

.grid{
  align-items:stretch!important;
}

.site-card{
  min-height:100%!important;
}

@media(max-width:1180px){
  .nav{
    flex-direction:column!important;
    align-items:flex-start!important;
  }

  .nav-actions{
    width:100%!important;
    justify-content:flex-start!important;
  }

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

  .stats{
    grid-template-columns:repeat(3,1fr)!important;
  }
}

@media(max-width:820px){
  .wrap{
    width:min(100% - 24px, 1440px)!important;
  }

  .logo-landscape{
    width:220px!important;
    height:66px!important;
  }

  .nav-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }

  .status-summary-btn,
  .auto-check-btn{
    grid-column:1 / -1!important;
    width:100%!important;
    justify-content:center!important;
  }

  .nav-actions button{
    width:100%!important;
  }

  .stats{
    grid-template-columns:repeat(2,1fr)!important;
  }

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

  .searchbar{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .searchbar input,
  .searchbar button{
    width:100%!important;
  }

  .hero-card,
  .panel{
    padding:22px!important;
  }

  .hero h2{
    font-size:34px!important;
    line-height:1.08!important;
  }
}

@media(max-width:520px){
  .logo-landscape{
    width:190px!important;
    height:58px!important;
  }

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

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

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

  .status-summary-btn{
    flex-direction:column!important;
    border-radius:24px!important;
  }

  .status-badge{
    width:100%!important;
    justify-content:center!important;
  }

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