
/* ===== tokens.css — ORIGINAL SOURCE ===== */
:root {
  color-scheme: dark;

  --bg-0: #050609;
  --bg-1: #080a0f;
  --panel: rgba(255, 255, 255, .055);
  --panel-strong: rgba(255, 255, 255, .075);
  --panel-hover: rgba(255, 255, 255, .085);
  --line: rgba(255, 255, 255, .085);
  --line-soft: rgba(255, 255, 255, .05);

  --text: #f7f8fb;
  --text-soft: rgba(255, 255, 255, .68);
  --muted: rgba(255, 255, 255, .38);

  --blue: #0a84ff;
  --blue-soft: #78bbff;
  --green: #30d158;
  --orange: #ff9f0a;
  --red: #ff453a;
  --purple: #bf5af2;

  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  --inner: inset 0 1px 0 rgba(255, 255, 255, .08);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;

  --sidebar: 250px;
  --topbar: 88px;
  --mobile-nav: 78px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.2, .8, .2, 1);
}


/* ===== base.css — ORIGINAL SOURCE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-0);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -8%, rgba(10, 132, 255, .14), transparent 33%),
    radial-gradient(circle at 94% 105%, rgba(131, 56, 236, .10), transparent 34%),
    linear-gradient(180deg, #050609, #07080c 65%, #050609);
  font-family: "Thonburi", "Sukhumvit Set", "Noto Sans Thai", "Anuphan", "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(10, 132, 255, .72);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(10, 132, 255, .38);
  color: white;
}

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

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(130px);
  opacity: .15;
  will-change: transform;
}

.orb-a {
  top: -250px;
  left: -220px;
  background: #0a84ff;
}

.orb-b {
  right: -260px;
  bottom: -240px;
  background: #7038f0;
}

.ambient-noise {
  position: absolute;
  inset: 0;
  opacity: .30;
  background:
    radial-gradient(circle at 18% 24%, rgba(255,255,255,.018) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 31%, rgba(255,255,255,.014) 0 1px, transparent 1.8px),
    radial-gradient(circle at 62% 78%, rgba(255,255,255,.012) 0 1px, transparent 1.8px);
  background-size: 190px 190px, 230px 230px, 270px 270px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.glass-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.032));
  box-shadow: var(--inner), var(--shadow);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.062), rgba(255,255,255,.028));
  box-shadow: var(--inner), 0 18px 46px rgba(0,0,0,.18);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(420px 150px at 30% -10%, rgba(10,132,255,.12), transparent 72%);
  transition: opacity .28s var(--ease);
}

.card:hover::before {
  opacity: 1;
}


/* ===== layout.css — ORIGINAL SOURCE ===== */
.login-view {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: var(--inner), 0 36px 100px rgba(0,0,0,.42);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.login-shell h1 {
  margin: 10px 0 4px;
  font-size: clamp(34px, 8vw, 50px);
  letter-spacing: -.04em;
}

.login-copy {
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.app-view {
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 14px auto 14px 14px;
  width: var(--sidebar);
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
}

.sidebar-brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 8px 16px;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand strong {
  font-size: 13px;
  letter-spacing: .04em;
}

.sidebar-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

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

.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.topbar {
  position: fixed;
  z-index: 15;
  left: calc(var(--sidebar) + 42px);
  right: 28px;
  top: 0;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

.topbar h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.03em;
}

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

.page-root {
  min-height: 100vh;
  padding:
    calc(var(--topbar) + 10px)
    28px
    42px
    calc(var(--sidebar) + 42px);
}

.page {
  width: min(1500px, 100%);
  margin: 0 auto;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.page-section + .page-section {
  margin-top: 18px;
}

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

.section-head h3 {
  margin: 0;
  font-size: 14px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mobile-nav {
  display: none;
}

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

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

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

.stack {
  display: grid;
  gap: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.toolbar .grow {
  flex: 1 1 240px;
}


/* ===== components.css — ORIGINAL SOURCE ===== */
.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: var(--inner), 0 14px 34px rgba(0,0,0,.28);
  font-weight: 900;
  font-size: 20px;
}

.brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  font-size: 13px;
}

.login-form,
.form-grid {
  display: grid;
  gap: 12px;
}

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

.span-2 {
  grid-column: span 2;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
}

.field small {
  color: var(--muted);
  font-size: 8px;
}

.field input,
.field select,
.search-input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 0 13px;
  outline: 0;
  transition:
    border-color .18s var(--ease),
    background .18s var(--ease),
    box-shadow .18s var(--ease);
}

.field input:hover,
.field select:hover,
.search-input:hover {
  background: rgba(255,255,255,.055);
}

.field input:focus,
.field select:focus,
.search-input:focus {
  border-color: rgba(10,132,255,.45);
  box-shadow: 0 0 0 4px rgba(10,132,255,.08);
  background: rgba(255,255,255,.06);
}

.field select option {
  background: #111319;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 50px;
}

.password-field .icon-button {
  position: absolute;
  right: 4px;
  top: 4px;
}

.form-error {
  min-height: 16px;
  margin: 0;
  color: #ff928b;
  font-size: 10px;
  line-height: 1.5;
}

.button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .035em;
  transition:
    transform .16s var(--ease),
    background .18s var(--ease),
    border-color .18s var(--ease),
    opacity .18s var(--ease);
}

.button:active {
  transform: scale(.975);
}

.button:disabled {
  opacity: .5;
  cursor: wait;
}

.button.wide {
  width: 100%;
}

.button.primary {
  border-color: rgba(85,169,255,.24);
  background: linear-gradient(180deg, #168cff, #0879ed);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 9px 24px rgba(0,112,255,.16);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.045);
}

.button.secondary:hover {
  background: rgba(255,255,255,.075);
}

.button.danger {
  color: #ff9b95;
  border-color: rgba(255,69,58,.16);
  background: rgba(255,69,58,.075);
}

.button.subtle {
  box-shadow: none;
}

.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid transparent;
  background: transparent;
}

.icon-button svg,
.nav-item svg,
.mobile-nav-item svg,
.mobile-create svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button.ghost {
  color: var(--text-soft);
}

.glass-button {
  border-color: var(--line);
  background: var(--panel);
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
  text-align: left;
}

.nav-item:hover {
  color: white;
  background: rgba(255,255,255,.045);
}

.nav-item.active {
  color: white;
  border-color: rgba(10,132,255,.15);
  background: linear-gradient(135deg, rgba(10,132,255,.21), rgba(10,132,255,.08));
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 15px;
  background: rgba(255,255,255,.032);
  border: 1px solid var(--line-soft);
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #1e92ff, #0a6cd1);
  font-size: 10px;
  font-weight: 900;
}

.admin-copy {
  min-width: 0;
}

.admin-copy strong,
.admin-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-copy strong {
  font-size: 9px;
}

.admin-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.status-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill {
  min-height: 32px;
  padding: 0 10px;
  color: #75e590;
  border: 1px solid rgba(48,209,88,.12);
  background: rgba(48,209,88,.055);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.status-pill span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text-soft);
  font-size: 7px;
  font-weight: 850;
}

.badge.green {
  color: #78e595;
  border-color: rgba(48,209,88,.12);
  background: rgba(48,209,88,.06);
}

.badge.red {
  color: #ff9993;
  border-color: rgba(255,69,58,.13);
  background: rgba(255,69,58,.065);
}

.badge.blue {
  color: #7fc1ff;
  border-color: rgba(10,132,255,.13);
  background: rgba(10,132,255,.065);
}

.badge.orange {
  color: #ffc66f;
  border-color: rgba(255,159,10,.13);
  background: rgba(255,159,10,.06);
}

.sheet-dialog,
.confirm-dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.sheet-dialog::backdrop,
.confirm-dialog::backdrop {
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.sheet {
  position: absolute;
  right: 18px;
  top: 18px;
  bottom: 18px;
  width: min(520px, calc(100% - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(155deg, #11131a, #0a0b10);
  box-shadow: var(--inner), 0 40px 120px rgba(0,0,0,.6);
}

.sheet-dialog.compact .sheet {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  max-height: calc(100% - 36px);
}

.sheet-handle {
  display: none;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.sheet-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.03em;
}

.sheet-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.profile-preview {
  margin-top: 14px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.026);
}

.profile-preview:empty {
  display: none;
}

.confirm-dialog {
  display: none;
  place-items: center;
}

.confirm-dialog[open] {
  display: grid;
}

.confirm-card {
  width: min(390px, calc(100% - 32px));
  padding: 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(155deg, #11131a, #090a0f);
  box-shadow: var(--inner), 0 40px 120px rgba(0,0,0,.6);
}

.confirm-card h3 {
  margin: 14px 0 7px;
}

.confirm-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.6;
}

.confirm-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 15px;
  color: #ff9b95;
  border: 1px solid rgba(255,69,58,.14);
  background: rgba(255,69,58,.07);
}

.toast-root {
  position: fixed;
  z-index: 220;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 13px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(17,19,26,.92);
  box-shadow: var(--inner), 0 18px 55px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 9px;
  line-height: 1.45;
}

.toast.error {
  border-color: rgba(255,69,58,.16);
  color: #ffaaa5;
}

.toast {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  transform: translateY(12px) scale(.97);
  opacity: 0;
  animation: toastIn .34s cubic-bezier(.22,.9,.25,1) forwards;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(58,134,255,.95), rgba(92,225,255,.92));
  transform-origin: left center;
  animation: toastProgress 2.15s linear forwards;
}

.toast-root.copy-center-active {
  inset: 0;
  right: 0;
  bottom: 0;
  width: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-root.copy-center-active .toast.copy {
  width: min(320px, calc(100vw - 48px));
  margin: auto;
}

.toast.copy {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  border-color: rgba(53,122,255,.22);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(44,132,255,.12) 0%, rgba(44,132,255,0) 48%),
    rgba(12,16,26,.94);
  box-shadow: var(--inner), 0 18px 55px rgba(0,0,0,.38), 0 0 0 1px rgba(53,122,255,.08);
}

.toast.copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.075) 18%, transparent 36%);
  transform: translateX(-120%);
  animation: toastSweep 1.2s ease-out forwards;
  pointer-events: none;
}

.toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #dff6ff;
  background: linear-gradient(180deg, rgba(42,125,255,.92), rgba(35,108,233,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 22px rgba(29,95,213,.32);
}

.toast-copy-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.toast-copy-title {
  color: rgba(245,249,255,.98);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.toast-copy-sub {
  color: rgba(174,193,220,.82);
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: .07em;
  word-break: break-word;
}

.sheet-toast-host {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1400;
  padding: 24px;
  pointer-events: none;
}

.sheet-toast-host.has-toast {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-toast {
  width: min(100%, 320px);
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(53,122,255,.22);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(44,132,255,.12) 0%, rgba(44,132,255,0) 48%),
    rgba(12,16,26,.96);
  box-shadow: var(--inner), 0 18px 45px rgba(0,0,0,.34), 0 0 0 1px rgba(53,122,255,.08);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  animation: toastIn .34s cubic-bezier(.22,.9,.25,1) forwards;
  position: relative;
  overflow: hidden;
}

.sheet-toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(58,134,255,.95), rgba(92,225,255,.92));
  transform-origin: left center;
  animation: toastProgress 2.15s linear forwards;
}

.sheet-toast .toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.config-copy-chip.copy-done,
#configDialog [data-copy-field].copy-done,
#configDialog #configCopyAll.copy-done {
  color: #dfffe9 !important;
  border-color: rgba(48,209,88,.30) !important;
  background:
    linear-gradient(180deg, rgba(48,209,88,.18), rgba(48,209,88,.08)),
    rgba(12,27,20,.96) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(48,209,88,.08),
    0 10px 24px rgba(48,209,88,.10) !important;
  transform: translateY(-1px) scale(1.02);
  animation: copyDonePulse .48s cubic-bezier(.2,.9,.25,1);
}

@keyframes copyDonePulse {
  0% { transform: scale(.97); }
  55% { transform: scale(1.045); }
  100% { transform: scale(1.02); }
}

.copy-burst {
  animation: copyPulse .42s cubic-bezier(.2,.9,.25,1);
}

@keyframes toastIn {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastProgress {
  from { transform: scaleX(1); opacity: 1; }
  to { transform: scaleX(0); opacity: .85; }
}

@keyframes toastSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes copyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(58,134,255,.0); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(58,134,255,.12); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(58,134,255,.0); }
}

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 80px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.035);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmer 1.4s infinite;
}

.profile-block-reason { margin-top: 10px; }
.backup-hash { margin-top: 12px; }
.section-inline-title { margin: 0; font-size: 14px; }
.section-inline-copy { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.danger-more-icon { color: #ff9d98; background: rgba(255,69,58,.065); }
.clipboard-fallback { position: fixed; left: -9999px; top: 0; opacity: 0; pointer-events: none; }


/* ===== pages.css — ORIGINAL SOURCE ===== */
.hero {
  padding: 24px;
  min-height: 210px;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero h3 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -.045em;
  line-height: 1.03;
}

.hero-copy {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.65;
}

.hero-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  right: -170px;
  top: -250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,.18), transparent 66%);
  pointer-events: none;
}

.metric-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}

.metric {
  padding: 13px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.027);
}

.metric span,
.metric strong {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 750;
}

.metric strong {
  margin-top: 5px;
  font-size: 19px;
  letter-spacing: -.025em;
}

.quick-card {
  min-height: 110px;
  padding: 15px;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.12);
}

.quick-card .quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--blue-soft);
  background: rgba(10,132,255,.08);
  border: 1px solid rgba(10,132,255,.11);
}

.quick-card strong {
  display: block;
  margin-top: 13px;
  font-size: 10px;
}

.quick-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.user-card,
.profile-card,
.service-card,
.audit-card,
.backup-card {
  padding: 16px;
}

.user-head,
.profile-head,
.service-head,
.backup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.user-title,
.profile-title {
  min-width: 0;
}

.user-title strong,
.profile-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.user-title span,
.profile-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.user-stats,
.profile-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 13px;
}

.stat-box {
  min-width: 0;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.025);
}

.stat-box span,
.stat-box strong {
  display: block;
}

.stat-box span {
  color: var(--muted);
  font-size: 7px;
}

.stat-box strong {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}

.user-actions,
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.mini-button {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--text-soft);
  font-size: 7px;
  font-weight: 850;
}

.mini-button:hover {
  color: white;
  background: rgba(255,255,255,.06);
}

.mini-button.blue {
  color: #83c4ff;
  border-color: rgba(10,132,255,.13);
  background: rgba(10,132,255,.065);
}

.mini-button.red {
  color: #ff9c97;
  border-color: rgba(255,69,58,.13);
  background: rgba(255,69,58,.06);
}

.platform-wrap {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

.platform-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-soft);
  font-size: 7px;
  font-weight: 800;
}

.configured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(48,209,88,.65);
}

.configured-dot.off {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(255,159,10,.45);
}

.service-card strong {
  font-size: 11px;
}

.service-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
}

.audit-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(10,132,255,.55);
}

.audit-copy {
  min-width: 0;
}

.audit-copy strong {
  display: block;
  font-size: 9px;
}

.audit-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-time {
  color: var(--muted);
  font-size: 7px;
}

.empty-state {
  padding: 34px 20px;
  text-align: center;
}

.empty-state strong {
  display: block;
  font-size: 12px;
}

.empty-state p {
  max-width: 450px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.config-code {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 13px;
  border-radius: 15px;
  border: 1px solid var(--line-soft);
  background: #07080b;
  color: #dce9ff;
  font: 8px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
}

.qr-wrap {
  display: grid;
  place-items: center;
  margin-top: 13px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.025);
}

.qr-wrap img {
  display: block;
  width: min(280px, 80vw);
  aspect-ratio: 1;
  border-radius: 12px;
  background: white;
}

.config-fields {
  display: grid;
  gap: 8px;
}

.config-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.026);
}

.config-field span,
.config-field code {
  display: block;
}

.config-field span {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
}

.config-field code {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--text);
  font: 8px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.more-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.035);
  text-align: left;
}

.more-row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-soft);
  background: rgba(10,132,255,.07);
}

.more-row strong,
.more-row span {
  display: block;
}

.more-row strong {
  font-size: 9px;
}

.more-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}


/* ===== motion.css — ORIGINAL SOURCE ===== */
@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes floatA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(26px,18px,0) scale(1.03); }
}

@keyframes floatB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-22px,-16px,0) scale(1.04); }
}

.orb-a {
  animation: floatA 15s ease-in-out infinite;
}

