:root {
  --ink: #172126;
  --muted: #66757f;
  --line: #dce6e8;
  --panel: #ffffff;
  --soft: #f3f7f6;
  --mint: #1f9d78;
  --teal: #087f8c;
  --amber: #c97914;
  --red: #c64242;
  --navy: #203844;
  --gold: #e6a600;
  --subscriber-blue: #3851c1;
  --shadow: 0 20px 60px rgba(23, 33, 38, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(31, 157, 120, 0.16), transparent 30%),
    linear-gradient(120deg, rgba(31, 157, 120, 0.1), rgba(8, 127, 140, 0.08)),
    #eef4f3;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.login-panel {
  min-height: 100vh;
  padding: 28px clamp(22px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: hidden;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-block.compact {
  padding: 6px 4px 22px;
}

.brand-mark {
  width: 62px;
  height: 52px;
  border-radius: 10px;
  background: #fff url("assets/new-vision-logo.svg") center / 92% auto no-repeat;
  flex: 0 0 auto;
  box-shadow: 0 10px 28px rgba(7, 46, 86, 0.18);
}

.brand-mark span {
  display: none;
}

.brand-block:not(.compact) .brand-mark {
  width: 76px;
  height: 60px;
}

.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.brand-block h1,
.brand-block h2 {
  margin: 2px 0 0;
}

.brand-block h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.login-grid {
  width: min(1180px, 100%);
  margin: auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 430px);
  gap: clamp(30px, 7vw, 92px);
  align-items: center;
}

.login-copy h2 {
  max-width: 680px;
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 22px 0 18px;
}

.login-lede {
  max-width: 620px;
  margin: 0 0 28px;
  color: #526873;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 650;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #14624f;
  background: rgba(220, 246, 239, 0.86);
  padding: 9px 13px;
  border: 1px solid #bce9dd;
  border-radius: 999px;
  font-weight: 850;
  box-shadow: 0 8px 24px rgba(31, 157, 120, 0.08);
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 470px;
}

.quick-stats div,
.login-card,
.panel,
.metric-card,
.person-card,
.sidebar-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-stats div {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.quick-stats strong,
.metric-card strong {
  display: block;
  font-size: 1.7rem;
}

.quick-stats span,
.metric-card span,
.sidebar-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.login-card {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    var(--panel);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 80px rgba(15, 48, 58, 0.16);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--mint), var(--gold));
}

.login-error {
  margin: 12px 0 0;
  color: #8a2020;
  font-weight: 800;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #edf5f4;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid #d7e7e7;
}

.role-tab {
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  padding: 10px 8px;
  font-weight: 800;
}

.role-tab.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 6px 18px rgba(23, 33, 38, 0.08);
}

.fixed-login-page .role-tabs {
  display: none;
}

.form-heading {
  margin: 26px 0 22px;
}

.form-heading h3 {
  margin-bottom: 6px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.form-heading p,
.panel p,
.person-card p {
  color: var(--muted);
}

label,
.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #40515a;
  font-weight: 700;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdfd;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.12);
}

textarea {
  resize: vertical;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 4px 0 22px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.check-label input {
  width: auto;
}

.access-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.access-choice-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  font-weight: 800;
}

.access-choice-grid input {
  width: auto;
  margin: 0;
}

