@font-face{font-family:IRANSansWeb;src:url("fonts/IRANSansWeb.woff2") format("woff2"),url("fonts/IRANSansWeb.woff") format("woff");font-weight:100 900;font-style:normal;font-display:swap}
*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;font-family:IRANSansWeb,Tahoma,Arial,sans-serif;background:#07111c;color:#eaf2fb;line-height:1.8}a{color:#8fc7ff;text-decoration:none}.topbar{height:72px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1e3348;background:#0b1724;position:sticky;top:0;z-index:5}.topbar div{display:flex;gap:12px;align-items:center}.topbar small{color:#7890a8}.dashboard-shell{width:min(1320px,94vw);margin:32px auto 80px;display:grid;gap:24px}.hero,.card{border:1px solid #22384e;background:linear-gradient(145deg,#0e1b2a,#0b1622);border-radius:20px}.hero{padding:32px;display:flex;justify-content:space-between;gap:28px;align-items:center}.hero h1,.card h2{margin:4px 0 6px}.hero p,.muted,.card p{color:#9cb0c5}.eyebrow{display:inline-flex;padding:5px 10px;border-radius:999px;background:#102b44;color:#67b7ff;font-weight:700}.hero-stat{min-width:230px;padding:20px;border:1px solid #24415e;border-radius:16px;background:#0a1521;display:grid;gap:2px}.hero-stat b{font-size:32px;color:#66b8ff}.hero-stat small{color:#829ab2}.grid-2{display:grid;grid-template-columns:1.4fr .8fr;gap:24px}.card{padding:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{display:grid;gap:7px;font-weight:700;color:#c8d7e7}.form-grid label small{font-weight:400;color:#7189a0}.wide{grid-column:1/-1}input,textarea,select,button{font-family:IRANSansWeb,Tahoma,Arial,sans-serif}input,textarea{width:100%;border:1px solid #29435c;background:#091521;color:#eef6ff;border-radius:10px;padding:12px 14px;font:inherit;outline:none}input:focus,textarea:focus{border-color:#329cff;box-shadow:0 0 0 3px #218cf229}.file-field{padding:14px;border:1px dashed #31516f;border-radius:12px;background:#0a1724}.primary,button,.actions a{border:1px solid #326da5;background:#12304b;color:#dff1ff;border-radius:9px;padding:10px 14px;font:inherit;cursor:pointer}.primary{background:linear-gradient(135deg,#1688eb,#22a6e5);border:0;color:white;font-weight:800}.danger{border-color:#824257;background:#361b25;color:#ffb7c7}.alert{padding:14px 18px;border-radius:12px;border:1px solid #2d6c4c;background:#0d3022}.alert.error{border-color:#7d3b4b;background:#35151d}.alert.warning{border-color:#76602a;background:#302813}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:22px 0}.check{padding:10px 12px;border:1px solid #284058;border-radius:10px;display:flex;gap:10px;align-items:center}.check.ok b{color:#49d88d}.check.bad b{color:#ff7f98}.install-shell,.login-shell{min-height:100vh;display:grid;place-items:center;padding:30px}.install-card,.login-card{width:min(760px,96vw);padding:34px;border:1px solid #22384e;background:#0d1927;border-radius:22px;box-shadow:0 30px 80px #0007}.login-card{width:min(480px,96vw)}.info-card dl{display:grid;gap:0}.info-card dl div{padding:14px 0;border-bottom:1px solid #1d3348}.info-card dt{color:#7c95ad}.info-card dd{margin:4px 0 0;word-break:break-all}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.pill,.new{display:inline-flex;padding:4px 9px;border-radius:999px;background:#123650;color:#81c7ff;font-size:12px}.new{margin-inline-start:7px;background:#0f4d32;color:#7ef0ac}.table-wrap{overflow:auto;border:1px solid #20364b;border-radius:12px;margin-top:16px}table{border-collapse:collapse;width:100%;min-width:920px}th,td{padding:14px;border-bottom:1px solid #1e3449;text-align:right;vertical-align:top}th{background:#0a1622;color:#a9bfd4}td small{display:block;color:#7790a7;max-width:380px;white-space:normal}code{font-family:IRANSansWeb,Tahoma,Arial,sans-serif;color:#9ecfff}.actions{display:flex;gap:8px;align-items:center}.actions form{margin:0}.empty{text-align:center;color:#8197ad;padding:30px}@media(max-width:900px){.grid-2{grid-template-columns:1fr}.hero{display:grid}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.check-grid{grid-template-columns:1fr}}