.orb-b {
  animation: floatB 18s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* ===== responsive.css — ORIGINAL SOURCE ===== */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  :root {
    --topbar: 72px;
  }

  .sidebar {
    display: none;
  }

  .topbar {
    left: 16px;
    right: 16px;
    height: var(--topbar);
  }

  .topbar h2 {
    font-size: 20px;
  }

  .status-pill {
    display: none;
  }

  .page-root {
    padding:
      calc(var(--topbar) + 7px)
      12px
      calc(var(--mobile-nav) + 26px);
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: var(--mobile-nav);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 7px 9px;
    border-radius: 24px;
  }

  .mobile-nav-item,
  .mobile-create {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    font-size: 6.5px;
    font-weight: 850;
  }

  .mobile-nav-item.active {
    color: white;
    background: rgba(255,255,255,.052);
  }

  .mobile-create {
    width: 54px;
    height: 54px;
    min-height: 54px;
    justify-self: center;
    align-self: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(145deg, #168cff, #0877e8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 28px rgba(0,112,255,.24);
  }

  .mobile-create svg {
    width: 20px;
    height: 20px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 19px;
  }

  .hero-top {
    display: block;
  }

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

  .toolbar {
    align-items: stretch;
  }

  .toolbar .grow,
  .toolbar .button {
    flex: 1 1 100%;
  }

  .section-head {
    align-items: flex-start;
  }

  .sheet {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100dvh - 22px);
    padding: 18px;
    border-radius: 26px;
  }

  .sheet-dialog.compact .sheet {
    top: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    transform: none;
  }

  .sheet-handle {
    display: block;
    width: 38px;
    height: 4px;
    margin: -4px auto 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
  }

  .sheet-actions {
    position: sticky;
    bottom: -18px;
    padding: 14px 0 1px;
    background: linear-gradient(180deg, transparent, #0b0d12 35%);
  }

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

  .span-2 {
    grid-column: auto;
  }

  .login-view {
    padding: 15px;
  }

  .login-shell {
    padding: 25px 20px;
    border-radius: 27px;
  }

  .audit-card {
    grid-template-columns: auto 1fr;
  }

  .audit-time {
    grid-column: 2;
  }

  .glass-panel,
  .login-shell,
  .toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

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

  .metric strong {
    font-size: 16px;
  }

  .user-stats,
  .profile-specs {
    grid-template-columns: 1fr 1fr;
  }
}

  
  /* ===== PREVIEW R2 — REQUESTED ICON / LOGOUT FIXES ONLY ===== */

  .quick-card .quick-icon {
    color: #69b8ff;
  }

  .quick-card .quick-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  #desktopLogout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ff8e88;
    border-color: rgba(255, 69, 58, .24);
    background:
      linear-gradient(180deg, rgba(255, 69, 58, .10), rgba(255, 69, 58, .065));
  }

  #desktopLogout svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #desktopLogout span {
    display: inline-block;
    color: inherit;
  }

  #desktopLogout:hover {
    color: #ffaaa5;
    border-color: rgba(255, 69, 58, .38);
    background:
      linear-gradient(180deg, rgba(255, 69, 58, .15), rgba(255, 69, 58, .09));
  }


  /* ===== PREVIEW R3 — MORE MENU ICON FIXES ONLY ===== */

  .more-row .more-row-icon {
    color: #69b8ff;
  }

  .more-row .more-row-icon svg {
    width: 19px;
    height: 19px;
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .more-row > span:last-child {
    color: rgba(205, 218, 234, .58);
  }

  .more-row > span:last-child svg {
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .more-row .danger-more-icon {
    color: #ff8e88;
    border-color: rgba(255, 69, 58, .18);
    background:
      linear-gradient(180deg, rgba(255, 69, 58, .10), rgba(255, 69, 58, .055));
  }

  .more-row:hover .more-row-icon:not(.danger-more-icon) {
    color: #8dccff;
  }

  .more-row:hover .danger-more-icon {
    color: #ffaaa5;
  }


  /* ===== PREVIEW R4 — MORE PAGE FINAL POLISH ===== */

  .more-list {
    gap: 10px;
  }

  .more-row {
    position: relative;
    isolation: isolate;
    min-height: 74px;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: 12px;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(166, 184, 206, .15);
    border-radius: 19px;
    background:
      radial-gradient(110% 130% at 4% 0%, rgba(31, 119, 255, .055), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.046), rgba(255,255,255,.027));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.035),
      0 8px 26px rgba(0,0,0,.09);
    transition:
      transform .18s ease,
      border-color .18s ease,
      background-color .18s ease;
  }

  .more-row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(105deg, rgba(255,255,255,.035), transparent 28%, transparent 72%, rgba(67,145,255,.025));
    opacity: .85;
  }

  .more-row .more-row-icon {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(83, 164, 255, .15);
    border-radius: 13px;
    color: #75bdff;
    background:
      radial-gradient(circle at 35% 22%, rgba(114, 194, 255, .16), transparent 42%),
      linear-gradient(180deg, rgba(10,132,255,.13), rgba(10,132,255,.075));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.055),
      0 7px 18px rgba(0,73,160,.10);
  }

  .more-row .more-row-icon::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    border-top: 1px solid rgba(255,255,255,.055);
    pointer-events: none;
  }

  .more-row .more-row-icon svg {
    width: 20px;
    height: 20px;
    margin: 0;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.72;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .more-row > span:nth-child(2) {
    min-width: 0;
    margin: 0;
  }

  .more-row > span:nth-child(2) > strong {
    margin: 0 0 3px;
    color: rgba(241, 247, 255, .92);
    font-size: 10.5px;
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: -.012em;
  }

  .more-row > span:nth-child(2) > span {
    margin: 0;
    color: rgba(152, 168, 188, .72);
    font-size: 7.4px;
    font-weight: 540;
    line-height: 1.32;
    letter-spacing: 0;
  }

  .more-row > span:last-child {
    width: 26px;
    height: 26px;
    margin: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 9px;
    color: rgba(183, 197, 216, .52);
    background: rgba(255,255,255,.018);
    transition: color .18s ease, border-color .18s ease, transform .18s ease;
  }

  .more-row > span:last-child svg {
    width: 14px;
    height: 14px;
    margin: 0;
    display: block;
    color: inherit;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .more-row .danger-more-icon {
    color: #ff8b85;
    border-color: rgba(255, 92, 86, .17);
    background:
      radial-gradient(circle at 35% 22%, rgba(255, 150, 145, .11), transparent 42%),
      linear-gradient(180deg, rgba(255,69,58,.11), rgba(255,69,58,.06));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.045),
      0 7px 18px rgba(110, 16, 10, .08);
  }

  .more-row:active {
    transform: scale(.988);
  }

  @media (hover: hover) and (pointer: fine) {
    .more-row:hover {
      transform: translateY(-1px);
      border-color: rgba(92, 166, 255, .25);
      background:
        radial-gradient(110% 130% at 4% 0%, rgba(31, 119, 255, .075), transparent 44%),
        linear-gradient(180deg, rgba(255,255,255,.058), rgba(255,255,255,.033));
    }

    .more-row:hover .more-row-icon:not(.danger-more-icon) {
      color: #9ed2ff;
      border-color: rgba(94, 176, 255, .25);
    }

    .more-row:hover > span:last-child {
      color: rgba(210, 222, 238, .82);
      border-color: rgba(255,255,255,.075);
      transform: translateX(1px);
    }

    .more-row:hover .danger-more-icon {
      color: #ffaaa5;
      border-color: rgba(255, 105, 98, .25);
    }
  }

  @media (max-width: 760px) {
    .more-list {
      gap: 9px;
    }

    .more-row {
      min-height: 72px;
      grid-template-columns: 43px minmax(0, 1fr) 27px;
      gap: 11px;
      padding: 10px 11px;
      border-radius: 18px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    }

    .more-row .more-row-icon {
      width: 41px;
      height: 41px;
      border-radius: 12px;
    }

    .more-row .more-row-icon svg {
      width: 19px;
      height: 19px;
    }

    .more-row > span:nth-child(2) > strong {
      font-size: 10.3px;
    }

    .more-row > span:nth-child(2) > span {
      font-size: 7.2px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .more-row,
    .more-row > span:last-child {
      transition: none;
    }
  }

  /* ===== PREVIEW R55 — MORE / ALL PROMOTIONS TUNING ===== */
  .more-stack {
    display:grid;
    gap:10px;
  }

  .more-row.more-expand-trigger[aria-expanded="true"] {
    border-color: rgba(96, 172, 255, .28);
    background:
      radial-gradient(110% 130% at 4% 0%, rgba(31, 119, 255, .085), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.062), rgba(255,255,255,.038));
  }

  .more-row.more-expand-trigger[aria-expanded="true"] > span:last-child {
    color: rgba(219,231,245,.9);
    border-color: rgba(255,255,255,.08);
    transform: rotate(90deg);
  }

  .more-expand {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .34s cubic-bezier(.2,.8,.2,1), opacity .24s ease, transform .28s ease;
  }

  .more-expand.open {
    max-height: 720px;
    opacity: 1;
    transform: translateY(0);
  }

  .promo-board {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(166,184,206,.14);
    background:
      radial-gradient(120% 130% at 0% 0%, rgba(23,127,255,.08), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.026));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 32px rgba(0,0,0,.12);
  }

  .promo-board::before {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background: linear-gradient(115deg, rgba(255,255,255,.035), transparent 26%, transparent 72%, rgba(67,145,255,.03));
  }

  .promo-board-head {
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom: 12px;
  }

  .promo-board-eyebrow {
    display:block;
    margin-bottom:4px;
    color:#86c6ff;
    font-size:7px;
    font-weight:700;
    letter-spacing:.18em;
  }

  .promo-board h3 {
    margin:0;
    color:rgba(244,248,255,.96);
    font-size:13px;
    font-weight:750;
    letter-spacing:.01em;
  }

  .promo-board p {
    margin:4px 0 0;
    color:rgba(162,177,197,.76);
    font-size:8px;
    line-height:1.55;
  }


  .promo-detail-board {
    overflow:hidden;
  }

  .promo-detail-scroll {
    position:relative;
    max-height:min(58vh, 560px);
    overflow-y:auto;
    overflow-x:hidden;
    padding-right:4px;
    margin-right:-4px;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    scrollbar-color: rgba(112,162,255,.44) rgba(255,255,255,.03);
  }

  .promo-detail-scroll::-webkit-scrollbar {
    width:8px;
  }

  .promo-detail-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,.025);
    border-radius:999px;
  }

  .promo-detail-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(113,165,255,.74), rgba(86,132,255,.34));
    border-radius:999px;
    border:1px solid rgba(255,255,255,.04);
  }

  .promo-count-pill {
    flex:0 0 auto;
    padding:9px 12px;
    border-radius:999px;
    border:1px solid rgba(83,164,255,.16);
    background: rgba(255,255,255,.03);
    color:#9ed2ff;
    font-size:7px;
    font-weight:700;
    letter-spacing:.16em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }

  .promo-carrier-grid {
    position:relative;
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:12px;
  }

  .promo-carrier-card {
    position:relative;
    overflow:hidden;
    padding:14px 13px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.036), 0 10px 22px rgba(0,0,0,.10);
    display:grid;
    gap:10px;
    animation: promoFloatIn .34s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--promo-index, 0) * 60ms);
  }

  .promo-carrier-card::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background: radial-gradient(120px 60px at 100% 0%, rgba(255,255,255,.06), transparent 62%);
  }

  .promo-carrier-card.ais {
    border-color: rgba(117, 224, 95, .18);
    background: linear-gradient(180deg, rgba(70, 180, 70, .08), rgba(255,255,255,.02));
  }
  .promo-carrier-card.true {
    border-color: rgba(255, 98, 98, .18);
    background: linear-gradient(180deg, rgba(255, 74, 74, .08), rgba(255,255,255,.02));
  }
  .promo-carrier-card.dtac {
    border-color: rgba(78, 178, 255, .18);
    background: linear-gradient(180deg, rgba(32, 140, 255, .09), rgba(255,255,255,.02));
  }

  .carrier-badge {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:14px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    border:1px solid rgba(255,255,255,.08);
    color:rgba(248,251,255,.98);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  }
  .promo-carrier-card.ais .carrier-badge { background: linear-gradient(180deg, rgba(70,180,70,.34), rgba(70,180,70,.18)); }
  .promo-carrier-card.true .carrier-badge { background: linear-gradient(180deg, rgba(255,74,74,.34), rgba(255,74,74,.18)); }
  .promo-carrier-card.dtac .carrier-badge { background: linear-gradient(180deg, rgba(32,140,255,.34), rgba(32,140,255,.18)); }

  .carrier-meta strong {
    display:block;
    margin:0 0 5px;
    color:rgba(243,247,255,.97);
    font-size:11px;
    font-weight:760;
    letter-spacing:.01em;
  }

  .carrier-meta span {
    display:block;
    color:rgba(166,181,201,.78);
    font-size:7.4px;
    line-height:1.55;
  }

  .carrier-tag-row {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  .carrier-tag {
    padding:5px 8px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.03);
    color:rgba(207,219,236,.82);
    font-size:6.8px;
    font-weight:700;
    letter-spacing:.12em;
  }

  .carrier-cta {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding-top:8px;
    border-top:1px solid rgba(255,255,255,.05);
    color:rgba(146,201,255,.9);
    font-size:7px;
    font-weight:700;
    letter-spacing:.14em;
  }

  .carrier-cta svg {
    width:14px;
    height:14px;
    stroke:currentColor;
    fill:none;
    stroke-width:1.7;
  }


  .promo-selector-shell,
  .promo-detail-shell {
    display:grid;
    gap:14px;
  }

  .promo-selector-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:14px 14px 2px;
  }

  .promo-selector-head h3 {
    margin:0;
    color:rgba(249,252,255,.98);
    font-size:13px;
    font-weight:800;
    letter-spacing:.01em;
  }

  .promo-selector-head p {
    margin:5px 0 0;
    color:rgba(183,200,222,.84);
    font-size:7.8px;
    line-height:1.55;
  }

  .promo-selector-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    padding:0 2px 2px;
  }

  .promo-selector-card {
    appearance:none;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    display:grid;
    gap:14px;
    min-height:198px;
    padding:17px;
    text-align:left;
    border-radius:24px;
    border:1px solid rgba(255,255,255,.09);
    color:var(--text);
    cursor:pointer;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      inset 0 -1px 0 rgba(255,255,255,.03),
      0 18px 36px rgba(0,0,0,.14);
    transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,filter .22s ease;
    animation:
      promoFloatIn .38s cubic-bezier(.2,.8,.2,1) both,
      promoCardBreath 5.6s ease-in-out infinite;
    animation-delay:calc(var(--promo-index,0) * 70ms), calc(var(--promo-index,0) * 70ms + 420ms);
    will-change:transform;
    transform:translateZ(0);
    backdrop-filter:saturate(1.06);
  }

  .promo-selector-card::before,
  .promo-selector-card::after {
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;
  }

  .promo-selector-card::before {
    background:
      linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0) 34%),
      radial-gradient(65% 58% at 84% 16%, rgba(255,255,255,.18), transparent 62%),
      linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
    opacity:.75;
    z-index:0;
  }

  .promo-selector-card::after {
    background:linear-gradient(110deg, transparent 0%, rgba(255,255,255,.09) 46%, transparent 64%);
    transform:translateX(-140%);
    opacity:.55;
    z-index:0;
  }

  .promo-selector-card:hover::after,
  .promo-selector-card:focus-visible::after {
    animation:promoSheen 1.15s ease forwards;
  }

  .promo-selector-card > * {
    position:relative;
    z-index:1;
  }

  .promo-selector-card.ais {
    border-color:rgba(112,235,110,.25);
    background:
      radial-gradient(120% 150% at 100% 0%, rgba(104,244,118,.28), transparent 42%),
      radial-gradient(130% 140% at 0% 100%, rgba(0,135,78,.18), transparent 56%),
      linear-gradient(180deg, rgba(13,53,34,.92), rgba(5,13,22,.98));
    box-shadow:
      inset 0 1px 0 rgba(193,255,207,.09),
      0 18px 40px rgba(6,58,35,.26),
      0 0 0 1px rgba(105,228,106,.06);
  }

  .promo-selector-card.true {
    border-color:rgba(255,112,138,.24);
    background:
      radial-gradient(120% 150% at 100% 0%, rgba(255,110,146,.22), transparent 42%),
      radial-gradient(125% 135% at 0% 100%, rgba(128,26,48,.18), transparent 58%),
      linear-gradient(180deg, rgba(47,12,26,.94), rgba(8,11,23,.98));
    box-shadow:
      inset 0 1px 0 rgba(255,205,218,.08),
      0 18px 40px rgba(67,10,31,.24),
      0 0 0 1px rgba(255,112,138,.05);
  }

  .promo-selector-card.dtac {
    border-color:rgba(94,172,255,.25);
    background:
      radial-gradient(120% 150% at 100% 0%, rgba(94,179,255,.26), transparent 42%),
      radial-gradient(130% 140% at 0% 100%, rgba(25,83,164,.20), transparent 58%),
      linear-gradient(180deg, rgba(11,29,58,.94), rgba(6,12,23,.98));
    box-shadow:
      inset 0 1px 0 rgba(194,227,255,.08),
      0 18px 40px rgba(10,37,83,.24),
      0 0 0 1px rgba(94,172,255,.05);
  }

  .promo-selector-card:hover,
  .promo-selector-card:focus-visible {
    transform:translateY(-3px) scale(1.01);
    filter:brightness(1.06);
    border-color:rgba(196,224,255,.34);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.10),
      0 24px 48px rgba(0,0,0,.18),
      0 0 0 1px rgba(160,205,255,.08);
    outline:none;
  }

  .promo-selector-top,
  .promo-selector-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .promo-selector-status {
    padding:6px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.09);
    background:rgba(255,255,255,.08);
    color:rgba(246,250,255,.94);
    font-size:6.4px;
    font-weight:780;
    letter-spacing:.16em;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  }

  .promo-selector-copy {
    display:grid;
    gap:5px;
  }

  .promo-selector-copy strong {
    color:rgba(249,252,255,.99);
    font-size:18px;
    line-height:1;
    letter-spacing:.01em;
    text-shadow:0 1px 0 rgba(0,0,0,.18);
  }

  .promo-selector-copy span {
    color:rgba(219,231,248,.92);
    font-size:7.6px;
    font-weight:780;
    letter-spacing:.16em;
  }

  .promo-selector-copy p {
    margin:5px 0 0;
    color:rgba(203,216,233,.84);
    font-size:7.15px;
    line-height:1.62;
    max-width:92%;
  }

  .promo-selector-footer {
    margin-top:auto;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.10);
    color:rgba(226,239,255,.96);
    font-size:7px;
    font-weight:780;
    letter-spacing:.16em;
  }

  .promo-selector-footer svg {
    width:16px;
    height:16px;
    opacity:.9;
    transition:transform .2s ease, opacity .2s ease;
  }

  .promo-selector-card:hover .promo-selector-footer svg,
  .promo-selector-card:focus-visible .promo-selector-footer svg {
    transform:translateX(2px);
    opacity:1;
  }

  .promo-count-pill {
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
    color:rgba(236,244,255,.9);
  }

  .promo-empty-card {
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:14px;
    padding:18px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.022));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
    animation:promoFloatIn .3s cubic-bezier(.2,.8,.2,1) both;
  }

  .promo-empty-card h3 {
    margin:0;
    font-size:13px;
  }

  .promo-empty-card p {
    margin:5px 0 0;
    color:rgba(182,197,216,.78);
    font-size:7.4px;
    line-height:1.55;
  }

  .promo-empty-status {
    padding:7px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
    color:rgba(227,237,250,.84);
    font-size:6.8px;
    font-weight:780;
    letter-spacing:.14em;
  }

  .promo-back-button {
    appearance:none;
    align-self:start;
    display:inline-flex;
    align-items:center;
    gap:9px;
    width:max-content;
    max-width:100%;
    padding:11px 14px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
    color:rgba(235,243,255,.94);
    font-size:7.4px;
    font-weight:800;
    letter-spacing:.16em;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.12);
    cursor:pointer;
    transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
  }

  .promo-back-button svg {
    width:14px;
    height:14px;
    transform:rotate(180deg);
    opacity:.9;
    flex:0 0 auto;
  }

  .promo-back-button:hover,
  .promo-back-button:focus-visible {
    transform:translateY(-1px);
    border-color:rgba(126,186,255,.24);
    background:linear-gradient(180deg, rgba(78,132,255,.10), rgba(255,255,255,.03));
    color:rgba(244,248,255,.98);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.075), 0 14px 28px rgba(12,34,82,.16);
    outline:none;
  }

  @keyframes promoCardBreath {
    0%, 100% { transform:translateY(0) scale(1); }
    50% { transform:translateY(-1px) scale(1.004); }
  }

  @keyframes promoSheen {
    0% { transform:translateX(-140%); }
    100% { transform:translateX(140%); }
  }

  @media(max-width:760px){
    .promo-selector-head{padding:12px 6px 0}
    .promo-selector-grid{grid-template-columns:1fr;gap:12px}
    .promo-selector-card{min-height:165px;padding:16px;border-radius:22px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 14px 26px rgba(0,0,0,.16)}
    .promo-selector-copy strong{font-size:19px}
    .promo-selector-copy p{max-width:100%;font-size:7.2px}
    .promo-empty-card{grid-template-columns:auto 1fr;padding:15px}
    .promo-empty-status{grid-column:1/-1;width:max-content}
  }

  .promo-plan-list {
    display:grid;
    gap:14px;
  }

  .promo-plan-item {
    position:relative;
    overflow:hidden;
    padding:16px;
    border-radius:22px;
    border:1px solid rgba(135, 228, 123, .16);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(104, 224, 119, .10), transparent 46%),
      radial-gradient(120% 120% at 0% 100%, rgba(72, 152, 255, .07), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px rgba(0,0,0,.12);
    animation: promoFloatIn .42s ease both;
    animation-delay: calc(var(--promo-index, 0) * .05s);
  }

  .promo-plan-item::before {
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    background:linear-gradient(180deg, rgba(155,255,128,.98), rgba(56,201,101,.56));
    border-radius:999px;
  }

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

  .promo-plan-title-wrap {
    display:grid;
    gap:6px;
  }

  .promo-plan-kicker {
    color:#a9f29b;
    font-size:7px;
    font-weight:800;
    letter-spacing:.22em;
  }

  .promo-plan-name {
    color:rgba(246,249,255,.98);
    font-size:12px;
    font-weight:820;
    letter-spacing:.05em;
    line-height:1.08;
  }

  .promo-plan-price {
    flex:0 0 auto;
    padding:7px 11px;
    border-radius:999px;
    border:1px solid rgba(132,232,110,.22);
    background:linear-gradient(180deg, rgba(123,232,103,.13), rgba(67,160,74,.08));
    color:#d6ffcf;
    font-size:7px;
    font-weight:850;
    letter-spacing:.15em;
    white-space:nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  }

  .promo-plan-variants {
    display:grid;
    gap:10px;
  }

  .promo-variant-row {
    display:grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px 13px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.06);
    background:linear-gradient(180deg, rgba(9,13,22,.42), rgba(10,15,26,.28));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
  }

  .promo-variant-row:hover {
    transform: translateY(-1px);
    border-color: rgba(122,232,102,.18);
    background:linear-gradient(180deg, rgba(12,17,28,.46), rgba(12,18,30,.34));
  }

  .promo-variant-meta {
    display:grid;
    gap:5px;
    min-width:0;
  }

  .promo-variant-label {
    color:rgba(188,208,255,.82);
    font-size:7px;
    font-weight:800;
    letter-spacing:.22em;
  }

  .promo-variant-code {
    color:rgba(248,251,255,.98);
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:none;
    word-break:break-all;
    line-height:1.22;
  }

  .promo-variant-caption {
    color:rgba(144,164,189,.74);
    font-size:6.5px;
    font-weight:700;
    letter-spacing:.16em;
  }

  .promo-variant-side {
    display:grid;
    justify-items:end;
    gap:8px;
    flex:0 0 auto;
  }

  .promo-copy-button,
  .promo-copy-all {
    appearance:none;
    border:1px solid rgba(122,232,102,.18);
    background:rgba(122,232,102,.09);
    color:#efffeb;
    border-radius:13px;
    padding:9px 12px;
    min-width:78px;
    font-size:7px;
    font-weight:850;
    letter-spacing:.16em;
    cursor:pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    white-space:nowrap;
  }

  .promo-copy-button:hover,
  .promo-copy-button:focus-visible,
  .promo-copy-all:hover,
  .promo-copy-all:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(152,255,126,.28);
    background: rgba(122,232,102,.14);
    box-shadow: 0 10px 20px rgba(80,160,70,.12), inset 0 1px 0 rgba(255,255,255,.05);
    outline:none;
  }

  .promo-web-row {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:12px 13px;
    border-radius:18px;
    border:1px solid rgba(92,172,255,.14);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(61,145,255,.10), transparent 48%),
      linear-gradient(180deg, rgba(9,15,27,.48), rgba(9,14,24,.30));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  }

  .promo-web-meta {
    min-width:0;
    display:grid;
    gap:5px;
  }

  .promo-web-label {
    color:rgba(157,202,255,.92);
    font-size:7px;
    font-weight:820;
    letter-spacing:.18em;
  }

  .thai-thonburi {
    font-family: "Thonburi", "Sukhumvit Set", "Noto Sans Thai", Tahoma, sans-serif !important;
    font-size: 8.4px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.55 !important;
    text-transform: none !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }

  .promo-web-url {
    color:rgba(235,243,255,.96);
    font-size:8px;
    font-weight:740;
    text-transform:none;
    word-break:break-all;
    line-height:1.45;
  }

  .promo-web-actions {
    display:flex;
    gap:8px;
    align-items:center;
  }

  .promo-web-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:88px;
    padding:9px 12px;
    border-radius:13px;
    border:1px solid rgba(93,171,255,.20);
    background:rgba(66,140,255,.10);
    color:#e5f1ff;
    font-size:7px;
    font-weight:850;
    letter-spacing:.14em;
    text-decoration:none;
    transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
  }

  .promo-web-link:hover,
  .promo-web-link:focus-visible {
    transform:translateY(-1px);
    border-color:rgba(116,188,255,.34);
    background:rgba(66,140,255,.16);
    box-shadow:0 10px 22px rgba(38,100,205,.14);
    outline:none;
  }

  .promo-plan-footer {
    display:grid;
    gap:12px;
    margin-top:12px;
  }

  .promo-plan-note {
    color:rgba(170,186,208,.78);
    font-size:7px;
    line-height:1.6;
    letter-spacing:.06em;
  }

  .promo-copy-all-row {
    display:flex;
    justify-content:flex-end;
    margin-top:2px;
  }


  .promo-detail-board.ais-theme {
    border-color: rgba(114, 236, 118, .18);
    background:
      radial-gradient(120% 135% at 0% 0%, rgba(48, 209, 88, .10), transparent 44%),
      radial-gradient(125% 150% at 100% 100%, rgba(15, 121, 64, .10), transparent 56%),
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.024));
  }

  .promo-detail-board.true-theme {
    border-color: rgba(255, 108, 130, .22);
    background:
      radial-gradient(120% 135% at 0% 0%, rgba(255, 84, 116, .13), transparent 44%),
      radial-gradient(125% 150% at 100% 100%, rgba(126, 22, 46, .13), transparent 58%),
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.024));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px rgba(86, 8, 31, .16);
  }

  .promo-detail-board.dtac-theme {
    border-color: rgba(95, 172, 255, .20);
    background:
      radial-gradient(120% 135% at 0% 0%, rgba(57, 150, 255, .13), transparent 44%),
      radial-gradient(125% 150% at 100% 100%, rgba(18, 70, 170, .14), transparent 58%),
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.024));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 34px rgba(8, 41, 109, .17);
  }

  .promo-detail-board.ais-theme .promo-board-eyebrow { color: #8fe99e; }
  .promo-detail-board.true-theme .promo-board-eyebrow { color: #ff95a7; }
  .promo-detail-board.dtac-theme .promo-board-eyebrow { color: #8fc9ff; }

  .promo-detail-board.ais-theme .promo-count-pill {
    border-color: rgba(114,236,118,.18);
    color: #c7ffd2;
    background: rgba(60, 180, 88, .10);
  }

  .promo-detail-board.true-theme .promo-count-pill {
    border-color: rgba(255, 110, 138, .22);
    color: #ffd6dd;
    background: rgba(255, 84, 116, .11);
  }

  .promo-detail-board.dtac-theme .promo-count-pill {
    border-color: rgba(95, 172, 255, .20);
    color: #d1e7ff;
    background: rgba(54, 142, 255, .11);
  }

  .promo-plan-item.true-tone {
    border-color: rgba(255, 112, 136, .18);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(255, 98, 140, .13), transparent 46%),
      radial-gradient(120% 120% at 0% 100%, rgba(133, 28, 54, .11), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px rgba(52,0,19,.14);
  }
  .promo-plan-item.true-tone::before {
    background: linear-gradient(180deg, rgba(255,132,154,.98), rgba(228,64,96,.58));
  }
  .promo-plan-item.true-tone .promo-plan-kicker { color: #ffb1bf; }
  .promo-plan-item.true-tone .promo-plan-price {
    border-color: rgba(255, 112, 136, .22);
    background: linear-gradient(180deg, rgba(255, 98, 140, .13), rgba(153, 36, 67, .10));
    color: #ffe2e7;
  }
  .promo-plan-item.true-tone .promo-variant-row:hover {
    border-color: rgba(255,112,136,.20);
    background: linear-gradient(180deg, rgba(24,11,19,.50), rgba(25,10,18,.38));
  }
  .promo-plan-item.true-tone .promo-copy-button,
  .promo-plan-item.true-tone .promo-copy-all {
    border-color: rgba(255,112,136,.22);
    background: rgba(255,84,116,.10);
    color: #fff0f2;
  }
  .promo-plan-item.true-tone .promo-copy-button:hover,
  .promo-plan-item.true-tone .promo-copy-button:focus-visible,
  .promo-plan-item.true-tone .promo-copy-all:hover,
  .promo-plan-item.true-tone .promo-copy-all:focus-visible {
    border-color: rgba(255,138,160,.30);
    background: rgba(255,84,116,.16);
    box-shadow: 0 10px 20px rgba(120, 26, 50, .16), inset 0 1px 0 rgba(255,255,255,.05);
  }
  .promo-plan-item.true-tone .promo-web-row {
    border-color: rgba(255,112,136,.16);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(255,98,140,.10), transparent 48%),
      linear-gradient(180deg, rgba(24,13,21,.50), rgba(20,10,17,.34));
  }
  .promo-plan-item.true-tone .promo-web-label { color: #ffc0cc; }
  .promo-plan-item.true-tone .promo-web-link {
    border-color: rgba(255,112,136,.20);
    background: rgba(255,84,116,.12);
    color: #fff0f2;
  }

  .promo-plan-item.dtac-tone {
    border-color: rgba(95, 172, 255, .18);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(74, 165, 255, .13), transparent 46%),
      radial-gradient(120% 120% at 0% 100%, rgba(20, 78, 176, .12), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px rgba(3,21,59,.14);
  }
  .promo-plan-item.dtac-tone::before {
    background: linear-gradient(180deg, rgba(118,194,255,.98), rgba(47,129,255,.58));
  }
  .promo-plan-item.dtac-tone .promo-plan-kicker { color: #abd6ff; }
  .promo-plan-item.dtac-tone .promo-plan-price {
    border-color: rgba(95, 172, 255, .22);
    background: linear-gradient(180deg, rgba(74,165,255,.13), rgba(25,92,188,.10));
    color: #e5f1ff;
  }
  .promo-plan-item.dtac-tone .promo-variant-row:hover {
    border-color: rgba(95,172,255,.22);
    background: linear-gradient(180deg, rgba(10,16,30,.50), rgba(10,16,31,.36));
  }
  .promo-plan-item.dtac-tone .promo-copy-button,
  .promo-plan-item.dtac-tone .promo-copy-all {
    border-color: rgba(95,172,255,.22);
    background: rgba(53,142,255,.11);
    color: #eef6ff;
  }
  .promo-plan-item.dtac-tone .promo-copy-button:hover,
  .promo-plan-item.dtac-tone .promo-copy-button:focus-visible,
  .promo-plan-item.dtac-tone .promo-copy-all:hover,
  .promo-plan-item.dtac-tone .promo-copy-all:focus-visible {
    border-color: rgba(118,188,255,.32);
    background: rgba(53,142,255,.17);
    box-shadow: 0 10px 20px rgba(16,74,166,.16), inset 0 1px 0 rgba(255,255,255,.05);
  }
  .promo-plan-item.dtac-tone .promo-web-row {
    border-color: rgba(95,172,255,.18);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(74,165,255,.10), transparent 48%),
      linear-gradient(180deg, rgba(9,15,27,.48), rgba(9,14,24,.30));
  }
  .promo-plan-item.dtac-tone .promo-web-label { color: #b6dcff; }
  .promo-plan-item.dtac-tone .promo-web-link {
    border-color: rgba(93,171,255,.20);
    background: rgba(66,140,255,.12);
    color: #e5f1ff;
  }

  .promo-detail-board.true-theme .promo-detail-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,134,155,.82), rgba(184,44,80,.42));
  }
  .promo-detail-board.dtac-theme .promo-detail-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(119,192,255,.82), rgba(58,119,255,.42));
  }

  @keyframes promoFloatIn {
    from { opacity:0; transform: translateY(12px) scale(.985); }
    to { opacity:1; transform: translateY(0) scale(1); }
  }

  @media (max-width: 760px) {
    .promo-board { padding: 12px; border-radius: 20px; }
    .promo-board h3 { font-size: 12px; }
    .promo-carrier-grid { grid-template-columns: 1fr; gap: 10px; }
    .promo-carrier-card { padding: 13px 12px; border-radius: 18px; }
    .carrier-badge { width:40px; height:40px; border-radius:13px; }
    .promo-plan-item { padding: 13px; border-radius: 20px; }
    .promo-plan-top { gap: 10px; }
    .promo-plan-name { font-size: 10.5px; }
    .promo-variant-row { grid-template-columns: 1fr; gap: 10px; padding: 11px 11px; }
    .promo-variant-side { width:100%; grid-template-columns: 1fr auto; justify-items:stretch; align-items:center; }
    .promo-variant-price { justify-self:start; }
    .promo-copy-button { min-width: 72px; justify-self:end; }
    .promo-web-row { grid-template-columns:1fr; gap:10px; padding:11px; }
    .promo-web-actions { width:100%; display:grid; grid-template-columns:1fr 1fr; }
    .promo-web-link, .promo-web-actions .promo-copy-button { width:100%; min-width:0; }
    .promo-detail-scroll { max-height: 62vh; padding-right:2px; margin-right:-2px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .more-expand,
    .promo-carrier-card,
    .more-row.more-expand-trigger[aria-expanded="true"] > span:last-child {
      transition: none;
      animation: none;
    }
  }


  /* =========================================================
     PREVIEW R5 — SIDEBAR ICONS + LIVE SERVER RUNTIME
     Preview-only. No production/source mutation.
     ========================================================= */

  /* Requested Services / Audit / Backups sidebar glyphs */
  .nav-item .nav-glyph {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    flex: 0 0 18px;
  }

  .nav-item .nav-glyph svg {
    width: 17px;
    height: 17px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.72;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .nav-item .nav-glyph-premium {
    position: relative;
    color: rgba(202, 220, 239, .72);
  }

  .nav-item .nav-glyph-premium::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    right: -2px;
    bottom: -2px;
    border: 1.5px solid rgba(12, 18, 26, .9);
    border-radius: 50%;
    background: rgba(92, 177, 255, .82);
    box-shadow: 0 0 8px rgba(55, 152, 255, .35);
    opacity: .72;
  }

  .nav-item:hover .nav-glyph-premium,
  .nav-item.active .nav-glyph-premium {
    color: #8dccff;
  }

  .nav-item.active .nav-glyph-premium::after {
    background: #7dffbd;
    box-shadow: 0 0 10px rgba(68, 255, 166, .42);
    opacity: 1;
  }

  /* Runtime host area */
  #hostCard {
    overflow: hidden;
  }

  #hostCard .user-head {
    position: relative;
    z-index: 2;
  }

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

  .runtime-stat {
    position: relative;
    min-width: 0;
    min-height: 96px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    overflow: hidden;
    border: 1px solid rgba(163, 183, 207, .13);
    border-radius: 16px;
    background:
      radial-gradient(95% 130% at 6% 0%, rgba(52, 143, 255, .06), transparent 52%),
      linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.028),
      0 8px 24px rgba(0,0,0,.08);
  }

  .runtime-stat::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 12%, rgba(255,255,255,.028) 38%, transparent 63%);
    transform: translateX(-70%);
    animation: runtimeSheen 6.8s ease-in-out infinite;
  }

  .runtime-stat:nth-child(2)::before { animation-delay: -1.3s; }
  .runtime-stat:nth-child(3)::before { animation-delay: -2.6s; }
  .runtime-stat:nth-child(4)::before { animation-delay: -3.9s; }

  .runtime-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(81, 168, 255, .18);
    border-radius: 13px;
    color: #76c1ff;
    background:
      radial-gradient(circle at 34% 25%, rgba(125, 205, 255, .17), transparent 43%),
      linear-gradient(180deg, rgba(8,132,255,.13), rgba(8,132,255,.065));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 7px 18px rgba(0, 77, 170, .08);
  }

  .runtime-icon svg {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .runtime-pulse {
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(74, 176, 255, .18);
    border-radius: 9px;
    animation: runtimePulse 2.4s ease-out infinite;
  }

  .runtime-icon-cpu svg {
    animation: runtimeCpuBreathe 1.75s ease-in-out infinite;
  }

  .runtime-icon-ram {
    color: #84d7ff;
  }

  .runtime-icon-ram svg {
    animation: runtimeRamGlow 2.1s ease-in-out infinite;
  }

  .runtime-icon-ssd {
    color: #93c7ff;
  }

  .runtime-icon-ssd .runtime-pulse {
    animation-duration: 3s;
  }

  .runtime-icon-time {
    color: #9ed5ff;
  }

  .runtime-clock-hand {
    position: absolute;
    z-index: 3;
    width: 1.5px;
    height: 7px;
    left: 50%;
    top: 50%;
    border-radius: 999px;
    background: #d7eeff;
    box-shadow: 0 0 6px rgba(132, 205, 255, .55);
    transform-origin: 50% 0;
    animation: runtimeClock 6s linear infinite;
  }

  .runtime-copy {
    min-width: 0;
    position: relative;
    z-index: 2;
  }

  .runtime-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    color: rgba(155, 171, 191, .72);
    font-size: 7px;
    font-weight: 760;
    letter-spacing: .105em;
  }

  .runtime-copy > strong {
    display: block;
    margin: 0 0 8px;
    color: rgba(244, 249, 255, .95);
    font-size: 15px;
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
  }

  .runtime-live,
  .runtime-health {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(114, 236, 177, .78);
    font-size: 6.1px;
    font-weight: 800;
    letter-spacing: .08em;
  }

  .runtime-live i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #66f0aa;
    box-shadow: 0 0 7px rgba(74, 255, 163, .48);
    animation: runtimeLiveDot 1.2s ease-in-out infinite;
  }

  .runtime-meter {
    position: relative;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
  }

  .runtime-meter > span {
    --meter: var(--level, 30%);
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--meter);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(22,137,255,.58), rgba(108,200,255,.9));
    box-shadow: 0 0 9px rgba(48, 159, 255, .24);
    transition: width .65s cubic-bezier(.2,.8,.2,1);
  }

  .runtime-ram .runtime-meter > span {
    background: linear-gradient(90deg, rgba(43,149,255,.54), rgba(97,222,255,.88));
  }

  .runtime-ssd .runtime-meter > span {
    background: linear-gradient(90deg, rgba(86,132,255,.50), rgba(127,184,255,.86));
  }

  .runtime-wave {
    position: absolute;
    right: 9px;
    bottom: 8px;
    display: flex;
    align-items: end;
    gap: 2px;
    height: 13px;
    opacity: .34;
  }

  .runtime-wave i {
    display: block;
    width: 2px;
    height: 5px;
    border-radius: 999px;
    background: #62baff;
    transform-origin: bottom;
    animation: runtimeBars 1.15s ease-in-out infinite;
  }

  .runtime-wave i:nth-child(2) { animation-delay: -.18s; }
  .runtime-wave i:nth-child(3) { animation-delay: -.36s; }
  .runtime-wave i:nth-child(4) { animation-delay: -.54s; }

  .ram-wave i {
    background: #75d8ff;
    animation-duration: 1.45s;
  }

  .runtime-disk-led {
    position: absolute;
    right: 10px;
    bottom: 9px;
    display: flex;
    gap: 3px;
  }

  .runtime-disk-led i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(121, 190, 255, .28);
    animation: runtimeDiskLed 1.8s ease-in-out infinite;
  }

  .runtime-disk-led i:nth-child(2) { animation-delay: -.6s; }
  .runtime-disk-led i:nth-child(3) { animation-delay: -1.2s; }

  .runtime-uptime-line {
    position: relative;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
  }

  .runtime-uptime-line span {
    position: absolute;
    inset: 0;
    width: 34%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(117, 204, 255, .9), transparent);
    animation: runtimeScan 2.8s ease-in-out infinite;
  }

  .runtime-ticks {
    position: absolute;
    right: 10px;
    bottom: 8px;
    display: flex;
    gap: 3px;
  }

  .runtime-ticks i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(125, 209, 255, .55);
    animation: runtimeLiveDot 1.4s ease-in-out infinite;
  }

  .runtime-ticks i:nth-child(2) { animation-delay: -.45s; }
  .runtime-ticks i:nth-child(3) { animation-delay: -.9s; }

  @keyframes runtimeSheen {
    0%, 72%, 100% { transform: translateX(-75%); opacity: 0; }
    82% { opacity: .8; }
    95% { transform: translateX(90%); opacity: 0; }
  }

  @keyframes runtimePulse {
    0% { transform: scale(.78); opacity: .55; }
    70%,100% { transform: scale(1.18); opacity: 0; }
  }

  @keyframes runtimeCpuBreathe {
    0%,100% { transform: scale(.96); opacity: .78; }
    50% { transform: scale(1.04); opacity: 1; }
  }

  @keyframes runtimeRamGlow {
    0%,100% { opacity: .72; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-.5px); }
  }

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

  @keyframes runtimeLiveDot {
    0%,100% { opacity: .35; transform: scale(.82); }
    50% { opacity: 1; transform: scale(1.18); }
  }

  @keyframes runtimeBars {
    0%,100% { transform: scaleY(.45); opacity: .35; }
    50% { transform: scaleY(1); opacity: .95; }
  }

  @keyframes runtimeDiskLed {
    0%,100% { opacity: .22; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.18); }
  }

  @keyframes runtimeScan {
    0% { transform: translateX(-115%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(290%); opacity: 0; }
  }

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

  @media (max-width: 760px) {
    .runtime-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 9px;
    }

    .runtime-stat {
      min-height: 86px;
      grid-template-columns: 37px minmax(0, 1fr);
      gap: 8px;
      padding: 9px;
      border-radius: 14px;
    }

    .runtime-icon {
      width: 37px;
      height: 37px;
      border-radius: 11px;
    }

    .runtime-icon svg {
      width: 18px;
      height: 18px;
    }

    .runtime-copy > strong {
      margin-bottom: 7px;
      font-size: 12.5px;
    }

    .runtime-meta {
      font-size: 6.3px;
      letter-spacing: .075em;
    }

    .runtime-live,
    .runtime-health {
      font-size: 5.6px;
    }

    .runtime-wave,
    .runtime-disk-led,
    .runtime-ticks {
      opacity: .25;
    }
  }

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

  @media (prefers-reduced-motion: reduce) {
    .runtime-stat::before,
    .runtime-pulse,
    .runtime-icon-cpu svg,
    .runtime-icon-ram svg,
    .runtime-clock-hand,
    .runtime-live i,
    .runtime-wave i,
    .runtime-disk-led i,
    .runtime-uptime-line span,
    .runtime-ticks i {
      animation: none !important;
    }

    .runtime-meter > span {
      transition: none;
    }
  }


  /* =========================================================
     PREVIEW R6 — DASHBOARD / HERO / QUICK ACTIONS POLISH
     ========================================================= */

  /* Top bar */
  .app-shell > .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -6px -6px 14px;
    padding: 12px 14px;
    border: 1px solid rgba(147, 167, 193, .12);
    border-radius: 22px;
    background:
      radial-gradient(100% 150% at 10% 0%, rgba(35, 111, 255, .075), transparent 44%),
      linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.018));
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.04),
      0 10px 28px rgba(0,0,0,.12);
  }

  .topbar-title .eyebrow {
    letter-spacing: .18em;
    color: rgba(150, 167, 188, .86);
  }

  .topbar-title h2 {
    letter-spacing: -.03em;
    color: rgba(244,248,255,.96);
  }

  .status-pill {
    position: relative;
    min-height: 40px;
    padding-inline: 14px;
    border: 1px solid rgba(67, 191, 121, .18);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(8, 45, 29, .68), rgba(8, 28, 21, .48));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 6px 18px rgba(0,0,0,.10);
  }

  .status-pill span {
    box-shadow: 0 0 14px rgba(64,255,155,.45);
    animation: statusGlow 1.8s ease-in-out infinite;
  }

  .glass-button {
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  .glass-button:hover {
    transform: translateY(-1px);
  }

  /* Sidebar premium icons */
  .nav-item .nav-glyph-premium {
    width: 18px;
    height: 18px;
    border-radius: 8px;
  }

  .nav-item .nav-glyph-premium svg {
    width: 17px;
    height: 17px;
  }

  .nav-item .nav-glyph-premium::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 10px;
    background:
      radial-gradient(circle at 35% 25%, rgba(74,160,255,.12), transparent 50%);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .nav-item:hover .nav-glyph-premium::before,
  .nav-item.active .nav-glyph-premium::before {
    opacity: 1;
  }

  .nav-item.active .nav-glyph-dashboard,
  .nav-item.active .nav-glyph-users,
  .nav-item.active .nav-glyph-profiles {
    color: #92d2ff;
  }

  /* Hero redesign */
  .hero-premium {
    position: relative;
    overflow: hidden;
    padding: 24px 24px 20px;
    border-radius: 28px;
    background:
      radial-gradient(95% 140% at 85% 14%, rgba(31, 116, 255, .14), transparent 36%),
      radial-gradient(75% 120% at 0% 100%, rgba(70, 32, 180, .10), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  }

  .hero-gridline {
    position: absolute;
    inset: auto 0 0 0;
    height: 52%;
    opacity: .13;
    background-image:
      linear-gradient(rgba(111, 154, 206, .18) 1px, transparent 1px),
      linear-gradient(90deg, rgba(111, 154, 206, .14) 1px, transparent 1px);
    background-size: 100% 18px, 18px 100%;
    mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.88));
    pointer-events: none;
  }

  .hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
    opacity: .55;
  }

  .hero-orb-a {
    width: 180px;
    height: 180px;
    top: -30px;
    right: 140px;
    background: rgba(24, 122, 255, .18);
    animation: heroFloatA 7s ease-in-out infinite;
  }

  .hero-orb-b {
    width: 140px;
    height: 140px;
    right: 40px;
    bottom: 15px;
    background: rgba(67, 92, 255, .12);
    animation: heroFloatB 8s ease-in-out infinite;
  }

  .hero-top-premium {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
  }

  .hero-copy-wrap {
    min-width: 0;
  }

  .hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(102, 176, 255, .14);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.048), rgba(255,255,255,.024));
    color: rgba(212, 227, 242, .92);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  .hero-pill i,
  .hero-pill b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4effb4;
    box-shadow: 0 0 10px rgba(67,255,174,.45);
    animation: statusGlow 1.8s ease-in-out infinite;
  }

  .hero-pill.ghost {
    color: rgba(134, 203, 255, .95);
  }

  .hero-pill.ghost b {
    background: #67c3ff;
    box-shadow: 0 0 10px rgba(79,191,255,.34);
    animation-duration: 2.2s;
  }

  .hero-premium h3 {
    margin: 0 0 12px;
    max-width: 12ch;
    font-size: clamp(32px, 4vw, 48px);
    line-height: .96;
    letter-spacing: -.05em;
    color: rgba(248, 250, 255, .97);
    text-wrap: balance;
  }

  .hero-copy {
    max-width: 760px;
    margin: 0 0 14px;
    color: rgba(197, 208, 223, .80);
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-live-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-live-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(205, 218, 234, .76);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
  }

  .hero-live-strip b {
    width: 28px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    position: relative;
  }

  .hero-live-strip b::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(91,154,255,.75), rgba(110,220,255,.95));
    animation: heroScan 2.6s ease-in-out infinite;
  }

  .hero-side {
    display: grid;
    gap: 12px;
    align-items: start;
    justify-items: end;
  }

  .hero-cta {
    min-width: 126px;
    min-height: 44px;
    border-radius: 18px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 12px 26px rgba(7, 90, 200, .26);
  }

  .hero-mini-panel {
    width: 220px;
    padding: 12px;
    border: 1px solid rgba(118, 152, 191, .10);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  .hero-mini-head,
  .hero-mini-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(155, 174, 197, .68);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  .hero-mini-good {
    color: rgba(116, 238, 180, .84);
  }

  .hero-mini-graph {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 40px;
    margin: 10px 0;
  }

  .hero-mini-graph i {
    display: block;
    width: 8px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(101, 191, 255, .95), rgba(53, 119, 255, .48));
    box-shadow: 0 0 12px rgba(67, 151, 255, .12);
    animation: heroGraph 1.8s ease-in-out infinite;
    transform-origin: bottom;
  }

  .hero-mini-graph i:nth-child(2) { animation-delay: -.15s; height: 22px; }
  .hero-mini-graph i:nth-child(3) { animation-delay: -.30s; height: 27px; }
  .hero-mini-graph i:nth-child(4) { animation-delay: -.45s; height: 19px; }
  .hero-mini-graph i:nth-child(5) { animation-delay: -.60s; height: 31px; }
  .hero-mini-graph i:nth-child(6) { animation-delay: -.75s; height: 24px; }
  .hero-mini-graph i:nth-child(7) { animation-delay: -.90s; height: 34px; }
  .hero-mini-graph i:nth-child(8) { animation-delay: -1.05s; height: 20px; }

  .metric-grid-premium .metric {
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.015));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  }

  /* Quick action cards redesign */
  .quick-grid-premium {
    gap: 12px;
  }

  .quick-card-premium {
    position: relative;
    min-height: 106px;
    padding: 16px 16px 14px;
    align-items: flex-start;
    text-align: left;
    overflow: hidden;
    border-radius: 24px;
    background:
      radial-gradient(90% 140% at 8% 0%, rgba(39, 117, 255, .06), transparent 45%),
      linear-gradient(180deg, rgba(255,255,255,.034), rgba(255,255,255,.016));
  }

  .quick-card-premium::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 14%, rgba(255,255,255,.028) 42%, transparent 65%);
    transform: translateX(-65%);
    animation: quickSweep 7s ease-in-out infinite;
    pointer-events: none;
  }

  .quick-card-premium:nth-child(2)::before { animation-delay: -1.7s; }
  .quick-card-premium:nth-child(3)::before { animation-delay: -3.2s; }
  .quick-card-premium:nth-child(4)::before { animation-delay: -4.8s; }

  .quick-card-premium .quick-icon {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 0 0 14px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid rgba(78, 154, 255, .18);
    color: #6ebeff;
    background:
      radial-gradient(circle at 35% 25%, rgba(112, 201, 255, .15), transparent 45%),
      linear-gradient(180deg, rgba(12,132,255,.13), rgba(12,132,255,.06));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 8px 20px rgba(0, 79, 175, .08);
  }

  .quick-card-premium .quick-icon svg {
    position: relative;
    z-index: 2;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.72;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .quick-icon-live .quick-ring {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(94, 173, 255, .18);
    border-radius: 10px;
    animation: runtimePulse 2.4s ease-out infinite;
  }

  .quick-icon-live .quick-dot {
    position: absolute;
    right: -1px;
    top: -1px;
    width: 8px;
    height: 8px;
    border: 1.5px solid rgba(10,18,28,.88);
    border-radius: 50%;
    background: #63f3a8;
    box-shadow: 0 0 10px rgba(82,255,180,.42);
    animation: statusGlow 1.5s ease-in-out infinite;
  }

  .quick-card-premium .quick-bars {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: flex;
    align-items: end;
    gap: 3px;
    height: 14px;
    opacity: .34;
  }

  .quick-card-premium .quick-bars i {
    display: block;
    width: 2px;
    height: 6px;
    border-radius: 999px;
    background: rgba(116, 200, 255, .95);
    animation: runtimeBars 1.2s ease-in-out infinite;
  }

  .quick-card-premium .quick-bars i:nth-child(2) { animation-delay: -.16s; }
  .quick-card-premium .quick-bars i:nth-child(3) { animation-delay: -.32s; }
  .quick-card-premium .quick-bars i:nth-child(4) { animation-delay: -.48s; }

  .quick-card-premium strong {
    margin: 0 0 6px;
    color: rgba(244, 248, 255, .96);
    font-size: 14px;
    font-weight: 720;
    letter-spacing: -.02em;
  }

  .quick-card-premium span {
    color: rgba(162, 177, 197, .74);
    font-size: 11px;
    line-height: 1.35;
    max-width: 24ch;
  }

  .quick-card-premium:hover {
    transform: translateY(-1px);
    border-color: rgba(83, 161, 255, .24);
  }

  /* Extra keyframes */
  @keyframes heroFloatA {
    0%,100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(10px) translateX(-6px); }
  }

  @keyframes heroFloatB {
    0%,100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-8px) translateX(5px); }
  }

  @keyframes heroScan {
    0% { transform: translateX(-120%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(220%); opacity: 0; }
  }

  @keyframes heroGraph {
    0%,100% { transform: scaleY(.72); opacity: .45; }
    50% { transform: scaleY(1.06); opacity: 1; }
  }

  @keyframes quickSweep {
    0%,72%,100% { transform: translateX(-72%); opacity: 0; }
    82% { opacity: .8; }
    95% { transform: translateX(86%); opacity: 0; }
  }

  @keyframes statusGlow {
    0%,100% { opacity: .58; transform: scale(.92); }
    50% { opacity: 1; transform: scale(1.08); }
  }

  /* mobile/tablet adjustments */
  @media (max-width: 1100px) {
    .hero-top-premium {
      grid-template-columns: 1fr;
    }

    .hero-side {
      justify-items: start;
    }

    .hero-mini-panel {
      width: 100%;
      max-width: 320px;
    }
  }

  @media (max-width: 760px) {
    .app-shell > .topbar {
      margin: -2px 0 14px;
      padding: 10px 12px;
      border-radius: 18px;
      backdrop-filter: none;
    }

    .hero-premium {
      padding: 18px 16px 16px;
      border-radius: 24px;
    }

    .hero-premium h3 {
      max-width: 100%;
      font-size: 32px;
    }

    .hero-copy {
      font-size: 12px;
    }

    .hero-live-strip span {
      font-size: 10px;
    }

    .hero-mini-panel {
      max-width: none;
    }

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

    .quick-card-premium {
      min-height: 112px;
      padding: 14px 12px;
      border-radius: 20px;
    }

    .quick-card-premium strong {
      font-size: 13px;
    }

    .quick-card-premium span {
      font-size: 10px;
    }
  }

  @media (max-width: 420px) {
    .quick-grid-premium {
      grid-template-columns: 1fr 1fr;
    }

    .hero-premium h3 {
      font-size: 28px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .status-pill span,
    .hero-orb-a,
    .hero-orb-b,
    .hero-pill i,
    .hero-pill b,
    .hero-live-strip b::after,
    .hero-mini-graph i,
    .quick-card-premium::before,
    .quick-icon-live .quick-ring,
    .quick-icon-live .quick-dot,
    .quick-card-premium .quick-bars i {
      animation: none !important;
    }
  }


  /* =========================================================
     PREVIEW R8 — TOP BAR ACTUAL REDESIGN
     ========================================================= */

  .topbar.topbar-premium-header {
    position: sticky;
    top: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    margin: 0 0 16px;
    padding: 16px 16px 15px;
    overflow: hidden;
    border: 1px solid rgba(146, 170, 202, .13);
    border-radius: 26px;
    background:
      radial-gradient(110% 140% at 8% -14%, rgba(40, 132, 255, .12), transparent 38%),
      radial-gradient(90% 120% at 100% 100%, rgba(77, 33, 185, .08), transparent 36%),
      linear-gradient(180deg, rgba(255,255,255,.042), rgba(255,255,255,.016));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.04),
      0 14px 34px rgba(0,0,0,.13);
  }

  .topbar.topbar-premium-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(115deg, rgba(255,255,255,.03), transparent 28%, transparent 72%, rgba(82, 140, 255, .035));
    opacity: 1;
  }

  .topbar.topbar-premium-header::after {
    content: "";
    position: absolute;
    inset: auto 16px 0 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 177, 216, .16), transparent);
    pointer-events: none;
  }

  .topbar-main,
  .topbar-actions {
    position: relative;
    z-index: 1;
  }

  .topbar-main {
    min-width: 0;
  }

  .topbar-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .eyebrow.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(103, 160, 233, .14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
    color: rgba(178, 197, 221, .94);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .22em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  .eyebrow.eyebrow-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #68c8ff;
    box-shadow: 0 0 12px rgba(103, 207, 255, .38);
    flex: 0 0 auto;
  }

  .topbar-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(74, 196, 128, .14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(12, 45, 30, .58), rgba(8, 25, 19, .42));
    color: rgba(177, 239, 205, .92);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    white-space: nowrap;
  }

  .topbar-live-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #58ef9d;
    box-shadow: 0 0 10px rgba(74,255,163,.42);
    animation: statusGlow 1.6s ease-in-out infinite;
  }

  .topbar-copy {
    min-width: 0;
  }

  .topbar-copy h2 {
    margin: 0 0 6px;
    color: rgba(246, 249, 255, .97);
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: .98;
    letter-spacing: -.045em;
    text-shadow: 0 1px 0 rgba(255,255,255,.04);
  }

  .topbar-subtitle {
    margin: 0;
    max-width: 62ch;
    color: rgba(177, 192, 212, .78);
    font-size: 12.5px;
    line-height: 1.5;
  }

  .topbar-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    min-width: 104px;
    min-height: 36px;
    justify-content: center;
    border: 1px solid rgba(69, 190, 122, .16);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(10, 45, 28, .64), rgba(8, 26, 20, .42));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 8px 18px rgba(0,0,0,.10);
    color: rgba(199, 247, 221, .92);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
  }

  .topbar.topbar-premium-header #apiStatus span {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 12px rgba(79, 255, 163, .44);
    animation: statusGlow 1.6s ease-in-out infinite;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 18px;
    background:
      radial-gradient(110% 125% at 28% 18%, rgba(94, 170, 255, .10), transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.045),
      0 10px 24px rgba(0,0,0,.13);
  }

  .topbar.topbar-premium-header #refreshButton.glass-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-top: 1px solid rgba(255,255,255,.04);
    border-radius: 17px;
    pointer-events: none;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button svg {
    width: 22px;
    height: 22px;
  }

  /* Mobile refinement so the change is clearly visible */
  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      padding: 14px 14px 14px;
      border-radius: 24px;
      margin: 0 0 14px;
    }

    .topbar-kicker {
      margin-bottom: 10px;
    }

    .eyebrow.eyebrow-chip {
      padding: 7px 10px;
      font-size: 9px;
      letter-spacing: .18em;
    }

    .topbar-live-chip {
      min-height: 28px;
      padding: 0 10px;
      font-size: 8px;
      letter-spacing: .10em;
    }

    .topbar-copy h2 {
      font-size: clamp(24px, 8vw, 34px);
      margin-bottom: 7px;
    }

    .topbar-subtitle {
      font-size: 11px;
      line-height: 1.45;
      max-width: 30ch;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-width: auto;
      min-height: 32px;
      padding-inline: 10px;
      font-size: 8.5px;
      letter-spacing: .10em;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 54px;
      height: 54px;
      min-width: 54px;
      min-height: 54px;
      border-radius: 20px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 19px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 24px;
      height: 24px;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      gap: 10px;
      padding: 13px 12px 13px;
    }

    .topbar-copy h2 {
      font-size: 22px;
    }

    .topbar-subtitle {
      font-size: 10.5px;
      max-width: 26ch;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 50px;
      height: 50px;
      min-width: 50px;
      min-height: 50px;
      border-radius: 18px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 22px;
      height: 22px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .topbar-live-chip i,
    .topbar.topbar-premium-header #apiStatus span {
      animation: none !important;
    }
  }


  /* =========================================================
     PREVIEW R9 — TOP BAR PROPORTION TUNING
     Compact, more balanced mobile composition
     ========================================================= */

  .topbar.topbar-premium-header {
    gap: 12px;
    padding: 14px 14px 14px;
    border-radius: 24px;
  }

  .topbar-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .topbar-kicker {
    gap: 7px;
    margin-bottom: 9px;
  }

  .eyebrow.eyebrow-chip {
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: .16em;
  }

  .eyebrow.eyebrow-chip::before {
    width: 5px;
    height: 5px;
  }

  .topbar-live-chip {
    min-height: 28px;
    padding: 0 10px;
    font-size: 8px;
    letter-spacing: .09em;
  }

  .topbar-live-chip i {
    width: 5px;
    height: 5px;
  }

  .topbar-copy h2 {
    margin: 0 0 3px;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  .topbar-subtitle {
    max-width: 54ch;
    font-size: 11.5px;
    line-height: 1.42;
    color: rgba(173, 188, 208, .74);
  }

  .topbar.topbar-premium-header #apiStatus {
    min-width: 98px;
    min-height: 34px;
    font-size: 9px;
    letter-spacing: .09em;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 17px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button::after {
    border-radius: 16px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button svg {
    width: 21px;
    height: 21px;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      padding: 12px 12px 13px;
      border-radius: 22px;
      margin: 0 0 13px;
    }

    .topbar-kicker {
      gap: 6px;
      margin-bottom: 8px;
    }

    .eyebrow.eyebrow-chip {
      padding: 6px 9px;
      font-size: 8.5px;
      letter-spacing: .15em;
    }

    .topbar-live-chip {
      min-height: 26px;
      padding: 0 9px;
      font-size: 7.5px;
      letter-spacing: .08em;
    }

    .topbar-copy h2 {
      font-size: clamp(20px, 7vw, 30px);
      margin-bottom: 0;
    }

    .topbar-subtitle {
      display: none;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-height: 30px;
      padding-inline: 9px;
      font-size: 8px;
      letter-spacing: .08em;
    }

    .topbar.topbar-premium-header #apiStatus span {
      width: 6px;
      height: 6px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 48px;
      height: 48px;
      min-width: 48px;
      min-height: 48px;
      border-radius: 18px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 17px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 22px;
      height: 22px;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      gap: 9px;
      padding: 11px 11px 12px;
      border-radius: 20px;
    }

    .topbar-kicker {
      gap: 5px;
      margin-bottom: 7px;
    }

    .eyebrow.eyebrow-chip {
      padding: 5px 8px;
      font-size: 8px;
      letter-spacing: .13em;
    }

    .topbar-live-chip {
      min-height: 24px;
      padding: 0 8px;
      font-size: 7px;
      letter-spacing: .07em;
    }

    .topbar-copy h2 {
      font-size: 18px;
      line-height: 1.04;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-height: 28px;
      padding-inline: 8px;
      font-size: 7.5px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 44px;
      height: 44px;
      min-width: 44px;
      min-height: 44px;
      border-radius: 16px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 15px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 20px;
      height: 20px;
    }
  }


  /* =========================================================
     PREVIEW R10 — TOP BAR FINAL SIZE/PADDING + LOGOUT
     ========================================================= */

  .topbar.topbar-premium-header {
    gap: 11px;
    margin: 8px 8px 16px;
    padding: 12px 13px 13px;
    border-radius: 22px;
  }

  .topbar-kicker {
    gap: 6px;
    margin-bottom: 7px;
  }

  .eyebrow.eyebrow-chip {
    padding: 5px 9px;
    font-size: 8.5px;
    letter-spacing: .14em;
  }

  .eyebrow.eyebrow-chip::before {
    width: 5px;
    height: 5px;
  }

  .topbar-live-chip {
    min-height: 25px;
    padding: 0 9px;
    font-size: 7.4px;
    letter-spacing: .075em;
  }

  .topbar-live-chip i {
    width: 5px;
    height: 5px;
  }

  .topbar-copy h2 {
    margin: 0;
    font-size: clamp(22px, 3.3vw, 32px);
    line-height: 1.02;
  }

  .topbar-subtitle {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    min-width: 86px;
    min-height: 30px;
    padding-inline: 9px;
    font-size: 8px;
    letter-spacing: .08em;
  }

  .topbar.topbar-premium-header #apiStatus span {
    width: 6px;
    height: 6px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 16px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button::after {
    border-radius: 15px;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button svg {
    width: 20px;
    height: 20px;
  }

  .topbar-logout {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 99, 90, .18);
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(65, 14, 14, .62), rgba(39, 10, 10, .42));
    color: rgba(255, 193, 188, .95);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.025),
      0 8px 16px rgba(0,0,0,.10);
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
    cursor: pointer;
  }

  .topbar-logout:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 120, 113, .28);
    color: rgba(255, 217, 214, .98);
  }

  .topbar-logout:active {
    transform: scale(.985);
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      gap: 9px;
      margin: 8px 8px 14px;
      padding: 11px 11px 12px;
      border-radius: 20px;
    }

    .topbar-kicker {
      gap: 5px;
      margin-bottom: 6px;
    }

    .eyebrow.eyebrow-chip {
      padding: 5px 8px;
      font-size: 8px;
      letter-spacing: .13em;
    }

    .topbar-live-chip {
      min-height: 24px;
      padding: 0 8px;
      font-size: 7px;
      letter-spacing: .07em;
    }

    .topbar-copy h2 {
      font-size: clamp(18px, 6.4vw, 28px);
    }

    .topbar.topbar-premium-header #apiStatus {
      min-height: 28px;
      padding-inline: 8px;
      font-size: 7.3px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 42px;
      height: 42px;
      min-width: 42px;
      min-height: 42px;
      border-radius: 15px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 14px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 19px;
      height: 19px;
    }

    .topbar-logout {
      min-height: 28px;
      padding: 0 9px;
      font-size: 7.3px;
      letter-spacing: .10em;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      margin: 9px 9px 14px;
      padding: 10px 10px 11px;
      border-radius: 19px;
    }

    .topbar-kicker {
      gap: 4px;
      margin-bottom: 6px;
    }

    .eyebrow.eyebrow-chip {
      padding: 4px 7px;
      font-size: 7.6px;
      letter-spacing: .12em;
    }

    .topbar-live-chip {
      min-height: 22px;
      padding: 0 7px;
      font-size: 6.6px;
      letter-spacing: .06em;
    }

    .topbar-copy h2 {
      font-size: 17px;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-height: 26px;
      padding-inline: 7px;
      font-size: 7px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button {
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
      border-radius: 14px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button::after {
      border-radius: 13px;
    }

    .topbar.topbar-premium-header #refreshButton.glass-button svg {
      width: 18px;
      height: 18px;
    }

    .topbar-logout {
      min-height: 26px;
      padding: 0 8px;
      font-size: 6.9px;
      letter-spacing: .09em;
    }
  }


  /* =========================================================
     PREVIEW R11 — TOP BAR LOGOUT POSITION FIX
     ========================================================= */

  /* Put action items into a stable 2-column grid so LOGOUT sits inside the header */
  .topbar-actions {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "status refresh"
      "logout refresh";
    align-items: start;
    justify-items: end;
    gap: 8px 8px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    grid-area: status;
    justify-self: end;
  }

  .topbar.topbar-premium-header #refreshButton.glass-button {
    grid-area: refresh;
    align-self: stretch;
    justify-self: end;
  }

  .topbar-logout {
    grid-area: logout;
    justify-self: end;
    width: 100%;
    min-width: 86px;
    text-align: center;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      align-items: start;
    }

    .topbar-actions {
      grid-template-columns: auto auto;
      grid-template-areas:
        "status refresh"
        "logout refresh";
      gap: 7px 7px;
    }

    .topbar-logout {
      min-width: 82px;
    }
  }

  @media (max-width: 420px) {
    .topbar-actions {
      gap: 6px 6px;
    }

    .topbar-logout {
      min-width: 78px;
    }
  }


  /* =========================================================
     PREVIEW R12 — REMOVE REFRESH + BALANCED LOGOUT
     ========================================================= */

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "status"
      "logout";
    align-items: start;
    justify-items: end;
    gap: 9px;
    align-content: start;
  }

  .topbar.topbar-premium-header #apiStatus {
    grid-area: status;
    justify-self: end;
  }

  /* Hide any legacy refresh button if still present from cached rendering */
  .topbar.topbar-premium-header #refreshButton {
    display: none !important;
  }

  .topbar-logout {
    grid-area: logout;
    justify-self: end;
    width: auto;
    min-width: 102px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 8.6px;
    font-weight: 800;
    letter-spacing: .12em;
    text-align: center;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      gap: 10px;
    }

    .topbar-actions {
      gap: 8px;
    }

    .topbar-logout {
      min-width: 104px;
      min-height: 36px;
      padding: 0 15px;
      font-size: 8.2px;
      letter-spacing: .11em;
    }
  }

  @media (max-width: 420px) {
    .topbar-actions {
      gap: 7px;
    }

    .topbar-logout {
      min-width: 98px;
      min-height: 34px;
      padding: 0 13px;
      font-size: 7.8px;
      letter-spacing: .10em;
    }
  }


  /* =========================================================
     PREVIEW R14 — REDUCE EMPTY SPACE UNDER TOP BAR
     Make header-to-hero spacing more proportional on mobile
     ========================================================= */

  /* tighten general spacing a bit */
  .topbar.topbar-premium-header {
    margin-bottom: 10px;
  }

  /* dashboard page overall rhythm */
  .page.page-dashboard {
    gap: 10px;
  }

  /* reduce blank gap before first hero section */
  .page.page-dashboard > .page-section:first-child {
    margin-top: -2px;
  }

  .page.page-dashboard > .page-section {
    margin-bottom: 0;
  }

  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      margin: 8px 9px 10px;
    }

    .page.page-dashboard {
      gap: 8px;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: -4px;
    }

    /* slightly tighten the hero wrapper so the page feels more compact */
    .page.page-dashboard .hero-premium {
      margin-top: 0;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      margin: 8px 8px 9px;
    }

    .page.page-dashboard {
      gap: 7px;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: -5px;
    }
  }


  /* =========================================================
     PREVIEW R15 — LOCK APPROVED MOBILE HEADER → HERO SPACING
     ========================================================= */

  @media (max-width: 760px) {
    /* Header stays in normal document flow, but remains sticky when scrolling. */
    .topbar.topbar-premium-header {
      position: sticky;
      top: 8px;
      margin: 8px 8px 0;
    }

    /*
      The original frontend reserved --topbar space because its header was fixed.
      R15's redesigned header is in flow, so remove that old reservation.
      This creates the compact, proportional gap shown in the approved reference.
    */
    .page-root {
      padding-top: 12px !important;
    }

    .page.page-dashboard {
      gap: 8px;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: 0 !important;
    }

    .page.page-dashboard .hero-premium {
      margin-top: 0 !important;
    }
  }

  @media (max-width: 420px) {
    .topbar.topbar-premium-header {
      top: 7px;
      margin: 7px 8px 0;
    }

    .page-root {
      padding-top: 11px !important;
    }
  }


  /* =========================================================
     PREVIEW R16 — DESKTOP TOPBAR FIX ONLY
     Mobile <=760px remains exactly as R15.
     ========================================================= */

  @media (min-width: 761px) {
    /*
      Restore the original desktop layout contract:
      fixed header lives to the RIGHT of the fixed sidebar.
    */
    .topbar.topbar-premium-header {
      position: fixed !important;
      z-index: 25;
      left: calc(var(--sidebar) + 42px) !important;
      right: 28px !important;
      top: 12px !important;

      width: auto !important;
      height: 72px !important;
      min-height: 72px !important;
      margin: 0 !important;
      padding: 10px 14px !important;

      display: grid !important;
      grid-template-columns: minmax(0, 1fr) auto !important;
      align-items: center !important;
      gap: 16px !important;

      overflow: hidden;
      border-radius: 22px !important;
      pointer-events: auto !important;
    }

    .topbar-main {
      min-width: 0;
      display: grid !important;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 14px;
    }

    .topbar-kicker {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 7px;
      margin: 0 !important;
      white-space: nowrap;
    }

    .eyebrow.eyebrow-chip {
      margin: 0 !important;
      padding: 5px 9px !important;
      font-size: 8px !important;
      letter-spacing: .13em !important;
    }

    .topbar-live-chip {
      min-height: 25px !important;
      padding: 0 9px !important;
      font-size: 7px !important;
      letter-spacing: .07em !important;
    }

    .topbar-copy {
      min-width: 0;
    }

    .topbar-copy h2 {
      margin: 0 !important;
      font-size: 25px !important;
      line-height: 1 !important;
      letter-spacing: -.035em !important;
      white-space: nowrap;
    }

    .topbar-subtitle {
      display: none !important;
    }

    .topbar-actions {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: flex-end !important;
      gap: 9px !important;
      min-width: max-content;
    }

    .topbar.topbar-premium-header #apiStatus {
      min-width: 86px !important;
      min-height: 30px !important;
      padding-inline: 10px !important;
      font-size: 7.5px !important;
      letter-spacing: .08em !important;
      margin: 0 !important;
    }

    .topbar-logout {
      width: auto !important;
      min-width: 96px !important;
      min-height: 32px !important;
      padding: 0 13px !important;
      margin: 0 !important;
      font-size: 7.8px !important;
      letter-spacing: .10em !important;
      justify-self: auto !important;
    }

    /*
      Header is fixed again on desktop, so use the original reserved space.
      This keeps Dashboard/Hero below the header and to the right of sidebar.
    */
    .page-root {
      padding-top: calc(var(--topbar) + 10px) !important;
      padding-right: 28px !important;
      padding-bottom: 42px !important;
      padding-left: calc(var(--sidebar) + 42px) !important;
    }

    .page.page-dashboard > .page-section:first-child {
      margin-top: 0 !important;
    }
  }

  /* Preserve R15 mobile behavior explicitly. */
  @media (max-width: 760px) {
    .topbar.topbar-premium-header {
      position: sticky !important;
      left: auto !important;
      right: auto !important;
      width: auto !important;
      height: auto !important;
      min-height: 0 !important;
    }
  }


  /* =========================================================
     PREVIEW R17 — USERS BOX + CREATE USER BOX REDESIGN
     Scope: Users cards + Create User dialog only
     ========================================================= */

  @keyframes userBoxSheen {
    0% { transform: translateX(-120%); opacity: 0; }
    20% { opacity: .18; }
    100% { transform: translateX(140%); opacity: 0; }
  }

  @keyframes softRealtimePulse {
    0%, 100% { opacity: .48; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
  }

  @keyframes statLineFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
  }

  @keyframes sheetFloatIn {
    0% { opacity: 0; transform: translateY(18px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* ---------- USERS PAGE: cards ---------- */
  #userGrid .user-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(130, 164, 255, .13);
    background:
      radial-gradient(140% 120% at 100% 0%, rgba(10,132,255,.10), transparent 42%),
      radial-gradient(110% 110% at 0% 100%, rgba(86, 60, 255, .09), transparent 45%),
      linear-gradient(180deg, rgba(18,20,28,.97), rgba(10,11,17,.97));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 16px 44px rgba(0,0,0,.33);
    transition:
      transform .22s var(--ease),
      border-color .22s var(--ease),
      box-shadow .22s var(--ease),
      background .22s var(--ease);
  }

  #userGrid .user-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
  }

  #userGrid .user-card:hover {
    transform: translateY(-3px);
    border-color: rgba(92, 174, 255, .24);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      0 22px 54px rgba(0,0,0,.42),
      0 0 0 1px rgba(10,132,255,.05);
  }

  #userGrid .user-card:hover::before {
    animation: userBoxSheen 1.2s ease-out 1;
  }

  #userGrid .user-head {
    align-items: center;
    gap: 12px;
  }

  #userGrid .user-title strong {
    font-size: 16px;
    letter-spacing: -.03em;
  }

  #userGrid .user-title span {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: .04em;
    color: rgba(255,255,255,.52);
  }

  #userGrid .badge {
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  }

  #userGrid .badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
    display: inline-block;
    vertical-align: middle;
    animation: softRealtimePulse 1.8s ease-in-out infinite;
  }

  #userGrid .user-stats {
    gap: 10px;
    margin-top: 16px;
  }

  #userGrid .user-stats .stat-box {
    position: relative;
    overflow: hidden;
    min-height: 74px;
    padding: 12px 12px 11px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.07);
    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022)),
      rgba(14,17,25,.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  #userGrid .user-stats .stat-box::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 9px;
    height: 2px;
    border-radius: 999px;
    background:
      linear-gradient(90deg,
        rgba(10,132,255,.10) 0%,
        rgba(10,132,255,.62) 26%,
        rgba(77,183,255,.95) 42%,
        rgba(10,132,255,.12) 58%,
        rgba(10,132,255,.06) 100%);
    background-size: 180% 100%;
    animation: statLineFlow 4.5s linear infinite;
    opacity: .68;
  }

  #userGrid .user-stats .stat-box span {
    font-size: 7.3px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.42);
  }

  #userGrid .user-stats .stat-box strong {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.2;
    color: rgba(255,255,255,.96);
  }

  #userGrid .user-actions {
    gap: 8px;
    margin-top: 16px;
  }

  #userGrid .user-actions .mini-button {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 11px;
    border-color: rgba(255,255,255,.09);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition:
      transform .18s var(--ease),
      border-color .18s var(--ease),
      background .18s var(--ease),
      box-shadow .18s var(--ease);
  }

  #userGrid .user-actions .mini-button:hover {
    transform: translateY(-1px);
    border-color: rgba(91,170,255,.18);
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
  }

  #userGrid .user-actions .mini-button.blue {
    border-color: rgba(10,132,255,.18);
    background: linear-gradient(180deg, rgba(10,132,255,.14), rgba(10,132,255,.07));
  }

  #userGrid .user-actions .mini-button.red {
    border-color: rgba(255,69,58,.16);
    background: linear-gradient(180deg, rgba(255,69,58,.10), rgba(255,69,58,.05));
  }

  /* ---------- CREATE USER DIALOG ---------- */
  #createDialog::backdrop {
    background: rgba(3,6,12,.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #createDialog .sheet {
    position: absolute;
    overflow: auto;
    border-radius: 30px;
    border: 1px solid rgba(116, 152, 255, .18);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(10,132,255,.11), transparent 44%),
      radial-gradient(120% 110% at 0% 100%, rgba(90, 62, 255, .10), transparent 48%),
      linear-gradient(180deg, rgba(16,18,26,.985), rgba(8,10,16,.985));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 42px 110px rgba(0,0,0,.55);
    animation: sheetFloatIn .26s ease-out;
  }

  #createDialog .sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), transparent 24%),
      radial-gradient(80% 60% at 18% 0%, rgba(255,255,255,.045), transparent 70%);
    opacity: .85;
  }

  #createDialog .sheet > * {
    position: relative;
    z-index: 1;
  }

  #createDialog .sheet-header {
    align-items: flex-start;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  #createDialog .sheet-header .eyebrow {
    margin-bottom: 8px;
    letter-spacing: .16em;
    color: rgba(150,187,255,.62);
  }

  #createDialog .sheet-header h3 {
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.04em;
  }

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

  #createDialog .field {
    gap: 8px;
  }

  #createDialog .field > span {
    font-size: 8px;
    letter-spacing: .13em;
    color: rgba(255,255,255,.48);
  }

  #createDialog .field input,
  #createDialog .field select {
    min-height: 52px;
    border-radius: 17px;
    border-color: rgba(255,255,255,.09);
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)),
      rgba(13,16,24,.74);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  #createDialog .field input:hover,
  #createDialog .field select:hover {
    background:
      linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)),
      rgba(13,16,24,.80);
  }

  #createDialog .field input:focus,
  #createDialog .field select:focus {
    border-color: rgba(10,132,255,.45);
    box-shadow:
      0 0 0 4px rgba(10,132,255,.08),
      0 10px 24px rgba(10,132,255,.06);
  }

  #createDialog .field small {
    margin-top: -1px;
    font-size: 8px;
    color: rgba(255,255,255,.36);
  }

  #createDialog .profile-preview {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(115, 151, 255, .14);
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022)),
      rgba(10,13,21,.84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  #createDialog .profile-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(110deg, transparent 0%, rgba(255,255,255,.06) 22%, transparent 44%);
    transform: translateX(-120%);
    animation: userBoxSheen 5.8s ease-in-out infinite;
    opacity: .4;
  }

  #createDialog .profile-preview .profile-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #createDialog .profile-preview .profile-head {
    align-items: center;
  }

  #createDialog .profile-preview .profile-title strong {
    font-size: 13px;
    letter-spacing: -.02em;
  }

  #createDialog .profile-preview .profile-title span {
    font-size: 8px;
    color: rgba(255,255,255,.46);
  }

  #createDialog .profile-preview .profile-specs {
    gap: 10px;
    margin-top: 14px;
  }

  #createDialog .profile-preview .stat-box {
    position: relative;
    overflow: hidden;
    min-height: 74px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
      rgba(18,20,28,.75);
  }

  #createDialog .profile-preview .stat-box::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 9px;
    height: 2px;
    border-radius: 999px;
    background:
      linear-gradient(90deg,
        rgba(48,209,88,.10) 0%,
        rgba(48,209,88,.55) 28%,
        rgba(116,255,173,.95) 46%,
        rgba(48,209,88,.10) 68%,
        rgba(48,209,88,.04) 100%);
    background-size: 180% 100%;
    animation: statLineFlow 5.1s linear infinite;
    opacity: .75;
  }

  #createDialog .platform-wrap {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.07);
  }

  #createDialog .platform-chip {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
    border-color: rgba(255,255,255,.08);
  }

  #createDialog .sheet-actions {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.06);
  }

  #createDialog .button {
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 16px;
  }

  @media (max-width: 760px) {
    #userGrid .user-card {
      border-radius: 22px;
      padding: 16px;
    }

    #userGrid .user-title strong {
      font-size: 15px;
    }

    #userGrid .user-stats .stat-box {
      min-height: 68px;
      padding: 11px;
    }

    #createDialog .sheet {
      border-radius: 28px;
    }

    #createDialog .sheet-header h3 {
      font-size: 28px;
    }

    #createDialog .field input,
    #createDialog .field select {
      min-height: 50px;
      border-radius: 16px;
    }
  }


  /* =========================================================
     PREVIEW R18 — CREATE USER PREMIUM REDESIGN
     Scope: Create User dialog only
     ========================================================= */

  @keyframes createGlowSweep {
    0% { transform: translateX(-110%) skewX(-16deg); opacity: 0; }
    15% { opacity: .18; }
    100% { transform: translateX(165%) skewX(-16deg); opacity: 0; }
  }

  @keyframes createFieldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(10,132,255,.0); }
    50% { box-shadow: 0 0 0 8px rgba(10,132,255,.06); }
  }

  @keyframes createDropdownIn {
    0% { opacity: 0; transform: translateY(8px) scale(.985); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes stepperPress {
    0% { transform: scale(1); }
    50% { transform: scale(.96); }
    100% { transform: scale(1); }
  }

  #createDialog.r18-create-dialog::backdrop {
    background:
      radial-gradient(120% 80% at 50% 100%, rgba(10,132,255,.08), transparent 60%),
      rgba(3, 6, 12, .76);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  #createDialog.r18-create-dialog .sheet {
    overflow: visible;
    border-radius: 32px;
    border: 1px solid rgba(126, 159, 255, .18);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(10,132,255,.12), transparent 44%),
      radial-gradient(130% 120% at 0% 100%, rgba(86, 62, 255, .09), transparent 50%),
      linear-gradient(180deg, rgba(16,18,26,.985), rgba(9,11,18,.985));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 44px 120px rgba(0,0,0,.58);
  }

  #createDialog.r18-create-dialog .sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), transparent 28%),
      radial-gradient(80% 55% at 14% 0%, rgba(255,255,255,.05), transparent 72%);
    opacity: .88;
  }

  #createDialog.r18-create-dialog .sheet::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -24%;
    width: 26%;
    border-radius: 40px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    transform: skewX(-18deg);
    animation: createGlowSweep 5.8s ease-in-out infinite;
    pointer-events: none;
    opacity: .35;
  }

  #createDialog.r18-create-dialog .sheet > * {
    position: relative;
    z-index: 1;
  }

  #createDialog.r18-create-dialog .sheet-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  #createDialog.r18-create-dialog .sheet-header h3 {
    font-size: 34px;
    line-height: .98;
    letter-spacing: -.045em;
  }

  #createDialog.r18-create-dialog .sheet-header .icon-button.ghost {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border-radius: 14px;
    border-color: rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  }

  #createDialog.r18-create-dialog .form-grid {
    gap: 14px;
  }

  #createDialog.r18-create-dialog .field {
    gap: 8px;
  }

  #createDialog.r18-create-dialog .field > span {
    color: rgba(255,255,255,.50);
  }

  #createDialog.r18-create-dialog .field input,
  #createDialog.r18-create-dialog .field select {
    min-height: 54px;
    border-radius: 18px;
    border-color: rgba(255,255,255,.09);
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)),
      rgba(13,16,24,.76);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 0 0 0 rgba(10,132,255,0);
    transition:
      border-color .18s var(--ease),
      background .18s var(--ease),
      box-shadow .18s var(--ease),
      transform .18s var(--ease);
  }

  #createDialog.r18-create-dialog .field input:hover,
  #createDialog.r18-create-dialog .field select:hover {
    border-color: rgba(255,255,255,.14);
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035)),
      rgba(13,16,24,.82);
  }

  #createDialog.r18-create-dialog .field input:focus,
  #createDialog.r18-create-dialog .field select:focus {
    border-color: rgba(10,132,255,.42);
    box-shadow:
      0 0 0 4px rgba(10,132,255,.08),
      0 14px 28px rgba(10,132,255,.06);
  }

  #createDialog.r18-create-dialog .field.stepper-field input {
    text-align: center;
    font-weight: 700;
    letter-spacing: -.02em;
    padding-inline: 54px;
  }

  #createDialog.r18-create-dialog .r18-stepper-wrap {
    position: relative;
  }

  #createDialog.r18-create-dialog .r18-stepper-button {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
      rgba(19,23,33,.84);
    color: rgba(255,255,255,.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition:
      transform .18s var(--ease),
      border-color .18s var(--ease),
      background .18s var(--ease),
      opacity .18s var(--ease);
    z-index: 2;
  }

  #createDialog.r18-create-dialog .r18-stepper-button:hover {
    border-color: rgba(10,132,255,.22);
    background:
      linear-gradient(180deg, rgba(10,132,255,.12), rgba(10,132,255,.06)),
      rgba(19,23,33,.94);
    transform: translateY(-50%) translateY(-1px);
  }

  #createDialog.r18-create-dialog .r18-stepper-button:active {
    animation: stepperPress .18s ease-out;
  }

  #createDialog.r18-create-dialog .r18-stepper-button:disabled {
    opacity: .4;
    pointer-events: none;
  }

  #createDialog.r18-create-dialog .r18-stepper-button.minus { left: 8px; }
  #createDialog.r18-create-dialog .r18-stepper-button.plus { right: 8px; }

  #createDialog.r18-create-dialog #createProfile {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  #createDialog.r18-create-dialog .r18-profile-select {
    position: relative;
  }

  #createDialog.r18-create-dialog .r18-profile-trigger {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.09);
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)),
      rgba(13,16,24,.78);
    color: rgba(255,255,255,.96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition:
      border-color .18s var(--ease),
      box-shadow .18s var(--ease),
      transform .18s var(--ease),
      background .18s var(--ease);
  }

  #createDialog.r18-create-dialog .r18-profile-trigger:hover {
    border-color: rgba(255,255,255,.14);
    background:
      linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035)),
      rgba(13,16,24,.84);
  }

  #createDialog.r18-create-dialog .r18-profile-select.open .r18-profile-trigger,
  #createDialog.r18-create-dialog .r18-profile-trigger:focus-visible {
    border-color: rgba(10,132,255,.42);
    box-shadow:
      0 0 0 4px rgba(10,132,255,.08),
      0 14px 28px rgba(10,132,255,.06);
  }

  #createDialog.r18-create-dialog .r18-profile-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  #createDialog.r18-create-dialog .r18-profile-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(180deg, #64d2ff, #0a84ff);
    box-shadow: 0 0 14px rgba(10,132,255,.32);
    flex: 0 0 auto;
  }

  #createDialog.r18-create-dialog .r18-profile-copy {
    min-width: 0;
    text-align: left;
  }

  #createDialog.r18-create-dialog .r18-profile-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #createDialog.r18-create-dialog .r18-profile-copy span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.42);
    text-transform: uppercase;
  }

  #createDialog.r18-create-dialog .r18-profile-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border-right: 2px solid rgba(169, 198, 255, .86);
    border-bottom: 2px solid rgba(169, 198, 255, .86);
    transform: rotate(45deg);
    transition: transform .18s var(--ease), opacity .18s var(--ease);
    opacity: .88;
    margin-right: 4px;
  }

  #createDialog.r18-create-dialog .r18-profile-select.open .r18-profile-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
  }

  #createDialog.r18-create-dialog .r18-profile-menu {
    position: absolute;
    z-index: 30;
    inset: calc(100% + 10px) 0 auto 0;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(124, 158, 255, .18);
    background:
      linear-gradient(180deg, rgba(34,38,49,.98), rgba(21,24,33,.98));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 24px 70px rgba(0,0,0,.48);
    display: none;
    max-height: min(46vh, 320px);
    overflow: auto;
    animation: createDropdownIn .18s ease-out;
  }

  #createDialog.r18-create-dialog .r18-profile-select.open .r18-profile-menu {
    display: block;
  }

  #createDialog.r18-create-dialog .r18-profile-option {
    width: 100%;
    min-height: 62px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255,255,255,.96);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    transition:
      background .18s var(--ease),
      border-color .18s var(--ease),
      transform .18s var(--ease),
      opacity .18s var(--ease);
  }

  #createDialog.r18-create-dialog .r18-profile-option:hover {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.07);
    transform: translateY(-1px);
  }

  #createDialog.r18-create-dialog .r18-profile-option.selected {
    background:
      linear-gradient(180deg, rgba(10,132,255,.12), rgba(10,132,255,.06)),
      rgba(255,255,255,.02);
    border-color: rgba(10,132,255,.26);
  }

  #createDialog.r18-create-dialog .r18-profile-option[disabled] {
    opacity: .44;
    filter: saturate(.65);
    pointer-events: none;
  }

  #createDialog.r18-create-dialog .r18-profile-option .left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  #createDialog.r18-create-dialog .r18-profile-option .name {
    min-width: 0;
    text-align: left;
  }

  #createDialog.r18-create-dialog .r18-profile-option .name strong {
    display: block;
    font-size: 14px;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #createDialog.r18-create-dialog .r18-profile-option .name span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.42);
    text-transform: uppercase;
  }

  #createDialog.r18-create-dialog .r18-profile-option .status {
    flex: 0 0 auto;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .10em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.88);
  }

  #createDialog.r18-create-dialog .r18-profile-option .status.ready {
    color: #52f3a0;
    background: rgba(48,209,88,.08);
    border-color: rgba(48,209,88,.14);
  }

  #createDialog.r18-create-dialog .r18-profile-option .status.locked {
    color: #ffb86b;
    background: rgba(255,159,10,.08);
    border-color: rgba(255,159,10,.14);
  }

  #createDialog.r18-create-dialog .profile-preview {
    margin-top: 18px;
    border-radius: 22px;
    border-color: rgba(120, 155, 255, .15);
    background:
      radial-gradient(100% 90% at 100% 0%, rgba(10,132,255,.09), transparent 52%),
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022)),
      rgba(9,13,20,.90);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 20px 40px rgba(0,0,0,.20);
  }

  #createDialog.r18-create-dialog .profile-preview .badge.green,
  #createDialog.r18-create-dialog .profile-preview .badge.orange {
    animation: createFieldPulse 2.2s ease-in-out infinite;
  }

  #createDialog.r18-create-dialog .sheet-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.07);
  }

  #createDialog.r18-create-dialog .button {
    min-height: 46px;
    border-radius: 15px;
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog .sheet {
      border-radius: 30px 30px 28px 28px;
    }

    #createDialog.r18-create-dialog .sheet-header {
      margin-bottom: 18px;
      padding-bottom: 14px;
    }

    #createDialog.r18-create-dialog .sheet-header h3 {
      font-size: 30px;
    }

    #createDialog.r18-create-dialog .r18-profile-trigger {
      min-height: 56px;
      border-radius: 17px;
      padding-inline: 14px;
    }

    #createDialog.r18-create-dialog .r18-profile-copy strong {
      font-size: 14px;
    }

    #createDialog.r18-create-dialog .r18-profile-option {
      min-height: 58px;
      padding: 11px 12px;
      border-radius: 15px;
    }

    #createDialog.r18-create-dialog .field.stepper-field input {
      padding-inline: 50px;
    }

    #createDialog.r18-create-dialog .r18-stepper-button {
      width: 36px;
      height: 36px;
      border-radius: 11px;
    }

    #createDialog.r18-create-dialog .sheet-actions {
      gap: 10px;
      flex-wrap: wrap;
    }

    #createDialog.r18-create-dialog .sheet-actions .button {
      flex: 1 1 160px;
    }
  }


  /* =========================================================
     PREVIEW R19 — CREATE USER REFINEMENT + PERFORMANCE TUNE
     ========================================================= */

  #createDialog.r18-create-dialog.r19-create-dialog::backdrop {
    background:
      radial-gradient(110% 80% at 50% 100%, rgba(10,132,255,.05), transparent 60%),
      rgba(3, 6, 12, .68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.04),
      0 24px 56px rgba(0,0,0,.42);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet::after {
    display: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet::before {
    opacity: .62;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-header h3 {
    font-size: 33px;
    letter-spacing: -.05em;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .field {
    gap: 7px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .field input,
  #createDialog.r18-create-dialog.r19-create-dialog .field select,
  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger {
    transition:
      border-color .16s var(--ease),
      box-shadow .16s var(--ease),
      background .16s var(--ease),
      transform .16s var(--ease);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .field.stepper-field input {
    padding-inline: 52px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-stepper-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.028)),
      rgba(19,23,33,.84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-stepper-button:hover {
    transform: translateY(-50%);
    border-color: rgba(10,132,255,.18);
    background:
      linear-gradient(180deg, rgba(10,132,255,.10), rgba(10,132,255,.05)),
      rgba(19,23,33,.92);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger {
    min-height: 60px;
    padding: 0 12px 0 16px;
    border-radius: 20px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-main {
    gap: 11px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 10px rgba(10,132,255,.24);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-copy strong {
    font-size: 14px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-copy span {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: .13em;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-chevron {
    width: 38px;
    height: 38px;
    margin-right: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
      rgba(18,22,32,.72);
    position: relative;
    opacity: 1;
    transform: none !important;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-chevron::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(180, 205, 255, .92);
    border-bottom: 2px solid rgba(180, 205, 255, .92);
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform .16s var(--ease);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-select.open .r18-profile-chevron::before {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-menu {
    margin-top: 2px;
    border-radius: 18px;
    padding: 8px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 18px 40px rgba(0,0,0,.34);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-option {
    min-height: 56px;
    padding: 10px 12px;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview {
    margin-top: 16px;
    margin-bottom: 6px;
    padding: 14px;
    border-radius: 20px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 14px 28px rgba(0,0,0,.14);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview::before {
    animation: none;
    opacity: .14;
    transform: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview .badge.green,
  #createDialog.r18-create-dialog.r19-create-dialog .profile-preview .badge.orange {
    animation: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog #createError {
    margin: 8px 2px 0;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
    padding-top: 16px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, rgba(9,11,18,0) 0%, rgba(9,11,18,.90) 24%, rgba(9,11,18,.98) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
    pointer-events: none;
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button {
    min-height: 52px;
    border-radius: 17px;
    letter-spacing: .06em;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button.secondary {
    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022)),
      rgba(17,20,28,.90);
    border-color: rgba(255,255,255,.08);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button.primary {
    box-shadow:
      0 12px 26px rgba(10,132,255,.18),
      inset 0 1px 0 rgba(255,255,255,.10);
  }

  #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button:hover {
    transform: translateY(-1px);
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r19-create-dialog .sheet {
      padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-header {
      margin-bottom: 14px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-header h3 {
      font-size: 30px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger {
      min-height: 58px;
      padding-inline: 12px;
      border-radius: 18px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-chevron {
      width: 36px;
      height: 36px;
      border-radius: 12px;
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions {
      gap: 10px;
      margin-top: 12px;
      padding-top: 14px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button {
      min-height: 50px;
      border-radius: 16px;
      font-size: 12px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #createDialog.r18-create-dialog.r19-create-dialog .sheet,
    #createDialog.r18-create-dialog.r19-create-dialog .field input,
    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-trigger,
    #createDialog.r18-create-dialog.r19-create-dialog .r18-profile-option,
    #createDialog.r18-create-dialog.r19-create-dialog .sheet-actions .button {
      transition: none !important;
      animation: none !important;
    }
  }


  /* =========================================================
     PREVIEW R22 — TRUE MOBILE BOTTOM-SCROLL FIX + PERF TUNE
     ========================================================= */

  @media (max-width: 760px) {
    /* Remove expensive modal blur on mobile; keep visual depth with solid overlay. */
    #createDialog.r18-create-dialog.r20-create-dialog::backdrop {
      background:
        radial-gradient(90% 60% at 50% 100%, rgba(10,132,255,.04), transparent 58%),
        rgba(3, 6, 12, .80) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    /* One real scroll container for the entire create form. */
    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior-y: contain !important;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-y;
      scroll-padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
      padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
      contain: layout paint style;
    }

    /* When the custom profile menu is open, freeze only the sheet;
       the dropdown itself remains the active scroll region. */
    #createDialog.r18-create-dialog.r20-create-dialog.profile-menu-open .sheet {
      overflow-y: hidden !important;
      touch-action: none;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      overflow-y: auto !important;
      overflow-x: hidden !important;
      overscroll-behavior: contain !important;
      touch-action: pan-y !important;
      -webkit-overflow-scrolling: touch;
      max-height: min(38dvh, 310px) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 14px 28px rgba(0,0,0,.28) !important;
    }

    /* Important: actions are part of normal document flow.
       This guarantees the profile card can be scrolled fully above them. */
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      position: static !important;
      inset: auto !important;
      z-index: auto !important;
      margin-top: 18px !important;
      padding: 14px 0 calc(6px + env(safe-area-inset-bottom, 0px)) !important;
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      border-top: 1px solid rgba(255,255,255,.065);
      contain: none !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions::before {
      display: none !important;
    }

    /* Remove artificial spacer from R21 now that footer is no longer overlaying content. */
    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
      margin-bottom: 0 !important;
      scroll-margin-bottom: 20px !important;
    }

    /* Lighter effects on controls for smoother low/mid-range mobile GPUs. */
    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-trigger,
    #createDialog.r18-create-dialog.r20-create-dialog .r18-stepper-button,
    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview,
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary {
      box-shadow:
        0 8px 18px rgba(10,132,255,.14),
        inset 0 1px 0 rgba(255,255,255,.08) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option:hover,
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:hover {
      transform: none !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #createDialog.r18-create-dialog.r20-create-dialog *,
    #createDialog.r18-create-dialog.r20-create-dialog *::before,
    #createDialog.r18-create-dialog.r20-create-dialog *::after {
      animation: none !important;
      transition-duration: .01ms !important;
    }
  }


  /* =========================================================
     PREVIEW R23 — DESKTOP PROFILE DROPDOWN SCROLL / STACK FIX
     Mobile behavior from R22 remains unchanged.
     ========================================================= */

  @media (min-width: 761px) {
    /* Raise the form grid above the profile preview stacking context.
       This prevents the preview card from painting over the dropdown. */
    #createDialog.r18-create-dialog.r20-create-dialog .form-grid {
      position: relative !important;
      z-index: 20 !important;
      overflow: visible !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .field:has(.r18-profile-select) {
      position: relative !important;
      z-index: 30 !important;
      overflow: visible !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select {
      position: relative !important;
      z-index: 40 !important;
      overflow: visible !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open {
      z-index: 80 !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      z-index: 120 !important;
      display: none;
      max-height: min(46vh, 360px) !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior: contain !important;
      touch-action: auto !important;
      pointer-events: auto !important;
      scrollbar-gutter: stable;
      contain: layout paint;
      isolation: isolate;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 18px 42px rgba(0,0,0,.36) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-menu {
      display: block !important;
    }

    /* The preview must stay under the open menu. */
    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
      position: relative !important;
      z-index: 1 !important;
    }

    /* Keep the create sheet stable while menu is open.
       Only the dropdown should consume wheel input. */
    #createDialog.r18-create-dialog.r20-create-dialog.profile-menu-open .sheet {
      overflow: hidden !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option {
      pointer-events: auto !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu::-webkit-scrollbar {
      width: 8px;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu::-webkit-scrollbar-thumb {
      border: 2px solid transparent;
      border-radius: 999px;
      background: rgba(135, 177, 255, .28);
      background-clip: padding-box;
    }
  }


  /* =========================================================
     PREVIEW R27 — CREATE USER ACTION BAR POLISH
     Performance-safe: no heavy blur, no continuous animation.
     ========================================================= */

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 15px 0 2px;
    border-top: 0;
    background: transparent;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions::before {
    content: "";
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background:
      linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.055) 12%,
        rgba(111,164,255,.13) 50%,
        rgba(255,255,255,.055) 88%,
        transparent 100%
      );
    pointer-events: none;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
    position: relative;
    min-width: 0;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1;
    white-space: nowrap;
    transform: translateZ(0);
    transition:
      transform .14s ease,
      border-color .14s ease,
      background-color .14s ease,
      box-shadow .14s ease,
      filter .14s ease;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.secondary {
    color: rgba(236,241,250,.92);
    border: 1px solid rgba(150,164,190,.13);
    background:
      linear-gradient(180deg, rgba(255,255,255,.037), rgba(255,255,255,.018)),
      rgba(17,21,30,.94);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 7px 14px rgba(0,0,0,.10);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary {
    color: #fff;
    border: 1px solid rgba(87,174,255,.46);
    background:
      linear-gradient(180deg, #2498ff 0%, #0a84ff 58%, #0878eb 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.20),
      0 9px 20px rgba(10,132,255,.16);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary::before {
    content: "";
    position: absolute;
    inset: 1px 10px auto;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
    pointer-events: none;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:hover {
    transform: translateY(-1px);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:active {
    transform: scale(.985);
    filter: brightness(.97);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:focus-visible {
    outline: none;
    box-shadow:
      0 0 0 3px rgba(10,132,255,.12),
      inset 0 1px 0 rgba(255,255,255,.10);
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr) !important;
      gap: 10px !important;
      margin-top: 16px !important;
      padding:
        14px 0
        calc(8px + env(safe-area-inset-bottom, 0px)) !important;
      background: transparent !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      min-height: 52px !important;
      border-radius: 16px !important;
      padding-inline: 12px !important;
      font-size: 10px !important;
      letter-spacing: .065em !important;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 6px 12px rgba(0,0,0,.09) !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button.primary {
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 8px 16px rgba(10,132,255,.14) !important;
    }

    /* Avoid hover work on touch devices. */
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button:hover {
      transform: none !important;
    }
  }

  @media (max-width: 390px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      gap: 8px !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      min-height: 50px !important;
      font-size: 9px !important;
      letter-spacing: .055em !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions .button {
      transition: none !important;
    }
  }


  /* =========================================================
     PREVIEW R28 — PROFILES + SERVICES CARD REDESIGN
     Scope: Profile Inbounds cards + Services cards only
     Performance-safe: lightweight transitions and subtle pulse only
     ========================================================= */

  .profile-card,
  .service-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    border: 1px solid rgba(118, 144, 185, .16);
    background:
      linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.014)),
      linear-gradient(135deg, rgba(12, 19, 31, .96), rgba(8, 12, 20, .98));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.028),
      0 12px 28px rgba(0, 0, 0, .18);
    transition:
      transform .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      background-color .18s ease;
  }

  .profile-card::before,
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
      radial-gradient(1200px 240px at 0% 0%, rgba(10,132,255,.10), transparent 38%),
      radial-gradient(800px 260px at 100% 100%, rgba(87, 52, 255, .08), transparent 32%);
    opacity: .9;
    z-index: -2;
  }

  .profile-card::after,
  .service-card::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
      rgba(90,150,255,.0) 0%,
      rgba(67,155,255,.55) 16%,
      rgba(88,227,168,.42) 50%,
      rgba(67,155,255,.55) 84%,
      rgba(90,150,255,.0) 100%);
    opacity: .72;
    transform: translateY(-0.5px);
    pointer-events: none;
  }

  .profile-card:hover,
  .service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(106, 164, 255, .28);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.04),
      0 16px 34px rgba(0, 0, 0, .22);
  }

  .profile-head,
  .service-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
  }

  .profile-title strong,
  .service-head strong {
    display: block;
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: rgba(247, 250, 255, .98);
  }

  .profile-title span,
  .service-meta {
    display: block;
    margin-top: 4px;
    color: rgba(165, 177, 199, .72);
    font-size: 8px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .profile-specs,
  .service-card .user-stats {
    margin-top: 12px;
    gap: 8px;
  }

  .profile-card .stat-box,
  .service-card .stat-box {
    position: relative;
    min-height: 58px;
    padding: 10px 11px;
    border-radius: 14px;
    border: 1px solid rgba(120, 138, 165, .12);
    background:
      linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012)),
      rgba(255,255,255,.018);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
    transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
  }

  .profile-card:hover .stat-box,
  .service-card:hover .stat-box {
    border-color: rgba(116, 162, 255, .18);
  }

  .profile-card .stat-box span,
  .service-card .stat-box span {
    color: rgba(154, 168, 191, .7);
    font-size: 7px;
    letter-spacing: .09em;
  }

  .profile-card .stat-box strong,
  .service-card .stat-box strong {
    margin-top: 5px;
    font-size: 9px;
    color: rgba(248, 251, 255, .98);
    letter-spacing: .02em;
  }

  .platform-wrap {
    position: relative;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.05);
  }

  .platform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .platform-head span:first-child,
  .platform-head span:last-child {
    color: rgba(155, 170, 194, .68);
    font-size: 7px;
    letter-spacing: .1em;
  }

  .platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .platform-chip {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 10px;
    border: 1px solid rgba(125, 143, 172, .14);
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.022)),
      rgba(17, 22, 32, .82);
    color: rgba(236, 242, 250, .92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .05em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  }

  .profile-card .badge,
  .service-card .badge {
    position: relative;
    min-height: 22px;
    padding: 0 10px 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .09em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  }

  .profile-card .badge::before,
  .service-card .badge::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: currentColor;
    opacity: .92;
  }

  .profile-card .badge.green,
  .service-card .badge.green {
    animation: r28StatusPulse 2.2s ease-in-out infinite;
  }

  .service-actions {
    gap: 7px;
    margin-top: 14px;
  }

  .service-card .mini-button {
    min-height: 31px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(120, 138, 165, .14);
    background:
      linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
      rgba(20, 25, 35, .92);
    font-size: 7px;
    letter-spacing: .06em;
    transition:
      transform .16s ease,
      border-color .16s ease,
      background-color .16s ease,
      box-shadow .16s ease;
  }

  .service-card .mini-button:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 167, 255, .24);
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
      rgba(23, 30, 42, .96);
    box-shadow: 0 8px 14px rgba(0, 0, 0, .10);
  }

  .service-card .mini-button.blue {
    background:
      linear-gradient(180deg, rgba(19, 121, 255, .18), rgba(19, 121, 255, .10)),
      rgba(15, 28, 46, .96);
    border-color: rgba(66, 146, 255, .24);
  }

  .service-card .mini-button.red {
    background:
      linear-gradient(180deg, rgba(255, 84, 84, .10), rgba(255, 84, 84, .045)),
      rgba(34, 20, 24, .96);
    border-color: rgba(255, 92, 92, .16);
  }

  .profile-block-reason {
    margin: 10px 0 2px;
    padding: 10px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255, 166, 0, .10);
    background: rgba(255, 166, 0, .04);
    color: rgba(255, 209, 123, .85);
    font-size: 7px;
    line-height: 1.45;
  }

  @keyframes r28StatusPulse {
    0%, 100% {
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 0 0 0 rgba(65, 220, 123, .10);
    }
    50% {
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05),
        0 0 0 4px rgba(65, 220, 123, 0);
    }
  }

  @media (max-width: 1024px) {
    .profile-card,
    .service-card {
      border-radius: 22px;
    }

    .profile-title strong,
    .service-head strong {
      font-size: 12px;
    }
  }

  @media (max-width: 760px) {
    .profile-card,
    .service-card {
      border-radius: 20px;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.024),
        0 10px 18px rgba(0, 0, 0, .14);
    }

    .profile-card:hover,
    .service-card:hover {
      transform: none;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.024),
        0 10px 18px rgba(0, 0, 0, .14);
    }

    .profile-head,
    .service-head {
      margin-bottom: 10px;
    }

    .profile-card .badge,
    .service-card .badge {
      min-height: 21px;
      padding-left: 17px;
    }

    .platform-chip {
      min-height: 25px;
      padding: 0 8px;
    }

    .service-card .mini-button:hover {
      transform: none;
      box-shadow: none;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .profile-card,
    .service-card,
    .profile-card .stat-box,
    .service-card .stat-box,
    .service-card .mini-button {
      transition: none !important;
    }

    .profile-card .badge.green,
    .service-card .badge.green {
      animation: none !important;
    }
  }



/* =========================================================
   PREVIEW R29 — GLOBAL UPPERCASE + PREMIUM POLISH
   Scope: entire site typography + refined profile/service visuals
   Performance-safe: CSS only, lightweight effects
   ========================================================= */

body,
button,
input,
select,
textarea,
option,
label,
small,
strong,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
.card,
.badge,
.nav-item,
.pill,
.tab-pill,
.mini-button,
.primary-button,
.secondary-button,
.ghost,
.section-head,
.stat-box,
.field,
.sheet,
.table-shell,
.audit-card,
.backup-card {
  text-transform: uppercase;
}

input::placeholder,
textarea::placeholder {
  text-transform: uppercase;
  letter-spacing: .06em;
}

body {
  letter-spacing: .015em;
}

h1, h2, h3, .hero-copy h2, .sheet-header h3 {
  letter-spacing: -.015em;
  text-transform: uppercase;
}

h1, .hero-copy h2 {
  line-height: .96;
}

p, .text-muted, .section-head p, .service-meta, .user-title span, .profile-title span {
  letter-spacing: .055em;
}

.nav-item,
.mini-button,
.primary-button,
.secondary-button,
.ghost,
.badge,
.tab-pill,
.top-status,
.platform-chip {
  font-weight: 800;
  letter-spacing: .08em;
}

.nav-brand strong,
.sidebar-brand strong,
.brand-copy strong,
.user-title strong,
.profile-title strong,
.service-head strong,
.sheet-header h3,
.section-head h3 {
  text-transform: uppercase;
}

input,
select,
textarea,
.field input,
.field select,
.field textarea {
  letter-spacing: .04em;
}

.profile-card,
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(120, 150, 198, .18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.012)),
    linear-gradient(145deg, rgba(12,17,28,.98), rgba(8,10,18,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 18px 34px rgba(0,0,0,.20),
    0 0 0 1px rgba(24, 48, 92, .18);
  transition:
    transform .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .22s var(--ease),
    background .22s var(--ease);
}

.profile-card::before,
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(900px 220px at -5% -10%, rgba(33, 124, 255, .16), transparent 36%),
    radial-gradient(900px 260px at 110% 115%, rgba(95, 66, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 28%);
  opacity: .95;
}

.profile-card::after,
.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(64,143,255,.55) 16%,
    rgba(77,224,161,.35) 50%,
    rgba(64,143,255,.55) 84%,
    rgba(255,255,255,0) 100%);
  opacity: .85;
}

.profile-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 163, 255, .32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 26px 46px rgba(0,0,0,.24),
    0 0 0 1px rgba(39, 88, 170, .16);
}

.profile-head,
.service-head {
  position: relative;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-head > div:first-child,
.service-head > div:first-child {
  min-width: 0;
}

.profile-title strong,
.service-head strong {
  font-size: 14px;
  line-height: 1.08;
  color: rgba(249,252,255,.985);
  text-shadow: 0 1px 0 rgba(255,255,255,.02);
}

.profile-title span,
.service-meta {
  margin-top: 5px;
  color: rgba(170, 184, 207, .80);
  font-size: 8px;
  letter-spacing: .14em;
}

.profile-specs,
.service-card .user-stats {
  gap: 9px;
  margin-top: 13px;
}

.profile-card .stat-box,
.service-card .stat-box {
  position: relative;
  min-height: 62px;
  padding: 11px 12px;
  border-radius: 15px;
  border: 1px solid rgba(126,145,177,.13);
  background:
    linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.014)),
    rgba(255,255,255,.020);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.022);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.profile-card:hover .stat-box,
.service-card:hover .stat-box {
  border-color: rgba(110, 165, 255, .20);
}

.profile-card .stat-box span,
.service-card .stat-box span {
  color: rgba(160, 176, 201, .74);
  font-size: 7px;
  letter-spacing: .12em;
}

.profile-card .stat-box strong,
.service-card .stat-box strong {
  margin-top: 6px;
  color: rgba(247,250,255,.98);
  font-size: 9px;
  letter-spacing: .045em;
}

.platform-wrap {
  position: relative;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.platform-wrap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(68,148,255,.75), rgba(68,148,255,0));
}

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

.platform-head span {
  color: rgba(160, 176, 201, .72);
  font-size: 7px;
  letter-spacing: .13em;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.platform-chip {
  min-height: 27px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(125,143,172,.15);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.022)),
    rgba(16, 21, 31, .88);
  color: rgba(238,243,250,.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.profile-card .badge,
.service-card .badge {
  position: relative;
  min-height: 22px;
  padding: 0 11px 0 19px;
  border-radius: 999px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.profile-card .badge::before,
.service-card .badge::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.profile-card .badge.green,
.service-card .badge.green {
  animation: r29StatusPulse 2.4s ease-in-out infinite;
}

.service-actions {
  gap: 8px;
  margin-top: 14px;
}

.service-card .mini-button {
  min-height: 32px;
  padding: 0 11px;
  border-radius: 11px;
  border: 1px solid rgba(124,142,170,.15);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018)),
    rgba(18, 22, 32, .92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.service-card .mini-button:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 160, 255, .26);
  box-shadow: 0 10px 16px rgba(0,0,0,.10);
}

.service-card .mini-button.blue {
  background:
    linear-gradient(180deg, rgba(16,126,255,.18), rgba(16,126,255,.10)),
    rgba(13, 25, 42, .96);
  border-color: rgba(68, 145, 255, .25);
}

.service-card .mini-button.red {
  background:
    linear-gradient(180deg, rgba(255,84,84,.11), rgba(255,84,84,.05)),
    rgba(34, 20, 24, .94);
  border-color: rgba(255, 96, 96, .16);
}

.page-section .section-head h3,
.sheet-header h3,
.hero-copy .eyebrow,
.page-top .title,
.page-head h1 {
  text-transform: uppercase;
}

.page-section .section-head h3 {
  letter-spacing: .01em;
}

.page-section .section-head p {
  opacity: .9;
}

@keyframes r29StatusPulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.05),
      0 0 0 0 rgba(65, 220, 123, .10);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.06),
      0 0 0 5px rgba(65, 220, 123, 0);
  }
}