a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.primary-action,
.panel-head button,
.nav-list button,
.icon-button,
.user-chip {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  width: 100%;
  padding: 14px 18px;
  color: white;
  background: linear-gradient(135deg, #087f8c, #11949d);
  box-shadow: 0 12px 24px rgba(8, 127, 140, 0.22);
}

.primary-action:hover {
  background: linear-gradient(135deg, #076f7b, #087f8c);
}

.isp-site {
  min-height: 100vh;
  padding: 24px clamp(18px, 4vw, 56px) 56px;
}

.isp-header {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.isp-brand {
  color: inherit;
}

.isp-brand h1 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.isp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.isp-nav a,
.secondary-action,
.portal-grid a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  text-decoration: none;
}

.isp-nav .nav-login,
.secondary-action:hover,
.portal-grid a:hover {
  border-color: rgba(8, 127, 140, 0.25);
  color: var(--teal);
  background: #e2f5f0;
}

.isp-hero {
  max-width: 1180px;
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.isp-hero-copy h2 {
  max-width: 740px;
  margin: 22px 0 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.02;
}

.isp-hero-copy > p:not(.status-pill) {
  max-width: 620px;
  color: #526873;
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 650;
}

.isp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.link-action {
  width: auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.isp-hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.isp-hero-panel div,
.isp-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.isp-hero-panel span,
.isp-card span {
  color: var(--muted);
  font-weight: 750;
}

.isp-hero-panel strong,
.isp-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.isp-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading h2,
.split-section h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.isp-card-grid,
.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.isp-card p,
.split-section p {
  color: var(--muted);
  line-height: 1.55;
  font-weight: 650;
}

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-card .plan-price {
  margin: 10px 0 8px;
  color: var(--teal);
  font-size: 1.08rem;
  font-weight: 900;
}

.plan-card a {
  width: fit-content;
  margin-top: auto;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--teal);
  background: #e2f5f0;
  font-weight: 900;
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
}

.support-box {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
}

.employee-portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  background: #eef4f3;
}

.sidebar {
  min-height: 100vh;
  padding: 24px;
  color: white;
  background: var(--navy);
}

.sidebar .eyebrow,
.sidebar p {
  color: #a7c7c9;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list button {
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  color: #d7e6e7;
  background: transparent;
}

.nav-list button.active,
.nav-list button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-card {
  margin-top: 28px;
  padding: 18px;
  color: var(--ink);
}

.sidebar-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.6rem;
}

.profile-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.profile-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-list dt {
  color: var(--muted);
  font-weight: 700;
}

.profile-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.employee-profile-grid {
  align-items: start;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
}

.employee-profile-card {
  min-height: 100%;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0 8px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--nav);
  font-size: 1.35rem;
  font-weight: 900;
}

.profile-hero span {
  color: var(--muted);
  font-weight: 700;
}

.profile-hero strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.profile-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.profile-detail-list {
  gap: 0;
}

.profile-detail-list div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.attendance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.attendance-actions button {
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--teal);
  background: #e2f5f0;
  font-weight: 800;
}

.attendance-actions button.danger-action {
  color: #8a2020;
  background: #ffe5e5;
}

