/* TurboCheck UI — RTL + Vazirmatn */
:root{
  --bg: #0B1220;
  --bg2:#0F1A2E;
  --card:#0F172A;
  --muted:#9FB0D0;
  --text:#EAF2FF;
  --line:#1E2A44;
  --brand:#6EE7FF;
  --brand2:#A78BFA;
  --good:#22C55E;
  --warn:#F59E0B;
  --bad:#EF4444;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,
body{
  max-width:100%;
}
body{
  margin:0;
  font-family: "Vazirmatn", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(110,231,255,.10), transparent 55%),
              radial-gradient(900px 600px at 80% 10%, rgba(167,139,250,.14), transparent 55%),
              linear-gradient(180deg, var(--bg), #070B14 80%);
  color:var(--text);
  direction: rtl;
  overflow-x:hidden;
}
main,
.topbar,
.footer{
  max-width:100%;
  overflow-x:clip;
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1180px, 92%); margin:0 auto; }

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid rgba(30,42,68,.6);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
  position:relative;
}
.brand{
  display:flex; align-items:center; gap:10px;
}
.brand img{ width:150px; height:auto; }
.navlinks{
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
  color: rgba(234,242,255,.9);
}
.navlinks a{
  padding:8px 10px; border-radius:10px;
  color: rgba(234,242,255,.88);
}
.navlinks a:hover{ background: rgba(110,231,255,.08); color:var(--text); }