@media (max-width: 1100px) {
  .profile-card,
  .service-card {
    border-radius: 24px;
  }

  .profile-title strong,
  .service-head strong {
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  body {
    letter-spacing: .012em;
  }

  .profile-card,
  .service-card {
    border-radius: 22px;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.03),
      0 12px 20px rgba(0,0,0,.14),
      0 0 0 1px rgba(24, 48, 92, .14);
  }

  .profile-card:hover,
  .service-card:hover,
  .service-card .mini-button:hover {
    transform: none;
    box-shadow: inherit;
  }

  .profile-title strong,
  .service-head strong {
    font-size: 13px;
  }

  .profile-card .stat-box,
  .service-card .stat-box {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .service-card,
  .profile-card .stat-box,
  .service-card .stat-box,
  .service-card .mini-button {
    transition: none !important;
  }

  .profile-card .badge.green,
  .service-card .badge.green {
    animation: none !important;
  }
}


  /* =========================================================
     PREVIEW R30 — PROFILE PICKER REOPEN STABILITY FIX
     ========================================================= */

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      overflow-anchor: none;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select {
      overflow-anchor: none;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      overflow-anchor: none;
    }
  }


  /* =========================================================
     PREVIEW R32 — 17 REFERENCE CONFIGS / QR + COPY ALL
     ========================================================= */
  #configDialog .reference-qr-shell {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(101,154,255,.15);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  }
  #configDialog .reference-qr-head {
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    margin-bottom:12px; color:rgba(171,188,214,.72); font-size:8px; letter-spacing:.12em;
  }
  #configDialog .reference-qr-wrap {
    width:min(280px,78vw); aspect-ratio:1; margin:0 auto; padding:12px; border-radius:18px;
    background:#fff; box-shadow:0 14px 34px rgba(0,0,0,.24);
  }
  #configDialog .reference-qr-wrap img { display:block; width:100%; height:100%; object-fit:contain; }
  #configDialog .reference-config-block {
    overflow:hidden; border-radius:20px; border:1px solid rgba(101,154,255,.14);
    background:rgba(10,14,22,.90); box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  }
  #configDialog .reference-config-block .config-label {
    padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.055);
  }
  #configDialog .reference-config-block .config-value {
    margin:0; padding:15px; min-height:120px; max-height:34vh; overflow:auto;
    white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word;
    text-transform:none !important; font-size:9px; line-height:1.55; letter-spacing:.01em;
    user-select:text; color:rgba(233,242,255,.95); background:transparent;
  }
  #configDialog .reference-warning {
    margin-top:10px; padding:10px 12px; border-radius:12px;
    border:1px solid rgba(255,159,10,.10); background:rgba(255,159,10,.035);
    color:rgba(255,206,120,.72); font-size:7px; line-height:1.5; letter-spacing:.08em;
  }
  @media (max-width:760px) {
    #configDialog .reference-qr-wrap { width:min(260px,72vw); padding:10px; }
    #configDialog .reference-config-block .config-value { max-height:31dvh; font-size:8px; }
  }


  /* =========================================================
     PREVIEW R33 — CONFIG BOX REFRESH (UDP CUSTOM / UDP ZIVPN)
     lightweight animation, per-field copy actions
     ========================================================= */
  #configDialog .config-structured-shell {
    display:grid;
    gap:12px;
  }
  #configDialog .config-structured-hero {
    position:relative;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:15px 16px;
    border-radius:20px;
    border:1px solid rgba(72, 135, 255, .14);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(34,144,255,.10) 0%, rgba(34,144,255,0) 46%),
      linear-gradient(180deg, rgba(17,23,35,.94), rgba(10,14,22,.94));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    overflow:hidden;
    animation: configCardReveal .28s cubic-bezier(.2,.8,.2,1) both;
  }
  #configDialog .config-structured-hero::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, transparent, rgba(99,158,255,.05), transparent);
    pointer-events:none;
  }
  #configDialog .config-structured-meta {
    display:grid;
    gap:6px;
  }
  #configDialog .config-structured-kicker {
    color:rgba(161,182,214,.76);
    font-size:8px;
    letter-spacing:.16em;
  }
  #configDialog .config-structured-title {
    color:rgba(240,246,255,.96);
    font-size:13px;
    font-weight:700;
    letter-spacing:.05em;
  }
  #configDialog .config-structured-sub {
    color:rgba(175,189,214,.70);
    font-size:8px;
    line-height:1.6;
    letter-spacing:.08em;
  }
  #configDialog .config-structured-count {
    flex:0 0 auto;
    align-self:center;
    padding:10px 12px;
    border-radius:999px;
    border:1px solid rgba(82,142,255,.15);
    background:rgba(255,255,255,.03);
    color:rgba(131,203,255,.96);
    font-size:8px;
    font-weight:700;
    letter-spacing:.16em;
    text-align:center;
    white-space:nowrap;
  }
  #configDialog .config-fields-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  #configDialog .config-field-card {
    position:relative;
    overflow:hidden;
    display:grid;
    gap:10px;
    padding:15px;
    border-radius:20px;
    border:1px solid rgba(72, 135, 255, .14);
    background:linear-gradient(180deg, rgba(15,21,33,.98), rgba(9,13,22,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.12);
    animation: configCardReveal .34s cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--field-index, 0) * 45ms);
    will-change: transform, opacity;
  }
  #configDialog .config-field-card::before {
    content:"";
    position:absolute;
    inset:0 auto auto 0;
    width:100%;
    height:1px;
    background:linear-gradient(90deg, rgba(70,145,255,.45), rgba(70,145,255,0));
    opacity:.8;
    pointer-events:none;
  }
  #configDialog .config-field-card.span-2 {
    grid-column:1 / -1;
  }
  #configDialog .config-field-top {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }
  #configDialog .config-field-index {
    color:rgba(139,160,193,.66);
    font-size:8px;
    letter-spacing:.18em;
  }
  #configDialog .config-copy-chip {
    appearance:none;
    border:1px solid rgba(255,255,255,.06);
    background:rgba(255,255,255,.03);
    color:rgba(230,238,249,.92);
    border-radius:12px;
    padding:9px 11px;
    min-width:78px;
    font-size:8px;
    font-weight:700;
    letter-spacing:.14em;
    cursor:pointer;
    transition:transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
  }
  #configDialog .config-copy-chip:hover,
  #configDialog .config-copy-chip:focus-visible {
    transform:translateY(-1px);
    border-color:rgba(79,146,255,.26);
    background:rgba(44,122,255,.09);
    color:rgba(255,255,255,.98);
    outline:none;
  }
  #configDialog .config-field-label {
    color:rgba(159,180,212,.82);
    font-size:8px;
    letter-spacing:.16em;
  }
  #configDialog .config-field-value {
    text-transform:none !important;
    word-break:break-word;
    overflow-wrap:anywhere;
    color:rgba(242,247,255,.97);
    font-size:13px;
    line-height:1.55;
    letter-spacing:.02em;
    padding:14px 15px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.045);
    background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
    user-select:text;
  }
  #configDialog .config-copy-all-inline {
    display:flex;
    justify-content:flex-end;
  }
  #configDialog .config-copy-all-inline .mini-button {
    min-width:102px;
  }
  #configDialog .sr-config-preview {
    position:absolute !important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:pre;
    border:0;
  }
  @keyframes configCardReveal {
    from { opacity:0; transform:translateY(10px) scale(.985); }
    to { opacity:1; transform:translateY(0) scale(1); }
  }
  @media (max-width:760px) {
    #configDialog .config-structured-hero {
      padding:14px;
    }
    #configDialog .config-structured-count {
      justify-self:flex-start;
      align-self:flex-start;
    }
    #configDialog .config-fields-grid {
      grid-template-columns:1fr;
      gap:10px;
    }
    #configDialog .config-field-card,
    #configDialog .config-field-card.span-2 {
      grid-column:auto;
      padding:14px;
    }
    #configDialog .config-field-value {
      font-size:11px;
      line-height:1.6;
    }
  }



  /* =========================================================
     PREVIEW R34 — CONFIG BOX REFRESH FOR ALL PROFILES
     unified styling for QR / URI / ALL modes
     ========================================================= */
  #configDialog .reference-qr-shell,
  #configDialog .reference-config-block {
    display:none !important;
  }
  #configDialog .config-top-grid {
    display:grid;
    grid-template-columns:minmax(0, .94fr) minmax(0, 1.06fr);
    gap:12px;
  }
  #configDialog .config-info-card {
    position:relative;
    overflow:hidden;
    display:grid;
    gap:10px;
    padding:15px;
    border-radius:20px;
    border:1px solid rgba(72,135,255,.14);
    background:
      radial-gradient(140% 140% at 100% 0%, rgba(36,140,255,.08) 0%, rgba(36,140,255,0) 42%),
      linear-gradient(180deg, rgba(14,20,31,.98), rgba(8,12,20,.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 24px rgba(0,0,0,.12);
    animation: configCardReveal .32s cubic-bezier(.2,.8,.2,1) both;
  }
  #configDialog .config-info-card::before {
    content:"";
    position:absolute;
    inset:0 auto auto 0;
    width:100%;
    height:1px;
    background:linear-gradient(90deg, rgba(70,145,255,.52), rgba(70,145,255,0));
    pointer-events:none;
  }
  #configDialog .config-info-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  #configDialog .config-info-title {
    color:rgba(240,246,255,.96);
    font-size:11px;
    font-weight:700;
    letter-spacing:.12em;
  }
  #configDialog .config-info-note {
    color:rgba(169,185,211,.70);
    font-size:8px;
    line-height:1.55;
    letter-spacing:.08em;
  }
  #configDialog .config-info-chip {
    flex:0 0 auto;
    padding:8px 10px;
    border-radius:999px;
    border:1px solid rgba(71,139,255,.18);
    background:rgba(255,255,255,.04);
    color:rgba(131,203,255,.95);
    font-size:7px;
    font-weight:700;
    letter-spacing:.15em;
    white-space:nowrap;
  }
  #configDialog .config-qr-frame {
    width:min(230px, 100%);
    aspect-ratio:1;
    margin-inline:auto;
    padding:12px;
    border-radius:18px;
    background:#fff;
    box-shadow:0 14px 34px rgba(0,0,0,.22);
  }
  #configDialog .config-qr-frame img {
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
  }
  #configDialog .config-mini-stat-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  #configDialog .config-mini-stat {
    padding:12px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.05);
    background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  }
  #configDialog .config-mini-label {
    color:rgba(149,169,199,.74);
    font-size:7px;
    letter-spacing:.16em;
  }
  #configDialog .config-mini-value {
    margin-top:7px;
    color:rgba(241,247,255,.96);
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
  }
  #configDialog .config-field-card.span-2 .config-field-value {
    min-height:92px;
  }
  #configDialog .config-field-value.code-mode {
    font-size:10px;
    line-height:1.7;
    letter-spacing:.01em;
  }
  @media (max-width:760px) {
    #configDialog .config-top-grid,
    #configDialog .config-mini-stat-grid {
      grid-template-columns:1fr;
    }
    #configDialog .config-qr-frame {
      width:min(220px, 100%);
      padding:10px;
    }
    #configDialog .config-info-card {
      padding:14px;
    }
  }




