/* local-theme.css — ظاهر «شیشه‌ای» و سه‌بعدی کل داشبورد (کلیدها، کارت‌ها، دکمه‌ها، ورودی‌ها، پنجره‌ها) */
@font-face{font-family:"Vazirmatn";src:url("fonts/Vazirmatn.woff2") format("woff2");font-weight:100 900;font-display:swap}

:root{--sxu-ease:cubic-bezier(.2,.9,.2,1);--sxu-spring:cubic-bezier(.2,1.5,.3,1)}
html{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body{font-feature-settings:"ss01","kern";letter-spacing:0}
h1,h2,h3,h4,h5{font-weight:800;letter-spacing:-.1px}
::selection{background:rgba(56,189,248,.35)}
*{scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.4) transparent}
::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:rgba(148,163,184,.35);border-radius:8px}

/* ---------- کارت‌های عمومی ---------- */
[data-bs-theme=dark] .card{background:linear-gradient(155deg,rgba(51,65,99,.38),rgba(15,23,42,.8) 55%,rgba(15,23,42,.92))!important;border:1px solid rgba(148,163,184,.16)!important;border-radius:22px;
  box-shadow:0 14px 34px rgba(2,6,23,.42),0 1px 0 rgba(255,255,255,.05) inset,0 -10px 24px rgba(2,6,23,.3) inset;-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3)}
[data-bs-theme=light] .card{background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(241,247,255,.88))!important;border:1px solid rgba(148,163,184,.28)!important;border-radius:22px;
  box-shadow:0 12px 30px rgba(51,65,99,.12),0 1px 0 #fff inset,0 -8px 20px rgba(148,163,184,.12) inset}
.sx-box{border-radius:22px!important}
.sx-fan-wrap{background:linear-gradient(155deg,rgba(51,65,99,.38),rgba(15,23,42,.8) 55%,rgba(15,23,42,.92))!important;border:1px solid rgba(148,163,184,.16)!important;border-radius:22px!important;
  box-shadow:0 14px 34px rgba(2,6,23,.42),0 1px 0 rgba(255,255,255,.05) inset,0 -10px 24px rgba(2,6,23,.3) inset!important}
[data-bs-theme=light] .sx-fan-wrap{background:linear-gradient(160deg,rgba(255,255,255,.92),rgba(241,247,255,.88))!important;border:1px solid rgba(148,163,184,.28)!important}
/* نوار صفر تا صد فن: پر شدن از چپ به راست و انگشتی هم‌جهت (قبلاً در حالت راست‌به‌چپ برعکس بود) */
.sxf-slide input[type=range]{direction:ltr}.sxf-ticks{direction:ltr}
.sxf-slide input[type=range]::-webkit-slider-runnable-track{background:transparent}
.sxf-slide input{box-shadow:0 2px 6px rgba(0,0,0,.45) inset!important}