.navcta{
  display:flex; align-items:center; gap:10px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(30,42,68,.9);
  background: rgba(15,23,42,.85);
  color:var(--text);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  cursor:pointer;
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
.btn:hover{ transform: translateY(-1px); transition:.15s; }
.btn-primary{
  border:none;
  background: linear-gradient(90deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
  color:#051021;
  font-weight:800;
}
.btn-ghost{
  background: transparent;
  border:1px solid rgba(110,231,255,.35);
  color: rgba(234,242,255,.92);
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(30,42,68,.9);
  background: rgba(15,23,42,.7);
  color: rgba(234,242,255,.92);
  font-size:13px;
  min-width:0;
  overflow-wrap:anywhere;
}
.dot{ width:8px; height:8px; border-radius:50%; background:var(--good); box-shadow:0 0 0 4px rgba(34,197,94,.12); }

.hero{
  padding:46px 0 26px;
}
.heroGrid{
  display:grid; grid-template-columns: 1.15fr .85fr; gap:26px;
  align-items:center;
}
.hTitle{
  font-size: 44px;
  line-height: 1.15;
  margin: 14px 0 10px;
  letter-spacing: -.3px;
}
.hSub{
  color: rgba(159,176,208,.95);
  font-size: 17px;
  line-height: 1.9;
  margin:0 0 18px;
}
.heroActions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.heroMini{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:18px;
  color: rgba(159,176,208,.95);
}
.heroCard{
  border:1px solid rgba(30,42,68,.9);
  background: rgba(15,26,46,.72);
  border-radius:18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.heroCardTop{
  padding:16px 16px 0;
  display:flex; align-items:center; justify-content:space-between;
}
.heroCardBody{ padding:14px 16px 18px; }
.kpis{
  display:grid; grid-template-columns: repeat(3,1fr);
  gap:10px;
}
.kpi{
  border:1px solid rgba(30,42,68,.8);
  background: rgba(15,23,42,.78);
  border-radius:14px;
  padding:12px;
}
.kpi .n{ font-size:18px; font-weight:900; }
.kpi .l{ color: rgba(159,176,208,.9); font-size:13px; margin-top:2px; }

.section{ padding:34px 0; }
.sectionTitle{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
  margin-bottom:14px;
}
.sectionTitle h2{ margin:0; font-size:26px; }
.sectionTitle p{ margin:0; color: rgba(159,176,208,.95); line-height:1.9; }

.grid3{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;
}
.grid2{
  display:grid; grid-template-columns: repeat(2, 1fr); gap:14px;
}
.card{
  border:1px solid rgba(30,42,68,.9);
  background: rgba(15,23,42,.78);
  border-radius:18px;
  padding:16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
}
.card h3{ margin:0 0 8px; font-size:18px; }
.card p{ margin:0; color: rgba(159,176,208,.95); line-height:1.95; }
.icon{
  width:42px; height:42px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.18));
  border:1px solid rgba(110,231,255,.25);
  margin-bottom:10px;
}

.hr{
  height:1px; background: rgba(30,42,68,.7); margin:18px 0;
}

.cta{
  border:1px solid rgba(110,231,255,.22);
  background: linear-gradient(135deg, rgba(110,231,255,.10), rgba(167,139,250,.12));
  border-radius:20px;
  padding:18px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; flex-wrap:wrap;
}

.footer{
  border-top:1px solid rgba(30,42,68,.6);
  background: rgba(11,18,32,.55);
  padding:22px 0;
  margin-top:22px;
}
.footerGrid{
  display:grid; grid-template-columns: 1.2fr .8fr .8fr; gap:14px;
}
.small{ color: rgba(159,176,208,.92); font-size:14px; line-height:1.9; }
.flinks a{ display:block; padding:6px 0; color: rgba(234,242,255,.85); }
.flinks a:hover{ color: var(--brand); }

.pageHead{
  padding:26px 0 10px;
}
.pageHead h1{ margin:6px 0 6px; font-size:34px; }
.pageHead p{ margin:0; color: rgba(159,176,208,.95); line-height:1.95; }

.tableWrap{
  overflow:auto;
  border:1px solid rgba(30,42,68,.9);
  border-radius:18px;
  background: rgba(15,23,42,.72);
}
table{
  width:100%;
  border-collapse:collapse;
  min-width: 780px;
}
th, td{
  padding:12px 14px;
  border-bottom:1px solid rgba(30,42,68,.65);
  text-align:right;
  white-space:nowrap;
}
th{ color: rgba(234,242,255,.9); font-weight:800; font-size:13px; }
td{ color: rgba(234,242,255,.86); font-size:14px; }
.pill{
  padding:6px 10px; border-radius:999px; font-size:12px;
  border:1px solid rgba(30,42,68,.9);
  background: rgba(11,18,32,.55);
  display:inline-flex; gap:6px; align-items:center;
}
.pill.good{ border-color: rgba(34,197,94,.35); }
.pill.warn{ border-color: rgba(245,158,11,.35); }
.pill.bad{ border-color: rgba(239,68,68,.35); }
.dot.good{ background: var(--good); box-shadow:0 0 0 4px rgba(34,197,94,.12); }
.dot.warn{ background: var(--warn); box-shadow:0 0 0 4px rgba(245,158,11,.12); }
.dot.bad{ background: var(--bad); box-shadow:0 0 0 4px rgba(239,68,68,.12); }

.form{
  display:grid; gap:12px;
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(30,42,68,.9);
  background: rgba(11,18,32,.55);
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(110,231,255,.55);
  box-shadow: 0 0 0 4px rgba(110,231,255,.10);
}
textarea.input{ min-height: 120px; resize: vertical; }

.accordion{
  border:1px solid rgba(30,42,68,.9);
  background: rgba(15,23,42,.72);
  border-radius:18px;
  overflow:hidden;
}
.accItem{ border-bottom:1px solid rgba(30,42,68,.65); }
.accItem:last-child{ border-bottom:none; }
.accBtn{
  width:100%; text-align:right;
  background:transparent; border:none; color:var(--text);
  padding:14px 14px; cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
  font-family: inherit;
  font-size:15px;
}
.accPanel{
  display:none;
  padding:0 14px 14px;
  color: rgba(159,176,208,.95);
  line-height: 1.95;
}
.accItem.open .accPanel{ display:block; }
.chev{ opacity:.9; }

.notice{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(110,231,255,.25);
  background: rgba(110,231,255,.08);
  color: rgba(234,242,255,.92);
}

.homeHero{
  padding:58px 0 34px;
  border-bottom:1px solid rgba(30,42,68,.45);
}
.homeHeroInner{
  display:grid;
  grid-template-columns:minmax(0, 1.02fr) minmax(0, .98fr);
  gap:28px;
  align-items:center;
}
.homeHeroCopy h1{
  margin:14px 0 12px;
  font-size:clamp(34px, 5vw, 58px);
  line-height:1.16;
  letter-spacing:0;
  max-width:820px;
}
.homeHeroCopy,
.productPreview{
  min-width:0;
  max-width:100%;
}
.homeHeroCopy p{
  margin:0;
  color:rgba(218,228,246,.92);
  font-size:17px;
  line-height:2;
  max-width:760px;
}
.heroBadge{
  display:flex;
  background:rgba(14, 82, 82, .28);
  border-color:rgba(45,212,191,.24);
  max-width:100%;
  flex-wrap:wrap;
  line-height:1.7;
  white-space:normal;
  overflow-wrap:anywhere;
}
.homeHeroActions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}
.heroTrust{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  margin-top:24px;
  max-width:680px;
}
.heroTrust div{
  padding:13px 14px;
  border:1px solid rgba(50,70,105,.72);
  background:rgba(9,16,28,.56);
  border-radius:14px;
}
.heroTrust strong{
  display:block;
  font-size:20px;
  color:#CFFAFE;
}
.heroTrust span{
  display:block;
  margin-top:3px;
  color:rgba(159,176,208,.9);
  font-size:13px;
  line-height:1.7;
}
.productPreview{
  border:1px solid rgba(65,84,120,.9);
  background:
    linear-gradient(180deg, rgba(17,24,39,.96), rgba(8,13,24,.96));
  border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.38);
  overflow:hidden;
  min-height:520px;
}
.previewTop{
  height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  border-bottom:1px solid rgba(65,84,120,.66);
  background:rgba(255,255,255,.03);
  direction:ltr;
}
.previewTop div{
  display:flex;
  gap:7px;
}
.previewTop span{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#2DD4BF;
}
.previewTop span:nth-child(2){ background:#F59E0B; }
.previewTop span:nth-child(3){ background:#FB7185; }
.previewTop strong{
  font-size:13px;
  color:rgba(234,242,255,.82);
}
.previewBody{
  padding:16px;
  min-width:0;
}
.previewStats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}
.previewStat{
  min-height:88px;
  padding:13px;
  border:1px solid rgba(65,84,120,.72);
  border-radius:14px;
  background:rgba(15,23,42,.72);
}
.previewStat strong{
  display:block;
  font-size:28px;
  line-height:1;
}
.previewStat span{
  display:block;
  margin-top:8px;
  color:rgba(159,176,208,.95);
  font-size:13px;
}
.previewStat.up strong{ color:#4ADE80; }
.previewStat.warn strong{ color:#FBBF24; }
.previewStat.down strong{ color:#FB7185; }
.previewGroup{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(65,84,120,.72);
  border-radius:16px 16px 0 0;
  background:rgba(8,13,24,.72);
}
.previewGroup b{
  display:block;
  font-size:16px;
}
.previewGroup span{
  color:rgba(159,176,208,.92);
  font-size:13px;
  white-space:nowrap;
}
.previewRow{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 92px 82px;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border-inline:1px solid rgba(65,84,120,.72);
  border-bottom:1px solid rgba(65,84,120,.48);
  background:rgba(8,13,24,.46);
}
.previewRow:last-child{
  border-radius:0 0 16px 16px;
}
.previewRow span,
.previewRow small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.previewRow span{
  direction:ltr;
  text-align:left;
}
.previewRow small{
  color:rgba(159,176,208,.95);
}
.previewRow b{
  justify-self:end;
  padding:5px 8px;
  border-radius:999px;
  font-size:12px;
  white-space:nowrap;
}
.previewRow b.ok{
  color:#BBF7D0;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.24);
}
.previewRow b.warn{
  color:#FDE68A;
  background:rgba(245,158,11,.12);
  border:1px solid rgba(245,158,11,.24);
}
.monitorAccordion{
  display:grid;
  gap:12px;
  margin-top:14px;
}
.monitorGroup{
  border:1px solid rgba(65,84,120,.72);
  border-radius:16px;
  background:rgba(8,13,24,.72);
  overflow:hidden;
}
.monitorGroup.green{ border-color:rgba(34,197,94,.34); }
.monitorGroup.amber{ border-color:rgba(245,158,11,.34); }
.monitorGroupHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px;
}
.monitorGroupHead b{
  display:block;
  font-size:16px;
}
.monitorGroupHead span{
  display:block;
  margin-top:4px;
  color:rgba(159,176,208,.9);
  font-size:13px;
}
.monitorGroupHead em{
  font-style:normal;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(34,197,94,.13);
  color:#BBF7D0;
  border:1px solid rgba(34,197,94,.25);
  font-size:12px;
}
.monitorGroup.amber .monitorGroupHead em{
  background:rgba(245,158,11,.13);
  color:#FDE68A;
  border-color:rgba(245,158,11,.25);
}
.monitorRows{
  border-top:1px solid rgba(65,84,120,.48);
}
.monitorRows div{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 110px 92px;
  gap:10px;
  align-items:center;
  padding:11px 14px;
  border-bottom:1px solid rgba(65,84,120,.38);
}
.monitorRows div:last-child{ border-bottom:0; }
.monitorRows span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  direction:ltr;
  text-align:left;
}
.monitorRows small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  color:rgba(159,176,208,.95);
  white-space:nowrap;
}
.monitorRows b{
  justify-self:end;
  font-size:12px;
  padding:5px 8px;
  border-radius:999px;
  white-space:nowrap;
}
.monitorRows b.ok{
  color:#BBF7D0;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.24);
}
.alertRail{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}
.alertRail span{
  min-width:0;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(45,212,191,.24);
  color:#CFFAFE;
  background:rgba(13,148,136,.11);
  font-size:12px;
}
.homeBand{
  padding-top:42px;
}
.featureCard .icon{
  width:auto;
  min-width:48px;
  padding:0 10px;
  font-weight:900;
  color:#CFFAFE;
}
.splitSection{
  display:grid;
  grid-template-columns:minmax(0, .92fr) minmax(320px, .55fr);
  gap:18px;
  align-items:start;
}
.sectionTitle.stacked{
  display:block;
}
.sectionTitle.stacked p{
  margin-top:8px;
}
.channelList{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.channelList div{
  border:1px solid rgba(65,84,120,.74);
  background:rgba(15,23,42,.72);
  border-radius:16px;
  padding:14px;
}
.channelList strong{
  display:block;
  direction:ltr;
  text-align:left;
  color:#CFFAFE;
}
.channelList span{
  display:block;
  color:rgba(159,176,208,.95);
  line-height:1.8;
  margin-top:7px;
  font-size:14px;
}
.opsPanel{
  border:1px solid rgba(65,84,120,.8);
  background:rgba(8,13,24,.72);
  border-radius:18px;
  padding:14px;
}
.opsLine{
  display:grid;
  grid-template-columns:40px minmax(0, 1fr);
  gap:4px 10px;
  padding:13px 0;
  border-bottom:1px solid rgba(65,84,120,.48);
}
.opsLine:last-child{ border-bottom:0; }
.opsLine span{
  grid-row:span 2;
  width:36px;
  height:36px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0F766E;
  color:#ECFEFF;
  font-weight:900;
}
.opsLine b{
  font-size:15px;
}
.opsLine em{
  font-style:normal;
  color:rgba(159,176,208,.95);
  line-height:1.7;
}
.homeCta h3{
  margin:0 0 6px;
  font-size:22px;
}
.ctaActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.menuBtn{ display:none; }
.mobileActions{ display:none; }
@media (max-width: 980px){
  .heroGrid{ grid-template-columns: 1fr; }
  .homeHeroInner{
    display:block;
    overflow:hidden;
  }
  .homeHeroInner > *{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .homeHeroCopy h1{
    overflow-wrap:anywhere;
    font-size:clamp(28px, 7vw, 42px);
  }
  .homeHeroCopy p{
    overflow-wrap:break-word;
  }
  .productPreview{
    min-height:0;
    margin-top:26px;
    overflow:hidden;
  }
  .heroBadge{
    width:100%;
    display:flex;
    justify-content:flex-start;
    direction:ltr;
    text-align:left;
    word-break:break-word;
  }
  .homeHeroActions{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  }
  .homeHeroActions .btn{
    width:100%;
    box-shadow:none;
  }
  .heroTrust{
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  }
  .previewStats{
    grid-template-columns:repeat(auto-fit, minmax(130px, 1fr));
  }
  .splitSection{ grid-template-columns:1fr; }
  .channelList{ grid-template-columns:1fr; }
  .kpis{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .footerGrid{ grid-template-columns: 1fr; }
  .nav{ flex-wrap:wrap; }
  .brand{ min-width:0; flex:1; }
  .brand img{ width:132px; }
  .brand .badge{ display:none; }
  .menuBtn{
    display:inline-flex;
    min-width:44px;
    height:42px;
    padding:0 12px;
  }
  .navcta > a{ display:none; }
  .navlinks{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    border-top:1px solid rgba(30,42,68,.6);
    padding:10px 0 8px;
    gap:4px;
  }
  .topbar.nav-open .navlinks{
    display:flex;
  }
  .navlinks a{
    width:100%;
    padding:12px 10px;
  }
  .mobileActions{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    padding-top:8px;
    border-top:1px solid rgba(30,42,68,.45);
    margin-top:4px;
  }
  .mobileActions .btn{
    width:100%;
    box-shadow:none;
  }
}

@media (max-width: 480px){
  .container{ width:calc(100% - 32px); }
  .brand img{ width:118px; }
  .nav{ gap:10px; }
  .btn{ padding:9px 12px; }
  .homeHero{ padding-top:34px; }
  .homeHeroCopy,
  .homeHeroCopy h1,
  .homeHeroCopy p,
  .productPreview{
    width:100%;
    max-width:100%;
  }
  .homeHeroCopy h1{
    font-size:30px;
    overflow-wrap:anywhere;
  }
  .homeHeroCopy p{ font-size:15px; }
  .heroBadge{ font-size:12px; }
  .heroTrust{ grid-template-columns:1fr; }
  .previewStats{ grid-template-columns:1fr; }
  .monitorGroupHead{ align-items:flex-start; flex-direction:column; }
  .monitorRows div{
    grid-template-columns:1fr;
    gap:6px;
  }
  .monitorRows b{ justify-self:start; }
  .previewGroup{
    align-items:flex-start;
    flex-direction:column;
  }
  .previewRow{
    grid-template-columns:1fr;
    gap:6px;
  }
  .previewRow b{
    justify-self:start;
  }
  .homeHeroActions .btn,
  .ctaActions .btn{ width:100%; }
}