/* ===== PREVIEW R60 — LOGIN REDESIGN ===== */
.login-view {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.login-view::before,
.login-view::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  filter: blur(10px);
  opacity: .75;
}

.login-view::before {
  top: 7%;
  left: max(-80px, -8vw);
  width: min(420px, 52vw);
  height: min(420px, 52vw);
  background: radial-gradient(circle, rgba(34,122,255,.18) 0%, rgba(34,122,255,0) 72%);
}

.login-view::after {
  right: max(-110px, -10vw);
  bottom: 4%;
  width: min(460px, 56vw);
  height: min(460px, 56vw);
  background: radial-gradient(circle, rgba(110,73,255,.16) 0%, rgba(110,73,255,0) 70%);
}

.login-shell-premium {
  width: min(1120px, 100%);
  padding: clamp(16px, 2vw, 22px) !important;
  border-radius: 34px !important;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: clamp(16px, 2.1vw, 22px);
  align-items: stretch;
}

.login-hero-panel,
.login-panel {
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    radial-gradient(110% 120% at 0% 0%, rgba(34,122,255,.10), transparent 52%),
    radial-gradient(100% 90% at 100% 100%, rgba(98,68,255,.08), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 20px 60px rgba(0,0,0,.22);
  overflow: hidden;
}

.login-hero-panel {
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
}

.login-hero-panel::before,
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.06) 28%, transparent 52%);
  transform: translateX(-128%);
  animation: loginSweepLight 1.25s .16s ease-out both;
}

