@charset "UTF-8";

@font-face {
  font-family: "Material Symbols Outlined";
  src: url("./ext-design/fonts/MaterialSymbolsOutlined.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
}

@font-face {
  font-family: "Science Gothic";
  src: url("./ext-design/fonts/ScienceGothic.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Audiowide";
  src: url("./ext-design/fonts/Audiowide-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Sofia Sans Condensed";
  src: url("./ext-design/fonts/SofiaSansCondensed.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
}

:root {
  --background: #000000;
  --panel-top: rgba(22, 25, 28, 0.76);
  --panel-bottom: rgba(5, 7, 8, 0.88);
  --element-top: rgba(25, 28, 31, 0.88);
  --element-bottom: rgba(9, 11, 13, 0.94);
  --border: rgba(255, 255, 255, 0.13);
  --border-light: rgba(255, 255, 255, 0.22);
  --text-primary: #f2f2f2;
  --text-secondary: #aeb4b9;
  --text-muted: #777f84;
  --red: #e23a3a;
  --red-dark: #761518;
  --red-background: #421113;
  --green: #50c85f;
  --green-dark: #2f8f3d;
  --gold: #edc46a;
  --blue: #7aa8ff;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.58);
  --icon-size: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #7d161b #050607;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--background);
  color: var(--text-primary);
  font-family: "Science Gothic", "Sofia Sans Condensed", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.74) 34%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.82) 68%, #000000 100%),
    url("./ext-design/images/header-bg-v3.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  z-index: -1;
  height: 42vh;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 38%, #000000 100%),
    url("./ext-design/images/end.png");
  background-size: cover;
  background-position: center bottom;
  opacity: 0.22;
  pointer-events: none;
}

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

button {
  letter-spacing: 0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #050607;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7d161b, #3f0a0d);
  border: 2px solid #15181a;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d92d35, #7c1217);
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: var(--icon-size);
  line-height: 1;
  display: inline-block;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.app-root {
  min-height: 100vh;
  padding: 22px;
}

.loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-weight: 800;
}

.login-shell,
.account-shell {
  min-height: calc(100vh - 44px);
  display: grid;
  align-items: center;
  justify-content: center;
}

.login-shell {
  grid-template-columns: minmax(360px, 1.06fr) minmax(360px, 0.94fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-panel,
.auth-panel,
.sidebar,
.topbar,
.section,
.account-panel {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, var(--panel-top) 0%, rgba(10, 12, 14, 0.58) 55%, var(--panel-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.62),
    var(--shadow);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  overflow: hidden;
}

.brand-panel::before,
.auth-panel::before,
.section::before,
.account-panel::before,
.sidebar::before,
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.018) 30%, transparent 58%, rgba(255, 255, 255, 0.018) 100%);
  pointer-events: none;
}

.brand-panel > *,
.auth-panel > *,
.section > *,
.account-panel > *,
.sidebar > *,
.topbar > * {
  position: relative;
  z-index: 1;
}

.brand-panel {
  min-height: 680px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.62) 38%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.78) 82%, #000000 100%),
    url("./ext-design/images/v2-header-bg.png");
  background-size: cover;
  background-position: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-lockup img,
.sidebar-brand img,
.account-brand img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.9));
}

.brand-kicker {
  color: var(--red);
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

.brand-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 3px 5px #000000, 0 0 12px rgba(255, 255, 255, 0.18);
}

.brand-copy {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

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

.metric,
.stat {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.74), rgba(9, 11, 13, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 5px 12px rgba(0, 0, 0, 0.3);
}

.metric {
  padding: 16px;
}

.metric strong {
  display: block;
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
}

.metric span,
.stat span,
.mini-label,
.user-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.auth-panel {
  min-height: 520px;
  padding: 30px;
}

.panel-heading {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(226, 58, 58, 0.42);
  border-radius: 999px;
  color: var(--red);
  background: rgba(66, 17, 19, 0.48);
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
}

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

.panel-heading h2,
.topbar h1,
.section-title h2,
.account-grid h1 {
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.9);
}

