/* ==========================================================================
   assets/css/redesign.css — UI/UX redesign layer (visual only)
   Loaded LAST. Changes colors, fonts, radius, shadows, borders, backgrounds.
   It deliberately sets NO width/height/position/display/flex/grid/overflow/
   z-index rules on layout containers, so sidebar behavior, page-opening
   frame (#content-area), announcement show/hide and responsive breakpoints
   keep working exactly as before. To roll back: remove the <link> to this file.
   ========================================================================== */

:root{
  --rd-blue:#2f80ed; --rd-blue-2:#1f6fe0; --rd-purple:#8b7cf6; --rd-sky:#7cc4fa;
  --rd-ink:#1b2340; --rd-muted:#6b7490; --rd-line:rgba(120,130,190,.16);
  --rd-glass:rgba(255,255,255,.62); --rd-glass-strong:rgba(255,255,255,.82);
  --rd-shadow:0 10px 30px rgba(80,90,160,.10); --rd-shadow-sm:0 4px 14px rgba(80,90,160,.08);
  --rd-radius:20px; --rd-radius-sm:12px;
  --font-sans:'Inter','Hind Siliguri','Noto Sans Bengali',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --text-white:#1b2340; --text-muted:#6b7490; --border-dark:rgba(120,130,190,.18);
  --bg-dark:#eef0fb; --radius-lg:18px; --radius-md:12px;
  --shadow-premium:0 10px 30px rgba(80,90,160,.10);
}

/* ---------- Typography ---------- */
body, button, input, select, textarea{font-family:var(--font-sans);}
body{font-size:18px;line-height:1.55;color:var(--rd-ink);}
.app-container h1,.app-container h2,.app-container h3,.app-container h4{letter-spacing:-.01em;color:var(--rd-ink);}