.login-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-hero-subbrand,
.login-kicker,
.login-panel-kicker,
.login-panel-copy,
.login-stat-label,
.login-stat-meta,
.login-mini-note,
.login-chip,
.login-field > span {
  letter-spacing: .12em;
}

.login-hero-subbrand {
  margin: 0;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 700;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(115,183,255,.18);
  background: rgba(255,255,255,.035);
  color: #8fd4ff;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 18px;
}

.login-hero-main h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5.3vw, 72px);
  line-height: .94;
  letter-spacing: -.06em;
}

.login-copy {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.74;
  color: rgba(226,234,255,.76);
}

.login-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: rgba(240,246,255,.88);
  font-size: 11px;
  font-weight: 800;
}

.login-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6fe7ff, #1c8dff);
  box-shadow: 0 0 0 4px rgba(28,141,255,.14);
}

.login-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.login-stat-card {
  min-height: 118px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.login-stat-wide { grid-column: 1 / -1; }

.login-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: rgba(170,184,216,.78);
  margin-bottom: 12px;
}

.login-stat-value {
  display: block;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.login-stat-meta {
  display: block;
  font-size: 11px;
  color: rgba(196,205,228,.64);
  font-weight: 700;
}

.login-panel {
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-panel-head {
  margin-bottom: 22px;
}

.login-panel-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #98caff;
  font-size: 11px;
  font-weight: 800;
}

.login-panel-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.05em;
}

.login-panel-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(210,220,242,.68);
  font-weight: 700;
}

.login-form {
  gap: 16px;
}

.login-field {
  gap: 10px;
}

.login-field > span {
  font-size: 11px;
  font-weight: 800;
  color: rgba(212,221,241,.76);
}

.login-shell .login-field input {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(6,10,18,.74), rgba(10,16,29,.6));
  color: #f4f7ff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.login-shell .login-field input::placeholder {
  color: rgba(150,166,196,.42);
  letter-spacing: .06em;
}

.login-password-wrap {
  position: relative;
}

.login-visibility-toggle {
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border-color: rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.03) !important;
}

.login-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 2px;
}

.login-mini-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.03);
  color: rgba(223,232,247,.76);
  font-size: 10px;
  font-weight: 800;
}

.login-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #53e08d;
  box-shadow: 0 0 0 4px rgba(83,224,141,.12);
}

.login-dot-blue {
  background: #59bcff;
  box-shadow: 0 0 0 4px rgba(89,188,255,.12);
}

.login-submit {
  min-height: 60px !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.login-submit span,
.login-submit small {
  position: relative;
  z-index: 1;
}

.login-submit span {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
}

.login-submit small {
  font-size: 10px;
  letter-spacing: .16em;
  opacity: .74;
}

#loginError {
  min-height: 18px;
  margin-top: 2px;
  font-size: 12px;
}

@keyframes loginSweepLight {
  from { transform: translateX(-128%); }
  to { transform: translateX(128%); }
}

@media (max-width: 980px) {
  .login-shell-premium {
    width: min(780px, 100%);
  }

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

  .login-hero-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-view {
    padding: 14px;
  }

  .login-shell-premium {
    padding: 12px !important;
    border-radius: 28px !important;
  }

  .login-hero-panel,
  .login-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .login-hero-main h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .login-copy {
    font-size: 13px;
    line-height: 1.65;
  }

  .login-chip-row {
    gap: 8px;
  }

  .login-chip,
  .login-mini-note {
    font-size: 9.5px;
  }

  .login-stat-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-stat-card {
    min-height: auto;
  }

  .login-field > span {
    font-size: 10px;
  }

  .login-shell .login-field input {
    min-height: 54px;
    font-size: 14px;
    padding: 0 16px;
  }

  .login-submit {
    min-height: 58px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero-panel::before,
  .login-panel::before,
  .login-view.logout-return,
  .login-view.logout-return .login-shell,
  #loginButton::after,
  .topbar-logout::before {
    animation: none !important;
    transition: none !important;
  }
}



/* ===== PREVIEW R61 — REMOVE LOGIN STATS / DETAIL POLISH ===== */
.login-hero-panel {
  min-height: 520px;
}

.login-hero-main {
  margin-top: auto;
  margin-bottom: auto;
}

.login-hero-divider {
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(92,138,255,0), rgba(92,138,255,.36), rgba(255,255,255,.1), rgba(92,138,255,0));
  opacity: .9;
}

.login-copy {
  max-width: 58ch;
}

@media (max-width: 980px) {
  .login-hero-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .login-hero-panel {
    gap: 14px;
  }

  .login-hero-divider {
    margin-top: 8px;
  }
}



/* ===== PREVIEW R62 — APPLE / IPHONE LUXURY LOGIN ===== */
#loginView.login-view { position:relative; overflow:hidden; background: radial-gradient(78rem 46rem at 8% -6%, rgba(36,124,255,.22), transparent 55%), radial-gradient(62rem 34rem at 100% 0%, rgba(0,173,255,.14), transparent 50%), radial-gradient(42rem 32rem at 50% 100%, rgba(111,75,255,.10), transparent 55%), linear-gradient(180deg, #020611 0%, #040915 38%, #030713 100%); }
#loginView.login-view::before,#loginView.login-view::after { content:""; position:absolute; pointer-events:none; filter:blur(24px); opacity:.95; z-index:0; }
#loginView.login-view::before { width:420px; height:420px; left:-90px; top:8%; border-radius:50%; background:radial-gradient(circle, rgba(72,154,255,.26) 0%, rgba(72,154,255,.08) 35%, transparent 72%); animation:loginOrbDriftA 18s ease-in-out infinite; }
#loginView.login-view::after { width:360px; height:360px; right:-110px; bottom:5%; border-radius:50%; background:radial-gradient(circle, rgba(72,104,255,.16) 0%, rgba(72,104,255,.08) 36%, transparent 74%); animation:loginOrbDriftB 22s ease-in-out infinite; }
.login-shell-premium { position:relative; z-index:1; max-width:1280px; padding:clamp(24px, 3vw, 40px); }
.login-layout { align-items:stretch; gap:clamp(22px, 2.6vw, 32px); grid-template-columns:minmax(0, 1.12fr) minmax(420px, .88fr); }
.login-hero-panel,.login-panel { position:relative; overflow:hidden; border-radius:38px; border:1px solid rgba(255,255,255,.12); background:linear-gradient(180deg, rgba(21,29,49,.80) 0%, rgba(8,12,26,.88) 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(255,255,255,.03), 0 28px 80px rgba(0,0,0,.42), 0 0 0 1px rgba(64,135,255,.03); backdrop-filter:blur(28px) saturate(155%); -webkit-backdrop-filter:blur(28px) saturate(155%); }
.login-hero-panel::before,.login-panel::before { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.02) 16%, transparent 36%), radial-gradient(52rem 24rem at 8% 0%, rgba(85,175,255,.18), transparent 45%), radial-gradient(36rem 24rem at 100% 100%, rgba(28,93,255,.16), transparent 55%); opacity:.9; }
.login-hero-panel::after,.login-panel::after { content:""; position:absolute; width:70%; height:56%; right:-14%; top:-16%; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,.02) 30%, transparent 60%); filter:blur(10px); opacity:.8; pointer-events:none; }
.login-hero-panel { padding:clamp(30px, 4vw, 46px); min-height:560px; }
.login-panel { padding:clamp(28px, 3vw, 36px); }
.login-hero-top,.login-panel-head,.login-hero-main,.login-form { position:relative; z-index:2; }
#loginView .brand-mark { width:72px; height:72px; border-radius:24px; border:1px solid rgba(255,255,255,.16); background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)), linear-gradient(135deg, rgba(71,130,255,.40), rgba(12,18,32,.30) 68%, rgba(12,18,32,.16)); box-shadow:inset 0 1px 0 rgba(255,255,255,.20), 0 16px 34px rgba(0,0,0,.26), 0 0 0 1px rgba(77,141,255,.08); font-size:1.52rem; font-weight:800; letter-spacing:.08em; }
.login-brand-copy .eyebrow { margin-bottom:6px; letter-spacing:.24em; }
.login-hero-subbrand { color:rgba(208,223,255,.88); letter-spacing:.20em; }
.login-kicker,.login-panel-kicker { display:inline-flex; align-items:center; min-height:38px; padding:0 16px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); color:rgba(196,213,255,.92); letter-spacing:.2em; }
.login-hero-main { display:grid; gap:18px; margin-top:auto; margin-bottom:auto; }
.login-hero-main h1 { max-width:9.5ch; font-size:clamp(3rem, 6.4vw, 5.55rem); line-height:.92; letter-spacing:-.05em; text-wrap:balance; text-shadow:0 6px 24px rgba(0,0,0,.34); }
.login-copy { max-width:60ch; font-size:clamp(1rem, 1.25vw, 1.1rem); line-height:1.75; color:rgba(210,222,244,.74); }
.login-hero-divider { width:min(100%, 520px); height:4px; margin-top:10px; border-radius:999px; background:linear-gradient(90deg, rgba(255,255,255,0), rgba(97,166,255,.12), rgba(255,255,255,.40), rgba(97,166,255,.12), rgba(255,255,255,0)); box-shadow:0 0 20px rgba(72,153,255,.18); }
.login-panel-head { margin-bottom:18px; padding-bottom:18px; }
.login-panel-head::after { content:""; display:block; width:100%; height:1px; margin-top:16px; background:linear-gradient(90deg, rgba(255,255,255,.14), rgba(88,142,255,.18), rgba(255,255,255,.04)); }
.login-panel-title { font-size:clamp(2rem, 4.2vw, 2.85rem); letter-spacing:-.04em; }
.login-panel-copy { max-width:36ch; color:rgba(208,220,243,.72); }
.login-form { gap:18px; }
.login-field > span { margin-bottom:10px; color:rgba(205,218,241,.76); letter-spacing:.18em; }
.login-shell .login-field input { height:68px; padding-inline:22px; border-radius:24px; border:1px solid rgba(255,255,255,.11); background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)), rgba(11,16,29,.84); box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.18), 0 0 0 0 rgba(72,153,255,0); transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease; }
.login-shell .login-field input:focus { border-color:rgba(101,166,255,.64); box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 0 0 4px rgba(67,140,255,.13), 0 18px 34px rgba(3,12,28,.24); background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035)), rgba(10,16,30,.92); transform:translateY(-1px); }
.login-shell .login-field input::placeholder { color:rgba(177,192,219,.30); letter-spacing:.12em; }
.login-password-wrap { position:relative; }
.login-visibility-toggle { width:52px; height:52px; right:8px; top:8px; border-radius:18px; border:1px solid rgba(255,255,255,.08); background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.login-meta-row { margin-top:4px; padding:14px 16px; border:1px solid rgba(255,255,255,.08); border-radius:22px; background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)); }
.login-mini-note { color:rgba(209,221,244,.70); }
.login-dot,.login-dot-blue { box-shadow:0 0 0 4px rgba(70,152,255,.11), 0 0 16px rgba(70,152,255,.26); }
.login-submit { position:relative; overflow:hidden; min-height:78px; border-radius:28px; border:1px solid rgba(120,180,255,.30); background:linear-gradient(180deg, rgba(74,162,255,1) 0%, rgba(36,124,255,1) 52%, rgba(26,92,255,1) 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.30), 0 20px 40px rgba(20,90,255,.32), 0 10px 24px rgba(0,0,0,.24); transition:transform .24s ease, box-shadow .24s ease, filter .24s ease; }
.login-submit::before { content:""; position:absolute; inset:-40% auto -40% -20%; width:48%; background:linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); transform:translateX(-130%) skewX(-16deg); animation:loginButtonSheen 5.2s ease-in-out infinite; }
.login-submit:hover { transform:translateY(-2px); box-shadow:inset 0 1px 0 rgba(255,255,255,.34), 0 26px 46px rgba(20,90,255,.36), 0 14px 28px rgba(0,0,0,.28); filter:saturate(1.06); }
.login-submit span,.login-submit small { position:relative; z-index:1; }
.login-submit small { color:rgba(225,239,255,.82); }
.login-hero-panel { animation:loginGlassFloat .84s cubic-bezier(.16,.84,.24,1) both; }
.login-panel { animation:loginGlassFloat .92s cubic-bezier(.16,.84,.24,1) .08s both; }
@keyframes loginGlassFloat { 0% { opacity:0; transform:translateY(18px) scale(.985); } 100% { opacity:1; transform:translateY(0) scale(1); } }
@keyframes loginButtonSheen { 0%,15% { transform:translateX(-145%) skewX(-16deg); opacity:0; } 24% { opacity:1; } 40% { transform:translateX(250%) skewX(-16deg); opacity:.7; } 41%,100% { transform:translateX(250%) skewX(-16deg); opacity:0; } }
@keyframes loginOrbDriftA { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(24px,14px,0) scale(1.06); } }
@keyframes loginOrbDriftB { 0%,100% { transform:translate3d(0,0,0) scale(1); } 50% { transform:translate3d(-20px,-16px,0) scale(1.08); } }
@media (max-width:1160px) { .login-layout { grid-template-columns:1fr; } .login-hero-panel { min-height:auto; } .login-hero-main h1 { max-width:12ch; } }
@media (max-width:640px) { .login-shell-premium { padding:16px; } .login-hero-panel,.login-panel { padding:24px 20px; border-radius:30px; } #loginView .brand-mark { width:60px; height:60px; border-radius:20px; } .login-kicker,.login-panel-kicker { min-height:34px; padding:0 13px; letter-spacing:.16em; } .login-hero-main { gap:14px; } .login-hero-main h1 { font-size:clamp(2.6rem, 12vw, 3.8rem); max-width:8.8ch; } .login-copy,.login-panel-copy { font-size:.95rem; line-height:1.68; } .login-shell .login-field input { height:62px; border-radius:22px; } .login-submit { min-height:72px; border-radius:24px; } }



/* ===== PREVIEW R63 — MOBILE LOGIN PROPORTION FIX ===== */
@media (max-width: 760px) {
  #loginView.login-view {
    min-height: 100dvh;
    padding:
      max(10px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom));
    display:grid;
    place-items:center;
    overflow:hidden;
  }

  #loginView .login-shell-premium {
    width:100%;
    max-width:520px;
    padding:10px !important;
    border-radius:28px !important;
    max-height:calc(100dvh - max(20px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  }

  #loginView .login-layout {
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }

  #loginView .login-hero-panel {
    min-height:0;
    padding:15px 16px 14px;
    border-radius:22px;
    display:grid;
    gap:12px;
  }

  #loginView .login-hero-top {
    gap:10px;
  }

  #loginView .brand-mark {
    width:44px;
    height:44px;
    border-radius:15px;
    font-size:1rem;
    flex:0 0 44px;
  }

  #loginView .login-brand-copy .eyebrow {
    margin:0 0 2px;
    font-size:8px;
    letter-spacing:.18em;
  }

  #loginView .login-hero-subbrand {
    margin:0;
    font-size:7px;
    letter-spacing:.14em;
  }

  #loginView .login-hero-main {
    margin:0;
    display:grid;
    gap:7px;
  }

  #loginView .login-kicker {
    min-height:26px;
    width:max-content;
    max-width:100%;
    margin:0;
    padding:0 10px;
    font-size:7px;
    letter-spacing:.13em;
  }

  #loginView .login-hero-main h1 {
    margin:0;
    max-width:none;
    font-size:clamp(28px, 8.8vw, 36px);
    line-height:.96;
    letter-spacing:-.045em;
    white-space:normal;
  }

  #loginView .login-copy,
  #loginView .login-hero-divider {
    display:none;
  }

  #loginView .login-panel {
    padding:16px;
    border-radius:22px;
  }

  #loginView .login-panel-head {
    margin:0 0 12px;
    padding:0 0 10px;
  }

  #loginView .login-panel-kicker {
    min-height:0;
    padding:0;
    margin:0 0 5px;
    border:0;
    background:none;
    box-shadow:none;
    font-size:7px;
    letter-spacing:.14em;
    color:rgba(154,199,255,.9);
  }

  #loginView .login-panel-title {
    margin:0 0 5px;
    font-size:27px;
    line-height:1;
  }

  #loginView .login-panel-copy {
    margin:0;
    max-width:none;
    font-size:10px;
    line-height:1.45;
    letter-spacing:.03em;
  }

  #loginView .login-panel-head::after {
    margin-top:10px;
  }

  #loginView .login-form {
    gap:11px;
  }

  #loginView .login-field {
    gap:6px;
  }

  #loginView .login-field > span {
    margin:0;
    font-size:8px;
    letter-spacing:.13em;
  }

  #loginView .login-shell .login-field input {
    height:50px;
    min-height:50px;
    padding:0 15px;
    border-radius:16px;
    font-size:13px;
  }

  #loginView .login-visibility-toggle {
    width:38px;
    height:38px;
    right:6px;
    top:6px;
    border-radius:12px;
  }

  #loginView .login-meta-row {
    display:none;
  }

  #loginView .login-submit {
    min-height:54px !important;
    height:54px;
    margin-top:1px;
    border-radius:17px !important;
    gap:2px;
  }

  #loginView .login-submit span {
    font-size:12px;
    letter-spacing:.10em;
  }

  #loginView .login-submit small {
    font-size:7px;
    letter-spacing:.12em;
  }

  #loginView #loginError {
    min-height:12px;
    margin:0;
    font-size:10px;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  #loginView.login-view {
    padding-top:8px;
    padding-bottom:8px;
  }

  #loginView .login-shell-premium {
    padding:8px !important;
    border-radius:24px !important;
  }

  #loginView .login-layout {
    gap:8px;
  }

  #loginView .login-hero-panel {
    padding:12px 14px;
    gap:9px;
    border-radius:19px;
  }

  #loginView .brand-mark {
    width:38px;
    height:38px;
    flex-basis:38px;
    border-radius:13px;
  }

  #loginView .login-hero-main h1 {
    font-size:26px;
  }

  #loginView .login-kicker {
    min-height:23px;
    font-size:6.4px;
  }

  #loginView .login-panel {
    padding:13px 14px;
    border-radius:19px;
  }

  #loginView .login-panel-head {
    margin-bottom:9px;
    padding-bottom:8px;
  }

  #loginView .login-panel-title {
    font-size:24px;
  }

  #loginView .login-panel-copy {
    display:none;
  }

  #loginView .login-form {
    gap:9px;
  }

  #loginView .login-shell .login-field input {
    height:46px;
    min-height:46px;
    border-radius:15px;
  }

  #loginView .login-visibility-toggle {
    width:34px;
    height:34px;
    top:6px;
    right:6px;
  }

  #loginView .login-submit {
    height:50px;
    min-height:50px !important;
    border-radius:16px !important;
  }
}



