@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-soft: #e6f7f4;
  --nav: #07111f;
  --nav-2: #0d1b2f;
  --danger: #be123c;
  --warning: #b45309;
  --success: #047857;
  --shadow: 0 22px 70px -54px rgba(15, 23, 42, 0.55);
  --shadow-soft: 0 14px 40px -32px rgba(15, 23, 42, 0.34);
  font-family: "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f7 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

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

h1,
h2,
h3,
.brand strong,
.stat strong,
.price,
.flow-card strong,
.auth-metrics strong,
.usage-strip strong,
.payfast-chip strong {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  line-height: 0.98;
}

h2 {
  font-size: 1.24rem;
  line-height: 1.15;
}

h3 {
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

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

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

::-webkit-scrollbar-thumb {
  border: 2px solid #edf2f7;
  border-radius: 999px;
  background: #94a3b8;
}

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

#app:has(.auth-shell) {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: min(710px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 38px 110px -76px rgba(15, 23, 42, 0.7);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 54px);
  background: #ffffff;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card > p {
  margin-top: 14px;
  font-size: 0.98rem;
}

.auth-art {
  order: -1;
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  color: #e5eef8;
  background:
    linear-gradient(145deg, rgba(20, 184, 166, 0.18), transparent 38%),
    linear-gradient(160deg, #06111f 0%, #0f2742 58%, #0c5f59 100%);
}

.auth-product {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
  margin: auto;
}

.auth-product-top,
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-product-top strong {
  color: #fff;
}

.auth-product-main {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.flow-card {
  width: min(430px, 92%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flow-card.dark,
.flow-card.accent {
  justify-self: end;
}

.flow-card.light {
  justify-self: start;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
}

.flow-card.accent {
  color: #083f3b;
  background: #d7f8f1;
}

.flow-card.dark strong {
  color: #fff;
}

.flow-card small,
.flow-card span,
.auth-metrics span,
.usage-strip span {
  display: block;
  color: inherit;
  opacity: 0.72;
  font-size: 0.76rem;
  font-weight: 700;
}

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

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

.auth-metrics {
  margin-top: 16px;
}

.auth-metrics div,
.usage-strip span {
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
}

.auth-metrics strong,
.usage-strip strong {
  display: block;
  font-size: 1.35rem;
}

.auth-metrics strong {
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.12;
  text-overflow: ellipsis;
}

.brand small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
}

.logo-frame {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
}

.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.mark {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 28px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.tab {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label,
label {
  color: #53657a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.primary,
.secondary,
.danger,
.ghost,
.tiny,
.linkish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary:hover,
.secondary:hover,
.danger:hover,
.ghost:hover,
.tiny:hover {
  transform: translateY(-1px);
}

.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 16px 34px -24px rgba(15, 118, 110, 0.75);
}

.primary:hover {
  background: #0d6b64;
}

.secondary {
  color: #fff;
  background: var(--nav-2);
  box-shadow: 0 16px 34px -26px rgba(15, 23, 42, 0.5);
}

.danger {
  color: #fff;
  background: var(--danger);
  box-shadow: 0 16px 34px -26px rgba(190, 18, 60, 0.52);
}

.ghost,
.tiny {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}

.tiny {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 0.77rem;
}

.linkish {
  width: fit-content;
  min-height: auto;
  margin-top: 12px;
  padding: 0;
  color: var(--accent);
  background: transparent;
}

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

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 25;
  width: 284px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px 16px;
  color: #d7e4f4;
  background:
    linear-gradient(180deg, rgba(20, 184, 166, 0.13), transparent 34%),
    linear-gradient(180deg, var(--nav), var(--nav-2));
  box-shadow: 16px 0 54px -44px rgba(15, 23, 42, 0.9);
}

.sidebar .brand {
  margin-bottom: 18px;
  padding: 0 4px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.sidebar .brand strong {
  color: #fff;
}

.sidebar .brand small {
  color: #90a4bd;
}

.sidebar .logo-frame {
  background: var(--accent);
}

.nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 8px;
  color: #aebed1;
  background: transparent;
  text-align: left;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.nav button.active,
.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav button.active {
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.nav button:last-child {
  margin-top: auto;
  color: #fecdd3;
  background: rgba(190, 18, 60, 0.16);
}

.content {
  --page-pad: clamp(18px, 2.6vw, 34px);
  min-width: 0;
  min-height: 100vh;
  margin-left: 284px;
  padding: var(--page-pad);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: calc(0px - var(--page-pad)) calc(0px - var(--page-pad)) 22px;
  padding: 18px var(--page-pad);
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.65rem);
}

.topbar p {
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.dashboard-copy,
.signal-card,
.hero-panel,
.panel,
.stat,
.key-row,
.selected-billing-key,
.plan-card,
.package-edit,
.settings-menu,
.ticket-card,
.empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-copy {
  position: relative;
  min-height: 246px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  color: #e5eef8;
  border: 0;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), transparent 42%),
    linear-gradient(145deg, #08111f 0%, #13243c 58%, #0b4d49 100%);
}

.dashboard-copy h2 {
  max-width: 740px;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}

.dashboard-copy p {
  max-width: 760px;
  margin-top: 12px;
  color: #bdd0e5;
}

.dashboard-copy .eyebrow {
  color: #a7f3d0;
  background: rgba(20, 184, 166, 0.15);
}

.dashboard-copy .ghost {
  color: #e5eef8;
  border-color: rgba(226, 232, 240, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.signal-card {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 246px;
  padding: 22px;
}

.signal-card > strong {
  color: var(--ink);
  font-size: 1.35rem;
}

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

.signal-metrics span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.76rem;
  font-weight: 800;
}

.signal-metrics strong {
  color: var(--ink);
  font-size: 1.18rem;
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.control-stack,
.detail-stack,
.ticket-list,
.settings-content {
  display: grid;
  gap: 16px;
}

.panel,
.stat,
.ticket-card {
  min-width: 0;
  padding: 18px;
}

.panel:hover,
.stat:hover,
.plan-card:hover,
.ticket-card:hover,
.key-row:hover,
.key-row.active {
  box-shadow: 0 22px 72px -50px rgba(15, 23, 42, 0.62);
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.hero-panel h2 {
  max-width: 760px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.hero-panel p {
  max-width: 720px;
  margin-top: 8px;
}

.stat {
  min-height: 118px;
  display: grid;
  align-content: space-between;
}

.stat small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stat strong {
  margin-top: 18px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.key-list,
.package-list {
  display: grid;
  gap: 10px;
}

.key-row {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.key-row.active {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1), var(--shadow-soft);
}

.key-row strong,
.selected-billing-key strong,
.selected-billing-key small {
  display: block;
}

.key-row strong {
  margin-bottom: 4px;
}

.muted,
.selected-billing-key small {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #eef2f7;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.connected {
  color: var(--success);
  background: #dcfce7;
}

.badge.connecting,
.badge.qr {
  color: var(--accent);
  background: var(--accent-soft);
}

.badge.disabled,
.badge.error,
.badge.failed {
  color: var(--danger);
  background: #ffe4e6;
}

.badge.warning {
  color: var(--warning);
  background: #fef3c7;
}

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

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

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

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: none;
}

.check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--accent);
  box-shadow: none;
}

.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #173653;
  background: var(--surface-2);
  word-break: break-all;
}

.code code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.code code {
  font-size: 0.78rem;
}

pre {
  max-width: 100%;
  margin: 12px 0 0;
  padding: 15px;
  overflow: auto;
  border-radius: 10px;
  color: #dbeafe;
  background: #08111f;
  line-height: 1.55;
  font-size: 0.82rem;
}

.usage-strip {
  margin-top: 14px;
}

.usage-strip span {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.usage-strip strong {
  color: var(--ink);
}

.qr-wrap {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.qr-wrap img {
  width: min(300px, 100%);
  border-radius: 10px;
}

.logs,
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.logs th,
.logs td,
.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.logs th,
.admin-table th {
  color: #53657a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logs tr:hover,
.admin-table tr:hover {
  background: #f8fafc;
}

.billing-hero {
  color: var(--text);
}

.payfast-chip {
  min-width: 190px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 10px;
  color: #095e4f;
  background: var(--accent-soft);
}

.payfast-chip span,
.payfast-chip strong {
  display: block;
}

.payfast-chip span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.payfast-chip strong {
  margin-top: 5px;
  font-size: 1.55rem;
}

.selected-billing-key {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  margin-top: 16px;
}

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

.plan-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.plan-card.featured {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1), var(--shadow);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 2.22rem;
  font-weight: 800;
}

.price span,
.price small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.plan-included {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: #095e4f;
  background: var(--accent-soft);
}

.plan-included strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.plan-included span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--text);
}

.plan-card li::before {
  content: "+";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 800;
}

.package-edit {
  padding: 16px;
  background: var(--surface-2);
}

.settings-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-menu {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.settings-menu button {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.settings-menu button:hover,
.settings-menu button.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.settings-menu span {
  color: inherit;
  font-weight: 800;
}

.settings-menu small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.settings-health {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.tickets-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ticket-card {
  display: grid;
  gap: 14px;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.ticket-head h3 {
  margin-top: 8px;
}

.ticket-head p {
  margin-top: 4px;
  font-size: 0.86rem;
}

.ticket-message {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  white-space: pre-wrap;
}

.ticket-note {
  padding: 14px;
  border-radius: 10px;
  color: #095e4f;
  background: var(--accent-soft);
}

.ticket-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.ticket-update {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.dashboard-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 24px 54px -34px rgba(15, 118, 110, 0.68);
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

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

@media (max-width: 1050px) {
  #app:has(.auth-shell) {
    display: block;
  }

  .auth-shell,
  .grid.two,
  .grid.three,
  .dashboard-hero,
  .workspace-grid,
  .settings-shell,
  .tickets-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    min-height: auto;
    margin: 0 auto;
  }

  .auth-art {
    order: 0;
    min-height: 420px;
  }

  .sidebar {
    position: static;
    width: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
    border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  }

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

  .nav button:last-child {
    margin-top: 0;
  }

  .content {
    margin-left: 0;
  }

  .settings-menu {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #app:has(.auth-shell) {
    padding: 10px;
  }

  .content,
  .auth-panel,
  .auth-art {
    padding: 16px;
  }

  .auth-art {
    display: none;
  }

  .auth-shell,
  .topbar,
  .hero-panel,
  .settings-hero,
  .split,
  .form-grid,
  .plans-grid,
  .kpi-grid,
  .signal-metrics,
  .check-grid,
  .usage-strip,
  .auth-metrics {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions,
  .actions {
    justify-content: stretch;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .settings-menu {
    grid-template-columns: 1fr;
  }

  .primary,
  .secondary,
  .ghost,
  .danger {
    width: 100%;
  }
}
