:root {
  --font-resell: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: #050506;
  color: #e4e4e4;
  font-family: var(--font-resell);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ?? Login ?? */
.ln-login-root {
  position: relative;
  min-height: 100dvh;
  color: #d0d6e0;
  background: #090909;
  overflow: hidden;
}

.ln-login-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52.53% 57.5% at 50% 100%, rgba(8, 9, 10, 0) 0%, rgba(8, 9, 10, 0.7) 100%),
    linear-gradient(#08090a 68%, rgba(208, 214, 224, 0.18) 100%);
}

.ln-login-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 256px 256px;
}

.ln-login-logo-corner {
  position: absolute;
  top: 32px;
  right: 40px;
  z-index: 2;
  opacity: 0.9;
}

.ln-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.ln-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f2f3f5;
  color: #0a0a0a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.ln-brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.ln-brand-word {
  color: #f2f3f5;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ln-login-panel {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
}

.ln-login-content {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ln-login-header {
  width: 100%;
  text-align: center;
  margin-bottom: 28px;
}

.ln-login-title {
  color: #e2e3e5;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.ln-login-subtitle {
  color: #939496;
  margin: 0;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.5;
}

.status-pill {
  display: inline-flex;
  margin-top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #62666d;
  font-size: 11px;
}

.status-pill.ok { color: #4cb782; }
.status-pill.bad { color: #eb5757; }

.ln-login-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 288px;
}

.ln-login-input-wrap { position: relative; }

.ln-login-input {
  appearance: none;
  width: 100%;
  height: 44px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  padding: 12px 2px;
  font-size: 15px;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.22);
  transition: box-shadow 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ln-login-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

.ln-login-input:focus {
  box-shadow: inset 0 -1px #fff;
}

.ln-login-btn {
  width: 100%;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid transparent;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ln-login-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ln-login-btn-primary {
  color: #0a0a0a;
  background: #fff;
  box-shadow: 0 3px 6px -2px rgba(0, 0, 0, 0.18), 0 1px 1px rgba(0, 0, 0, 0.12);
}

.ln-login-btn-primary:hover:not(:disabled) { background: #e6e7ea; }

.ln-login-btn-muted {
  color: #e2e3e5;
  background: #252628;
}

.ln-login-btn-muted:hover:not(:disabled) { background: #2e2f31; }

.ln-login-foot {
  text-align: center;
  color: #62666d;
  max-width: 288px;
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.55;
}

.ln-login-switch {
  display: block;
  width: 100%;
  max-width: 288px;
  margin: 16px auto 0;
  padding: 0;
  border: none;
  background: none;
  color: #62666d;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.ln-login-switch:hover {
  color: #8a8d96;
  text-decoration: underline;
}

.form-error {
  color: #f87171;
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
  max-width: 288px;
}

.result-box {
  width: 100%;
  max-width: 288px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2f3f5;
  font-size: 13px;
  font-weight: 500;
}

.result-copy {
  margin-top: 6px;
  color: #8a8f98;
  font-size: 12px;
}

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.credential-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.credential-label {
  color: #5f5f5f;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.credential-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
}

.inline-copy {
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e4e4e4;
  font-size: 11px;
  font-weight: 500;
}

.inline-copy:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ?? Reseller / customer shell (Evora layout, ASX accent) ?? */
.resell-scope {
  --bg-shell: #171717;
  --bg-sidebar: #090909;
  --bg-frame: #0d0d0d;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --bg-input: #101010;
  --bg-chip: #1c1c1c;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.11);
  --border-soft: rgba(255, 255, 255, 0.035);
  --text-1: #fff;
  --text-2: #e4e4e4;
  --text-3: #929292;
  --text-4: #5f5f5f;
  --brand: #9785fc;
  --brand-hover: #aea0fd;
  --brand-dim: rgba(151, 133, 252, 0.16);
  --brand-glow: rgba(151, 133, 252, 0.5);
  --ok: #4cb782;
  --warn: #e2a541;
  --err: #eb5757;
  --radius-14: 14px;
  --radius-16: 16px;
  --radius-20: 20px;
  --radius-pill: 9999px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --w-light: 300;
  --w-reg: 400;
  --w-med: 500;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.16s var(--ease);
  --rail-w: 64px;
  font-family: var(--font-resell);
  font-size: 14.5px;
  font-weight: var(--w-reg);
  letter-spacing: -0.01em;
  color: var(--text-2);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.resell-scope ::selection {
  background: var(--brand-glow);
  color: #fff;
}

.rp-shell {
  background: var(--bg-shell);
  gap: 14px;
  width: 100%;
  height: 100dvh;
  padding: 16px;
  display: flex;
  overflow: hidden;
}

.rp-rail {
  width: var(--rail-w);
  background: transparent;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  display: flex;
}

.rp-rail-logo {
  border-radius: 10px;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: grid;
  overflow: hidden;
  background: transparent;
}

.rp-rail-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.rp-rail-icon {
  width: 40px;
  height: 40px;
  color: var(--text-4);
  transition: color var(--transition), background var(--transition);
  background: transparent;
  border: none;
  border-radius: 10px;
  place-items: center;
  display: grid;
  position: relative;
}

.rp-rail-icon:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
}

.rp-rail-icon[data-active="true"] {
  background: var(--brand-dim);
  color: var(--brand-hover);
}

.rp-rail-icon i {
  font-size: 16px;
}

.rp-rail-icon::after,
.rp-rail-avatar::after {
  content: attr(data-label);
  background: var(--bg-card);
  color: var(--text-1);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-strong);
  z-index: 50;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translateY(-50%);
}

.rp-rail-icon:hover::after,
.rp-rail-avatar:hover::after {
  opacity: 1;
}

.rp-rail-spacer { flex: 1; }

.rp-rail-avatar {
  background: linear-gradient(135deg, var(--brand), #6f5fd4);
  color: #fff;
  width: 36px;
  height: 36px;
  font-weight: var(--w-med);
  border: 2px solid var(--bg-sidebar);
  box-shadow: 0 0 0 2px var(--border-strong);
  transition: box-shadow var(--transition);
  border-radius: 50%;
  place-items: center;
  font-size: 14px;
  display: grid;
  position: relative;
}

.rp-rail-avatar:hover {
  box-shadow: 0 0 0 2px var(--brand);
}

.rp-frame {
  background: var(--bg-frame);
  border-radius: var(--radius-20);
  border: 1px solid rgba(255, 255, 255, 0.07);
  flex-direction: column;
  flex: 1;
  gap: 24px;
  min-width: 0;
  padding: 28px 32px 24px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.85);
}

.rp-page {
  flex-direction: column;
  flex: 1;
  gap: 20px;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.rp-head-row {
  flex-shrink: 0;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  display: flex;
}

.rp-head-tblock { min-width: 0; }

.rp-head-title {
  font-size: 44px;
  font-weight: var(--w-med);
  color: var(--text-1);
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1;
}

.rp-head-sub {
  font-size: 13.5px;
  font-weight: var(--w-light);
  color: var(--text-3);
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  display: inline-flex;
}

.rp-head-kpis {
  flex-shrink: 0;
  align-items: flex-start;
  gap: 32px;
  display: flex;
}

.rp-kpi {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  display: flex;
}

.rp-kpi-top {
  align-items: center;
  gap: 8px;
  display: flex;
}

.rp-kpi-value {
  font-size: 40px;
  font-weight: var(--w-med);
  color: var(--text-1);
  letter-spacing: -0.032em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rp-kpi-chip {
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  height: 24px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  align-items: center;
  padding: 0 10px;
  font-size: 12px;
  display: inline-flex;
}

.rp-kpi-label {
  font-size: 13px;
  font-weight: var(--w-light);
  color: var(--text-3);
}

.rp-grid {
  flex: 1;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 0;
  display: grid;
}

.rp-card {
  background: var(--bg-card);
  border-radius: var(--radius-14);
  min-width: 0;
  min-height: 0;
  box-shadow: var(--shadow-card);
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  display: flex;
  overflow: hidden;
}

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

.rp-card-title {
  font-size: 15px;
  font-weight: var(--w-reg);
  color: var(--text-1);
  letter-spacing: -0.008em;
}

.rp-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.rp-card-body--col {
  flex-direction: column;
  gap: 18px;
}

.rp-dstats {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  display: grid;
  width: 100%;
}

.rp-dstat {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.rp-dstat-val {
  font-size: 26px;
  font-weight: var(--w-med);
  color: var(--text-1);
  letter-spacing: -0.024em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rp-dstat-lbl {
  font-size: 12.5px;
  font-weight: var(--w-light);
  color: var(--text-3);
}

.rp-info {
  flex-direction: column;
  width: 100%;
  display: flex;
}

.rp-info-line {
  border-bottom: 1px dashed var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  display: flex;
}

.rp-info-line:last-child { border-bottom: none; }

.rp-info-k {
  color: var(--text-3);
  font-weight: var(--w-light);
}

.rp-info-v {
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.rp-info-v.on { color: var(--ok); }

.rp-empty {
  text-align: center;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 40px 24px;
  display: flex;
}

.rp-empty-ico {
  border: 1px solid var(--border);
  width: 56px;
  height: 56px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  place-items: center;
  margin-bottom: 4px;
  display: grid;
  font-size: 22px;
}

.rp-empty-title {
  font-size: 16px;
  font-weight: var(--w-reg);
  color: var(--text-1);
  letter-spacing: -0.015em;
}

.rp-empty-desc {
  color: var(--text-4);
  max-width: 340px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: var(--w-light);
}

.rp-legend {
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  width: 100%;
  display: flex;
}

.rp-legend-item {
  border-bottom: 1px dashed var(--border);
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  font-size: 13.5px;
  display: grid;
}

.rp-legend-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rp-legend-dot {
  border-radius: 50%;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
}

.rp-legend-label { color: var(--text-2); }
.rp-legend-value {
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}

.rp-btn {
  height: 36px;
  font: inherit;
  font-size: 13.5px;
  font-weight: var(--w-reg);
  white-space: nowrap;
  transition: background var(--transition), filter var(--transition);
  letter-spacing: -0.005em;
  border: none;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  display: inline-flex;
}

.rp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rp-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px -4px var(--brand-glow);
}

.rp-btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
}

.rp-btn-ghost {
  background: var(--bg-chip);
  color: var(--text-1);
}

.rp-btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
}

.rp-gen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.rp-gen .rp-field:nth-child(3),
.rp-gen .rp-btn {
  grid-column: 1 / -1;
}

.rp-field {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

.rp-field-label {
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: var(--w-light);
}

.rp-field-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.rp-field-hint.ok {
  color: var(--ok);
}

.rp-field-hint.err {
  color: var(--err);
}

.rp-field input,
.rp-field select {
  background: var(--bg-input);
  width: 100%;
  height: 38px;
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  font-weight: var(--w-light);
  transition: box-shadow var(--transition);
  border: none;
  border-radius: 8px;
  outline: none;
  padding: 0 12px;
}

.rp-field select { appearance: none; cursor: pointer; }

.rp-field input:focus,
.rp-field select:focus {
  box-shadow: 0 0 0 1px var(--brand);
}

.rp-keys {
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  display: flex;
  overflow-y: auto;
  width: 100%;
}

.rp-key-line {
  background: var(--bg-input);
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  display: flex;
}

.rp-key-line .rp-tkey-ico {
  color: var(--brand);
  font-size: 13px;
  flex-shrink: 0;
}

.rp-key-line code {
  color: var(--text-2);
  user-select: all;
  word-break: break-all;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12px;
}

.rp-copy {
  color: var(--text-4);
  transition: color var(--transition);
  background: transparent;
  border: none;
  display: inline-flex;
  flex-shrink: 0;
  padding: 2px;
}

.rp-copy:hover { color: var(--text-1); }
.rp-copy.is-copied { color: var(--ok); }

.rp-tbl-card {
  background: var(--bg-card);
  border-radius: var(--radius-14);
  box-shadow: var(--shadow-card);
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.rp-tbl-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.rp-tbl {
  border-collapse: collapse;
  width: 100%;
}

.rp-tbl thead th {
  text-align: left;
  font-size: 12px;
  font-weight: var(--w-light);
  color: var(--text-4);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: var(--bg-card);
  z-index: 1;
  padding: 15px 20px;
  position: sticky;
  top: 0;
}

.rp-tbl thead th.right,
.rp-tbl tbody td.right { text-align: right; }

.rp-tbl tbody td {
  font-size: 13.5px;
  font-weight: var(--w-light);
  color: var(--text-2);
  border-bottom: 1px solid var(--border-soft);
  padding: 14px 20px;
}

.rp-tbl tbody tr:last-child td { border-bottom: none; }
.rp-tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

.rp-tkey {
  align-items: center;
  gap: 8px;
  display: inline-flex;
  max-width: 280px;
}

.rp-tkey .rp-tkey-ico {
  color: var(--brand);
  font-size: 13px;
  flex-shrink: 0;
}

.rp-tkey code {
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-num { font-variant-numeric: tabular-nums; }

.rp-status {
  font-size: 12.5px;
  font-weight: var(--w-light);
  text-transform: capitalize;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.rp-status::before {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.rp-status.active,
.rp-status.ok { color: var(--ok); }
.rp-status.unused,
.rp-status.info { color: var(--brand-hover); }
.rp-status.expired,
.rp-status.warn { color: var(--warn); }
.rp-status.banned,
.rp-status.err { color: var(--err); }

.rp-rkeys {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.rp-rkey {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rp-rkey-meta {
  color: #8a8d96;
  font-size: 11px;
  line-height: 1.3;
}

.rp-keys-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 140px;
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #c4c6cc;
  text-align: left;
  cursor: pointer;
}

.rp-keys-summary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rp-keys-count {
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
}

.rp-keys-view {
  margin-top: 2px;
  font-size: 11px;
  color: #8a8d96;
  text-decoration: underline;
}

.rp-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ui-modal--keys {
  width: min(520px, calc(100vw - 32px));
}

.reseller-keys-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.reseller-keys-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  margin: 0 0 8px;
}

.reseller-key-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
}

.rp-activity-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #c4c6cc;
  text-align: left;
  cursor: pointer;
}

.rp-activity-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rp-activity-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #c4c6cc;
  font-size: 13px;
  line-height: 1;
}

.activity-ip i {
  color: #8a8d96;
  font-size: 12px;
}

.rp-activity-hint {
  font-size: 11px;
  color: #8a8d96;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-modal--activity {
  width: min(440px, calc(100vw - 32px));
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  margin: 4px 0 8px;
  padding-right: 2px;
}

.activity-row {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.activity-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.activity-action {
  font-size: 12.5px;
  font-weight: 500;
}

.activity-action.in { color: #86efac; }
.activity-action.out { color: #fca5a5; }

.activity-time {
  color: #8a8d96;
  font-size: 11.5px;
}

.activity-ip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c4c6cc;
  font-size: 12px;
}

.activity-ip code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
}

.activity-empty {
  color: #8a8d96;
  font-size: 13px;
  padding: 18px 4px;
  text-align: center;
}

.rp-ibtn {
  background: var(--bg-chip);
  width: 30px;
  height: 30px;
  color: var(--text-3);
  transition: background var(--transition), color var(--transition);
  border: none;
  border-radius: 8px;
  place-items: center;
  display: inline-grid;
}

.rp-ibtn:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.09);
}

.rp-ibtn.danger:hover {
  color: var(--err);
  background: rgba(235, 87, 87, 0.12);
}

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

.table-empty {
  color: var(--text-3);
  text-align: center;
  padding: 40px 20px !important;
}

@media (max-width: 900px) {
  .rp-shell {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    gap: 8px;
    padding: 8px;
  }

  .rp-rail {
    border-radius: var(--radius-16);
    flex-direction: row;
    width: 100%;
    padding: 8px 10px;
  }

  .rp-rail-logo {
    margin-bottom: 0;
    margin-right: 4px;
  }

  .rp-rail-icon::after,
  .rp-rail-avatar::after {
    display: none;
  }

  .rp-frame {
    border-radius: var(--radius-16);
    padding: 20px 16px;
  }

  .rp-page { overflow-y: auto; }

  .rp-head-row {
    flex-direction: column;
    gap: 18px;
  }

  .rp-head-title { font-size: 34px; }

  .rp-grid {
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }
}

/* Custom dialogs / toasts ? confirm style */
.ui-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.ui-overlay[hidden] {
  display: none !important;
}

.ui-modal {
  width: min(400px, 100%);
  background: #0f0f10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.ui-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ui-modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ui-modal-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
}

.ui-modal-ico[data-tone="warn"] {
  background: rgba(224, 82, 82, 0.16);
  color: #e05252;
}

.ui-modal-ico[data-tone="brand"] {
  background: rgba(151, 133, 252, 0.16);
  color: #aea0fd;
}

.ui-modal-ico[data-tone="ok"] {
  background: rgba(76, 183, 130, 0.16);
  color: #4cb782;
}

.ui-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.ui-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7a7d86;
  flex-shrink: 0;
}

.ui-modal-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ui-modal-body {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #a0a3ab;
}

.ui-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ui-modal-field-label {
  font-size: 12.5px;
  color: #8a8d96;
}

.ui-modal-field input {
  background: #101012;
  height: 40px;
  border: none;
  border-radius: 10px;
  padding: 0 12px;
  color: #fff;
  font: inherit;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ui-modal-field input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(151, 133, 252, 0.55);
}

.ui-modal-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.ui-modal-cancel {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  color: #e8e8ea;
  font-size: 13.5px;
  font-weight: 500;
}

.ui-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ui-modal-confirm {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
}

.ui-modal-confirm:hover {
  filter: brightness(1.08);
}

.ui-modal-confirm.is-danger {
  background: #e05252;
}

.ui-modal-confirm.is-danger:hover {
  background: #eb6363;
}

.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  background: #161618;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.22s ease;
}

.toast.ok {
  border-color: rgba(76, 183, 130, 0.35);
}

.toast.err {
  border-color: rgba(235, 87, 87, 0.4);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .ln-login-logo-corner {
    top: 22px;
    right: 22px;
  }

  .credential-row {
    grid-template-columns: 1fr;
  }
}


/* ?? Customer My Products shell ?? */

:root {
  --font: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --bg: #050505;
  --rail: #0a0a0a;
  --panel: #0e0e10;
  --card: #141416;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f3f3f4;
  --muted: #8a8d96;
  --brand: #9785fc;
  --brand-soft: rgba(151, 133, 252, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.cx {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.cx-rail {
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  min-height: 100dvh;
}

.cx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.cx-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.cx-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.cx-nav-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 10px 8px;
}

.cx-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #c8cad0;
  font-size: 13.5px;
  font-weight: 450;
  transition: background 0.15s ease, color 0.15s ease;
}

.cx-nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.cx-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.cx-nav-item.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.cx-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--line);
}

.cx-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #5f4fd0);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
}

.cx-user-meta {
  min-width: 0;
  flex: 1;
}

.cx-user-name {
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-user-status {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 1px;
}

.cx-logout {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.cx-logout svg {
  width: 16px;
  height: 16px;
}

.cx-logout:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cx-main {
  position: relative;
  min-height: 100dvh;
  padding: 28px 36px 40px;
  background:
    radial-gradient(60% 50% at 80% 90%, rgba(151, 133, 252, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #080808 0%, #050505 100%);
  overflow: auto;
}

.cx-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.cx-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.cx-head h1 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.cx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  transition: transform 0.14s ease, background 0.14s ease, opacity 0.14s ease;
}

.cx-btn svg {
  width: 15px;
  height: 15px;
}

.cx-btn:hover {
  transform: translateY(-1px);
}

.cx-btn-light {
  background: #f2f3f5;
  color: #0a0a0a;
}

.cx-btn-light:hover {
  background: #fff;
}

.cx-btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.cx-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.cx-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 140px);
  display: grid;
  place-items: center;
}

.cx-empty {
  width: min(520px, 100%);
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 42px 28px;
  text-align: center;
}

.cx-empty-ico {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: #d7d8dc;
}

.cx-empty-ico svg {
  width: 28px;
  height: 28px;
}

.cx-empty h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.cx-empty p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cx-product {
  width: min(560px, 100%);
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cx-product-top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cx-product-top img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.cx-product-top h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cx-product-top p {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
}

.cx-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.cx-modal-card {
  width: min(400px, 100%);
  background: #121214;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.cx-modal-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cx-modal-card > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.cx-modal-card input {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #0c0c0e;
  color: #fff;
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 0 0 1px var(--line);
}

.cx-modal-card input:focus {
  box-shadow: inset 0 0 0 1px var(--brand);
}

.cx-modal-err {
  color: #eb5757;
  font-size: 12.5px;
  margin-top: 10px;
}

.cx-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .cx {
    grid-template-columns: 1fr;
  }

  .cx-rail {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .cx-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cx-nav-group {
    flex: 1 1 auto;
  }

  .cx-user {
    border-top: none;
    padding-top: 8px;
  }

  .cx-main {
    padding: 22px 18px 32px;
  }

  .cx-product {
    flex-direction: column;
    align-items: stretch;
  }
}