.panel-heading p,
.topbar p,
.section-title p,
.muted {
  color: var(--text-secondary);
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.input {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  outline: none;
  color: var(--text-primary);
  background:
    linear-gradient(145deg, rgba(12, 14, 16, 0.92), rgba(5, 6, 7, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 5px 14px rgba(0, 0, 0, 0.28);
}

.input::placeholder {
  color: #747b80;
}

.input:focus {
  border-color: rgba(226, 58, 58, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(226, 58, 58, 0.13);
}

.code-input {
  font-family: "Audiowide", "Science Gothic", sans-serif;
}

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

.check-row,
.remember-row {
  min-width: 0;
}

.remember-row {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.2);
}

.remember-row.is-disabled {
  opacity: 0.68;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.remember-row small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.btn {
  min-height: 44px;
  min-width: 0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: linear-gradient(145deg, var(--element-top) 0%, var(--element-bottom) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.78),
    0 5px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(226, 58, 58, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.36);
}

.btn:active {
  transform: translateY(0);
}

.btn span:not(.material-symbols-outlined) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.btn-primary {
  border-color: rgba(226, 58, 58, 0.72);
  background: linear-gradient(145deg, rgba(127, 22, 27, 0.95), rgba(66, 17, 19, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 20px rgba(226, 58, 58, 0.16),
    0 0 22px rgba(226, 58, 58, 0.22);
}

.btn-danger {
  border-color: rgba(226, 58, 58, 0.55);
  color: #ffd7d7;
}

.btn-green {
  border-color: rgba(80, 200, 95, 0.5);
  color: #d9ffe1;
}

.btn-gold {
  border-color: rgba(237, 196, 106, 0.5);
  color: #ffe5a9;
}

.btn-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 11px;
}

.btn-small .material-symbols-outlined {
  --icon-size: 18px;
}

.message {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.app-layout {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
}

.sidebar {
  min-height: calc(100vh - 44px);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.sidebar-brand,
.account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand {
  min-height: 78px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-brand img,
.account-brand img {
  width: 56px;
  height: 56px;
}

.sidebar-brand strong,
.account-brand strong {
  display: block;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 900;
}

.sidebar-brand span,
.account-brand span,
.sidebar-footer {
  color: var(--text-secondary);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.nav-button {
  min-height: 48px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.56), rgba(9, 11, 13, 0.78));
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.nav-button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-button:hover,
.nav-button.is-active {
  color: var(--text-primary);
  border-color: rgba(226, 58, 58, 0.52);
  background: linear-gradient(145deg, rgba(127, 22, 27, 0.42), rgba(13, 15, 17, 0.86));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.12), 0 0 18px rgba(226, 58, 58, 0.16);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  overflow-wrap: anywhere;
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 86px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar h1 {
  margin: 0 0 4px;
}

.topbar p {
  margin: 0;
}

.profile-chip,
.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-chip,
.badge-admin {
  border-color: rgba(237, 196, 106, 0.42);
  color: #ffe2ad;
}

.badge-user {
  border-color: rgba(122, 168, 255, 0.4);
  color: #d9e5ff;
}

.badge-on {
  border-color: rgba(80, 200, 95, 0.44);
  color: #d8ffe1;
  box-shadow: inset 0 0 14px rgba(80, 200, 95, 0.08);
}

.badge-off {
  border-color: rgba(226, 58, 58, 0.48);
  color: #ffd4d4;
  box-shadow: inset 0 0 14px rgba(226, 58, 58, 0.08);
}

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

.stat-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-grid-eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 15px;
}

.stat span {
  display: block;
  font-weight: 900;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(226, 58, 58, 0.22);
}

.section {
  padding: 18px;
  margin-bottom: 14px;
}

.danger-zone {
  border-color: rgba(226, 58, 58, 0.46);
  background:
    linear-gradient(145deg, rgba(66, 17, 19, 0.72), rgba(5, 7, 8, 0.88)),
    url("./ext-design/images/button-off.png");
  background-size: cover;
  background-position: center;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 4px;
}

.section-title p {
  margin: 0;
}

.table-tools {
  width: min(100%, 310px);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(170px, 0.65fr) auto;
  gap: 8px;
  align-items: end;
}

.inline-form-simple {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.7fr) auto;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.segmented .seg-btn {
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.segmented .seg-btn:last-child {
  border-right: 0;
}

.segmented .seg-btn.is-active {
  color: var(--text-primary);
  background: rgba(226, 58, 58, 0.22);
}

.user-list,
.compact-list,
.all-user-list,
.profile-list,
.email-stack,
.history-list {
  display: grid;
  gap: 10px;
}

.user-row,
.all-user-row,
.profile-row,
.email-item,
.history-item,
.compact-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.62), rgba(9, 11, 13, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 5px 12px rgba(0, 0, 0, 0.25);
}

.user-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.05fr) minmax(170px, 0.78fr) minmax(210px, 0.92fr) minmax(320px, 1.62fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.all-user-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.54fr) minmax(0, 1.46fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.all-user-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.all-user-details {
  min-width: 0;
}

.all-user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.all-user-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.all-user-controls {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.all-user-control-block {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.18);
}

.all-user-row .effective-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.all-user-control-block .device-item {
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
}

.all-user-control-block .device-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.all-user-control-block .device-item strong,
.all-user-control-block .device-item small {
  overflow-wrap: normal;
  word-break: normal;
}

.user-main strong,
.all-user-main strong,
.email-item strong,
.compact-item strong,
.profile-summary strong {
  display: block;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.user-main span,
.mini-label,
.user-meta {
  color: var(--text-secondary);
  font-size: 12px;
}

.user-title-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.user-title-form .input {
  min-height: 34px;
  font-size: 13px;
}

.admin-password-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  margin-top: 8px;
}

.admin-password-form .input {
  min-height: 34px;
  font-size: 12px;
}

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

.account-info-grid {
  margin: 14px 0 10px;
}

.profile-device-picker {
  margin-top: 12px;
}

.mini-info {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(12, 14, 16, 0.8), rgba(4, 5, 6, 0.82));
}

.mini-info.is-good {
  border-color: rgba(80, 200, 95, 0.34);
  box-shadow: inset 0 0 14px rgba(80, 200, 95, 0.06);
}

.mini-info.is-bad {
  border-color: rgba(226, 58, 58, 0.36);
  box-shadow: inset 0 0 14px rgba(226, 58, 58, 0.07);
}

.mini-info span,
.mini-info small {
  display: block;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.mini-info strong {
  display: block;
  min-width: 0;
  margin: 3px 0 2px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.countdown {
  color: #ffe2ad;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 11px;
}

.device-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.device-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.028);
}

.device-item.is-active {
  border-color: rgba(80, 200, 95, 0.38);
  background: rgba(80, 200, 95, 0.055);
}

.device-item.is-blocked {
  border-color: rgba(226, 58, 58, 0.46);
  background: rgba(66, 17, 19, 0.28);
}

.device-item.is-empty {
  grid-template-columns: 1fr;
  color: var(--text-secondary);
  font-size: 12px;
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-muted);
}

.device-item.is-active .device-dot {
  background: var(--green);
  box-shadow: 0 0 12px rgba(80, 200, 95, 0.6);
}

.device-item.is-blocked .device-dot {
  background: var(--red);
  box-shadow: 0 0 12px rgba(226, 58, 58, 0.6);
}

.device-item strong,
.device-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.device-item strong {
  color: var(--text-primary);
  font-size: 12px;
}

.device-item small {
  color: var(--text-secondary);
  font-size: 11px;
}

.device-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.device-actions .btn {
  min-height: 30px;
}

.email-item .device-item,
.profile-device-picker .device-item {
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
}

.email-item .device-actions,
.profile-device-picker .device-actions {
  grid-column: 2;
  justify-content: flex-start;
}

.license-form {
  grid-template-columns: minmax(150px, 0.45fr) minmax(220px, 1fr) auto;
}

.token-adjust-form {
  margin-top: 10px;
  grid-template-columns: minmax(210px, 1fr) minmax(110px, 0.32fr) minmax(190px, 0.8fr) auto;
}

.token-adjust-form[data-token-adjust-form] {
  grid-template-columns: minmax(110px, 0.32fr) minmax(190px, 0.75fr) auto;
}

.token-adjust-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
}

.token-adjust-actions .btn {
  min-height: 40px;
}

.generated-code,
.license-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(237, 196, 106, 0.28);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(54, 40, 14, 0.48), rgba(8, 9, 10, 0.84));
}

.paid-plan-panel {
  border-color: rgba(226, 58, 58, 0.34);
  background:
    linear-gradient(145deg, rgba(66, 17, 19, 0.68), rgba(9, 11, 13, 0.9)),
    url("./ext-design/images/button-off.png");
  background-size: cover;
  background-position: center;
}

.paid-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.paid-plan-head strong {
  color: #ff4a4a;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.paid-plan-panel .field label {
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
}

.paid-plan-panel .license-redeem-form {
  grid-template-columns: minmax(120px, 0.4fr) minmax(230px, 0.8fr);
  align-items: end;
}

.paid-plan-panel .input {
  min-height: 48px;
  font-family: "Audiowide", "Science Gothic", sans-serif;
}

.license-activate-btn {
  min-height: 48px;
  color: #fff7f7;
}

.license-activate-btn .material-symbols-outlined {
  color: #ffffff;
}

.license-help {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.license-slot-banner {
  min-height: 34px;
  margin-top: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(80, 200, 95, 0.35);
  border-radius: var(--radius-small);
  color: #d8ffe1;
  background: rgba(80, 200, 95, 0.065);
  font-size: 12px;
  font-weight: 900;
}

.license-slot-banner.is-large {
  min-height: 48px;
  margin-top: 0;
  justify-content: center;
  border-color: rgba(237, 196, 106, 0.4);
  color: #ffe5a9;
  background: linear-gradient(145deg, rgba(54, 40, 14, 0.56), rgba(8, 9, 10, 0.84));
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 13px;
}

.license-price-guide {
  margin-top: 12px;
  padding: 11px;
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.24);
}

.license-price-guide.is-compact {
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
}

.price-main span,
.price-steps span {
  display: block;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.price-main strong {
  display: block;
  margin-top: 4px;
  color: #ffe5a9;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 15px;
}

.price-steps {
  display: grid;
  gap: 5px;
}

.price-steps span::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: 1px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(226, 58, 58, 0.55);
}

.generated-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.generated-code strong {
  display: block;
  margin: 4px 0;
  color: #ffe5a9;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.generated-code small {
  color: var(--text-secondary);
}

.license-redeem-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.license-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.license-feature-list.is-compact {
  margin-top: 8px;
}

.license-feature-pill {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 900;
}

.license-feature-pill.is-on {
  border-color: rgba(80, 200, 95, 0.36);
  color: #d8ffe1;
}

.license-feature-pill.is-off,
.license-feature-pill.is-empty {
  border-color: rgba(226, 58, 58, 0.35);
  color: #ffd4d4;
}

.license-feature-pill .feature-image {
  width: 30px;
  min-height: 30px;
  height: 30px;
  border-radius: 6px;
}

.license-feature-pill .feature-image img {
  width: 22px;
  height: 22px;
}

.license-feature-pill strong,
.license-feature-pill span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-history {
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.24);
}

.token-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.token-history-head strong {
  display: block;
  margin-top: 3px;
  color: #ffe5a9;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 14px;
}

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

.token-history-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.66), rgba(9, 11, 13, 0.88));
}

