body.brand-body {
  --internal-edge: rgba(27, 36, 49, 0.08);
  --internal-edge-strong: rgba(27, 36, 49, 0.14);
  --internal-surface: rgba(255, 255, 255, 0.84);
  --internal-surface-strong: rgba(255, 255, 255, 0.92);
  --internal-surface-warm: rgba(248, 242, 234, 0.84);
  --internal-shadow: 0 18px 52px rgba(27, 36, 49, 0.1);
  --internal-shadow-lg: 0 28px 72px rgba(27, 36, 49, 0.16);
}

body.brand-body #shell,
body.brand-body .shell {
  position: relative;
}

body.brand-body .login-shell,
body.brand-body .shell--narrow {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 52px) 20px;
}

body.brand-body .login-shell::before,
body.brand-body .shell--narrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(232, 101, 26, 0.18), transparent 22%),
    radial-gradient(circle at 88% 14%, rgba(27, 36, 49, 0.12), transparent 18%);
  pointer-events: none;
}

body.brand-body .login-card,
body.brand-body .auth-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--internal-edge);
  background:
    linear-gradient(180deg, var(--internal-surface-strong), rgba(248, 242, 234, 0.8));
  box-shadow: var(--internal-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.brand-body .login-card::after,
body.brand-body .auth-panel::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 148px;
  background:
    radial-gradient(circle at top right, rgba(232, 101, 26, 0.24), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
  pointer-events: none;
}

body.brand-body .login-card h1,
body.brand-body .auth-panel h2 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

body.brand-body .auth-panel h2 {
  font-size: clamp(2.2rem, 1.8rem + 1vw, 2.9rem);
}

body.brand-body .login-glance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}

body.brand-body .login-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 101, 26, 0.14);
  background: rgba(253, 240, 231, 0.82);
  color: var(--accent-2, #c95514);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.brand-body .login-form,
body.brand-body #login-form.stack {
  position: relative;
  z-index: 1;
  gap: 16px;
}

body.brand-body .login-form input,
body.brand-body .auth-panel input {
  min-height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

body.brand-body .login-form button,
body.brand-body #login-form .btn--primary {
  min-height: 50px;
}

body.brand-body .login-footnote,
body.brand-body .auth-links,
body.brand-body .auth-panel .muted {
  color: var(--muted, #5b6678);
}

body.brand-body .app-shell,
body.brand-body #dashboard-view {
  position: relative;
  min-height: 100vh;
}

body.brand-body .sidebar,
body.brand-body .sidebar.panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 22px 18px 18px;
  background:
    radial-gradient(circle at top right, rgba(232, 101, 26, 0.24), transparent 28%),
    linear-gradient(180deg, #1b2431 0%, #121924 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.brand-body .sidebar::before,
body.brand-body .sidebar.panel::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.08));
  opacity: 0.6;
}

body.brand-body .brand,
body.brand-body .sidebar-logo {
  position: relative;
  z-index: 1;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

body.brand-body .brand-mark,
body.brand-body .sidebar-logo svg {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(232, 101, 26, 0.24);
}

body.brand-body .brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
}

body.brand-body .brand-mark--glyph svg {
  width: 26px;
  height: 26px;
}