/* ---------- App background (pastel lavender / peach / mint) ---------- */
.app-container{
  background:
    radial-gradient(520px 420px at 4% 88%,rgba(236,150,238,.38),transparent 70%),
    radial-gradient(700px 520px at 30% -8%,rgba(150,160,240,.50),transparent 70%),
    radial-gradient(640px 520px at 98% 8%,rgba(255,206,190,.50),transparent 70%),
    radial-gradient(640px 520px at 100% 100%,rgba(170,235,210,.50),transparent 70%),
    linear-gradient(135deg,#e9ecfb 0%,#f1ecf8 50%,#f9eeee 100%) !important;
}

/* ---------- Sidebar (light glass, solid-blue active item) ---------- */
.app-container .sidebar{
  background:rgba(255,255,255,.55) !important;
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  border-right:1px solid rgba(255,255,255,.7) !important;
  box-shadow:6px 0 30px rgba(90,100,170,.08) !important;
}
.app-container .sidebar::before{display:none !important;}
.app-container .sidebar-header{background:transparent !important;border-bottom:0 !important;}
.app-container .sidebar-header h2{color:var(--rd-ink) !important;}
.app-container .sidebar-header h2 i{background:linear-gradient(135deg,var(--rd-blue),var(--rd-purple)) !important;color:#fff !important;box-shadow:0 6px 14px rgba(47,128,237,.30);}
.app-container .toggle-btn{background:rgba(255,255,255,.7) !important;border:1px solid var(--rd-line) !important;color:var(--rd-muted) !important;}
.app-container .toggle-btn:hover{background:#fff !important;color:var(--rd-blue) !important;}
.app-container .menu-search-container{background:transparent !important;}
.app-container #adminMenuSearch{background:rgba(255,255,255,.75) !important;border:1px solid var(--rd-line) !important;color:var(--rd-ink) !important;border-radius:14px !important;}
.app-container #adminMenuSearch::placeholder{color:#8d95b0 !important;}
.app-container #adminMenuSearch:focus{border-color:var(--rd-blue) !important;box-shadow:0 0 0 3px rgba(47,128,237,.14) !important;}
.app-container .menu-search-container i{color:#8d95b0 !important;}
.app-container .sidebar-user{background:rgba(255,255,255,.7) !important;border:1px solid rgba(255,255,255,.9) !important;border-radius:16px !important;box-shadow:var(--rd-shadow-sm);}
.app-container .sidebar-user:hover{background:#fff !important;border-color:rgba(47,128,237,.25) !important;}
.app-container .sidebar-user .user-details h4{color:var(--rd-ink) !important;}
.app-container .sidebar-user .user-details span{color:var(--rd-muted) !important;}
.app-container .sidebar-nav .nav-link{color:#4b5575 !important;border:1px solid transparent !important;border-left:1px solid transparent !important;border-radius:14px !important;font-weight:500;}
.app-container .sidebar-nav .nav-link i:first-child{color:#8d95b0 !important;}
.app-container .sidebar-nav .nav-link:hover{background:rgba(255,255,255,.85) !important;color:var(--rd-ink) !important;border-color:transparent !important;}
.app-container .sidebar-nav .nav-link:hover i:first-child{color:var(--rd-blue) !important;}
.app-container .sidebar-nav .nav-link.active{
  background:linear-gradient(135deg,var(--primary,#2f80ed),var(--rd-blue-2)) !important;
  color:#fff !important;font-weight:600 !important;border-color:transparent !important;
  box-shadow:0 8px 18px rgba(47,128,237,.32) !important;
}
.app-container .sidebar-nav .nav-link.active i:first-child{color:#fff !important;}
.app-container .menu-item-has-child.open>.nav-link{background:rgba(47,128,237,.08) !important;color:var(--rd-blue-2) !important;border-color:transparent !important;}
.app-container .menu-item-has-child.open>.nav-link i:first-child{color:var(--rd-blue) !important;}
.app-container .sidebar-nav .sidebar-submenu{background:transparent !important;border-left:1px solid var(--rd-line) !important;}
.app-container .nav-link-sub{color:#5d6784 !important;border-radius:10px !important;}
.app-container .nav-link-sub:hover{background:rgba(255,255,255,.85) !important;color:var(--rd-blue-2) !important;}
.app-container .nav-link-sub.active{background:rgba(47,128,237,.12) !important;color:var(--rd-blue-2) !important;font-weight:600;}
.app-container .sub-dot{background:#b4bad0 !important;}
.app-container .nav-link-sub:hover .sub-dot,.app-container .nav-link-sub.active .sub-dot{background:var(--rd-blue) !important;}
.app-container .sidebar-release-tag{color:var(--rd-muted) !important;border-top:1px solid var(--rd-line) !important;background:transparent !important;}
.app-container .sidebar-release-tag a,.app-container .sidebar-release-tag span{color:var(--rd-muted) !important;}
.sidebar.collapsed .menu-item-has-child:hover .sidebar-submenu{background:#fff !important;border:1px solid var(--rd-line) !important;border-radius:16px !important;box-shadow:var(--rd-shadow) !important;}
.sidebar.collapsed .menu-item-has-child:hover .sidebar-submenu .nav-link-sub{color:#4b5575 !important;}

/* ---------- Top bar ---------- */
.app-container .topbar{
  background:transparent !important;border-bottom:0 !important;box-shadow:none !important;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
.app-container .topbar-left h3,.app-container #page-title{font-size:22px !important;font-weight:700 !important;color:var(--rd-ink) !important;}
.app-container .btn-icon{background:rgba(255,255,255,.75) !important;border:1px solid rgba(255,255,255,.9) !important;border-radius:50% !important;color:var(--rd-muted) !important;box-shadow:var(--rd-shadow-sm);}
.app-container #mobile-toggle-sidebar{border-radius:12px !important;}
.app-container #page-back-btn{background:rgba(255,255,255,.75) !important;border:1px solid rgba(255,255,255,.9) !important;border-radius:12px !important;color:var(--rd-ink) !important;}
.app-container .btn-icon:hover{background:#fff !important;color:var(--rd-blue) !important;}
.app-container .topbar-shortcut{background:rgba(255,255,255,.72) !important;border:1px solid rgba(255,255,255,.9) !important;border-radius:14px !important;color:var(--rd-ink) !important;box-shadow:var(--rd-shadow-sm);font-weight:600;}
.app-container .topbar-shortcut:hover{background:#fff !important;}
.app-container .topbar-support-ticket{background:linear-gradient(135deg,var(--primary,#2f80ed),var(--rd-blue-2)) !important;color:#fff !important;border-color:transparent !important;box-shadow:0 8px 18px rgba(47,128,237,.28) !important;}
.app-container .topbar-support-ticket span,.app-container .topbar-support-ticket i{color:#fff !important;}

/* ---------- Announcement bar (visibility still controlled by app.js) ---------- */
.app-container .marquee-section{
  background:linear-gradient(90deg,rgba(47,128,237,.12),rgba(139,124,246,.14)) !important;
  color:var(--rd-ink) !important;border:1px solid rgba(255,255,255,.8) !important;border-radius:16px;
  margin:0 clamp(10px,1.6vw,30px) 4px;box-shadow:var(--rd-shadow-sm);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.app-container .marquee-section>span{background:linear-gradient(135deg,var(--rd-blue),var(--rd-purple)) !important;color:#fff !important;}
.app-container .marquee-section marquee{color:var(--rd-ink);font-weight:500;}
.app-container #emergency-notice-bar{border-radius:14px;margin:0 clamp(10px,1.6vw,30px) 8px;}

/* ---------- Cards / glass surfaces ---------- */
.app-container .card.glass,.app-container .card:not(.glass),.app-container .glass{
  background:var(--rd-glass) !important;border:1px solid rgba(255,255,255,.85) !important;
  border-radius:var(--rd-radius) !important;box-shadow:var(--rd-shadow) !important;
  
}
.app-container .card:hover{box-shadow:0 14px 36px rgba(80,90,160,.14) !important;border-color:#fff !important;}
.app-container .card-header{background:transparent !important;border-bottom:1px solid var(--rd-line) !important;color:var(--rd-ink);}
.app-container .card-header h3,.app-container .card-header h4{color:var(--rd-ink) !important;}

/* Stat cards (Employee / Client / Support dashboards) */
.app-container .stat-card{
  background:linear-gradient(135deg,rgba(255,255,255,.80),rgba(235,238,252,.62)) !important;
  border:1px solid rgba(255,255,255,.9) !important;border-radius:var(--rd-radius) !important;
  box-shadow:var(--rd-shadow) !important;
}
.app-container .stat-card:hover{box-shadow:0 16px 36px rgba(80,90,160,.16) !important;}
.app-container .stat-card h3{color:var(--rd-ink) !important;font-weight:800;}
.app-container .stat-card p{color:var(--rd-muted) !important;}

/* ISP dashboard cards (Admin / Super Admin / Reseller) — pastel, no hard color strip */
body .isp-card{
  border:1px solid rgba(255,255,255,.9) !important;border-radius:var(--rd-radius) !important;
  background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(238,240,253,.60)) !important;
  box-shadow:var(--rd-shadow) !important;
}
body .isp-card::before{height:0 !important;opacity:0 !important;}
body .isp-card:hover{box-shadow:0 18px 40px rgba(80,90,160,.18) !important;}
body .isp-card h3,body .isp-card-copy h3{color:var(--rd-ink) !important;}
body .isp-card p,body .isp-card-copy p{color:var(--rd-muted) !important;}
body .isp-ticket-card{border-radius:var(--rd-radius) !important;border:1px solid rgba(255,255,255,.9) !important;box-shadow:var(--rd-shadow) !important;}
body .isp-chart-box{background:var(--rd-glass) !important;border:1px solid rgba(255,255,255,.9) !important;border-radius:var(--rd-radius) !important;box-shadow:var(--rd-shadow) !important;}
body .isp-section-heading{color:var(--rd-ink) !important;}
body .isp-detail-stat{border-radius:16px !important;}

/* ---------- Buttons ---------- */
body .btn{border-radius:12px;font-weight:600;font-family:var(--font-sans);transition:transform .15s ease,box-shadow .2s ease,background .2s ease;}
body .btn:hover{transform:translateY(-1px);}
body .btn-primary{background:linear-gradient(135deg,var(--primary,#2f80ed),var(--rd-blue-2)) !important;color:#fff !important;border:0 !important;box-shadow:0 8px 18px rgba(47,128,237,.28);}
body .btn-primary:hover{box-shadow:0 12px 22px rgba(47,128,237,.36);}
body .btn-outline{background:rgba(255,255,255,.7) !important;border:1px solid rgba(47,128,237,.35) !important;color:var(--rd-blue-2) !important;}
body .btn-outline:hover{background:#fff !important;}
body .btn-success{box-shadow:0 8px 18px rgba(5,150,105,.22);}
body .btn-danger{box-shadow:0 8px 18px rgba(220,38,38,.20);}

/* ---------- Forms ---------- */
body .form-control,body .app-container input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not(#adminMenuSearch),body .app-container select,body .app-container textarea{
  border-radius:12px;border:1px solid rgba(120,130,190,.28);background-color:rgba(255,255,255,.88);color:var(--rd-ink);
}
body .form-control:focus,body .app-container input:focus,body .app-container select:focus,body .app-container textarea:focus{
  border-color:var(--rd-blue) !important;box-shadow:0 0 0 3px rgba(47,128,237,.15) !important;outline:none;
}
body .modal-content input:not([type=checkbox]):not([type=radio]),body .modal-content select,body .modal-content textarea{border-radius:12px;border:1px solid rgba(120,130,190,.28);}

/* ---------- Tables ---------- */
.app-container .table{border-collapse:separate;border-spacing:0;}
.app-container .table th{background:rgba(120,130,190,.09);color:var(--rd-muted);font-size:16px;font-weight:700;letter-spacing:.02em;border-bottom:0;}
.app-container .table th:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px;}
.app-container .table th:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px;}
.app-container .table td{border-bottom:1px solid var(--rd-line);color:var(--rd-ink);}
.app-container .table tbody tr:hover{background:rgba(255,255,255,.72);}
.app-container .table-responsive{border-radius:var(--rd-radius-sm);}

/* ---------- Badges / status pills ---------- */
body .badge{border-radius:8px;padding:4px 10px;font-weight:700;letter-spacing:.01em;}
body .badge-success{background:#c9f0dc;color:#1d8a56;}
body .badge-danger{background:#fcd9d9;color:#d64545;}
body .badge-warning{background:#fdebc4;color:#b7791f;}
body .badge-indigo{background:#e1defc;color:#5b4fd6;}
body .badge-cyan{background:#d3f0f7;color:#0e7490;}
body .badge-pink{background:#fbdcec;color:#be185d;}

/* ---------- Modals ---------- */
body .modal-content{border-radius:var(--rd-radius) !important;border:1px solid rgba(255,255,255,.9) !important;box-shadow:0 24px 60px rgba(60,70,140,.22) !important;}
body .modal-header{border-bottom:1px solid var(--rd-line);}
body .modal-fullscreen,body .modal-fullscreen-overlay .modal-content{border-radius:var(--rd-radius) !important;}
body .modal-overlay{background:rgba(40,50,100,.28);}

/* ---------- Scrollbars ---------- */
.app-container *{scrollbar-width:thin;scrollbar-color:rgba(120,130,190,.35) transparent;}

/* ---------- Dark mode (kept working) ---------- */
body.dark-mode .app-container{background:linear-gradient(135deg,#0d1220,#151a2e) !important;}
body.dark-mode .app-container .sidebar{background:rgba(17,24,39,.78) !important;border-right-color:rgba(255,255,255,.07) !important;}
body.dark-mode .app-container .sidebar-header h2,body.dark-mode .app-container .sidebar-user .user-details h4,body.dark-mode .app-container #page-title{color:#f3f4f6 !important;}
body.dark-mode .app-container .sidebar-nav .nav-link,body.dark-mode .app-container .nav-link-sub{color:#cbd5e1 !important;}
body.dark-mode .app-container .card,body.dark-mode .app-container .glass,body.dark-mode .app-container .stat-card,body.dark-mode .isp-card,body.dark-mode .isp-chart-box{background:rgba(17,24,39,.72) !important;border-color:rgba(255,255,255,.08) !important;}
body.dark-mode .app-container .table td,body.dark-mode .isp-card h3{color:#f3f4f6 !important;}
body.dark-mode .app-container input,body.dark-mode .app-container select,body.dark-mode .app-container textarea{background:rgba(255,255,255,.06);color:#f3f4f6;}
body.dark-mode .app-container .btn-icon,body.dark-mode .app-container .topbar-shortcut{background:rgba(255,255,255,.08) !important;border-color:rgba(255,255,255,.1) !important;color:#e5e7eb !important;}

/* ---------- Mobile / tablet: drawer sidebar must be opaque enough to read over content ---------- */
@media (max-width:992px){
  .app-container .sidebar{background:rgba(255,255,255,.97) !important;}
  .app-container .topbar{padding-left:12px;padding-right:12px;}
  .app-container .marquee-section{margin-left:10px;margin-right:10px;}
  body .isp-card,.app-container .stat-card{border-radius:16px !important;}
}

/* ==========================================================================
   GLASS PASS v2 — real frosted glass: vivid backdrop + translucent blurred cards
   (blur only on leaf cards, never on containers that can hold fixed popups)
   ========================================================================== */
.app-container{
  background:
    radial-gradient(600px 480px at 2% 92%,rgba(238,120,240,.60),transparent 68%),
    radial-gradient(760px 560px at 28% -6%,rgba(110,125,245,.62),transparent 68%),
    radial-gradient(680px 560px at 98% 4%,rgba(255,170,150,.58),transparent 68%),
    radial-gradient(700px 560px at 100% 100%,rgba(110,225,185,.58),transparent 68%),
    radial-gradient(520px 420px at 55% 55%,rgba(150,190,255,.30),transparent 70%),
    linear-gradient(135deg,#d9defa 0%,#ecdff7 50%,#fbe3df 100%) !important;
}
.app-container .sidebar{
  background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,.26)) !important;
  -webkit-backdrop-filter:blur(26px) saturate(170%);backdrop-filter:blur(26px) saturate(170%);
  border-right:1px solid rgba(255,255,255,.65) !important;
}
body .isp-card,.app-container .stat-card,body .isp-chart-box,body .isp-ticket-card{
  background:linear-gradient(135deg,rgba(255,255,255,.55),rgba(255,255,255,.22)) !important;
  border:1px solid rgba(255,255,255,.75) !important;
  box-shadow:0 10px 32px rgba(70,80,160,.14),inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 0 rgba(255,255,255,.25) !important;
  -webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);
}
body .isp-card:hover,.app-container .stat-card:hover{
  background:linear-gradient(135deg,rgba(255,255,255,.68),rgba(255,255,255,.32)) !important;
}
/* soften the old decorative blobs inside cards so the glass reads cleanly */
body .isp-card::after{opacity:.35 !important;}
.app-container .card.glass,.app-container .card:not(.glass){
  background:linear-gradient(135deg,rgba(255,255,255,.58),rgba(255,255,255,.30)) !important;
  border:1px solid rgba(255,255,255,.75) !important;
  box-shadow:0 10px 32px rgba(70,80,160,.12),inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.app-container .marquee-section{
  background:linear-gradient(90deg,rgba(47,128,237,.22),rgba(139,124,246,.22)) !important;
  -webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%);
}
.app-container .topbar-shortcut,.app-container .btn-icon,.app-container #page-back-btn{
  background:rgba(255,255,255,.45) !important;border-color:rgba(255,255,255,.8) !important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
.app-container .sidebar-user{background:rgba(255,255,255,.45) !important;}
.app-container #adminMenuSearch{background:rgba(255,255,255,.50) !important;}
.app-container .table th{background:rgba(255,255,255,.45);}
.app-container .table tbody tr:hover{background:rgba(255,255,255,.55);}
@media (max-width:992px){
  .app-container .sidebar{background:rgba(255,255,255,.96) !important;}
}
body.dark-mode .app-container .sidebar{background:rgba(17,24,39,.72) !important;}
body.dark-mode .isp-card,body.dark-mode .app-container .stat-card,body.dark-mode .isp-chart-box{background:rgba(17,24,39,.55) !important;}

/* ==========================================================================
   v3 — (1) readable "Open Support Ticket"  (2) clear dashboard icons
        (3) every popup/page opened from dashboard cards gets the same glass style
   ========================================================================== */

/* (1) Top-bar shortcuts: strong contrast, readable text */
.app-container .topbar .topbar-right a.topbar-support-ticket,
.app-container .topbar .topbar-right a.topbar-support-ticket *{color:#fff !important;text-shadow:0 1px 2px rgba(10,40,110,.35);}
.app-container .topbar .topbar-right a.topbar-support-ticket{
  background:linear-gradient(135deg,#2f80ed,#1558c9) !important;border:1px solid rgba(255,255,255,.55) !important;
  font-size:17px !important;font-weight:800 !important;letter-spacing:.01em;
  box-shadow:0 8px 20px rgba(31,111,224,.38),inset 0 1px 0 rgba(255,255,255,.35) !important;
}
.app-container .topbar .topbar-right a.topbar-online-monitor,
.app-container .topbar .topbar-right a.topbar-online-monitor span{color:#14213d !important;font-weight:800 !important;font-size:17px !important;}
.app-container .topbar .topbar-right a.topbar-online-monitor{
  background:rgba(255,255,255,.62) !important;border:1px solid rgba(255,255,255,.9) !important;
}
.app-container .topbar .topbar-right a.topbar-online-monitor i{color:#059669 !important;font-size:18px;}
.app-container .topbar .topbar-right .topbar-shortcut i{font-size:18px;}

/* (2) Dashboard card icons: bigger, bolder, always a solid glyph (FA solid needs weight 900) */
body .isp-card .ic,body .isp-detail-stat-icon,.app-container .stat-card .stat-icon{
  font-size:25px !important;color:#fff !important;
}
body .isp-card .ic i,body .isp-detail-stat-icon i,.app-container .stat-card .stat-icon i{
  font-family:"Font Awesome 6 Free" !important;font-weight:900 !important;font-style:normal;
  font-size:1em;line-height:1;color:#fff !important;text-shadow:0 2px 4px rgba(0,0,0,.25);
}
body .isp-card .ic{width:46px !important;height:46px !important;min-width:46px;border-radius:15px !important;}
.app-container .nav-link i:first-child,.app-container .nav-link-sub i{font-family:"Font Awesome 6 Free";font-weight:900;}

/* (3a) Pop-up backdrops = same pastel glass wash as the app */
body .isp-modal-bg,body .sat-detail-modal,body .ss-modal,body .ss-ticket-modal,body .uc-modal,
body .ss-change-log-modal,body .sa-change-log-modal,body .ss-detail-modal,body .crp-bill-modal,body .netmap-modal{
  background:
    radial-gradient(520px 420px at 4% 92%,rgba(238,120,240,.45),transparent 70%),
    radial-gradient(640px 480px at 30% -6%,rgba(110,125,245,.50),transparent 70%),
    radial-gradient(560px 480px at 98% 4%,rgba(255,170,150,.45),transparent 70%),
    linear-gradient(135deg,rgba(214,220,250,.94),rgba(236,223,247,.94) 50%,rgba(251,227,223,.94)) !important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
/* (3b) Pop-up panels */
body .isp-modal-box,body .ss-modal-box,body .uc-modal-box,body .ss-ticket-modal-box,body .ss-staff-edit-box,
body .ss-new-message-box,body .ss-edit-box,body .uc-request-box,body .ss-permission-card,body .ss-network-card,
body .ss-filter-card,body .sa-users-card{
  background:linear-gradient(135deg,rgba(255,255,255,.66),rgba(255,255,255,.34)) !important;
  border:1px solid rgba(255,255,255,.8) !important;
  box-shadow:0 14px 40px rgba(70,80,160,.16),inset 0 1px 0 rgba(255,255,255,.95) !important;
  color:var(--rd-ink);
}
body .isp-modal-box{border-radius:0 !important;}
/* (3c) Pop-up headers: light glass, dark readable text, visible close button */
body .isp-modal-head,body .ss-modal-head,body .uc-modal-head,body .ss-ticket-modal-head,body .ss-edit-head,
body .ss-security-head,body .ss-change-log-head,body .sa-change-log-head,body .netmap-head,
body .ss-card-head,body .ss-network-card-head,body .sa-users-card-head{
  background:linear-gradient(90deg,rgba(255,255,255,.72),rgba(255,255,255,.40)) !important;
  color:var(--rd-ink) !important;border-bottom:1px solid var(--rd-line) !important;
}
body .isp-modal-head *,body .ss-modal-head *,body .uc-modal-head *,body .ss-ticket-modal-head *,body .ss-edit-head *,
body .ss-security-head *,body .ss-change-log-head *,body .sa-change-log-head *,body .netmap-head *{color:var(--rd-ink) !important;}
body .isp-modal-close{background:rgba(255,255,255,.8) !important;border:1px solid var(--rd-line) !important;border-radius:10px !important;color:var(--rd-ink) !important;width:34px;height:34px;}
body .isp-modal-close:hover{background:#fff !important;color:#dc2626 !important;}
body .isp-modal-head h3{font-size:19px !important;font-weight:800;}
/* (3d) Filters, table wrappers, tables */
body .isp-detail-filters,body .isp-detail-table-wrap,body .ss-network-table-wrap,body .ss-ticket-table-wrap,
body .ss-detail-table-wrap,body .sat-detail-table-wrap,body .uc-table-wrap,body .ss-table-wrap,body .ss-auth-table-wrap,
body .sa-users-table-wrap,body .netmap-table-wrap,body .crp-table-wrap{
  background:rgba(255,255,255,.50) !important;border:1px solid rgba(255,255,255,.8) !important;border-radius:16px !important;
}
body .isp-detail-field select,body .isp-detail-field input{background:rgba(255,255,255,.85) !important;border:1px solid rgba(120,130,190,.28) !important;border-radius:12px !important;color:var(--rd-ink) !important;}
body .isp-detail-field{color:var(--rd-muted) !important;font-weight:600;}
body .isp-detail-apply{background:linear-gradient(135deg,#2f80ed,#1f6fe0) !important;border-radius:12px !important;box-shadow:0 6px 14px rgba(47,128,237,.3);}
body .isp-detail-clear{background:linear-gradient(135deg,#f0646b,#dc3545) !important;border-radius:12px !important;}
body .isp-detail-table thead th,body .sat-detail-table thead th,body .ss-network-table thead th,body .ss-ticket-table thead th,
body .ss-detail-table thead th,body .uc-table thead th,body .netmap-table thead th,body .crp-table thead th,
body .sa-users-table thead th,body .ss-auth-table thead th,body .isp-mtable th{
  background:rgba(120,130,190,.16) !important;color:#2a3354 !important;font-weight:800 !important;border-bottom:1px solid var(--rd-line) !important;
}
body .isp-detail-table tbody td,body .isp-mtable td,body .sat-detail-table tbody td,body .ss-network-table tbody td,
body .ss-ticket-table tbody td,body .ss-detail-table tbody td,body .uc-table tbody td,body .crp-table tbody td,body .sa-users-table tbody td{
  color:var(--rd-ink) !important;border-bottom:1px solid var(--rd-line) !important;background:transparent;
}
body .isp-detail-table tbody tr:hover,body .isp-mtable tbody tr:hover,body .ss-network-table tbody tr:hover,body .sa-users-table tbody tr:hover{background:rgba(255,255,255,.65) !important;}
body .isp-detail-showing{color:var(--rd-muted) !important;}
body .isp-detail-stat{border:1px solid rgba(255,255,255,.55);}
body .sbadge{font-weight:700;padding:3px 10px;}

/* ==========================================================================
   v4 — pages opened from dashboard cards: NO more solid colored cards.
   Stat cards inside popups become tinted frosted glass with a colored icon tile.
   ========================================================================== */

/* Total Clients / detail pages: stat cards */
body .isp-detail-stat{
  color:var(--rd-ink) !important;
  background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.26)) !important;
  border:1px solid rgba(255,255,255,.85) !important;
  box-shadow:0 10px 30px rgba(70,80,160,.14),inset 0 1px 0 rgba(255,255,255,.95) !important;
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
}
body .isp-detail-stat.total{background:linear-gradient(135deg,rgba(47,128,237,.26),rgba(110,215,205,.20)) !important;}
body .isp-detail-stat.selected{background:linear-gradient(135deg,rgba(139,124,246,.26),rgba(244,114,182,.20)) !important;}
body .isp-detail-stat::before,body .isp-detail-stat::after{background:rgba(255,255,255,.35) !important;}
body .isp-detail-stat-label{color:var(--rd-muted) !important;opacity:1 !important;}
body .isp-detail-stat-value{color:var(--rd-ink) !important;}
body .isp-detail-stat-icon{border:1px solid rgba(255,255,255,.7) !important;box-shadow:0 8px 18px rgba(47,128,237,.28);}
body .isp-detail-stat.total .isp-detail-stat-icon{background:linear-gradient(135deg,#2f80ed,#19b5a5) !important;}
body .isp-detail-stat.selected .isp-detail-stat-icon{background:linear-gradient(135deg,#8b7cf6,#ec4899) !important;box-shadow:0 8px 18px rgba(139,124,246,.30);}
/* page panel a bit more see-through so the pastel backdrop shows */
body .isp-modal-box{background:linear-gradient(135deg,rgba(255,255,255,.42),rgba(255,255,255,.20)) !important;}
body .isp-modal-body{background:transparent !important;}

/* Online Client Monitoring popup */
html body #modal-live-monitor .modal-content{background:transparent !important;box-shadow:none !important;border:0 !important;}
html body #modal-live-monitor .lm-body{background:transparent !important;}
#modal-live-monitor .lm-head h3,#modal-live-monitor .lm-head-l{color:var(--rd-ink) !important;}
#modal-live-monitor .lm-head h3 small{color:var(--rd-muted) !important;}
#modal-live-monitor .lm-head .modal-close{background:rgba(255,255,255,.75) !important;border:1px solid var(--rd-line) !important;border-radius:10px !important;color:var(--rd-ink) !important;}
#modal-live-monitor .lm-crumb{background:rgba(255,255,255,.55) !important;color:var(--rd-muted) !important;border:1px solid rgba(255,255,255,.8);border-radius:10px !important;}
#modal-live-monitor .lm-card{
  background:linear-gradient(135deg,rgba(255,255,255,.58),rgba(255,255,255,.26)) !important;
  border:1px solid rgba(255,255,255,.85);border-radius:20px !important;
  box-shadow:0 12px 34px rgba(70,80,160,.14),inset 0 1px 0 rgba(255,255,255,.95) !important;
}
#modal-live-monitor .lm-pill{background:rgba(255,255,255,.62) !important;border:1px solid rgba(47,128,237,.30) !important;color:#1f4fa8 !important;font-weight:600;border-radius:14px !important;}
#modal-live-monitor .lm-pill:hover{background:#fff !important;}
#modal-live-monitor .lm-sync{background:linear-gradient(135deg,#2f80ed,#1558c9) !important;color:#fff !important;border-radius:14px !important;box-shadow:0 8px 18px rgba(31,111,224,.34) !important;}
/* Online / Offline stat cards: tinted glass instead of solid green / red */
#modal-live-monitor .lm-stat{
  color:var(--rd-ink) !important;border:1px solid rgba(255,255,255,.85) !important;border-radius:18px !important;
  box-shadow:0 10px 28px rgba(70,80,160,.13),inset 0 1px 0 rgba(255,255,255,.95) !important;
  -webkit-backdrop-filter:blur(16px) saturate(170%);backdrop-filter:blur(16px) saturate(170%);
}
#modal-live-monitor .lm-stat.lm-online{background:linear-gradient(135deg,rgba(34,197,94,.30),rgba(255,255,255,.28)) !important;}
#modal-live-monitor .lm-stat.lm-offline{background:linear-gradient(135deg,rgba(239,68,68,.28),rgba(255,255,255,.28)) !important;}
#modal-live-monitor .lm-stat-icon{width:50px !important;height:50px !important;border-radius:15px !important;font-size:25px !important;color:#fff !important;box-shadow:0 8px 18px rgba(0,0,0,.18) !important;}
#modal-live-monitor .lm-online .lm-stat-icon{background:linear-gradient(135deg,#22c55e,#15803d) !important;}
#modal-live-monitor .lm-offline .lm-stat-icon{background:linear-gradient(135deg,#f87171,#dc2626) !important;}
#modal-live-monitor .lm-stat-label{color:var(--rd-muted) !important;font-weight:700 !important;}
#modal-live-monitor .lm-stat-value{color:var(--rd-ink) !important;font-weight:800 !important;}
#modal-live-monitor .lm-field{color:var(--rd-muted) !important;font-weight:700;}
#modal-live-monitor .lm-field select,#modal-live-monitor .lm-field input,#modal-live-monitor .lm-showrow select,#modal-live-monitor .lm-showrow input{
  background:rgba(255,255,255,.75) !important;border:1px solid rgba(120,130,190,.28) !important;border-radius:12px !important;color:var(--rd-ink) !important;
}
#modal-live-monitor .lm-showrow{color:var(--rd-muted) !important;}
#modal-live-monitor .lm-clear{background:linear-gradient(135deg,#f0646b,#dc3545) !important;border-radius:12px !important;}
#modal-live-monitor .lm-apply{background:linear-gradient(135deg,#2f80ed,#1f6fe0) !important;border-radius:12px !important;}
#modal-live-monitor .lm-table-scroll{background:rgba(255,255,255,.45) !important;border:1px solid rgba(255,255,255,.8) !important;border-radius:16px !important;}
#modal-live-monitor .lm-table thead th{background:rgba(120,130,190,.18) !important;color:#2a3354 !important;font-weight:800 !important;border-right:1px solid rgba(255,255,255,.55) !important;}
#modal-live-monitor .lm-table tbody td{color:var(--rd-ink) !important;border-bottom:1px solid var(--rd-line) !important;}
#modal-live-monitor .lm-table tbody tr:hover{background:rgba(255,255,255,.6) !important;}
#modal-live-monitor .lm-hbar{background:rgba(120,130,190,.18) !important;border-radius:8px;}
#modal-live-monitor .lm-status.on{background:#c9f0dc !important;color:#1d8a56 !important;}
#modal-live-monitor .lm-status.off{background:#fcd9d9 !important;color:#d64545 !important;}
/* the "Client Details" action popup opened from the monitor */
#modal-lm-action .modal-content{background:transparent !important;}
#modal-lm-action .modal-header{background:linear-gradient(90deg,rgba(255,255,255,.72),rgba(255,255,255,.40)) !important;color:var(--rd-ink) !important;}
#modal-lm-action .modal-header *{color:var(--rd-ink) !important;}

/* ==========================================================================
   v5 — Super Admin + Support Staff panels (dashboards, popups, sub-pages)
   Same frosted-glass language as the ISP Owner panel. Visual only.
   ========================================================================== */

/* ---- Super Admin dashboard stat cards (page CSS used !important white gradients) ---- */
.app-container .superadmin-dashboard .stat-card,
.app-container .stats-grid .stat-card{
  background:linear-gradient(135deg,rgba(255,255,255,.60),rgba(255,255,255,.24)) !important;
  border:1px solid rgba(255,255,255,.85) !important;border-radius:20px !important;
  box-shadow:0 10px 30px rgba(70,80,160,.14),inset 0 1px 0 rgba(255,255,255,.95) !important;
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
}
.app-container .superadmin-dashboard .stat-card:hover,.app-container .stats-grid .stat-card:hover{
  background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(255,255,255,.34)) !important;
  box-shadow:0 18px 40px rgba(70,80,160,.20),inset 0 1px 0 #fff !important;
}
.app-container .superadmin-dashboard .stat-card::before{background:radial-gradient(circle at 100% 0%,rgba(139,124,246,.22),transparent 48%) !important;}
.app-container .superadmin-dashboard .stat-card::after{opacity:.55 !important;}
.app-container .superadmin-dashboard .stat-card h3,.app-container .stats-grid .stat-card h3{color:var(--rd-ink) !important;}
.app-container .superadmin-dashboard .stat-card p,.app-container .stats-grid .stat-card p{color:var(--rd-muted) !important;font-weight:600;}
.app-container .stat-icon{color:#fff !important;box-shadow:0 8px 18px rgba(70,80,160,.25) !important;}
.app-container .stat-icon i{font-family:"Font Awesome 6 Free" !important;font-weight:900 !important;color:#fff !important;text-shadow:0 2px 4px rgba(0,0,0,.22);}
.app-container .superadmin-dashboard .card.glass{border-color:rgba(255,255,255,.85) !important;}

/* ---- Glass panels / cards used across Super Admin & Support Staff ---- */
body .ss-auth-card,body .ss-security-card,body .ss-ticket-edit-card,body .ss-edit-box,body .ss-change-log-box,
body .ss-detail-panel,body .ss-network-card,body .ss-filter-card,body .uc-card,body .uc-modal-box,body .uc-request-box,
body .ss-ticket-modal-box,body .ss-permission-card,body .ss-permission-note,body .ss-resolution-wrap,
body .sa-users-card,body .sa-users-filter-card,body .sa-change-log-box,body .sat-detail-shell,body .sat-detail-panel,
body .sat-detail-head,body .billing-tomorrow-table-card,body .ss-ticket-member,body .sat-ticket-member{
  background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.28)) !important;
  border:1px solid rgba(255,255,255,.85) !important;border-radius:20px !important;
  box-shadow:0 12px 34px rgba(70,80,160,.14),inset 0 1px 0 rgba(255,255,255,.95) !important;
  color:var(--rd-ink);
}
body .ss-network-card-head,body .sa-users-card-head,body .ss-security-head,body .ss-edit-head{
  background:transparent !important;color:var(--rd-ink) !important;border-bottom:1px solid var(--rd-line) !important;
}
body .ss-security-head h3,body .ss-edit-head h3,body .sa-users-card-head strong{color:var(--rd-ink) !important;}
body .ss-security-head p,body .sa-users-card-head span{color:var(--rd-muted) !important;}

/* ---- Inputs / selects ---- */
body .ss-edit-field input,body .ss-edit-field select,body .ss-edit-field textarea,body .uc-input,body .uc-select,
body .ss-input,body .sa-admin-field input,body .sa-admin-field select,body .sa-users-filter-grid input,
body .sa-users-filter-grid select,body .ss-ticket-filters select,body .sa-users-top-search,body .ss-top-search,
body .ss-new-message-box textarea,body .sat-new-message-box textarea,body .ss-security-page .ss-password-wrap input,body .uc-file-input{
  background:rgba(255,255,255,.78) !important;border:1px solid rgba(120,130,190,.28) !important;
  border-radius:12px !important;color:var(--rd-ink) !important;
}
body .ss-edit-field input:focus,body .ss-edit-field select:focus,body .uc-input:focus,body .uc-select:focus,
body .sa-admin-field input:focus,body .sa-users-filter-grid input:focus,body .sa-users-filter-grid select:focus{
  border-color:var(--rd-blue) !important;box-shadow:0 0 0 3px rgba(47,128,237,.15) !important;outline:none;
}

/* ---- Small buttons / pills ---- */
body .uc-new-btn,body .ss-filter-btn,body .sat-filter-btn,body .ss-ticket-filter-btn{
  background:linear-gradient(135deg,#2f80ed,#1f6fe0) !important;color:#fff !important;border:0 !important;border-radius:12px !important;
  box-shadow:0 8px 18px rgba(47,128,237,.28) !important;font-weight:700;
}
body .uc-details-btn,body .uc-sample-btn,body .uc-secondary,body .ss-action-btn,body .ss-edit-ticket-btn,body .sat-ticket-action,
body .ss-ticket-action,body .ss-actions-menu button,body .ss-ticket-pagination-row button,body .sat-ticket-pagination-row button,
body .sa-user-action-menu button,body .sa-user-actions{
  background:rgba(255,255,255,.65) !important;border:1px solid rgba(47,128,237,.28) !important;color:#1f4fa8 !important;border-radius:12px !important;font-weight:600;
}
body .ss-actions-menu,body .sa-user-action-menu{background:rgba(255,255,255,.92) !important;border:1px solid var(--rd-line) !important;border-radius:14px !important;box-shadow:var(--rd-shadow) !important;}

/* ---- Tables ---- */
body .ss-network-table th,body .ss-detail-table th,body .ss-ticket-table th,body .ss-auth-table th,body .uc-table th,
body .sa-users-table th,body .sat-detail-table th,body .ss-page .data-table th,
html body #modal-billing-stops-tomorrow .sa-users-table thead th{
  background:rgba(120,130,190,.16) !important;color:#2a3354 !important;font-weight:800 !important;border-color:rgba(255,255,255,.6) !important;
}
body .ss-network-table td,body .ss-detail-table td,body .ss-ticket-table td,body .ss-auth-table td,body .uc-table td,
body .sa-users-table td,body .sat-detail-table td,body .ss-page .data-table td,
html body #modal-billing-stops-tomorrow .sa-users-table tbody td{
  background:transparent !important;color:var(--rd-ink) !important;border-color:var(--rd-line) !important;
}
body .ss-network-table tbody tr:hover,body .sa-users-table tbody tr:hover,body .uc-table tbody tr:hover,body .ss-ticket-table tbody tr:hover,
html body #modal-billing-stops-tomorrow .sa-users-table tbody tr:hover{background:rgba(255,255,255,.6) !important;}
body .ss-network-table-wrap,body .ss-ticket-table-wrap,body .ss-detail-table-wrap,body .ss-auth-table-wrap,body .uc-table-wrap,
body .ss-table-wrap,body .sa-users-table-wrap{background:transparent !important;border-radius:16px;}

/* ---- Status pills ---- */
body .ss-status-badge.inactive,body .ss-status-badge.suspended,body .ss-status-pill.suspended,body .sa-user-status.inactive,
body .sa-user-status.suspended,body .status-suspended,body .uc-pending,body .uc-failed{border-radius:999px !important;font-weight:700;}

/* ---- Page header bars (Support Staff pages) ---- */
body .ss-page .page-header,#supportStaffDashboard .page-header{
  background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,255,255,.28)) !important;color:var(--rd-ink) !important;
  border:1px solid rgba(255,255,255,.85) !important;border-radius:20px !important;box-shadow:var(--rd-shadow) !important;
}
body .ss-page .page-header *,#supportStaffDashboard .page-header h1,#supportStaffDashboard .page-header h2,#supportStaffDashboard .page-header p{color:var(--rd-ink) !important;}

/* ---- Super Admin "Billing Stops Tomorrow" popup (page CSS used ids) ---- */
html body #modal-billing-stops-tomorrow .modal-content,html body #modal-billing-stops-tomorrow .modal-body{
  background:linear-gradient(135deg,rgba(255,255,255,.66),rgba(255,255,255,.32)) !important;
}
html body #modal-billing-stops-tomorrow .modal-header{background:linear-gradient(90deg,rgba(255,255,255,.75),rgba(255,255,255,.42)) !important;border-bottom:1px solid var(--rd-line) !important;}
html body #modal-billing-stops-tomorrow .modal-header h3,html body #modal-billing-stops-tomorrow .modal-close{color:var(--rd-ink) !important;}

/* ---- Support Staff edit / change-log modals opened from dashboard ---- */
#ssNetworkEditModal .ss-edit-actions{background:transparent !important;}
body .ss-change-log-close,body .sa-change-log-close,body .sa-admin-edit-close,body .sat-detail-close,body .uc-close,body .ss-edit-head button{
  background:rgba(255,255,255,.8) !important;border:1px solid var(--rd-line) !important;border-radius:10px !important;color:var(--rd-ink) !important;
}
body .sa-admin-edit-actions{background:transparent !important;}

/* ==========================================================================
   Single Announcement Bar (ISP Owner dashboard) — one continuous right-to-left ticker
   Shows Super Admin's active announcements (+ billing notice) in ONE bar. Hidden when empty.
   Page show/hide is still driven by app.js (.marquee-section).
   ========================================================================== */
.app-container .marquee-section.announcement-bar{
  display:flex;align-items:center;gap:12px;padding:8px 14px 8px 8px;min-height:46px;overflow:hidden;
  background:linear-gradient(90deg,#1747b8 0%,#2f80ed 55%,#4aa3ff 100%) !important;
  color:#fff !important;border:1px solid rgba(255,255,255,.35) !important;border-radius:16px;
  box-shadow:0 10px 26px rgba(47,128,237,.30),inset 0 1px 0 rgba(255,255,255,.35);
  margin:0 clamp(10px,1.6vw,30px) 8px;
}
.app-container .marquee-section.announcement-bar:not(.has-items){display:none !important;}
.announcement-bar .ab-label{
  flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);
  color:#fff !important;font-weight:800;font-size:17px;letter-spacing:.2px;white-space:nowrap;
}
.app-container .marquee-section.announcement-bar>.ab-label{background:rgba(255,255,255,.18) !important;color:#fff !important;border:1px solid rgba(255,255,255,.35);}
.announcement-bar .ab-label i{
  width:30px;height:30px;min-width:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#ffffff,#d6e8ff);color:#1747b8 !important;font-size:18px;
  font-family:"Font Awesome 6 Free";font-weight:900;box-shadow:0 4px 10px rgba(10,40,120,.28);
}
.announcement-bar .ab-viewport{
  position:relative;flex:1 1 auto;min-width:0;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%);
}
.announcement-bar .ab-track{
  display:flex;width:max-content;will-change:transform;
  animation:ab-scroll var(--ab-duration,30s) linear infinite;
}
.announcement-bar .ab-viewport:hover .ab-track,.announcement-bar .ab-viewport:active .ab-track{animation-play-state:paused;}
.announcement-bar .ab-group{display:flex;flex:0 0 auto;align-items:center;white-space:nowrap;}
.announcement-bar .ab-item{display:inline-flex;align-items:center;white-space:nowrap;font-size:18px;line-height:1.4;color:#fff;}
.announcement-bar .ab-item::after{content:"";flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.85);margin:0 30px;}
.announcement-bar .ab-title{font-weight:800;color:#fff;}
.announcement-bar .ab-msg{font-weight:500;color:rgba(255,255,255,.96);}
.announcement-bar .ab-title + .ab-msg::before{content:"\2014";margin:0 .6em;opacity:.8;}
@keyframes ab-scroll{from{transform:translate3d(0,0,0);}to{transform:translate3d(-50%,0,0);}}
@media (max-width:992px){.app-container .marquee-section.announcement-bar{margin-left:10px;margin-right:10px;}}
@media (max-width:600px){
  .app-container .marquee-section.announcement-bar{gap:8px;padding:6px 10px 6px 6px;min-height:40px;border-radius:14px;}
  .announcement-bar .ab-label{padding:4px;}
  .announcement-bar .ab-label-text{display:none;}
  .announcement-bar .ab-label i{width:28px;height:28px;min-width:28px;font-size:17px;}
  .announcement-bar .ab-item{font-size:17px;}
  .announcement-bar .ab-item::after{margin:0 20px;}
}
@media (prefers-reduced-motion:reduce){
  .announcement-bar .ab-track{animation:none !important;}
  .announcement-bar .ab-viewport{overflow-x:auto;-webkit-mask-image:none;mask-image:none;}
  .announcement-bar .ab-group + .ab-group{display:none;}
}
body.dark-mode .app-container .marquee-section.announcement-bar{background:linear-gradient(90deg,#10337f 0%,#1d5fc4 55%,#2f80ed 100%) !important;}