.token-history-item strong,
.token-history-item .user-meta {
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-history-item > strong,
.token-history-item > .badge {
  justify-self: end;
}

.license-user {
  align-items: start;
}

.license-code-row strong {
  color: #ffe5a9;
}

.feature-card-actions {
  min-width: 0;
  grid-column: 3;
  padding-right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

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

.effective-feature-grid {
  margin-top: 10px;
}

.feature-toggle {
  min-width: 0;
  min-height: 64px;
  padding: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.86), rgba(9, 11, 13, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-small);
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 5px 12px rgba(0, 0, 0, 0.3);
}

.feature-toggle:hover {
  border-color: rgba(226, 58, 58, 0.46);
}

.feature-toggle.is-on {
  border-color: rgba(226, 58, 58, 0.68);
  background: linear-gradient(145deg, rgba(60, 13, 15, 0.98), rgba(12, 14, 16, 0.92));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.18), 0 0 18px rgba(226, 58, 58, 0.16);
}

.feature-toggle.is-soon,
.feature-card.is-soon {
  cursor: not-allowed;
  opacity: 0.62;
  border-color: rgba(226, 58, 58, 0.28);
  filter: grayscale(0.3);
}

.feature-toggle.is-soon:hover {
  transform: none;
  border-color: rgba(226, 58, 58, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 5px 12px rgba(0, 0, 0, 0.3);
}

.feature-title {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1.12;
}

.feature-title > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.soon-label {
  color: #ff3d3d;
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(226, 58, 58, 0.55);
}

.source-label {
  color: var(--text-muted);
  font-family: "Audiowide", "Science Gothic", sans-serif;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.source-label.is-on {
  color: #ffe5a9;
  text-shadow: 0 0 10px rgba(237, 196, 106, 0.45);
}

.feature-image {
  width: 56px;
  height: 100%;
  min-height: 62px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
}

.feature-image img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: grayscale(0.2) drop-shadow(0 4px 7px rgba(0, 0, 0, 0.65));
}

.feature-toggle.is-on .feature-image img,
.feature-card.is-on .feature-image img {
  filter: drop-shadow(0 0 10px rgba(226, 58, 58, 0.58));
}

.feature-toggle > span:last-child {
  min-width: 0;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.12;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.profile-row {
  overflow: hidden;
}

.profile-row.is-email-warning,
.compact-item.is-email-warning {
  border-color: rgba(237, 196, 106, 0.58);
  background: linear-gradient(145deg, rgba(82, 62, 20, 0.42), rgba(9, 11, 13, 0.86));
  box-shadow: inset 0 0 18px rgba(237, 196, 106, 0.08), 0 5px 12px rgba(0, 0, 0, 0.25);
}

.profile-row.is-email-danger,
.compact-item.is-email-danger {
  border-color: rgba(226, 58, 58, 0.58);
  background: linear-gradient(145deg, rgba(66, 17, 19, 0.58), rgba(9, 11, 13, 0.88));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.11), 0 5px 12px rgba(0, 0, 0, 0.25);
}

.profile-row.is-banned {
  border-color: rgba(226, 58, 58, 0.48);
  background: linear-gradient(145deg, rgba(66, 17, 19, 0.5), rgba(9, 11, 13, 0.86));
}

.profile-summary {
  display: grid;
  grid-template-columns: 38px minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}

.profile-open {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.profile-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.profile-details h3 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 14px;
}

.email-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
}