body.brand-body .brand strong,
body.brand-body .sidebar-logo > span {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

body.brand-body .brand small,
body.brand-body .sidebar-user-sub,
body.brand-body .agent-meta span {
  color: rgba(255, 255, 255, 0.54);
}

body.brand-body .sidebar-user,
body.brand-body .actor-card {
  position: relative;
  z-index: 1;
  padding: 15px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.brand-body .sidebar-user-name,
body.brand-body .actor-card strong {
  color: #fff;
}

body.brand-body .sidebar-nav,
body.brand-body .nav,
body.brand-body .sidebar-actions {
  position: relative;
  z-index: 1;
  gap: 8px;
}

body.brand-body .nav button,
body.brand-body .sidebar-nav-item,
body.brand-body .sidebar-footer-link,
body.brand-body .sidebar-footer-signout,
body.brand-body #profile-btn,
body.brand-body #logout,
body.brand-body .ghost-button,
body.brand-body .sidebar-footer .ghost-button {
  min-height: 46px;
  border-radius: 16px !important;
}

body.brand-body .nav button.active,
body.brand-body .sidebar-nav-item.active,
body.brand-body [data-filter].active {
  background: rgba(232, 101, 26, 0.16) !important;
  border-color: rgba(232, 101, 26, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.brand-body .sidebar-footer {
  position: relative;
  z-index: 1;
  gap: 10px;
}

body.brand-body .sidebar-footer .ghost-button {
  background: rgba(255, 255, 255, 0.08);
}

body.brand-body .main,
body.brand-body .content {
  padding: 30px;
  gap: 18px;
  align-content: start;
  background: transparent;
}

body.brand-body .topbar {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--internal-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 242, 234, 0.82));
  box-shadow: var(--internal-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.brand-body .topbar::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 220px;
  height: 160px;
  background: radial-gradient(circle at top left, rgba(232, 101, 26, 0.18), transparent 60%);
  pointer-events: none;
}

body.brand-body .topbar-copy,
body.brand-body .topbar > div:first-child {
  position: relative;
  z-index: 1;
}

body.brand-body .topbar h1 {
  margin: 6px 0;
  font-family: var(--font-display);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

body.brand-body .page-kicker,
body.brand-body .eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.brand-body .page-subtitle {
  max-width: 72ch;
}

body.brand-body .topbar-tools,
body.brand-body .topbar-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.brand-body .health-pill {
  border: 1px solid var(--internal-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.brand-body .page-controls,
body.brand-body .control-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.brand-body .control-bar {
  margin-bottom: 18px;
}

body.brand-body .panel,
body.brand-body .table-wrap,
body.brand-body .command-card,
body.brand-body .drawer,
body.brand-body #profile-modal,
body.brand-body .workspace-hero,
body.brand-body .wallet-stat,
body.brand-body .topup-section,
body.brand-body .wallet-row,
body.brand-body .signal-item,
body.brand-body .list-item {
  border-radius: 28px;
  border: 1px solid var(--internal-edge);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 242, 234, 0.8));
  box-shadow: var(--internal-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.brand-body .panel,
body.brand-body .command-card,
body.brand-body .workspace-hero {
  padding: 22px;
}

body.brand-body .panel-kicker {
  margin-bottom: 8px;
}

body.brand-body .panel-title {
  margin: 6px 0 16px;
  font-size: clamp(1.28rem, 1.16rem + 0.44vw, 1.6rem);
  line-height: 0.98;
}

body.brand-body .page-content > .panel > h3,
body.brand-body .panel > h3,
body.brand-body .command-card h3,
body.brand-body .workspace-hero h3,
body.brand-body .drawer h2,
body.brand-body .profile-header h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}

body.brand-body .command-card.primary,
body.brand-body .workspace-hero {
  background:
    radial-gradient(circle at top right, rgba(232, 101, 26, 0.24), transparent 34%),
    linear-gradient(145deg, #1b2431 0%, #263346 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

body.brand-body .command-card.primary p,
body.brand-body .workspace-hero p,
body.brand-body .workspace-hero .page-kicker {
  color: rgba(255, 255, 255, 0.76);
}

body.brand-body .metric-card,
body.brand-body .stat,
body.brand-body .card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(253, 240, 231, 0.88));
  border: 1px solid rgba(232, 101, 26, 0.14);
  box-shadow: var(--internal-shadow);
}

body.brand-body .metric-card::before,
body.brand-body .stat::before,
body.brand-body .card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(232, 101, 26, 0.8), rgba(255, 177, 118, 0.6));
}

body.brand-body .metric-card strong,
body.brand-body .stat strong,
body.brand-body .card strong,
body.brand-body .wallet-stat strong {
  font-family: var(--font-display);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

body.brand-body .table-wrap {
  overflow: auto;
}

body.brand-body thead th,
body.brand-body .table th {
  background: rgba(248, 242, 234, 0.86);
}

body.brand-body tbody tr:hover,
body.brand-body .table tbody tr:hover {
  background: rgba(232, 101, 26, 0.04);
}

body.brand-body .empty {
  padding: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(232, 101, 26, 0.18);
  background: rgba(253, 240, 231, 0.5);
  color: var(--muted, #5b6678);
}

body.brand-body .searchbox {
  min-height: 50px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--internal-edge);
  box-shadow: var(--internal-shadow);
}

body.brand-body input[type=text],
body.brand-body input[type=email],
body.brand-body input[type=password],
body.brand-body input[type=tel],
body.brand-body input[type=url],
body.brand-body input[type=number],
body.brand-body input[type=search],
body.brand-body select,
body.brand-body textarea {
  border-radius: 18px;
  border: 1px solid var(--internal-edge-strong);
  background: rgba(255, 255, 255, 0.84);
}

body.brand-body fieldset {
  border-radius: 22px;
  background: rgba(248, 242, 234, 0.76);
  border-color: var(--internal-edge);
}

body.brand-body .btn,
body.brand-body .primary-button,
body.brand-body .secondary-button,
body.brand-body .ghost-button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

body.brand-body .btn--primary,
body.brand-body .primary-button,
body.brand-body .login-form button {
  background: linear-gradient(135deg, var(--accent, #e8651a), var(--accent-2, #c95514));
  box-shadow: 0 14px 30px rgba(232, 101, 26, 0.2);
}

body.brand-body .btn--ghost,
body.brand-body .ghost-button,
body.brand-body .secondary-button {
  background: rgba(255, 255, 255, 0.76);
}

body.brand-body .drawer,
body.brand-body #profile-modal {
  border-radius: 32px 0 0 32px;
}

body.brand-body .drawer-head,
body.brand-body .profile-header {
  margin-bottom: 18px;
}

body.brand-body .profile-tabs {
  background: rgba(248, 242, 234, 0.74);
  border-color: rgba(232, 101, 26, 0.1);
}

body.brand-body .profile-tab.active {
  background: rgba(232, 101, 26, 0.12);
}

body.brand-body .table-actions,
body.brand-body .inline-form {
  gap: 12px;
}

body.brand-body .section-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

body.brand-body .signal-list,
body.brand-body .list {
  gap: 10px;
}

@media (max-width: 1180px) {
  body.brand-body .app-shell,
  body.brand-body #dashboard-view {
    grid-template-columns: 1fr;
  }

  body.brand-body .sidebar,
  body.brand-body .sidebar.panel {
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: 18px;
  }

  body.brand-body .main,
  body.brand-body .content {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  body.brand-body .login-card,
  body.brand-body .auth-panel {
    padding: 28px 22px;
    border-radius: 28px;
  }

  body.brand-body .topbar {
    padding: 20px 18px;
    border-radius: 26px;
  }

  body.brand-body .topbar,
  body.brand-body .control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  body.brand-body .topbar-actions,
  body.brand-body .topbar-tools {
    width: 100%;
    justify-content: stretch;
  }

  body.brand-body .topbar-actions > *,
  body.brand-body .topbar-tools > * {
    flex: 1;
  }

  body.brand-body .panel,
  body.brand-body .command-card,
  body.brand-body .workspace-hero,
  body.brand-body .drawer,
  body.brand-body #profile-modal {
    border-radius: 24px;
  }

  body.brand-body .drawer,
  body.brand-body #profile-modal {
    border-radius: 24px 24px 0 0;
  }

  body.brand-body .login-glance {
    gap: 6px;
  }

  body.brand-body .login-pill {
    width: 100%;
    justify-content: center;
  }
}