.workspace {
  padding: 24px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  width: min(360px, 42vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.search-box input {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.search-icon {
  width: 15px;
  height: 15px;
  position: relative;
  flex: 0 0 auto;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  width: 7px;
  height: 2px;
  position: absolute;
  right: -6px;
  bottom: -3px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.icon-button,
.user-chip {
  width: 42px;
  height: 42px;
  color: white;
  background: var(--ink);
}

.view,
.employee-view,
.subscriber-view {
  display: none;
}

.view.active,
.employee-view.active,
.subscriber-view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-card,
.panel,
.person-card {
  padding: 18px;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--mint);
  font-weight: 800;
}

.refresh-note {
  margin: -4px 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.billing-grid {
  align-items: start;
}

#billing .billing-grid {
  grid-template-columns: minmax(0, 1fr);
}

.network-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-head h3 {
  margin-bottom: 0;
}

.panel-head button {
  padding: 9px 12px;
  color: var(--teal);
  background: #e2f5f0;
}

.panel-head select,
.panel-head input[type="month"] {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-head button.danger-action {
  color: #8a2020;
  background: #ffe5e5;
}

.status-select {
  min-width: 116px;
  padding: 8px 10px;
  border-radius: 999px;
  border-color: var(--line);
  background: #fbfdfd;
  font-weight: 800;
}

.status-note {
  display: block;
  max-width: 220px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.ticket-status-select {
  min-width: 150px;
  padding: 8px 10px;
  border-radius: 6px;
  border-color: var(--line);
  background: #fbfdfd;
  font-weight: 700;
}

.ticket-remarks {
  min-width: 220px;
  padding: 8px 10px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.row-action {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--teal);
  background: #e2f5f0;
  font-weight: 800;
}

.row-action.reminder-action {
  color: #11664e;
  background: #dff7e8;
}

.row-action.danger-action {
  color: #8a2020;
  background: #ffe5e5;
}

.health-list {
  display: grid;
  gap: 12px;
}

.health-list div {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.health-list em {
  color: var(--muted);
  font-style: normal;
}

.dot,
.node {
  border-radius: 50%;
}

.dot {
  width: 10px;
  height: 10px;
}

.good {
  background: #dff7ee;
  color: #11664e;
}

.dot.good,
.node.good {
  background: var(--mint);
}

.warn {
  background: #fff0dc;
  color: #87500b;
}

.dot.warn,
.node.warn {
  background: var(--amber);
}

.bad {
  background: #ffe5e5;
  color: #8a2020;
}

.dot.bad,
.node.bad {
  background: var(--red);
}

.bar-chart {
  height: 230px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  align-items: end;
  padding-top: 20px;
}

.bar-chart span {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #19a984, #087f8c);
}

.table-panel {
  overflow-x: auto;
}

.compact-table-panel table {
  min-width: 0;
  table-layout: fixed;
}

.compact-table-panel th,
.compact-table-panel td {
  overflow-wrap: anywhere;
}

.invoice-panel {
  overflow-x: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

#subscribers table {
  min-width: 1180px;
}

.invoice-table {
  min-width: 0;
  table-layout: fixed;
}

.invoice-table th:nth-child(1),
.invoice-table td:nth-child(1) {
  width: 18%;
}

.invoice-table th:nth-child(2),
.invoice-table td:nth-child(2) {
  width: 24%;
}

.invoice-table th:nth-child(3),
.invoice-table td:nth-child(3) {
  width: 16%;
}

.invoice-table th:nth-child(4),
.invoice-table td:nth-child(4) {
  width: 17%;
}

.invoice-table th:nth-child(5),
.invoice-table td:nth-child(5) {
  width: 12%;
}

.invoice-table th:nth-child(6),
.invoice-table td:nth-child(6) {
  width: 13%;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.invoice-table th,
.invoice-table td {
  padding: 16px 10px;
  vertical-align: middle;
}

.invoice-table td:first-child,
.invoice-table td:nth-child(3) {
  font-weight: 700;
}

.invoice-table .row-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.invoice-table .row-action {
  min-width: 58px;
  text-align: center;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.empty-cell {
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.assigned-ticket td {
  background: #f5fbf8;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.person-card {
  min-height: 190px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
  font-weight: 900;
}

.person-card h3 {
  margin: 18px 0 6px;
}

.person-card strong {
  color: var(--mint);
}

.node-map {
  min-height: 390px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 127, 140, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(8, 127, 140, 0.08) 1px, transparent 1px),
    #f9fcfb;
  background-size: 44px 44px;
}

.node {
  width: 24px;
  height: 24px;
  position: absolute;
  box-shadow: 0 0 0 8px rgba(31, 157, 120, 0.12);
}

.n1 { left: 16%; top: 22%; }
.n2 { left: 42%; top: 34%; }
.n3 { left: 67%; top: 20%; }
.n4 { left: 74%; top: 64%; }
.n5 { left: 25%; top: 70%; }

.earth-map {
  min-height: 480px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #15313d;
  background:
    radial-gradient(circle at 28% 26%, rgba(119, 172, 94, 0.95) 0 8%, transparent 9%),
    radial-gradient(circle at 66% 34%, rgba(85, 142, 79, 0.9) 0 10%, transparent 11%),
    radial-gradient(circle at 44% 70%, rgba(152, 133, 72, 0.9) 0 11%, transparent 12%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #143746;
  background-size: auto, auto, auto, auto, 54px 54px, 54px 54px, auto;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35);
}

.earth-map::before {
  content: "Google Earth Style View";
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #dff7ee;
  background: rgba(8, 24, 32, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.earth-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.28));
}

.location-marker {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50% 50% 50% 4px;
  color: white;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.location-marker span {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  transform: rotate(45deg);
}

.location-marker.online {
  background: var(--mint);
}

.location-marker.warning {
  background: var(--amber);
}

.location-marker.offline {
  background: var(--red);
}

.subscriber-portal {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  color: var(--ink);
  background: linear-gradient(135deg, #dcefeb 0%, #eef7f4 52%, #e6f2ee 100%);
}

.subscriber-workspace {
  position: relative;
}

.subscriber-console-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subscriber-side-nav {
  margin-top: 22px;
}

.subscriber-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 12px;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(23, 33, 38, 0.14);
}

.subscriber-logo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  background: radial-gradient(circle at 35% 28%, #34c6a3 0 22%, #087f8c 23% 62%, #f0fffb 63% 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.subscriber-logo span {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

.subscriber-nav {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.subscriber-nav button {
  min-width: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: white;
  background: transparent;
  font-weight: 800;
}

.subscriber-nav button.active {
  border-bottom-color: #79ead0;
  background: rgba(255, 255, 255, 0.08);
}

.nav-home,
.nav-support,
.nav-profile {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.nav-home::before {
  content: "";
  position: absolute;
  inset: 6px 3px 1px;
  background: white;
  border-radius: 1px;
}

.nav-home::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  left: 2px;
  top: 0;
  background: white;
  transform: rotate(45deg);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 55%);
}

.nav-support {
  border: 2px solid white;
  border-bottom-color: transparent;
  border-radius: 10px 10px 4px 4px;
}

.nav-support::before,
.nav-support::after {
  content: "";
  width: 4px;
  height: 8px;
  position: absolute;
  top: 7px;
  background: white;
  border-radius: 2px;
}

.nav-support::before { left: -3px; }
.nav-support::after { right: -3px; }

.nav-profile {
  border: 2px solid white;
  border-radius: 50%;
}

.nav-profile::before,
.nav-profile::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: white;
  transform: translate(-50%, -50%);
}

.nav-profile::before {
  width: 2px;
  height: 8px;
}

.nav-profile::after {
  width: 8px;
  height: 2px;
}

.subscriber-content {
  min-height: calc(100vh - 50px);
  padding: 18px 28px 96px;
}

.subscriber-main {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(350px, 372px);
  gap: 24px;
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
}

.subscriber-left {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: calc(100vh - 168px);
  padding-right: 4px;
}

.subscriber-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 0 10px;
  border-bottom: 1px solid rgba(8, 127, 140, 0.12);
}

.subscriber-greeting h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  font-weight: 500;
}

.subscriber-greeting strong {
  color: var(--teal);
  font-weight: 700;
}

.complaint-button {
  min-width: 122px;
  border: 0;
  border-radius: 6px;
  padding: 10px 20px;
  color: white;
  background: var(--amber);
  box-shadow: 0 8px 16px rgba(201, 121, 20, 0.2);
  font-weight: 800;
}

.subscriber-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.payment-request-button {
  min-width: 152px;
  border: 0;
  border-radius: 6px;
  padding: 10px 20px;
  color: white;
  background: var(--teal);
  box-shadow: 0 8px 16px rgba(8, 127, 140, 0.22);
  font-weight: 800;
}

.subscriber-payment-panel {
  width: min(430px, 100%);
  margin-top: 24px;
}

.subscriber-summary {
  width: 100%;
  display: grid;
  gap: 12px;
}

.subscriber-card {
  padding: 18px;
  color: var(--teal);
  background: white;
  border: 1px solid rgba(8, 127, 140, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.subscriber-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.subscriber-card h3,
.subscriber-card p {
  margin: 0;
}

.subscriber-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.subscriber-card-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.online-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
  background: #b8e6bd;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.72fr);
  align-items: center;
  gap: 12px;
}

.detail-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 500;
}

.detail-list dd {
  margin: 0;
  text-align: left;
  font-weight: 500;
}

.mini-icon {
  width: 16px;
  height: 16px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--teal);
}

.user-icon,
.status-icon,
.globe-icon,
.clock-icon,
.usage-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.user-icon::before {
  content: "";
  width: 4px;
  height: 4px;
  position: absolute;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: currentColor;
}

.user-icon::after {
  content: "";
  width: 8px;
  height: 4px;
  position: absolute;
  left: 2px;
  bottom: 3px;
  border-radius: 8px 8px 0 0;
  background: currentColor;
}

.status-icon::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: currentColor;
}

.globe-icon::before,
.globe-icon::after {
  content: "";
  position: absolute;
  border-color: currentColor;
  border-style: solid;
}

.globe-icon::before {
  inset: 2px 5px;
  border-width: 0 1px;
}

.globe-icon::after {
  left: 2px;
  right: 2px;
  top: 6px;
  border-width: 1px 0 0;
}

.ticket-icon,
.calendar-icon,
.plan-icon {
  border-radius: 2px;
  background: currentColor;
}

.ticket-icon::after {
  content: "";
  width: 6px;
  height: 8px;
  position: absolute;
  right: -4px;
  bottom: -2px;
  border: 2px solid currentColor;
  border-left: 0;
  border-top: 0;
}

.usage-strip {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #e6cd8c;
}

.usage-strip p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.usage-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.usage-values span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.upload-icon,
.download-icon,
.transfer-icon {
  width: 14px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.upload-icon::before,
.download-icon::before,
.transfer-icon::before {
  content: "";
  position: absolute;
  left: 6px;
  width: 2px;
  height: 13px;
  background: var(--teal);
}

.upload-icon::after,
.download-icon::after,
.transfer-icon::after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  left: 3px;
  border-left: 1px solid var(--teal);
  border-top: 1px solid var(--teal);
}

.upload-icon::before { top: 2px; }
.upload-icon::after {
  top: 1px;
  transform: rotate(45deg);
}

.download-icon::before { top: 0; }
.download-icon::after {
  bottom: 1px;
  transform: rotate(225deg);
}

.transfer-icon::before {
  top: 1px;
  box-shadow: 6px 0 0 var(--teal);
}

.transfer-icon::after {
  top: 1px;
  transform: rotate(45deg);
  box-shadow: 6px 6px 0 -1px white, 6px 6px 0 0 var(--teal);
}

.plan-chart {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 75%, transparent 75% 100%);
  border: 1px solid var(--teal);
}

.plan-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 4px;
  height: 2px;
  background: white;
  box-shadow: 0 4px 0 white;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 2px;
  background: white;
}

.clock-icon::before {
  content: "";
  width: 2px;
  height: 6px;
  position: absolute;
  left: 6px;
  top: 3px;
  background: currentColor;
}

.clock-icon::after {
  content: "";
  width: 5px;
  height: 2px;
  position: absolute;
  left: 6px;
  top: 8px;
  background: currentColor;
}

.floating-chat {
  min-width: 118px;
  height: 48px;
  position: fixed;
  right: 430px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  z-index: 12;
}

.floating-chat span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
}

.floating-chat em {
  color: white;
  font-style: normal;
  font-weight: 900;
}

.whatsapp-support {
  background: #25d366;
}

.whatsapp-support:hover {
  background: #1fb457;
}

.subscriber-workspace .floating-chat {
  right: 24px;
}

.complaint-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 38, 0.42);
}