/* ===== PREVIEW R64 — LOGIN HERO + INPUT POLISH ===== */
#loginView .login-hero-panel {
  position: relative;
  isolation: isolate;
}

#loginView .login-hero-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 8% 0%, rgba(116,192,255,.16), transparent 48%),
    radial-gradient(90% 90% at 100% 0%, rgba(255,255,255,.07), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  opacity: .95;
  z-index: -1;
}

#loginView .login-hero-top {
  align-items: center;
  gap: 16px;
}

#loginView .login-brand-copy {
  gap: 6px;
}

#loginView .login-brand-copy .eyebrow {
  color: rgba(236,243,255,.84);
  font-size: 13px;
  letter-spacing: .18em;
}

#loginView .login-hero-subbrand {
  color: rgba(184,203,238,.82);
  font-size: 12px;
  letter-spacing: .16em;
}

#loginView .login-kicker {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-color: rgba(126,194,255,.24);
  color: #d9ebff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 30px rgba(4,18,44,.22);
}

#loginView .login-hero-main h1 {
  text-wrap: balance;
}

#loginView .login-panel-head {
  position: relative;
}

#loginView .login-panel-head::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(103,162,255,0), rgba(103,162,255,.34), rgba(255,255,255,.12), rgba(103,162,255,0));
}

#loginView .login-field > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(223,232,250,.80);
}

#loginView .login-field > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6fd0ff, #148dff);
  box-shadow: 0 0 0 5px rgba(20,141,255,.12);
}

#loginView .login-shell .login-field input {
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease, transform .22s ease;
}

#loginView .login-shell .login-field input::placeholder {
  color: transparent;
}

#loginView .login-shell .login-field input:focus {
  border-color: rgba(103,168,255,.42);
  background: linear-gradient(180deg, rgba(9,15,28,.92), rgba(11,18,34,.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 4px rgba(10,132,255,.10), 0 16px 36px rgba(5,16,34,.24);
  transform: translateY(-1px);
}

#loginView .login-shell .login-field input:not(:placeholder-shown),
#loginView .login-shell .login-field input:-webkit-autofill {
  color: #f7fbff;
}

@media (max-width: 760px) {
  #loginView .login-shell-premium {
    max-width: 540px;
  }

  #loginView .login-hero-panel {
    padding: 18px 18px 16px;
    border-radius: 24px;
    gap: 14px;
    background:
      linear-gradient(180deg, rgba(18,29,52,.88) 0%, rgba(8,13,28,.92) 100%),
      radial-gradient(120% 120% at 0% 0%, rgba(47,144,255,.20), transparent 48%);
  }

  #loginView .login-hero-top {
    gap: 12px;
  }

  #loginView .brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 18px;
    font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 28px rgba(10,26,68,.24);
  }

  #loginView .login-brand-copy .eyebrow {
    font-size: 9px;
    margin: 0 0 3px;
    letter-spacing: .18em;
  }

  #loginView .login-hero-subbrand {
    font-size: 8px;
    letter-spacing: .16em;
  }

  #loginView .login-kicker {
    min-height: 28px;
    padding: 0 11px;
    font-size: 7px;
    letter-spacing: .16em;
  }

  #loginView .login-hero-main {
    display: grid;
    gap: 9px;
  }

  #loginView .login-hero-main h1 {
    font-size: clamp(24px, 8.5vw, 34px);
    line-height: .96;
    letter-spacing: -.05em;
    max-width: 9.6ch;
  }

  #loginView .login-panel {
    padding: 18px 18px 17px;
    border-radius: 24px;
  }

  #loginView .login-panel-kicker {
    font-size: 8px;
    letter-spacing: .16em;
  }

  #loginView .login-panel-title {
    font-size: 29px;
  }

  #loginView .login-panel-copy {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(218,228,248,.70);
  }

  #loginView .login-field {
    gap: 7px;
  }

  #loginView .login-field > span {
    font-size: 9px;
    letter-spacing: .15em;
  }

  #loginView .login-shell .login-field input {
    height: 54px;
    min-height: 54px;
    border-radius: 18px;
    padding: 0 16px;
    font-size: 14px;
    background: linear-gradient(180deg, rgba(8,13,24,.92), rgba(10,16,28,.78));
  }

  #loginView .login-visibility-toggle {
    width: 40px;
    height: 40px;
    top: 7px;
    right: 7px;
    border-radius: 13px;
  }

  #loginView .login-submit {
    min-height: 56px !important;
    height: 56px;
    border-radius: 18px !important;
  }

  #loginView .login-submit span {
    font-size: 13px;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  #loginView .login-hero-panel {
    padding: 16px 16px 14px;
    gap: 12px;
  }

  #loginView .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  #loginView .login-hero-main h1 {
    font-size: 22px;
    max-width: 10.2ch;
  }

  #loginView .login-panel {
    padding: 16px;
  }

  #loginView .login-panel-title {
    font-size: 27px;
  }

  #loginView .login-shell .login-field input {
    height: 50px;
    min-height: 50px;
  }
}



/* ===== PREVIEW R65 — DESKTOP SIDEBAR ALL PROMOTIONS ===== */
@media (min-width: 961px) {
  #desktopNav [data-route="more"] .nav-glyph {
    background: linear-gradient(180deg, rgba(21,121,255,.22), rgba(10,32,74,.58));
    border-color: rgba(96,172,255,.30);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px rgba(6,19,46,.24);
  }

  #desktopNav [data-route="more"] span:last-child {
    letter-spacing: .08em;
    font-size: 12.5px;
  }
}



/* ===== PREVIEW R66 — RESELLER / MULTI-ADMIN PANEL ===== */
@media (min-width: 961px) {
  #desktopNav [data-route="resellers"] .nav-glyph {
    background: linear-gradient(180deg, rgba(116,82,255,.23), rgba(41,24,94,.52));
    border-color: rgba(154,132,255,.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 24px rgba(27,15,72,.18);
  }
}