.email-item .info-grid {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.email-item .feature-grid,
.email-item .effective-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.email-item .row-actions {
  justify-content: flex-start;
}

.email-item .row-actions .btn {
  min-width: 148px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 120px 80px 150px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.history-item span,
.compact-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.account-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.account-panel {
  width: 100%;
  padding: 22px;
}

.account-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.account-nav-button {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.62), rgba(9, 11, 13, 0.86));
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-nav-button:hover,
.account-nav-button.is-active {
  color: var(--text-primary);
  border-color: rgba(226, 58, 58, 0.54);
  background: linear-gradient(145deg, rgba(127, 22, 27, 0.42), rgba(13, 15, 17, 0.9));
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.12), 0 0 16px rgba(226, 58, 58, 0.13);
}

.account-nav-button span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 14px;
}

.settings-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(14, 16, 18, 0.72), rgba(4, 5, 6, 0.82));
}

.settings-card h3 {
  margin: 6px 0 10px;
  color: var(--text-primary);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.settings-password-form {
  margin-top: 8px;
}

.settings-cookie-actions {
  margin-top: 12px;
}

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

.account-feature-shell {
  display: grid;
  gap: 12px;
}

.account-note,
.account-next-row {
  margin-top: 12px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(25, 28, 31, 0.82), rgba(9, 11, 13, 0.94));
  overflow: hidden;
}