/* v1.1.0 - admin profile, database installer, cyber landing */
.top-actions{display:flex;align-items:center;gap:10px}.top-actions a{display:inline-flex;align-items:center;min-height:38px;padding:0 13px;border:1px solid #2a4560;border-radius:9px;background:#0d1c2a;color:#cfe6fb}.top-actions a:hover{border-color:#3c84bc;color:#fff}.admin-chip{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border:1px solid #21435c;border-radius:9px;color:#91b5d3;background:#091622}.form-section{padding:13px 14px;border:1px solid #28445d;border-radius:12px;background:#091725;display:grid;gap:3px}.form-section b{color:#eaf5ff}.form-section span{color:#7894ad;font-size:13px}.profile-shell{max-width:920px}.profile-card{padding:30px}.profile-head{display:flex;align-items:center;gap:18px;margin-bottom:26px;padding-bottom:22px;border-bottom:1px solid #21384d}.profile-head h1{margin:5px 0}.profile-head p{margin:0;color:#8da6bc}.profile-avatar{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(135deg,#1688eb,#31d0d8);color:#fff;font-size:30px;font-weight:900;box-shadow:0 16px 40px #0b7fa54f}

.cyber-home{min-height:100vh;overflow:hidden;background:#020807;color:#8dffc4;font-family:IRANSansWeb,Tahoma,Arial,sans-serif;position:relative}.cyber-home:before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 50% 46%,rgba(0,255,137,.11),transparent 34%),radial-gradient(circle at 50% 50%,rgba(0,130,85,.06),transparent 62%);pointer-events:none}.cyber-grid{position:fixed;inset:0;background-image:linear-gradient(rgba(35,255,154,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(35,255,154,.045) 1px,transparent 1px);background-size:42px 42px;transform:perspective(600px) rotateX(58deg) scale(1.55);transform-origin:center bottom;opacity:.45}.cyber-scan{position:fixed;left:0;right:0;height:2px;top:-5%;background:linear-gradient(90deg,transparent,#39ffac,transparent);box-shadow:0 0 18px #34ffad;animation:cyberScan 7s linear infinite;opacity:.55}.cyber-noise{position:fixed;inset:0;opacity:.09;pointer-events:none;background-image:repeating-linear-gradient(0deg,transparent 0,transparent 2px,rgba(103,255,191,.13) 3px,transparent 4px)}.cyber-stage{position:relative;z-index:2;min-height:100vh;width:min(1180px,92vw);margin:auto;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:70px;padding:70px 0 90px}.cyber-core{position:relative;width:min(430px,80vw);aspect-ratio:1;margin:auto;display:grid;place-items:center}.cyber-ring{position:absolute;border:1px solid rgba(76,255,169,.3);border-radius:50%;inset:5%;box-shadow:inset 0 0 30px rgba(0,255,137,.04),0 0 30px rgba(0,255,137,.03)}.cyber-ring:before,.cyber-ring:after{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:#5cffb4;box-shadow:0 0 13px #58ffb2}.ring-a{animation:cyberRotate 16s linear infinite;border-style:dashed}.ring-a:before{top:10%;left:20%}.ring-a:after{right:9%;bottom:27%}.ring-b{inset:17%;animation:cyberRotateBack 11s linear infinite}.ring-b:before{right:3%;top:47%}.ring-b:after{left:24%;bottom:4%}.ring-c{inset:29%;border-color:rgba(86,255,184,.47);animation:cyberPulse 3s ease-in-out infinite}.cyber-center{width:160px;height:160px;border:1px solid rgba(76,255,169,.5);background:rgba(1,18,13,.72);backdrop-filter:blur(8px);border-radius:32px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:0 0 55px rgba(0,255,137,.13),inset 0 0 35px rgba(0,255,137,.05)}.cyber-lock{font-size:36px;color:#55ffb1;text-shadow:0 0 22px #42ffab;margin-bottom:8px;animation:cyberPulse 2.1s ease-in-out infinite}.cyber-center b{font-size:19px;letter-spacing:2px;color:#c7ffe1}.cyber-center small{margin-top:5px;font-size:9px;letter-spacing:2px;color:#57b887}.cyber-terminal{border:1px solid rgba(71,255,169,.25);background:rgba(1,16,12,.83);box-shadow:0 30px 80px #000c,0 0 40px rgba(0,255,137,.04);border-radius:14px;overflow:hidden;min-height:370px}.term-head{height:46px;display:flex;align-items:center;gap:8px;padding:0 15px;border-bottom:1px solid rgba(68,255,167,.18);background:#06110e}.term-head span{width:9px;height:9px;border-radius:50%;background:#275340}.term-head span:first-child{background:#42ffab;box-shadow:0 0 8px #42ffab}.term-head b{margin-left:auto;font-size:11px;font-weight:400;color:#4f9c77;letter-spacing:1px}.term-body{padding:30px 28px;font-size:14px}.term-body p{display:flex;gap:12px;margin:0 0 16px;color:#6c9f87;letter-spacing:.4px}.term-body i{color:#34ff9f;font-style:normal}.term-body strong{margin-left:auto;color:#63ffc0;font-weight:600;text-shadow:0 0 9px rgba(66,255,171,.26)}.term-cursor{margin-top:28px!important;color:#9effc9!important}.term-cursor span{animation:cyberBlink .8s steps(1) infinite}.cyber-footer{position:absolute;bottom:24px;left:0;right:0;text-align:center;color:#2d6c50;font-size:10px;letter-spacing:3px}.cyber-footer span{padding:0 10px;color:#4db27e}@keyframes cyberRotate{to{transform:rotate(360deg)}}@keyframes cyberRotateBack{to{transform:rotate(-360deg)}}@keyframes cyberPulse{0%,100%{opacity:.65;transform:scale(.98)}50%{opacity:1;transform:scale(1.03)}}@keyframes cyberBlink{0%,48%{opacity:1}49%,100%{opacity:0}}@keyframes cyberScan{0%{top:-5%}100%{top:105%}}@media(max-width:900px){.cyber-stage{grid-template-columns:1fr;gap:28px;padding:45px 0 70px}.cyber-core{width:min(330px,75vw)}.cyber-terminal{min-height:310px}.term-body{padding:22px 18px;font-size:12px}.profile-head{align-items:flex-start}.top-actions .admin-chip{display:none}}

/* v1.3.0 - secure /gw login + RGB hacker landing */
.hp-field{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.login-card{position:relative;overflow:hidden}.login-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#2589ff,#ef4054,#31c86a)}
.captcha-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end}.captcha-box{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.captcha-box img{display:block;width:100%;max-width:188px;height:64px;border:1px solid #29435c;border-radius:12px;background:#07131f}.captcha-refresh{min-height:44px;padding:8px 12px;white-space:nowrap}.security-note{display:block;margin-top:16px;color:#6f879e;font-size:12px;text-align:center}.primary:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.4)}
@media(max-width:620px){.captcha-row{grid-template-columns:1fr}.captcha-box{grid-template-columns:minmax(0,1fr) auto}.captcha-box img{max-width:none}}

/* Main page palette: blue + red + green */
.cyber-home{background:#02070b;color:#d9f7ff}
.cyber-home:before{background:radial-gradient(circle at 18% 26%,rgba(37,137,255,.18),transparent 28%),radial-gradient(circle at 82% 22%,rgba(239,64,84,.14),transparent 27%),radial-gradient(circle at 50% 72%,rgba(49,200,106,.13),transparent 34%),radial-gradient(circle at 50% 50%,rgba(4,25,35,.5),transparent 70%)}
.cyber-grid{background-image:linear-gradient(rgba(37,137,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(49,200,106,.045) 1px,transparent 1px);opacity:.55}
.cyber-scan{background:linear-gradient(90deg,transparent,#2589ff 18%,#ef4054 50%,#31c86a 82%,transparent);box-shadow:0 0 20px rgba(37,137,255,.45),0 0 28px rgba(239,64,84,.26),0 0 36px rgba(49,200,106,.28)}
.cyber-noise{background-image:repeating-linear-gradient(0deg,transparent 0,transparent 2px,rgba(37,137,255,.08) 3px,transparent 4px)}
.cyber-ring{border-color:rgba(37,137,255,.34);box-shadow:inset 0 0 32px rgba(37,137,255,.04),0 0 28px rgba(37,137,255,.05)}
.ring-a{border-color:rgba(37,137,255,.52)}.ring-a:before,.ring-a:after{background:#2589ff;box-shadow:0 0 15px #2589ff}
.ring-b{border-color:rgba(239,64,84,.48)}.ring-b:before,.ring-b:after{background:#ef4054;box-shadow:0 0 15px #ef4054}
.ring-c{border-color:rgba(49,200,106,.62);box-shadow:0 0 28px rgba(49,200,106,.10)}
.cyber-center{border-color:rgba(37,137,255,.48);background:linear-gradient(145deg,rgba(4,18,31,.9),rgba(12,16,22,.86));box-shadow:-18px -12px 55px rgba(37,137,255,.08),18px -8px 55px rgba(239,64,84,.07),0 22px 60px rgba(49,200,106,.09),inset 0 0 35px rgba(37,137,255,.04)}
.cyber-lock{color:#31c86a;text-shadow:-8px 0 24px rgba(37,137,255,.45),8px 0 24px rgba(239,64,84,.40),0 0 22px rgba(49,200,106,.65)}
.cyber-center b{color:#e8f5ff}.cyber-center small{color:#75a9c8}
.cyber-terminal{border-color:rgba(37,137,255,.26);background:rgba(3,14,22,.88);box-shadow:0 30px 80px #000c,-18px 0 55px rgba(37,137,255,.04),18px 0 55px rgba(239,64,84,.035),0 18px 60px rgba(49,200,106,.035)}
.term-head{border-bottom-color:rgba(255,255,255,.08);background:#07111a}.term-head span{background:#31c86a}.term-head span:first-child{background:#ef4054;box-shadow:0 0 8px #ef4054}.term-head span:nth-child(2){background:#e8b83d;box-shadow:0 0 8px rgba(232,184,61,.55)}.term-head span:nth-child(3){background:#31c86a;box-shadow:0 0 8px #31c86a}.term-head b{color:#6f93aa}
.term-body p{color:#7994a6}.term-body i{color:#2589ff}.term-body p:nth-child(2n) i{color:#ef4054}.term-body p:nth-child(3n) i{color:#31c86a}.term-body strong{color:#31c86a;text-shadow:0 0 9px rgba(49,200,106,.25)}.term-body p:nth-child(2) strong,.term-body p:nth-child(5) strong{color:#ef7180}.term-body p:nth-child(3) strong{color:#65adff}.term-cursor{color:#d9f7ff!important}.cyber-footer{color:#567185}.cyber-footer span{color:#ef4054}


/* v1.3.1 - compact release dashboard, less vertical scrolling */
body:not(.login-page):not(.cyber-home){line-height:1.65}
body:not(.login-page):not(.cyber-home) .topbar{height:58px;padding:0 3vw}
body:not(.login-page):not(.cyber-home) .top-actions{gap:7px}
body:not(.login-page):not(.cyber-home) .top-actions a,
body:not(.login-page):not(.cyber-home) .admin-chip{min-height:32px;padding:0 10px;border-radius:8px;font-size:13px}
body:not(.login-page):not(.cyber-home) .dashboard-shell{width:min(1320px,96vw);margin:18px auto 42px;gap:14px}
body:not(.login-page):not(.cyber-home) .hero,
body:not(.login-page):not(.cyber-home) .card{border-radius:15px}
body:not(.login-page):not(.cyber-home) .hero{padding:18px 20px;gap:18px;min-height:0}
body:not(.login-page):not(.cyber-home) .hero h1{font-size:25px;line-height:1.45;margin:3px 0 4px}
body:not(.login-page):not(.cyber-home) .hero p{margin:0;font-size:13px;line-height:1.8;max-width:760px}
body:not(.login-page):not(.cyber-home) .eyebrow{padding:3px 8px;font-size:11px}
body:not(.login-page):not(.cyber-home) .hero-stat{min-width:185px;padding:11px 14px;border-radius:12px;grid-template-columns:auto auto;align-items:center;column-gap:10px}
body:not(.login-page):not(.cyber-home) .hero-stat span{font-size:11px}
body:not(.login-page):not(.cyber-home) .hero-stat b{font-size:23px;line-height:1.2;grid-row:1/3;grid-column:2}
body:not(.login-page):not(.cyber-home) .hero-stat small{font-size:10px}
body:not(.login-page):not(.cyber-home) .grid-2{grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:14px;align-items:start}
body:not(.login-page):not(.cyber-home) .card{padding:16px}
body:not(.login-page):not(.cyber-home) .card h2{font-size:19px;line-height:1.4;margin:0 0 10px}
body:not(.login-page):not(.cyber-home) .form-grid{gap:10px 12px}
body:not(.login-page):not(.cyber-home) .form-grid label{gap:4px;font-size:12px}
body:not(.login-page):not(.cyber-home) .form-grid label small{font-size:10px;line-height:1.55}
body:not(.login-page):not(.cyber-home) input,
body:not(.login-page):not(.cyber-home) textarea{border-radius:8px;padding:8px 10px;font-size:13px;line-height:1.6}
body:not(.login-page):not(.cyber-home) textarea{resize:vertical;min-height:0}
body:not(.login-page):not(.cyber-home) .file-field{padding:9px 10px;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:12px}
body:not(.login-page):not(.cyber-home) .file-field input{width:auto;max-width:70%;padding:5px 7px}
body:not(.login-page):not(.cyber-home) .primary,
body:not(.login-page):not(.cyber-home) button,
body:not(.login-page):not(.cyber-home) .actions a{padding:7px 11px;border-radius:8px;font-size:12px;line-height:1.4}
body:not(.login-page):not(.cyber-home) .info-card{padding:16px}
body:not(.login-page):not(.cyber-home) .info-card dl{margin:0}
body:not(.login-page):not(.cyber-home) .info-card dl div{padding:8px 0}
body:not(.login-page):not(.cyber-home) .info-card dt{font-size:11px}
body:not(.login-page):not(.cyber-home) .info-card dd{font-size:12px;margin:2px 0 0}
body:not(.login-page):not(.cyber-home) .info-card .muted{font-size:11px;line-height:1.75;margin:10px 0 0}
body:not(.login-page):not(.cyber-home) .section-head h2{margin-bottom:2px}
body:not(.login-page):not(.cyber-home) .section-head p{font-size:11px;margin:0}
body:not(.login-page):not(.cyber-home) .pill,
body:not(.login-page):not(.cyber-home) .new{padding:3px 7px;font-size:10px}
body:not(.login-page):not(.cyber-home) .table-wrap{margin-top:10px;border-radius:9px}
body:not(.login-page):not(.cyber-home) th,
body:not(.login-page):not(.cyber-home) td{padding:9px 10px;font-size:11px;line-height:1.55}
body:not(.login-page):not(.cyber-home) td small{font-size:10px;max-height:48px;overflow:hidden}
body:not(.login-page):not(.cyber-home) .actions{gap:5px;flex-wrap:wrap}
body:not(.login-page):not(.cyber-home) .alert{padding:9px 12px;border-radius:9px;font-size:12px}
@media(max-width:900px){
 body:not(.login-page):not(.cyber-home) .topbar{height:auto;min-height:58px;padding:8px 3vw;gap:8px;flex-wrap:wrap}
 body:not(.login-page):not(.cyber-home) .dashboard-shell{margin-top:12px}
 body:not(.login-page):not(.cyber-home) .hero{display:grid;grid-template-columns:1fr;gap:10px}
 body:not(.login-page):not(.cyber-home) .hero-stat{width:100%;min-width:0}
 body:not(.login-page):not(.cyber-home) .grid-2{grid-template-columns:1fr}
 body:not(.login-page):not(.cyber-home) .form-grid{grid-template-columns:1fr}
 body:not(.login-page):not(.cyber-home) .wide{grid-column:auto}
 body:not(.login-page):not(.cyber-home) .file-field{display:grid}
 body:not(.login-page):not(.cyber-home) .file-field input{width:100%;max-width:none}
}

/* v1.3.4 - full responsive pass for installer, gateway, profile and cyber landing */
html,body{max-width:100%;overflow-x:hidden}
img,svg,video,canvas{max-width:100%}
input,textarea,select,button{max-width:100%}
input[type="file"]{min-width:0}

@media (max-width:1100px){
  body:not(.login-page):not(.cyber-home) .dashboard-shell{width:min(100% - 28px,980px)}
  body:not(.login-page):not(.cyber-home) .grid-2{grid-template-columns:1fr}
  body:not(.login-page):not(.cyber-home) .info-card{order:2}
  body:not(.login-page):not(.cyber-home) .hero{align-items:stretch}
}

@media (max-width:820px){
  body:not(.login-page):not(.cyber-home) .topbar{
    position:sticky;top:0;height:auto;min-height:0;padding:9px 14px;display:grid;grid-template-columns:1fr auto;gap:9px 12px
  }
  body:not(.login-page):not(.cyber-home) .topbar>div{min-width:0;gap:7px;flex-wrap:wrap}
  body:not(.login-page):not(.cyber-home) .topbar>div strong{font-size:13px;line-height:1.5}
  body:not(.login-page):not(.cyber-home) .topbar>div small{font-size:10px;overflow-wrap:anywhere}
  body:not(.login-page):not(.cyber-home) .top-actions{justify-content:flex-end;flex-wrap:wrap;min-width:0}
  body:not(.login-page):not(.cyber-home) .dashboard-shell{width:calc(100% - 24px);margin:12px auto 28px;gap:12px}
  body:not(.login-page):not(.cyber-home) .hero{padding:15px;gap:12px}
  body:not(.login-page):not(.cyber-home) .hero h1{font-size:21px}
  body:not(.login-page):not(.cyber-home) .hero-stat{grid-template-columns:1fr auto}
  body:not(.login-page):not(.cyber-home) .card{padding:14px}
  body:not(.login-page):not(.cyber-home) .section-head{align-items:flex-start;gap:10px}
  body:not(.login-page):not(.cyber-home) .form-grid{grid-template-columns:1fr}
  body:not(.login-page):not(.cyber-home) .wide{grid-column:auto}
  body:not(.login-page):not(.cyber-home) .file-field{display:grid;align-items:stretch}
  body:not(.login-page):not(.cyber-home) .file-field input{width:100%;max-width:100%}
  body:not(.login-page):not(.cyber-home) input[type="file"]::file-selector-button{margin-inline-end:8px;max-width:48%;white-space:normal}

  /* Release table becomes mobile cards instead of horizontal scrolling. */
  .releases .table-wrap{overflow:visible;border:0;background:transparent}
  .releases table{display:block;min-width:0;width:100%}
  .releases thead{display:none}
  .releases tbody{display:grid;gap:10px}
  .releases tr{display:block;border:1px solid #20364b;border-radius:12px;background:#091521;overflow:hidden}
  .releases td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;align-items:start;width:100%;padding:9px 11px;border-bottom:1px solid #1e3449;overflow-wrap:anywhere}
  .releases td:last-child{border-bottom:0}
  .releases td::before{color:#7890a8;font-size:10px;font-weight:700;line-height:1.6}
  .releases td:nth-child(1)::before{content:"نسخه"}
  .releases td:nth-child(2)::before{content:"عنوان"}
  .releases td:nth-child(3)::before{content:"تاریخ"}
  .releases td:nth-child(4)::before{content:"حجم"}
  .releases td:nth-child(5)::before{content:"SHA-256"}
  .releases td:nth-child(6)::before{content:"عملیات"}
  .releases td small{max-width:none;max-height:none;margin-top:4px}
  .releases .actions{justify-content:flex-start;gap:6px}
  .releases .actions form,.releases .actions a{min-width:0}
  .releases .empty{display:block;text-align:center}
  .releases .empty::before{content:none}
}

@media (max-width:620px){
  body:not(.login-page):not(.cyber-home) .topbar{grid-template-columns:1fr}
  body:not(.login-page):not(.cyber-home) .topbar>div{justify-content:space-between}
  body:not(.login-page):not(.cyber-home) .topbar>div small{display:none}
  body:not(.login-page):not(.cyber-home) .top-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body:not(.login-page):not(.cyber-home) .top-actions .admin-chip{grid-column:1/-1;width:100%;justify-content:center}
  body:not(.login-page):not(.cyber-home) .top-actions a{width:100%;justify-content:center}
  body:not(.login-page):not(.cyber-home) .dashboard-shell{width:calc(100% - 18px);margin-top:9px}
  body:not(.login-page):not(.cyber-home) .hero{padding:13px;border-radius:12px}
  body:not(.login-page):not(.cyber-home) .hero h1{font-size:19px}
  body:not(.login-page):not(.cyber-home) .hero p{font-size:11px}
  body:not(.login-page):not(.cyber-home) .hero-stat{padding:10px 12px}
  body:not(.login-page):not(.cyber-home) .hero-stat b{font-size:20px}
  body:not(.login-page):not(.cyber-home) .card{padding:12px;border-radius:12px}
  body:not(.login-page):not(.cyber-home) .card h2{font-size:17px}
  body:not(.login-page):not(.cyber-home) .section-head{display:grid;grid-template-columns:1fr auto}
  body:not(.login-page):not(.cyber-home) .section-head p{grid-column:1/-1}
  body:not(.login-page):not(.cyber-home) input,
  body:not(.login-page):not(.cyber-home) textarea{font-size:16px;/* prevent iOS zoom */}
  body:not(.login-page):not(.cyber-home) .primary,
  body:not(.login-page):not(.cyber-home) button,
  body:not(.login-page):not(.cyber-home) .actions a{min-height:38px}
  .releases td{grid-template-columns:76px minmax(0,1fr)}
  .releases .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .releases .actions form,.releases .actions a,.releases .actions button{width:100%;text-align:center}

  .profile-card{padding:14px!important}
  .profile-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;margin-bottom:18px;padding-bottom:16px}
  .profile-avatar{width:54px;height:54px;border-radius:15px;font-size:23px}
  .profile-head h1{font-size:20px;overflow-wrap:anywhere}
  .profile-head p{font-size:11px;line-height:1.8}
}

@media (max-width:430px){
  .releases td{display:block}
  .releases td::before{display:block;margin-bottom:3px}
  .releases .actions{grid-template-columns:1fr}
  body:not(.login-page):not(.cyber-home) .section-head{grid-template-columns:1fr}
  body:not(.login-page):not(.cyber-home) .pill{justify-self:start}
}

/* Login is fully fluid on phones and narrow browser windows. */
@media (max-width:620px){
  .login-shell{min-height:100svh;padding:12px;align-items:center}
  .login-card{width:100%;padding:20px 16px;border-radius:16px}
  .login-card h1{font-size:22px;line-height:1.55;margin:8px 0 16px}
  .login-page .form-grid{grid-template-columns:1fr;gap:12px}
  .login-page .wide{grid-column:auto}
  .login-page input{font-size:16px}
  .captcha-row{grid-template-columns:1fr;gap:10px}
  .captcha-box{grid-template-columns:minmax(0,1fr) auto}
  .captcha-box img{max-width:none;width:100%;height:58px;object-fit:cover}
  .captcha-refresh{height:58px;min-height:58px;padding-inline:10px}
  .login-card .primary{width:100%;min-height:44px}
}
@media (max-width:390px){
  .captcha-box{grid-template-columns:1fr}
  .captcha-refresh{height:40px;min-height:40px;width:100%}
}

/* Installer: no horizontal overflow and comfortable one-column mobile form. */
@media (max-width:760px){
  .install-shell{min-height:100svh;place-items:start center;padding:12px}
  .install-card{width:100%;padding:18px 15px;border-radius:16px;margin-block:8px}
  .install-card h1{font-size:22px;line-height:1.55;margin:9px 0}
  .install-card>p{font-size:12px;line-height:1.9}
  .installer-page .form-grid{grid-template-columns:1fr;gap:11px}
  .installer-page .wide{grid-column:auto}
  .installer-page input{font-size:16px;min-width:0}
  .installer-page .check-grid{grid-template-columns:1fr;margin:15px 0;gap:7px}
  .installer-page .check{padding:8px 10px}
  .installer-page .form-section{padding:10px 11px}
  .installer-page .primary{width:100%;min-height:44px}
}

/* Public cyber page: responsive in portrait, landscape and small screens. */
@media (max-width:900px){
  .cyber-home{overflow-x:hidden;overflow-y:auto}
  .cyber-stage{width:calc(100% - 28px);min-height:100svh;grid-template-columns:1fr;gap:22px;padding:30px 0 54px}
  .cyber-core{width:min(310px,72vw)}
  .cyber-center{width:132px;height:132px;border-radius:26px}
  .cyber-lock{font-size:30px}
  .cyber-center b{font-size:16px}
  .cyber-terminal{width:100%;min-width:0;min-height:0}
  .term-body{padding:20px 16px;font-size:12px}
  .term-body p{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;margin-bottom:12px;overflow-wrap:anywhere}
  .term-body strong{grid-column:2;margin-left:0;justify-self:start}
  .cyber-footer{position:static;grid-column:1/-1;margin-top:0;padding:0 10px;font-size:8px;line-height:1.8;letter-spacing:1.5px}
}
@media (max-width:520px){
  .cyber-stage{width:calc(100% - 20px);gap:16px;padding-top:20px}
  .cyber-core{width:min(250px,72vw)}
  .cyber-center{width:110px;height:110px;border-radius:22px}
  .cyber-lock{font-size:25px;margin-bottom:4px}
  .cyber-center b{font-size:13px;letter-spacing:1.2px}
  .cyber-center small{font-size:7px;letter-spacing:1px}
  .cyber-terminal{border-radius:11px}
  .term-head{height:40px;padding:0 11px}
  .term-head b{font-size:9px;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .term-body{padding:16px 12px;font-size:10px}
  .term-body p{margin-bottom:10px}
}
@media (max-height:560px) and (orientation:landscape){
  .cyber-stage{grid-template-columns:.75fr 1.25fr;gap:24px;padding:18px 0 28px;min-height:auto}
  .cyber-core{width:min(235px,37vw)}
  .cyber-terminal{min-height:0}
  .term-body{padding:14px 16px;font-size:10px}
  .term-body p{margin-bottom:7px}
  .cyber-footer{display:none}
}

/* v1.4.0 - update history retention and cleanup controls */
.update-history-tools-v140{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.update-history-tools-v140 form{margin:0}
.update-history-tools-v140 .danger{min-height:34px;padding:7px 11px;font-size:12px}
@media(max-width:620px){
  .update-history-head-v140{grid-template-columns:1fr!important}
  .update-history-tools-v140{justify-content:flex-start;width:100%}
  .update-history-tools-v140 form{flex:1 1 180px}
  .update-history-tools-v140 .danger{width:100%}
}