.complaint-form {
  width: min(460px, 100%);
  padding: 22px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.subscriber-form {
  width: min(780px, 100%);
  max-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  overflow-y: auto;
}

.subscriber-form .complaint-head,
.subscriber-form input[type="hidden"],
.subscriber-form label:first-of-type,
.subscriber-form label:nth-of-type(8),
.subscriber-form .primary-action,
.subscriber-form .form-success {
  grid-column: 1 / -1;
}

.subscriber-form label {
  margin: 0;
}

.form-helper {
  max-width: 520px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.complaint-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.complaint-head h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.close-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-weight: 900;
}

#employeeForm {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  padding: 26px;
  overflow-y: auto;
}

#employeeForm .complaint-head,
#employeeForm input[type="hidden"],
#employeeForm label:first-of-type,
#employeeForm .form-field,
#employeeForm .primary-action,
#employeeForm .form-success {
  grid-column: 1 / -1;
}

#employeeForm label,
#employeeForm .form-field {
  margin: 0;
}

#employeeForm .complaint-head {
  position: sticky;
  top: -26px;
  z-index: 2;
  padding: 0 0 14px;
  background: white;
}

#employeeForm .close-button {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

#employeeForm .access-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

#employeeForm .access-choice-grid label {
  min-height: 46px;
  border-color: #cfe4e5;
  background: #f7fbfb;
}