.feature-card.is-on {
  border-color: rgba(226, 58, 58, 0.64);
  box-shadow: inset 0 0 18px rgba(226, 58, 58, 0.14);
}

.feature-card h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.12;
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(80, 200, 95, 0.38);
  border-radius: var(--radius-small);
  color: #d8ffe1;
  background: rgba(5, 8, 6, 0.94);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.is-error {
  border-color: rgba(226, 58, 58, 0.45);
  color: #ffd4d4;
  background: rgba(30, 7, 8, 0.96);
}

.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(226, 58, 58, 0.42);
  border-radius: var(--radius-small);
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(20, 22, 24, 0.97), rgba(5, 6, 7, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cookie-consent h3 {
  margin: 3px 0 5px;
  font-size: 18px;
}

.cookie-consent p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 1200px) {
  .app-root {
    padding: 14px;
  }

  .login-shell,
  .app-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 420px;
  }

  .sidebar {
    min-height: auto;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .stat-grid,
  .stat-grid-five,
  .stat-grid-six,
  .stat-grid-eight {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-row,
  .all-user-row,
  .all-user-controls,
  .profile-details,
  .account-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-root {
    padding: 10px;
  }

  .login-shell {
    min-height: calc(100vh - 20px);
  }

  .brand-panel,
  .auth-panel,
  .section,
  .account-panel,
  .topbar,
  .sidebar {
    padding: 14px;
  }

  .brand-panel {
    min-height: 360px;
  }

  .brand-lockup img {
    width: 64px;
    height: 64px;
  }

  .brand-title {
    font-size: 30px;
  }

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

  .paid-plan-panel .license-redeem-form {
    grid-template-columns: 1fr;
  }

  .license-price-guide,
  .license-price-guide.is-compact {
    grid-template-columns: 1fr;
  }

  .brand-metrics,
  .nav,
  .stat-grid,
  .stat-grid-five,
  .stat-grid-six,
  .stat-grid-eight,
  .info-grid,
  .inline-form,
  .inline-form-simple,
  .license-form,
  .admin-password-form,
  .token-adjust-form,
  .token-adjust-form[data-token-adjust-form],
  .token-history-item,
  .license-redeem-form,
  .generated-code,
  .all-user-row,
  .all-user-controls,
  .settings-grid,
  .feature-grid,
  .feature-cards,
  .profile-summary,
  .email-item,
  .history-item,
  .compact-item,
  .topbar {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1 1 160px;
  }

  .profile-summary {
    cursor: default;
  }

  .section-head,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-tools {
    width: 100%;
  }

  .feature-toggle,
  .feature-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .feature-card-actions {
    grid-column: 2;
    justify-content: flex-start;
    padding: 0 10px 10px 0;
  }

  .feature-card > .badge {
    margin: 0 10px 10px 56px;
    justify-self: start;
  }

  .device-item {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .device-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .token-history-item > .badge {
    justify-self: start;
  }
}
