:root {
  --background: #080d17;
  --surface: #111827;
  --surface-light: #151f31;
  --surface-hover: #192438;
  --sidebar: #070b13;
  --text: #f4f7fb;
  --muted: #8491a6;
  --border: #253044;
  --blue: #4b7cff;
  --blue-soft: rgba(75, 124, 255, 0.14);
  --green: #31c48d;
  --green-soft: rgba(49, 196, 141, 0.13);
  --orange: #f3a83b;
  --orange-soft: rgba(243, 168, 59, 0.14);
  --red: #f06464;
  --red-soft: rgba(240, 100, 100, 0.14);
  --purple: #9a7cff;
  --purple-soft: rgba(154, 124, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 1050px;
  color: var(--text);
  background: var(--background);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* SIDEBAR */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 190px;
  height: 100vh;
  flex-direction: column;
  color: white;
  background:
    radial-gradient(
      circle at 0 0,
      rgba(75, 124, 255, 0.16),
      transparent 35%
    ),
    var(--sidebar);
  border-right: 1px solid var(--border);
}

.brand-area {
  display: flex;
  height: 57px;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
}

.logo-box {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  flex-shrink: 0;
  color: white;
  background: linear-gradient(145deg, #5b86ff, #285be0);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 7px 15px rgba(40, 91, 224, 0.25);
}

.brand-text h1 {
  margin: 0;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text p {
  margin: 3px 0 0;
  color: #7f8ba0;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
}

.navigation {
  display: grid;
  gap: 5px;
  padding: 15px 11px;
}

.nav-button,
.logout-button {
  display: flex;
  width: 100%;
  height: 37px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  color: #8e99ab;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
  font-size: 11px;
}

.nav-button svg,
.logout-button svg {
  width: 15px;
  height: 15px;
}

.nav-button:hover,
.logout-button:hover {
  color: white;
  background: var(--surface-light);
}

.nav-button.active {
  color: white;
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}

.logout-button {
  width: calc(100% - 22px);
  margin: auto 11px 15px;
}

/* MAIN AREA */

.main-area {
  width: calc(100% - 190px);
  height: 100vh;
  margin-left: 190px;
  overflow: hidden;
  background: var(--background);
}

.top-header {
  position: relative;
  display: flex;
  height: 57px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #0d1421;
  border-bottom: 1px solid var(--border);
}

.top-header h2 {
  margin: 0;
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header-right {
  position: absolute;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--green-soft);
}

.mobile-menu {
  display: none;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* SINGLE-SCREEN DASHBOARD */

#dashboardPage {
  height: calc(100vh - 57px);
  overflow: hidden;
}

.dashboard-content {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows:
    minmax(0, 1.15fr)
    minmax(0, 1.15fr)
    minmax(105px, 0.7fr);
  gap: 9px;
  padding: 10px 16px 12px;
  overflow: hidden;
}

.dashboard-section {
  display: flex;
  min-height: 0;
  flex-direction: column;
  margin: 0;
}

.section-title-row {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 0 2px 5px;
}

.section-title-row h3 {
  margin: 0;
  color: #f2f5fa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title-row p {
  display: inline;
  margin: 0 0 0 8px;
  color: var(--muted);
  font-size: 7px;
}

.section-title-row > div {
  display: flex;
  align-items: center;
}

.time-label {
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  text-transform: uppercase;
}

.refresh-button {
  display: inline-flex;
  height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 600;
}

.refresh-button:hover {
  background: #3569ed;
}

.refresh-button svg {
  width: 11px;
  height: 11px;
}

.refresh-button.loading svg {
  animation: rotate 0.7s linear infinite;
}

/* CARDS */

.main-card {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.table-scroll {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

table {
  width: 100%;
  height: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
}

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

th {
  height: 24px;
  color: #8290a5;
  background: var(--surface-light);
  font-size: 6.7px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

td {
  color: #d9dfE9;
  font-size: 8px;
}

tbody tr {
  height: calc((100% - 24px) / 5);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--surface-hover);
}

/* VPN SERVER STATUS */

.server-name,
.health-server {
  display: flex;
  align-items: center;
  gap: 7px;
}

.location-code {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex-shrink: 0;
  color: #7fa0ff;
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 7px;
  font-weight: 700;
}

.server-name strong,
.health-server strong {
  display: block;
  color: #eef2f8;
  font-size: 8px;
}

.server-name small,
.health-server small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 6px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 6.5px;
  font-weight: 700;
}

.status > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.status.online {
  color: var(--green);
  background: var(--green-soft);
}

.status.online > span {
  background: var(--green);
}

.status.warning {
  color: var(--orange);
  background: var(--orange-soft);
}

.status.warning > span {
  background: var(--orange);
}

.status.offline {
  color: var(--red);
  background: var(--red-soft);
}

.status.offline > span {
  background: var(--red);
}

.load-area {
  display: flex;
  min-width: 110px;
  align-items: center;
  gap: 7px;
}

.load-track {
  width: 76px;
  height: 4px;
  overflow: hidden;
  background: #273246;
  border-radius: 999px;
}

.load-fill {
  height: 100%;
  border-radius: inherit;
}

.load-fill.blue {
  background: var(--blue);
}

.load-fill.red {
  background: var(--red);
}

.load-fill.grey {
  background: #667085;
}

.load-area strong {
  min-width: 24px;
  color: #aeb8c8;
  font-size: 6.5px;
}

.number-value {
  color: #edf2f8;
  font-size: 8px;
}

.secondary-text {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 5.8px;
}

/* SERVER HEALTH */

.health-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
}

.health-dot.good {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.health-dot.warning-dot {
  background: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}

.health-dot.offline-dot {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.metric-success,
.metric-warning,
.metric-danger,
.metric-muted,
.latency {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 6.5px;
  font-weight: 700;
}

.metric-success {
  color: var(--green);
  background: var(--green-soft);
}

.metric-warning {
  color: var(--orange);
  background: var(--orange-soft);
}

.metric-danger {
  color: var(--red);
  background: var(--red-soft);
}

.metric-normal {
  color: #e0e6ef;
  font-size: 7px;
  font-weight: 700;
}

.metric-muted {
  color: #8490a3;
  background: rgba(132, 144, 163, 0.1);
}

.good-latency {
  color: var(--green);
  background: var(--green-soft);
}

.high-latency {
  color: var(--red);
  background: var(--red-soft);
}

.offline-latency {
  color: #8490a3;
  background: rgba(132, 144, 163, 0.1);
}

/* PAYMENT HEALTH */

.payment-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.payment-heading-row,
.payment-value-row {
  display: grid;
  min-width: 780px;
  grid-template-columns: repeat(5, minmax(135px, 1fr));
}

.payment-heading-row {
  min-height: 25px;
  color: #8290a5;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
}

.payment-heading-row > div {
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.payment-value-row {
  min-height: 0;
  flex: 1;
}

.payment-value-row > div {
  border-right: 1px solid var(--border);
}

.payment-value-row > div:last-child {
  border-right: 0;
}

.payment-item {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
}

.payment-item strong {
  display: block;
  color: #f3f6fa;
  font-size: 13px;
  line-height: 1;
}

.payment-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 5.8px;
  white-space: nowrap;
}

.payment-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.success-icon {
  color: var(--green);
  background: var(--green-soft);
}

.danger-icon {
  color: var(--red);
  background: var(--red-soft);
}

.warning-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.refund-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

/* OTHER PAGES */

.placeholder-page {
  height: calc(100vh - 57px);
  padding: 25px;
  place-items: center;
  background: var(--background);
}

.placeholder-page.active {
  display: grid;
}

.placeholder-card {
  width: min(440px, 100%);
  padding: 30px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.placeholder-card > span {
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-card h2 {
  margin: 9px 0 7px;
  color: white;
  font-size: 18px;
}

.placeholder-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 17px;
  bottom: 17px;
  z-index: 100;
  padding: 9px 12px;
  color: white;
  background: #1b2638;
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.18s ease;
  font-size: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* SMALL LAPTOP SCREEN */

@media (max-height: 750px) {
  .top-header,
  .brand-area {
    height: 50px;
  }

  #dashboardPage,
  .placeholder-page {
    height: calc(100vh - 50px);
  }

  .dashboard-content {
    gap: 6px;
    padding: 7px 13px 8px;
  }

  .section-title-row {
    min-height: 23px;
    margin-bottom: 3px;
  }

  th,
  td {
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .payment-heading-row {
    min-height: 21px;
  }
}


/* =========================================================
   INDSHIELD TICKETS PAGE
========================================================= */

.tickets-page {
  height: calc(100vh - 57px);
  overflow: hidden;
}

.tickets-content {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
}

.tickets-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tickets-top h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: 15px;
}

.tickets-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 7px;
}

.create-ticket-button {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.create-ticket-button span {
  font-size: 14px;
  font-weight: 400;
}

.ticket-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ticket-summary-card {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ticket-summary-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 800;
}

.blue-ticket-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.orange-ticket-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.purple-ticket-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.red-ticket-icon {
  color: var(--red);
  background: var(--red-soft);
}

.ticket-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 6.5px;
}

.ticket-summary-card strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 14px;
}

.tickets-main-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.ticket-toolbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
}

.ticket-search {
  display: flex;
  width: 280px;
  height: 29px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.ticket-search svg {
  width: 13px;
  height: 13px;
}

.ticket-search input {
  width: 100%;
  color: white;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 7.5px;
}

.ticket-search input::placeholder {
  color: #68758a;
}

.ticket-filters {
  display: flex;
  gap: 7px;
}

.ticket-filters select,
.create-ticket-body select,
.create-ticket-body input,
.create-ticket-body textarea {
  color: #dce3ed;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
}

.ticket-filters select {
  height: 29px;
  padding: 0 8px;
  font-size: 7px;
}

.ticket-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.ticket-table {
  width: 100%;
  height: auto;
  min-width: 850px;
  table-layout: auto;
}

.ticket-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.ticket-table tbody tr {
  height: 48px;
}

.ticket-number {
  color: #82a2ff;
  font-size: 7px;
  font-weight: 700;
}

.ticket-user strong {
  display: block;
  color: #e7ebf2;
  font-size: 7.5px;
}

.ticket-user small {
  display: block;
  max-width: 125px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-cell strong {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: #e7ebf2;
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-cell small {
  display: block;
  max-width: 150px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority-badge,
.ticket-status-badge {
  display: inline-flex;
  padding: 4px 6px;
  border-radius: 999px;
  font-size: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.priority-critical {
  color: var(--red);
  background: var(--red-soft);
}

.priority-high {
  color: #ff846f;
  background: rgba(255, 132, 111, 0.12);
}

.priority-medium {
  color: var(--orange);
  background: var(--orange-soft);
}

.priority-low {
  color: #7fa0ff;
  background: var(--blue-soft);
}

.ticket-status-new {
  color: #7fa0ff;
  background: var(--blue-soft);
}

.ticket-status-investigating {
  color: var(--orange);
  background: var(--orange-soft);
}

.ticket-status-waiting-for-user {
  color: var(--purple);
  background: var(--purple-soft);
}

.ticket-status-resolved {
  color: var(--green);
  background: var(--green-soft);
}

.ticket-view-button {
  padding: 5px 8px;
  color: #a9b9e7;
  background: var(--blue-soft);
  border: 1px solid rgba(75, 124, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  font-size: 6.5px;
  font-weight: 700;
}

.ticket-view-button:hover {
  color: white;
  background: rgba(75, 124, 255, 0.23);
}

.ticket-empty {
  padding: 35px;
  color: var(--muted);
  text-align: center;
  font-size: 8px;
}

/* TICKET MODALS */

.ticket-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.78);
  backdrop-filter: blur(5px);
}

.ticket-modal-backdrop.open {
  display: grid;
}

.ticket-modal {
  display: flex;
  width: min(650px, 94vw);
  max-height: 88vh;
  flex-direction: column;
  overflow: hidden;
  background: #101827;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.ticket-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
}

.ticket-modal-header span {
  color: #7fa0ff;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ticket-modal-header h3 {
  margin: 4px 0 0;
  color: white;
  font-size: 13px;
}

.ticket-modal-close {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #a5afbd;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.ticket-modal-body {
  overflow-y: auto;
  padding: 14px 15px;
}

.ticket-details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.ticket-detail-box {
  padding: 9px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.ticket-detail-box span,
.ticket-information-block > span,
.internal-note-label > span {
  display: block;
  color: var(--muted);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticket-detail-box strong {
  display: block;
  margin-top: 5px;
  color: #edf2f8;
  font-size: 7.5px;
}

.ticket-information-block {
  margin-top: 9px;
  padding: 10px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.ticket-information-block p {
  margin: 7px 0 0;
  color: #cbd3df;
  font-size: 7.5px;
  line-height: 1.55;
}

.ticket-information-block .likely-cause {
  color: #f0b555;
  font-weight: 600;
}

.diagnostic-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.diagnostic-list div {
  padding: 7px;
  background: #0c1421;
  border-radius: 6px;
}

.diagnostic-list small {
  display: block;
  color: var(--muted);
  font-size: 5.8px;
}

.diagnostic-list strong {
  display: block;
  margin-top: 4px;
  color: #e8edf5;
  font-size: 7px;
}

.internal-note-label {
  display: block;
  margin-top: 10px;
}

.internal-note-label textarea {
  width: 100%;
  min-height: 55px;
  margin-top: 7px;
  padding: 9px;
  resize: vertical;
  color: #e8edf5;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: 0;
  font-size: 7.5px;
}

.ticket-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 10px 15px;
  border-top: 1px solid var(--border);
}

.ticket-action {
  height: 27px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 7px;
  font-weight: 700;
}

.waiting-action {
  color: var(--purple);
  background: var(--purple-soft);
}

.investigating-action {
  color: var(--orange);
  background: var(--orange-soft);
}

.resolved-action {
  color: white;
  background: var(--green);
}

/* CREATE TICKET */

.create-ticket-modal {
  width: min(550px, 94vw);
}

.create-ticket-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.create-ticket-body label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 6.5px;
  font-weight: 700;
}

.create-ticket-body input,
.create-ticket-body select {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  font-size: 7.5px;
}

.create-ticket-body textarea {
  width: 100%;
  min-height: 65px;
  padding: 8px;
  resize: vertical;
  font-size: 7.5px;
}

.full-field {
  grid-column: 1 / -1;
}

@media (max-height: 750px) {
  .tickets-page {
    height: calc(100vh - 50px);
  }

  .tickets-content {
    gap: 7px;
    padding: 8px 13px;
  }

  .ticket-summary-card {
    min-height: 45px;
    padding: 6px 9px;
  }

  .ticket-toolbar {
    min-height: 38px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .ticket-table tbody tr {
    height: 41px;
  }
}

/* =========================================================
   INCREASE GLOBAL TEXT SIZE
========================================================= */

.brand-text h1 {
  font-size: 13.5px;
}

.brand-text p {
  font-size: 7.5px;
}

.nav-button,
.logout-button {
  font-size: 12px;
}

.top-header h2 {
  font-size: 16px;
}

.header-right {
  font-size: 9px;
}

.section-title-row h3 {
  font-size: 12.5px;
}

.section-title-row p {
  font-size: 8px;
}

.time-label {
  font-size: 8px;
}

.refresh-button {
  font-size: 9px;
}

th {
  font-size: 7.8px;
}

td {
  font-size: 9px;
}

.server-name strong,
.health-server strong {
  font-size: 9.5px;
}

.server-name small,
.health-server small {
  font-size: 7px;
}

.location-code {
  font-size: 8px;
}

.status {
  font-size: 7.5px;
}

.load-area strong {
  font-size: 7.5px;
}

.number-value {
  font-size: 9.5px;
}

.secondary-text {
  font-size: 6.8px;
}

.metric-success,
.metric-warning,
.metric-danger,
.metric-muted,
.latency {
  font-size: 7.5px;
}

.metric-normal {
  font-size: 8px;
}

.payment-heading-row > div {
  font-size: 7.5px;
}

.payment-item strong {
  font-size: 15px;
}

.payment-item small {
  font-size: 6.8px;
}

/* TICKETS PAGE TEXT */

.tickets-top h2 {
  font-size: 17px;
}

.tickets-top p {
  font-size: 8px;
}

.create-ticket-button {
  font-size: 9px;
}

.ticket-summary-card span {
  font-size: 7.5px;
}

.ticket-summary-card strong {
  font-size: 16px;
}

.ticket-search input {
  font-size: 8.5px;
}

.ticket-filters select {
  font-size: 8px;
}

.ticket-number {
  font-size: 8px;
}

.ticket-user strong,
.issue-cell strong {
  font-size: 8.5px;
}

.ticket-user small,
.issue-cell small {
  font-size: 7px;
}

.priority-badge,
.ticket-status-badge {
  font-size: 7px;
}

.ticket-view-button {
  font-size: 7.5px;
}

.ticket-empty {
  font-size: 9px;
}

/* MODAL TEXT */

.ticket-modal-header span {
  font-size: 7.5px;
}

.ticket-modal-header h3 {
  font-size: 15px;
}

.ticket-detail-box span,
.ticket-information-block > span,
.internal-note-label > span {
  font-size: 7px;
}

.ticket-detail-box strong {
  font-size: 8.5px;
}

.ticket-information-block p {
  font-size: 8.5px;
}

.diagnostic-list small {
  font-size: 6.8px;
}

.diagnostic-list strong {
  font-size: 8px;
}

.internal-note-label textarea {
  font-size: 8.5px;
}

.ticket-action {
  font-size: 8px;
}

.create-ticket-body label > span {
  font-size: 7.5px;
}

.create-ticket-body input,
.create-ticket-body select,
.create-ticket-body textarea {
  font-size: 8.5px;
}

.placeholder-card > span {
  font-size: 9px;
}

.placeholder-card p {
  font-size: 11px;
}

.toast {
  font-size: 9px;
}

/* =========================================================
   SECOND TEXT SIZE INCREASE
========================================================= */

body {
  font-size: 15px;
}

.brand-text h1 {
  font-size: 15px;
}

.brand-text p {
  font-size: 8.5px;
}

.nav-button,
.logout-button {
  font-size: 13px;
}

.top-header h2 {
  font-size: 18px;
}

.header-right {
  font-size: 10px;
}

.section-title-row h3 {
  font-size: 14px;
}

.section-title-row p {
  font-size: 9px;
}

.time-label {
  font-size: 9px;
}

.refresh-button {
  font-size: 10px;
}

th {
  font-size: 8.8px;
}

td {
  font-size: 10px;
}

.server-name strong,
.health-server strong {
  font-size: 10.5px;
}

.server-name small,
.health-server small {
  font-size: 8px;
}

.location-code {
  font-size: 9px;
}

.status {
  font-size: 8.5px;
}

.load-area strong {
  font-size: 8.5px;
}

.number-value {
  font-size: 10.5px;
}

.secondary-text {
  font-size: 7.5px;
}

.metric-success,
.metric-warning,
.metric-danger,
.metric-muted,
.latency {
  font-size: 8.5px;
}

.metric-normal {
  font-size: 9px;
}

.payment-heading-row > div {
  font-size: 8.5px;
}

.payment-item strong {
  font-size: 17px;
}

.payment-item small {
  font-size: 7.5px;
}

/* TICKETS PAGE */

.tickets-top h2 {
  font-size: 19px;
}

.tickets-top p {
  font-size: 9px;
}

.create-ticket-button {
  font-size: 10px;
}

.ticket-summary-card span {
  font-size: 8.5px;
}

.ticket-summary-card strong {
  font-size: 18px;
}

.ticket-search input {
  font-size: 9.5px;
}

.ticket-filters select {
  font-size: 9px;
}

.ticket-number {
  font-size: 9px;
}

.ticket-user strong,
.issue-cell strong {
  font-size: 9.5px;
}

.ticket-user small,
.issue-cell small {
  font-size: 8px;
}

.priority-badge,
.ticket-status-badge {
  font-size: 8px;
}

.ticket-view-button {
  font-size: 8.5px;
}

.ticket-empty {
  font-size: 10px;
}

/* MODAL */

.ticket-modal-header span {
  font-size: 8.5px;
}

.ticket-modal-header h3 {
  font-size: 17px;
}

.ticket-detail-box span,
.ticket-information-block > span,
.internal-note-label > span {
  font-size: 8px;
}

.ticket-detail-box strong {
  font-size: 9.5px;
}

.ticket-information-block p {
  font-size: 9.5px;
}

.diagnostic-list small {
  font-size: 7.5px;
}

.diagnostic-list strong {
  font-size: 9px;
}

.internal-note-label textarea {
  font-size: 9.5px;
}

.ticket-action {
  font-size: 9px;
}

.create-ticket-body label > span {
  font-size: 8.5px;
}

.create-ticket-body input,
.create-ticket-body select,
.create-ticket-body textarea {
  font-size: 9.5px;
}

.toast {
  font-size: 10px;
}


/* =========================================================
   INDSHIELD PREMIUM MANAGEMENT
========================================================= */

.premium-page {
  height: calc(100vh - 57px);
  overflow: hidden;
}

.premium-content {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
}

.premium-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-top h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: 19px;
}

.premium-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.premium-refresh-button {
  display: inline-flex;
  height: 29px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: white;
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.premium-refresh-button svg {
  width: 13px;
  height: 13px;
}

.premium-refresh-button.loading svg {
  animation: rotate 0.7s linear infinite;
}

.premium-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.premium-summary-card {
  display: flex;
  min-width: 0;
  min-height: 61px;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.premium-summary-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.premium-green {
  color: var(--green);
  background: var(--green-soft);
}

.premium-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.premium-orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.premium-purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.premium-red {
  color: var(--red);
  background: var(--red-soft);
}

.premium-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.premium-summary-card strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: white;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-summary-card small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #6f7c90;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-main-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.premium-toolbar {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
}

.premium-search {
  display: flex;
  width: 340px;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.premium-search svg {
  width: 13px;
  height: 13px;
}

.premium-search input {
  width: 100%;
  color: white;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 9.5px;
}

.premium-search input::placeholder {
  color: #68758a;
}

.premium-filters {
  display: flex;
  gap: 7px;
}

.premium-filters select {
  height: 30px;
  padding: 0 8px;
  color: #dce3ed;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  font-size: 9px;
}

.premium-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.premium-table {
  width: 100%;
  height: auto;
  min-width: 920px;
  table-layout: auto;
}

.premium-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.premium-table tbody tr {
  height: 49px;
}

.premium-user strong {
  display: block;
  max-width: 140px;
  overflow: hidden;
  color: #eef2f8;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-user small {
  display: block;
  max-width: 140px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-plan-badge,
.premium-status-badge,
.premium-payment-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.premium-plan-badge {
  color: #9bb3ff;
  background: var(--blue-soft);
}

.premium-status-active {
  color: var(--green);
  background: var(--green-soft);
}

.premium-status-expiring-soon {
  color: var(--orange);
  background: var(--orange-soft);
}

.premium-status-charged-but-inactive {
  color: var(--red);
  background: var(--red-soft);
}

.premium-status-restore-failed {
  color: var(--purple);
  background: var(--purple-soft);
}

.premium-status-refund-required {
  color: #ff8b8b;
  background: var(--red-soft);
}

.premium-status-expired {
  color: #8d98a9;
  background: rgba(141, 152, 169, 0.12);
}

.premium-payment-success {
  color: var(--green);
  background: var(--green-soft);
}

.premium-payment-failed {
  color: var(--red);
  background: var(--red-soft);
}

.premium-payment-pending {
  color: var(--orange);
  background: var(--orange-soft);
}

.premium-order-id {
  display: block;
  max-width: 140px;
  overflow: hidden;
  color: #9dacbf;
  font-family: monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-date {
  color: #c6ced9;
  font-size: 8.5px;
  white-space: nowrap;
}

.premium-open-button {
  padding: 5px 8px;
  color: #afc0ef;
  background: var(--blue-soft);
  border: 1px solid rgba(75, 124, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 700;
}

.premium-open-button:hover {
  color: white;
  background: rgba(75, 124, 255, 0.24);
}

.premium-empty {
  padding: 35px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

/* PREMIUM MODAL */

.premium-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.8);
  backdrop-filter: blur(5px);
}

.premium-modal-backdrop.open {
  display: grid;
}

.premium-modal {
  display: flex;
  width: min(720px, 95vw);
  max-height: 90vh;
  flex-direction: column;
  overflow: hidden;
  background: #101827;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.48);
}

.premium-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.premium-modal-header span {
  color: #86a5ff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.premium-modal-header h3 {
  margin: 4px 0 0;
  color: white;
  font-size: 17px;
}

.premium-modal-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #a5afbd;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 17px;
}

.premium-modal-body {
  overflow-y: auto;
  padding: 14px 16px;
}

.premium-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.premium-detail-box {
  min-width: 0;
  padding: 10px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.premium-detail-box span,
.premium-info-block > span,
.premium-note-label > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.premium-detail-box strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #edf2f8;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-info-block {
  margin-top: 10px;
  padding: 11px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.premium-verification-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.premium-verification-grid div {
  padding: 8px;
  background: #0c1421;
  border-radius: 6px;
}

.premium-verification-grid small {
  display: block;
  color: var(--muted);
  font-size: 7.5px;
}

.premium-verification-grid strong {
  display: block;
  margin-top: 5px;
  color: #e8edf5;
  font-size: 9px;
}

.premium-info-block p {
  margin: 8px 0 0;
  color: #cbd3df;
  font-size: 9.5px;
  line-height: 1.55;
}

.premium-note-label {
  display: block;
  margin-top: 10px;
}

.premium-note-label textarea {
  width: 100%;
  min-height: 58px;
  margin-top: 7px;
  padding: 9px;
  resize: vertical;
  color: #e8edf5;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: 0;
  font-size: 9.5px;
}

.premium-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
}

.premium-action {
  height: 29px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.premium-refund-action {
  color: var(--red);
  background: var(--red-soft);
}

.premium-restore-action {
  color: var(--purple);
  background: var(--purple-soft);
}

.premium-extend-action {
  color: var(--orange);
  background: var(--orange-soft);
}

.premium-activate-action {
  color: white;
  background: var(--green);
}

@media (max-height: 750px) {
  .premium-page {
    height: calc(100vh - 50px);
  }

  .premium-content {
    gap: 7px;
    padding: 8px 13px;
  }

  .premium-summary-card {
    min-height: 52px;
    padding: 7px 9px;
  }

  .premium-toolbar {
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .premium-table tbody tr {
    height: 42px;
  }
}


/* =========================================================
   INDSHIELD SETTINGS PAGE
========================================================= */

.settings-page {
  height: calc(100vh - 57px);
  overflow: hidden;
}

.settings-content {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
}

.settings-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.settings-top h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: 19px;
}

.settings-top p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.settings-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-save-state {
  margin-right: 4px;
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
}

.settings-save-state.unsaved {
  color: var(--orange);
}

.settings-reset-button,
.settings-save-button {
  height: 29px;
  padding: 0 11px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.settings-reset-button {
  color: #b4becc;
  background: var(--surface);
  border: 1px solid var(--border);
}

.settings-save-button {
  color: white;
  background: var(--blue);
  border: 0;
}

.settings-save-button:hover {
  background: #386bea;
}

.settings-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 9px;
  overflow: hidden;
}

.settings-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.settings-card-heading {
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
}

.settings-heading-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.settings-blue-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.settings-purple-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.settings-orange-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.settings-red-icon {
  color: var(--red);
  background: var(--red-soft);
}

.settings-green-icon {
  color: var(--green);
  background: var(--green-soft);
}

.settings-cyan-icon {
  color: #43c6db;
  background: rgba(67, 198, 219, 0.13);
}

.settings-card-heading h3 {
  margin: 0;
  color: #eef2f7;
  font-size: 11px;
}

.settings-card-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 7px;
}

.settings-card-body {
  min-height: 0;
  padding: 9px 11px;
  overflow-y: auto;
}

.settings-card-body::-webkit-scrollbar {
  width: 4px;
}

.settings-card-body::-webkit-scrollbar-thumb {
  background: #344157;
  border-radius: 10px;
}

.settings-field {
  display: block;
  min-width: 0;
  margin-bottom: 8px;
}

.settings-field:last-child {
  margin-bottom: 0;
}

.settings-field > span {
  display: block;
  margin-bottom: 5px;
  color: #9ca8b9;
  font-size: 8px;
  font-weight: 700;
}

.settings-field input,
.settings-field select {
  width: 100%;
  height: 29px;
  padding: 0 8px;
  color: #e8edf4;
  background: #0c1421;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  font-size: 9px;
}

.settings-field input:focus,
.settings-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}

.settings-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settings-unit-input {
  position: relative;
}

.settings-unit-input input {
  padding-right: 42px;
}

.settings-unit-input small {
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--muted);
  font-size: 7px;
  transform: translateY(-50%);
  pointer-events: none;
}

.settings-option-row {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(37, 48, 68, 0.75);
}

.settings-option-row:last-child {
  border-bottom: 0;
}

.settings-option-row strong {
  display: block;
  color: #e3e8ef;
  font-size: 9px;
}

.settings-option-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.3;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.toggle-switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #303a4d;
  border-radius: 999px;
  transition: 0.18s ease;
}

.toggle-switch span::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  content: "";
  background: #8d98aa;
  border-radius: 50%;
  transition: 0.18s ease;
}

.toggle-switch input:checked + span {
  background: var(--blue);
}

.toggle-switch input:checked + span::before {
  background: white;
  transform: translateX(14px);
}

@media (max-width: 1220px) {
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-y: auto;
  }

  .settings-card {
    min-height: 260px;
  }
}

@media (max-height: 750px) {
  .settings-page {
    height: calc(100vh - 50px);
  }

  .settings-content {
    gap: 7px;
    padding: 8px 13px;
  }

  .settings-card-heading {
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .settings-card-body {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .settings-option-row {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .settings-field {
    margin-bottom: 6px;
  }

  .settings-field input,
  .settings-field select {
    height: 26px;
  }
}


/* =========================================================
   INDSHIELD EXTENDED SUPPORT MODULES
========================================================= */

.support-module-page {
  height: calc(100vh - 57px);
  overflow: hidden;
}

.module-layout {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 13px 16px;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.module-header h2 {
  margin: 0;
  color: #f4f7fb;
  font-size: 19px;
}

.module-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.module-primary-button,
.module-secondary-button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.module-primary-button {
  color: white;
  background: var(--blue);
  border: 0;
}

.module-secondary-button {
  color: #b8c2d1;
  background: var(--surface);
  border: 1px solid var(--border);
}

.module-primary-button:hover {
  background: #386bea;
}

.module-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.module-summary-card {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.module-summary-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}

.module-summary-icon.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.module-summary-icon.green {
  color: var(--green);
  background: var(--green-soft);
}

.module-summary-icon.orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.module-summary-icon.red {
  color: var(--red);
  background: var(--red-soft);
}

.module-summary-icon.purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.module-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.module-summary-card strong {
  display: block;
  margin-top: 3px;
  color: white;
  font-size: 17px;
}

.module-summary-card small {
  display: block;
  margin-top: 2px;
  color: #6f7b8e;
  font-size: 7px;
}

.module-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.module-toolbar {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
}

.module-search {
  display: flex;
  width: min(360px, 45%);
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  color: var(--muted);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.module-search svg {
  width: 13px;
  height: 13px;
}

.module-search input {
  width: 100%;
  color: white;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 9.5px;
}

.module-search input::placeholder {
  color: #68758a;
}

.module-filters {
  display: flex;
  align-items: center;
  gap: 7px;
}

.module-filters select {
  height: 30px;
  padding: 0 8px;
  color: #dce3ed;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: 0;
  font-size: 9px;
}

.module-table-wrap {
  min-height: 0;
  flex: 1;
  overflow: auto;
}

.module-table {
  width: 100%;
  height: auto;
  min-width: 900px;
  table-layout: auto;
}

.module-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.module-table tbody tr {
  height: 48px;
}

.module-main-text {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: #e8edf4;
  font-size: 9.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-sub-text {
  display: block;
  max-width: 190px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-code {
  color: #8ba8ff;
  font-family: monospace;
  font-size: 8.5px;
  font-weight: 700;
}

.module-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-green {
  color: var(--green);
  background: var(--green-soft);
}

.badge-blue {
  color: #86a4ff;
  background: var(--blue-soft);
}

.badge-orange {
  color: var(--orange);
  background: var(--orange-soft);
}

.badge-red {
  color: var(--red);
  background: var(--red-soft);
}

.badge-purple {
  color: var(--purple);
  background: var(--purple-soft);
}

.badge-grey {
  color: #9aa5b5;
  background: rgba(154, 165, 181, 0.12);
}

.module-open-button {
  padding: 5px 8px;
  color: #afc0ef;
  background: var(--blue-soft);
  border: 1px solid rgba(75, 124, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  font-size: 8.5px;
  font-weight: 700;
}

.module-empty {
  padding: 35px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

/* Details modal */

.support-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.82);
  backdrop-filter: blur(5px);
}

.support-modal-backdrop.open {
  display: grid;
}

.support-modal {
  display: flex;
  width: min(760px, 95vw);
  max-height: 90vh;
  flex-direction: column;
  overflow: hidden;
  background: #101827;
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 26px 75px rgba(0, 0, 0, 0.5);
}

.support-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.support-modal-header span {
  color: #87a4ff;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.support-modal-header h3 {
  margin: 4px 0 0;
  color: white;
  font-size: 17px;
}

.support-modal-close {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  color: #aab3c0;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 17px;
}

.support-modal-body {
  overflow-y: auto;
  padding: 14px 16px;
}

.support-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.support-detail-box {
  min-width: 0;
  padding: 10px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.support-detail-box span,
.support-info-block > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-detail-box strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #edf2f8;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-info-block {
  margin-top: 10px;
  padding: 11px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.support-info-block p {
  margin: 8px 0 0;
  color: #cbd3df;
  font-size: 9.5px;
  line-height: 1.55;
}

.support-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
}

/* Diagnostics */

.diagnostic-result-good {
  color: var(--green);
}

.diagnostic-result-warning {
  color: var(--orange);
}

.diagnostic-result-danger {
  color: var(--red);
}

/* Customers */

.customer-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  flex-shrink: 0;
  color: #9bb2ff;
  background: var(--blue-soft);
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Known issues */

.issue-progress {
  width: 88px;
  height: 5px;
  overflow: hidden;
  background: #263145;
  border-radius: 999px;
}

.issue-progress > span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: inherit;
}

/* Knowledge base */

.knowledge-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 9px;
}

.knowledge-categories {
  overflow: auto;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.knowledge-category-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 9px;
  color: #aab5c6;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.knowledge-category-button:hover,
.knowledge-category-button.active {
  color: white;
  background: var(--blue-soft);
}

.knowledge-category-button span:last-child {
  color: var(--muted);
  font-size: 8px;
}

.knowledge-articles {
  min-height: 0;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.knowledge-article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.knowledge-article:last-child {
  border-bottom: 0;
}

.knowledge-article h4 {
  margin: 0;
  color: #e9edf4;
  font-size: 10px;
}

.knowledge-article p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.knowledge-article small {
  color: #728096;
  font-size: 7px;
}

/* Notifications */

.notification-list {
  min-height: 0;
  overflow: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
}

.notification-item.unread {
  background: rgba(75, 124, 255, 0.055);
}

.notification-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}

.notification-item h4 {
  margin: 0;
  color: #e9edf4;
  font-size: 9.5px;
}

.notification-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.notification-item time {
  color: #738096;
  font-size: 7.5px;
}

/* Reports */

.reports-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 9px;
}

.report-panel {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.report-panel h3 {
  margin: 0 0 12px;
  color: #e9edf4;
  font-size: 11px;
}

.report-bar-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 35px;
  gap: 9px;
  align-items: center;
  margin-bottom: 11px;
}

.report-bar-row span {
  color: #b8c1ce;
  font-size: 8.5px;
}

.report-bar {
  height: 7px;
  overflow: hidden;
  background: #263145;
  border-radius: 999px;
}

.report-bar > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
}

.report-bar-row strong {
  color: white;
  font-size: 8px;
  text-align: right;
}

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

.report-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: var(--surface-light);
  border-radius: 7px;
}

.report-stat-item span {
  color: var(--muted);
  font-size: 8.5px;
}

.report-stat-item strong {
  color: white;
  font-size: 10px;
}

/* Activity */

.activity-type {
  display: flex;
  align-items: center;
  gap: 7px;
}

.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Sidebar scrolling for additional items */

.navigation {
  min-height: 0;
  overflow-y: auto;
}

.navigation::-webkit-scrollbar {
  width: 3px;
}

.navigation::-webkit-scrollbar-thumb {
  background: #273246;
  border-radius: 10px;
}

@media (max-height: 750px) {
  .support-module-page {
    height: calc(100vh - 50px);
  }

  .module-layout {
    gap: 7px;
    padding: 8px 13px;
  }

  .module-summary-card {
    min-height: 48px;
    padding: 7px 9px;
  }

  .module-toolbar {
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .module-table tbody tr {
    height: 41px;
  }
}