.reseller-page { --reseller-accent:#7e6cff; --reseller-blue:#4aa8ff; }
.reseller-hero {
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px;
  border-color:rgba(118,110,255,.15);
  background:
    radial-gradient(80% 150% at 0% 0%, rgba(87,111,255,.16), transparent 52%),
    radial-gradient(60% 120% at 100% 100%, rgba(66,162,255,.08), transparent 56%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.026));
}
.reseller-hero::after { content:""; position:absolute; width:320px; height:120px; right:-40px; top:-55px; border-radius:50%; background:rgba(122,101,255,.13); filter:blur(45px); pointer-events:none; }
.reseller-hero-copy { position:relative; z-index:1; max-width:780px; }
.reseller-hero-kicker { display:inline-flex; margin-bottom:8px; color:#a9c8ff; font-size:9px; font-weight:850; letter-spacing:.18em; }
.reseller-hero h3 { margin:0 0 7px; font-size:clamp(22px,3vw,34px); letter-spacing:-.035em; }
.reseller-hero p { margin:0; max-width:70ch; color:rgba(202,214,238,.68); font-size:10px; line-height:1.65; letter-spacing:.04em; }
.reseller-add-button { position:relative; z-index:1; min-height:48px; padding-inline:18px; display:inline-flex; align-items:center; gap:9px; border-radius:16px; white-space:nowrap; }
.reseller-add-button svg { width:17px; height:17px; }

.reseller-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.reseller-metric-card { padding:17px 18px; border:1px solid rgba(255,255,255,.065); border-radius:20px; background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.022)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.reseller-metric-card span,.reseller-metric-card small { display:block; color:rgba(162,180,207,.68); font-size:7px; font-weight:800; letter-spacing:.16em; }
.reseller-metric-card strong { display:block; margin:8px 0 4px; font-size:24px; letter-spacing:-.035em; }
.reseller-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:12px; }
.reseller-section-head > div span { color:#9cbfff; font-size:8px; font-weight:800; letter-spacing:.18em; }
.reseller-section-head h3 { margin:4px 0 0; font-size:18px; }
.reseller-super-pill,.reseller-isolation-pill { display:inline-flex; align-items:center; min-height:30px; padding:0 10px; border:1px solid rgba(89,203,137,.15); border-radius:999px; background:rgba(49,181,101,.07); color:#8be8b2; font-size:6.8px; font-weight:850; letter-spacing:.15em; }
.reseller-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.reseller-card { position:relative; overflow:hidden; padding:20px; border-color:rgba(128,113,255,.12); }
.reseller-card-glow { position:absolute; width:170px; height:100px; right:-45px; top:-50px; border-radius:50%; background:rgba(112,91,255,.12); filter:blur(38px); pointer-events:none; }
.reseller-card-head { position:relative; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.reseller-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.reseller-avatar { width:46px; height:46px; flex:0 0 46px; display:grid; place-items:center; border-radius:15px; border:1px solid rgba(137,167,255,.16); background:linear-gradient(180deg,rgba(101,121,255,.21),rgba(32,39,75,.36)); color:#e9eeff; font-size:12px; font-weight:900; letter-spacing:.06em; box-shadow:inset 0 1px 0 rgba(255,255,255,.07); }
.reseller-identity > div:last-child { display:grid; gap:3px; min-width:0; }
.reseller-id { color:#94baff; font-size:6.8px; font-weight:850; letter-spacing:.16em; }
.reseller-identity strong { font-size:14px; letter-spacing:.02em; }
.reseller-identity small { color:rgba(167,184,211,.62); font-size:6.5px; font-weight:750; letter-spacing:.12em; }
.reseller-scope-line { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; margin:15px 0 12px; padding:10px 11px; border:1px solid rgba(76,194,127,.10); border-radius:14px; background:rgba(32,145,86,.045); }
.reseller-scope-line span { color:rgba(147,169,199,.68); font-size:6.5px; font-weight:800; letter-spacing:.14em; }
.reseller-scope-line strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:rgba(215,231,247,.82); font-size:7px; letter-spacing:.08em; }
.reseller-scope-line i { color:#75e6a6; font-style:normal; font-size:6.5px; font-weight:900; letter-spacing:.13em; }
.reseller-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.reseller-stat { padding:11px; border:1px solid rgba(255,255,255,.055); border-radius:14px; background:rgba(255,255,255,.025); min-width:0; }
.reseller-stat span,.reseller-stat small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:rgba(146,164,190,.62); font-size:6.2px; font-weight:800; letter-spacing:.13em; }
.reseller-stat strong { display:block; margin:6px 0 4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.reseller-capacity { display:grid; gap:7px; margin-top:12px; }
.reseller-capacity > div:first-child { display:flex; justify-content:space-between; color:rgba(161,179,205,.68); font-size:6.6px; font-weight:800; letter-spacing:.14em; }
.reseller-capacity-track { height:5px; border-radius:999px; overflow:hidden; background:rgba(255,255,255,.05); }
.reseller-capacity-track i { display:block; width:var(--usage); height:100%; border-radius:inherit; background:linear-gradient(90deg,#5f7dff,#4fb7ff); box-shadow:0 0 12px rgba(73,157,255,.24); }
.reseller-permission-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.reseller-permission-chips span { padding:6px 8px; border:1px solid rgba(126,154,255,.10); border-radius:999px; background:rgba(89,100,177,.055); color:rgba(196,211,235,.76); font-size:6.2px; font-weight:800; letter-spacing:.11em; }
.reseller-card-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.05); }
.reseller-architecture-note { display:flex; align-items:flex-start; gap:10px; padding:13px 15px; border:1px solid rgba(255,183,71,.10); border-radius:16px; background:rgba(255,157,31,.035); color:rgba(202,212,228,.68); }
.reseller-architecture-note svg { flex:0 0 17px; color:#ffc16d; }
.reseller-architecture-note p { margin:0; font-size:7px; line-height:1.6; letter-spacing:.05em; }
.reseller-architecture-note strong { color:#ffd18e; }

.reseller-create-sheet,.reseller-manage-sheet { width:min(720px,calc(100vw - 24px)); }
.reseller-permission-box { margin-top:14px; padding:14px; border:1px solid rgba(126,154,255,.10); border-radius:18px; background:linear-gradient(180deg,rgba(75,91,160,.06),rgba(255,255,255,.018)); }
.reseller-permission-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.reseller-permission-head > div { display:grid; gap:3px; }
.reseller-permission-head span:first-child { color:#9ebeff; font-size:7px; font-weight:850; letter-spacing:.17em; }
.reseller-permission-head strong { font-size:11px; }
.reseller-permission-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.reseller-check { display:flex; align-items:center; gap:9px; min-height:40px; padding:0 10px; border:1px solid rgba(255,255,255,.055); border-radius:13px; background:rgba(255,255,255,.025); color:rgba(222,230,244,.82); font-size:7px; font-weight:800; letter-spacing:.11em; }
.reseller-check input { accent-color:#6f7cff; }
.reseller-permission-box p { margin:10px 0 0; color:rgba(155,173,201,.62); font-size:6.7px; line-height:1.55; letter-spacing:.04em; }
.reseller-manage-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.reseller-manage-summary > div { padding:12px; border:1px solid rgba(255,255,255,.06); border-radius:15px; background:rgba(255,255,255,.025); }
.reseller-manage-summary span { display:block; color:rgba(150,168,195,.64); font-size:6.4px; font-weight:800; letter-spacing:.13em; }
.reseller-manage-summary strong { display:block; margin-top:7px; font-size:12px; }
.reseller-manage-scope { display:flex; align-items:flex-start; gap:10px; margin-top:12px; padding:13px; border:1px solid rgba(76,194,127,.11); border-radius:16px; background:rgba(32,145,86,.045); }
.reseller-manage-scope svg { flex:0 0 18px; color:#79e5aa; }
.reseller-manage-scope strong { font-size:8px; color:#9aefbc; letter-spacing:.10em; }
.reseller-manage-scope p { margin:4px 0 0; color:rgba(183,201,221,.70); font-size:7px; line-height:1.5; }
.reseller-manage-section { margin-top:14px; }
.reseller-manage-heading { display:flex; justify-content:space-between; gap:10px; margin-bottom:8px; color:#9ebeff; font-size:7px; font-weight:850; letter-spacing:.14em; }
.reseller-manage-heading small { color:rgba(154,173,202,.58); }
.reseller-customer-list { display:grid; gap:7px; }
.reseller-customer-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 11px; border:1px solid rgba(255,255,255,.055); border-radius:13px; background:rgba(255,255,255,.024); }
.reseller-customer-row > div { display:grid; gap:3px; }
.reseller-customer-row strong { font-size:9px; }
.reseller-customer-row span { color:rgba(152,171,198,.65); font-size:6.3px; font-weight:750; letter-spacing:.08em; }
.reseller-permission-chips.manage { margin-top:0; }

@media (max-width:1050px) { .reseller-grid { grid-template-columns:1fr; } .reseller-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .reseller-hero { align-items:stretch; flex-direction:column; padding:18px; border-radius:22px; }
  .reseller-add-button { width:100%; justify-content:center; }
  .reseller-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .reseller-metric-card { padding:13px; border-radius:16px; }
  .reseller-metric-card strong { font-size:20px; }
  .reseller-section-head { align-items:flex-start; flex-direction:column; }
  .reseller-card { padding:14px; border-radius:20px; }
  .reseller-card-head { align-items:flex-start; }
  .reseller-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reseller-scope-line { grid-template-columns:auto 1fr; }
  .reseller-scope-line i { grid-column:1/-1; width:max-content; }
  .reseller-card-actions { justify-content:stretch; }
  .reseller-card-actions .mini-button { flex:1; }
  .reseller-permission-grid,.reseller-manage-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reseller-permission-head { align-items:flex-start; flex-direction:column; }
  .reseller-customer-row { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion:reduce) { .reseller-card,.reseller-add-button { transition:none !important; animation:none !important; } }



/* ===== PREVIEW R67 — RESELLER PANEL LINK + SUPER ADMIN VIEW-AS ===== */
.reseller-card-actions-extended{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.reseller-card-actions-extended .mini-button{width:100%;justify-content:center}.reseller-panel-open{border-color:rgba(83,165,255,.18)!important;background:linear-gradient(180deg,rgba(34,122,255,.13),rgba(15,55,112,.13))!important;color:#a9d4ff!important}
.reseller-panel-access{margin-top:14px;padding:15px;border:1px solid rgba(82,157,255,.12);border-radius:18px;background:radial-gradient(100% 100% at 0% 0%,rgba(49,131,255,.08),transparent 50%),linear-gradient(180deg,rgba(66,91,155,.055),rgba(255,255,255,.018));box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.reseller-panel-access-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.reseller-panel-access-head>div{display:grid;gap:4px}.reseller-panel-access-head span:first-child{color:#9ebeff;font-size:7px;font-weight:850;letter-spacing:.17em}.reseller-panel-access-head strong{font-size:11px}.reseller-panel-status{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;font-size:6.5px;font-weight:900;letter-spacing:.13em}.reseller-panel-status.active{color:#83e9ad;border:1px solid rgba(72,210,128,.14);background:rgba(34,170,91,.07)}.reseller-panel-status.inactive{color:#ff9da3;border:1px solid rgba(255,91,102,.13);background:rgba(181,47,59,.07)}
.reseller-panel-url-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px}.reseller-panel-url-copy{min-width:0;padding:11px 12px;border:1px solid rgba(255,255,255,.055);border-radius:14px;background:rgba(5,10,20,.35)}.reseller-panel-url-copy span{display:block;margin-bottom:5px;color:rgba(150,173,206,.65);font-size:6.2px;font-weight:800;letter-spacing:.14em}.reseller-panel-url-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d7e8ff;font-size:8px;letter-spacing:.025em;text-transform:none!important}.reseller-panel-access>p{margin:10px 0 0;color:rgba(161,181,209,.62);font-size:6.5px;line-height:1.55;letter-spacing:.04em}.reseller-panel-access-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.reseller-panel-access-actions .button{min-height:42px;border-radius:14px;font-size:7px;letter-spacing:.1em}.reseller-empty-owned{padding:14px;border:1px dashed rgba(255,255,255,.07);border-radius:13px;text-align:center;color:rgba(155,175,202,.55);font-size:7px;font-weight:800;letter-spacing:.12em}
.reseller-panel-dialog{padding:12px}.reseller-panel-sheet{width:min(940px,calc(100vw - 24px));max-height:min(92dvh,900px);overflow:auto}.reseller-preview-banner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:-2px -2px 14px;padding:10px 12px;border:1px solid rgba(79,161,255,.13);border-radius:15px;background:linear-gradient(90deg,rgba(24,83,160,.14),rgba(20,40,78,.13))}.reseller-preview-pulse{width:8px;height:8px;border-radius:999px;background:#58b9ff;box-shadow:0 0 0 5px rgba(88,185,255,.10),0 0 18px rgba(88,185,255,.32)}.reseller-preview-banner>div{display:grid;gap:2px}.reseller-preview-banner strong{color:#bddcff;font-size:7px;letter-spacing:.16em}.reseller-preview-banner small{color:rgba(190,208,234,.66);font-size:6.2px;letter-spacing:.09em}.reseller-preview-audit{color:#84e7ad;font-size:6px;font-weight:850;letter-spacing:.13em}.reseller-panel-head{margin-bottom:12px}.reseller-panel-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px;border:1px solid rgba(122,145,255,.10);border-radius:19px;background:linear-gradient(180deg,rgba(74,91,160,.065),rgba(255,255,255,.022))}.reseller-panel-hero>div{display:grid;gap:5px}.reseller-panel-hero>div>span{color:#9bbcff;font-size:7px;font-weight:850;letter-spacing:.16em}.reseller-panel-hero h4{margin:0;font-size:24px;letter-spacing:-.03em}.reseller-panel-hero p{margin:0;max-width:66ch;color:rgba(174,194,219,.66);font-size:7px;line-height:1.55;letter-spacing:.04em}.reseller-panel-metrics-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px}.reseller-panel-metrics-preview>div{padding:14px;border:1px solid rgba(255,255,255,.055);border-radius:15px;background:rgba(255,255,255,.025)}.reseller-panel-metrics-preview span,.reseller-panel-metrics-preview small{display:block;color:rgba(149,169,197,.64);font-size:6.3px;font-weight:800;letter-spacing:.13em}.reseller-panel-metrics-preview strong{display:block;margin:7px 0 4px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reseller-panel-capacity-preview,.reseller-panel-quick-preview,.reseller-panel-customers-preview{margin-top:12px;padding:14px;border:1px solid rgba(255,255,255,.055);border-radius:17px;background:rgba(255,255,255,.018)}.reseller-panel-capacity-preview>div:first-child{display:flex;justify-content:space-between;margin-bottom:8px;color:rgba(160,180,207,.7);font-size:6.5px;font-weight:800;letter-spacing:.14em}.reseller-panel-guardrail{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:13px 14px;border:1px solid rgba(255,184,72,.10);border-radius:16px;background:rgba(255,157,31,.035)}.reseller-panel-guardrail svg{flex:0 0 18px;color:#ffc16d}.reseller-panel-guardrail strong{color:#ffd28f;font-size:7px;letter-spacing:.14em}.reseller-panel-guardrail p{margin:4px 0 0;color:rgba(187,199,218,.65);font-size:6.6px;line-height:1.55}.reseller-panel-footer{margin-top:14px}
@media(max-width:760px){.reseller-card-actions-extended{grid-template-columns:1fr 1fr}.reseller-panel-url-row{grid-template-columns:1fr}.reseller-panel-url-row .mini-button{width:100%;justify-content:center}.reseller-panel-access-actions{grid-template-columns:1fr}.reseller-panel-sheet{width:min(100%,calc(100vw - 16px));max-height:92dvh;border-radius:24px}.reseller-preview-banner{grid-template-columns:auto 1fr}.reseller-preview-audit{grid-column:2}.reseller-panel-hero{flex-direction:column}.reseller-panel-metrics-preview{grid-template-columns:1fr 1fr}}



/* ===== PREVIEW R68 — TRUE RESELLER WORKSPACE PREVIEW ===== */
.app-view.reseller-workspace-mode .sidebar,
.app-view.reseller-workspace-mode .mobile-nav {
  display: none !important;
}

.app-view.reseller-workspace-mode .topbar {
  left: 14px !important;
  right: 14px !important;
  width: auto !important;
}

.app-view.reseller-workspace-mode .page-root {
  margin-left: 0 !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  max-width: 1440px;
  margin-right: auto !important;
  margin-inline: auto !important;
}

.reseller-workspace-page {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}

.reseller-preview-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid rgba(94, 180, 255, .24);
  border-radius: 24px;
  background:
    radial-gradient(70% 140% at 0% 0%, rgba(40, 145, 255, .15), transparent 60%),
    linear-gradient(180deg, rgba(18, 27, 45, .93), rgba(10, 15, 27, .92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 54px rgba(0,0,0,.20);
}

.reseller-preview-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.055) 38%, transparent 66%);
  transform: translateX(-125%);
  animation: resellerPreviewSweep 1.05s .12s ease-out both;
}

.reseller-preview-banner-copy,
.reseller-preview-banner-actions {
  position: relative;
  z-index: 1;
}

.reseller-preview-banner-copy {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.reseller-preview-shield {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(108, 190, 255, .20);
  background: rgba(54, 145, 255, .09);
  color: #86ceff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.reseller-preview-shield svg { width: 19px; height: 19px; }

.reseller-preview-banner-copy span,
.reseller-workspace-label,
.reseller-workspace-card span,
.reseller-workspace-cap-head span,
.reseller-workspace-section-head span,
.reseller-panel-link-box span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  color: rgba(177, 194, 222, .72);
}

.reseller-preview-banner-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: .03em;
}

.reseller-preview-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reseller-back-button {
  min-height: 42px !important;
  border-radius: 15px !important;
  gap: 8px;
  white-space: nowrap;
}

.reseller-back-button svg { width: 15px; height: 15px; }

.reseller-workspace-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  background:
    radial-gradient(80% 110% at 0% 0%, rgba(33, 137, 255, .12), transparent 56%),
    radial-gradient(50% 100% at 100% 100%, rgba(85, 65, 255, .08), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.022));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 22px 56px rgba(0,0,0,.18);
}

.reseller-workspace-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.reseller-workspace-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reseller-workspace-avatar {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(112, 174, 255, .20);
  background: linear-gradient(145deg, rgba(84, 111, 255, .24), rgba(24, 34, 61, .64));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px rgba(5,15,36,.20);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .08em;
}

.reseller-workspace-identity h3 {
  margin: 4px 0 5px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}

.reseller-workspace-identity p {
  margin: 0;
  color: rgba(192, 206, 232, .62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.reseller-workspace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin-top: 22px;
}

.reseller-workspace-card {
  min-height: 116px;
  padding: 17px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.reseller-workspace-card strong {
  display: block;
  margin: 13px 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.04em;
}

.reseller-workspace-card small {
  color: rgba(177, 194, 220, .58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
}

.reseller-workspace-content {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: 18px;
}

.reseller-workspace-section {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 44px rgba(0,0,0,.14);
}

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

.reseller-workspace-section-head h4 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.reseller-workspace-quick-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.reseller-workspace-action {
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 19px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.022));
  color: #eef5ff;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.reseller-workspace-action:hover,
.reseller-workspace-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(92, 169, 255, .25);
  background: linear-gradient(180deg, rgba(54,138,255,.08), rgba(255,255,255,.025));
  outline: none;
}

.reseller-workspace-action span {
  display: block;
  margin-bottom: 7px;
  color: rgba(135, 195, 255, .92);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .13em;
}

.reseller-workspace-action strong {
  font-size: 13px;
  letter-spacing: .04em;
}

.reseller-workspace-customer-list {
  display: grid;
  gap: 9px;
}

.reseller-workspace-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}

.reseller-workspace-customer strong {
  display: block;
  font-size: 13px;
}

.reseller-workspace-customer span {
  display: block;
  margin-top: 4px;
  color: rgba(174, 190, 216, .58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

.reseller-workspace-customer > small {
  color: #6fdfa0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.reseller-workspace-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 20px;
  color: rgba(179,195,221,.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.reseller-panel-link-box {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid rgba(86, 163, 255, .14);
  border-radius: 18px;
  background: rgba(18, 43, 76, .20);
}

.reseller-panel-link-box strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}

.reseller-panel-link-box .mini-button { justify-self: start; }

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

.reseller-workspace-cap-head strong { font-size: 13px; }

.reseller-workspace-cap-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}

.reseller-workspace-cap-track i {
  display: block;
  width: var(--usage,0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b62ff, #48c7ff);
  box-shadow: 0 0 18px rgba(72,199,255,.24);
}

.reseller-workspace-perms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.reseller-workspace-perms span {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(100, 118, 255, .16);
  border-radius: 999px;
  background: rgba(78, 88, 255, .055);
  color: rgba(212, 220, 255, .82);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
}

@keyframes resellerPreviewSweep {
  from { transform: translateX(-125%); }
  to { transform: translateX(125%); }
}

@media (max-width: 900px) {
  .app-view.reseller-workspace-mode .topbar {
    left: 10px !important;
    right: 10px !important;
  }

  .app-view.reseller-workspace-mode .page-root {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-bottom: max(22px, env(safe-area-inset-bottom)) !important;
  }

  .reseller-workspace-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reseller-workspace-content { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .reseller-workspace-page { gap: 12px; }
  .reseller-preview-banner { align-items: flex-start; padding: 13px; border-radius: 20px; }
  .reseller-preview-banner-copy { gap: 10px; }
  .reseller-preview-shield { width: 37px; height: 37px; flex-basis: 37px; border-radius: 13px; }
  .reseller-preview-banner-copy span { font-size: 8px; }
  .reseller-preview-banner-copy strong { font-size: 11px; }
  .reseller-back-button { min-height: 38px !important; padding-inline: 11px !important; font-size: 9px !important; }

  .reseller-workspace-hero { padding: 17px; border-radius: 22px; }
  .reseller-workspace-hero-top { align-items: flex-start; }
  .reseller-workspace-avatar { width: 50px; height: 50px; flex-basis: 50px; border-radius: 17px; font-size: 16px; }
  .reseller-workspace-identity { gap: 11px; }
  .reseller-workspace-identity h3 { font-size: 25px; }
  .reseller-workspace-identity p { font-size: 9px; }
  .reseller-workspace-grid { gap: 9px; margin-top: 16px; }
  .reseller-workspace-card { min-height: 96px; padding: 13px; border-radius: 18px; }
  .reseller-workspace-card span { font-size: 8px; }
  .reseller-workspace-card strong { margin: 9px 0 5px; font-size: 21px; }
  .reseller-workspace-card small { font-size: 8px; }

  .reseller-workspace-section { padding: 15px; border-radius: 21px; }
  .reseller-workspace-section-head h4 { font-size: 17px; }
  .reseller-workspace-quick-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
  .reseller-workspace-action { min-height: 66px; border-radius: 16px; }
  .reseller-workspace-customer { min-height: 58px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reseller-preview-banner::before { animation: none !important; }
}



/* ===== PREVIEW R69 — COMPLETE RESELLER PANEL PREVIEW ===== */
.app-view.reseller-workspace-mode .topbar { display:none !important; }
.app-view.reseller-workspace-mode .page-root {
  min-height:100dvh !important;
  padding:0 !important;
  margin:0 !important;
  max-width:none !important;
  background:
    radial-gradient(70rem 40rem at 0% 0%, rgba(19,112,255,.12), transparent 52%),
    radial-gradient(50rem 32rem at 100% 100%, rgba(89,55,255,.08), transparent 56%),
    #050811;
}

.reseller-panel-preview-shell { min-height:100dvh; position:relative; padding:14px; }
.reseller-panel-preview-strip {
  position:relative; z-index:50; min-height:54px; padding:9px 12px 9px 15px;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  border:1px solid rgba(73,163,255,.20); border-radius:18px;
  background:linear-gradient(180deg,rgba(17,31,53,.96),rgba(9,16,29,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 38px rgba(0,0,0,.22);
}
.reseller-panel-preview-strip>div { display:flex; align-items:center; gap:9px; min-width:0; }
.reseller-panel-preview-strip>div>svg { color:#75c7ff; flex:0 0 16px; }
.reseller-panel-preview-strip span { color:#8dcaff; font-size:9px; font-weight:900; letter-spacing:.14em; }
.reseller-panel-preview-strip strong { color:rgba(225,235,251,.84); font-size:9px; letter-spacing:.10em; white-space:nowrap; }
.reseller-panel-preview-strip button { min-height:34px; padding:0 12px; display:inline-flex; align-items:center; gap:7px; border:1px solid rgba(255,255,255,.08); border-radius:12px; background:rgba(255,255,255,.035); color:#eaf2ff; font-size:8px; font-weight:850; letter-spacing:.10em; }
.reseller-panel-preview-strip button svg { transform:rotate(180deg); }

.reseller-panel-frame { min-height:calc(100dvh - 82px); margin-top:12px; display:grid; grid-template-columns:238px minmax(0,1fr); gap:12px; }
.reseller-panel-sidebar {
  position:sticky; top:80px; align-self:start; min-height:calc(100dvh - 96px); padding:15px;
  display:flex; flex-direction:column; border:1px solid rgba(255,255,255,.075); border-radius:25px;
  background:linear-gradient(180deg,rgba(16,23,39,.94),rgba(8,12,23,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 24px 60px rgba(0,0,0,.22);
}
.reseller-panel-brand { min-height:58px; display:flex; align-items:center; gap:11px; }
.reseller-panel-brand-mark { width:40px; height:40px; display:grid; place-items:center; border:1px solid rgba(117,172,255,.22); border-radius:14px; background:linear-gradient(145deg,rgba(77,118,255,.24),rgba(16,27,53,.60)); box-shadow:inset 0 1px 0 rgba(255,255,255,.09); font-size:13px; font-weight:900; }
.reseller-panel-brand>div:last-child { display:grid; gap:2px; }
.reseller-panel-brand strong { font-size:11px; letter-spacing:.10em; }
.reseller-panel-brand span { color:rgba(151,174,209,.58); font-size:7px; font-weight:850; letter-spacing:.16em; }
.reseller-panel-owner { display:flex; align-items:center; gap:10px; margin:9px 0 15px; padding:11px; border:1px solid rgba(255,255,255,.06); border-radius:17px; background:rgba(255,255,255,.025); }
.reseller-panel-owner-avatar,.reseller-panel-mini-avatar { display:grid; place-items:center; border:1px solid rgba(107,167,255,.20); background:linear-gradient(145deg,rgba(77,110,255,.22),rgba(24,34,64,.62)); color:#edf4ff; font-weight:900; }
.reseller-panel-owner-avatar { width:39px; height:39px; flex:0 0 39px; border-radius:13px; font-size:11px; }
.reseller-panel-owner>div:last-child { min-width:0; display:grid; gap:2px; }
.reseller-panel-owner span,.reseller-panel-owner small { color:rgba(146,168,201,.58); font-size:6px; font-weight:800; letter-spacing:.14em; }
.reseller-panel-owner strong { overflow:hidden; text-overflow:ellipsis; font-size:10px; }
.reseller-panel-nav { display:grid; gap:5px; }
.reseller-panel-nav-item { width:100%; min-height:46px; padding:0 11px; display:flex; align-items:center; gap:10px; border:1px solid transparent; border-radius:14px; background:transparent; color:rgba(169,185,211,.62); font-size:8px; font-weight:850; letter-spacing:.10em; text-align:left; transition:transform .17s ease,border-color .17s ease,background .17s ease,color .17s ease; }
.reseller-panel-nav-item:hover,.reseller-panel-nav-item:focus-visible { color:#f0f6ff; border-color:rgba(85,161,255,.12); background:rgba(47,111,210,.055); outline:none; }
.reseller-panel-nav-item.active { color:#f5f9ff; border-color:rgba(92,168,255,.18); background:linear-gradient(90deg,rgba(44,126,255,.14),rgba(54,85,186,.055)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.reseller-panel-nav-icon { width:28px; height:28px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.06); border-radius:9px; background:rgba(255,255,255,.025); }
.reseller-panel-nav-item.active .reseller-panel-nav-icon { color:#7fcaff; border-color:rgba(100,181,255,.15); background:rgba(63,142,255,.10); }
.reseller-panel-sidebar-foot { margin-top:auto; padding-top:14px; border-top:1px solid rgba(255,255,255,.05); display:grid; gap:10px; }
.reseller-panel-sidebar-foot>div { padding:11px; border:1px solid rgba(255,255,255,.055); border-radius:14px; background:rgba(255,255,255,.02); }
.reseller-panel-sidebar-foot span,.reseller-panel-sidebar-foot small { display:block; color:rgba(145,164,194,.58); font-size:6px; font-weight:800; letter-spacing:.12em; }
.reseller-panel-sidebar-foot strong { display:block; margin:5px 0 4px; font-size:9px; }
.reseller-panel-sidebar-foot button { min-height:36px; border:1px solid rgba(255,100,112,.12); border-radius:12px; background:rgba(126,24,39,.10); color:#ffb1b8; font-size:7px; font-weight:850; letter-spacing:.10em; }

.reseller-panel-main { min-width:0; border:1px solid rgba(255,255,255,.07); border-radius:27px; background:linear-gradient(180deg,rgba(9,14,25,.87),rgba(7,11,20,.92)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.reseller-panel-main-inner { width:min(1400px,100%); margin:0 auto; padding:clamp(20px,2.4vw,32px); }
.reseller-panel-mobile-head { display:none; }
.reseller-panel-page-head { min-height:86px; display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,.055); }
.reseller-panel-page-head>div:first-child>span { color:#83bfff; font-size:8px; font-weight:850; letter-spacing:.18em; }
.reseller-panel-page-head h2 { margin:6px 0 5px; font-size:clamp(27px,3vw,38px); line-height:1; letter-spacing:-.045em; }
.reseller-panel-page-head p { margin:0; color:rgba(169,188,217,.58); font-size:8px; font-weight:700; letter-spacing:.07em; line-height:1.5; }
.reseller-panel-page-head-actions { display:flex; align-items:center; gap:9px; }
.reseller-panel-role-pill { min-height:30px; padding:0 10px; display:inline-flex; align-items:center; border:1px solid rgba(91,198,139,.13); border-radius:999px; background:rgba(45,169,100,.065); color:#80e5ab; font-size:7px; font-weight:900; letter-spacing:.13em; }
.reseller-panel-mini-avatar { width:38px; height:38px; border-radius:13px; font-size:10px; }

.reseller-panel-hero-card { position:relative; overflow:hidden; min-height:220px; padding:clamp(22px,3vw,32px); display:flex; align-items:center; justify-content:space-between; gap:24px; border:1px solid rgba(83,152,255,.13); border-radius:28px; background:radial-gradient(65% 130% at 0% 0%,rgba(34,127,255,.16),transparent 62%),radial-gradient(50% 100% at 100% 100%,rgba(89,65,255,.09),transparent 68%),linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.018)); box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 24px 60px rgba(0,0,0,.16); }
.reseller-panel-hero-card::after { content:""; position:absolute; width:330px; height:160px; right:-70px; top:-80px; border-radius:50%; background:rgba(69,137,255,.11); filter:blur(45px); pointer-events:none; }
.reseller-panel-hero-copy,.reseller-panel-hero-status { position:relative; z-index:1; }
.reseller-panel-hero-copy { max-width:760px; }
.reseller-panel-hero-copy>span { color:#83bfff; font-size:8px; font-weight:850; letter-spacing:.17em; }
.reseller-panel-hero-copy h3 { margin:8px 0 9px; font-size:clamp(32px,5vw,54px); line-height:.95; letter-spacing:-.055em; }
.reseller-panel-hero-copy p { margin:0; max-width:64ch; color:rgba(186,204,229,.65); font-size:9px; line-height:1.65; letter-spacing:.055em; }
.reseller-panel-hero-actions { display:flex; gap:9px; margin-top:18px; }
.reseller-panel-hero-actions .button { min-height:42px; border-radius:14px; display:inline-flex; align-items:center; gap:7px; }
.reseller-panel-hero-status { min-width:190px; padding:17px; border:1px solid rgba(255,255,255,.07); border-radius:20px; background:rgba(5,11,22,.38); }
.reseller-panel-hero-status>span:not(.badge) { display:block; margin-top:16px; color:rgba(151,174,205,.62); font-size:7px; font-weight:800; letter-spacing:.14em; }
.reseller-panel-hero-status>strong { display:block; margin:6px 0 4px; font-size:15px; }
.reseller-panel-hero-status>small { color:rgba(150,170,202,.60); font-size:7px; font-weight:800; letter-spacing:.10em; }

.reseller-panel-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:11px; margin-top:13px; }
.reseller-panel-stat-grid article { min-height:112px; padding:16px; border:1px solid rgba(255,255,255,.065); border-radius:20px; background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018)); }
.reseller-panel-stat-grid span,.reseller-panel-stat-grid small { display:block; color:rgba(150,170,200,.60); font-size:7px; font-weight:800; letter-spacing:.13em; }
.reseller-panel-stat-grid strong { display:block; margin:11px 0 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:clamp(22px,3vw,31px); letter-spacing:-.04em; }

.reseller-panel-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:13px; margin-top:13px; }
.reseller-panel-side-stack { display:grid; gap:13px; align-content:start; }
.reseller-panel-card { padding:18px; border:1px solid rgba(255,255,255,.07); border-radius:23px; background:linear-gradient(180deg,rgba(255,255,255,.032),rgba(255,255,255,.016)); box-shadow:inset 0 1px 0 rgba(255,255,255,.03); }
.reseller-panel-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.reseller-panel-card-head>div>span,.reseller-panel-card-head>span { color:#8dbdff; font-size:7px; font-weight:850; letter-spacing:.15em; }
.reseller-panel-card-head h3 { margin:4px 0 0; font-size:14px; }
.reseller-panel-card-head>button { border:0; background:none; color:#82c4ff; font-size:7px; font-weight:850; letter-spacing:.12em; }
.reseller-panel-card-head>strong { font-size:11px; }
.reseller-panel-card-copy { margin:0; color:rgba(165,185,212,.60); font-size:8px; line-height:1.65; letter-spacing:.05em; }
.reseller-panel-cap-track { height:7px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.055); }
.reseller-panel-cap-track i { display:block; width:var(--usage); height:100%; border-radius:inherit; background:linear-gradient(90deg,#5f72ff,#49c7ff); box-shadow:0 0 16px rgba(70,188,255,.25); }
.reseller-panel-cap-copy { margin-top:8px; display:flex; justify-content:space-between; color:rgba(145,165,196,.58); font-size:6.5px; font-weight:800; letter-spacing:.11em; }
.reseller-panel-permission-grid { display:flex; flex-wrap:wrap; gap:7px; }
.reseller-panel-permission-grid span { min-height:29px; padding:0 9px; display:inline-flex; align-items:center; gap:6px; border:1px solid rgba(88,160,255,.10); border-radius:999px; background:rgba(63,105,224,.05); color:rgba(205,219,240,.74); font-size:6.5px; font-weight:850; letter-spacing:.09em; }
.reseller-panel-permission-grid span svg { color:#77d7a4; }
.reseller-panel-permission-grid.large { margin-top:15px; }

.reseller-panel-customer-list { display:grid; gap:8px; }
.reseller-panel-customer-row { min-height:62px; padding:9px 10px; display:grid; grid-template-columns:minmax(0,1fr) 88px 104px auto; align-items:center; gap:10px; border:1px solid rgba(255,255,255,.055); border-radius:15px; background:rgba(255,255,255,.018); }
.reseller-panel-customer-main { min-width:0; display:flex; align-items:center; gap:10px; }
.reseller-panel-customer-avatar { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border:1px solid rgba(93,154,255,.13); border-radius:11px; background:rgba(72,101,199,.08); color:#dce9ff; font-size:8px; font-weight:900; }
.reseller-panel-customer-main>div { min-width:0; }
.reseller-panel-customer-main strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:9px; }
.reseller-panel-customer-main span,.reseller-panel-customer-expire span { display:block; margin-top:3px; color:rgba(144,164,194,.58); font-size:6px; font-weight:800; letter-spacing:.08em; }
.reseller-panel-customer-expire strong { font-size:8px; }
.reseller-panel-customer-state { justify-self:start; min-height:26px; padding:0 8px; display:inline-flex; align-items:center; border-radius:999px; font-size:6px; font-weight:900; letter-spacing:.10em; }
.reseller-panel-customer-state.active { border:1px solid rgba(72,207,129,.12); background:rgba(48,182,102,.06); color:#75e4a5; }
.reseller-panel-customer-state.renew { border:1px solid rgba(255,177,70,.13); background:rgba(255,150,34,.06); color:#ffc16f; }
.reseller-panel-customer-actions { display:flex; justify-content:flex-end; gap:5px; }
.reseller-panel-customer-actions button { min-height:29px; padding:0 8px; border:1px solid rgba(83,153,255,.10); border-radius:9px; background:rgba(59,111,210,.05); color:#b9d9ff; font-size:6px; font-weight:850; letter-spacing:.08em; }
.reseller-panel-empty { min-height:150px; display:grid; place-items:center; align-content:center; gap:6px; border:1px dashed rgba(255,255,255,.07); border-radius:18px; color:rgba(159,180,209,.50); text-align:center; }
.reseller-panel-empty svg { color:#5d8cd2; }
.reseller-panel-empty strong { font-size:8px; letter-spacing:.12em; }
.reseller-panel-empty small { font-size:6.5px; letter-spacing:.08em; }

.reseller-panel-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.reseller-panel-search { height:42px; min-width:280px; flex:1; display:flex; align-items:center; gap:9px; padding:0 12px; border:1px solid rgba(255,255,255,.065); border-radius:13px; background:rgba(255,255,255,.022); color:rgba(135,166,207,.72); }
.reseller-panel-search input { width:100%; border:0; outline:0; background:transparent; color:#edf5ff; font-size:8px; font-weight:800; letter-spacing:.10em; }
.reseller-panel-list-head { display:grid; grid-template-columns:minmax(0,1fr) 88px 104px auto; gap:10px; padding:0 11px 8px; color:rgba(137,157,188,.48); font-size:6px; font-weight:850; letter-spacing:.11em; }

.reseller-panel-create-layout,.reseller-panel-account-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:13px; }
.reseller-panel-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.reseller-panel-form-grid label { display:grid; gap:7px; }
.reseller-panel-form-grid label>span { color:rgba(174,195,222,.70); font-size:7px; font-weight:850; letter-spacing:.12em; }
.reseller-panel-form-grid input,.reseller-panel-form-grid select { width:100%; min-height:47px; padding:0 12px; border:1px solid rgba(255,255,255,.07); border-radius:13px; outline:none; background:#0b111e; color:#edf5ff; font-size:9px; }
.reseller-panel-form-grid input:focus,.reseller-panel-form-grid select:focus { border-color:rgba(84,163,255,.30); box-shadow:0 0 0 3px rgba(37,123,255,.08); }
.reseller-panel-form-grid input:disabled { color:rgba(166,186,214,.46); }
.reseller-panel-create-note { margin-top:13px; padding:13px; display:flex; align-items:flex-start; gap:9px; border:1px solid rgba(55,195,113,.10); border-radius:15px; background:rgba(42,161,94,.04); }
.reseller-panel-create-note svg { color:#71dfa0; flex:0 0 18px; }
.reseller-panel-create-note strong { color:#8be8b3; font-size:7px; letter-spacing:.12em; }
.reseller-panel-create-note p { margin:4px 0 0; color:rgba(170,193,216,.62); font-size:6.5px; line-height:1.55; }
.reseller-panel-create-actions { margin-top:14px; display:flex; justify-content:flex-end; gap:8px; }
.reseller-panel-create-actions .button { min-height:42px; border-radius:13px; }

.reseller-panel-profile-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.reseller-panel-profile-card { min-height:165px; padding:17px; border:1px solid rgba(255,255,255,.065); border-radius:21px; background:linear-gradient(180deg,rgba(255,255,255,.033),rgba(255,255,255,.015)); }
.reseller-panel-profile-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.reseller-panel-profile-top>span:first-child { color:#8ebfff; font-size:7px; font-weight:850; letter-spacing:.13em; }
.reseller-panel-profile-ready { min-height:25px; padding:0 8px; display:inline-flex; align-items:center; border:1px solid rgba(58,200,117,.11); border-radius:999px; background:rgba(44,174,99,.055); color:#78e4a6; font-size:6px; font-weight:900; letter-spacing:.10em; }
.reseller-panel-profile-card h3 { margin:22px 0 6px; font-size:14px; }
.reseller-panel-profile-card p { margin:0; color:rgba(152,174,204,.58); font-size:7px; font-weight:750; letter-spacing:.08em; }
.reseller-panel-profile-card>div:last-child { margin-top:18px; padding-top:12px; border-top:1px solid rgba(255,255,255,.05); display:flex; justify-content:space-between; gap:8px; }
.reseller-panel-profile-card>div:last-child span { color:rgba(143,163,193,.50); font-size:6px; font-weight:800; letter-spacing:.10em; }
.reseller-panel-profile-card>div:last-child strong { font-size:7px; }

.reseller-panel-link { display:grid; gap:8px; padding:13px; border:1px solid rgba(76,151,255,.11); border-radius:15px; background:rgba(28,68,128,.10); }
.reseller-panel-link span { color:#88bfff; font-size:7px; font-weight:850; letter-spacing:.13em; }
.reseller-panel-link strong { overflow-wrap:anywhere; font-size:9px; line-height:1.5; }
.reseller-panel-link .mini-button { justify-self:start; }
.reseller-panel-account-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:13px; }
.reseller-panel-account-rows>div { padding:12px; border:1px solid rgba(255,255,255,.05); border-radius:13px; background:rgba(255,255,255,.018); }
.reseller-panel-account-rows span { display:block; color:rgba(145,165,195,.55); font-size:6px; font-weight:800; letter-spacing:.11em; }
.reseller-panel-account-rows strong { display:block; margin-top:6px; font-size:9px; }

.reseller-panel-mobile-nav { display:none; }

@media (max-width:1100px) {
  .reseller-panel-frame { grid-template-columns:210px minmax(0,1fr); }
  .reseller-panel-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .reseller-panel-dashboard-grid,.reseller-panel-create-layout,.reseller-panel-account-grid { grid-template-columns:1fr; }
  .reseller-panel-profile-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:760px) {
  .app-view.reseller-workspace-mode .page-root { padding:0 !important; }
  .reseller-panel-preview-shell { padding:8px 8px calc(92px + env(safe-area-inset-bottom)); }
  .reseller-panel-preview-strip { min-height:50px; padding:8px 9px; border-radius:16px; }
  .reseller-panel-preview-strip>div { gap:7px; }
  .reseller-panel-preview-strip span { font-size:6.5px; }
  .reseller-panel-preview-strip strong { display:none; }
  .reseller-panel-preview-strip button { min-height:32px; padding:0 9px; font-size:6.5px; }
  .reseller-panel-frame { display:block; min-height:auto; margin-top:8px; }
  .reseller-panel-sidebar { display:none; }
  .reseller-panel-main { border-radius:23px; }
  .reseller-panel-main-inner { padding:14px 12px 18px; }
  .reseller-panel-mobile-head { min-height:55px; padding:7px 2px 12px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(255,255,255,.05); margin-bottom:13px; }
  .reseller-panel-mobile-head .reseller-panel-brand { min-height:0; }
  .reseller-panel-mobile-head .reseller-panel-brand-mark { width:37px; height:37px; border-radius:12px; }
  .reseller-panel-page-head { min-height:0; align-items:flex-end; margin-bottom:13px; padding-bottom:13px; }
  .reseller-panel-page-head h2 { font-size:25px; }
  .reseller-panel-page-head p { max-width:34ch; font-size:6.5px; }
  .reseller-panel-role-pill { display:none; }
  .reseller-panel-page-head-actions .reseller-panel-mini-avatar { display:none; }
  .reseller-panel-hero-card { min-height:auto; padding:17px; align-items:flex-start; border-radius:21px; }
  .reseller-panel-hero-copy>span { font-size:6.5px; }
  .reseller-panel-hero-copy h3 { font-size:31px; }
  .reseller-panel-hero-copy p { font-size:7px; line-height:1.55; }
  .reseller-panel-hero-actions { flex-wrap:wrap; margin-top:13px; }
  .reseller-panel-hero-actions .button { min-height:38px; font-size:7px; }
  .reseller-panel-hero-status { display:none; }
  .reseller-panel-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:9px; }
  .reseller-panel-stat-grid article { min-height:88px; padding:12px; border-radius:17px; }
  .reseller-panel-stat-grid span,.reseller-panel-stat-grid small { font-size:6px; }
  .reseller-panel-stat-grid strong { margin:8px 0 4px; font-size:20px; }
  .reseller-panel-dashboard-grid { margin-top:9px; gap:9px; }
  .reseller-panel-card { padding:13px; border-radius:18px; }
  .reseller-panel-card-head { margin-bottom:10px; }
  .reseller-panel-customer-row { min-height:61px; grid-template-columns:minmax(0,1fr) auto; gap:8px; border-radius:14px; }
  .reseller-panel-customer-expire { text-align:right; }
  .reseller-panel-customer-state { grid-column:1; }
  .reseller-panel-customer-actions { grid-column:2; grid-row:2; }
  .reseller-panel-list-head { display:none; }
  .reseller-panel-toolbar { align-items:stretch; flex-direction:column; }
  .reseller-panel-search { min-width:0; width:100%; }
  .reseller-panel-toolbar .button { width:100%; justify-content:center; }
  .reseller-panel-form-grid { grid-template-columns:1fr; }
  .reseller-panel-profile-grid { grid-template-columns:1fr; gap:9px; }
  .reseller-panel-account-rows { grid-template-columns:1fr 1fr; }
  .reseller-panel-mobile-nav { position:fixed; z-index:80; left:9px; right:9px; bottom:max(8px,env(safe-area-inset-bottom)); height:70px; display:grid; grid-template-columns:repeat(5,1fr); align-items:center; padding:6px 7px; border:1px solid rgba(255,255,255,.09); border-radius:23px; background:rgba(10,15,27,.94); box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 18px 54px rgba(0,0,0,.38); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
  .reseller-mobile-nav-item,.reseller-mobile-create { min-width:0; min-height:54px; display:grid; place-items:center; align-content:center; gap:4px; border:0; border-radius:15px; background:transparent; color:rgba(144,161,188,.60); }
  .reseller-mobile-nav-item span,.reseller-mobile-create span { font-size:5.5px; font-weight:850; letter-spacing:.08em; }
  .reseller-mobile-nav-item.active { color:#83c9ff; background:rgba(49,127,255,.07); }
  .reseller-mobile-create { width:58px; height:58px; justify-self:center; margin-top:-22px; border:1px solid rgba(106,189,255,.28); border-radius:20px; background:linear-gradient(180deg,#2b9bff,#126dff); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.23),0 14px 32px rgba(20,112,255,.30); }
  .reseller-mobile-create span { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  .reseller-panel-nav-item,.reseller-panel-customer-actions button { transition:none !important; }
}



/* ===== R70 — SAME MANAGEMENT PANEL / RESELLER RBAC PREVIEW ===== */
.app-view.reseller-role-mode #desktopNav [data-route="resellers"],
.app-view.reseller-role-mode #desktopNav [data-route="audit"],
.app-view.reseller-role-mode #pageRoot [data-route-jump="resellers"],
.app-view.reseller-role-mode #pageRoot [data-route-jump="audit"] { display:none !important; }

.app-view.reseller-role-mode .topbar {
  border-color: rgba(70,166,255,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 46px rgba(0,80,180,.07) !important;
}

.app-view.reseller-role-mode #apiStatus {
  border-color: rgba(83,180,255,.22);
  background: rgba(26,109,205,.08);
  color:#9fd3ff;
}

.app-view.reseller-role-mode #apiStatus span {
  background:#55bfff;
  box-shadow:0 0 0 4px rgba(85,191,255,.10),0 0 14px rgba(85,191,255,.34);
}

.service-readonly .service-actions button:disabled {
  opacity:.34 !important;
  cursor:not-allowed !important;
  filter:saturate(.45);
  transform:none !important;
  box-shadow:none !important;
}

.backup-readonly-note {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:30px;
  padding:0 11px;
  border:1px solid rgba(90,169,255,.16);
  border-radius:999px;
  background:rgba(45,113,205,.07);
  color:#a9d6ff;
  font-size:7px;
  font-weight:850;
  letter-spacing:.13em;
  white-space:nowrap;
}

.backup-create-disabled {
  opacity:.38 !important;
  cursor:not-allowed !important;
  filter:saturate(.42);
  box-shadow:none !important;
  pointer-events:none !important;
}

.reseller-readonly-note {
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 2px;
  padding:10px 12px;
  border:1px solid rgba(82,170,255,.12);
  border-radius:13px;
  background:rgba(31,103,190,.055);
  color:rgba(164,207,255,.82);
  font-size:7px;
  font-weight:850;
  letter-spacing:.12em;
}

.reseller-readonly-note svg { flex:0 0 15px; }

.app-view.reseller-role-mode .admin-card {
  border-color:rgba(80,165,255,.12);
  background:linear-gradient(180deg,rgba(35,112,214,.08),rgba(255,255,255,.025));
}

@media (max-width:760px) {
  .app-view.reseller-role-mode .topbar-logout { min-width:106px !important; padding-inline:11px !important; }
  .app-view.reseller-role-mode .logout-label { font-size:7px !important; letter-spacing:.10em !important; }
  .reseller-readonly-note { font-size:7.5px; line-height:1.45; }
}



/* ===== UX/UI FINAL V2 — REMOVE MOBILE TAP HIGHLIGHT / BLUE FLASH ===== */
html,
body,
button,
a,
input,
select,
textarea,
[role="button"],
.nav-item,
.mobile-nav-item,
.mobile-create,
.mini-button,
.more-row,
.quick-action,
.quick-card,
.reseller-mobile-nav-item,
.reseller-mobile-create,
[data-route],
[data-global-action],
[data-user-action],
[data-service-action],
[data-backup-action],
[data-reseller-action],
[data-more-panel] {
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
}

button,
a,
[role="button"],
.nav-item,
.mobile-nav-item,
.mobile-create,
.mini-button,
.more-row,
.reseller-mobile-nav-item,
.reseller-mobile-create {
  touch-action: manipulation;
}

@media (hover: none) and (pointer: coarse) {
  button:focus,
  a:focus,
  [role="button"]:focus,
  .nav-item:focus,
  .mobile-nav-item:focus,
  .mobile-create:focus,
  .mini-button:focus,
  .more-row:focus,
  .reseller-mobile-nav-item:focus,
  .reseller-mobile-create:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .mobile-nav-item:active,
  .mobile-create:active,
  .nav-item:active,
  .mini-button:active,
  .more-row:active,
  .reseller-mobile-nav-item:active,
  .reseller-mobile-create:active {
    filter: none !important;
  }
}



  body.create-dialog-locked {
    overflow: hidden !important;
  }

  #createDialog.r18-create-dialog.r20-create-dialog::backdrop {
    background:
      radial-gradient(80% 70% at 50% 100%, rgba(10,132,255,.05), transparent 58%),
      rgba(4, 8, 16, .60);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    contain: layout paint style;
    will-change: transform, opacity;
  }

  #createDialog.r18-create-dialog.r20-create-dialog.profile-menu-open .sheet {
    overflow: hidden;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select {
    position: relative;
    z-index: 24;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-trigger {
    transform: translateZ(0);
    will-change: transform, border-color, box-shadow;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    contain: layout paint;
    will-change: scroll-position, transform, opacity;
    scrollbar-gutter: stable;
    max-height: min(42dvh, 340px);
    padding-right: 8px;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option {
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-option:hover {
    transform: none;
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
    contain: layout paint;
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      inset: calc(100% + 8px) 0 auto 0;
      max-height: min(38dvh, 320px);
      padding: 8px;
      border-radius: 18px;
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.03),
        0 16px 34px rgba(0,0,0,.28);
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      margin-top: 12px;
      padding-top: 12px;
      padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      gap: 10px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }
  }

  @media (prefers-reduced-motion: no-preference) {
    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-menu {
      animation-duration: .14s;
    }
  }



  #createDialog.r18-create-dialog.r20-create-dialog .sheet {
    scroll-padding-bottom: calc(var(--r19-actions-height, 84px) + 28px + env(safe-area-inset-bottom, 0px));
  }

  #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
    margin-bottom: calc(var(--r19-actions-height, 84px) + 20px);
  }

  #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
    margin-top: 0;
    padding-top: 10px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog .sheet {
      padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
      scroll-padding-bottom: calc(var(--r19-actions-height, 94px) + 30px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r20-create-dialog .profile-preview {
      margin-top: 14px;
      margin-bottom: calc(var(--r19-actions-height, 94px) + 22px + env(safe-area-inset-bottom, 0px));
    }

    #createDialog.r18-create-dialog.r20-create-dialog .sheet-actions {
      gap: 10px;
      padding-top: 10px;
      padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
  }



  @media (max-width: 760px) {
    #createDialog.r18-create-dialog.r20-create-dialog.r26-picker-open .sheet {
      overflow: hidden !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open {
      z-index: 160 !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-menu {
      position: fixed !important;
      max-height: none !important;
      overflow-x: hidden !important;
      overflow-y: auto !important;
      padding: 8px !important;
      border-radius: 22px !important;
      border: 1px solid rgba(255,255,255,.08) !important;
      background: rgba(16, 20, 30, .985) !important;
      box-shadow: 0 18px 44px rgba(0,0,0,.36) !important;
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
      overscroll-behavior: contain !important;
      -webkit-overflow-scrolling: touch !important;
      scrollbar-gutter: stable !important;
      z-index: 180 !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog .r18-profile-select.open .r18-profile-option {
      min-height: 74px;
      padding: 16px 18px;
      border-radius: 18px;
    }

    #createDialog.r18-create-dialog.r20-create-dialog.r26-picker-open .profile-preview {
      visibility: hidden !important;
      opacity: 0 !important;
      max-height: 0 !important;
      min-height: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
      border-width: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
    }

    #createDialog.r18-create-dialog.r20-create-dialog.r26-picker-open .sheet-actions {
      z-index: 10 !important;
    }
  }


/* ===== PREVIEW R59 — PREMIUM LOGOUT + LOGIN RETURN TRANSITION ===== */
.topbar-logout {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-width: 118px !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255, 105, 112, .25) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(100% 140% at 18% 0%, rgba(255, 125, 137, .17), transparent 52%),
    linear-gradient(180deg, rgba(108, 25, 36, .48), rgba(48, 12, 20, .74)) !important;
  color: #ffe7ea !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(255,255,255,.025),
    0 10px 28px rgba(84, 8, 24, .18) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease !important;
  -webkit-tap-highlight-color: transparent;
}

.topbar-logout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(108deg, transparent 0%, rgba(255,255,255,.10) 45%, transparent 68%);
  transform: translateX(-145%);
  opacity: .72;
  pointer-events: none;
}

.topbar-logout:hover,
.topbar-logout:focus-visible {
  transform: translateY(-1px) !important;
  border-color: rgba(255, 128, 139, .42) !important;
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 14px 34px rgba(105, 9, 30, .25),
    0 0 0 1px rgba(255, 87, 112, .05) !important;
  outline: none !important;
}

.topbar-logout:hover::before,
.topbar-logout:focus-visible::before {
  animation: logoutSweep .9s cubic-bezier(.2,.8,.2,1) forwards;
}

.topbar-logout:active,
.topbar-logout.is-pressed {
  transform: scale(.965) !important;
}

.logout-icon-shell {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 166, 174, .16);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.logout-icon-shell svg {
  width: 13px;
  height: 13px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logout-label {
  position: relative;
  z-index: 1;
  font-size: 7.8px;
  font-weight: 850;
  letter-spacing: .14em;
  white-space: nowrap;
}

.app-view.logout-exit {
  animation: appLogoutExit .26s cubic-bezier(.4,0,.6,1) forwards;
  pointer-events: none;
}

.login-view.logout-return {
  animation: loginSceneIn .36s cubic-bezier(.2,.82,.2,1) both;
}

.login-view.logout-return .login-shell {
  animation: loginCardIn .52s cubic-bezier(.18,.9,.22,1.08) both;
}

.login-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(111, 177, 255, .14) !important;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(48, 141, 255, .12), transparent 52%),
    radial-gradient(100% 90% at 100% 100%, rgba(112, 66, 255, .08), transparent 60%),
    linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.032)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.065),
    0 34px 90px rgba(0,0,0,.42),
    0 0 0 1px rgba(62, 138, 255, .025) !important;
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.055) 30%, transparent 56%);
  transform: translateX(-120%);
  animation: loginShellSheen 1.15s .18s ease-out both;
}

.login-shell .brand-mark {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    0 12px 28px rgba(10,132,255,.18),
    0 0 0 1px rgba(73,162,255,.05);
}

.login-shell .field input {
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-shell .field input:focus {
  border-color: rgba(84, 164, 255, .38);
  background: rgba(15, 24, 40, .64);
  box-shadow: 0 0 0 3px rgba(10,132,255,.08), inset 0 1px 0 rgba(255,255,255,.04);
}

#loginButton {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px rgba(0,95,220,.22);
}

#loginButton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.13) 48%, transparent 68%);
  transform: translateX(-145%);
  pointer-events: none;
}

#loginButton:hover::after,
#loginButton:focus-visible::after {
  animation: logoutSweep .85s ease forwards;
}

@keyframes logoutSweep {
  from { transform: translateX(-145%); }
  to { transform: translateX(145%); }
}

@keyframes appLogoutExit {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(.988); filter: blur(2px); }
}

@keyframes loginSceneIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes loginCardIn {
  0% { opacity: 0; transform: translateY(18px) scale(.965); }
  65% { opacity: 1; transform: translateY(-2px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loginShellSheen {
  from { transform: translateX(-120%); opacity: 0; }
  25% { opacity: .85; }
  to { transform: translateX(130%); opacity: 0; }
}

@media (max-width: 760px) {
  .topbar-logout {
    min-width: 106px !important;
    min-height: 36px !important;
    padding: 0 13px !important;
    gap: 7px !important;
  }

  .logout-icon-shell {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    border-radius: 8px;
  }

  .logout-icon-shell svg {
    width: 12px;
    height: 12px;
  }

  .logout-label {
    font-size: 7.3px;
    letter-spacing: .12em;
  }

  .login-shell {
    width: min(100%, 430px) !important;
    padding: 28px 21px 24px !important;
    border-radius: 28px !important;
  }

  #loginButton {
    min-height: 48px;
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar-logout,
  .topbar-logout::before,
  .app-view.logout-exit,
  .login-view.logout-return,
  .login-view.logout-return .login-shell,
  .login-shell::before,
  #loginButton::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}


/* ===== PRODUCTION R2 COMPATIBILITY — visual-neutral safety/CSP adaptations ===== */
.page-root:focus,
.page-root:focus-visible { outline: none !important; }
.promo-selector-card[data-promo-index="0"], .promo-plan-item[data-promo-index="0"]{--promo-index:0;}
#configDialog .config-field-card[data-field-index="0"]{--field-index:0;}
.promo-selector-card[data-promo-index="1"], .promo-plan-item[data-promo-index="1"]{--promo-index:1;}
#configDialog .config-field-card[data-field-index="1"]{--field-index:1;}
.promo-selector-card[data-promo-index="2"], .promo-plan-item[data-promo-index="2"]{--promo-index:2;}
#configDialog .config-field-card[data-field-index="2"]{--field-index:2;}
.promo-selector-card[data-promo-index="3"], .promo-plan-item[data-promo-index="3"]{--promo-index:3;}
#configDialog .config-field-card[data-field-index="3"]{--field-index:3;}
.promo-selector-card[data-promo-index="4"], .promo-plan-item[data-promo-index="4"]{--promo-index:4;}
#configDialog .config-field-card[data-field-index="4"]{--field-index:4;}
.promo-selector-card[data-promo-index="5"], .promo-plan-item[data-promo-index="5"]{--promo-index:5;}
#configDialog .config-field-card[data-field-index="5"]{--field-index:5;}
.promo-selector-card[data-promo-index="6"], .promo-plan-item[data-promo-index="6"]{--promo-index:6;}
#configDialog .config-field-card[data-field-index="6"]{--field-index:6;}
.promo-selector-card[data-promo-index="7"], .promo-plan-item[data-promo-index="7"]{--promo-index:7;}
#configDialog .config-field-card[data-field-index="7"]{--field-index:7;}
.promo-selector-card[data-promo-index="8"], .promo-plan-item[data-promo-index="8"]{--promo-index:8;}
#configDialog .config-field-card[data-field-index="8"]{--field-index:8;}
.promo-selector-card[data-promo-index="9"], .promo-plan-item[data-promo-index="9"]{--promo-index:9;}
#configDialog .config-field-card[data-field-index="9"]{--field-index:9;}
.promo-selector-card[data-promo-index="10"], .promo-plan-item[data-promo-index="10"]{--promo-index:10;}
#configDialog .config-field-card[data-field-index="10"]{--field-index:10;}
.promo-selector-card[data-promo-index="11"], .promo-plan-item[data-promo-index="11"]{--promo-index:11;}
#configDialog .config-field-card[data-field-index="11"]{--field-index:11;}

#configDialog .config-delay-30{animation-delay:30ms;}
#configDialog .config-delay-60{animation-delay:60ms;}
#configDialog .config-info-wide{grid-column:1 / -1;}


/* RBAC contract override: RESELLER may VIEW Backups */
.app-view.reseller-role-mode #desktopNav [data-route="backups"] { display:flex !important; }
.app-view.reseller-role-mode .quick-card[data-route-jump="backups"] { display:grid !important; }


/* PRODUCTION CSP-SAFE EXACT RESELLER CAPACITY */
.reseller-capacity-track > i[data-usage="0"]{width:0%;}
.reseller-capacity-track > i[data-usage="1"]{width:1%;}
.reseller-capacity-track > i[data-usage="2"]{width:2%;}
.reseller-capacity-track > i[data-usage="3"]{width:3%;}
.reseller-capacity-track > i[data-usage="4"]{width:4%;}
.reseller-capacity-track > i[data-usage="5"]{width:5%;}
.reseller-capacity-track > i[data-usage="6"]{width:6%;}
.reseller-capacity-track > i[data-usage="7"]{width:7%;}
.reseller-capacity-track > i[data-usage="8"]{width:8%;}
.reseller-capacity-track > i[data-usage="9"]{width:9%;}
.reseller-capacity-track > i[data-usage="10"]{width:10%;}
.reseller-capacity-track > i[data-usage="11"]{width:11%;}
.reseller-capacity-track > i[data-usage="12"]{width:12%;}
.reseller-capacity-track > i[data-usage="13"]{width:13%;}
.reseller-capacity-track > i[data-usage="14"]{width:14%;}
.reseller-capacity-track > i[data-usage="15"]{width:15%;}
.reseller-capacity-track > i[data-usage="16"]{width:16%;}
.reseller-capacity-track > i[data-usage="17"]{width:17%;}
.reseller-capacity-track > i[data-usage="18"]{width:18%;}
.reseller-capacity-track > i[data-usage="19"]{width:19%;}
.reseller-capacity-track > i[data-usage="20"]{width:20%;}
.reseller-capacity-track > i[data-usage="21"]{width:21%;}
.reseller-capacity-track > i[data-usage="22"]{width:22%;}
.reseller-capacity-track > i[data-usage="23"]{width:23%;}
.reseller-capacity-track > i[data-usage="24"]{width:24%;}
.reseller-capacity-track > i[data-usage="25"]{width:25%;}
.reseller-capacity-track > i[data-usage="26"]{width:26%;}
.reseller-capacity-track > i[data-usage="27"]{width:27%;}
.reseller-capacity-track > i[data-usage="28"]{width:28%;}
.reseller-capacity-track > i[data-usage="29"]{width:29%;}
.reseller-capacity-track > i[data-usage="30"]{width:30%;}
.reseller-capacity-track > i[data-usage="31"]{width:31%;}
.reseller-capacity-track > i[data-usage="32"]{width:32%;}
.reseller-capacity-track > i[data-usage="33"]{width:33%;}
.reseller-capacity-track > i[data-usage="34"]{width:34%;}
.reseller-capacity-track > i[data-usage="35"]{width:35%;}
.reseller-capacity-track > i[data-usage="36"]{width:36%;}
.reseller-capacity-track > i[data-usage="37"]{width:37%;}
.reseller-capacity-track > i[data-usage="38"]{width:38%;}
.reseller-capacity-track > i[data-usage="39"]{width:39%;}
.reseller-capacity-track > i[data-usage="40"]{width:40%;}
.reseller-capacity-track > i[data-usage="41"]{width:41%;}
.reseller-capacity-track > i[data-usage="42"]{width:42%;}
.reseller-capacity-track > i[data-usage="43"]{width:43%;}
.reseller-capacity-track > i[data-usage="44"]{width:44%;}
.reseller-capacity-track > i[data-usage="45"]{width:45%;}
.reseller-capacity-track > i[data-usage="46"]{width:46%;}
.reseller-capacity-track > i[data-usage="47"]{width:47%;}
.reseller-capacity-track > i[data-usage="48"]{width:48%;}
.reseller-capacity-track > i[data-usage="49"]{width:49%;}
.reseller-capacity-track > i[data-usage="50"]{width:50%;}
.reseller-capacity-track > i[data-usage="51"]{width:51%;}
.reseller-capacity-track > i[data-usage="52"]{width:52%;}
.reseller-capacity-track > i[data-usage="53"]{width:53%;}
.reseller-capacity-track > i[data-usage="54"]{width:54%;}
.reseller-capacity-track > i[data-usage="55"]{width:55%;}
.reseller-capacity-track > i[data-usage="56"]{width:56%;}
.reseller-capacity-track > i[data-usage="57"]{width:57%;}
.reseller-capacity-track > i[data-usage="58"]{width:58%;}
.reseller-capacity-track > i[data-usage="59"]{width:59%;}
.reseller-capacity-track > i[data-usage="60"]{width:60%;}
.reseller-capacity-track > i[data-usage="61"]{width:61%;}
.reseller-capacity-track > i[data-usage="62"]{width:62%;}
.reseller-capacity-track > i[data-usage="63"]{width:63%;}
.reseller-capacity-track > i[data-usage="64"]{width:64%;}
.reseller-capacity-track > i[data-usage="65"]{width:65%;}
.reseller-capacity-track > i[data-usage="66"]{width:66%;}
.reseller-capacity-track > i[data-usage="67"]{width:67%;}
.reseller-capacity-track > i[data-usage="68"]{width:68%;}
.reseller-capacity-track > i[data-usage="69"]{width:69%;}
.reseller-capacity-track > i[data-usage="70"]{width:70%;}
.reseller-capacity-track > i[data-usage="71"]{width:71%;}
.reseller-capacity-track > i[data-usage="72"]{width:72%;}
.reseller-capacity-track > i[data-usage="73"]{width:73%;}
.reseller-capacity-track > i[data-usage="74"]{width:74%;}
.reseller-capacity-track > i[data-usage="75"]{width:75%;}
.reseller-capacity-track > i[data-usage="76"]{width:76%;}
.reseller-capacity-track > i[data-usage="77"]{width:77%;}
.reseller-capacity-track > i[data-usage="78"]{width:78%;}
.reseller-capacity-track > i[data-usage="79"]{width:79%;}
.reseller-capacity-track > i[data-usage="80"]{width:80%;}
.reseller-capacity-track > i[data-usage="81"]{width:81%;}
.reseller-capacity-track > i[data-usage="82"]{width:82%;}
.reseller-capacity-track > i[data-usage="83"]{width:83%;}
.reseller-capacity-track > i[data-usage="84"]{width:84%;}
.reseller-capacity-track > i[data-usage="85"]{width:85%;}
.reseller-capacity-track > i[data-usage="86"]{width:86%;}
.reseller-capacity-track > i[data-usage="87"]{width:87%;}
.reseller-capacity-track > i[data-usage="88"]{width:88%;}
.reseller-capacity-track > i[data-usage="89"]{width:89%;}
.reseller-capacity-track > i[data-usage="90"]{width:90%;}
.reseller-capacity-track > i[data-usage="91"]{width:91%;}
.reseller-capacity-track > i[data-usage="92"]{width:92%;}
.reseller-capacity-track > i[data-usage="93"]{width:93%;}
.reseller-capacity-track > i[data-usage="94"]{width:94%;}
.reseller-capacity-track > i[data-usage="95"]{width:95%;}
.reseller-capacity-track > i[data-usage="96"]{width:96%;}
.reseller-capacity-track > i[data-usage="97"]{width:97%;}
.reseller-capacity-track > i[data-usage="98"]{width:98%;}
.reseller-capacity-track > i[data-usage="99"]{width:99%;}
.reseller-capacity-track > i[data-usage="100"]{width:100%;}


/* ===== UI R3 — ACTION ICON / INTERACTION FIDELITY ===== */
.user-actions .mini-button,
.service-actions .mini-button,
.reseller-card-actions .mini-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.user-actions .mini-button svg,
.service-actions .mini-button svg,
.reseller-card-actions .mini-button svg {
  width:12px;
  height:12px;
  flex:0 0 12px;
  display:block;
}
.promo-back-button svg {
  transform:rotate(180deg);
  transform-origin:center;
}
@media (max-width:760px) {
  .user-actions .mini-button,
  .service-actions .mini-button,
  .reseller-card-actions .mini-button { gap:5px; }
}


/* ===== UI R4 — CENTERED SINGLE COPY FEEDBACK ===== */
@media (max-width: 760px) {
  .toast-root.copy-center-active {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }
  .toast-root.copy-center-active .toast.copy {
    width: min(320px, calc(100vw - 32px));
  }
}

/* ===== UI R5 — DEDICATED CONFIG ROUTE + FULL RESELLER PREVIEW ===== */
.config-route-page {
  width:min(1500px,100%);
  margin:0 auto;
}
.config-route-head {
  min-height:92px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.config-route-head > div > span,
.config-route-title > div > span {
  color:#8dbfff;
  font-size:8px;
  font-weight:850;
  letter-spacing:.16em;
}
.config-route-head h3,
.config-route-title h2 {
  margin:6px 0 4px;
  letter-spacing:-.04em;
}
.config-route-head h3 { font-size:23px; }
.config-route-title h2 { font-size:clamp(28px,4vw,42px); }
.config-route-head p,
.config-route-title p {
  margin:0;
  color:rgba(171,191,218,.60);
  font-size:8px;
  font-weight:700;
  letter-spacing:.07em;
  line-height:1.55;
}
.config-route-head .button {
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.config-route-head .button svg { transform:rotate(180deg); }
.config-route-shell {
  padding:20px;
  overflow:hidden;
}
.config-route-title {
  margin-bottom:16px;
  padding-bottom:15px;
  border-bottom:1px solid rgba(255,255,255,.055);
}
.config-route-actions {
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.reseller-panel-dialog.preview-workspace .reseller-panel-sheet {
  inset:0 !important;
  top:0 !important;
  right:0 !important;
  bottom:0 !important;
  left:0 !important;
  width:100% !important;
  max-width:none !important;
  max-height:none !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  overflow:auto !important;
  background:#050811 !important;
}
.reseller-panel-dialog.preview-workspace .reseller-preview-banner,
.reseller-panel-dialog.preview-workspace .reseller-panel-head,
.reseller-panel-dialog.preview-workspace .reseller-panel-footer {
  display:none !important;
}
.reseller-panel-dialog.preview-workspace #resellerPanelBody {
  min-height:100dvh;
}

@media (max-width:760px) {
  .config-route-head {
    min-height:76px;
    padding:14px;
    align-items:flex-start;
  }
  .config-route-head h3 { font-size:20px; }
  .config-route-head p { max-width:30ch; font-size:6.5px; }
  .config-route-head .button { min-height:36px; padding:0 10px; font-size:6.5px; }
  .config-route-shell { padding:12px; border-radius:22px; }
  .config-route-actions { display:grid; grid-template-columns:1fr 1fr; }
  .config-route-actions .button:last-child { grid-column:1 / -1; }
}


/* ===== UI R5 — RESELLER PREVIEW CAPACITY ATTR WIDTHS ===== */
.reseller-panel-cap-track > i[data-usage="0"]{width:0%;}
.reseller-panel-cap-track > i[data-usage="1"]{width:1%;}
.reseller-panel-cap-track > i[data-usage="2"]{width:2%;}
.reseller-panel-cap-track > i[data-usage="3"]{width:3%;}
.reseller-panel-cap-track > i[data-usage="4"]{width:4%;}
.reseller-panel-cap-track > i[data-usage="5"]{width:5%;}
.reseller-panel-cap-track > i[data-usage="6"]{width:6%;}
.reseller-panel-cap-track > i[data-usage="7"]{width:7%;}
.reseller-panel-cap-track > i[data-usage="8"]{width:8%;}
.reseller-panel-cap-track > i[data-usage="9"]{width:9%;}
.reseller-panel-cap-track > i[data-usage="10"]{width:10%;}
.reseller-panel-cap-track > i[data-usage="11"]{width:11%;}
.reseller-panel-cap-track > i[data-usage="12"]{width:12%;}
.reseller-panel-cap-track > i[data-usage="13"]{width:13%;}
.reseller-panel-cap-track > i[data-usage="14"]{width:14%;}
.reseller-panel-cap-track > i[data-usage="15"]{width:15%;}
.reseller-panel-cap-track > i[data-usage="16"]{width:16%;}
.reseller-panel-cap-track > i[data-usage="17"]{width:17%;}
.reseller-panel-cap-track > i[data-usage="18"]{width:18%;}
.reseller-panel-cap-track > i[data-usage="19"]{width:19%;}
.reseller-panel-cap-track > i[data-usage="20"]{width:20%;}
.reseller-panel-cap-track > i[data-usage="21"]{width:21%;}
.reseller-panel-cap-track > i[data-usage="22"]{width:22%;}
.reseller-panel-cap-track > i[data-usage="23"]{width:23%;}
.reseller-panel-cap-track > i[data-usage="24"]{width:24%;}
.reseller-panel-cap-track > i[data-usage="25"]{width:25%;}
.reseller-panel-cap-track > i[data-usage="26"]{width:26%;}
.reseller-panel-cap-track > i[data-usage="27"]{width:27%;}
.reseller-panel-cap-track > i[data-usage="28"]{width:28%;}
.reseller-panel-cap-track > i[data-usage="29"]{width:29%;}
.reseller-panel-cap-track > i[data-usage="30"]{width:30%;}
.reseller-panel-cap-track > i[data-usage="31"]{width:31%;}
.reseller-panel-cap-track > i[data-usage="32"]{width:32%;}
.reseller-panel-cap-track > i[data-usage="33"]{width:33%;}
.reseller-panel-cap-track > i[data-usage="34"]{width:34%;}
.reseller-panel-cap-track > i[data-usage="35"]{width:35%;}
.reseller-panel-cap-track > i[data-usage="36"]{width:36%;}
.reseller-panel-cap-track > i[data-usage="37"]{width:37%;}
.reseller-panel-cap-track > i[data-usage="38"]{width:38%;}
.reseller-panel-cap-track > i[data-usage="39"]{width:39%;}
.reseller-panel-cap-track > i[data-usage="40"]{width:40%;}
.reseller-panel-cap-track > i[data-usage="41"]{width:41%;}
.reseller-panel-cap-track > i[data-usage="42"]{width:42%;}
.reseller-panel-cap-track > i[data-usage="43"]{width:43%;}
.reseller-panel-cap-track > i[data-usage="44"]{width:44%;}
.reseller-panel-cap-track > i[data-usage="45"]{width:45%;}
.reseller-panel-cap-track > i[data-usage="46"]{width:46%;}
.reseller-panel-cap-track > i[data-usage="47"]{width:47%;}
.reseller-panel-cap-track > i[data-usage="48"]{width:48%;}
.reseller-panel-cap-track > i[data-usage="49"]{width:49%;}
.reseller-panel-cap-track > i[data-usage="50"]{width:50%;}
.reseller-panel-cap-track > i[data-usage="51"]{width:51%;}
.reseller-panel-cap-track > i[data-usage="52"]{width:52%;}
.reseller-panel-cap-track > i[data-usage="53"]{width:53%;}
.reseller-panel-cap-track > i[data-usage="54"]{width:54%;}
.reseller-panel-cap-track > i[data-usage="55"]{width:55%;}
.reseller-panel-cap-track > i[data-usage="56"]{width:56%;}
.reseller-panel-cap-track > i[data-usage="57"]{width:57%;}
.reseller-panel-cap-track > i[data-usage="58"]{width:58%;}
.reseller-panel-cap-track > i[data-usage="59"]{width:59%;}
.reseller-panel-cap-track > i[data-usage="60"]{width:60%;}
.reseller-panel-cap-track > i[data-usage="61"]{width:61%;}
.reseller-panel-cap-track > i[data-usage="62"]{width:62%;}
.reseller-panel-cap-track > i[data-usage="63"]{width:63%;}
.reseller-panel-cap-track > i[data-usage="64"]{width:64%;}
.reseller-panel-cap-track > i[data-usage="65"]{width:65%;}
.reseller-panel-cap-track > i[data-usage="66"]{width:66%;}
.reseller-panel-cap-track > i[data-usage="67"]{width:67%;}
.reseller-panel-cap-track > i[data-usage="68"]{width:68%;}
.reseller-panel-cap-track > i[data-usage="69"]{width:69%;}
.reseller-panel-cap-track > i[data-usage="70"]{width:70%;}
.reseller-panel-cap-track > i[data-usage="71"]{width:71%;}
.reseller-panel-cap-track > i[data-usage="72"]{width:72%;}
.reseller-panel-cap-track > i[data-usage="73"]{width:73%;}
.reseller-panel-cap-track > i[data-usage="74"]{width:74%;}
.reseller-panel-cap-track > i[data-usage="75"]{width:75%;}
.reseller-panel-cap-track > i[data-usage="76"]{width:76%;}
.reseller-panel-cap-track > i[data-usage="77"]{width:77%;}
.reseller-panel-cap-track > i[data-usage="78"]{width:78%;}
.reseller-panel-cap-track > i[data-usage="79"]{width:79%;}
.reseller-panel-cap-track > i[data-usage="80"]{width:80%;}
.reseller-panel-cap-track > i[data-usage="81"]{width:81%;}
.reseller-panel-cap-track > i[data-usage="82"]{width:82%;}
.reseller-panel-cap-track > i[data-usage="83"]{width:83%;}
.reseller-panel-cap-track > i[data-usage="84"]{width:84%;}
.reseller-panel-cap-track > i[data-usage="85"]{width:85%;}
.reseller-panel-cap-track > i[data-usage="86"]{width:86%;}
.reseller-panel-cap-track > i[data-usage="87"]{width:87%;}
.reseller-panel-cap-track > i[data-usage="88"]{width:88%;}
.reseller-panel-cap-track > i[data-usage="89"]{width:89%;}
.reseller-panel-cap-track > i[data-usage="90"]{width:90%;}
.reseller-panel-cap-track > i[data-usage="91"]{width:91%;}
.reseller-panel-cap-track > i[data-usage="92"]{width:92%;}
.reseller-panel-cap-track > i[data-usage="93"]{width:93%;}
.reseller-panel-cap-track > i[data-usage="94"]{width:94%;}
.reseller-panel-cap-track > i[data-usage="95"]{width:95%;}
.reseller-panel-cap-track > i[data-usage="96"]{width:96%;}
.reseller-panel-cap-track > i[data-usage="97"]{width:97%;}
.reseller-panel-cap-track > i[data-usage="98"]{width:98%;}
.reseller-panel-cap-track > i[data-usage="99"]{width:99%;}
.reseller-panel-cap-track > i[data-usage="100"]{width:100%;}

/* ===== UI R5C2 — SERIAL ROUTE HANDOFF + MOTION STABILITY ===== */
html {
  scrollbar-gutter: stable;
}

body,
button,
a,
[role="button"],
.nav-item,
.mobile-nav-item,
.mobile-create,
.mini-button,
.icon-button {
  -webkit-tap-highlight-color: transparent;
}

.page-root:focus,
.page-root:focus-visible,
.sheet-dialog:focus,
.sheet-dialog:focus-visible,
.confirm-dialog:focus,
.confirm-dialog:focus-visible,
dialog.sheet-dialog:focus,
dialog.sheet-dialog:focus-visible,
dialog.confirm-dialog:focus,
dialog.confirm-dialog:focus-visible {
  outline: none !important;
  box-shadow: none;
}

.page {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}

.page-root {
  overflow-anchor: none;
}

.page-root.route-transitioning {
  isolation: isolate;
}

/* Route animation is intentionally NEW-PAGE-ONLY. Browser View Transition
   snapshots are not used because old/new snapshots visually overlap while
   cross-fading. The page renderer commits once, then motion.js animates only
   the destination page on the compositor. */
.page-root > .page {
  transform-origin: 50% 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sheet-dialog[open]::backdrop,
.confirm-dialog[open]::backdrop {
  animation: npxBackdropIn 155ms ease-out both;
}

@keyframes npxBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.nav-item,
.mobile-nav-item,
.mobile-create,
.button,
.mini-button,
.icon-button,
.more-row,
.promo-back-button,
.promo-copy-button,
.promo-copy-all {
  transition-property: color, background-color, border-color, opacity, box-shadow, transform;
  transition-duration: 155ms;
  transition-timing-function: cubic-bezier(.2,.78,.2,1);
}

.nav-item:active,
.mobile-nav-item:active,
.mobile-create:active,
.button:active,
.mini-button:active,
.icon-button:active {
  transform: scale(.988) !important;
}

.sheet-dialog[open] .sheet,
.confirm-dialog[open] .confirm-card {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 760px) {
  .sheet-dialog[open]::backdrop,
  .confirm-dialog[open]::backdrop {
    animation-duration: 140ms;
  }

  .nav-item,
  .mobile-nav-item,
  .mobile-create,
  .button,
  .mini-button,
  .icon-button,
  .more-row,
  .promo-back-button,
  .promo-copy-button,
  .promo-copy-all {
    transition-duration: 140ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-dialog[open]::backdrop,
  .confirm-dialog[open]::backdrop {
    animation: none !important;
  }
}