#employeeForm .primary-action {
  margin-top: 4px;
}

.form-success {
  margin: 12px 0 0;
  color: #11664e;
  font-weight: 800;
}

@media (max-width: 980px) {
  .isp-header,
  .split-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .isp-header {
    display: flex;
  }

  .isp-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .isp-hero {
    min-height: auto;
    padding: 54px 0 28px;
  }

  .isp-card-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .login-grid,
  .dashboard,
  .subscriber-portal,
  .employee-portal,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .login-panel {
    overflow: visible;
  }

  .login-copy h2 {
    max-width: 760px;
    font-size: clamp(2.1rem, 7vw, 3.4rem);
  }

  .login-card {
    width: min(100%, 520px);
  }

  .sidebar {
    min-height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid,
  .employee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subscriber-greeting {
    margin-bottom: 22px;
  }

  .subscriber-main {
    grid-template-columns: 1fr;
  }

  .subscriber-console-grid {
    grid-template-columns: 1fr;
  }

  .subscriber-left {
    min-height: 0;
  }

  .subscriber-payment-panel {
    width: 100%;
    margin-bottom: 22px;
  }

  .subscriber-summary {
    width: 100%;
  }

  .floating-chat {
    right: 24px;
  }
}

@media (max-width: 760px) {
  .subscriber-form {
    grid-template-columns: 1fr;
  }

  .invoice-panel {
    overflow-x: auto;
  }

  .invoice-table {
    min-width: 640px;
  }
}

@media (max-width: 640px) {
  .isp-site {
    padding: 18px 14px 42px;
  }

  .isp-nav,
  .isp-actions {
    width: 100%;
  }

  .isp-nav a,
  .isp-actions a,
  .support-box a {
    width: 100%;
  }

  .isp-hero-copy h2 {
    font-size: 2.25rem;
  }

  .isp-hero-panel {
    grid-template-columns: 1fr;
  }

  .login-panel,
  .workspace,
  .sidebar {
    padding: 18px;
  }

  .login-panel {
    gap: 22px;
  }

  .brand-block:not(.compact) .brand-mark {
    width: 64px;
    height: 52px;
  }

  .login-copy h2 {
    font-size: 2rem;
    line-height: 1.08;
  }

  .login-lede {
    font-size: 0.96rem;
    margin-bottom: 20px;
  }

  .login-card {
    padding: 22px;
  }

  .quick-stats,
  .metric-grid,
  .employee-grid,
  .nav-list {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions,
  .form-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .role-tabs {
    grid-template-columns: 1fr;
  }

  .subscriber-header {
    height: auto;
    align-items: flex-start;
    padding: 8px 10px;
    gap: 12px;
  }

  .subscriber-nav {
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .subscriber-nav button {
    min-width: 0;
    padding: 10px 8px;
  }

  .subscriber-content {
    padding: 18px 12px 84px;
  }

  .subscriber-greeting {
    flex-direction: column;
  }

  .subscriber-actions {
    width: 100%;
    flex-direction: column;
  }

  .complaint-button,
  .payment-request-button {
    width: 100%;
  }

  .floating-chat {
    right: 14px;
    bottom: 14px;
    min-width: 56px;
    border-radius: 50%;
  }

  .floating-chat em {
    display: none;
  }

  .detail-list div,
  .usage-values {
    grid-template-columns: 1fr;
  }

  .detail-list dd {
    text-align: left;
    padding-left: 24px;
  }
}
