:root { --navy: #22425c; --teal: #0f8b8d; --bg: #e9e9e9; }
body { background: var(--bg); color: #333; font-size: 14px; }
.card { border: 0; border-radius: 6px; box-shadow: 0 4px 14px rgba(34, 66, 92, .14), 0 1px 3px rgba(0, 0, 0, .10); padding: 16px; margin-bottom: 18px; }
.table thead th { background: rgba(20,54,82,.94); color: #fff; font-weight: 700; font-size: 14px; border-color: rgba(255,255,255,.15); }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: #17344a; --bs-btn-hover-border-color: #17344a; --bs-btn-active-bg: #17344a; }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); }
a { color: var(--teal); }

/* admin layout */
body.mgr { display: flex; min-height: 100vh; }
.mgr-side { width: 220px; flex: 0 0 220px; background: #13293b; color: #fff; padding: 12px 0; }
.mgr-brand { font-weight: 700; padding: 8px 18px 16px; font-size: 16px; }
/* 2026-10-28: the brand logo instead of the panel name (white ink, transparent); 2026-11-28 NexBills logo */
.mgr-logo { text-decoration: none; color: #fff; display: block; }
.mgr-logo img { height: 36px; width: auto; display: block; }
.mgr-logo small { display: block; font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: #9fb3c4; font-weight: 600; margin-top: 4px; }
.auth-logo-tile { display: inline-block; background: #fff; padding: 10px 18px; border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18); transform: translateY(0); transition: transform .2s, box-shadow .2s; }
.auth-logo-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 0, 0, .32), 0 2px 6px rgba(0, 0, 0, .18); }
.auth-logo img { height: 44px; width: auto; display: block; }
.portal-logo img { height: 30px; width: auto; display: block; }
.mgr-side nav a { display: block; color: #cfd9e2; text-decoration: none; padding: 10px 18px; }
.mgr-side nav a i { width: 22px; }
.mgr-side nav a:hover, .mgr-side nav a.active { background: #1d3d56; color: #fff; }
.mgr-main { flex: 1; min-width: 0; padding: 18px 22px; }
.mgr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mgr-top h1 { font-size: 22px; margin: 0; color: var(--navy); }
/* 2026-10-28 (the user: "font gula center hobe", "staff user ta thik koro"): table text centred in every cell; the signed-in user chip */
.mgr .table th, .mgr .table td { text-align: center; vertical-align: middle; }
.mgr .table th.text-start, .mgr .table td.text-start { text-align: left; }
.mgr .table th.text-end, .mgr .table td.text-end { text-align: right; }
.mgr .table thead th { background: var(--navy); color: #fff; border-color: rgba(255, 255, 255, .15); font-weight: 600; }
.mgr-user { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 24px; padding: 4px 6px 4px 4px; box-shadow: rgba(0, 0, 0, .12) 0 1px 3px; }
.mgr-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.mgr-user-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; }
.mgr-user-text small { color: #6c7a89; font-size: 11.5px; }
.mgr-logout { display: inline-flex; align-items: center; gap: 5px; color: #fff; background: #c0392b; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 18px; margin-left: 2px; }
.mgr-logout { transition: background .15s, transform .15s, box-shadow .15s; }
.mgr-logout:hover { color: #fff; background: #a93226; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(192, 57, 43, .4); }
@media (max-width: 800px) { .mgr-user-text, .mgr-logout span { display: none; } .mgr-logout { padding: 6px 9px; } }
.mgr .form-label { font-size: 12.5px; font-weight: 600; color: #3f5163; margin-bottom: 2px; }
.mgr .inline-pass { width: 130px; display: inline-block; }
.mgr .pw-row { display: inline-flex; gap: 4px; align-items: center; }
/* 2026-10-28 (the user: "row er hover daw"): the row under the mouse lights up */
.mgr .table > tbody > tr { transition: background-color .12s; }
.mgr .table > tbody > tr:hover > td { background-color: #e8f3f4; }
.mgr-brand { display: flex; align-items: center; justify-content: space-between; }
.mgr-menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 20px; padding: 4px 6px; line-height: 1; }
/* 2026-10-27 phone: a brand bar with a hamburger; the menu drops down under it when tapped (it used to wrap into four rows) */
@media (max-width: 800px) {
  body.mgr { flex-direction: column; }
  .mgr-side { width: 100%; flex: none; padding: 6px 0; position: sticky; top: 0; z-index: 1020; }
  .mgr-brand { padding: 6px 14px; }
  .mgr-menu-btn { display: inline-block; }
  .mgr-side nav { display: none; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 4px; }
  .mgr-side nav.open { display: block; }
  .mgr-side nav a { padding: 11px 18px; }
}

.stat { border-radius: 4px; color: #fff; padding: 14px 16px; box-shadow: rgba(0,0,0,.16) 0 2px 2px; }
.stat .v { font-size: 24px; font-weight: 700; } .stat .hint { font-size: 12px; opacity: .85; }
.stat-blue { background: #22425c; } .stat-teal { background: #0f8b8d; } .stat-violet { background: #7b4ba8; } .stat-slate { background: #546e7a; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.key-box { font-family: Consolas, monospace; font-size: 12px; background: #f4f6f8; padding: 4px 8px; border-radius: 3px; word-break: break-all; }

/* portal + login */
.auth-card { max-width: 400px; margin: 9vh auto; background: #fff; border-radius: 6px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.portal-top { background: var(--navy); color: #fff; padding: 10px 0; }
.portal-top a { color: #fff; }

/* sign-in pages (v2) */
body.auth-page { margin: 0; background: #f4f6f9; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.auth-split { display: flex; min-height: 100vh; }
.auth-brand { position: relative; flex: 1 1 54%; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 56px; color: #fff; overflow: hidden;
  background: linear-gradient(140deg, #0f2335 0%, #1b3a55 50%, #0f8b8d 140%); }
.auth-portal .auth-brand { background: linear-gradient(140deg, #08494c 0%, #0f7f82 55%, #27b8a6 140%); }
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.auth-brand::before { width: 520px; height: 520px; right: -180px; top: -160px; }
.auth-brand::after { width: 380px; height: 380px; left: -140px; bottom: -150px; background: rgba(255,255,255,.05); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.auth-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); font-size: 19px; }
.auth-pitch h2 { font-size: 34px; line-height: 1.2; font-weight: 700; max-width: 460px; margin: 0 0 26px; }
.auth-points { list-style: none; margin: 0; padding: 0; max-width: 460px; }
.auth-points li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.auth-points li > i { flex: 0 0 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 16px; }
.auth-points b { display: block; font-size: 15px; }
.auth-points span { display: block; font-size: 13px; opacity: .8; }
.auth-foot { font-size: 12px; opacity: .65; }
.auth-main { flex: 1 1 46%; display: flex; align-items: center; justify-content: center; padding: 32px 22px; }
.auth-form-card { width: 100%; max-width: 390px; }
.auth-form-card h1 { font-size: 28px; font-weight: 700; color: #16283a; margin: 0 0 6px; }
.auth-sub { color: #66788a; margin: 0 0 26px; font-size: 14.5px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; color: #3a4b5c; margin-bottom: 6px; }
.auth-input { position: relative; }
.auth-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a99a8; font-size: 14px; }
.auth-input input { width: 100%; height: 46px; padding: 0 44px 0 40px; border: 1px solid #cfd8e1; border-radius: 10px; background: #fff; font-size: 15px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.auth-input input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,139,141,.18); }
.auth-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #8a99a8; width: 36px; height: 36px; cursor: pointer; }
.auth-eye:hover { color: #3a4b5c; }
.auth-caps { display: none; margin-top: 5px; font-size: 12px; color: #b26a00; }
.auth-btn { width: 100%; height: 48px; border: 0; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; background: #1b3a55; transition: background .15s, transform .05s; }
.auth-portal .auth-btn { background: #0f8b8d; }
.auth-btn:hover { background: #142c42; } .auth-portal .auth-btn:hover { background: #0b7173; }
.auth-btn:active { transform: translateY(1px); }
.auth-alert { background: #fdecea; color: #a12a1f; border: 1px solid #f6c6c1; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }
.auth-help { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2e8ee; font-size: 13px; color: #66788a; display: flex; flex-direction: column; gap: 8px; }
.auth-help a { font-weight: 600; text-decoration: none; }
@media (max-width: 900px) {
  .auth-split { flex-direction: column; }
  .auth-brand { flex: none; padding: 22px 24px; }
  .auth-pitch, .auth-foot { display: none; }
  .auth-main { align-items: flex-start; padding-top: 28px; }
  .auth-form-card h1 { font-size: 24px; }
}/* 2026-10-28 (the user): the ISP names in the lists bigger and bold */
.mgr .table a.isp-name { font-size: 16px; font-weight: 700; text-decoration: none; }
.mgr .table a.isp-name:hover { text-decoration: underline; }
/* 2026-10-28 (the user: Plans page "aro standard"): section titles, a bounded tier table, permission tiles, a switch for Active */
.plan-section { font-size: 14px; font-weight: 700; color: var(--navy); margin: 14px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #e3e8ed; }
.tier-table { max-width: 620px; }
.tier-table td { padding: 4px 6px; }
.feat-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.feat-grid .form-check { position: relative; margin: 0; padding: 10px 12px 10px 38px; border: 1px solid #e3e8ed; border-radius: 8px; background: #fff; transition: border-color .15s, background .15s; cursor: pointer; }
.feat-grid .form-check:hover { border-color: #0f8b8d; background: #f5fafb; }
.feat-grid .form-check:has(input:checked) { border-color: #0f8b8d; background: #eef7f7; }
.feat-grid .form-check:has(input:disabled) { background: #f4f6f8; color: #6c7a89; cursor: default; }
.feat-grid .form-check-input { position: absolute; left: 12px; top: 13px; margin: 0; }
.feat-grid .form-check-input:checked { background-color: #0f8b8d; border-color: #0f8b8d; }
.feat-grid .form-check-label { display: block; font-size: 13.5px; line-height: 1.3; }
.feat-grid .form-check-label .small { font-size: 12px; }
.plan-active .form-check-input { width: 2.4em; height: 1.3em; margin-top: .1em; }
.plan-active .form-check-input:checked { background-color: #0f8b8d; border-color: #0f8b8d; }
.feat-pill { display: inline-block; font-size: 11.5px; background: #eef3f7; color: #22425c; border-radius: 10px; padding: 2px 8px; margin: 2px 3px 2px 0; }
/* 2026-10-28 ISP page (mockup approved): header + facts strip + tabs + danger zone */
.isp-head { padding: 16px 18px; }
.isp-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.isp-head-name { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.isp-head-name .badge { font-size: 12px; vertical-align: middle; }
.isp-head-sub { font-size: 13.5px; color: #5f6f7e; }
.isp-head-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.isp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
/* 6 fact cards, each its own colour (--fc): tinted ground, coloured left bar (the user 2026-10-28) */
.isp-facts > div { --fc: #22425c; background: color-mix(in srgb, var(--fc) 9%, #fff); border-left: 4px solid var(--fc); border-radius: 6px; padding: 8px 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: transform .15s, box-shadow .15s; }
.isp-facts > div:hover { transform: translateY(-2px); box-shadow: 0 5px 12px color-mix(in srgb, var(--fc) 28%, transparent); }
.isp-facts > div:nth-child(1) { --fc: #2e8b57; } .isp-facts > div:nth-child(2) { --fc: #d9534f; } .isp-facts > div:nth-child(3) { --fc: #d9741c; }
.isp-facts > div:nth-child(4) { --fc: #22425c; } .isp-facts > div:nth-child(5) { --fc: #0f8b8d; } .isp-facts > div:nth-child(6) { --fc: #5b4fb5; }
.isp-facts small { display: block; font-size: 12px; color: color-mix(in srgb, var(--fc) 75%, #000); font-weight: 600; }
.isp-facts b { font-size: 15px; display: block; color: #1f2d3a; }
.isp-facts span { font-size: 12px; color: #6c7a89; }
.isp-tabs { border-bottom: 0; margin-bottom: 14px; gap: 6px; }
/* each tab has its own colour (--tc): tinted at rest, filled on hover and when active */
.isp-tabs .nav-link { --tc: var(--navy); border: 1px solid transparent; border-bottom: 0; color: var(--tc); background: color-mix(in srgb, var(--tc) 10%, #fff); font-weight: 600; padding: 9px 16px; border-radius: 8px 8px 0 0; transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.isp-tabs .nav-link:hover { background: color-mix(in srgb, var(--tc) 22%, #fff); color: var(--tc); transform: translateY(-2px); box-shadow: 0 4px 10px color-mix(in srgb, var(--tc) 30%, transparent); }
.isp-tabs .nav-link.active, .isp-tabs .nav-link.active:hover { color: #fff; background: var(--tc); transform: none; box-shadow: 0 3px 0 color-mix(in srgb, var(--tc) 60%, #000); }
.isp-tabs .tab-c-navy { --tc: #22425c; } .isp-tabs .tab-c-green { --tc: #2e8b57; } .isp-tabs .tab-c-violet { --tc: #5b4fb5; } .isp-tabs .tab-c-teal { --tc: #0f8b8d; } .isp-tabs .tab-c-orange { --tc: #d9741c; }
/* framed groups on the Details tab: white-to-mist body, a gradient title band (--bx -> --bx2) per box, soft navy shadow */
.isp-box { --bx: #22425c; --bx2: #0f8b8d; position: relative; border: 1px solid #d5dee6; border-radius: 10px; padding: 16px 18px 18px; margin-bottom: 18px; background: linear-gradient(180deg, #ffffff 0%, #f2f6f9 100%); box-shadow: 0 6px 18px rgba(34, 66, 92, .14), 0 1px 3px rgba(0, 0, 0, .08); }
.isp-box.isp-box-plan { --bx: #0f8b8d; --bx2: #2e8b57; }
.isp-box-title { font-size: 14px; font-weight: 700; letter-spacing: .2px; color: #fff; margin: -16px -18px 16px; padding: 10px 18px; background: linear-gradient(90deg, var(--bx) 0%, var(--bx2) 100%); border-radius: 9px 9px 0 0; display: flex; align-items: center; gap: 8px; }
.isp-box-title i { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; margin: 0; }
.isp-box .form-label { font-size: 13px; font-weight: 600; color: #35475a; margin-bottom: 3px; }
.isp-box .form-control, .isp-box .form-select { border-color: #cfd9e2; }
.isp-box .form-control:focus, .isp-box .form-select:focus { border-color: var(--bx2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bx2) 18%, transparent); }
.feat-grid .feat-tile { border: 1px solid #e3e8ed; border-radius: 8px; padding: 8px 10px; background: #fff; }
.feat-grid .feat-tile.is-on { border-color: #0f8b8d; background: #eef7f7; }
.feat-grid .feat-tile.is-off { border-color: #e6b0aa; background: #fdf3f2; }
.isp-danger { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid #f1c0bb; background: #fff8f7; border-radius: 6px; padding: 12px 16px; margin-top: 8px; }

/* portal entry page (2026-10-28): the three steps instead of a login form */
.auth-steps { margin: 0 0 18px; padding-left: 20px; color: #35475a; font-size: 14px; }
.auth-steps li { margin-bottom: 6px; }

/* 2026-10-29 ISPs list: the ISP's panel admin login (owner): masked password, eye, Set */
.apw-row { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.apw-row .apw-show { font-family: monospace; letter-spacing: 1px; }