/* ---------- کلیدها (سوییچ): ریلِ شیشه‌ای و دستگیرهٔ سه‌بعدی ---------- */
.form-switch .form-check-input{--sw:#22d3ee;--sw2:#0ea5e9;appearance:none;-webkit-appearance:none;width:3.1rem;height:1.78rem;margin:0;border-radius:999px;cursor:pointer;position:relative;flex:0 0 auto;
  border:1px solid rgba(255,255,255,.14)!important;
  background-color:transparent!important;
  background-image:radial-gradient(circle at 34% 28%,rgba(255,255,255,.95) 0,rgba(255,255,255,0) 42%),radial-gradient(circle closest-side,#f1f5fb 0,#a9b7cc 86%,transparent 90%),linear-gradient(180deg,rgba(100,116,139,.45),rgba(51,65,85,.5))!important;
  background-repeat:no-repeat!important;background-size:1.32rem 1.32rem,1.32rem 1.32rem,100% 100%!important;background-position:.24rem center,.24rem center,0 0!important;
  box-shadow:0 2px 6px rgba(0,0,0,.45) inset,0 1px 0 rgba(255,255,255,.12),0 0 0 0 transparent;
  transition:background-position .38s var(--sxu-spring),box-shadow .35s,background-image .35s,transform .15s,filter .25s}
.form-switch .form-check-input:active{transform:scale(.96)}
.form-switch .form-check-input:checked{
  background-image:radial-gradient(circle at 34% 28%,rgba(255,255,255,.95) 0,rgba(255,255,255,0) 42%),radial-gradient(circle closest-side,#f6f9ff 0,#b4c3da 86%,transparent 90%),linear-gradient(180deg,var(--sw),var(--sw2))!important;
  background-position:calc(100% - .24rem) center,calc(100% - .24rem) center,0 0!important;
  box-shadow:0 2px 6px rgba(0,0,0,.35) inset,0 1px 0 rgba(255,255,255,.3),0 0 16px color-mix(in srgb,var(--sw) 55%,transparent),0 0 30px color-mix(in srgb,var(--sw) 25%,transparent)}
.form-switch .form-check-input:focus{outline:none;box-shadow:0 2px 6px rgba(0,0,0,.4) inset,0 0 0 3px color-mix(in srgb,var(--sw) 28%,transparent)}
.form-switch .form-check-input:disabled{opacity:.5;filter:grayscale(.4);cursor:not-allowed}
.sx-ctl-row[data-sxl=robot] .form-check-input{--sw:#4ade80;--sw2:#16a34a}.sx-ctl-row[data-sxl=skt] .form-check-input{--sw:#fbbf24;--sw2:#d97706}
.sx-ctl-row[data-sxl=disp] .form-check-input{--sw:#67e8f9;--sw2:#0891b2}.sx-ctl-row[data-sxl=wifi] .form-check-input{--sw:#6ee7b7;--sw2:#059669}
[data-bs-theme=light] .form-switch .form-check-input{background-image:radial-gradient(circle at 34% 28%,rgba(255,255,255,.95) 0,rgba(255,255,255,0) 42%),radial-gradient(circle closest-side,#ffffff 0,#bcc8dc 86%,transparent 90%),linear-gradient(180deg,rgba(148,163,184,.55),rgba(100,116,139,.45))!important;border-color:rgba(100,116,139,.35)!important}
[data-bs-theme=light] .form-switch .form-check-input:checked{background-image:radial-gradient(circle at 34% 28%,rgba(255,255,255,.95) 0,rgba(255,255,255,0) 42%),radial-gradient(circle closest-side,#ffffff 0,#bcc8dc 86%,transparent 90%),linear-gradient(180deg,var(--sw),var(--sw2))!important}
/* چک‌باکس و رادیو */
.form-check-input[type=checkbox]:not([role=switch]),.form-check-input[type=radio]{border:1.5px solid rgba(148,163,184,.55);background-color:rgba(15,23,42,.35);box-shadow:0 1px 3px rgba(0,0,0,.35) inset;transition:.2s}
.form-check-input:checked[type=checkbox]:not([role=switch]),.form-check-input:checked[type=radio]{background-color:#0ea5e9;border-color:#38bdf8;box-shadow:0 0 12px rgba(56,189,248,.55)}

/* ---------- دکمه‌ها ---------- */
.btn{border-radius:14px;font-weight:700;letter-spacing:.1px;position:relative;overflow:hidden;transition:transform .18s var(--sxu-ease),box-shadow .25s,filter .2s,background .25s}
.btn::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.28) 50%,transparent 65%);transform:translateX(-130%);pointer-events:none}
.btn:hover::after{transform:translateX(130%);transition:transform .7s var(--sxu-ease)}
.btn-primary{border:0!important;background:linear-gradient(180deg,#3b9bff,#0d6efd 55%,#0a58ca)!important;box-shadow:0 8px 20px rgba(13,110,253,.4),0 1px 0 rgba(255,255,255,.45) inset,0 -2px 0 rgba(0,0,0,.2) inset}
.btn-primary:hover{filter:brightness(1.07);transform:translateY(-1px);box-shadow:0 12px 26px rgba(13,110,253,.5),0 1px 0 rgba(255,255,255,.45) inset,0 -2px 0 rgba(0,0,0,.2) inset}
.btn-success{border:0!important;background:linear-gradient(180deg,#34d399,#10b981 55%,#059669)!important;box-shadow:0 8px 20px rgba(16,185,129,.38),0 1px 0 rgba(255,255,255,.4) inset,0 -2px 0 rgba(0,0,0,.2) inset}
.btn-danger{border:0!important;background:linear-gradient(180deg,#f87171,#ef4444 55%,#b91c1c)!important;box-shadow:0 8px 20px rgba(239,68,68,.38),0 1px 0 rgba(255,255,255,.35) inset,0 -2px 0 rgba(0,0,0,.2) inset}
.btn-warning{border:0!important;background:linear-gradient(180deg,#fde68a,#f59e0b 60%,#d97706)!important;color:#1b1203!important;box-shadow:0 8px 20px rgba(245,158,11,.4),0 1px 0 rgba(255,255,255,.6) inset,0 -2px 0 rgba(0,0,0,.15) inset}
[class*=btn-outline-]{background:rgba(148,163,184,.07)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
[class*=btn-outline-]:hover{box-shadow:0 8px 20px rgba(2,6,23,.3)}
.btn:active{transform:translateY(1px) scale(.97)}

/* ---------- ورودی‌ها ---------- */
.form-control,.form-select{border-radius:14px!important;transition:border-color .25s,box-shadow .3s,background .25s}
[data-bs-theme=dark] .form-control,[data-bs-theme=dark] .form-select{background-color:rgba(15,23,42,.55)!important;border:1px solid rgba(148,163,184,.25)!important;box-shadow:0 2px 6px rgba(0,0,0,.3) inset}
.form-control:focus,.form-select:focus{border-color:#38bdf8!important;box-shadow:0 0 0 3px rgba(56,189,248,.22),0 2px 6px rgba(0,0,0,.25) inset!important}

/* ---------- پنجره‌ها و منو ---------- */
.modal-content{border-radius:24px!important;border:1px solid rgba(148,163,184,.2)!important;-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 30px 70px rgba(2,6,23,.6)!important}
[data-bs-theme=dark] .modal-content{background:linear-gradient(160deg,rgba(30,41,59,.92),rgba(15,23,42,.96))!important}
.modal.fade .modal-dialog{transition:transform .45s var(--sxu-spring),opacity .3s}.modal.fade:not(.show) .modal-dialog{transform:scale(.88) translateY(24px)}
.modal-backdrop.show{opacity:.55;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.nav-link-custom{border-radius:14px;transition:transform .2s var(--sxu-ease),background .25s,box-shadow .25s}
.nav-link-custom:hover{transform:translateX(-3px)}
.nav-link-custom.active{background:linear-gradient(135deg,rgba(56,189,248,.26),rgba(14,165,233,.08))!important;box-shadow:0 0 0 1px rgba(56,189,248,.35) inset,0 8px 20px rgba(2,6,23,.3)}
.sx-island{-webkit-backdrop-filter:blur(16px) saturate(1.5);backdrop-filter:blur(16px) saturate(1.5);box-shadow:0 10px 30px rgba(2,6,23,.4),0 1px 0 rgba(255,255,255,.08) inset}

/* ---------- ورود صفحات ---------- */
#sec-recent-data,#sec-fleet,#sec-buoy-detail,#sec-buoy-settings,#sec-settings,#sec-support,#sec-anchor{animation:sxuSec .55s var(--sxu-ease)}
@keyframes sxuSec{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}

/* ---------- نقشه ---------- */
.sx-map-card{border-radius:22px!important;overflow:hidden}
.leaflet-container{border-radius:16px;font-family:inherit}
.leaflet-control-zoom a{border-radius:12px!important;margin-bottom:6px;box-shadow:0 4px 12px rgba(0,0,0,.35)}
.leaflet-control-zoom{border:0!important;box-shadow:none!important}

/* ---------- کارت کنترل: همان ظاهر قبلی (آیکن ساده + کلید آیفونی) ---------- */
@property --lc{syntax:'<color>';inherits:true;initial-value:#64748b}
.sx-box.sx-ctl{padding:6px 10px 4px!important}
.sx-ctl .sx-ctl-title{display:flex!important;margin:0 0 1px!important;font-size:.72rem}
.sx-ctl .sx-ctl-row{flex:1 1 0!important;min-height:0!important;padding:0 2px!important;border:0!important;border-top:1px solid rgba(148,163,184,.14)!important;border-radius:0!important;background:none!important;transition:--lc .6s ease}
.sx-ctl .sxl{width:auto!important;height:auto!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:1.2rem!important;display:inline-flex;align-items:center;justify-content:center;min-width:26px;
  color:var(--lc,#64748b)!important;filter:drop-shadow(0 0 0 transparent);transition:color .6s ease,filter .6s ease,opacity .6s;animation:none!important}
.sx-ctl .sxl::after,.sx-ctl .sxl::before{display:none!important}
.sx-ctl .sxl i{filter:none!important;transition:none}
.sx-ctl .sx-ctl-row.on .sxl,.sx-ctl .sxu-telem.busy .sxl,.sx-ctl .sxu-telem.okflash .sxl{filter:drop-shadow(0 0 2px color-mix(in srgb,var(--lc) 55%,transparent)) drop-shadow(0 0 6px color-mix(in srgb,var(--lc) 35%,transparent))}
.sx-ctl .sxl.pop{animation:sxlPop .5s ease!important}
.sxl svg.sxled{width:1.05em;height:1.45em;display:block;overflow:visible}
/* کلید آیفونی (همان اندازه و رنگ قبلی) با انیمیشن نرم */
.sx-ctl .form-switch .form-check-input{appearance:none;-webkit-appearance:none;position:relative;width:46px!important;height:26px!important;margin:0!important;float:none;border-radius:13px!important;border:0!important;
  background:#3b4252!important;box-shadow:inset 0 1px 3px rgba(0,0,0,.4)!important;cursor:pointer;transition:background-color .35s ease,box-shadow .35s}
.sx-ctl .form-switch .form-check-input::after{content:"";position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 4px rgba(0,0,0,.35);transition:transform .35s cubic-bezier(.3,1.4,.5,1)}
.sx-ctl .form-switch .form-check-input:checked{background:#3b6df0!important;box-shadow:inset 0 1px 3px rgba(0,0,0,.25),0 0 10px rgba(59,109,240,.4)!important}
.sx-ctl .form-switch .form-check-input:checked::after{transform:translateX(20px)}
.sx-ctl .form-switch .form-check-input:active::after{width:26px}
.sx-ctl .form-switch .form-check-input:checked:active::after{transform:translateX(16px)}
.sx-ctl .form-switch .form-check-input:focus{box-shadow:inset 0 1px 3px rgba(0,0,0,.4),0 0 0 3px rgba(59,109,240,.28)!important}
/* ردیف ارسال آنی: هم‌اندازه و هم‌راستای کلیدها */
.sx-ctl .sxt-txt{display:none!important}
.sx-ctl .sxu-telem .sxt-btn{margin-left:4px!important;width:46px;height:26px;padding:0!important;border-radius:13px;justify-content:center;gap:0;font-size:.8rem;box-shadow:0 2px 8px rgba(245,158,11,.4),inset 0 1px 0 rgba(255,255,255,.5)}
.sx-ctl .sxu-telem .sxt-btn span{display:none}
.sx-ctl .sxu-telem{justify-content:space-between;gap:8px}

/* ---------- کادر فن: فشرده (حدود نصف ارتفاع) ---------- */
.sx-fan-wrap{padding:9px 12px!important;margin-top:8px!important}
.sx-fan-wrap .sx-fan{gap:6px}
.sx-fan-wrap .sxf-top{flex-wrap:nowrap;gap:10px}
.sx-fan-wrap .sxf-rotorwrap{width:42px;height:42px;flex:0 0 42px}
.sx-fan-wrap .sxf-rotor{font-size:1.45rem}
.sx-fan-wrap .sxf-air i{width:48px;height:48px;margin:-24px}
.sx-fan-wrap .sxf-read{min-width:0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.sx-fan-wrap .sxf-title{font-size:.66rem}
.sx-fan-wrap .sxf-pct{font-size:1.2rem;line-height:1.1}
.sx-fan-wrap .sxf-state{display:none}
.sx-fan-wrap .sxf-seg{min-width:0;width:44%;max-width:210px;padding:2px;border-radius:10px}
.sx-fan-wrap .sxf-seg button{font-size:.72rem;padding:4px 6px}
.sx-fan-wrap .sxf-thumb{top:2px;bottom:2px}
.sx-fan-wrap .sx-fan-note{display:none}
.sx-fan-wrap .sx-fan-auto{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 14px}
.sx-fan-wrap .sx-fan-auto .sxf-pill{font-size:.74rem;gap:7px;white-space:nowrap}
.sx-fan-wrap .sxf-sw{width:34px;height:20px;flex-basis:34px;border-radius:10px}
.sx-fan-wrap .sxf-sw:after{width:14px;height:14px;top:3px}
.sx-fan-wrap .sxf-slide{margin-top:0}
.sx-fan-wrap .sxf-slide input{height:9px}
.sx-fan-wrap .sxf-slide input::-webkit-slider-thumb{width:20px;height:20px}
.sx-fan-wrap .sxf-ticks{font-size:.56rem;margin-top:1px;grid-column:1/-1}
.sx-fan-wrap .sx-fan-man{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.sx-fan-wrap .sxf-levels{gap:5px}
.sx-fan-wrap .sxf-levels button{flex-direction:row;justify-content:center;gap:6px;padding:5px 2px;border-radius:10px;font-size:.7rem}
.sx-fan-wrap .sxf-bars{height:12px}.sx-fan-wrap .sxf-bars i{width:4px}
.sx-fan-wrap .sxf-bars i:nth-child(1){height:5px}.sx-fan-wrap .sxf-bars i:nth-child(2){height:8px}.sx-fan-wrap .sxf-bars i:nth-child(3){height:12px}
.sx-fan-wrap .sxf-power{width:auto;padding:5px 12px;margin:0;font-size:.74rem;border-radius:10px;white-space:nowrap}
@media (max-width:520px){.sx-fan-wrap .sxf-seg{width:46%}.sx-fan-wrap .sx-fan-man{grid-template-columns:1fr}.sx-fan-wrap .sxf-read{flex-direction:column;gap:0}}
@media (max-width:520px){.sx-fan-wrap .sx-fan-auto{grid-template-columns:1fr;gap:6px}}

/* =====================================================================
   حالت روشن — طراحی دوباره با کنتراست و برجستگی (مثل حالت تاریک: لایه‌لایه)
   پس‌زمینه تیره‌تر از کارت‌ها، کارت‌ها سفید با حاشیه و سایهٔ مشخص، المان‌های داخل فرورفته/برجسته
   ===================================================================== */
html[data-bs-theme=light]{--bg-main:#d9e2ee;--card-bg:#ffffff;--border-color:#b8c5d8;--text-color:#0b1424;--subtext-color:#4a5a72;--inner-line:#c2cedf;--accent:#0369a1}
html[data-bs-theme=light] body{background:
  radial-gradient(900px 500px at 88% -5%,rgba(59,130,246,.20),transparent 60%),
  radial-gradient(700px 500px at 0% 30%,rgba(14,165,233,.14),transparent 60%),
  linear-gradient(180deg,#dbe4f0,#cdd9e9) fixed!important;color:var(--text-color)}
html[data-bs-theme=light] .card{background:linear-gradient(180deg,#ffffff,#f4f8fd)!important;border:1px solid #b4c2d6!important;
  box-shadow:0 1px 0 #fff inset,0 -1px 0 rgba(120,144,176,.18) inset,0 1px 2px rgba(15,23,42,.10),0 14px 30px -10px rgba(30,58,95,.30)!important;
  -webkit-backdrop-filter:none;backdrop-filter:none}
html[data-bs-theme=light] .card:hover{box-shadow:0 1px 0 #fff inset,0 2px 4px rgba(15,23,42,.12),0 18px 36px -10px rgba(30,58,95,.36)!important}
html[data-bs-theme=light] .card .card{background:linear-gradient(180deg,#f6f9fd,#edf2f9)!important;border-color:#c3cfe0!important;
  box-shadow:0 1px 0 #fff inset,0 1px 2px rgba(15,23,42,.08)!important}
html[data-bs-theme=light] .modal-content,html[data-bs-theme=light] .auth-card{background:#fff!important;border:1px solid #b4c2d6!important;box-shadow:0 30px 70px -20px rgba(15,23,42,.45)!important}
/* نوشته‌ها */
html[data-bs-theme=light] .text-muted,html[data-bs-theme=light] .sx-sub,html[data-bs-theme=light] .sx-fan-note,html[data-bs-theme=light] .sxf-title,html[data-bs-theme=light] .sxf-ticks{color:#4a5a72!important}
html[data-bs-theme=light] .text-success,html[data-bs-theme=light] .status-ok{color:#15803d!important}
html[data-bs-theme=light] .text-warning{color:#b45309!important}
html[data-bs-theme=light] .text-danger{color:#b91c1c!important}
html[data-bs-theme=light] .text-info{color:#0369a1!important}
html[data-bs-theme=light] .text-primary{color:#1d4ed8!important}
html[data-bs-theme=light] #txt-app-title{background:linear-gradient(90deg,#0369a1,#1d4ed8);-webkit-background-clip:text;background-clip:text;color:transparent!important}
html[data-bs-theme=light] h1,html[data-bs-theme=light] h2,html[data-bs-theme=light] h3,html[data-bs-theme=light] h4,html[data-bs-theme=light] h5{color:#0b1424}
html[data-bs-theme=light] .border-bottom,html[data-bs-theme=light] hr{border-color:#b4c2d6!important}
/* نوار بالا */
html[data-bs-theme=light] .sx-island{background:rgba(255,255,255,.88)!important;border:1px solid #b4c2d6!important;box-shadow:0 1px 0 #fff inset,0 10px 26px -10px rgba(30,58,95,.35)!important}
/* ورودی‌ها: فرورفته و کاملاً دیده‌شونده */
html[data-bs-theme=light] .form-control,html[data-bs-theme=light] .form-select,html[data-bs-theme=light] textarea,html[data-bs-theme=light] select{background-color:#fff!important;border:1.5px solid #94a7c2!important;color:#0b1424!important;
  box-shadow:inset 0 2px 4px rgba(15,23,42,.10),0 1px 0 #fff!important}
html[data-bs-theme=light] .form-control::placeholder{color:#7a8aa2}
html[data-bs-theme=light] .form-control:focus,html[data-bs-theme=light] .form-select:focus{border-color:#2563eb!important;box-shadow:inset 0 1px 3px rgba(15,23,42,.08),0 0 0 4px rgba(37,99,235,.20)!important}
html[data-bs-theme=light] .form-control:disabled,html[data-bs-theme=light] .form-select:disabled{background-color:#e8eef6!important;color:#64748b!important}
/* ردیف‌ها / دکمه‌های تم و حالت: برجسته */
html[data-bs-theme=light] .sx-fx-row,html[data-bs-theme=light] .sx-set-switchrow,html[data-bs-theme=light] .sx-acc,html[data-bs-theme=light] .sx-spec,html[data-bs-theme=light] .sx-sup-row,html[data-bs-theme=light] .phone-row,html[data-bs-theme=light] .sx-pop-tile{background:linear-gradient(180deg,#ffffff,#eef3fa)!important;border:1px solid #b9c7da!important;box-shadow:0 1px 0 #fff inset,0 2px 5px rgba(15,23,42,.10)!important}
html[data-bs-theme=light] .theme-toggle-btn{background:linear-gradient(180deg,#ffffff,#e9eff7)!important;border:1.5px solid #9fb1ca!important;color:#0b1424!important;box-shadow:0 1px 0 #fff inset,0 2px 6px rgba(15,23,42,.12)!important}
html[data-bs-theme=light] .theme-toggle-btn.active{background:linear-gradient(180deg,#2e9bdc,#0369a1)!important;border-color:#025583!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.35) inset,0 4px 12px rgba(3,105,161,.4)!important}
html[data-bs-theme=light] .btn-primary{background:linear-gradient(180deg,#3b8df6,#1d5fd6)!important;border-color:#1a50b8!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 -2px 0 rgba(0,0,0,.14) inset,0 6px 14px rgba(29,95,214,.35)!important}
html[data-bs-theme=light] .btn-outline-primary,html[data-bs-theme=light] .btn-outline-secondary,html[data-bs-theme=light] .btn-light{background:linear-gradient(180deg,#fff,#eaf0f8)!important;border:1.5px solid #8fa3c0!important;color:#12335c!important;box-shadow:0 1px 0 #fff inset,0 2px 5px rgba(15,23,42,.10)!important}
html[data-bs-theme=light] .badge.bg-secondary{background:#64748b!important}
/* کلیدها (ردیف کنترل) */
html[data-bs-theme=light] .sx-ctl .sx-ctl-row{border-top-color:#c2cedf!important}
html[data-bs-theme=light] .sx-ctl .form-switch .form-check-input{background:#9fb0c8!important;box-shadow:inset 0 2px 4px rgba(15,23,42,.30)!important}
html[data-bs-theme=light] .sx-ctl .form-switch .form-check-input:checked{background:#2563eb!important;box-shadow:inset 0 1px 3px rgba(15,23,42,.25),0 0 8px rgba(37,99,235,.35)!important}
html[data-bs-theme=light] .sx-ctl .form-switch .form-check-input::after{box-shadow:0 2px 5px rgba(15,23,42,.45)}
html[data-bs-theme=light] .sx-ctl .sx-ctl-row:not(.on) .sxl{filter:brightness(.7) saturate(1.1)}
html[data-bs-theme=light] .sx-ctl .sx-ctl-row.on .sxl,html[data-bs-theme=light] .sx-ctl .sxu-telem.busy .sxl{filter:brightness(.8) saturate(1.25) drop-shadow(0 0 1px color-mix(in srgb,var(--lc) 70%,transparent)) drop-shadow(0 1px 3px color-mix(in srgb,var(--lc) 45%,transparent))}
html[data-bs-theme=light] .sx-ctl .sxl .sxled{filter:drop-shadow(0 1px 0 rgba(15,23,42,.25))}
/* المان‌های متحرک کادرها روی سفید */
html[data-bs-theme=light] .sxc-sig i{opacity:.22}html[data-bs-theme=light] .sxc-sig i.on{opacity:1;box-shadow:0 1px 4px color-mix(in srgb,currentColor 45%,transparent)}
html[data-bs-theme=light] .sxc-bat{background:#cfd9e7;box-shadow:inset 0 1px 3px rgba(15,23,42,.30)}
html[data-bs-theme=light] .sxc-th{background:#e3eaf4;border-color:#8fa3c0}
html[data-bs-theme=light] .sxc-radar{box-shadow:0 1px 4px color-mix(in srgb,currentColor 35%,transparent),inset 0 0 8px color-mix(in srgb,currentColor 22%,transparent)}
html[data-bs-theme=light] .sx-box .sx-row .badge{box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 2px 6px rgba(15,23,42,.22)}
html[data-bs-theme=light] .sx-box>.d-flex:first-child span.small{color:#334155!important;opacity:1}
/* کادر فن */
html[data-bs-theme=light] .sx-fan-wrap{background:linear-gradient(180deg,#ffffff,#eef4fb)!important;border:1px solid #9fb6d4!important;box-shadow:0 1px 0 #fff inset,0 14px 30px -10px rgba(3,105,161,.35)!important}
html[data-bs-theme=light] .sxf-rotor{color:#0284c7;filter:drop-shadow(0 1px 2px rgba(2,132,199,.4))}
html[data-bs-theme=light] .sxf-rotorwrap{background:radial-gradient(circle,rgba(2,132,199,.16),rgba(2,132,199,.03) 70%);border-color:rgba(2,132,199,.4)}
html[data-bs-theme=light] .sxf-pct{background:linear-gradient(90deg,#0369a1,#0891b2);-webkit-background-clip:text;background-clip:text}
html[data-bs-theme=light] .sxf-seg{background:#dbe5f1;border-color:#9fb1ca;box-shadow:inset 0 2px 4px rgba(15,23,42,.18)}
html[data-bs-theme=light] .sxf-seg button{color:#334155}
html[data-bs-theme=light] .sxf-seg button.active{color:#fff}
html[data-bs-theme=light] .sxf-thumb{background:linear-gradient(135deg,#0ea5e9,#0369a1);box-shadow:0 2px 8px rgba(3,105,161,.45)}
html[data-bs-theme=light] .sxf-slide input{background:linear-gradient(90deg,#0ea5e9,#0369a1) 0/var(--v,0%) 100% no-repeat,#c3d0e2;border-color:#8fa3c0;box-shadow:inset 0 1px 3px rgba(15,23,42,.25)}
html[data-bs-theme=light] .sxf-slide input::-webkit-slider-thumb{border-color:#0369a1;box-shadow:0 2px 8px rgba(15,23,42,.4)}
html[data-bs-theme=light] .sxf-pill{color:#0b1424}html[data-bs-theme=light] .sxf-sw{background:#9fb0c8;box-shadow:inset 0 1px 3px rgba(15,23,42,.3)}
html[data-bs-theme=light] .sxf-levels button{background:linear-gradient(180deg,#fff,#e9eff7);border-color:#9fb1ca;color:#12335c;box-shadow:0 1px 0 #fff inset,0 2px 5px rgba(15,23,42,.12)}
html[data-bs-theme=light] .sxf-levels button.active{border-color:#0369a1;background:linear-gradient(180deg,#e0f2fe,#bae6fd)}
html[data-bs-theme=light] .sxf-bars i{background:#94a3b8}
html[data-bs-theme=light] .sxf-levels button[data-n="1"].active .sxf-bars i:nth-child(1),html[data-bs-theme=light] .sxf-levels button[data-n="2"].active .sxf-bars i:nth-child(-n+2),html[data-bs-theme=light] .sxf-levels button[data-n="3"].active .sxf-bars i{background:#0369a1}
html[data-bs-theme=light] .sxf-power{background:#dcfce7;border-color:#16a34a;color:#166534}
/* ورودی نصب لنگر، QR، آیکن شناور */
html[data-bs-theme=light] .sxa-entry{background:linear-gradient(180deg,#ffffff,#e8f1fb)!important;border:1.5px solid #8fb2d6!important;color:#0b1424!important;box-shadow:0 1px 0 #fff inset,0 8px 18px -8px rgba(3,105,161,.4)!important}
html[data-bs-theme=light] .sxa-entry .sxa-ico{background:linear-gradient(180deg,#38a8e8,#0369a1)!important;color:#fff!important}
html[data-bs-theme=light] .sx-ll-card{background:linear-gradient(180deg,#fff,#edf3fa)!important;border:1px solid #9fb6d4!important;box-shadow:0 1px 0 #fff inset,0 4px 12px rgba(15,23,42,.12)!important;color:#0b1424}
html[data-bs-theme=light] .sx-ll-card code{color:#9d174d}
html[data-bs-theme=light] #sx-ocean-btn{background:rgba(255,255,255,.92);color:#0369a1;border-color:#8fa3c0;box-shadow:0 6px 16px rgba(15,23,42,.25)}
html[data-bs-theme=light] .sxu-telem .sxt-btn{box-shadow:0 2px 8px rgba(217,119,6,.45),inset 0 1px 0 rgba(255,255,255,.6)}
html[data-bs-theme=light] .sxu-bar{background:rgba(15,23,42,.12)}
html[data-bs-theme=light] .sx-ll-copy{background:linear-gradient(180deg,#fff,#e6edf6)!important;border-color:#8fa3c0!important;color:#12335c!important}
html[data-bs-theme=light] .sxa-entry>span:first-child,html[data-bs-theme=light] .sxa-entry .sxa-ic{background:linear-gradient(180deg,#38a8e8,#0369a1)!important;color:#fff!important;border-color:#025583!important}

/* ---------- ریزتنظیم کادر کنترل و کادرهای بالا برای گوشی ---------- */
@media (max-width:575.98px){
  .sx-top-grid{grid-auto-rows:110px!important}
  .sx-box.sx-ctl{padding:4px 8px 3px!important}
  .sx-ctl .sx-ctl-title{font-size:.64rem;line-height:1.2;margin:0!important}
  .sx-ctl .sx-ctl-row{padding:0 1px!important}
  .sx-ctl .form-switch .form-check-input{width:40px!important;height:22px!important;border-radius:11px!important}
  .sx-ctl .form-switch .form-check-input::after{top:2px;left:2px;width:18px;height:18px}
  .sx-ctl .form-switch .form-check-input:checked::after{transform:translateX(18px)}
  .sx-ctl .sxl{font-size:1.02rem!important;min-width:22px}
  .sx-ctl .sxu-telem .sxt-btn{width:40px;height:22px;border-radius:11px;font-size:.72rem}
  .sxl svg.sxled{width:.95em;height:1.3em}
}
@media (min-width:576px){.sx-ctl .form-switch .form-check-input,.sx-ctl .sxu-telem .sxt-btn{width:42px!important}.sx-ctl .form-switch .form-check-input:checked::after{transform:translateX(18px)}}
