*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
:root{
  --sky1:#29B6F6;--btn-grad:linear-gradient(90deg,#29B6F6,#26C6DA);
  --blue-grad:linear-gradient(160deg,#1976D2 0%,#29B6F6 45%,#4DD0E1 100%);
  --bg:#F5F5F5;--text2:#757575;--text3:#BDBDBD;--radius:12px;
  --ctrl-bg:#EDE7F6;
}
html,body{width:100%;height:100%;font-family:'Nunito',sans-serif;background:var(--bg);overflow:hidden;}
/* Mobile: full screen, no mockup */
.phone{position:fixed;inset:0;width:100%;height:100%;background:var(--bg);overflow:hidden;display:flex;flex-direction:column;}
/* Desktop fallback page */
#desktop-page{display:none;position:fixed;inset:0;background:linear-gradient(160deg,#1565C0 0%,#29B6F6 50%,#4DD0E1 100%);align-items:center;justify-content:center;z-index:9999;}
.dp-card{background:rgba(255,255,255,.12);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.25);border-radius:24px;padding:40px 36px;max-width:420px;width:90%;display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center;}
.dp-logo{width:100px;height:100px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 32px rgba(0,0,0,.2);overflow:hidden;}
.dp-logo img{width:100px;height:100px;object-fit:cover;border-radius:18px;}
.dp-title{font-size:28px;font-weight:800;color:#fff;line-height:1.2;}
.dp-subtitle{font-size:16px;font-weight:600;color:rgba(255,255,255,.85);letter-spacing:1.5px;margin-top:-8px;}
.dp-info{background:rgba(255,255,255,.15);border-radius:14px;padding:18px 20px;border:1px solid rgba(255,255,255,.2);}
.dp-info-text{font-size:14px;color:rgba(255,255,255,.9);line-height:1.65;font-weight:500;}
.dp-mobile-icon{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px;}
.dp-mobile-icon svg{width:22px;height:22px;stroke:rgba(255,255,255,.7);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.dp-mobile-icon span{font-size:13px;color:rgba(255,255,255,.7);font-weight:600;}
@media(min-width:600px){
  body{overflow:auto;}
  .phone{display:none!important;}
  #desktop-page{display:flex!important;}
}
@media(max-width:599px){
  #desktop-page{display:none!important;}
  .phone{display:flex!important;}
}
.screen{position:absolute;inset:0;display:none;flex-direction:column;background:#fff;z-index:1;}
.screen.active{display:flex;}

/* LOGIN */
.login-hero{height:310px;position:relative;overflow:hidden;flex-shrink:0;background:var(--blue-grad);}
.login-title{position:static;text-align:center;color:#fff;font-size:26px;font-weight:800;line-height:1.3;padding:0 20px;text-shadow:0 2px 12px rgba(0,0,0,.15);}
.login-body{flex:1;padding:40px 28px 32px;display:flex;flex-direction:column;gap:20px;background:#fff;}
.login-field{display:flex;flex-direction:column;border-bottom:1.5px solid #E0E0E0;padding-bottom:6px;}
.login-field label{font-size:15px;color:#9E9E9E;font-weight:500;margin-bottom:4px;}
.login-field input{border:none;outline:none;font-size:16px;font-family:'Nunito',sans-serif;color:#212121;background:transparent;padding:4px 0;}
.login-btn{margin-top:12px;background:var(--btn-grad);color:#fff;border:none;border-radius:30px;padding:16px;font-size:17px;font-family:'Nunito',sans-serif;font-weight:600;cursor:pointer;box-shadow:0 4px 20px rgba(41,182,246,.4);}
.login-btn:active{transform:scale(.98);}

/* SHARED HEADER */
.app-header{flex-shrink:0;background:var(--blue-grad);padding:28px 16px 10px;display:flex;align-items:center;justify-content:space-between;}
.app-header .back-btn{width:36px;height:36px;border:none;background:rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.app-header .back-btn svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
/* Bell button dengan badge */
.bell-btn{position:relative;}
.bell-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;background:#EF5350;border-radius:8px;border:2px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;font-size:8px;color:#fff;font-weight:800;padding:0 3px;pointer-events:none;}
/* Runtime notif card (RSRP alert) — sedikit berbeda dari API notif */
.notif-runtime{border-left:3px solid #EF5350;}
.app-header .hdr-title{flex:1;text-align:center;color:#fff;font-size:18px;font-weight:700;}
.app-header .hdr-badge{background:rgba(255,255,255,.25);color:#fff;font-size:11px;font-weight:800;padding:3px 9px;border-radius:10px;}
.app-header .Notifications-btn{background:rgba(255,255,255,.2);color:#fff;border:none;font-size:13px;font-weight:700;padding:6px 14px;border-radius:20px;cursor:pointer;}
.app-header .hdr-spacer{width:36px;}
.header-wave{flex-shrink:0;margin-top:-1px;display:block;width:100%;}

/* NAV */
.bottom-nav{flex-shrink:0;display:flex;background:#fff;border-top:1px solid #EEE;padding:4px 0 8px;align-items:center;}
.nav-tab,.nav-tab-center{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 6px;cursor:pointer;border:none;background:transparent;font-family:'Nunito',sans-serif;border-radius:12px;transition:background .15s;}
.nav-tab svg,.nav-tab-center svg{width:26px;height:26px;stroke:#78909C;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .15s;}
.nav-tab span,.nav-tab-center span{font-size:11px;color:#78909C;font-weight:600;transition:color .15s;}
.nav-tab.active,.nav-tab-center.active{background:rgba(41,182,246,.12);}
.nav-tab.active svg,.nav-tab-center.active svg{stroke:var(--sky1);}
.nav-tab.active span,.nav-tab-center.active span{color:var(--sky1);}
/* nav-fab hidden — finder is a regular tab now */
.nav-fab{display:none;}

/* SCREEN BODY */
.screen-body{flex:1;overflow-y:auto;padding:14px;background:#F5F5F5;}

/* DEVICE CARD */
.imsi-bar{background:#fff;border-radius:8px;padding:10px 16px;margin-bottom:12px;font-size:14px;color:#757575;font-weight:600;display:flex;align-items:center;gap:6px;}
.imsi-count{color:var(--sky1);font-weight:800;font-size:16px;}
.device-card{background:#fff;border-radius:var(--radius);padding:12px 14px;display:flex;align-items:flex-start;gap:12px;box-shadow:0 1px 6px rgba(0,0,0,.06);margin-bottom:10px;cursor:pointer;}
.device-icon-wrap{width:58px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:4px;}
.device-icon{width:52px;height:52px;background:#F5F5F5;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.device-icon svg{width:32px;height:32px;stroke:#90A4AE;fill:none;stroke-width:1.5;}
.device-status{font-size:10px;color:#EF5350;font-weight:700;text-align:center;}
.device-info{flex:1;min-width:0;}
/* Header box 2 baris */
.device-header-row{background:#F5F8FF;border:1px solid #EEF2FF;border-radius:8px;padding:8px 10px;margin-bottom:7px;display:flex;flex-direction:column;gap:5px;}
/* Baris 1: ID+Gen kiri | Toggle kanan */
.dhr-row1{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.device-id-gen{display:flex;align-items:center;gap:6px;flex:1;min-width:0;}
.device-name{font-size:15px;font-weight:800;color:#212121;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.device-gen-badge{font-size:10px;font-weight:800;padding:2px 7px;border-radius:6px;line-height:1.5;flex-shrink:0;}
/* Toggle rata kanan baris 1 */
.device-toggle{width:44px;height:26px;border-radius:13px;background:#E0E0E0;position:relative;cursor:pointer;transition:background .2s;border:none;flex-shrink:0;}
.device-toggle.on{background:var(--sky1);}
.device-toggle::after{content:'';position:absolute;width:20px;height:20px;border-radius:50%;background:#fff;top:3px;left:3px;transition:transform .2s;box-shadow:0 1px 4px rgba(0,0,0,.2);}
.device-toggle.on::after{transform:translateX(18px);}
/* Baris 2: Operator kiri | Spinner rata kanan */
.dhr-row2{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.device-op-label{font-size:12px;color:#29B6F6;font-weight:700;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.dev-spinner-placeholder{width:18px;height:18px;flex-shrink:0;}
/* Sembunyikan kolom kanan lama */
.device-card-right{display:none;}
.device-imsi-row{font-size:12px;color:#757575;margin-bottom:4px;}
.device-band-label{font-size:11px;color:#757575;font-weight:600;margin-bottom:2px;}
.device-ear-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 16px;}
.device-ear-item{font-size:11px;color:#757575;}
.device-ear-item span{color:#212121;font-weight:700;}


/* EMPTY */
.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;gap:12px;}
.empty-tower{width:160px;height:160px;background:radial-gradient(ellipse at center,#DCEEFB 0%,#E8F5FE 60%,transparent 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;}
.cloud1,.cloud2{position:absolute;background:#FFC107;border-radius:20px;}
.cloud1{width:36px;height:18px;top:24px;left:16px;}
.cloud2{width:28px;height:14px;top:12px;right:8px;}
.empty-text{font-size:14px;color:#BDBDBD;font-weight:600;}

/* DATA TABS */
.data-tab{flex:1;padding:13px 0;font-size:14px;font-weight:700;color:#9E9E9E;border:none;background:transparent;cursor:pointer;font-family:'Nunito',sans-serif;border-bottom:2.5px solid transparent;transition:all .2s;}
.data-tab.active{color:var(--sky1);border-bottom-color:var(--sky1);}

/* IMSI TABLE */
.imsi-tbl-hdr{display:grid;gap:0;padding:9px 10px;background:#F9F9F9;border-bottom:1px solid #EEE;position:sticky;top:0;z-index:2;}
.imsi-tbl-hdr span{font-size:10px;font-weight:700;color:#9E9E9E;text-transform:uppercase;}
.imsi-tbl-row{display:grid;padding:9px 10px;border-bottom:1px solid #F5F5F5;cursor:pointer;transition:background .15s;}
.imsi-tbl-row:active{background:#F5F5F5;}
.imsi-cell{font-size:11px;color:#3D3A50;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.imsi-cell.imsi-num{font-weight:700;color:#212121;}
.imsi-cell.mcc{color:#5C6BC0;font-weight:600;}
.imsi-cell.band-val{color:#29B6F6;font-weight:700;justify-content:center;}
.imsi-cell.earfcn-val{font-weight:700;color:#212121;}
.imsi-cell.times-val{font-weight:700;color:#5C6BC0;justify-content:center;}
.imsi-cell.time{font-size:10px;color:#9E9E9E;}

/* IMSI SWIPE PAGER */
.imsi-pager{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;}
.imsi-pages-wrap{display:flex;width:100%;height:100%;transition:transform .28s ease;cursor:grab;will-change:transform;}
.imsi-pages-wrap:active{cursor:grabbing;}
.imsi-page{min-width:100%;width:100%;flex-shrink:0;display:flex;flex-direction:column;overflow:hidden;}
.imsi-dots{flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:6px;padding:6px 0;background:#fff;border-top:1px solid #F0F0F0;}
.imsi-dot{width:6px;height:6px;border-radius:50%;background:#E0E0E0;transition:background .2s,width .2s;cursor:pointer;}
.imsi-dot.active{background:var(--sky1);width:18px;border-radius:3px;}

/* Page 1 columns */
.imsi-page1-hdr,.imsi-page1-row{grid-template-columns:130px 1fr 52px 70px;}
/* Page 2 columns */
.imsi-page2-hdr,.imsi-page2-row{grid-template-columns:62px 55px 1fr;}

/* SPINNER */
@keyframes spin{to{transform:rotate(360deg);}}
.dev-spinner{width:18px;height:18px;border:2.5px solid #E0E0E0;border-top-color:var(--sky1);border-radius:50%;animation:spin .7s linear infinite;margin:4px auto 0;}

/* ADD EQUIPMENT FAB */
.add-eq-fab{position:fixed;bottom:80px;right:16px;width:52px;height:52px;border-radius:50%;background:var(--btn-grad);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 18px rgba(41,182,246,.45);z-index:50;}
.add-eq-fab svg{width:24px;height:24px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}

/* ADD EQUIPMENT MODAL */
.add-eq-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:400;display:none;align-items:flex-end;justify-content:center;}
.add-eq-overlay.active{display:flex;}
.add-eq-sheet{background:#fff;width:100%;max-width:390px;border-radius:20px 20px 0 0;padding:0 0 32px;max-height:88vh;overflow-y:auto;animation:slideUp .28s ease;}

/* DATA CARDS */
.data-card{background:#fff;border-radius:var(--radius);padding:16px;margin-bottom:10px;box-shadow:0 1px 6px rgba(0,0,0,.05);}
.data-card-title{font-size:13px;color:#757575;font-weight:700;margin-bottom:10px;}
.data-stat-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid #F5F5F5;}
.data-stat-row:last-child{border-bottom:none;}
.data-stat-label{font-size:13px;color:#757575;}
.data-stat-val{font-size:14px;font-weight:700;color:#212121;}
.chart-wrap{height:100px;display:flex;align-items:flex-end;gap:3px;margin-top:8px;padding:4px;background:#F9F9F9;border-radius:8px;}
.bar{flex:1;border-radius:3px 3px 0 0;background:var(--btn-grad);opacity:.7;}

/* SETTING */
.setting-group{background:#fff;margin-bottom:8px;}
.setting-row{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;border-bottom:1px solid #F5F5F5;cursor:pointer;}
.setting-row:last-child{border-bottom:none;}
.setting-row-label{font-size:15px;color:#212121;font-weight:500;}
.setting-row-val{font-size:15px;color:#757575;display:flex;align-items:center;gap:6px;}
.setting-section{font-size:13px;color:var(--sky1);font-weight:700;padding:12px 16px 4px;background:#fff;}
.chevron-sm{width:16px;height:16px;stroke:#BDBDBD;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}

/* PARAM */
.param-group{background:#fff;margin-bottom:6px;}
.param-row{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #F5F5F5;cursor:pointer;}
.param-row:last-child{border-bottom:none;}
.param-label{font-size:15px;color:#212121;font-weight:500;}
.param-val{font-size:15px;color:#757575;display:flex;align-items:center;gap:4px;}
.param-section{font-size:14px;color:var(--sky1);font-weight:700;padding:12px 16px 6px;background:#fff;border-bottom:1px solid #F5F5F5;}
.band-tag{background:#E3F2FD;color:var(--sky1);font-size:12px;font-weight:700;padding:2px 8px;border-radius:6px;}
.earfcn-val{font-size:15px;color:#212121;font-weight:700;margin-left:8px;}
.chevron-r{width:18px;height:18px;stroke:#BDBDBD;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.drop-arr{width:16px;height:16px;stroke:#BDBDBD;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.deliver-wrap{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:390px;padding:12px 28px 28px;background:#F5F5F5;border-top:1px solid #EEE;}
.deliver-btn{width:100%;background:var(--btn-grad);color:#fff;border:none;border-radius:30px;padding:16px;font-size:16px;font-family:'Nunito',sans-serif;font-weight:700;letter-spacing:1px;cursor:pointer;text-transform:uppercase;box-shadow:0 4px 18px rgba(41,182,246,.35);}
.deliver-btn:active{transform:scale(.98);}

/* EARFCN */
.earfcn-card{background:#fff;border-radius:var(--radius);margin-bottom:12px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.earfcn-card-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;}
.earfcn-card-title{font-size:16px;font-weight:800;color:var(--sky1);}
.earfcn-empty-btn{display:flex;align-items:center;gap:4px;font-size:12px;color:#757575;font-weight:600;cursor:pointer;background:none;border:none;font-family:'Nunito',sans-serif;}
.earfcn-empty-btn svg{width:16px;height:16px;stroke:#BDBDBD;fill:none;stroke-width:1.8;}
.earfcn-field{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid #F5F5F5;}
.earfcn-field-label{font-size:14px;color:#757575;font-weight:500;}
.earfcn-select{display:flex;align-items:center;gap:4px;background:#F5F5F5;border-radius:8px;padding:7px 12px;min-width:100px;justify-content:space-between;cursor:pointer;}
.earfcn-select span{font-size:14px;font-weight:700;color:#212121;}
.earfcn-select.placeholder span{color:#BDBDBD;}

/* WARNING */
.Notifications-card{background:#fff;border-radius:var(--radius);margin-bottom:10px;padding:14px 16px;display:flex;align-items:flex-start;gap:12px;box-shadow:0 1px 4px rgba(0,0,0,.05);}
.w-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;margin-top:4px;}
.w-red{background:#EF5350;}.w-orange{background:#FF9800;}.w-green{background:#4CAF50;}
.w-info{flex:1;}
.w-title{font-size:14px;font-weight:700;color:#212121;margin-bottom:2px;}
.w-desc{font-size:12px;color:#757575;line-height:1.4;}
.w-time{font-size:11px;color:#BDBDBD;margin-top:4px;}

/* ═══ CONSOLE SCREEN ═══ */
#screen-console{background:#fff;flex-direction:column;overflow:hidden;}

.con-topbar{flex-shrink:0;background:#fff;padding:28px 16px 8px;display:flex;align-items:center;justify-content:space-between;}
.con-menu-btn{background:none;border:none;cursor:pointer;padding:4px;}
.con-menu-btn svg{width:22px;height:22px;stroke:#5D5A6F;fill:none;stroke-width:2;stroke-linecap:round;}
.con-batt{display:flex;align-items:center;gap:5px;}
.con-batt-pct{font-size:13px;font-weight:700;color:#5D5A6F;}
.con-main-title{font-size:18px;font-weight:800;color:#3D3A50;letter-spacing:.3px;}
.con-title-right{display:flex;align-items:center;gap:14px;}
.con-icon-btn{background:none;border:none;cursor:pointer;padding:4px;}
.con-icon-btn svg{width:22px;height:22px;stroke:#5D5A6F;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* Target info card */
.tgt-card{margin:0 10px 6px;background:#F8F8FF;border-radius:14px;padding:9px 10px 9px 12px;display:flex;align-items:flex-start;gap:8px;box-shadow:0 2px 10px rgba(0,0,0,.08);flex-shrink:0;position:relative;border:1px solid #EEE;}
.tgt-badge{
  width:46px;height:46px;border-radius:50%;border:2.5px solid #EF5350;
  display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:#EF5350;flex-shrink:0;
}
.tgt-qr{width:52px;height:52px;border-radius:8px;background:#f0f0f0;flex-shrink:0;overflow:hidden;}
.tgt-info{flex:1;min-width:0;}
.tgt-grid{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;}
.ti-lbl{font-size:11px;color:#9E9E9E;font-weight:600;white-space:nowrap;}
.ti-val{font-size:11px;color:#212121;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tgt-note{
  width:30px;height:30px;background:#fff;border:1px solid #E0E0E0;border-radius:8px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
  box-shadow:0 1px 4px rgba(0,0,0,.08);position:relative;margin-top:-2px;
}
.tgt-note svg{width:16px;height:16px;stroke:#5D5A6F;fill:none;stroke-width:1.8;}
.notif-red{position:absolute;top:-5px;right:-5px;width:14px;height:14px;background:#EF5350;border-radius:50%;border:2px solid #fff;display:flex;align-items:center;justify-content:center;font-size:8px;color:#fff;font-weight:800;}

/* GAUGE */
.gauge-wrap{flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative;height:220px;}
.gauge-container{position:relative;width:220px;height:220px;flex-shrink:0;}
.gauge-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;}
.gauge-num{font-size:58px;font-weight:800;color:#3D3A50;line-height:1;letter-spacing:-2px;}
.gauge-unit{font-size:13px;color:#9E9E9E;font-weight:600;margin-top:2px;}

/* RSRP ALERT BAR */
.rsrp-alert{flex-shrink:0;display:flex;align-items:center;gap:8px;margin:0 10px 6px;padding:8px 12px;border-radius:10px;font-size:12px;font-weight:600;line-height:1.4;}
.rsrp-alert-info{background:#E3F2FD;color:#1565C0;}
.rsrp-alert-info svg{stroke:#1565C0;}
.rsrp-alert-warn{background:#FFF3E0;color:#E65100;animation:alertPulse 1s ease-in-out infinite alternate;}
.rsrp-alert-warn svg{stroke:#E65100;}
@keyframes alertPulse{from{background:#FFF3E0;}to{background:#FFE0B2;}}

/* CONSOLE TABS */
.con-tabs{flex-shrink:0;background:#F5F5F5;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;border-top:1px solid #EEE;border-bottom:1px solid #EEE;gap:3px;}
.con-tab{font-size:11px;font-weight:700;color:#9E9E9E;padding:6px 8px;border-radius:20px;cursor:pointer;background:none;border:none;font-family:'Nunito',sans-serif;transition:all .2s;white-space:nowrap;}
.con-tab.active{color:#fff;background:var(--btn-grad);}
.con-tab-spacer{flex:1;}
.con-icon-tab{width:34px;height:34px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .2s;}
.con-icon-tab svg{width:18px;height:18px;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.con-icon-tab.active-btn{background:linear-gradient(90deg,#4FC3F7,#29B6F6);box-shadow:0 2px 8px rgba(41,182,246,.4);}
.con-icon-tab.active-btn svg{stroke:#fff;}
.con-icon-tab.paused-btn{background:#FFF0F0;border:1.5px solid #EF5350;}
.con-icon-tab.paused-btn svg{stroke:#EF5350;}
.con-icon-tab.scan-btn-ic{background:var(--btn-grad);box-shadow:0 2px 8px rgba(41,182,246,.4);}
.con-icon-tab.scan-btn-ic svg{stroke:#fff;}

/* CONSOLE ACTION BAR — hidden now, buttons moved to tab row */
.con-action-bar{display:none;}
.con-snow-btn{display:none;}
.con-started-btn{display:none;}
.con-scan-btn{display:none;}
/* con-started-btn and con-scan-btn replaced by .con-icon-tab */

/* TARGET LIST */
.tgt-row{background:#fff;border-radius:12px;margin-bottom:8px;padding:12px 14px;display:flex;align-items:center;gap:12px;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.tgt-row:active{box-shadow:0 2px 12px rgba(123,111,160,.3);}
.tgt-row-sig{width:42px;height:42px;border-radius:50%;border:2.5px solid #EF5350;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#EF5350;flex-shrink:0;}
.tgt-row-sig.med{border-color:#FF9800;color:#FF9800;}
.tgt-row-sig.low{border-color:#9E9E9E;color:#9E9E9E;}
.tgt-row-info{flex:1;min-width:0;}
.tgt-row-imsi{font-size:13px;font-weight:800;color:#212121;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.tgt-row-meta{font-size:11px;color:#9E9E9E;margin-top:2px;}
.tgt-row-t{font-size:11px;color:#BDBDBD;flex-shrink:0;}

/* ANALYSIS */
.analysis-card{background:#fff;border-radius:12px;margin-bottom:8px;padding:14px;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.analysis-title{font-size:12px;font-weight:700;color:#9E9E9E;margin-bottom:10px;text-transform:uppercase;letter-spacing:.5px;}
.abar-row{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.abar-lbl{font-size:11px;color:#5D5A6F;font-weight:600;width:45px;flex-shrink:0;}
.abar-track{flex:1;height:8px;background:#F0F0F0;border-radius:4px;overflow:hidden;}
.abar-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,#80CBC4,#4DB6AC);}
.abar-val{font-size:11px;font-weight:700;color:#3D3A50;width:20px;text-align:right;flex-shrink:0;}
.astat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.astat{background:#F5F5F5;border-radius:10px;padding:10px 12px;}
.astat-val{font-size:20px;font-weight:800;color:#3D3A50;}
.astat-lbl{font-size:11px;color:#9E9E9E;font-weight:600;margin-top:2px;}

/* DEVICE CHANNEL ROWS */
.dev-channel{display:flex;align-items:center;gap:6px;padding:6px 0;border-top:1px solid #F5F5F5;}
.dev-channel:first-child{border-top:none;}
.dev-ch-band-wrap{flex-shrink:0;}
.dev-ch-earfcn{font-size:10px;color:#9E9E9E;margin-top:1px;}
.dev-ch-band{font-size:11px;font-weight:800;padding:3px 7px;border-radius:6px;display:inline-block;}
.dev-ch-info{flex:1;min-width:0;}
.dev-ch-freq{font-size:12px;color:#757575;font-weight:600;}
.dev-ch-imsi{font-size:11px;color:#9E9E9E;}
.dev-ch-imsi b{color:#212121;font-weight:800;}
.dev-ch-gen{font-size:10px;font-weight:800;border:1.5px solid;border-radius:5px;padding:1px 5px;flex-shrink:0;}

/* CONSOLE CHANNEL LIST (inside console screen) */
.con-ch-list{flex-shrink:0;overflow-y:auto;max-height:140px;padding:0 10px 4px;}
.con-ch-row{background:#fff;border-radius:10px;margin-bottom:5px;padding:7px 10px;display:flex;align-items:center;gap:8px;box-shadow:0 1px 4px rgba(0,0,0,.06);}
.con-ch-band{font-size:12px;font-weight:800;padding:3px 8px;border-radius:7px;}
.con-ch-info{flex:1;}
.con-ch-freq{font-size:13px;color:#5D5A6F;font-weight:600;}
.con-ch-imsi{font-size:11px;color:#9E9E9E;margin-top:1px;}
.con-ch-imsi b{color:#3D3A50;font-weight:800;}
.con-ch-gen{font-size:10px;font-weight:800;border:1.5px solid;border-radius:5px;padding:1px 6px;flex-shrink:0;}
.con-ch-toggle{width:40px;height:24px;border-radius:12px;background:#E0E0E0;position:relative;cursor:pointer;border:none;flex-shrink:0;transition:background .2s;}
.con-ch-toggle.on{background:var(--sky1);}
.con-ch-toggle::after{content:'';position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:3px;left:3px;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.con-ch-toggle.on::after{transform:translateX(16px);}

/* CONSOLE BOTTOM NAV */
.con-bottom-nav{flex-shrink:0;display:flex;background:#fff;border-top:1px solid #EEE;padding:6px 0 8px;}

/* Scrollable sub-panel */
.con-sub-panel{flex:1;overflow:hidden;display:none;flex-direction:column;position:relative;}
.con-sub-panel.active{display:flex;}

/* SHEETS */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:300;display:none;align-items:flex-end;justify-content:center;}
.overlay.active{display:flex;}
.bottom-sheet{background:#fff;width:100%;max-width:390px;border-radius:18px 18px 0 0;padding:16px 0 32px;max-height:70vh;overflow-y:auto;}
.sheet-handle{width:36px;height:4px;background:#E0E0E0;border-radius:2px;margin:0 auto 16px;}
.sheet-title{font-size:15px;font-weight:700;color:#212121;padding:0 16px 10px;border-bottom:1px solid #F5F5F5;}
.sheet-option{padding:14px 20px;font-size:15px;font-weight:600;color:#212121;border-bottom:1px solid #F5F5F5;cursor:pointer;display:flex;align-items:center;justify-content:space-between;}
.sheet-option:last-child{border-bottom:none;}
.sheet-option.sel{color:var(--sky1);}
.check-svg{width:18px;height:18px;stroke:var(--sky1);fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}

/* TOAST */
.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%) translateY(20px);background:#323232;color:#fff;padding:10px 20px;border-radius:20px;font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:all .3s;z-index:999;white-space:nowrap;}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

/* ADD TARGET FAB */
.add-tgt-fab{position:absolute;bottom:16px;right:16px;width:44px;height:44px;border-radius:50%;background:var(--btn-grad);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 16px rgba(41,182,246,.45);z-index:10;}
.add-tgt-fab svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}

/* ADD TARGET MODAL */
.add-tgt-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:400;display:none;align-items:flex-end;justify-content:center;}
.add-tgt-overlay.active{display:flex;}
.add-tgt-sheet{background:#fff;width:100%;max-width:390px;border-radius:20px 20px 0 0;padding:0 0 32px;max-height:90vh;overflow-y:auto;animation:slideUp .28s ease;}
@keyframes slideUp{from{transform:translateY(100%);}to{transform:translateY(0);}}
.add-tgt-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 10px;}
.add-tgt-title{font-size:16px;font-weight:800;color:#212121;}
.add-tgt-close{width:30px;height:30px;border-radius:50%;border:none;background:#F5F5F5;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.add-tgt-close svg{width:16px;height:16px;stroke:#757575;fill:none;stroke-width:2.5;stroke-linecap:round;}
.add-tgt-body{padding:0 20px;}
.add-tgt-field{margin-bottom:14px;}
.add-tgt-label{font-size:12px;color:#9E9E9E;font-weight:700;margin-bottom:5px;text-transform:uppercase;letter-spacing:.4px;display:block;}
.add-tgt-input{width:100%;border:1.5px solid #E0E0E0;border-radius:10px;padding:11px 14px;font-size:15px;font-family:'Nunito',sans-serif;color:#212121;outline:none;background:#fff;transition:border-color .2s;box-sizing:border-box;}
.add-tgt-input:focus{border-color:var(--sky1);}
.add-tgt-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.add-tgt-select{width:100%;border:1.5px solid #E0E0E0;border-radius:10px;padding:11px 14px;font-size:15px;font-family:'Nunito',sans-serif;color:#212121;outline:none;background:#fff;appearance:none;-webkit-appearance:none;cursor:pointer;transition:border-color .2s;box-sizing:border-box;}
.add-tgt-select:focus{border-color:var(--sky1);}
.add-tgt-select-wrap{position:relative;}
.add-tgt-select-wrap::after{content:'';position:absolute;right:14px;top:50%;transform:translateY(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #9E9E9E;pointer-events:none;}
.add-tgt-submit{width:100%;background:var(--btn-grad);color:#fff;border:none;border-radius:30px;padding:15px;font-size:16px;font-family:'Nunito',sans-serif;font-weight:700;cursor:pointer;margin-top:6px;box-shadow:0 4px 18px rgba(41,182,246,.35);}
.add-tgt-submit:active{transform:scale(.98);}
.add-tgt-divider{height:1px;background:#F0F0F0;margin:2px 0 16px;}
.signal-preview-bar{flex:1;height:6px;background:#F0F0F0;border-radius:3px;overflow:hidden;margin-top:6px;}
.signal-preview-fill{height:100%;border-radius:3px;background:var(--btn-grad);transition:width .3s;}
.imsi-hint{font-size:11px;color:#BDBDBD;margin-top:4px;}
.add-tgt-info-box{background:#E3F2FD;border-radius:10px;padding:10px 14px;margin-bottom:16px;display:flex;gap:10px;align-items:flex-start;}
.add-tgt-info-box svg{width:16px;height:16px;stroke:var(--sky1);fill:none;stroke-width:2;flex-shrink:0;margin-top:1px;}
.add-tgt-info-text{font-size:12px;color:#1565C0;line-height:1.5;font-weight:600;}

/* NOTES MODAL */
.notes-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:400;display:none;align-items:flex-end;justify-content:center;}
.notes-overlay.active{display:flex;}
.notes-sheet{background:#fff;width:100%;max-width:390px;border-radius:20px 20px 0 0;padding:0 0 24px;max-height:75vh;display:flex;flex-direction:column;animation:slideUp .28s ease;}
.notes-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px 10px;border-bottom:1px solid #F0F0F0;flex-shrink:0;}
.notes-title{font-size:15px;font-weight:800;color:#212121;}
.notes-close{width:28px;height:28px;border-radius:50%;border:none;background:#F5F5F5;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.notes-close svg{width:14px;height:14px;stroke:#757575;fill:none;stroke-width:2.5;stroke-linecap:round;}
.notes-list{flex:1;overflow-y:auto;padding:8px 16px;}
.note-item{display:flex;align-items:flex-start;gap:8px;padding:10px 0;border-bottom:1px solid #F5F5F5;}
.note-item:last-child{border-bottom:none;}
.note-dot{width:6px;height:6px;border-radius:50%;background:var(--sky1);flex-shrink:0;margin-top:5px;}
.note-text{flex:1;font-size:13px;color:#212121;line-height:1.4;}
.note-del{width:22px;height:22px;border:none;background:none;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;opacity:.5;}
.note-del:hover{opacity:1;}
.note-del svg{width:13px;height:13px;stroke:#EF5350;fill:none;stroke-width:2.5;stroke-linecap:round;}
.note-empty{padding:24px 0;text-align:center;font-size:13px;color:#BDBDBD;font-weight:600;}
.notes-add{flex-shrink:0;display:flex;gap:8px;padding:10px 16px 0;border-top:1px solid #F0F0F0;}
.notes-input{flex:1;border:1.5px solid #E0E0E0;border-radius:10px;padding:9px 12px;font-size:13px;font-family:'Nunito',sans-serif;color:#212121;outline:none;}
.notes-input:focus{border-color:var(--sky1);}
.notes-submit{width:36px;height:36px;border-radius:50%;background:var(--btn-grad);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;}
.notes-submit svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}

/* CONFIRM DIALOG */
.confirm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:500;display:none;align-items:center;justify-content:center;}
.confirm-overlay.active{display:flex;}
.confirm-box{background:#fff;border-radius:16px;padding:22px 20px 16px;width:280px;box-shadow:0 8px 32px rgba(0,0,0,.2);}
.confirm-title{font-size:15px;font-weight:800;color:#212121;margin-bottom:6px;}
.confirm-msg{font-size:13px;color:#757575;line-height:1.5;margin-bottom:18px;}
.confirm-btns{display:flex;gap:8px;}
.confirm-cancel{flex:1;padding:10px;border:1.5px solid #E0E0E0;border-radius:10px;font-size:13px;font-weight:700;color:#757575;background:#fff;cursor:pointer;font-family:'Nunito',sans-serif;}
.confirm-ok{flex:1;padding:10px;border:none;border-radius:10px;font-size:13px;font-weight:700;color:#fff;background:#EF5350;cursor:pointer;font-family:'Nunito',sans-serif;}

/* GSM TABLE */
.gsm-tbl-hdr{display:grid;grid-template-columns:1fr 36px 36px 44px 44px 1fr;gap:0;padding:7px 10px;background:#F5F5F5;border-bottom:1px solid #EEE;position:sticky;top:0;z-index:2;}
.gsm-tbl-hdr span{font-size:9px;font-weight:700;color:#9E9E9E;text-transform:uppercase;}
.gsm-row{display:grid;grid-template-columns:1fr 36px 36px 44px 44px 1fr;padding:8px 10px;border-bottom:1px solid #F5F5F5;align-items:center;}
.g-op{font-size:11px;font-weight:600;color:#212121;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.g-mcc,.g-mnc{font-size:10px;color:#9E9E9E;font-weight:600;}
.g-band{font-size:10px;font-weight:800;padding:2px 5px;border-radius:5px;text-align:center;}
.g-4g{background:#E3F2FD;color:#1976D2;}
.g-5g{background:#FFF3E0;color:#E65100;}
.g-freq{font-size:10px;color:#5D5A6F;font-weight:600;text-align:center;}
.g-arfcn{font-size:10px;color:#757575;font-weight:500;}

/* RSRP POPUP */
.rsrp-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:450;display:none;align-items:flex-end;justify-content:center;}
.rsrp-overlay.active{display:flex;}
.rsrp-sheet{background:#fff;width:100%;max-width:390px;border-radius:20px 20px 0 0;padding:0 0 32px;animation:slideUp .28s ease;}
.rsrp-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;border-bottom:1px solid #F0F0F0;}
.rsrp-title{font-size:16px;font-weight:800;color:#212121;}
.rsrp-close{width:28px;height:28px;border-radius:50%;border:none;background:#F5F5F5;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.rsrp-close svg{width:14px;height:14px;stroke:#757575;fill:none;stroke-width:2.5;stroke-linecap:round;}
.rsrp-body{padding:16px 20px;}
.rsrp-stat-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #F5F5F5;}
.rsrp-stat-row:last-of-type{border-bottom:none;}
.rsrp-stat-lbl{font-size:13px;color:#757575;font-weight:600;}
.rsrp-stat-val{font-size:14px;font-weight:800;color:#212121;}
.rsrp-stat-val.blue{color:var(--sky1);}
.rsrp-stat-val.green{color:#4CAF50;}
.rsrp-info-box{background:#E3F2FD;border-radius:12px;padding:14px 16px;margin-top:14px;}
.rsrp-info-title{font-size:12px;font-weight:800;color:#1565C0;margin-bottom:6px;display:flex;align-items:center;gap:6px;}
.rsrp-info-title svg{width:14px;height:14px;stroke:#1565C0;fill:none;stroke-width:2;}
.rsrp-info-text{font-size:12px;color:#1565C0;line-height:1.6;}
.rsrp-meter{margin-top:14px;}
.rsrp-meter-label{font-size:11px;color:#9E9E9E;font-weight:700;margin-bottom:6px;text-transform:uppercase;letter-spacing:.4px;}
.rsrp-bar-wrap{height:10px;background:#F0F0F0;border-radius:5px;overflow:hidden;position:relative;}
.rsrp-bar-fill{height:100%;border-radius:5px;transition:width .5s ease;background:linear-gradient(90deg,#EF5350,#FF9800,#4CAF50);}
.rsrp-scale{display:flex;justify-content:space-between;margin-top:4px;}
.rsrp-scale span{font-size:10px;color:#9E9E9E;}

/* INCOMPATIBLE POPUP — Notifications style bottom sheet */
.incompat-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:500;display:none;align-items:flex-end;justify-content:center;}
.incompat-overlay.active{display:flex;}
.incompat-sheet{background:#F5F5F5;width:100%;max-width:390px;border-radius:20px 20px 0 0;padding:0 0 28px;max-height:85vh;overflow-y:auto;animation:slideUp .28s ease;}
.incompat-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px;background:#F5F5F5;}
.incompat-sheet-title{font-size:16px;font-weight:800;color:#212121;}
.incompat-sheet-close{width:28px;height:28px;border-radius:50%;border:none;background:#E0E0E0;display:flex;align-items:center;justify-content:center;cursor:pointer;}
.incompat-sheet-close svg{width:14px;height:14px;stroke:#757575;fill:none;stroke-width:2.5;stroke-linecap:round;}
.incompat-sheet-body{padding:0 14px;}

