:root {
  --bg: #f2f7ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #08184a;
  --muted: #6070a3;
  --line: rgba(73, 116, 255, 0.16);
  --primary: #1e63ff;
  --primary-strong: #1554f0;
  --violet: #7b4dff;
  --cyan: #20c7ff;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(71, 91, 180, 0.16);
  --glass-border: rgba(83, 126, 255, 0.22);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Admin backend-a redesign */
.admin-shell {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: 236px minmax(0, 1fr) !important;
  color: #07133d !important;
  background: #f6f9ff !important;
}

.admin-sidebar {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  padding: 26px 18px 22px !important;
  border-right: 1px solid #e6ecf7 !important;
  background: #fff !important;
  box-shadow: 16px 0 44px rgba(31, 48, 92, .04) !important;
  overflow-y: auto !important;
}

.admin-brand {
  min-height: 50px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 26px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 0 34px !important;
  color: #07133d !important;
  text-decoration: none !important;
}

.admin-brand .brand-mark {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2d7dff, #8157ff) !important;
  box-shadow: 0 12px 22px rgba(54, 91, 255, .25) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

.admin-brand span:last-of-type {
  display: grid !important;
  gap: 2px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

.admin-brand small {
  color: #6e7d9c !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.admin-brand i {
  width: 22px;
  height: 16px;
  display: block;
  position: relative;
}

.admin-brand i::before,
.admin-brand i::after {
  content: "";
  position: absolute;
  right: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1c2d59;
  box-shadow: 0 7px 0 #1c2d59;
}

.admin-brand i::after {
  top: 14px;
  width: 10px;
  box-shadow: none;
}

.admin-nav-list {
  display: grid !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
}

.admin-nav-list p {
  margin: 20px 10px 10px !important;
  color: #1f2f5f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.admin-nav-list a {
  min-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 0 14px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #54637f !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.admin-nav-list a::after {
  content: "›";
  margin-left: auto;
  color: #b6c1d5;
  font-size: 20px;
  line-height: 1;
}

.admin-nav-icon {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  object-fit: contain !important;
  opacity: .78 !important;
}

.admin-nav-list a:hover,
.admin-nav-list a.active {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #2f73ff, #527bff) !important;
  box-shadow: 0 12px 22px rgba(47, 115, 255, .22) !important;
}

.admin-nav-list a:hover::after,
.admin-nav-list a.active::after {
  color: rgba(255,255,255,.72);
}

.admin-nav-list a:hover .admin-nav-icon,
.admin-nav-list a.active .admin-nav-icon {
  opacity: 1 !important;
  filter: brightness(0) invert(1);
}

.admin-version {
  margin: 0 !important;
  position: fixed !important;
  right: 28px !important;
  bottom: 18px !important;
  z-index: 20 !important;
  color: #9aa8bf !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.admin-main {
  min-width: 0 !important;
  padding: 0 !important;
  background: radial-gradient(circle at 80% -10%, rgba(47,115,255,.08), transparent 34rem), #f6f9ff !important;
}

.admin-topbar {
  min-height: 76px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 0 40px !important;
  border-bottom: 1px solid #e6ecf7 !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 10px 30px rgba(31,48,92,.03) !important;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 !important;
  color: #0f6bff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.admin-breadcrumb a {
  color: #0f6bff;
  text-decoration: none;
}

.admin-breadcrumb span {
  color: #acb8cc;
}

.admin-breadcrumb b {
  color: #111d44;
  font-weight: 700;
}

.admin-top-title h1 {
  margin: 30px 0 8px !important;
  color: #07133d !important;
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.admin-top-title small {
  display: block;
  color: #61708d !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.admin-page-tools.admin-top-tools {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.admin-actions {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.admin-top-icon,
.admin-help {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  border-radius: 50%;
  color: #102150;
  background: transparent;
  font-weight: 800;
}

.admin-top-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.admin-top-icon::after {
  content: "";
  width: 7px;
  height: 2px;
  position: absolute;
  right: 7px;
  bottom: 8px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.admin-top-icon.bell::before {
  width: 13px;
  height: 15px;
  border-radius: 8px 8px 5px 5px;
}

.admin-top-icon.bell::after {
  width: 6px;
  right: 14px;
  bottom: 6px;
  transform: none;
}

.admin-top-icon i {
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 2px;
  right: 2px;
  border-radius: 999px;
  color: #fff;
  background: #ff415c;
  font-size: 10px;
  font-style: normal;
}

.admin-help {
  border: 2px solid #22335d;
  font-size: 14px;
}

.admin-user-dot {
  display: grid !important;
  grid-template-columns: 42px auto !important;
  align-items: center !important;
  gap: 10px !important;
  color: #101d43 !important;
  font-weight: 750 !important;
}

.admin-user-dot em {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d8e4ff, #8ca7e8);
  font-style: normal;
  font-weight: 800;
}

.admin-user-dot span {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.admin-user-dot small {
  color: #7a8aa6;
  font-size: 12px;
  font-weight: 600;
}

.admin-logout {
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid #dbe4f2 !important;
  border-radius: 8px !important;
  color: #315dff !important;
  background: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.admin-page-stack {
  display: grid !important;
  gap: 22px !important;
  padding: 28px 40px 46px !important;
}

.admin-dashboard-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-top: -8px;
  color: #526484;
  font-size: 14px;
  font-weight: 650;
}

.admin-dashboard-bar a,
.admin-page-tools .btn,
.admin-secondary-action {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2f73ff, #527bff) !important;
  box-shadow: 0 12px 24px rgba(47,115,255,.2) !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

.admin-secondary-action {
  color: #315dff !important;
  background: #eef4ff !important;
  box-shadow: none !important;
}

.admin-page-tools > .btn::before,
.admin-secondary-action::before {
  display: none !important;
  content: none !important;
}

.admin-search input {
  width: 250px !important;
  height: 42px !important;
  border: 1px solid #dfe7f3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

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

.admin-card,
.admin-kpi,
.table-wrap,
.admin-flow-card {
  border: 1px solid #e3eaf5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(31, 48, 92, .06) !important;
}

.admin-kpi {
  min-height: 176px !important;
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 26px 28px !important;
}

.admin-kpi > i {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef4ff;
}

.admin-kpi > i::before {
  color: #2f73ff;
  font-size: 31px;
  font-style: normal;
  font-weight: 800;
}

.admin-kpi.users > i::before { content: "👥"; }
.admin-kpi.nodes > i { background: #e9f9f2; }
.admin-kpi.nodes > i::before { content: "▦"; color: #18b980; }
.admin-kpi.plans > i { background: #f4ecff; }
.admin-kpi.plans > i::before { content: "▤"; color: #8d55f6; }
.admin-kpi.active > i { background: #fff1e6; }
.admin-kpi.active > i::before { content: "◔"; color: #ff8b2d; }

.admin-kpi div {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.admin-kpi span,
.admin-kpi small,
.admin-kpi strong,
.admin-kpi em {
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-kpi span {
  color: #111d44 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.admin-kpi small {
  color: #5e6f8e !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.admin-kpi strong {
  color: #07133d !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.admin-kpi em {
  color: #71809b !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

.admin-kpi::before,
.admin-kpi::after,
.admin-kpi small::after {
  display: none !important;
  content: none !important;
}

.admin-card {
  padding: 22px !important;
}

.section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 20px !important;
}

.section-head h2 {
  margin: 0 !important;
  color: #111d44 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.section-head p,
.eyebrow {
  color: #63728e !important;
  font-weight: 500 !important;
}

.quick-action-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.quick-action-grid a {
  min-height: 88px !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 42px !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #111d44 !important;
  background: linear-gradient(135deg, #f3f7ff, #fff) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

.quick-action-grid a:nth-child(2) { background: linear-gradient(135deg, #eafaf3, #fff) !important; }
.quick-action-grid a:nth-child(3) { background: linear-gradient(135deg, #f4ecff, #fff) !important; }
.quick-action-grid a:nth-child(4) { background: linear-gradient(135deg, #fff1e6, #fff) !important; }

.quick-action-grid img {
  width: 42px !important;
  height: 42px !important;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  object-fit: contain !important;
}

.quick-action-grid span {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.quick-action-grid small {
  color: #657590;
  font-size: 13px;
  font-weight: 500;
}

.quick-action-grid em {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2f73ff;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31,48,92,.1);
  font-size: 26px;
  font-style: normal;
  font-weight: 500;
}

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

.admin-overview-card,
.admin-status-card,
.admin-block-card,
.admin-activity-card {
  min-height: 320px;
}

.section-head button {
  height: 38px;
  padding: 0 18px;
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  color: #344668;
  background: #fff;
  font: inherit;
  font-weight: 650;
}

.admin-line-chart {
  height: 245px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(#e9eef8 1px, transparent 1px) 0 0 / 100% 48px;
}

.admin-line-chart::before,
.admin-line-chart::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 34px;
  left: 5%;
  height: 120px;
  border-bottom: 4px solid #2f73ff;
  border-radius: 0 0 70% 30%;
  transform: skewY(-11deg);
  box-shadow: 0 18px 26px rgba(47,115,255,.12);
}

.admin-line-chart::after {
  bottom: 24px;
  height: 56px;
  border-bottom-color: #19b980;
  transform: skewY(-7deg);
  box-shadow: none;
}

.admin-line-chart span,
.admin-line-chart b {
  position: absolute;
  width: 10px;
  height: 10px;
  right: 7%;
  border-radius: 50%;
  background: #2f73ff;
  bottom: 90px;
}

.admin-line-chart b {
  bottom: 48px;
  background: #19b980;
}

.admin-status-card p,
.admin-block-list p,
.admin-activity-list p {
  display: grid;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid #edf2f8;
}

.admin-status-card p {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 54px;
}

.admin-status-card i,
.admin-activity-list i {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #eef4ff;
}

.admin-status-card b {
  padding: 4px 9px;
  border-radius: 999px;
  color: #16a86e;
  background: #e9fbf3;
  font-size: 12px;
}

.admin-status-card > a,
.admin-activity-card > a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #176dff;
  text-decoration: none;
  font-weight: 750;
}

.admin-activity-list p {
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 6px 12px;
  min-height: 58px;
}

.admin-activity-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19b980;
}

.admin-activity-list span {
  overflow: hidden;
  color: #14234b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.admin-activity-list small {
  color: #62718d;
  font-weight: 600;
}

.admin-activity-list em {
  grid-column: 2 / -1;
  color: #7d8ba5;
  font-size: 13px;
  font-style: normal;
}

.admin-empty-feed {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: #8592aa;
  border: 1px dashed #dfe7f3;
  border-radius: 12px;
}

.table-wrap {
  overflow: auto !important;
}

.admin-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
}

.admin-table th {
  color: #6c7a95 !important;
  background: #f7faff !important;
  font-weight: 750 !important;
}

.admin-table th,
.admin-table td {
  padding: 17px 20px !important;
  border-bottom: 1px solid #edf2f8 !important;
}

.admin-table tbody tr:hover td {
  background: #fbfdff;
}

.deploy-hero-v2,
.admin-page-title {
  border: 1px solid #e3eaf5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(31, 48, 92, .06) !important;
}

.deploy-hero-v2 {
  padding: 28px !important;
}

.simple-deploy-grid {
  gap: 22px !important;
}

@media (max-width: 1100px) {
  .admin-kpi-grid,
  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .admin-dashboard-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .admin-dashboard-panels {
    grid-template-columns: 1fr !important;
  }
}

.admin-version {
  position: fixed !important;
  right: 28px !important;
  bottom: 18px !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  z-index: 20 !important;
  color: #9aa8bf !important;
  background: rgba(246, 249, 255, .82) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.admin-version {
  position: fixed !important;
  right: 28px !important;
  bottom: 18px !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  z-index: 20 !important;
  color: #9aa8bf !important;
  background: rgba(246, 249, 255, .82) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.admin-version {
  position: fixed !important;
  right: 28px !important;
  bottom: 18px !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  z-index: 20 !important;
  color: #9aa8bf !important;
  background: rgba(246, 249, 255, .82) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* Admin backend-a frame correction */
.admin-shell {
  grid-template-columns: 234px minmax(0, 1fr) !important;
}

.admin-sidebar {
  border-radius: 0 !important;
}

.admin-real-chart {
  display: grid;
  gap: 14px;
}

.admin-real-chart .chart-legend {
  display: flex;
  gap: 28px;
  color: #546482;
  font-size: 14px;
  font-weight: 650;
}

.admin-real-chart .chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-real-chart .chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2f73ff;
}

.admin-real-chart .chart-legend span:nth-child(2) i {
  background: #19b980;
}

.admin-real-chart label {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  color: #657590;
  font-size: 13px;
}

.admin-real-chart b {
  height: 28px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 0;
  border-radius: 999px;
  background: #f4f7fc;
}

.admin-real-chart b i,
.admin-real-chart b em {
  min-width: 2px;
  height: 6px;
  display: block;
  border-radius: 999px;
  background: #2f73ff;
}

.admin-real-chart b em {
  background: #19b980;
}

.admin-real-chart strong {
  color: #25365c;
  font-weight: 700;
  text-align: right;
}

.admin-status-card p.warn b {
  color: #b7791f;
  background: #fff7df;
}

.admin-status-card p.bad b {
  color: #d92d45;
  background: #fff0f3;
}

.admin-version {
  margin: 0 !important;
  position: fixed !important;
  right: 28px !important;
  bottom: 18px !important;
  z-index: 20 !important;
  color: #9aa8bf !important;
  background: rgba(246, 249, 255, .82);
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

.admin-topbar {
  min-height: 76px !important;
  padding: 0 38px !important;
}

.admin-top-title h1,
.admin-top-title small {
  display: none !important;
}

.admin-page-stack {
  padding-top: 26px !important;
}

.admin-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 2px;
}

.admin-page-hero h1 {
  margin: 0;
  color: #07133d;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-page-hero p {
  margin: 10px 0 0;
  color: #61708d;
  font-size: 15px;
  font-weight: 500;
}

.admin-sidebar {
  border-radius: 0 !important;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr !important;
  }
  .admin-sidebar {
    position: relative !important;
    height: auto !important;
  }
  .admin-topbar {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }
  .admin-top-title h1 {
    margin-top: 18px !important;
  }
  .admin-page-stack {
    padding: 24px !important;
  }
}

@media (max-width: 640px) {
  .admin-kpi-grid,
  .quick-action-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-kpi {
    grid-template-columns: 68px minmax(0, 1fr) !important;
    padding: 20px !important;
  }
  .admin-kpi > i {
    width: 64px;
    height: 64px;
  }
}

body {
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(139, 92, 246, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(229, 241, 255, 0.82)),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 18%, rgba(186, 152, 255, 0.55) 0 2px, transparent 3px),
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,0.34) 35%, transparent 55%);
  opacity: 0.8;
}

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

button,
input {
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1e6cff, #8a55ff);
  box-shadow: 0 16px 34px rgba(89, 98, 255, 0.28);
}

.btn-ghost {
  color: #3150aa;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
}

.flash-error {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.08);
}

.flash-success {
  color: var(--success);
  background: rgba(22, 163, 74, 0.08);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.field {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.muted-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--muted);
}

.app-shell {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 100vh;
  padding: 0 20px 20px 14px;
  gap: 28px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 10px;
  min-height: calc(100vh - 20px);
  padding: 24px 18px;
  border: 1px solid rgba(82, 128, 255, 0.18);
  border-radius: 0 24px 24px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(244,249,255,0.72));
  box-shadow: 14px 0 52px rgba(79, 106, 190, 0.12);
  backdrop-filter: blur(24px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: var(--primary-strong);
  font-size: 19px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.4), transparent),
    linear-gradient(135deg, #1f68ff, #9a5cff);
  box-shadow: 0 14px 30px rgba(78, 99, 255, 0.3), inset 0 0 18px rgba(255,255,255,0.45);
}

.brand strong {
  letter-spacing: 0;
}

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

.nav-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 13px;
  color: #23366f;
  font-weight: 700;
}

.nav-list a.active {
  color: #fff;
  background: linear-gradient(135deg, #2d6dff, #8d53ff);
  box-shadow: 0 16px 34px rgba(88, 95, 255, 0.3), inset 0 0 0 1px rgba(255,255,255,0.24);
}

.nav-section {
  margin: 18px 0 4px 18px;
  color: #7b8abf;
  font-size: 13px;
  font-weight: 700;
}

.support-card {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(124, 91, 255, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.pro-card {
  min-height: 190px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 75%, rgba(255,255,255,0.45), transparent 32%),
    linear-gradient(145deg, #7758ff, #3a74ff);
}

.pro-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 118px;
  height: 118px;
  border-radius: 28px;
  transform: rotate(22deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.85), rgba(71, 126, 255, 0.25)),
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.45) 49% 51%, transparent 52%);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.7), 0 18px 40px rgba(40,65,170,0.24);
  opacity: 0.72;
}

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

.mini-upgrade {
  width: max-content;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 11px;
  color: #215aff;
  background: #fff;
  font-weight: 800;
}

.support-card span {
  color: var(--muted);
  font-size: 13px;
}

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

.topbar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 110px;
  align-items: center;
  min-height: 72px;
  margin: 0 -20px 22px -28px;
  padding: 0 28px 0 22px;
  border-bottom: 1px solid rgba(73, 116, 180, 0.12);
  background: rgba(255,255,255,0.82);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
}

.topbar-brand {
  display: inline-grid;
  grid-template-columns: 42px auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 10px;
  width: max-content;
  color: #071641;
}

.topbar-brand span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #246fff;
  font-size: 28px;
}

.topbar-brand strong {
  font-size: 24px;
  line-height: 1;
}

.topbar-brand small {
  color: #436099;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.topnav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  min-height: 54px;
  color: #1d3477;
  font-weight: 750;
}

.topnav-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 8px;
}

.topnav-tabs a.active {
  color: #185dff;
}

.topnav-tabs a.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e63ff, #8a55ff);
}

.topbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.bell-dot {
  color: #1d3477;
  font-weight: 900;
}

.avatar-btn {
  width: auto;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2a6bff, #8d5bff);
  box-shadow: 0 14px 30px rgba(76, 98, 255, 0.28);
  font-weight: 900;
}

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

.dashboard-main-card {
  grid-column: span 5;
}

.design-hero {
  grid-column: 1 / -1;
  min-height: 218px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  padding: 34px 42px;
  border: 1px solid rgba(83, 126, 255, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 72% 32%, rgba(91, 148, 255, 0.24), transparent 26rem),
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(231,242,255,0.7));
  box-shadow: 0 24px 70px rgba(78, 100, 184, 0.13), inset 0 0 0 1px rgba(255,255,255,0.52);
  position: relative;
  overflow: hidden;
}

.design-hero h2 {
  margin: 0;
  color: #071b62;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0;
}

.design-hero p {
  color: #3150aa;
}

.crystal-scene {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
}

.crystal-scene::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 80px;
  border: 2px solid rgba(80, 120, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-13deg);
  filter: drop-shadow(0 12px 24px rgba(75, 105, 255, 0.18));
}

.crystal-scene span {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  transform: rotate(45deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(52, 124, 255, 0.2)),
    linear-gradient(45deg, rgba(32,199,255,0.62), rgba(138,85,255,0.82));
  box-shadow: inset 0 0 34px rgba(255,255,255,0.75), 0 24px 60px rgba(67,91,210,0.34);
}

.crystal-scene::after {
  content: "";
  position: absolute;
  right: 42px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff, #8a55ff);
  box-shadow: -210px 56px 0 rgba(255,255,255,0.8), -110px -22px 0 rgba(158,124,255,0.45);
}

.hero-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: fit-content;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(83, 126, 255, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
}

.hero-status-strip span {
  color: #6070a3;
}

.hero-status-strip strong {
  display: block;
  color: #071b62;
}

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

.dashboard-link {
  grid-column: span 3;
}

.dashboard-chart {
  grid-column: span 5;
}

.dashboard-orders {
  grid-column: span 7;
}

.subscription-card,
.metric-card,
.link-card,
.chart-card,
.orders-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.subscription-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  min-height: 242px;
  padding: 28px;
}

.subscription-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.subscription-card p {
  max-width: 520px;
  color: var(--muted);
}

.plan-meta {
  align-self: end;
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.plan-meta span,
.plan-meta small,
.metric-card span,
.metric-card small,
.link-card span {
  color: var(--muted);
}

.plan-meta strong {
  font-size: 24px;
}

.metric-card,
.link-card {
  display: grid;
  gap: 12px;
  min-height: 242px;
  padding: 22px;
}

.metric-card strong {
  font-size: 30px;
}

.metric-card strong small {
  font-size: 15px;
}

.ring {
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  margin: auto;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 800;
}

.ring-blue {
  background: conic-gradient(var(--primary) 55%, rgba(18, 103, 247, 0.12) 0);
}

.ring-violet {
  background: conic-gradient(var(--violet) 59%, rgba(139, 92, 246, 0.12) 0);
}

.link-card code {
  display: block;
  min-height: 84px;
  padding: 16px;
  overflow-wrap: anywhere;
  color: #344054;
  border-radius: 14px;
  background: rgba(239, 244, 255, 0.88);
}

.chart-card {
  min-height: 330px;
  padding: 22px;
}

.orders-card {
  min-height: 330px;
  padding: 22px;
}

.chart-card header,
.orders-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.chart-card h3,
.orders-card h3 {
  margin: 0;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(239, 244, 255, 0.88);
}

.segmented button {
  border: 0;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
}

.segmented button:first-child {
  color: var(--primary-strong);
  border-radius: 10px;
  background: #fff;
}

.chart-lines {
  height: 230px;
  padding: 10px 10px 0;
  border-radius: 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 52px, rgba(89,107,148,0.12) 53px 54px),
    rgba(248, 251, 255, 0.8);
}

.chart-lines svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-lines .area {
  fill: url(#normalTraffic);
}

.chart-lines .line-blue,
.chart-lines .line-violet {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.chart-lines .line-blue {
  stroke: var(--primary);
}

.chart-lines .line-violet {
  stroke: var(--violet);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.table-wrap {
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(239, 244, 255, 0.72);
}

.status-paid {
  display: inline-flex;
  padding: 5px 10px;
  color: var(--success);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
}

.page-stack {
  display: grid;
  gap: 18px;
}

.two-column {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.wide-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.section-head h2,
.section-head h3 {
  margin: 0;
}

.btn-danger {
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.06);
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 22px;
}

.copy-row code {
  padding: 14px 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(239, 244, 255, 0.86);
}

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

.info-grid div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.info-grid span {
  color: var(--muted);
}

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

.plan-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  border-color: rgba(79, 124, 255, 0.52);
  box-shadow: 0 24px 80px rgba(79, 124, 255, 0.2);
}

.plan-card h3,
.plan-card ul {
  margin: 0;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

.price {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
}

.price small {
  color: var(--muted);
  font-size: 14px;
}

.soft-pill {
  display: inline-flex;
  padding: 7px 12px;
  color: var(--primary-strong);
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.1);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.inline-form input,
.profile-form input {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

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

.profile-form .btn {
  justify-self: start;
}

.empty-state {
  display: grid;
  place-content: center;
  min-height: 180px;
  color: var(--muted);
  text-align: center;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.col-order {
  width: 38%;
}

.col-time {
  width: 24%;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .subscription-card,
  .design-hero,
  .chart-card,
  .orders-card {
    grid-column: span 6;
  }
  .dashboard-metric,
  .dashboard-link {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .sidebar {
    min-height: auto;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .subscription-card,
  .chart-card,
  .orders-card,
  .dashboard-metric,
  .dashboard-link {
    grid-column: span 1;
  }
  .subscription-card {
    grid-template-columns: 1fr;
  }
  .design-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .crystal-scene {
    height: 120px;
  }
  .copy-row,
  .inline-form,
  .profile-form,
  .info-grid,
  .plan-grid,
  .two-column {
    grid-template-columns: 1fr;
  }
}

/* Subscription page v5, matched to design/2.png. */
.subscription-v5 {
  gap: 20px;
}

.sub-v5-top,
.sub-v5-main {
  display: grid;
  gap: 20px;
}

.sub-v5-top {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr) minmax(240px, .55fr);
}

.sub-v5-main {
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .62fr);
}

.sub-v5-plan,
.sub-v5-traffic,
.sub-v5-renew,
.sub-v5-usage,
.sub-v5-link,
.sub-v5-devices {
  border: 1px solid #e6ebf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(41, 50, 110, .055);
}

.sub-v5-plan {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 190px;
  padding: 28px;
}

.sub-v5-gem {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), transparent 42%),
    linear-gradient(135deg, #b8a9ff, #311dd7);
  box-shadow: 0 18px 34px rgba(82, 53, 235, .24);
  transform: rotate(30deg);
}

.sub-v5-plan h2,
.sub-v5-usage h2,
.sub-v5-link h2,
.sub-v5-devices h2 {
  margin: 0;
  color: #11133f;
  font-size: 18px;
}

.sub-v5-plan p,
.sub-v5-link p,
.sub-v5-link small,
.sub-v5-devices small {
  margin: 8px 0 0;
  color: #687399;
}

.sub-v5-plan time {
  color: #27305d;
}

.sub-v5-plan > span {
  align-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  color: #16a34a;
  background: #e7faee;
  font-size: 12px;
}

.sub-v5-plan footer {
  grid-column: 2 / 4;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.sub-v5-plan footer a,
.sub-v5-plan footer button,
.sub-v5-link form button {
  min-height: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #4b31f1;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #3927ef, #7948ff);
}

.sub-v5-traffic,
.sub-v5-renew,
.sub-v5-link {
  padding: 26px;
}

.sub-v5-traffic small,
.sub-v5-renew small,
.sub-v5-stats small {
  display: block;
  color: #687399;
  font-size: 13px;
}

.sub-v5-traffic strong,
.sub-v5-renew strong {
  display: block;
  margin: 18px 0 10px;
  color: #11133f;
  font-size: 34px;
}

.sub-v5-traffic p,
.sub-v5-renew p {
  margin: 8px 0 0;
  color: #687399;
}

.sub-v5-traffic i {
  display: block;
  height: 9px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

.sub-v5-traffic i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3927ef, #8b4dff);
}

.sub-v5-traffic dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  gap: 14px;
}

.sub-v5-traffic dt {
  color: #687399;
  font-size: 12px;
}

.sub-v5-traffic dd {
  margin: 6px 0 0;
  color: #11133f;
}

.sub-v5-usage {
  padding: 26px;
}

.sub-v5-usage header,
.sub-v5-devices header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sub-v5-usage nav {
  display: inline-flex;
  gap: 6px;
}

.sub-v5-usage nav button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #687399;
  background: transparent;
}

.sub-v5-usage nav button.active {
  color: #3927ef;
  border-color: #cfc6ff;
  background: #f3f0ff;
}

.sub-v5-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sub-v5-stats div {
  padding: 14px;
  border: 1px solid #edf1f8;
  border-radius: 8px;
  background: #fbfcff;
}

.sub-v5-stats strong {
  display: block;
  margin: 8px 0;
  color: #11133f;
  font-size: 24px;
}

.sub-v5-stats p {
  margin: 0;
  color: #f03f4f;
  font-size: 12px;
}

.sub-v5-chart {
  width: 100%;
  height: 230px;
  display: block;
}

.sub-v5-link label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-height: 42px;
  margin: 14px 0 18px;
  border: 1px solid #e2e7f4;
  border-radius: 8px;
  overflow: hidden;
}

.sub-v5-link input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-v5-link label button {
  border: 0;
  color: #3927ef;
  background: #fff;
}

.sub-v5-link img {
  width: 142px;
  height: 142px;
  display: block;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #e6ebf6;
  border-radius: 8px;
}

.sub-v5-link form {
  margin-top: 20px;
}

.sub-v5-devices {
  padding: 24px;
}

.sub-v5-devices header span {
  color: #687399;
}

.sub-v5-devices > div {
  padding: 26px;
  border: 1px dashed #dfe5f2;
  border-radius: 8px;
  text-align: center;
}

.sub-v5-devices p {
  margin: 0;
  color: #27305d;
}

@media (max-width: 1180px) {
  .sub-v5-top,
  .sub-v5-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sub-v5-plan,
  .sub-v5-stats {
    grid-template-columns: 1fr;
  }
  .sub-v5-plan footer {
    grid-column: auto;
  }
}

/* Admin design pass: quiet white control-platform surfaces from design/frontend/admin-*.png. */
.admin-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: #f8fbff;
  color: #08184a;
}

.admin-sidebar {
  top: 0;
  height: 100vh;
  margin-left: 0;
  padding: 22px 12px;
  border: 0;
  border-right: 1px solid #dfe7f4;
  border-radius: 0;
  background: rgba(255,255,255,0.92);
  box-shadow: none;
}

.admin-brand {
  min-height: 76px;
  padding: 0 10px 18px;
  gap: 12px;
  color: #08184a;
}

.admin-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 16px;
}

.admin-brand span:last-child {
  font-size: 20px;
  line-height: 1.1;
}

.admin-brand small {
  margin-top: 4px;
  color: #61708f;
}

.admin-nav-list {
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid #e5ecf7;
}

.admin-nav-list a {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  color: #566684;
  font-size: 15px;
  font-weight: 700;
}

.admin-nav-list a:hover,
.admin-nav-list a.active {
  color: #2d58ff;
  background: linear-gradient(90deg, rgba(45,88,255,0.14), rgba(139,92,246,0.08));
  box-shadow: inset 3px 0 0 #2d58ff;
}

.admin-version {
  color: #8a98b6;
}

.admin-main {
  padding: 0;
}

.admin-topbar {
  min-height: 88px;
  padding: 0 36px;
  border-bottom: 1px solid #dfe7f4;
  background: rgba(255,255,255,0.9);
}

.admin-topbar h1 {
  margin: 0;
  color: #08184a;
  font-size: 24px;
}

.admin-actions {
  gap: 28px;
}

.admin-user-dot {
  color: #536584;
  font-weight: 700;
}

.admin-user-dot::first-letter {
  color: #11c978;
}

.admin-logout {
  border: 0;
  color: #3156d9;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.admin-page-stack {
  gap: 28px;
  padding: 42px 36px 60px;
}

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

.admin-kpi,
.admin-card {
  border: 1px solid #e1e8f5;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 44px rgba(65, 84, 130, 0.08);
  backdrop-filter: none;
}

.admin-kpi {
  min-height: 138px;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-content: center;
  gap: 4px 20px;
  padding: 26px 30px;
}

.admin-kpi::before,
.admin-card::before,
.dashboard-grid::before {
  display: none;
}

.admin-kpi span {
  grid-row: 2;
  color: #536584;
  font-size: 15px;
}

.admin-kpi strong {
  grid-row: 1;
  color: #3156ff;
  font-size: 36px;
}

.admin-kpi small {
  grid-row: span 2;
  grid-column: 1;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef4ff, #f4efff);
}

.admin-kpi small::after {
  content: "▣";
  color: #3156ff;
  font-size: 30px;
}

.admin-grid-main {
  grid-template-columns: 1fr;
}

.admin-card {
  padding: 28px 30px;
}

.admin-table {
  font-size: 15px;
}

.admin-table th,
.admin-table td {
  height: 64px;
  padding: 0 18px;
  border-bottom: 1px solid #e6edf7;
}

.admin-table th {
  color: #6b7898;
  background: #fff;
  font-weight: 800;
}

.admin-table strong {
  color: #12224d;
}

.table-wrap {
  border: 1px solid #e1e8f5;
  border-radius: 12px;
  background: #fff;
}

.admin-inline-create,
.admin-settings-form {
  border: 1px solid #e1e8f5;
  border-radius: 12px;
  background: #fff;
}

.admin-inline-create input,
.admin-settings-form input,
.admin-settings-form textarea {
  border-color: #dbe4f2;
  border-radius: 8px;
  background: #fff;
}

.table-action {
  min-height: 34px;
  border-color: #b9c8ff;
  border-radius: 7px;
  color: #3156ff;
  background: #fff;
}

.table-action.danger {
  color: #e2475d;
  border-color: transparent;
  background: transparent;
}

.chip.good,
.chip.status-good {
  color: #13a45f;
  background: #dff8e8;
}

.chip.warn,
.chip.status-warn {
  color: #f08a24;
  background: #fff0dc;
}

.chip.bad,
.chip.status-bad {
  color: #e2475d;
  background: #ffe8ed;
}

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

.quick-action-grid a {
  min-height: 66px;
  border: 1px solid #dfe7f4;
  border-radius: 10px;
  color: #1c2a52;
  background: linear-gradient(90deg, #fff, #f8fbff);
}

.user-top-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #071641;
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.12), transparent 34rem),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(243,248,255,0.92));
}

.user-topbar {
  height: 86px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 130px;
  align-items: center;
  padding: 0 34px;
  border-bottom: 1px solid rgba(66, 96, 150, 0.12);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(58, 80, 140, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  color: #071641;
  font-size: 28px;
  font-weight: 850;
}

.top-brand span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #24c6dc, #9f3cff);
  box-shadow: 0 12px 24px rgba(74, 105, 255, 0.26);
  font-size: 16px;
}

.user-topnav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: #435681;
  font-size: 16px;
  font-weight: 750;
}

.user-topnav a,
.top-logout button {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.user-topnav a.active {
  color: #1767ff;
}

.user-topnav a.active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1775ff, #983cff);
}

.nav-ico {
  font-size: 19px;
  line-height: 1;
}

.top-logout {
  justify-self: end;
  height: 100%;
}

.top-logout button {
  color: #52628a;
  font-weight: 750;
  font-size: 16px;
}

.user-top-main {
  width: 100%;
}

.user-footer {
  min-height: 56px;
  display: grid;
  place-items: center;
  color: #8b98bd;
  border-top: 1px solid rgba(66, 96, 150, 0.08);
}

.design-page {
  width: min(1400px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 30px 0 38px;
}

.design-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 22px;
}

.design-title-row h1,
.plans-hero h1,
.profile-hero h1,
.redeem-card h1 {
  margin: 0;
  color: #08184a;
  font-size: 32px;
  letter-spacing: 0;
}

.refresh-link {
  border: 0;
  color: #60709a;
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}

.design-panel {
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 18px 46px rgba(80, 100, 170, 0.08);
}

.design-panel h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.overview-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(73, 116, 180, 0.16);
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.overview-board div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 22px;
  border-right: 1px solid rgba(73, 116, 180, 0.12);
  border-bottom: 1px solid rgba(73, 116, 180, 0.12);
}

.overview-board div:nth-child(4n),
.overview-board div:last-child {
  border-right: 0;
}

.overview-board span,
.progress-row span,
.subscription-url-row strong,
.usage-metrics small,
.usage-metrics p,
.plans-hero p,
.profile-hero p,
.redeem-card p,
.profile-card p {
  color: #69789f;
}

.overview-board strong {
  font-size: 16px;
}

.active-badge {
  width: max-content;
  padding: 7px 12px;
  color: #0ca66a;
  border-radius: 6px;
  background: #d8f9ec;
  font-size: 13px;
}

.progress-list {
  display: grid;
  gap: 13px;
  padding: 18px 20px 4px;
  border: 1px solid rgba(73, 116, 180, 0.16);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 1fr) 50px;
  align-items: center;
  gap: 16px;
}

.progress-row div:first-child {
  display: flex;
  justify-content: space-between;
  grid-column: 1 / 3;
}

.progress-row small {
  color: #7280a7;
}

.progress-track {
  grid-column: 1 / 3;
  height: 12px;
  border-radius: 999px;
  background: #e9edf8;
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #177bff, #b035f0);
}

.progress-row b {
  grid-row: 1 / 3;
  grid-column: 3;
  color: #643eff;
  font-size: 22px;
}

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

.usage-metrics div {
  min-height: 84px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-content: center;
  gap: 2px 14px;
  padding: 16px;
  border: 1px solid rgba(71, 103, 166, 0.15);
  border-radius: 10px;
  background: rgba(249,251,255,0.88);
}

.metric-icon {
  grid-row: span 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #286dff;
  background: linear-gradient(135deg, #eef6ff, #f0e9ff);
}

.usage-metrics strong {
  font-size: 17px;
}

.usage-tabs {
  display: flex;
  gap: 0;
  margin: 20px 0 14px;
}

.usage-tabs button {
  min-width: 72px;
  height: 36px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #69789f;
  background: transparent;
  cursor: pointer;
  font-weight: 750;
}

.usage-tabs button.active {
  color: #1767ff;
  border-color: #1767ff;
}

.design-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(73, 116, 180, 0.14);
  border-radius: 10px;
}

.design-table th,
.design-table td {
  height: 42px;
  padding: 0 16px;
  background: rgba(255,255,255,0.78);
}

.design-table small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.orders-table small a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 4px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2f66ff, #7a55ff);
  font-size: 12px;
}

.design-table th {
  color: #64759e;
  background: rgba(248,250,255,0.92);
}

.subscription-url-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(73, 116, 180, 0.18);
  border-radius: 7px;
  overflow: hidden;
}

.subscription-url-row strong,
.subscription-url-row code {
  padding: 0 16px;
}

.subscription-url-row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #69789f;
}

.subscription-url-row .btn {
  height: 36px;
  min-height: 36px;
  margin-right: 6px;
  border-radius: 7px;
}

.usage-note {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(125, 75, 255, 0.2);
  border-radius: 10px;
  color: #64759e;
  background: rgba(250,248,255,0.9);
}

.usage-note ol {
  margin: 10px 0 0;
  padding-left: 22px;
  line-height: 1.8;
}

.secure-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 36px;
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
}

.secure-strip span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #206cff;
  background: linear-gradient(135deg, #eef6ff, #f0e9ff);
}

.secure-strip p {
  margin: 6px 0 0;
  color: #69789f;
}

.plans-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  position: relative;
}

.plans-hero h1 {
  font-size: 42px;
}

.plans-hero p {
  font-size: 18px;
}

.plans-orbit,
.profile-illustration {
  position: relative;
  min-height: 180px;
}

.plans-orbit::before,
.profile-illustration::before {
  content: "";
  position: absolute;
  inset: 18px 70px;
  border: 2px solid rgba(91, 119, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-13deg);
}

.plans-orbit span,
.profile-illustration::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 116px;
  height: 116px;
  border-radius: 22px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(53, 125, 255, 0.22)), linear-gradient(45deg, #28bdff, #8c4dff);
  box-shadow: inset 0 0 34px rgba(255,255,255,0.7), 0 22px 52px rgba(65, 92, 210, 0.26);
}

.plans-orbit i {
  position: absolute;
  left: 18%;
  top: 48%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #50b8ff, #9d57ff);
  box-shadow: 330px 34px 0 #8c5cff, 420px -6px 0 #4f77ff;
}

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

.design-plan-card {
  position: relative;
  min-height: 452px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 18px;
  padding: 40px 34px 32px;
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 20px 52px rgba(80, 100, 170, 0.09);
}

.design-plan-card em {
  position: absolute;
  right: -1px;
  top: -1px;
  min-width: 94px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 0 18px 0 18px;
  color: #7a3dff;
  background: #eee2ff;
  font-style: normal;
  font-weight: 850;
}

.plan-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #38b6ff, #824dff);
  box-shadow: 0 18px 34px rgba(54, 106, 255, 0.28);
  font-size: 34px;
}

.design-plan-card h2,
.profile-card h2,
.redeem-rules h2 {
  margin: 0;
  font-size: 24px;
}

.design-price {
  margin: 0;
  color: #2669ff;
  font-size: 34px;
  font-weight: 900;
}

.design-price small {
  color: #596a99;
  font-size: 14px;
}

.design-plan-card dl {
  display: grid;
  gap: 18px;
  margin: 10px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(73, 116, 180, 0.14);
}

.design-plan-card dl div {
  display: flex;
  justify-content: space-between;
  color: #54658e;
}

.design-plan-card dd {
  margin: 0;
  color: #24376a;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
  padding: 24px 42px;
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
}

.feature-strip div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 18px;
}

.feature-strip span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(73, 116, 180, 0.14);
  border-radius: 12px;
  color: #206cff;
}

.feature-strip small {
  color: #7280a7;
}

.table-footer {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #68769d;
  background: rgba(255,255,255,0.82);
}

.table-footer div {
  display: flex;
  gap: 8px;
}

.table-footer button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(73, 116, 180, 0.18);
  border-radius: 8px;
  color: #5370a6;
  background: #fff;
}

.table-footer button.active {
  color: #1767ff;
  border-color: #1767ff;
}

.redeem-design {
  display: grid;
}

.redeem-card {
  width: min(760px, 100%);
  padding: 38px 68px;
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 24px 58px rgba(80, 100, 170, 0.12);
  z-index: 1;
}

.redeem-card header,
.profile-card header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(73, 116, 180, 0.12);
}

.redeem-card header > span,
.profile-card header > span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4a5cff;
  background: linear-gradient(135deg, #eef6ff, #f0e9ff);
  font-size: 34px;
}

.redeem-form {
  display: grid;
  gap: 18px;
}

.redeem-form label {
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(73, 116, 180, 0.18);
  border-radius: 8px;
  color: #7684aa;
}

.redeem-form input,
.profile-form-design input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #24376a;
  background: transparent;
}

.redeem-form .btn {
  height: 60px;
  font-size: 18px;
  font-weight: 850;
}

.redeem-rules {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed rgba(73, 116, 180, 0.22);
}

.redeem-rules p {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #68769d;
}

.redeem-rules b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6246ff;
  background: #eff3ff;
}

.profile-hero {
  min-height: 158px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: center;
}

.profile-card {
  padding: 26px 34px 22px;
  margin-bottom: 26px;
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 20px 50px rgba(80, 100, 170, 0.08);
}

.profile-form-design {
  display: grid;
  gap: 0;
}

.profile-form-design label {
  min-height: 72px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(73, 116, 180, 0.12);
  color: #18264f;
  font-weight: 750;
}

.profile-form-design input {
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(73, 116, 180, 0.18);
  border-radius: 7px;
  background: rgba(255,255,255,0.72);
  font-weight: 500;
}

.profile-form-design .btn {
  width: max-content;
  margin-top: 22px;
}

.home-main .design-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.home-main .design-title-row,
.home-main .plans-hero,
.home-main .profile-hero {
  grid-column: span 12;
  min-height: auto;
  margin: 0;
}

.home-main .plans-hero,
.home-main .profile-hero {
  padding: 24px 28px;
  border: 1px solid #e0e9fb;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(70,95,170,.08);
}

.home-main .plans-hero h1,
.home-main .profile-hero h1,
.home-main .redeem-card h1 {
  font-size: 28px;
}

.home-main .plans-orbit,
.home-main .profile-illustration {
  display: none;
}

.home-main .design-panel,
.home-main .profile-card,
.home-main .redeem-card,
.home-main .feature-strip,
.home-main .secure-strip {
  margin: 0;
  border: 1px solid #e0e9fb;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(70,95,170,.08);
}

.home-main .sub-overview {
  grid-column: 1 / span 7;
  grid-row: 2;
}

.home-main .link-panel {
  grid-column: 8 / span 5;
  grid-row: 2;
}

.home-main .usage-panel,
.home-main .orders-panel,
.home-main .secure-strip,
.home-main .feature-strip {
  grid-column: span 12;
}

.home-main .usage-panel {
  grid-row: 3;
}

.home-main .secure-strip {
  grid-row: 4;
}

.home-main .design-plan-grid {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-main .design-plan-card {
  min-height: auto;
  padding: 26px;
}

.home-main .feature-strip {
  margin-top: 0;
  padding: 22px 26px;
}

.home-main .redeem-design {
  min-height: auto;
  place-items: stretch;
}

.home-main .redeem-card {
  grid-column: span 6;
  width: auto;
  padding: 28px;
}

.home-main .redeem-rules {
  margin-top: 28px;
}

.home-main .profile-card {
  grid-column: span 6;
  padding: 26px;
}

.home-main .profile-form-design label {
  grid-template-columns: 120px minmax(0, 1fr);
}

.home-main .overview-board,
.home-main .usage-metrics,
.home-main .feature-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-main .plan-hero-v2 {
  position: relative;
  min-height: 220px;
  padding: 40px 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 42%, rgba(129, 99, 255, .24), transparent 24%),
    radial-gradient(circle at 60% 56%, rgba(45, 172, 255, .22), transparent 30%),
    linear-gradient(110deg, #f7fbff, #eaf3ff 48%, #eee6ff);
}

.home-main .plan-hero-v2 h1 {
  color: #0757df;
  font-size: 38px;
}

.home-main .plan-hero-v2 p {
  margin: 16px 0 22px;
  color: #42608f;
  font-size: 18px;
  font-weight: 800;
}

.home-main .plan-hero-v2 small {
  display: inline-flex;
  padding: 10px 18px;
  color: #43608d;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-weight: 850;
}

.home-main .plan-hero-v2 .plans-orbit {
  display: block;
}

.home-main .plan-hero-v2 .refresh-link {
  position: absolute;
  right: 34px;
  bottom: 30px;
}

.plan-section-title-v2 {
  margin: 0;
  color: #071653;
  font-size: 20px;
}

.home-main .plan-section-title-v2 {
  grid-column: span 12;
  margin-top: 10px;
}

.home-main .plans-design .design-plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-main .plans-design .design-plan-card {
  gap: 14px;
  padding: 30px 26px 26px;
  border-radius: 14px;
}

.home-main .plans-design .design-plan-card.featured {
  border-color: #8f66ff;
  box-shadow: 0 20px 52px rgba(103, 77, 255, .16);
}

.home-main .plans-design .design-price {
  font-size: 34px;
}

.home-main .plans-design .feature-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-shop-actions-v2 {
  grid-column: span 12;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin: -10px 0 6px;
}

.plan-shop-actions-v2 a {
  min-width: 108px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  color: #174069;
  background: #fff;
  box-shadow: 0 10px 24px rgba(25, 63, 120, .10);
  font-weight: 850;
}

.plan-period-grid-v2 {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.plan-period-card-v2 {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(31, 53, 92, .20);
}

.plan-period-card-v2 header {
  height: 150px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #668df6;
}

.plan-period-card-v2 h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
}

.plan-period-card-v2 h2 span {
  font-size: 40px;
}

.plan-level-tabs-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 28px 34px 12px;
}

.plan-level-tabs-v2 button {
  height: 40px;
  border: 1px solid #e0e7f1;
  border-radius: 5px;
  color: #5f6f8a;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.plan-level-tabs-v2 button.active {
  color: #fff;
  border-color: #638bfa;
  background: #638bfa;
}

.plan-period-price-v2 {
  margin: 12px 34px 6px;
  color: #638bfa;
  font-size: 20px;
  font-weight: 900;
}

.plan-period-price-v2 strong {
  font-size: 44px;
  line-height: 1;
}

.plan-unlimited-v2 {
  display: block;
  margin: 0 34px 14px;
  color: #a4adbd;
  font-weight: 750;
}

.plan-card-line-v2 {
  display: block;
  height: 12px;
  margin: 0 34px 22px;
  border-radius: 99px;
  background: #edf1f6;
}

.plan-period-card-v2 dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 0;
  padding: 0 34px;
}

.plan-period-card-v2 dl div {
  text-align: center;
}

.plan-period-card-v2 dt {
  color: #a3acbc;
  font-size: 13px;
  font-weight: 850;
}

.plan-period-card-v2 dd {
  margin: 5px 0 0;
  color: #26384f;
  font-size: 18px;
  font-weight: 900;
}

.plan-period-card-v2 section {
  padding: 20px 34px 24px;
  text-align: center;
}

.plan-period-card-v2 section h3 {
  margin: 0 0 16px;
  color: #26384f;
  font-size: 18px;
}

.plan-period-card-v2 section p {
  margin: 0 0 12px;
  color: #26384f;
  font-size: 17px;
  font-weight: 850;
}

.plan-period-card-v2 form {
  padding: 0 34px 28px;
}

.plan-period-card-v2 form button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #638bfa;
  cursor: pointer;
  font-weight: 850;
}

.home-main .redeem-design .redeem-card {
  grid-column: span 12;
}

.ticket-form-panel {
  grid-column: span 12;
}

.ticket-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.ticket-form label {
  display: grid;
  gap: 8px;
  color: #243967;
  font-weight: 800;
}

.growth-hero-v2 {
  grid-column: span 12;
}

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

.growth-card-v2,
.growth-panel-v2 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 124, 255, .16);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 20px 48px rgba(76, 108, 180, .10);
}

.growth-card-v2 {
  min-height: 230px;
  padding: 24px;
}

.growth-card-v2::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -48px;
  width: 130px;
  height: 130px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(33, 110, 255, .16), rgba(109, 83, 255, .08));
  transform: rotate(18deg);
}

.growth-card-v2 > * {
  position: relative;
  z-index: 1;
}

.growth-card-v2 small {
  display: block;
  color: #52668f;
  font-weight: 850;
}

.growth-card-v2 h2 {
  margin: 12px 0 10px;
  color: #0757df;
  font-size: 34px;
  line-height: 1;
}

.growth-card-v2 p {
  margin: 0 0 22px;
  color: #52668f;
  line-height: 1.7;
  font-weight: 650;
}

.growth-icon-v2 {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e63ff, #8a55ff);
  box-shadow: 0 14px 26px rgba(53, 95, 255, .24);
  font-weight: 900;
}

.growth-card-v2 button,
.growth-code-list-v2 button {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1e63ff, #7a5cff);
  cursor: pointer;
  font-weight: 850;
}

.growth-card-v2 button:disabled {
  color: #617094;
  background: #eef3ff;
  cursor: default;
}

.growth-wide-v2 {
  grid-column: span 1;
}

.growth-code-list-v2 {
  display: grid;
  gap: 12px;
}

.growth-code-list-v2 label {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 74px;
  gap: 10px;
  align-items: center;
}

.growth-code-list-v2 b {
  color: #071653;
}

.growth-code-list-v2 input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dce6fb;
  border-radius: 12px;
  color: #52668f;
  background: #f8fbff;
}

.growth-panel-v2 {
  margin-top: 18px;
  padding: 22px 24px;
}

.growth-panel-v2 header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.growth-panel-v2 h3 {
  margin: 0;
  color: #071653;
  font-size: 20px;
}

.growth-panel-v2 header span {
  color: #7180a3;
  font-weight: 750;
}

.growth-table-v2 {
  display: grid;
  gap: 10px;
}

.growth-table-v2 p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  background: #f7faff;
  color: #52668f;
  font-weight: 750;
}

.growth-table-v2 b {
  color: #0757df;
}

.growth-table-v2 em {
  color: #7180a3;
  font-style: normal;
  font-weight: 750;
}

.ticket-form input,
.ticket-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(73, 116, 180, 0.18);
  border-radius: 8px;
  background: rgba(255,255,255,.82);
}

.ticket-form textarea {
  min-height: 132px;
  resize: vertical;
}

.tickets-design .design-table td {
  overflow-wrap: anywhere;
}

.ticket-form .btn {
  justify-self: end;
  width: max-content;
}

.ticket-reply-form {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.ticket-reply-form select,
.ticket-reply-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6e2f5;
  border-radius: 7px;
  background: #fff;
}

@media (max-width: 980px) {
  .user-topbar {
    height: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px 0;
  }
  .top-brand {
    gap: 10px;
    font-size: 24px;
  }
  .top-brand span {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
  }
  .user-topnav {
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    min-height: 46px;
    scrollbar-width: none;
  }
  .user-topnav::-webkit-scrollbar {
    display: none;
  }
  .user-topnav a {
    flex: 0 0 auto;
    min-width: 66px;
    justify-content: center;
    padding: 0 9px;
    white-space: nowrap;
    font-size: 13px;
    gap: 4px;
  }
  .nav-ico {
    font-size: 14px;
  }
  .top-logout {
    display: none;
  }
  .design-page {
    width: min(100% - 28px, 720px);
    padding-top: 24px;
  }
  .overview-board,
  .usage-metrics,
  .design-plan-grid,
  .plan-period-grid-v2,
  .feature-strip,
  .plans-hero,
  .profile-hero,
  .subscription-url-row {
    grid-template-columns: 1fr;
  }
  .plans-orbit,
  .profile-illustration {
    display: none;
  }
  .progress-row {
    grid-template-columns: 1fr 54px;
  }
  .progress-row div:first-child,
  .progress-track {
    grid-column: 1 / 2;
  }
  .progress-row b {
    grid-column: 2;
  }
  .redeem-card {
    padding: 30px 22px;
  }
  .profile-form-design label {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }
}

@media (max-width: 520px) {
  body {
    background:
      radial-gradient(circle at 55% 0%, rgba(139, 92, 246, 0.16), transparent 18rem),
      linear-gradient(180deg, #fbfdff, #eef5ff);
  }
  .design-page {
    width: calc(100vw - 24px);
    padding-top: 20px;
  }
  .design-title-row h1 {
    font-size: 26px;
  }
  .design-panel {
    padding: 18px;
    border-radius: 10px;
  }
  .subscription-design .design-panel {
    margin-bottom: 14px;
  }
  .overview-board div {
    min-height: 82px;
    padding: 0 18px;
  }
  .progress-list {
    padding: 14px 16px 2px;
  }
  .usage-metrics {
    gap: 12px;
  }
  .usage-metrics div {
    min-height: 102px;
    padding: 14px;
  }
  .subscription-url-row {
    gap: 0;
  }
  .subscription-url-row strong,
  .subscription-url-row code {
    padding: 8px 12px;
  }
  .subscription-url-row .btn {
    width: calc(100% - 12px);
    margin: 0 6px 6px;
  }
  .secure-strip {
    padding: 18px;
    gap: 12px;
  }
  .secure-strip span {
    width: 44px;
    height: 44px;
  }
}

.sales-page {
  min-height: 100vh;
  color: #071641;
  background: linear-gradient(180deg, #fbfdff, #eef5ff);
}

.sales-nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  border-bottom: 1px solid rgba(62, 85, 140, 0.12);
  background: rgba(255,255,255,0.8);
}

.sales-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 28px;
  font-weight: 900;
}

.sales-brand span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #19c7e5, #963dff);
}

.sales-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #33446f;
  font-weight: 750;
}

.sales-nav button,
.sales-plans button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-register {
  padding: 10px 16px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #246fff, #9445ff);
}

.sales-hero,
.sales-feature-grid,
.sales-plans,
.use-cases,
.sales-faq,
.sales-cta,
.sales-footer {
  width: min(1320px, calc(100vw - 96px));
  margin: 0 auto;
}

.sales-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 270px 460px;
  align-items: center;
  gap: 28px;
  position: relative;
}

.sales-tags,
.protocol-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sales-tags span,
.protocol-row b {
  padding: 8px 16px;
  color: #2767ff;
  border: 1px solid rgba(39, 103, 255, 0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
}

.sales-copy h1 {
  margin: 32px 0 18px;
  font-size: clamp(46px, 5.2vw, 68px);
  line-height: 1.05;
  white-space: nowrap;
}

.sales-copy em,
.sales-cta em {
  color: #6e46ff;
  font-style: normal;
}

.sales-copy p {
  max-width: 620px;
  color: #586890;
  font-size: 18px;
  line-height: 1.9;
}

.sales-actions {
  display: flex;
  gap: 18px;
  margin: 32px 0 24px;
}

.globe-scene {
  height: 320px;
  position: relative;
}

.globe-scene::before,
.globe-mini::before,
.home-crystal::before {
  content: "";
  position: absolute;
  inset: 50px 20px;
  border: 2px solid rgba(75, 116, 255, 0.16);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.globe-scene span,
.globe-mini::after,
.home-crystal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 150px;
  height: 150px;
  border-radius: 32px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(53, 125, 255, 0.26)), linear-gradient(45deg, #25c5ff, #8b54ff);
  box-shadow: inset 0 0 34px rgba(255,255,255,0.72), 0 24px 58px rgba(65, 92, 210, 0.26);
}

.node-status-card {
  min-height: 430px;
  padding: 30px;
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 24px 70px rgba(80, 100, 170, 0.12);
}

.node-status-card header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(73, 116, 180, 0.12);
}

.node-status-card header span {
  color: #00a96b;
  font-weight: 850;
}

.route-map {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px 20px;
  padding-top: 28px;
}

.route-map > b {
  grid-row: span 3;
  align-self: center;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid #2d6dff;
  border-radius: 50%;
  color: #2d6dff;
}

.route-map div {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 2px 12px;
  align-items: center;
  min-height: 82px;
  border-bottom: 1px solid rgba(73, 116, 180, 0.1);
}

.route-map i {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf2ff;
  color: #375fff;
  font-style: normal;
  font-weight: 850;
}

.route-map span {
  color: #00a96b;
  font-weight: 850;
}

.route-map small {
  color: #6d7b9e;
}

.sales-feature-grid,
.sales-plan-grid,
.use-cases div {
  display: grid;
  gap: 24px;
}

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

.sales-feature-grid article,
.sales-plan-card,
.use-cases article,
.sales-faq,
.sales-cta {
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 18px 46px rgba(80, 100, 170, 0.08);
}

.sales-feature-grid article {
  min-height: 150px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  padding: 24px;
}

.sales-feature-grid span {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2d6dff;
  background: #eff3ff;
  font-size: 34px;
}

.sales-feature-grid h3,
.sales-plan-card h3,
.use-cases h2,
.sales-faq h2,
.sales-cta h2 {
  margin: 0;
}

.sales-feature-grid p,
.sales-plan-card p,
.sales-plan-card li,
.use-cases small,
.sales-faq p,
.sales-cta p,
.sales-footer {
  color: #68769d;
}

.sales-plans,
.use-cases,
.sales-faq,
.sales-cta {
  margin-top: 56px;
}

.sales-kicker {
  margin: 0 0 12px;
  color: #00a5a8;
  font-size: 13px;
  font-weight: 850;
}

.sales-plans > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.sales-plans h2,
.use-cases h2 {
  font-size: 34px;
}

.sales-plans header button {
  width: 48px;
  height: 48px;
  margin-left: 10px;
  border: 1px solid rgba(73, 116, 180, 0.16);
  border-radius: 50%;
}

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

.sales-plan-card {
  min-height: 410px;
  display: grid;
  gap: 16px;
  padding: 34px;
}

.sales-plan-card.popular {
  border-color: rgba(79, 124, 255, 0.5);
}

.sales-plan-card small {
  color: #16a39d;
  font-weight: 850;
}

.sales-plan-card h3 {
  font-size: 28px;
}

.sales-plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
}

.sales-plan-card strong {
  align-self: end;
  color: #2767ff;
  font-size: 34px;
}

.sales-plan-card em {
  color: #68769d;
  font-size: 16px;
  font-style: normal;
}

.use-cases div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.use-cases article {
  display: grid;
  gap: 10px;
  padding: 26px;
  font-weight: 850;
}

.use-cases small {
  font-weight: 500;
  line-height: 1.7;
}

.sales-faq {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 10px 40px;
  padding: 32px;
}

.sales-faq details {
  grid-column: 2;
  padding: 16px 18px;
  border: 1px solid rgba(73, 116, 180, 0.14);
  border-radius: 10px;
  background: #fff;
}

.sales-faq div {
  grid-row: span 3;
}

.sales-cta {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  padding: 36px 76px;
  background: linear-gradient(135deg, rgba(245,241,255,0.92), rgba(228,244,255,0.9));
  overflow: hidden;
}

.globe-mini {
  height: 160px;
  position: relative;
}

.sales-footer {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sales-footer nav {
  display: flex;
  gap: 34px;
}

.home-hero,
.home-profile-card,
.home-stat,
.current-sub-card,
.home-usage-table,
.quick-card,
.notice-card,
.tutorial-card {
  border: 1px solid rgba(71, 103, 166, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 18px 46px rgba(80, 100, 170, 0.08);
}

.home-hero {
  grid-column: span 8;
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  padding: 36px 44px;
  background: linear-gradient(135deg, rgba(246,250,255,0.92), rgba(230,238,255,0.88));
  overflow: hidden;
}

.home-hero h2 {
  margin: 0;
  font-size: 34px;
}

.home-hero em {
  color: #1167ff;
  font-style: normal;
}

.home-crystal {
  height: 160px;
  position: relative;
}

.home-profile-card {
  grid-column: span 4;
  min-height: 220px;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-content: center;
  gap: 18px;
  padding: 30px;
}

.home-avatar {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c9cff, #8d47ff);
  font-size: 42px;
}

.home-profile-card span {
  display: inline-flex;
  padding: 4px 10px;
  color: #fff;
  border-radius: 999px;
  background: #5d44ff;
}

.home-profile-card small {
  grid-column: 2;
  color: #68769d;
}

.home-stat {
  grid-column: span 3;
  min-height: 170px;
  padding: 24px;
  position: relative;
}

.home-stat span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1d6bff;
  background: #eff3ff;
}

.home-stat h3 {
  margin: -38px 0 16px 62px;
  font-size: 17px;
}

.home-stat strong {
  display: block;
  color: #1767ff;
  font-size: 28px;
}

.home-stat p {
  color: #68769d;
}

.home-stat i {
  display: block;
  height: 36px;
  margin-top: 10px;
  background: linear-gradient(135deg, transparent 45%, #1767ff 46% 52%, transparent 53%);
}

.ring-stat b {
  position: absolute;
  right: 24px;
  bottom: 36px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#8d47ff 71%, #e8edf8 0);
}

.current-sub-card {
  grid-column: span 12;
  padding: 26px;
}

.current-sub-card header,
.home-usage-table header,
.notice-card header,
.tutorial-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.current-sub-card header span {
  color: #00a96b;
  font-weight: 850;
}

.current-sub-body {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
}

.sub-cube {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(43, 116, 255, 0.22)), linear-gradient(45deg, #22c3ff, #824bff);
}

.current-sub-body h2 {
  margin: 8px 0 12px;
}

.current-sub-body p {
  display: flex;
  gap: 10px;
}

.current-sub-body p b {
  padding: 8px 12px;
  color: #3861a8;
  border-radius: 8px;
  background: #eef4ff;
}

.sub-progress {
  display: grid;
  gap: 22px;
}

.sub-progress div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
}

.sub-progress i {
  grid-column: 1;
  height: 12px;
  border-radius: 999px;
  background: #e9edf8;
  overflow: hidden;
}

.sub-progress i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #177bff, #b035f0);
}

.sub-progress strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #643eff;
  font-size: 22px;
}

.home-usage-table,
.notice-card {
  grid-column: span 7;
  padding: 24px;
}

.quick-card,
.tutorial-card {
  grid-column: span 5;
  padding: 24px;
}

.quick-card > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quick-card a,
.tutorial-card > a {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(73, 116, 180, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  font-weight: 850;
}

.quick-card small,
.tutorial-card small,
.notice-card span {
  color: #68769d;
  font-weight: 500;
}

.notice-card p {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid rgba(73, 116, 180, 0.12);
}

.tutorial-card {
  display: grid;
  gap: 12px;
}

@media (max-width: 1100px) {
  .sales-hero,
  .sales-feature-grid,
  .sales-plan-grid,
  .use-cases div,
  .sales-faq,
  .sales-cta,
  .home-hero,
  .home-profile-card,
  .current-sub-body {
    grid-template-columns: 1fr;
  }
  .sales-hero,
  .home-hero,
  .home-profile-card,
  .home-stat,
  .current-sub-card,
  .home-usage-table,
  .quick-card,
  .notice-card,
  .tutorial-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .sales-nav {
    padding: 12px;
    height: auto;
    align-items: flex-start;
  }
  .sales-nav nav {
    gap: 12px;
    overflow-x: auto;
    font-size: 13px;
  }
  .sales-hero,
  .sales-feature-grid,
  .sales-plans,
  .use-cases,
  .sales-faq,
  .sales-cta,
  .sales-footer {
    width: calc(100vw - 24px);
  }
  .sales-hero {
    min-height: auto;
    padding: 34px 0;
  }
  .globe-scene,
  .node-status-card {
    display: none;
  }
  .sales-cta {
    padding: 24px;
  }
  .home-hero {
    padding: 24px;
  }
  .quick-card > div {
    grid-template-columns: 1fr;
  }
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  background: #f7f8f6;
  color: #17201c;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  border-right: 1px solid #e1e7e2;
  background: rgba(252, 253, 250, 0.96);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 16px;
  color: #111815;
  text-decoration: none;
  font-weight: 800;
}

.admin-brand small,
.admin-version {
  display: block;
  color: #7a8780;
  font-size: 12px;
  font-weight: 600;
}

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

.admin-nav-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #39453f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.admin-nav-list a:hover,
.admin-nav-list a.active {
  color: #008764;
  background: #edf4ef;
}

.admin-version {
  position: fixed;
  right: 28px;
  bottom: 18px;
  left: auto;
  top: auto;
  margin: 0;
  z-index: 20;
}

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

.admin-topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  border-bottom: 1px solid #e1e7e2;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.admin-topbar h1 {
  margin: 2px 0 0;
  font-size: 20px;
  letter-spacing: 0;
}

.admin-actions,
.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-search {
  width: min(360px, 38vw);
  padding: 6px 8px 6px 12px;
  border: 1px solid #dce4df;
  border-radius: 8px;
  background: #fff;
}

.admin-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
}

.icon-btn {
  min-width: 42px;
  height: 28px;
  border: 1px solid #dce4df;
  border-radius: 6px;
  background: #fafbf9;
  color: #6d7972;
}

.admin-page-stack {
  display: grid;
  gap: 18px;
  padding: 24px 28px 40px;
}

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

.admin-kpi,
.admin-card {
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 48, 40, 0.05);
}

.admin-kpi {
  min-height: 120px;
  padding: 22px;
}

.admin-kpi span,
.admin-kpi small {
  color: #6f7d75;
  font-weight: 650;
}

.admin-kpi strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 30px;
  letter-spacing: 0;
}

.admin-grid-main {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.4fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.admin-card {
  padding: 18px;
  min-width: 0;
}

.health-ring {
  width: 150px;
  height: 150px;
  margin: 12px auto;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: conic-gradient(#009b73 0 86%, #f1a500 86% 94%, #e93545 94% 100%);
  color: #17201c;
  position: relative;
}

.health-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
}

.health-ring strong,
.health-ring span {
  position: relative;
  z-index: 1;
}

.health-ring strong {
  font-size: 28px;
}

.status-list,
.quick-action-grid,
.admin-timeline {
  display: grid;
  gap: 10px;
}

.status-list div,
.admin-timeline div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.quick-action-grid a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  color: #006f54;
  background: #f8fbf8;
  text-decoration: none;
  font-weight: 750;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: #96a19b;
}

.dot.good,
.dot.status-good {
  background: #009b73;
}

.dot.warn,
.dot.status-warn {
  background: #f1a500;
}

.dot.bad,
.dot.status-bad {
  background: #e93545;
}

.admin-timeline div {
  align-items: flex-start;
  justify-content: flex-start;
}

.admin-timeline p {
  margin: 0;
}

.admin-timeline small {
  display: block;
  margin-top: 4px;
  color: #7a8780;
}

.table-wrap {
  overflow-x: auto;
}

.admin-inline-create {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #edf1ee;
  border-radius: 8px;
  background: #fbfcfa;
}

.admin-inline-create input {
  min-width: 0;
  height: 38px;
  border: 1px solid #dce4df;
  border-radius: 7px;
  padding: 0 10px;
  background: #fff;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #536059;
  font-size: 13px;
  font-weight: 700;
}

.inline-action {
  display: inline;
}

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

.admin-settings-form label {
  display: grid;
  gap: 7px;
  color: #536059;
  font-size: 13px;
  font-weight: 750;
}

.admin-settings-form input,
.admin-settings-form textarea {
  width: 100%;
  border: 1px solid #dce4df;
  border-radius: 7px;
  padding: 10px 11px;
  background: #fff;
  color: #17201c;
  font: inherit;
  font-weight: 500;
}

.admin-settings-form .full-row,
.admin-settings-form .btn {
  grid-column: 1 / -1;
}

.admin-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1ee;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #68766f;
  background: #fbfcfa;
  font-size: 12px;
  font-weight: 800;
}

.admin-table small {
  display: block;
  color: #7a8780;
  margin-top: 3px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef2ef;
  color: #536059;
  font-weight: 750;
  font-size: 12px;
}

.chip.good {
  color: #00795b;
  background: #e6f6ef;
}

.chip.warn {
  color: #9a6800;
  background: #fff4d9;
}

.chip.bad {
  color: #c72837;
  background: #ffe9ec;
}

.table-action {
  height: 28px;
  padding: 0 9px;
  border: 1px solid #d9e3dd;
  border-radius: 6px;
  background: #fff;
  color: #00795b;
  font-weight: 700;
}

.table-action + .table-action {
  margin-left: 6px;
}

.table-action.danger {
  color: #d72d3d;
}

.admin-empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  color: #7a8780;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 218px, rgba(103, 143, 255, 0.34) 219px, transparent 221px),
    radial-gradient(circle at 50% 48%, transparent 0 330px, rgba(118, 133, 190, 0.14) 331px, transparent 333px),
    radial-gradient(circle at 84% 50%, rgba(174, 92, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 10% 48%, rgba(93, 168, 255, 0.15), transparent 22rem),
    linear-gradient(rgba(206, 218, 240, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(206, 218, 240, 0.34) 1px, transparent 1px),
    #f8fbff;
  background-size: auto, auto, auto, auto, 48px 48px, 48px 48px, auto;
}

.admin-login-card {
  width: min(560px, calc(100vw - 32px));
  padding: 54px 52px 50px;
  border: 1px solid #d9e4fb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(65, 85, 156, 0.14);
}

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

.admin-login-brand .brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  border-radius: 13px;
  background: linear-gradient(135deg, #22a4ff, #b036f0);
  box-shadow: 0 14px 30px rgba(88, 100, 224, 0.26);
}

.admin-login-brand span:not(.brand-mark) {
  display: block;
  margin-top: 10px;
  color: #536489;
  font-size: 18px;
  font-weight: 700;
}

.admin-login-brand strong {
  color: #0b1855;
  font-size: 33px;
  letter-spacing: 0;
}

.admin-login-card label {
  position: relative;
  display: block;
  color: transparent;
}

.admin-login-card label::before {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 1;
  color: #8391b4;
  font-size: 24px;
  transform: translateY(-50%);
}

.admin-login-card .icon-user::before { content: "♙"; }
.admin-login-card .icon-lock::before { content: "▣"; }

.admin-login-card input {
  display: block;
  width: 100%;
  height: 62px;
  padding-left: 62px;
  font-size: 18px;
  border-color: #d7e2f5;
  border-radius: 8px;
  background: #fbfdff;
}

.admin-login-card .form-stack {
  gap: 20px;
}

.admin-login-card .btn-primary {
  height: 62px;
  margin-top: 8px;
  font-size: 21px;
  border-radius: 8px;
  background: linear-gradient(100deg, #238fff, #9d3ef2);
  box-shadow: 0 18px 38px rgba(73, 91, 225, 0.24);
}

.full {
  width: 100%;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
  }
  .admin-version {
    position: static;
    margin: 16px 8px 0;
  }
  .admin-topbar,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-search {
    width: 100%;
  }
  .admin-kpi-grid,
  .admin-grid-main,
  .admin-inline-create,
  .admin-settings-form {
    grid-template-columns: 1fr;
  }
}

.public-page {
  min-height: 100vh;
  color: #17201c;
  background: linear-gradient(180deg, #fbfcfa 0%, #f3f7f4 100%);
}

.public-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.public-nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-nav a {
  color: #39453f;
  text-decoration: none;
  font-weight: 700;
}

.public-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 42px;
  align-items: center;
  padding: 30px 0 70px;
}

.public-copy h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 110px);
  line-height: 0.96;
  letter-spacing: 0;
}

.public-copy p {
  max-width: 650px;
  color: #536059;
  font-size: 18px;
  line-height: 1.85;
}

.public-status-card,
.public-plan-card,
.platform-grid article {
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(30, 48, 40, 0.08);
}

.public-status-card {
  padding: 22px;
}

.connect-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connect-top small {
  margin-left: auto;
  color: #00795b;
  font-weight: 800;
}

.node-strip {
  margin-top: 26px;
  padding: 18px;
  border-radius: 8px;
  background: #f4faf6;
}

.service-ok {
  margin: 10px 0 0;
  color: #536059;
}

.node-strip span,
.node-strip small {
  display: block;
  color: #6f7d75;
  font-weight: 700;
}

.node-strip strong {
  display: block;
  margin: 8px 0;
  font-size: 44px;
}

.route-preview {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  color: #006f54;
  font-size: 12px;
  font-weight: 800;
}

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

.public-metrics div {
  padding: 12px;
  border: 1px solid #edf1ee;
  border-radius: 8px;
  background: #fbfcfa;
}

.public-metrics strong,
.public-metrics span {
  display: block;
}

.public-metrics span {
  margin-top: 4px;
  color: #6f7d75;
  font-size: 12px;
}

.public-notice {
  width: min(1180px, calc(100% - 32px));
  min-height: 44px;
  margin: -44px auto 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid #cae8db;
  border-radius: 8px;
  background: #f1fbf6;
  color: #315247;
}

.public-notice a {
  margin-left: auto;
  color: #00795b;
  text-decoration: none;
  font-weight: 800;
}

.route-preview span {
  height: 2px;
  background: #9ed9c4;
}

.public-plan-band,
.platform-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 70px;
}

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

.public-plan-card {
  padding: 22px;
}

.public-plan-card span {
  color: #00795b;
  font-weight: 800;
  font-size: 12px;
}

.public-plan-card h3 {
  margin: 10px 0;
  font-size: 22px;
}

.public-plan-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 28px;
}

.public-plan-card p,
.platform-grid p {
  color: #536059;
  line-height: 1.7;
}

.platform-grid {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-content: center;
}

.platform-grid article {
  min-height: 260px;
  padding: 28px;
}

.platform-grid h2 {
  margin: 0;
  font-size: 26px;
}

@media (max-width: 860px) {
  .public-nav,
  .public-nav nav {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-hero,
  .public-plan-grid,
  .platform-grid,
  .public-metrics {
    grid-template-columns: 1fr;
  }
  .public-notice {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 0;
    padding: 14px 16px;
  }
  .public-notice a {
    margin-left: 0;
  }
}

/* Design match pass: align all web surfaces with design/frontend/1.png. */
.admin-shell {
  grid-template-columns: 234px minmax(0, 1fr);
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(139, 92, 246, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(229, 241, 255, 0.84)),
    #f2f7ff;
}

.admin-sidebar {
  top: 10px;
  height: calc(100vh - 20px);
  margin-left: 14px;
  padding: 24px 18px;
  border: 1px solid rgba(82, 128, 255, 0.18);
  border-radius: 0 24px 24px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(244,249,255,0.72));
  box-shadow: 14px 0 52px rgba(79, 106, 190, 0.12);
  backdrop-filter: blur(24px);
}

.admin-brand {
  min-height: 50px;
  padding: 0 4px 24px;
  color: #0b2b8b;
  font-size: 19px;
}

.admin-brand small {
  color: #6070a3;
}

.admin-nav-list {
  gap: 7px;
}

.admin-nav-list a {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  color: #23366f;
  font-weight: 750;
}

.admin-nav-list a span {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.22);
  font-size: 11px;
}

.admin-nav-list a:hover,
.admin-nav-list a.active {
  color: #fff;
  background: linear-gradient(135deg, #2d6dff, #8d53ff);
  box-shadow: 0 16px 34px rgba(88, 95, 255, 0.3), inset 0 0 0 1px rgba(255,255,255,0.24);
}

.admin-crystal-card {
  margin-top: auto;
  min-height: 190px;
}

.admin-main {
  padding-right: 20px;
}

.admin-topbar {
  min-height: 74px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: blur(18px);
}

.admin-search {
  border-color: rgba(83, 126, 255, 0.2);
  border-radius: 14px;
  background: rgba(255,255,255,0.68);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42);
}

.admin-page-stack {
  padding: 0 0 34px;
}

/* Admin flow states */
.admin-flow-page {
  min-height: calc(100vh - 90px);
}

.admin-flow-card,
.flow-modal,
.generated-panel {
  border: 1px solid rgba(83, 126, 255, 0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 50px rgba(70, 96, 172, 0.12);
}

.admin-flow-card {
  padding: 24px;
}

.flow-ok,
.flow-hint {
  padding: 10px 18px;
  color: #19b979;
  border: 1px solid #bcebd5;
  border-radius: 8px;
  background: #f3fff9;
  font-weight: 800;
}

.flow-hint {
  display: block;
  margin: 0 0 18px;
  color: #64739a;
  background: #f7faff;
  border-color: #d8e3fb;
}

.flow-form {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 18px;
}

.flow-form.compact {
  grid-template-columns: 142px minmax(0, 1fr);
}

.flow-form label {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-column: 1 / -1;
  align-items: center;
  min-height: 42px;
  color: #13235b;
  font-weight: 750;
  border-bottom: 1px solid #e8eefb;
}

.flow-form label.full-row > *:not(em) {
  grid-column: 2;
}

.flow-form.compact label {
  grid-template-columns: 142px minmax(0, 1fr);
}

.flow-label {
  grid-column: 1;
}

.flow-form label > input,
.flow-form label > select,
.flow-form label > textarea,
.flow-form label > div {
  grid-column: 2;
}

.flow-form input,
.flow-form select,
.flow-form textarea,
.tag-input {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  color: #18285b;
  border: 1px solid #d7e2f5;
  border-radius: 7px;
  background: rgba(255,255,255,0.76);
}

.flow-form textarea {
  padding: 10px 12px;
}

.flow-form em {
  color: #e73556;
  font-style: normal;
}

.flow-form b,
.flow-form span {
  color: #6a789c;
}

.tag-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-input span {
  padding: 5px 12px;
  border: 1px solid #d7e2f5;
  border-radius: 7px;
  background: #f8fbff;
}

.toggle {
  display: inline-block;
  width: 40px;
  height: 22px;
  margin: 0 10px;
  border-radius: 999px;
  background: #e4eaf5;
  vertical-align: middle;
}

.toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(50,60,90,0.18);
}

.toggle.on {
  background: linear-gradient(90deg, #4a63f5, #7d4df8);
}

.toggle.on::after {
  margin-left: 20px;
}

.stepper {
  display: inline-grid;
  grid-template-columns: 42px 78px 42px;
  width: auto;
  border: 1px solid #d7e2f5;
  border-radius: 7px;
  overflow: hidden;
}

.stepper button,
.stepper input {
  height: 36px;
  border: 0;
  border-radius: 0;
  text-align: center;
  background: #fff;
}

.flow-primary {
  padding: 0 22px;
  height: 38px;
  color: #fff;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(100deg, #2f65ff, #704df4);
  box-shadow: 0 12px 22px rgba(70, 86, 220, 0.22);
}

.flow-mini-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #dce6f8;
  border-radius: 8px;
  background: #fff;
}

.flow-mini-table th,
.flow-mini-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #e8eefb;
  text-align: left;
}

.flow-footer,
.flow-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.flow-footer div {
  display: grid;
  gap: 12px;
  margin-right: auto;
  color: #657398;
}

.flow-footer button,
.flow-modal footer button {
  height: 38px;
  padding: 0 24px;
  border: 1px solid #d7e2f5;
  border-radius: 7px;
  background: #fff;
}

.flow-footer .flow-primary,
.flow-modal footer .flow-primary {
  color: #fff;
  border: 0;
  background: linear-gradient(100deg, #2f65ff, #704df4);
}

.flow-modal-wrap {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: start center;
  padding-top: 10px;
}

.flow-modal {
  width: min(720px, calc(100vw - 320px));
  padding: 0 24px 18px;
}

.flow-modal.relay {
  width: min(820px, calc(100vw - 320px));
}

.flow-modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid #e7eefb;
}

.flow-modal header h2 {
  margin: 0;
  color: #091653;
}

.flow-modal header button,
.generated-panel > button {
  border: 0;
  background: transparent;
  color: #66779f;
  font-size: 24px;
}

.generated-panel {
  position: relative;
  min-height: 210px;
  padding: 28px 72px;
  border-color: #b9ead4;
  background: linear-gradient(135deg, #f6fff9, rgba(255,255,255,0.82));
}

.generated-panel > button {
  position: absolute;
  right: 24px;
  top: 22px;
}

.generated-panel h2 {
  margin: 0 0 20px;
  color: #22cc86;
}

.generated-panel code {
  display: inline-block;
  min-width: 180px;
  color: #20c985;
  font-size: 17px;
  font-weight: 900;
}

.generated-panel div {
  margin: 12px 0;
}

.generated-panel button:not(:first-child) {
  height: 32px;
  padding: 0 18px;
  color: #3264ff;
  border: 1px solid #cbd7ff;
  border-radius: 7px;
  background: #f7f9ff;
}

/* User home, matched to design/frontend/user-home.png */
.user-home-page {
  min-height: 100vh;
  color: #071653;
  background:
    radial-gradient(circle at 54% 12%, rgba(84, 124, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.home-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 177px minmax(0, 1fr) 86px;
  align-items: center;
  height: 72px;
  padding: 0 18px 0 16px;
  border-bottom: 1px solid #e1e9f8;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
}

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #071653;
}

.home-logo img {
  width: 132px;
  height: 56px;
  object-fit: contain;
}

.shijie-logo {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 48px;
}

.shijie-logo i {
  position: absolute;
  border: 4px solid #1d66ff;
  border-radius: 15px;
  transform: rotate(45deg);
}

.shijie-logo i:nth-child(1) { inset: 12px 6px 12px 18px; }
.shijie-logo i:nth-child(2) { inset: 12px 18px 12px 6px; }
.shijie-logo i:nth-child(3) { inset: 3px 13px 23px 13px; }
.shijie-logo i:nth-child(4) { inset: 23px 13px 3px 13px; }

.home-logo strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.home-logo small {
  display: block;
  margin-top: 4px;
  color: #52668f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.home-topnav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 36px;
}

.home-topnav a {
  height: 72px;
  display: inline-flex;
  align-items: center;
  color: #0b1d5f;
  font-weight: 800;
  border-bottom: 3px solid transparent;
}

.home-topnav a.active {
  color: #115dff;
  border-color: #115dff;
}

.home-top-actions {
  justify-self: end;
}

.home-top-actions button {
  padding: 0;
  border: 0;
  color: #115dff;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.home-body {
  display: grid;
  grid-template-columns: 177px minmax(0, 1fr);
}

.home-sidebar {
  min-height: calc(100vh - 72px);
  padding: 34px 16px 28px;
  border-right: 1px solid #e1e9f8;
  background: rgba(255,255,255,0.66);
}

.home-sidebar nav {
  display: grid;
  gap: 10px;
}

.home-sidebar nav p {
  margin: 18px 10px 8px;
  color: #6a7da6;
  font-size: 14px;
  font-weight: 800;
}

.home-sidebar nav a {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #0d2463;
  border-radius: 10px;
  font-weight: 850;
}

.home-sidebar nav a.active {
  color: #155dff;
  background: linear-gradient(100deg, rgba(222,231,255,0.95), rgba(233,236,255,0.85));
  box-shadow: 0 12px 28px rgba(67, 98, 190, 0.1);
}

.home-side-plan {
  position: sticky;
  top: 128px;
  margin-top: 300px;
  min-height: 330px;
  padding: 28px 22px 0;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef4ff, #ffffff);
  box-shadow: 0 14px 36px rgba(67, 98, 190, 0.08);
}

.home-side-plan strong {
  color: #155dff;
  font-size: 22px;
}

.home-side-plan > span {
  margin-left: 10px;
  padding: 4px 8px;
  color: #fff;
  border-radius: 7px;
  background: #285cff;
  font-size: 12px;
}

.home-side-plan p {
  margin: 18px 0 6px;
  color: #071653;
  font-size: 18px;
  font-weight: 900;
}

.home-side-plan small {
  color: #607195;
}

.home-side-plan a {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 22px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(100deg, #246dff, #9a42f3);
  font-weight: 900;
}

.home-side-plan div {
  position: absolute;
  left: 40px;
  right: 28px;
  bottom: -34px;
  height: 150px;
  background: linear-gradient(135deg, rgba(64,142,255,.2), rgba(133,74,255,.28));
  transform: perspective(400px) rotateX(58deg) rotateZ(45deg);
  border-radius: 18px;
}

.home-main {
  padding: 24px 18px 48px;
}

.home-grid-v2 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.home-grid-v2 > * {
  min-width: 0;
}

.home-welcome-v2,
.home-profile-v2,
.home-metric-v2,
.home-current-v2,
.home-table-v2,
.home-quick-v2,
.home-notice-v2,
.home-tutorial-v2 {
  border: 1px solid #e0e9fb;
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 18px 44px rgba(70, 95, 170, 0.08);
}

.home-welcome-v2 {
  grid-column: span 12;
  width: 100%;
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px 300px;
  gap: 24px;
  align-items: center;
  position: relative;
  padding: 30px 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 16%, rgba(124, 60, 255, .18), transparent 28%),
    radial-gradient(circle at 68% 82%, rgba(32, 181, 255, .16), transparent 31%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,242,255,.95) 52%, rgba(247,250,255,.98));
}

.home-welcome-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 50%, rgba(255,255,255,.54) 51% 52%, transparent 53%),
    linear-gradient(90deg, rgba(72,112,255,.055) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(72,112,255,.045) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 38%, #000);
}

.home-welcome-v2::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(126, 60, 255, .18), rgba(36, 164, 255, .08) 46%, transparent 68%);
  filter: blur(8px);
  opacity: .82;
}

.home-welcome-v2 > * {
  position: relative;
  z-index: 1;
}

.home-ripple-v2 {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .46;
  mix-blend-mode: soft-light;
}

.home-welcome-v2 h1 {
  margin: 0 0 18px;
  font-size: 31px;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-welcome-v2 em {
  color: #1061ff;
  font-style: normal;
}

.home-welcome-v2 p {
  margin: 0;
  color: #52668f;
  font-size: 18px;
  font-weight: 800;
}

.home-slogan-v2 {
  display: inline-block;
  color: transparent !important;
  background:
    linear-gradient(100deg, #52668f 0 42%, #7b6cff 50%, #1ba7ff 56%, #52668f 66% 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: homeSloganSweep 10.5s cubic-bezier(.45, 0, .2, 1) infinite;
}

@keyframes homeSloganSweep {
  0%, 30% { background-position: 112% 0; }
  78%, 100% { background-position: -84% 0; }
}

.home-cube-v2 {
  position: relative;
  height: 130px;
  grid-column: 2;
}

.home-cube-v2::before,
.home-cube-v2::after,
.home-cube-v2 span {
  content: "";
  position: absolute;
  left: 58px;
  width: 70px;
  height: 70px;
  border-radius: 16px;
  transform: rotate(45deg) skew(-8deg, -8deg);
  background: linear-gradient(135deg, #25a4ff, #684cff);
  box-shadow: 0 26px 70px rgba(67, 91, 220, .24);
}

.home-cube-v2::before { top: 16px; opacity: .36; }
.home-cube-v2 span { top: 38px; opacity: .68; }
.home-cube-v2::after { top: 60px; opacity: .28; }

.home-profile-v2 {
  position: static;
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  align-self: center;
  grid-column: 3;
  gap: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-profile-v2 > div {
  min-width: 0;
}

.profile-orb {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #179cff, #8b45ff);
  font-size: 38px;
  font-weight: 900;
}

.profile-orb span {
  position: absolute;
  right: -6px;
  bottom: -2px;
  padding: 3px 11px 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5b53ff, #7d43ff);
  box-shadow: 0 8px 18px rgba(70, 64, 220, .25);
  font-size: 12px;
  line-height: 1;
}

.home-profile-v2 h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.home-profile-v2 p,
.home-profile-v2 small {
  display: block;
  color: #52668f;
  font-weight: 750;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.home-metric-v2 {
  grid-column: span 3;
  min-height: 150px;
  padding: 24px 26px;
}

.home-metric-v2 span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #1664ff;
  border-radius: 50%;
  background: #eef4ff;
}

.home-metric-v2 h3 {
  margin: -36px 0 24px 64px;
  font-size: 17px;
  white-space: nowrap;
}

.home-metric-v2 strong {
  color: #1262ff;
  font-size: 30px;
}

.home-metric-v2 p {
  margin: 14px 0;
  color: #52668f;
}

.home-metric-v2 p b {
  color: #e23b52;
}

.home-metric-v2 p b.down {
  color: #16a34a;
}

.metric-chart-v2 {
  display: block;
  width: 100%;
  height: 68px;
  margin-top: 10px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(75, 121, 255, .08) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(0deg, rgba(75, 121, 255, .08) 1px, transparent 1px) 0 0 / 100% 22px;
}

.home-metric-v2.remain {
  position: relative;
}

.home-metric-v2.remain div {
  position: absolute;
  right: 26px;
  bottom: 42px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#8748ff var(--remain-percent, 0%), #e8eef9 0);
  box-shadow: 0 10px 26px rgba(82, 71, 220, .16);
  font-weight: 900;
}

.home-current-v2 {
  grid-column: span 12;
  padding: 20px 26px;
}

.home-current-v2 header,
.home-table-v2 header,
.home-quick-v2 header,
.home-notice-v2 header,
.home-tutorial-v2 header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-current-v2 h3,
.home-table-v2 h3,
.home-quick-v2 h3,
.home-notice-v2 h3,
.home-tutorial-v2 h3 {
  margin: 0;
  font-size: 20px;
}

.home-current-v2 header span {
  color: #00a96b;
  font-weight: 900;
}

.current-layout-v2 {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) 360px 280px;
  gap: 24px;
  align-items: center;
  position: relative;
  padding-top: 20px;
}

.sub-hex-v2 {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e7f0ff, #fbfdff);
  box-shadow: inset 0 0 0 8px rgba(87, 105, 255, .12);
  overflow: hidden;
}

.sub-hex-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.current-layout-v2 section h2 {
  margin: 8px 0 14px;
  font-size: 24px;
  white-space: nowrap;
}

.current-layout-v2 section p {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  flex-wrap: nowrap;
}

.current-layout-v2 section b,
.current-layout-v2 section em {
  padding: 6px 10px;
  color: #3861a8;
  border-radius: 8px;
  background: #edf4ff;
  font-style: normal;
}

.current-layout-v2 section div {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.current-layout-v2 section a {
  padding: 9px 20px;
  color: #fff;
  border-radius: 8px;
  background: #1d67ff;
  font-weight: 900;
  white-space: nowrap;
}

.current-layout-v2 section a + a {
  color: #1d57de;
  border: 1px solid #d5e1fb;
  background: #fff;
}

.current-layout-v2 aside {
  display: grid;
  grid-column: 4;
  grid-row: 1;
  gap: 18px;
  border-left: 1px solid #e4ebf8;
  padding-left: 30px;
}

.sub-qr-v2 {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfebff;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 18px 36px rgba(70, 95, 170, .1);
}

.sub-qr-v2 img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
}

.sub-qr-v2 small {
  display: block;
  margin-bottom: 8px;
  color: #52668f;
  font-weight: 800;
}

.sub-qr-v2 label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.sub-qr-v2 input {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  color: #31406f;
  border: 1px solid #d7e3fb;
  border-radius: 8px;
  background: #fff;
}

.sub-qr-v2 button {
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: #1d67ff;
  font-weight: 900;
}

.sub-qr-v2 em {
  display: block;
  margin-top: 8px;
  color: #7a89ad;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.current-layout-v2 label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
}

.current-layout-v2 label i {
  grid-column: 1;
  height: 12px;
  border-radius: 999px;
  background: #e9eef8;
  overflow: hidden;
}

.current-layout-v2 label i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1d82ff, #a33df4);
}

.current-layout-v2 label strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: end;
  color: #0b1855;
  font-size: 22px;
}

.home-table-v2,
.home-notice-v2 {
  grid-column: span 7;
  padding: 24px;
}

.home-quick-v2,
.home-tutorial-v2 {
  grid-column: span 5;
  padding: 24px;
}

.home-table-v2 header button {
  height: 36px;
  padding: 0 16px;
  color: #1d67ff;
  border: 1px solid #d7e2f6;
  border-radius: 8px;
  background: #fff;
}

.home-table-v2 nav {
  display: flex;
  gap: 28px;
  margin-top: 20px;
  border-bottom: 1px solid #e5ecf8;
}

.home-table-v2 nav button {
  height: 38px;
  color: #52668f;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 900;
}

.home-table-v2 nav button.active {
  color: #1767ff;
  border-color: #1767ff;
}

.home-table-v2 table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}

.home-table-v2 th,
.home-table-v2 td {
  padding: 13px 14px;
  border-bottom: 1px solid #e5ecf8;
  color: #19306d;
  text-align: left;
}

.home-quick-v2 > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.home-quick-v2 a,
.home-tutorial-v2 > a {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #e0e9fb;
  border-radius: 12px;
  color: #12255f;
  background: #fff;
  box-shadow: 0 10px 26px rgba(70,95,170,.06);
}

.home-quick-v2 small,
.home-tutorial-v2 small,
.home-notice-v2 small {
  color: #63769d;
}

/* Dashboard redesign from design/1.png */
.dashboard-redesign-v3 {
  gap: 22px;
  color: #071653;
}

.dash-hero-v3,
.dash-panel-v3 {
  grid-column: span 12;
}

.dash-hero-v3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  min-height: 190px;
}

.dash-welcome-v3,
.dash-profile-v3,
.dash-panel-v3 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(209, 222, 255, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 70px rgba(70, 103, 190, .12);
  backdrop-filter: blur(18px);
}

.dash-welcome-v3 {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  padding: 34px 38px;
  background:
    radial-gradient(circle at 72% 48%, rgba(72, 126, 255, .22), transparent 18%),
    radial-gradient(circle at 86% 12%, rgba(172, 97, 255, .18), transparent 22%),
    linear-gradient(110deg, rgba(255,255,255,.92), rgba(229,241,255,.76) 52%, rgba(245,239,255,.86));
}

.dash-welcome-v3::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(155deg, transparent 0 42%, rgba(255,255,255,.65) 43% 45%, transparent 46%),
    repeating-linear-gradient(-8deg, rgba(31, 102, 255, .045) 0 1px, transparent 1px 16px);
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.dash-welcome-v3 h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.dash-welcome-v3 h1 em {
  color: #0d67ff;
  font-style: normal;
}

.dash-welcome-v3 p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #52668f;
  font-size: 16px;
}

.dash-orbit-cube-v3 {
  position: relative;
  z-index: 1;
  width: 178px;
  height: 130px;
  justify-self: center;
}

.dash-orbit-cube-v3::before,
.dash-orbit-cube-v3 span {
  content: "";
  position: absolute;
  inset: 30px 50px;
  border-radius: 20px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(34, 173, 255, .86), rgba(120, 72, 255, .9));
  box-shadow: 0 22px 46px rgba(58, 98, 224, .28);
}

.dash-orbit-cube-v3 span {
  inset: 44px 64px;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(45,122,255,.52));
}

.dash-orbit-cube-v3 i {
  position: absolute;
  inset: 28px 10px;
  border: 2px solid rgba(48, 115, 255, .48);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.dash-orbit-cube-v3 i::before,
.dash-orbit-cube-v3 i::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7e5bff;
}

.dash-orbit-cube-v3 i::before { left: 18px; top: 22px; }
.dash-orbit-cube-v3 i::after { right: 20px; bottom: 18px; background: #20a9ff; }

.dash-profile-v3 {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 178px;
  align-self: end;
  padding: 28px 24px;
}

.dash-avatar-v3 {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2aa7ff, #8b45ff);
  box-shadow: 0 18px 34px rgba(72, 77, 220, .26);
  font-size: 30px;
}

.dash-avatar-v3 b {
  position: absolute;
  right: -6px;
  bottom: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: #276dff;
  box-shadow: 0 8px 18px rgba(39, 109, 255, .28);
  font-size: 11px;
  font-weight: 700;
}

.dash-profile-v3 h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.dash-profile-v3 p,
.dash-profile-v3 small {
  display: block;
  color: #556b98;
  line-height: 1.45;
}

.dash-profile-v3 p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-profile-v3 > a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #cfe0ff;
  border-radius: 9px;
  color: #1767ff;
  background: rgba(255,255,255,.72);
}

.dash-panel-v3 {
  padding: 28px 30px;
}

.dash-panel-v3 > header,
.dash-table-v3 > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dash-panel-v3 h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #0a1c5f;
  font-size: 22px;
}

.dash-panel-v3 h3 span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f78ff, #9b44ff);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.38);
}

.dash-panel-v3 header b {
  color: #00b986;
}

.dash-sub-body-v3 {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding-top: 6px;
  border-top: 1px solid rgba(217, 226, 249, .9);
}

.dash-sub-icon-v3 {
  align-self: center;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(135deg, #edf5ff, #fff);
  box-shadow: inset 0 0 0 8px rgba(107, 115, 255, .13), 0 20px 34px rgba(78, 92, 210, .14);
}

.dash-sub-icon-v3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-sub-v3 dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.dash-sub-v3 dt {
  color: #61729b;
  font-size: 13px;
}

.dash-sub-v3 dd {
  margin: 8px 0 0;
  color: #091b5b;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.dash-sub-v3 label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  margin-top: 20px;
}

.dash-sub-v3 label small {
  color: #546894;
}

.dash-sub-v3 label i {
  grid-column: 1;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef9;
}

.dash-sub-v3 label i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18c1f1, #306fff 46%, #bb3df2);
}

.dash-sub-v3 label strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  color: #071653;
  font-size: 20px;
}

.dash-usage-v3 select,
.dash-table-v3 header button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d8e5ff;
  border-radius: 9px;
  color: #2e5eb7;
  background: rgba(255,255,255,.72);
}

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

.dash-metric-grid-v3 article {
  position: relative;
  min-height: 176px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid #e0e9fb;
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}

.dash-metric-grid-v3 small {
  color: #53699a;
}

.dash-metric-grid-v3 strong {
  display: block;
  margin: 18px 0 8px;
  color: #1262ff;
  font-size: 28px;
}

.dash-metric-grid-v3 p {
  margin: 0 0 8px;
  color: #52668f;
}

.dash-ring-card-v3 div {
  position: absolute;
  right: 22px;
  bottom: 46px;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2b73ff var(--ring-percent, 0%), #e8eef9 0);
  box-shadow: 0 12px 28px rgba(73, 100, 210, .14);
}

.dash-ring-card-v3 div::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: #fff;
}

.dash-ring-card-v3 div span {
  position: relative;
  z-index: 1;
  color: #071653;
  font-weight: 700;
}

.dash-table-v3 nav,
.dash-link-v3 nav {
  display: flex;
  gap: 28px;
  margin-top: -8px;
  border-bottom: 1px solid #e3ebfb;
}

.dash-table-v3 nav button,
.dash-link-v3 nav button {
  height: 38px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #53699a;
  background: transparent;
}

.dash-table-v3 nav button.active,
.dash-link-v3 nav button.active {
  color: #1767ff;
  border-color: #1767ff;
}

.dash-table-scroll-v3 {
  overflow-x: auto;
}

.dash-table-v3 table {
  width: 100%;
  min-width: 680px;
  margin-top: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
}

.dash-table-v3 th,
.dash-table-v3 td {
  padding: 13px 18px;
  border-bottom: 1px solid #e4ecfb;
  color: #1f3674;
  text-align: left;
}

.dash-table-v3 th {
  background: rgba(239, 245, 255, .78);
}

.dash-link-row-v3 {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #dfe9fb;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}

.dash-link-row-v3 code {
  overflow: hidden;
  color: #61729b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-link-row-v3 button,
.dash-link-row-v3 a {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #d7e3ff;
  border-radius: 9px;
  color: #1767ff;
  background: rgba(255,255,255,.8);
}

.dash-link-v3 section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #e1eafc;
  border-radius: 14px;
  background: rgba(248,251,255,.74);
}

.dash-link-v3 ol {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #52668f;
  line-height: 1.8;
}

.dash-globe-v3 {
  position: relative;
  min-height: 120px;
}

.dash-globe-v3 span {
  position: absolute;
  right: 52px;
  bottom: 4px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), transparent 18%),
    linear-gradient(135deg, rgba(45,151,255,.82), rgba(134,69,255,.78));
  box-shadow: 0 20px 42px rgba(70, 95, 190, .22);
}

.dash-globe-v3 i {
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 206px;
  height: 76px;
  border: 2px solid rgba(93, 105, 255, .38);
  border-radius: 50%;
  transform: rotate(-10deg);
}

@media (max-width: 1100px) {
  .dash-hero-v3 {
    grid-template-columns: 1fr;
  }

  .dash-profile-v3 {
    align-self: stretch;
  }

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

  .dash-link-v3 section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-redesign-v3 {
    gap: 14px;
  }

  .dash-hero-v3 {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
  }

  .dash-welcome-v3 {
    min-height: 176px;
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .dash-welcome-v3 h1 {
    font-size: 24px;
    white-space: normal;
  }

  .dash-orbit-cube-v3 {
    position: absolute;
    right: 8px;
    bottom: 14px;
    width: 134px;
    height: 96px;
    opacity: .55;
  }

  .dash-profile-v3 {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 20px 18px;
  }

  .dash-avatar-v3 {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }

  .dash-profile-v3 > a {
    grid-column: 1 / -1;
    width: max-content;
  }

  .dash-panel-v3 {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .dash-panel-v3 > header {
    margin-bottom: 16px;
  }

  .dash-panel-v3 h3 {
    font-size: 18px;
  }

  .dash-sub-body-v3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dash-sub-icon-v3 {
    width: 88px;
    height: 88px;
  }

  .dash-sub-v3 dl,
  .dash-metric-grid-v3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dash-sub-v3 label {
    grid-template-columns: 1fr auto;
  }

  .dash-metric-grid-v3 article {
    min-height: 154px;
  }

  .dash-ring-card-v3 div {
    right: 18px;
    bottom: 34px;
  }

  .dash-table-v3 nav,
  .dash-link-v3 nav {
    gap: 22px;
    overflow-x: auto;
  }

  .dash-link-row-v3 {
    grid-template-columns: 1fr;
  }

  .dash-link-row-v3 code {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dash-link-v3 section {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .dash-globe-v3 {
    min-height: 96px;
  }

  .dash-globe-v3 span {
    right: 34px;
    width: 86px;
    height: 86px;
  }

  .dash-globe-v3 i {
    right: 8px;
    width: 150px;
    height: 56px;
  }
}

/* User console v4, matched to design/1.png. */
.console-v4-page {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  color: #11133f;
  background: #f7f9ff;
}

.console-v4-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 24px;
  border-right: 1px solid #e7ecf7;
  background: rgba(255,255,255,.96);
}

.console-v4-brand {
  display: block;
  width: 150px;
}

.console-v4-brand img {
  width: 150px;
  height: 78px;
  display: block;
  object-fit: contain;
}

.console-v4-side nav {
  display: grid;
  gap: 10px;
}

.console-v4-side nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 8px;
  color: #27305d;
  font-size: 15px;
  font-weight: 650;
}

.console-v4-side nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #3926e8, #965dff);
  box-shadow: 0 14px 24px rgba(94, 61, 255, .28);
}

.console-v4-side nav em {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ff2d42;
  background: #ffe9ec;
  font-size: 11px;
  font-style: normal;
}

.console-v4-promo {
  position: relative;
  min-height: 270px;
  margin-top: auto;
  padding: 20px 16px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 72%, rgba(255,255,255,.32), transparent 22%),
    linear-gradient(155deg, #3518d3, #874dff 62%, #5430ee);
  box-shadow: 0 20px 42px rgba(78, 48, 226, .22);
}

.console-v4-promo strong,
.console-v4-promo p,
.console-v4-promo b,
.console-v4-promo a {
  position: relative;
  z-index: 1;
}

.console-v4-promo strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.console-v4-promo p {
  margin: 0 0 16px;
  font-size: 13px;
}

.console-v4-promo b {
  display: block;
  margin-bottom: 18px;
  font-size: 32px;
}

.console-v4-promo small {
  font-size: 15px;
}

.console-v4-promo a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 7px;
  color: #5633e9;
  background: #fff;
  font-weight: 750;
}

.console-v4-promo i {
  position: absolute;
  right: -22px;
  bottom: -28px;
  width: 138px;
  height: 118px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.7), transparent 45%),
    linear-gradient(135deg, #8e8cff, #4c28ef);
  transform: rotate(-12deg);
}

.console-v4-promo.campaign-panel-v1 {
  min-height: 286px;
  padding: 16px;
  background:
    radial-gradient(circle at 86% 72%, rgba(255,255,255,.25), transparent 24%),
    linear-gradient(155deg, #251074, #5925ab 56%, #826dff);
}

.campaign-panel-v1 img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 94px;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
  border-radius: 7px;
  box-shadow: 0 14px 28px rgba(20, 8, 68, .18);
}

.campaign-panel-v1 strong {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #5925ab;
  background: #fff;
  font-size: 12px;
}

.campaign-panel-v1 > small {
  position: relative;
  z-index: 1;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.13);
  font-size: 12px;
}

.campaign-panel-v1-timer {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  gap: 7px;
}

.campaign-panel-v1 .campaign-panel-v1-timer b {
  min-width: 43px;
  height: 42px;
  background: linear-gradient(145deg, #8566ff, #5830f7);
  box-shadow: 0 10px 22px rgba(17, 9, 80, .22);
  font-size: 22px;
}

.campaign-panel-v1 .campaign-panel-v1-timer i {
  color: #fff;
  font-size: 22px;
}

.campaign-panel-v1 .campaign-panel-v1-timer em {
  color: rgba(255,255,255,.86);
}

.campaign-panel-v1 p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.35;
}

.campaign-panel-v1 > b {
  font-size: 28px;
  line-height: 1.1;
}

.campaign-panel-v1 > b small {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  line-height: 1.35;
}

.console-v4-logout button {
  width: 100%;
  min-height: 48px;
  cursor: pointer;
  border: 1px solid #e0e6f5;
  border-radius: 8px;
  color: #28315e;
  background: #fff;
  font-weight: 700;
}

.console-v4-main {
  min-width: 0;
  padding: 32px 28px 18px;
}

.console-v4-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.console-v4-top h1 {
  margin: 0 0 10px;
  color: #12143f;
  font-size: 25px;
  line-height: 1.2;
}

.console-v4-top h1 span {
  display: inline-flex;
  margin-left: 10px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #522aff;
  background: #f0ecff;
  font-size: 12px;
  vertical-align: middle;
}

.console-v4-top p {
  margin: 0;
  color: #65709a;
  font-size: 15px;
}

.console-v4-admin-link {
  margin-left: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dfdcff;
  border-radius: 999px;
  color: #5925ab;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 45, 95, .08);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.console-v4-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.console-v4-user > button {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #11133f;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 45, 95, .08);
}

.console-v4-user button i {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3149;
}

.console-v4-user .console-v4-avatar {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 45, 95, .12);
}

.console-v4-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.console-v4-menu {
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 20;
  width: 148px;
  padding: 8px;
  border: 1px solid #e6ebf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(41, 50, 110, .16);
}

.console-v4-menu a,
.console-v4-menu button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: #27305d;
  background: transparent;
  font-size: 14px;
  text-align: left;
}

.console-v4-menu a:hover,
.console-v4-menu button:hover {
  background: #f5f7ff;
}

.dashboard-v4 {
  display: grid;
  gap: 22px;
}

.dash-v4-topgrid {
  display: grid;
  grid-template-columns: minmax(320px, 1.52fr) repeat(3, minmax(210px, 1fr));
  gap: 20px;
}

.dash-v4-balance,
.dash-v4-card,
.dash-v4-metric {
  border: 1px solid #e4e9f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(41, 50, 110, .06);
}

.dash-v4-balance {
  position: relative;
  min-height: 220px;
  padding: 24px 26px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.55), transparent 6%),
    linear-gradient(140deg, #150c77, #3321d7 48%, #8155ff);
}

.dash-v4-balance small,
.dash-v4-metric small {
  display: block;
  margin-bottom: 14px;
  color: inherit;
  font-size: 14px;
}

.dash-v4-balance strong {
  display: block;
  margin-bottom: 12px;
  font-size: 38px;
}

.dash-v4-balance p {
  margin: 0;
  color: rgba(255,255,255,.9);
}

.dash-v4-cube {
  position: absolute;
  right: 78px;
  top: 42px;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), transparent 42%),
    linear-gradient(135deg, #b3a8ff, #351ce0);
  transform: rotate(30deg) skew(-10deg);
  box-shadow: 0 28px 48px rgba(0,0,0,.18);
}

.dash-v4-cube span {
  position: absolute;
  inset: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.22);
}

.dash-v4-balance label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.dash-v4-balance i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.dash-v4-balance i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b99cff, #6a4dff);
}

.dash-v4-balance footer {
  position: absolute;
  left: 26px;
  bottom: 22px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(8, 5, 68, .36);
}

.dash-v4-metric {
  position: relative;
  min-height: 220px;
  padding: 24px 20px 12px;
  overflow: hidden;
}

.dash-v4-metric span {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #673cff;
  background: #f0ecff;
}

.dash-v4-metric strong {
  display: block;
  margin-bottom: 12px;
  color: #10133f;
  font-size: 28px;
}

.dash-v4-metric p {
  margin: 0 0 12px;
  color: #6a7399;
  font-size: 13px;
}

.dash-v4-metric b {
  color: #ff1f38;
}

.dash-v4-metric canvas {
  display: block;
  width: 100%;
  height: 76px;
}

.dash-v4-midgrid,
.dash-v4-bottomgrid {
  display: grid;
  grid-template-columns: minmax(380px, .9fr) minmax(520px, 1.18fr);
  gap: 20px;
}

.dash-v4-card {
  padding: 22px;
}

.dash-v4-card h2 {
  margin: 0;
  color: #11133f;
  font-size: 18px;
}

.dash-v4-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dash-v4-card header span {
  padding: 3px 10px;
  border-radius: 999px;
  color: #16a34a;
  background: #e9faef;
  font-size: 12px;
}

.dash-v4-sub section {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 24px 18px;
  border: 1px solid #e4e9f5;
  border-radius: 8px;
}

.dash-v4-gem {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), transparent 42%),
    linear-gradient(135deg, #b8a9ff, #311dd7);
  transform: rotate(30deg);
  box-shadow: 0 16px 34px rgba(82, 53, 235, .24);
}

.dash-v4-sub h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.dash-v4-sub p,
.dash-v4-sub time {
  margin: 0;
  color: #6a7399;
}

.dash-v4-sub em {
  padding: 7px 13px;
  border-radius: 999px;
  color: #673cff;
  background: #f0ecff;
  font-style: normal;
  white-space: nowrap;
}

.dash-v4-sub .dash-v4-plan-pill {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border-radius: 999px;
  color: #673cff;
  background: #f0ecff;
  box-shadow: none;
  font-weight: 500;
  white-space: nowrap;
}

.dash-v4-sub dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.dash-v4-sub dt {
  color: #6a7399;
  font-size: 13px;
}

.dash-v4-sub dd {
  margin: 8px 0 0;
  font-size: 16px;
}

.dash-v4-sub a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 50%;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(90deg, #3927ef 0%, #6b42ff 52%, #874dff 100%);
  box-shadow: 0 14px 28px rgba(94, 61, 255, .18);
  font-weight: 750;
}

.dash-v4-sub a span {
  font-size: 24px;
  line-height: 1;
}

.dash-v4-rightstack {
  display: grid;
  gap: 20px;
}

.dash-v4-actions div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dash-v4-actions a {
  min-height: 68px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5e9f5;
  border-radius: 8px;
  color: #11133f;
}

.dash-v4-actions i {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #673cff;
  background: #f1edff;
  font-style: normal;
}

.dash-v4-actions b {
  font-size: 14px;
}

.dash-v4-actions small {
  color: #6a7399;
  font-size: 12px;
}

.dash-v4-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  align-items: center;
  gap: 24px;
}

.dash-v4-link p,
.dash-v4-link small {
  color: #6a7399;
}

.dash-v4-link label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  min-height: 42px;
  margin: 12px 0 18px;
  border: 1px solid #e2e7f4;
  border-radius: 8px;
  overflow: hidden;
}

.dash-v4-link input {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  color: #25305e;
  background: #fff;
}

.dash-v4-link button {
  border: 0;
  color: #4127f1;
  background: #fff;
  font-size: 18px;
}

[data-copy].copied {
  color: #fff !important;
  background: #16a34a !important;
}

.dash-v4-link img,
.dash-v4-link > span {
  width: 128px;
  height: 128px;
  padding: 12px;
  border: 1px solid #e5e9f5;
  border-radius: 8px;
  background: #fff;
}

.dash-v4-nodes {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 8px 18px;
}

.dash-v4-nodes header,
.dash-v4-notice header {
  grid-column: 1 / -1;
}

.dash-v4-nodes header a,
.dash-v4-notice header a {
  color: #4b31f1;
  font-size: 13px;
  font-weight: 750;
}

.dash-v4-nodes section {
  position: relative;
  min-height: 190px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfcff, #f0f4ff);
  overflow: hidden;
}

.leaflet-node-map-v4 {
  width: 100%;
  height: 190px;
  background: #f3f6ff;
}

.leaflet-node-map-v4 .leaflet-control-attribution {
  display: none;
}

.node-dot-v4 {
  width: 13px;
  height: 13px;
  display: block;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #5d35ff;
  box-shadow: 0 0 0 5px rgba(93, 53, 255, .14), 0 10px 18px rgba(93, 53, 255, .22);
}

.dash-v4-nodes ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dash-v4-nodes li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  color: #1f2857;
  font-size: 13px;
}

.dash-v4-nodes li b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dash-v4-nodes li b img {
  width: 22px;
  height: 15px;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(31, 40, 87, .08);
}

.dash-v4-nodes em {
  color: #4d597e;
  font-style: normal;
}

.dash-v4-nodes li span {
  padding: 4px 9px;
  border-radius: 999px;
  color: #16a34a;
  background: #e7faee;
}

.dash-v4-nodes li span.warn {
  color: #f59e0b;
  background: #fff4d6;
}

.dash-v4-notice div {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid #eef2fa;
}

.dash-v4-notice div:last-child {
  border-bottom: 0;
}

.dash-v4-notice i {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4b31f1;
  background: #f1edff;
  font-style: normal;
}

.dash-v4-notice b {
  font-size: 14px;
}

.dash-v4-notice p {
  grid-column: 2;
  margin: 0;
  color: #6a7399;
  font-size: 13px;
}

.dash-v4-notice time {
  grid-column: 3;
  grid-row: 1 / 3;
  color: #6a7399;
  font-size: 13px;
}

.console-v4-footer {
  position: fixed;
  right: 28px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 0;
  color: #6a7399;
  font-size: 13px;
}

.console-v4-footer nav {
  display: flex;
  gap: 30px;
}

.console-v4-footer a {
  color: inherit;
}

@media (max-width: 1180px) {
  .dash-v4-topgrid,
  .dash-v4-midgrid,
  .dash-v4-bottomgrid {
    grid-template-columns: 1fr;
  }
  .dash-v4-actions div {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .console-v4-page {
    grid-template-columns: 1fr;
  }
  .console-v4-side {
    position: relative;
    height: auto;
  }
  .console-v4-main {
    padding: 18px 12px;
  }
  .console-v4-top {
    flex-direction: column;
  }
  .console-v4-footer {
    right: 12px;
    bottom: 10px;
    font-size: 12px;
  }
  .dash-v4-sub section,
  .dash-v4-sub dl,
  .dash-v4-link,
  .dash-v4-nodes {
    grid-template-columns: 1fr;
  }
  .dash-v4-actions div {
    grid-template-columns: 1fr;
  }
}

/* User pages shared product surface, based on design/2.png. */
.console-v4-main .design-page,
.console-v4-main .growth-design {
  width: 100%;
  max-width: none;
  min-width: 0;
  display: grid;
  gap: 20px;
}

.console-v4-main > * {
  min-width: 0;
}

.console-v4-main .plans-hero,
.console-v4-main .growth-hero-v2,
.console-v4-main .design-panel,
.console-v4-main .profile-card,
.console-v4-main .redeem-card,
.console-v4-main .growth-card-v2,
.console-v4-main .growth-panel-v2,
.console-v4-main .feature-strip,
.plan-period-card-v2 {
  border: 1px solid #e6ebf6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(41, 50, 110, .055);
}

.console-v4-main .plans-hero,
.console-v4-main .growth-hero-v2 {
  position: relative;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  background:
    radial-gradient(circle at 88% 18%, rgba(101, 68, 255, .14), transparent 22%),
    linear-gradient(135deg, #fff, #f8faff);
  overflow: hidden;
}

.console-v4-main .plans-hero h1,
.console-v4-main .growth-hero-v2 h1 {
  margin: 0 0 9px;
  color: #11133f;
  font-size: 24px;
  font-weight: 760;
}

.console-v4-main .plans-hero p,
.console-v4-main .plans-hero small,
.console-v4-main .growth-hero-v2 p,
.console-v4-main .growth-hero-v2 small {
  margin: 0;
  color: #687399;
}

.console-v4-main .plans-orbit {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  width: 120px;
  height: 92px;
  flex: 0 0 auto;
}

.console-v4-main .plans-orbit span {
  position: absolute;
  left: 32px;
  top: 20px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #9b84ff, #3926e8);
  box-shadow: 0 18px 34px rgba(77, 51, 230, .24);
  transform: rotate(32deg);
}

.console-v4-main .plans-orbit i {
  position: absolute;
  left: 12px;
  top: 28px;
  width: 94px;
  height: 34px;
  border: 2px solid rgba(96, 68, 255, .22);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.console-v4-main .design-panel,
.console-v4-main .profile-card,
.console-v4-main .redeem-card,
.console-v4-main .growth-panel-v2 {
  padding: 24px;
}

.console-v4-main .btn-primary,
.console-v4-main button[type="submit"]:not(.console-v4-logout button) {
  min-height: 40px;
  border: 1px solid #4b31f1;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #3927ef, #7948ff);
  box-shadow: 0 12px 24px rgba(94, 61, 255, .18);
  font-weight: 750;
}

.plan-shop-actions-v2,
.plan-section-title-v2 {
  display: none;
}

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

.plan-period-card-v2 {
  display: grid;
  gap: 18px;
  padding: 28px 24px;
}

.plan-period-card-v2 header {
  min-height: 0;
  display: block;
  padding: 0;
  color: inherit;
  background: transparent;
}

.plan-period-card-v2:nth-child(2) {
  border-color: #6b42ff;
  box-shadow: 0 22px 54px rgba(94, 61, 255, .13);
}

.plan-level-tabs-v2 {
  display: inline-flex;
  width: max-content;
  padding: 4px;
  border-radius: 999px;
  background: #f2f5fc;
}

.plan-level-tabs-v2 button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #5d668c;
  background: transparent;
}

.plan-level-tabs-v2 button.active {
  color: #3927ef;
  background: #fff;
  box-shadow: 0 8px 18px rgba(41, 50, 110, .08);
}

.plan-period-price-v2 {
  color: #11133f;
  font-size: 22px;
}

.plan-period-price-v2 strong {
  font-size: 34px;
}

.plan-period-card-v2 dl,
.plan-period-card-v2 section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #edf1f8;
}

.plan-period-card-v2 dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.plan-period-card-v2 dt,
.plan-unlimited-v2,
.plan-period-card-v2 section p {
  color: #687399;
}

.plan-period-card-v2 form button {
  width: 100%;
}

.plans-v6 {
  display: grid;
  gap: 22px;
}

.plans-v6-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.plans-v6-timeleft {
  min-height: 152px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto 190px;
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  border: 1px solid rgba(114, 78, 255, .18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 0%, rgba(147, 112, 255, .11), transparent 34%),
    linear-gradient(90deg, rgba(255, 250, 255, .98), rgba(249, 247, 255, .94));
  box-shadow: 0 18px 46px rgba(59, 43, 133, .08);
}

.plans-v6-timeleft-gift {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, #f2e9ff, #fff);
  box-shadow: inset 0 0 0 1px rgba(114, 78, 255, .10), 0 18px 38px rgba(94, 61, 255, .13);
  font-size: 58px;
}

.plans-v6-timeleft h3 {
  margin: 0;
  color: #0710a5;
  font-size: 24px;
  line-height: 1.25;
}

.plans-v6-timeleft p {
  margin: 12px 0 0;
  color: #303b75;
  font-size: 14px;
  line-height: 1.6;
}

.plans-v6-timeleft > a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #3d27ff, #7a3dff);
  box-shadow: 0 12px 28px rgba(80, 50, 235, .26);
}

.timeleft-v1 {
  min-width: 210px;
}

.timeleft-v1 small {
  display: block;
  margin-bottom: 8px;
  color: #151c53;
  font-size: 13px;
}

.timeleft-v1 > div,
.campaign-panel-v1-timer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.timeleft-v1 span,
.campaign-panel-v1-timer span {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.timeleft-v1 b,
.campaign-panel-v1-timer b {
  min-width: 50px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(145deg, #ff596d, #ff3f73);
  box-shadow: 0 10px 22px rgba(255, 68, 106, .22);
  font-size: 22px;
  line-height: 1;
}

.timeleft-v1 i,
.campaign-panel-v1-timer i {
  padding-top: 9px;
  color: #0710a5;
  font-style: normal;
  font-size: 26px;
  line-height: 1;
}

.timeleft-v1 em,
.campaign-panel-v1-timer em {
  color: #111a56;
  font-style: normal;
  font-size: 12px;
}

@media (max-width: 980px) {
  .plans-v6-timeleft {
    grid-template-columns: 88px 1fr;
  }

  .plans-v6-timeleft .timeleft-v1,
  .plans-v6-timeleft > a {
    grid-column: 1 / -1;
  }

  .plans-v6-timeleft-gift {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    font-size: 42px;
  }
}

.plans-v6-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 570px;
  padding: 38px 28px 30px;
  border: 1px solid #e3e8f5;
  border-radius: 8px;
  background:
    radial-gradient(circle at 52% 0%, rgba(116, 84, 255, .08), transparent 30%),
    #fff;
  box-shadow: 0 20px 52px rgba(42, 50, 113, .055);
}

.plans-v6-card.active {
  border-color: #6d4bff;
  box-shadow: 0 22px 62px rgba(94, 61, 255, .13);
}

.plans-v6-card.campaign {
  padding-top: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 37, 171, .10), transparent 34%),
    #fff;
}

.plans-v6-campaign-img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(89, 37, 171, .10);
  background: #f7f2ff;
}

.plans-v6-badge {
  position: absolute;
  left: 18px;
  top: 0;
  height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 0 0 8px 8px;
  color: #5b3cff;
  background: #eee8ff;
  font-style: normal;
  font-size: 13px;
}

.plans-v6-card:nth-child(3) .plans-v6-badge {
  color: #fb4f42;
  background: #fff0ef;
}

.plans-v6-card header {
  display: block;
  min-height: 0;
  padding: 0;
  text-align: center;
  color: #070c6f;
  background: transparent;
}

.plans-v6-card h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: 0;
}

.plans-v6-tabs {
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  gap: 6px;
  max-width: 300px;
  width: 100%;
}

.plans-v6-tabs button {
  height: 36px;
  border: 0;
  border-radius: 12px;
  color: #53609d;
  background: #f4f5fb;
  font-size: 14px;
}

.plans-v6-tabs button.active {
  color: #3e25ee;
  background: #ebe4ff;
  box-shadow: inset 0 0 0 1px rgba(119, 82, 255, .08);
}

.plans-v6-price {
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: #070c6f;
  font-size: 23px;
  line-height: 1;
}

.plans-v6-price strong {
  margin-left: 3px;
  font-size: 35px;
  line-height: 1;
  font-weight: 800;
}

.plans-v6-price span {
  margin-left: 4px;
  font-size: 15px;
  font-weight: 700;
}

.plans-v6-price del {
  margin-left: 8px;
  color: #98a0bd;
  font-size: 14px;
  text-decoration-thickness: 1px;
}

.plans-v6-price del span {
  margin-left: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
}

.plans-v6-monthly {
  margin-top: -12px;
  color: #6570a7;
  font-size: 14px;
}

.plans-v6-saving {
  max-width: 100%;
  margin-left: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #5a37ff;
  background: #f0ebff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.plans-v6-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin: 8px 0 20px;
}

.plans-v6-specs div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.plans-v6-specs dt {
  min-width: 0;
  color: #56619a;
  font-size: 14px;
  white-space: nowrap;
}

.plans-v6-specs dd {
  margin: 0;
  color: #070c6f;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.plans-v6-card form {
  align-self: end;
  margin-top: auto;
}

.plans-v6-card form button {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  font-size: 16px;
}

.plans-v6-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 30px;
  border: 1px solid #e3e8f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(41, 50, 110, .045);
}

.plans-v6-features div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
}

.plans-v6-features span {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6042ff;
  background: #f0ecff;
  font-size: 23px;
}

.plans-v6-features strong {
  color: #07106e;
  font-size: 16px;
  font-weight: 760;
}

.plans-v6-features small {
  margin-top: 5px;
  color: #6570a7;
  line-height: 1.55;
}

.campaign-page-v1 {
  min-height: 100vh;
  color: #14172f;
  background:
    radial-gradient(circle at 10% 0%, rgba(89, 37, 171, .12), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(115, 102, 255, .10), transparent 28%),
    #f8f7fc;
}

.campaign-page-v1 main,
.campaign-nav-v1 {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.campaign-nav-v1 {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.campaign-brand-v1,
.campaign-nav-v1 nav {
  display: flex;
  align-items: center;
}

.campaign-brand-v1 {
  gap: 12px;
  color: #17142f;
  font-size: 22px;
}

.campaign-brand-v1 small {
  display: block;
  color: #8b83a5;
  font-size: 10px;
  letter-spacing: 3px;
}

.campaign-nav-v1 nav {
  gap: 10px;
}

.campaign-nav-v1 nav a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: #625d78;
  font-size: 14px;
}

.campaign-nav-v1 nav a.primary {
  color: #fff;
  background: #5925ab;
}

.campaign-hero-v1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 38px;
  align-items: center;
  min-height: 560px;
  padding: 54px 0 44px;
}

.campaign-eyebrow-v1 {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #5925ab;
  background: rgba(89, 37, 171, .08);
  font-size: 14px;
}

.campaign-hero-v1 h1 {
  margin: 0;
  color: #12142c;
  font-size: 74px;
  line-height: .95;
  letter-spacing: 0;
}

.campaign-hero-v1 p {
  max-width: 660px;
  margin: 24px 0 0;
  color: #626078;
  font-size: 20px;
  line-height: 1.75;
}

.campaign-actions-v1 {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.campaign-actions-v1 a {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(89, 37, 171, .14);
  border-radius: 999px;
  color: #5925ab;
  background: #fff;
}

.campaign-actions-v1 a:first-child {
  color: #fff;
  background: linear-gradient(135deg, #5925ab, #7366ff);
}

.campaign-hero-v1 aside {
  overflow: hidden;
  border: 1px solid rgba(89, 37, 171, .12);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 24px 70px rgba(43, 31, 103, .10);
}

.campaign-hero-v1 aside img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.campaign-hero-v1 dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: #ece8f7;
}

.campaign-hero-v1 dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
}

.campaign-hero-v1 dt,
.campaign-hero-v1 dd {
  margin: 0;
  color: #625d78;
}

.campaign-hero-v1 dd {
  color: #17142f;
}

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

.campaign-card-v1 {
  overflow: hidden;
  display: grid;
  border: 1px solid rgba(89, 37, 171, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(43, 31, 103, .07);
}

.campaign-card-v1 img {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.campaign-card-v1 > div {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.campaign-card-v1 span {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #5925ab;
  background: #f1ebff;
  font-size: 13px;
}

.campaign-card-v1.ended span {
  color: #7b8196;
  background: #f0f1f5;
}

.campaign-card-v1 h2 {
  margin: 0;
  color: #151631;
  font-size: 24px;
  letter-spacing: 0;
}

.campaign-card-v1 p {
  margin: 0;
  min-height: 48px;
  color: #687089;
  line-height: 1.6;
}

.campaign-card-v1 footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.campaign-card-v1 strong {
  color: #5925ab;
  font-size: 30px;
}

.campaign-card-v1 small {
  color: #7f849a;
  text-align: right;
}

.campaign-card-v1 a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: #5925ab;
}

.campaigns-user-v1 {
  display: grid;
  gap: 22px;
}

.campaigns-user-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #e4e8f4;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(89,37,171,.12), transparent 30%),
    linear-gradient(135deg, #fff, #f7f4ff);
}

.campaigns-user-hero > div {
  align-self: center;
}

.campaigns-user-hero span {
  color: #5925ab;
  font-size: 14px;
}

.campaigns-user-hero h2 {
  margin: 12px 0 0;
  color: #10133a;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.campaigns-user-hero p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #687089;
  line-height: 1.75;
}

.campaigns-user-hero aside {
  overflow: hidden;
  border: 1px solid rgba(89,37,171,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
}

.campaigns-user-hero img {
  width: 100%;
  height: 154px;
  display: block;
  object-fit: cover;
}

.campaigns-user-hero dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: #ece8f7;
}

.campaigns-user-hero dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: #fff;
}

.campaigns-user-hero dt,
.campaigns-user-hero dd {
  margin: 0;
  color: #687089;
  font-size: 13px;
}

.campaigns-user-hero dd {
  color: #141733;
}

.campaign-referral-v1 {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid rgba(89, 37, 171, .12);
  border-radius: 22px;
  background: #fff;
}

.campaign-referral-v1 header {
  max-width: 720px;
}

.campaign-referral-v1 header span {
  color: #5925ab;
}

.campaign-referral-v1 h2 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: 0;
}

.campaign-referral-v1 header p {
  color: #687089;
  line-height: 1.7;
}

.campaign-referral-v1 > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.campaign-referral-v1 article {
  padding: 18px;
  border: 1px solid #eeeaf8;
  border-radius: 16px;
  background: #fbfaff;
}

.campaign-referral-v1 article img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 12px;
}

.campaign-referral-v1 h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.campaign-referral-v1 article p {
  color: #687089;
  line-height: 1.6;
}

.campaign-referral-v1 article a {
  color: #5925ab;
}

.orders-v6 {
  display: grid;
  gap: 28px;
}

.orders-v6-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 150px;
  padding: 26px 30px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background:
    radial-gradient(circle at 98% 28%, rgba(119, 82, 255, .14), transparent 12%),
    #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .055);
}

.orders-v6-summary article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 0 30px;
  border-right: 1px solid #e7edf8;
}

.orders-v6-summary article:last-child {
  border-right: 0;
}

.orders-v6-summary i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6647ff;
  background: #eee8ff;
  font-style: normal;
  font-size: 25px;
}

.orders-v6-summary article:nth-child(2) i {
  color: #12af76;
  background: #e7f8f1;
}

.orders-v6-summary article:nth-child(3) i {
  color: #2186ff;
  background: #e9f2ff;
}

.orders-v6-summary article:nth-child(4) i {
  color: #ff4f6b;
  background: #ffedf1;
}

.orders-v6-summary strong {
  display: block;
  color: #07106e;
  font-size: 32px;
  line-height: 1;
}

.orders-v6-summary span {
  display: block;
  margin-bottom: 8px;
  color: #07106e;
  font-weight: 760;
}

.orders-v6-summary small {
  color: #6671a6;
}

.orders-v6-tabs {
  display: grid;
  grid-template-columns: repeat(4, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.orders-v6-tabs a,
.orders-v6-tabs button {
  height: 42px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #1e2677;
  background: transparent;
  text-decoration: none;
  font-weight: 720;
}

.orders-v6-tabs a.active {
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  box-shadow: 0 14px 30px rgba(90, 57, 255, .22);
}

.orders-v6-tabs button {
  justify-self: end;
  border: 1px solid #dfe6f5;
  border-radius: 8px;
  background: #fff;
}

.orders-v6-panel {
  overflow: hidden;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .045);
}

.orders-v6-table-wrap {
  overflow-x: auto;
}

.orders-v6-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.orders-v6-table th {
  height: 66px;
  padding: 0 28px;
  color: #7a83b4;
  background: #fff;
  border-bottom: 1px solid #e7edf8;
  text-align: left;
  font-size: 14px;
}

.orders-v6-table td {
  height: 92px;
  padding: 0 28px;
  color: #1e2677;
  border-bottom: 1px solid #edf1f8;
}

.orders-v6-table tr:last-child td {
  border-bottom: 0;
}

.orders-v6-info {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.orders-v6-info i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6647ff;
  background: #eee8ff;
  font-style: normal;
}

.orders-v6-info p,
.orders-v6-plan,
.orders-v6-money {
  display: grid;
  gap: 8px;
  margin: 0;
}

.orders-v6-info b,
.orders-v6-plan b,
.orders-v6-money b {
  color: #07106e;
}

.orders-v6-info small,
.orders-v6-money small {
  color: #6973a7;
}

.orders-v6-plan small,
.orders-v6-status {
  width: max-content;
  padding: 5px 10px;
  border-radius: 7px;
  color: #5e66a0;
  background: #f0f2fb;
  font-size: 13px;
}

.orders-v6-money b {
  font-size: 18px;
}

.orders-v6-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 720;
}

.orders-v6-status.done {
  color: #10a970;
  background: #def8ec;
}

.orders-v6-status.pending {
  color: #6541ff;
  background: #eee8ff;
}

.orders-v6-status.cancelled {
  color: #ff4f6b;
  background: #ffedf1;
}

.orders-v6-action {
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9d4ff;
  border-radius: 7px;
  color: #6541ff;
  background: #fff;
  text-decoration: none;
  font-weight: 740;
}

.orders-v6-action.muted {
  color: #6541ff;
}

.orders-v6-pager {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid #edf1f8;
}

.orders-v6-pager button,
.orders-v6-pager b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e6f5;
  border-radius: 7px;
  color: #6b74a7;
  background: #fff;
}

.orders-v6-pager b {
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  border-color: transparent;
}

.tickets-v6 {
  display: grid;
  gap: 18px;
}

.tickets-v6-form,
.tickets-v6-panel {
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .045);
}

.tickets-v6-form {
  padding: 24px 24px 22px;
}

.tickets-v6-form h2 {
  margin: 0 0 24px;
  color: #07106e;
  font-size: 18px;
  font-weight: 760;
}

.tickets-v6-form form {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 22px;
}

.tickets-v6-form label {
  display: grid;
  gap: 10px;
  color: #07106e;
  font-weight: 720;
}

.tickets-v6-form .full-row {
  grid-column: 1 / -1;
}

.tickets-v6-form input,
.tickets-v6-form select,
.tickets-v6-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d9e1f2;
  border-radius: 7px;
  color: #07106e;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.tickets-v6-form textarea {
  min-height: 108px;
  padding-top: 14px;
  resize: vertical;
}

.tickets-v6-form label small {
  color: #6470a7;
  font-weight: 500;
}

.tickets-v6-form button[type="submit"] {
  justify-self: end;
  grid-column: 1 / -1;
  width: 104px;
  height: 38px;
  border-radius: 7px;
}

.tickets-v6-panel {
  overflow: hidden;
}

.tickets-v6-tabs {
  display: grid;
  grid-template-columns: repeat(4, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 0 24px;
  border-bottom: 1px solid #e7edf8;
}

.tickets-v6-tabs a {
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid transparent;
  color: #1e2677;
  text-decoration: none;
  font-weight: 740;
}

.tickets-v6-tabs a.active {
  color: #5d39ff;
  border-color: #5d39ff;
  background: #f4f1ff;
}

.tickets-v6-tabs span {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #6541ff;
  background: #eae6ff;
  font-size: 12px;
}

.tickets-v6-tabs button {
  justify-self: end;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #dfe6f5;
  border-radius: 7px;
  color: #1e2677;
  background: #fff;
  font-weight: 700;
}

.tickets-v6-table-wrap {
  overflow-x: auto;
}

.tickets-v6-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.tickets-v6-table th,
.tickets-v6-table td {
  padding: 0 24px;
  text-align: left;
  border-bottom: 1px solid #edf1f8;
}

.tickets-v6-table th {
  height: 48px;
  color: #7a83b4;
  background: #fbfcff;
  font-size: 14px;
}

.tickets-v6-table td {
  height: 72px;
  color: #1e2677;
}

.tickets-v6-table td:nth-child(2),
.tickets-v6-table td:nth-child(4) {
  display: table-cell;
}

.tickets-v6-table b,
.tickets-v6-table small {
  display: block;
}

.tickets-v6-table b {
  color: #07106e;
}

.tickets-v6-table small {
  margin-top: 6px;
  color: #6570a7;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tickets-v6-status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 740;
  font-size: 13px;
}

.tickets-v6-status.answered {
  color: #10a970;
  background: #def8ec;
}

.tickets-v6-status.open {
  color: #d88600;
  background: #fff0d7;
}

.tickets-v6-status.closed {
  color: #6570a7;
  background: #eef2fa;
}

.tickets-v6-action {
  height: 34px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9d4ff;
  border-radius: 7px;
  color: #6541ff;
  background: #fff;
  font-weight: 740;
}

.tickets-v6-pager {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.tickets-v6-pager button,
.tickets-v6-pager b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e6f5;
  border-radius: 7px;
  color: #6b74a7;
  background: #fff;
}

.tickets-v6-pager b {
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  border-color: transparent;
}

.live-chat-v1 {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
}

.live-chat-v1-fab,
.live-chat-v1-close {
  width: 56px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.live-chat-v1-fab img {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.live-chat-v1-fab.has-unread {
  animation: liveChatPulse 1.3s ease-in-out infinite;
}

.live-chat-v1-fab i {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff335f;
}

@keyframes liveChatPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.06); }
}

.live-chat-v1-close {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #fff;
  background: linear-gradient(135deg, #6d39f5, #4f22d8);
  box-shadow: 0 18px 40px rgba(89, 37, 171, .30);
  font-size: 30px;
  line-height: 1;
}

.live-chat-v1-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(223, 228, 244, .95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 26px 76px rgba(38, 43, 89, .18);
}

.live-chat-v1-panel header {
  min-height: 66px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.live-chat-v1-panel header b,
.live-chat-v1-panel header span {
  display: block;
}

.live-chat-v1-panel header b {
  color: #10145f;
  font-size: 16px;
}

.live-chat-v1-panel header span {
  margin-top: 5px;
  color: #7a84aa;
  font-size: 12px;
}

.live-chat-v1-panel header span i {
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #20d982;
}

.live-chat-v1-panel header span em {
  margin-left: 10px;
  color: #7a84aa;
  font-style: normal;
}

.live-chat-v1-panel header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #07106e;
  cursor: pointer;
  font-size: 22px;
}

.live-chat-v1-intro {
  margin: 0 16px 14px;
  min-height: 68px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .20), transparent 30%),
    linear-gradient(135deg, #7761ff, #5628df);
  box-shadow: 0 12px 28px rgba(89, 37, 171, .18);
}

.live-chat-v1-intro img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  object-fit: cover;
}

.live-chat-v1-intro b,
.live-chat-v1-intro p {
  display: block;
  margin: 0;
}

.live-chat-v1-intro b {
  font-size: 14px;
}

.live-chat-v1-intro p {
  margin-top: 5px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
}

.live-chat-v1-body {
  min-height: 220px;
  max-height: 380px;
  padding: 0 18px 10px;
  overflow-y: auto;
  background: #fff;
}

.live-chat-v1-body time {
  display: block;
  margin: 6px 0 10px;
  color: #9aa3c4;
  text-align: center;
  font-size: 12px;
}

.live-chat-v1-hint,
.live-chat-v1-empty small {
  color: #8a93b8;
  font-size: 12px;
}

.live-chat-v1-msg {
  width: fit-content;
  max-width: 86%;
  margin: 0 0 12px;
  padding: 11px 13px;
  border-radius: 12px;
  line-height: 1.55;
  font-size: 14px;
  white-space: pre-wrap;
}

.live-chat-v1-msg.user {
  margin-left: auto;
  color: #fff;
  background: linear-gradient(135deg, #6d39f5, #5628df);
  border-bottom-right-radius: 5px;
}

.live-chat-v1-msg.admin,
.live-chat-v1-empty {
  color: #1e2677;
  background: #f4f6fb;
  border-radius: 10px;
}

.live-chat-v1-msg.admin {
  border-bottom-left-radius: 5px;
}

.live-chat-v1-empty {
  padding: 14px 16px;
}

.live-chat-v1-empty p {
  margin: 0 0 5px;
  color: #1e2677;
  font-size: 14px;
}

.live-chat-v1-panel form {
  margin: 0 16px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1e7f5;
  border-radius: 10px;
  background: #fff;
}

.live-chat-v1-tools {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #7480aa;
  font-size: 12px;
}

.live-chat-v1-panel textarea {
  height: 58px;
  min-height: 58px;
  padding: 13px 4px;
  border: 0;
  resize: none;
  outline: none;
  color: #10145f;
  background: transparent;
  font: inherit;
}

.live-chat-v1-panel form button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #6d39f5, #5628df);
  cursor: pointer;
  font-size: 12px;
}

.live-chat-v1-panel footer {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #98a0bf;
  font-size: 12px;
}

.nodes-v6 {
  display: grid;
  gap: 18px;
}

.nodes-v6-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 108px;
  padding: 22px 24px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .045);
}

.nodes-v6-summary article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 0 24px;
  border-right: 1px solid #e7edf8;
}

.nodes-v6-summary article:last-child {
  border-right: 0;
}

.nodes-v6-summary i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6647ff;
  background: #eee8ff;
  font-style: normal;
  font-size: 24px;
}

.nodes-v6-summary article:nth-child(2) i {
  color: #10a970;
  background: #e5f8ef;
}

.nodes-v6-summary article:nth-child(3) i {
  color: #f09518;
  background: #fff0dc;
}

.nodes-v6-summary article:nth-child(4) i {
  color: #ff4f6b;
  background: #ffedf1;
}

.nodes-v6-summary span,
.nodes-v6-summary strong,
.nodes-v6-summary small {
  display: block;
}

.nodes-v6-summary span {
  color: #07106e;
  font-weight: 740;
}

.nodes-v6-summary strong {
  margin: 6px 0;
  color: #07106e;
  font-size: 30px;
}

.nodes-v6-summary small {
  color: #6570a7;
}

.nodes-v6-map,
.nodes-v6-list {
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .045);
}

.nodes-v6-map {
  overflow: hidden;
  background: #001933;
}

.nodes-echarts-map {
  width: 100%;
  height: 720px;
  background: #001933;
}

.nodes-v6-map > header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 18px;
  color: #6570a7;
  background: #fbfcff;
}

.nodes-v6-map > header button {
  height: 34px;
  padding: 0 16px;
  border: 1px solid #d9d4ff;
  border-radius: 7px;
  color: #6541ff;
  background: #fff;
  font-weight: 740;
}

.nodes-v6-world {
  position: relative;
  min-height: 640px;
  background: #050716;
  overflow: hidden;
}

.nodes-v6-world::before {
  content: none;
}

.nodes-v6-leaflet {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nodes-v6-leaflet .leaflet-control-attribution {
  display: none;
}

.node-dot-v4.high {
  background: #f09518;
  box-shadow: 0 0 0 5px rgba(240, 149, 24, .16), 0 8px 18px rgba(240, 149, 24, .28);
}

.node-dot-v4.offline {
  background: #ff4f6b;
  box-shadow: 0 0 0 5px rgba(255, 79, 107, .16), 0 8px 18px rgba(255, 79, 107, .28);
}

.nodes-v6-table b.online {
  color: #10a970;
}

.nodes-v6-table b.high {
  color: #f09518;
}

.nodes-v6-table b.offline {
  color: #ff4f6b;
}

.nodes-v6-filter {
  display: block;
  padding: 16px;
  border-top: 1px solid #e7edf8;
}

.nodes-v6-filter div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #fbfcff;
  color: #07106e;
}

.nodes-v6-filter span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6570a7;
}

.nodes-v6-filter span::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #10a970;
}

.nodes-v6-filter span.high::before {
  background: #f09518;
}

.nodes-v6-filter span.offline::before {
  background: #ff4f6b;
}

.nodes-v6-list {
  overflow: hidden;
}

.nodes-v6-list nav {
  display: flex;
  gap: 28px;
  padding: 16px 24px 0;
}

.nodes-v6-list nav a {
  height: 36px;
  padding: 0 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #1e2677;
  text-decoration: none;
  font-weight: 740;
}

.nodes-v6-list nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
}

.nodes-v6-list > label {
  display: block;
  padding: 12px 24px;
}

.nodes-v6-list input {
  width: 260px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #dfe6f5;
  border-radius: 7px;
}

.nodes-v6-table-wrap {
  overflow-x: auto;
}

.nodes-v6-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.nodes-v6-table th,
.nodes-v6-table td {
  height: 58px;
  padding: 0 24px;
  text-align: left;
  border-bottom: 1px solid #edf1f8;
}

.nodes-v6-unlock {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nodes-v6-unlock span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6570a7;
  background: #f3f6fd;
  font-size: 12px;
}

.nodes-v6-unlock img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.nodes-v6-unlock span.ok {
  color: #087f5b;
  background: #e8fff5;
}

.nodes-v6-unlock span.blocked {
  color: #b42318;
  background: #fff0ed;
}

.nodes-v6-unlock span.slow {
  color: #9a6700;
  background: #fff7d6;
}

.nodes-v6-table th {
  color: #7a83b4;
  background: #fbfcff;
  font-size: 13px;
}

.nodes-v6-table td {
  color: #1e2677;
}

.nodes-v6-table b,
.nodes-v6-table small {
  display: block;
}

.nodes-v6-table small {
  margin-top: 5px;
  color: #6570a7;
}

.nodes-v6-table i {
  width: 78px;
  height: 4px;
  display: block;
  margin-top: 5px;
  border-radius: 999px;
  background: #edf1f8;
}

.nodes-v6-table i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.nodes-v6-status {
  height: 24px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 740;
}

.nodes-v6-status.online {
  color: #10a970;
  background: #def8ec;
}

.nodes-v6-status.high {
  color: #f09518;
  background: #fff0d7;
}

.nodes-v6-status.offline {
  color: #ff4f6b;
  background: #ffedf1;
}

.nodes-v6-list footer {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
}

.nodes-v6-list footer span {
  margin-right: auto;
  color: #6570a7;
}

.nodes-v6-list footer button,
.nodes-v6-list footer b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e0e6f5;
  border-radius: 7px;
  color: #6b74a7;
  background: #fff;
}

.nodes-v6-list footer b {
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  border-color: transparent;
}

.growth-v6,
.reward-v6 {
  display: grid;
  gap: 18px;
}

.reward-tabs-v6 {
  display: flex;
  gap: 44px;
  min-height: 64px;
  padding: 0 24px;
  align-items: center;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .04);
}

.reward-tabs-v6 a {
  height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  color: #1e2677;
  text-decoration: none;
  font-weight: 760;
}

.reward-tabs-v6 a.active {
  color: #5c34ff;
  border-color: #5c34ff;
}

.reward-tabs-v6 span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #ff4f6b;
  background: #ffedf1;
  font-size: 11px;
}

.growth-v6-tools,
.growth-v6-activity,
.growth-v6-data,
.growth-v6-record,
.reward-v6-exchange,
.reward-v6-source,
.reward-v6-rules,
.reward-v6-record {
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .045);
}

.growth-v6-tools {
  padding: 24px;
}

.growth-v6-tools h2,
.growth-v6-activity h2,
.growth-v6-data h2,
.growth-v6-record h2,
.reward-v6 h2 {
  margin: 0;
  color: #07106e;
  font-size: 18px;
}

.growth-v6-tools > p,
.growth-v6-activity p,
.growth-v6-data p,
.reward-v6 p,
.reward-v6 li {
  color: #6570a7;
}

.growth-v6-tool-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.35fr;
  gap: 18px;
  margin-top: 18px;
}

.growth-v6-tool-grid article {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
}

.growth-v6-tool-grid b {
  color: #07106e;
}

.growth-v6-tool-grid label,
.reward-v6-exchange label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
}

.growth-v6-tool-grid input,
.reward-v6-exchange input {
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #dfe6f5;
  border-radius: 7px;
  color: #07106e;
}

.growth-v6-tool-grid button,
.reward-v6-exchange button {
  height: 40px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  font-weight: 760;
}

.growth-v6-tool-grid a,
.growth-v6-tools footer a,
.growth-v6-activity header a,
.growth-v6-record header a,
.reward-v6-rules a {
  color: #5c34ff;
  text-decoration: none;
  font-weight: 760;
}

.growth-v6-share {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.growth-v6-share button {
  height: 52px;
  color: #1e2677;
  background: #fbfcff;
  border: 1px solid #e5ebf8;
}

.growth-v6-tools footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid #d9d4ff;
  border-radius: 8px;
  background: #fbf9ff;
  color: #1e2677;
}

.growth-v6-main {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 18px;
}

.growth-v6-activity,
.growth-v6-data,
.growth-v6-record {
  padding: 22px;
}

.growth-v6-activity header,
.growth-v6-data header,
.growth-v6-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.growth-v6-event {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) max-content 86px;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
}

.growth-v6-event + .growth-v6-event {
  margin-top: 14px;
}

.growth-v6-event i {
  height: 78px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5a35ff, #b29cff);
}

.growth-v6-event img {
  width: 118px !important;
  height: 78px !important;
  max-width: 118px;
  max-height: 78px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #f4f6ff;
}

.growth-v6-event.orange i {
  background: linear-gradient(135deg, #ff8a18, #ffd07a);
}

.growth-v6-event.blue i {
  background: linear-gradient(135deg, #5139ff, #8bb7ff);
}

.growth-v6-event strong,
.growth-v6-event small {
  display: block;
}

.growth-v6-event strong {
  color: #07106e;
}

.growth-v6-event small,
.growth-v6-event em {
  color: #6570a7;
  font-style: normal;
}

.growth-v6-event a {
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  text-decoration: none;
  font-weight: 760;
}

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

.growth-v6-kpis p {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
}

.growth-v6-kpis span,
.growth-v6-kpis small {
  color: #6570a7;
}

.growth-v6-kpis strong {
  color: #07106e;
  font-size: 28px;
}

.growth-v6-chart {
  position: relative;
  height: 190px;
  margin-top: 18px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background:
    linear-gradient(#eef2fb 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, #fff, #fbfcff);
  overflow: hidden;
}

.growth-v6-chart i {
  position: absolute;
  left: 8%;
  right: 6%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: #6d4bff;
  transform: rotate(-7deg);
}

.growth-v6-chart i:nth-child(2) {
  top: 58%;
  background: #3277ff;
  transform: rotate(-4deg);
}

.growth-v6-chart i:nth-child(3) {
  top: 68%;
  background: #11b77a;
  transform: rotate(2deg);
}

.growth-v6-record {
  grid-column: 2;
}

.growth-v6-record table,
.reward-v6-record table {
  width: 100%;
  border-collapse: collapse;
}

.growth-v6-record th,
.growth-v6-record td,
.reward-v6-record th,
.reward-v6-record td {
  height: 48px;
  padding: 0 12px;
  border-bottom: 1px solid #edf1f8;
  color: #1e2677;
  text-align: left;
}

.growth-v6-record th,
.reward-v6-record th {
  color: #7a83b4;
  background: #fbfcff;
}

.growth-v6-record td span,
.reward-v6-record td span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #10a970;
  background: #def8ec;
}

.reward-v6-top {
  display: grid;
  grid-template-columns: 1.2fr .85fr .7fr;
  gap: 18px;
}

.reward-v6-exchange,
.reward-v6-source,
.reward-v6-rules {
  padding: 28px;
}

.reward-v6-exchange form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  margin: 38px 0 22px;
}

.reward-v6-exchange label {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

.reward-v6-exchange label span {
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe6f5;
  border-right: 0;
  border-radius: 7px 0 0 7px;
  color: #6570a7;
}

.reward-v6-exchange input {
  border-radius: 0 7px 7px 0;
}

.reward-v6-source p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 14px;
  margin: 18px 0 0;
}

.reward-v6-source i {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #5c34ff;
  background: #f0ecff;
  font-style: normal;
}

.reward-v6-source b {
  color: #07106e;
}

.reward-v6-rules ul {
  display: grid;
  gap: 18px;
  margin: 24px 0;
  padding-left: 18px;
}

.reward-v6-record {
  padding: 28px;
}

.reward-v6-record h2 {
  margin-bottom: 22px;
}

.reward-v6-record footer {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.reward-v6-record footer span {
  margin-right: auto;
  color: #6570a7;
}

.reward-v6-record footer button,
.reward-v6-record footer b,
.reward-v6-record footer select {
  height: 34px;
  min-width: 34px;
  border: 1px solid #e0e6f5;
  border-radius: 7px;
  color: #6b74a7;
  background: #fff;
}

.reward-v6-record footer b {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  border-color: transparent;
}

.profile-v6 {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(42, 50, 113, .045);
}

.profile-v6-card {
  padding: 28px;
  border: 1px solid #e5ebf8;
  border-radius: 8px;
  background: #fff;
}

.profile-v6-card > header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.profile-v6-card header i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6541ff;
  background: #eee8ff;
  font-style: normal;
  font-size: 23px;
}

.profile-v6-card h2 {
  margin: 0 0 7px;
  color: #07106e;
  font-size: 20px;
}

.profile-v6-card p,
.profile-v6-form small {
  margin: 0;
  color: #6570a7;
  line-height: 1.65;
}

.profile-v6-avatar {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.profile-v6-current {
  position: relative;
  width: 116px;
  height: 116px;
}

.profile-v6-current img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 32px rgba(69, 45, 202, .24);
}

.profile-v6-current b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 34px;
  letter-spacing: 0;
}

.profile-v6-avatar-options {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.profile-v6-avatar-options button {
  width: 54px;
  height: 54px;
  padding: 2px;
  border: 1px solid #dfe6f5;
  border-radius: 50%;
  background: #fff;
}

.profile-v6-avatar-options button.active {
  border-color: #6541ff;
  box-shadow: 0 0 0 4px #eee8ff;
}

.profile-v6-avatar-options img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.profile-v6-secondary {
  height: 40px;
  padding: 0 22px;
  border: 1px solid #cfc6ff;
  border-radius: 7px;
  color: #6541ff;
  background: #fff;
  font-weight: 760;
}

.profile-v6-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px 24px;
  align-items: center;
}

.profile-v6-form label {
  display: contents;
}

.profile-v6-form span {
  color: #07106e;
  font-weight: 740;
}

.profile-v6-form input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #dfe6f5;
  border-radius: 7px;
  color: #07106e;
  background: #fff;
}

.profile-v6-form small {
  grid-column: 2;
  margin-top: -14px;
}

.profile-v6-form button {
  grid-column: 1 / 2;
  width: max-content;
  min-width: 104px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #3b27f0, #8b4cff);
  box-shadow: 0 14px 28px rgba(90, 57, 255, .2);
  font-weight: 760;
}

.profile-v6-form.compact button {
  grid-column: 2;
  justify-self: start;
}

.feature-strip,
.overview-board,
.usage-metrics,
.growth-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-strip {
  padding: 18px;
}

.feature-strip div,
.overview-board div,
.usage-metrics div,
.growth-card-v2 {
  padding: 16px;
  border: 1px solid #edf1f8;
  border-radius: 8px;
  background: #fbfcff;
}

.design-table-wrap {
  overflow-x: auto;
}

.design-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.design-table th,
.design-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf1f8;
  color: #1f2857;
  text-align: left;
}

.design-table th {
  color: #667194;
  background: #f7f9ff;
  font-size: 13px;
}

.status-paid,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #16a34a;
  background: #e7faee;
  font-size: 12px;
}

.progress-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3927ef, #8b4dff);
}

.usage-tabs {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.usage-tabs button {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #e2e7f3;
  border-radius: 7px;
  color: #5d668c;
  background: #fff;
}

.usage-tabs button.active {
  color: #3927ef;
  border-color: #cfc6ff;
  background: #f3f0ff;
}

.subscription-url-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #edf1f8;
  border-radius: 8px;
  background: #fbfcff;
}

.subscription-url-row code {
  overflow: hidden;
  color: #5d668c;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-form-design,
.ticket-form,
.redeem-form {
  display: grid;
  gap: 16px;
}

.profile-form-design label,
.ticket-form label,
.redeem-form label {
  display: grid;
  gap: 8px;
  color: #364063;
  font-weight: 650;
}

.profile-form-design input,
.ticket-form input,
.ticket-form textarea,
.redeem-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dfe5f2;
  border-radius: 7px;
  color: #11133f;
  background: #fff;
}

.ticket-form textarea {
  min-height: 118px;
  padding-top: 12px;
}

.growth-code-list-v2 label,
.growth-table-v2 p {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #edf1f8;
}

.growth-code-list-v2 input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dfe5f2;
  border-radius: 7px;
}

@media (max-width: 1180px) {
  .campaign-grid-v1,
  .campaign-referral-v1 > div,
  .growth-v6-tool-grid,
  .growth-v6-main,
  .growth-v6-kpis,
  .reward-v6-top,
  .nodes-v6-summary,
  .nodes-v6-filter,
  .orders-v6-summary,
  .plans-v6-grid,
  .plans-v6-features,
  .plan-period-grid-v2,
  .overview-board,
  .usage-metrics,
  .growth-grid-v2,
  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .campaign-nav-v1 {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .campaign-nav-v1 nav {
    flex-wrap: wrap;
  }

  .campaign-hero-v1 {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 34px 0;
  }

  .campaign-hero-v1 h1 {
    font-size: 52px;
  }

  .campaign-grid-v1,
  .campaign-referral-v1 > div,
  .profile-v6-avatar,
  .profile-v6-form,
  .growth-v6-tool-grid,
  .growth-v6-main,
  .growth-v6-kpis,
  .reward-v6-top,
  .nodes-v6-summary,
  .nodes-v6-filter,
  .tickets-v6-form form,
  .tickets-v6-tabs,
  .orders-v6-summary,
  .orders-v6-tabs,
  .plans-v6-grid,
  .plans-v6-features,
  .plan-period-grid-v2,
  .overview-board,
  .usage-metrics,
  .growth-grid-v2,
  .feature-strip,
  .subscription-url-row,
  .progress-row,
  .growth-code-list-v2 label,
  .growth-table-v2 p {
    grid-template-columns: 1fr;
  }
  .plans-v6-card {
    min-height: 0;
    padding: 34px 18px 22px;
  }
  .plans-v6-specs {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .plans-v6-features {
    padding: 18px;
  }
  .plans-v6-features div {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .plans-v6-features span {
    width: 44px;
    height: 44px;
  }
  .orders-v6-summary {
    padding: 18px;
  }
  .orders-v6-summary article {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid #edf1f8;
  }
  .orders-v6-summary article:last-child {
    border-bottom: 0;
  }
  .orders-v6-tabs {
    gap: 10px;
  }
  .orders-v6-tabs a,
  .orders-v6-tabs button {
    width: 100%;
  }
  .orders-v6-tabs button {
    justify-self: stretch;
  }
  .tickets-v6-form {
    padding: 18px;
  }
  .tickets-v6-form button[type="submit"] {
    justify-self: stretch;
    width: 100%;
  }
  .tickets-v6-tabs {
    gap: 8px;
    padding: 12px;
  }
  .tickets-v6-tabs a,
  .tickets-v6-tabs button {
    width: 100%;
    justify-content: center;
  }
  .tickets-v6-tabs button {
    justify-self: stretch;
  }
  .nodes-v6-summary {
    padding: 14px;
  }
  .nodes-v6-summary article {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid #edf1f8;
  }
  .nodes-v6-summary article:last-child {
    border-bottom: 0;
  }
  .nodes-v6-map > header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }
  .nodes-v6-world {
    min-height: 560px;
  }
  .nodes-v6-filter {
    padding: 12px;
  }
  .nodes-v6-list nav {
    gap: 8px;
    overflow-x: auto;
  }
  .nodes-v6-list input {
    width: 100%;
  }
  .reward-tabs-v6 {
    gap: 18px;
    overflow-x: auto;
  }
  .growth-v6-tools,
  .growth-v6-activity,
  .growth-v6-data,
  .growth-v6-record,
  .reward-v6-exchange,
  .reward-v6-source,
  .reward-v6-rules,
  .reward-v6-record {
    padding: 18px;
  }
  .growth-v6-event,
  .reward-v6-exchange form {
    grid-template-columns: 1fr;
  }
  .growth-v6-record {
    grid-column: auto;
    overflow-x: auto;
  }
  .growth-v6-record table,
  .reward-v6-record table {
    min-width: 760px;
  }
  .growth-v6-share {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-v6,
  .profile-v6-card {
    padding: 18px;
  }
  .profile-v6-form label {
    display: grid;
    gap: 8px;
  }
  .profile-v6-form small,
  .profile-v6-form button,
  .profile-v6-form.compact button {
    grid-column: auto;
  }
}

.home-notice-v2 p {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #e5ecf8;
}

.home-notice-v2 p small {
  grid-column: 2;
}

.home-notice-v2 p b {
  color: #fff;
  border-radius: 6px;
  background: #1767ff;
  text-align: center;
}

.home-notice-v2 p span {
  grid-row: 1 / 3;
  grid-column: 3;
  justify-self: end;
  color: #63769d;
}

.home-tutorial-v2 {
  display: grid;
  gap: 12px;
}

.home-page-footer {
  margin-left: 177px;
  padding: 24px;
  color: #63769d;
  text-align: center;
}

.admin-kpi,
.admin-card,
.wide-card,
.dashboard-metric,
.dashboard-link,
.subscription-card,
.chart-card,
.orders-card,
.plan-card {
  border: 1px solid rgba(83, 126, 255, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(245,249,255,0.66));
  box-shadow: 0 24px 70px rgba(78, 100, 184, 0.13), inset 0 0 0 1px rgba(255,255,255,0.42);
  backdrop-filter: blur(22px);
}

.admin-kpi {
  min-height: 132px;
  position: relative;
  overflow: hidden;
}

.admin-kpi::before,
.admin-card::before,
.dashboard-grid::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 18px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  transform: rotate(18deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(66, 130, 255, 0.22)),
    linear-gradient(45deg, transparent 48%, rgba(138, 85, 255, 0.32) 49% 51%, transparent 52%);
  opacity: 0.36;
  pointer-events: none;
}

.admin-card {
  position: relative;
}

.admin-kpi span,
.admin-kpi small,
.admin-table th,
.admin-table small {
  color: #6070a3;
}

.admin-kpi strong,
.section-head h2,
.admin-table strong {
  color: #08184a;
}

.health-ring {
  background: conic-gradient(#8a55ff 0 72%, #20c7ff 72% 100%);
  box-shadow: 0 16px 45px rgba(96, 103, 255, 0.22);
}

.quick-action-grid a {
  border-color: rgba(83, 126, 255, 0.2);
  color: #185dff;
  background: rgba(255,255,255,0.62);
}

.admin-table th {
  background: rgba(237, 244, 255, 0.72);
}

.admin-table td {
  border-bottom-color: rgba(83, 126, 255, 0.12);
}

.chip.good,
.chip.status-good {
  color: #185dff;
  background: rgba(30, 99, 255, 0.1);
}

.chip.warn,
.chip.status-warn {
  color: #7c4dff;
  background: rgba(124, 77, 255, 0.1);
}

.chip.bad,
.chip.status-bad {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.admin-inline-create,
.admin-settings-form input,
.admin-settings-form textarea {
  border-color: rgba(83, 126, 255, 0.18);
  background: rgba(255,255,255,0.66);
}

.table-action {
  border-color: rgba(83, 126, 255, 0.2);
  color: #185dff;
  background: rgba(255,255,255,0.74);
}

/* Second design alignment pass: mirror design/frontend/1.png composition. */
.design-dashboard {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-welcome-panel {
  grid-column: span 8;
  min-height: 284px;
}

.dashboard-welcome-panel h2 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.dashboard-welcome-panel .hero-status-strip {
  max-width: 620px;
}

.account-panel {
  grid-column: span 4;
  min-height: 284px;
  padding: 28px;
  border: 1px solid rgba(83, 126, 255, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 0%, rgba(138, 85, 255, 0.18), transparent 14rem),
    linear-gradient(145deg, rgba(255,255,255,0.88), rgba(240,247,255,0.7));
  box-shadow: 0 24px 70px rgba(78, 100, 184, 0.13), inset 0 0 0 1px rgba(255,255,255,0.46);
  backdrop-filter: blur(22px);
}

.account-orb {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #5fb5ff, #8a55ff);
  box-shadow: 0 18px 45px rgba(90, 98, 255, 0.34), inset 0 0 0 1px rgba(255,255,255,0.34);
  font-size: 28px;
  font-weight: 900;
}

.account-panel h3 {
  margin: 4px 0 14px;
  color: #08184a;
  font-size: 30px;
}

.account-lines {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.account-lines div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(83, 126, 255, 0.14);
}

.account-lines span,
.usage-line span {
  color: #6070a3;
}

.account-lines strong {
  color: #071b62;
}

.subscription-overview-card {
  grid-column: span 8;
  display: block;
  min-height: 250px;
}

.subscription-overview-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.subscription-overview-card h2 {
  margin: 4px 0 0;
}

.usage-stack {
  display: grid;
  gap: 24px;
}

.usage-line {
  display: grid;
  gap: 10px;
}

.usage-line > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.usage-line strong {
  color: #071b62;
  font-size: 16px;
}

.usage-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(213, 227, 255, 0.86);
  box-shadow: inset 0 1px 4px rgba(72, 88, 150, 0.12);
}

.usage-bar span {
  display: block;
  min-width: 8px;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #20c7ff, #2d6dff);
  box-shadow: 0 8px 24px rgba(45, 109, 255, 0.26);
}

.usage-bar.violet span {
  background: linear-gradient(90deg, #7c5cff, #c084fc);
}

.dashboard-token-card {
  grid-column: span 4;
  min-height: 250px;
}

.dashboard-usage-card {
  grid-column: span 5;
}

.design-dashboard .dashboard-orders {
  grid-column: span 7;
}

.design-dashboard .link-card code {
  min-height: 100px;
}

.design-dashboard .chart-lines {
  background:
    radial-gradient(circle at 22% 22%, rgba(32, 199, 255, 0.1), transparent 12rem),
    repeating-linear-gradient(180deg, transparent 0 52px, rgba(89,107,148,0.12) 53px 54px),
    rgba(248, 251, 255, 0.8);
}

.admin-design-hero {
  min-height: 284px;
}

.admin-design-hero h2 {
  font-size: clamp(42px, 4.8vw, 58px);
  line-height: 1.04;
}

@media (max-width: 1180px) {
  .dashboard-welcome-panel,
  .account-panel,
  .subscription-overview-card,
  .dashboard-token-card,
  .dashboard-usage-card,
  .design-dashboard .dashboard-orders {
    grid-column: 1 / -1;
  }
}

/* Auth pages: real DOM implementation matching design/frontend login/register direction. */
.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 47%, rgba(149, 180, 255, 0.28) 0 0, rgba(149, 180, 255, 0.18) 11rem, transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(171, 130, 255, 0.16), transparent 20rem),
    linear-gradient(180deg, #f9fbff 0%, #edf5ff 100%);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 20% 14%, rgba(111, 149, 228, 0.12) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(166deg, transparent 0 8px, rgba(92, 128, 235, 0.11) 9px 10px, transparent 11px 18px);
  mask-image: linear-gradient(100deg, rgba(0,0,0,0.88), transparent 68%);
  opacity: 0.7;
}

.auth-visual::after {
  content: "";
  position: absolute;
  left: -6vw;
  right: -6vw;
  top: 44%;
  height: 230px;
  background:
    repeating-linear-gradient(172deg, transparent 0 9px, rgba(84, 123, 225, 0.16) 10px 11px, transparent 12px 18px);
  transform: skewY(-7deg);
  opacity: 0.65;
}

.auth-orb {
  position: absolute;
  left: 50%;
  top: 47%;
  width: 620px;
  height: 620px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 42% 35%, rgba(255,255,255,0.74), transparent 30%),
    linear-gradient(135deg, rgba(69, 181, 255, 0.2), rgba(160, 91, 255, 0.24));
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: inset 0 0 80px rgba(255,255,255,0.46);
}

.auth-cube {
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(80, 145, 255, 0.22), rgba(147, 91, 255, 0.28));
  filter: blur(1px);
  transform: rotate(22deg);
  box-shadow: 0 24px 60px rgba(101, 121, 255, 0.22), inset 0 0 28px rgba(255,255,255,0.4);
}

.auth-cube-left {
  left: 9%;
  top: 31%;
}

.auth-crystal {
  position: absolute;
  right: 8%;
  top: 38%;
  width: 270px;
  height: 270px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.75), rgba(107, 157, 255,0.18)),
    linear-gradient(135deg, rgba(37, 136, 255,0.32), rgba(147, 83, 255,0.42));
  box-shadow: 0 34px 90px rgba(76, 98, 220, 0.24), inset 0 0 52px rgba(255,255,255,0.58);
  transform: perspective(500px) rotateX(54deg) rotateZ(45deg);
  opacity: 0.86;
}

.auth-crystal span,
.auth-crystal i {
  position: absolute;
  inset: 50px;
  border: 1px solid rgba(255,255,255,0.72);
  background: linear-gradient(135deg, rgba(36, 148, 255, 0.52), rgba(126, 72, 255, 0.48));
}

.auth-crystal i {
  inset: 86px;
  display: block;
  background: linear-gradient(135deg, #28a8ff, #654dff);
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 560px;
  padding: 54px 48px 40px;
  border: 1px solid rgba(171, 194, 245, 0.75);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 30px 90px rgba(74, 91, 172, 0.18);
  backdrop-filter: blur(22px);
}

.auth-title {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 38px;
}

.auth-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #22a3ff, #a335f2);
  box-shadow: 0 14px 30px rgba(92, 101, 255, 0.34);
}

.auth-title h1 {
  margin: 0;
  color: #071348;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.auth-title p {
  margin: 12px 0 0;
  color: #7d8caf;
  font-size: 16px;
}

.auth-card .field {
  position: relative;
  display: block;
  margin: 0 0 20px;
  color: transparent;
}

.auth-card .field::before {
  position: absolute;
  left: 22px;
  top: 50%;
  z-index: 1;
  width: 22px;
  color: #7786b2;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
}

.auth-card .icon-user::before { content: "♙"; }
.auth-card .icon-lock::before { content: "▣"; }
.auth-card .icon-mail::before { content: "✉"; }

.auth-card .field input {
  height: 58px;
  padding: 0 52px 0 62px;
  color: #172554;
  font-size: 16px;
  border: 1px solid #d8e1f8;
  border-radius: 10px;
  background: rgba(255,255,255,0.64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.auth-card .field input::placeholder {
  color: #8997bb;
  opacity: 1;
}

.auth-card .btn-primary {
  width: 100%;
  height: 60px;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 800;
  border-radius: 9px;
  background: linear-gradient(100deg, #168eff 0%, #216dff 50%, #a52ef1 100%);
  box-shadow: 0 18px 38px rgba(70, 95, 255, 0.26);
}

.auth-switch {
  margin: 28px 0 0;
  color: #7d8caf;
  text-align: center;
  font-size: 16px;
}

.auth-switch a {
  color: #1267f7;
  font-weight: 800;
}

.auth-footer {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 42px;
  color: #7d8caf;
  text-align: center;
  font-size: 15px;
}

@media (max-width: 760px) {
  .auth-card {
    width: min(560px, calc(100vw - 32px));
    padding: 38px 26px 30px;
  }
  .auth-crystal,
  .auth-cube-left {
    opacity: 0.35;
  }
  .auth-title h1 {
    font-size: 28px;
  }
}

/* Platform landing */
.platform-page {
  min-height: 100vh;
  padding: 0 0 42px;
  color: #091653;
  background:
    radial-gradient(circle at 13% 22%, rgba(105, 132, 255, 0.2), transparent 25rem),
    radial-gradient(circle at 86% 12%, rgba(136, 86, 255, 0.15), transparent 21rem),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.platform-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 52px;
  border: 1px solid #d9e4fb;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(61, 88, 172, 0.1);
  backdrop-filter: blur(18px);
}

.platform-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0b1855;
  font-size: 24px;
  font-weight: 900;
}

.platform-brand span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(135deg, #1aa2ff, #9a3ff2);
}

.platform-nav nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.platform-nav nav a {
  color: #13205a;
  font-weight: 700;
}

.platform-nav .platform-cta {
  padding: 14px 23px;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(100deg, #2568ff, #9b42f3);
  box-shadow: 0 14px 28px rgba(87, 96, 224, 0.24);
}

.platform-hero,
.platform-metrics,
.platform-wide,
.platform-feature-grid,
.platform-ops,
.platform-footer {
  width: min(1080px, calc(100vw - 48px));
  margin-inline: auto;
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 64px;
  align-items: center;
  padding: 42px 0 34px;
}

.platform-kicker {
  margin: 0 0 18px;
  color: #225dff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.platform-copy h1 {
  margin: 0 0 22px;
  color: #071351;
  font-size: 116px;
  line-height: 0.9;
  letter-spacing: 0;
}

.platform-copy > p:not(.platform-kicker) {
  max-width: 480px;
  margin: 0 0 30px;
  color: #536489;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.75;
}

.platform-actions {
  display: flex;
  gap: 18px;
}

.platform-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  height: 48px;
  color: #fff;
  font-weight: 900;
  border-radius: 9px;
  background: linear-gradient(100deg, #246dff, #913af2);
  box-shadow: 0 18px 35px rgba(81, 94, 227, 0.22);
}

.platform-actions a + a {
  color: #2663ff;
  border: 1px solid #8eb0ff;
  background: rgba(255,255,255,0.54);
  box-shadow: none;
}

.platform-terminal {
  min-height: 352px;
  padding: 24px 30px;
  border: 1px solid #d7e3fb;
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 24px 60px rgba(61, 84, 166, 0.16);
}

.platform-terminal header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.platform-terminal header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.platform-terminal header span:nth-child(1) { background: #ff5c58; }
.platform-terminal header span:nth-child(2) { background: #ffbd35; }
.platform-terminal header span:nth-child(3) { background: #54d979; }

.platform-terminal header b {
  margin-left: auto;
  color: #2169ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.platform-terminal pre {
  margin: 0;
  color: #071653;
  font: 700 15px/2 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}

.platform-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 6px;
}

.platform-metrics article,
.platform-feature,
.platform-ops {
  border: 1px solid #dce7fa;
  border-radius: 12px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 14px 40px rgba(63, 88, 172, 0.1);
}

.platform-metrics article {
  min-height: 148px;
  padding: 22px 24px;
}

.platform-metrics small {
  color: #246cff;
  font-weight: 900;
}

.platform-metrics i,
.platform-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 8px 0 18px;
  color: #416fff;
  font-style: normal;
  font-size: 27px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff4ff, #f4efff);
}

.platform-metrics h3,
.platform-feature h2,
.platform-ops h2 {
  margin: 0 0 8px;
  color: #091653;
  letter-spacing: 0;
}

.platform-metrics p,
.platform-feature p,
.platform-ops span {
  margin: 0;
  color: #536489;
  font-weight: 700;
  line-height: 1.75;
}

.platform-wide {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  margin-top: 30px;
  padding: 28px;
}

.platform-wide span {
  display: inline-flex;
  margin: 18px 10px 0 0;
  padding: 5px 14px;
  color: #2464ff;
  border: 1px solid #b9ccff;
  border-radius: 9px;
  background: #f8fbff;
}

.platform-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.platform-feature-grid .platform-feature {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
}

.platform-ops {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 20px;
  padding: 28px;
}

.platform-ops ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-ops li {
  display: grid;
  grid-template-columns: 44px 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed #c8d5ee;
}

.platform-ops li:last-child {
  border-bottom: 0;
}

.platform-ops b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  color: #3266ff;
  border-radius: 7px;
  background: #edf3ff;
}

.platform-ops strong {
  color: #091653;
}

.platform-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 38px;
  color: #617194;
}

.platform-footer nav {
  display: flex;
  gap: 34px;
}

.platform-footer a {
  color: #536489;
}

@media (max-width: 860px) {
  .platform-nav {
    height: auto;
    padding: 18px 20px;
  }
  .platform-nav nav {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .platform-hero,
  .platform-feature-grid,
  .platform-ops,
  .platform-wide {
    grid-template-columns: 1fr;
  }
  .platform-copy h1 {
    font-size: 64px;
  }
  .platform-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Admin shell final alignment */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  color: #111a3f;
  background:
    radial-gradient(circle at 70% 4%, rgba(79, 116, 255, .08), transparent 26rem),
    #f8fbff;
}

.admin-main {
  min-width: 0;
  padding: 0;
}

.admin-topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 34px;
  border-bottom: 1px solid #e2e9f5;
  background: rgba(255,255,255,.92);
}

.admin-top-title {
  min-width: 220px;
  flex: 1 1 auto;
}

.admin-top-title h1 {
  margin: 0;
  color: #091342;
  font-size: 24px;
  font-weight: 900;
}

.admin-top-title p {
  margin: 8px 0 0;
  color: #61708e;
  font-size: 13px;
  font-weight: 750;
}

.admin-top-tools {
  flex: 0 1 auto;
  justify-content: flex-end;
}

.admin-page-stack {
  display: grid;
  gap: 28px;
  padding: 40px 34px 56px;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 10px 20px;
  border-right: 1px solid #e2e9f5;
  background: rgba(255,255,255,.96);
}

.admin-brand {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px 20px;
  color: #121a3f;
}

.admin-brand .brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #36c5ff, #944dff);
  box-shadow: 0 12px 28px rgba(84,102,220,.22);
}

.admin-brand span:last-child {
  display: grid;
  gap: 3px;
  font-size: 22px;
  font-weight: 900;
}

.admin-brand small {
  color: #60708f;
  font-size: 13px;
  font-weight: 700;
}

.admin-nav-list {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #e7edf7;
}

.admin-nav-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 26px;
  border-radius: 8px;
  color: #566684;
  font-size: 15px;
  font-weight: 800;
}

.admin-nav-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
  object-fit: contain;
  opacity: .72;
  transform: translateY(.5px);
}

.admin-nav-list a:hover,
.admin-nav-list a.active {
  color: #315dff;
  background: linear-gradient(90deg, rgba(49,93,255,.13), rgba(139,92,246,.08));
  box-shadow: inset 3px 0 0 #315dff;
}

.admin-nav-list a:hover .admin-nav-icon,
.admin-nav-list a.active .admin-nav-icon {
  opacity: 1;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-user-dot {
  color: #506080;
  font-weight: 800;
}

.admin-logout {
  border: 0;
  color: #315dff;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.admin-page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.admin-page-title h1 {
  margin: 0;
  color: #091342;
  font-size: 28px;
  letter-spacing: 0;
}

.admin-page-title p {
  margin: 12px 0 0;
  color: #536383;
  font-weight: 700;
}

.admin-page-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-secondary-action {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #cfd8ff;
  border-radius: 8px;
  color: #315dff;
  background: #fff;
  box-shadow: none;
  font-weight: 850;
}

.admin-page-tools > .btn::before,
.admin-secondary-action::before {
  content: "+";
  margin-right: 8px;
  font-size: 18px;
  line-height: 1;
}

.admin-search input {
  width: 260px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  color: #152447;
  background: #fff;
  font-weight: 700;
}

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

.admin-kpi,
.admin-card {
  border: 1px solid #e2e9f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(45,64,110,.08);
}

.admin-kpi {
  min-height: 142px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 0 22px;
  padding: 26px 30px;
}

.admin-kpi:nth-child(2) small::after {
  content: "▤";
  color: #16bf7b;
}

.admin-kpi:nth-child(3) small::after {
  content: "◇";
  color: #8d55f6;
}

.admin-kpi:nth-child(4) small::after {
  content: "▧";
  color: #f08a24;
}

.admin-kpi small {
  grid-row: span 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: transparent;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef4ff, #f4efff);
}

.admin-kpi small::after {
  content: "▣";
  color: #315dff;
  font-size: 30px;
}

.admin-kpi strong {
  color: #315dff;
  font-size: 36px;
}

.admin-kpi span {
  color: #27375f;
  font-weight: 850;
}

.admin-grid-main {
  display: grid;
  grid-template-columns: 1fr;
}

.admin-card {
  padding: 28px 30px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  color: #091342;
}

.eyebrow {
  margin: 0 0 8px;
  color: #536383;
  font-weight: 800;
}

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

.quick-action-grid a {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid #dfe7f4;
  border-radius: 10px;
  color: #14234b;
  background: linear-gradient(90deg, #fff, #f8fbff);
  font-weight: 850;
}

.quick-action-grid img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}

.admin-quick-card {
  min-height: 188px;
}

.admin-health-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.admin-health-ring {
  width: 146px;
  height: 146px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(#7b4dff 72%, #24c1f2 0);
  color: #102046;
  box-shadow: inset 0 0 0 24px #fff;
}

.admin-health-ring strong {
  font-size: 34px;
}

.admin-health-ring span {
  color: #536383;
  font-weight: 800;
}

.admin-health-layout ul,
.admin-recent-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-health-layout li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #344463;
  font-weight: 800;
}

.admin-health-layout i,
.admin-recent-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18b97f;
}

.admin-health-layout i.warn {
  background: #f0a000;
}

.admin-health-layout i.bad {
  background: #ee3f5d;
}

.admin-recent-list p {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 4px 12px;
  margin: 0;
}

.admin-recent-list strong {
  overflow: hidden;
  color: #14234b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-recent-list span {
  grid-column: 2;
  color: #71809a;
  font-size: 14px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e9f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(45,64,110,.06);
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.admin-table th,
.admin-table td {
  min-height: 64px;
  padding: 18px 22px;
  border-bottom: 1px solid #e7edf7;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap:has(+ .admin-table-pager) {
  border-radius: 12px 12px 0 0;
}

.admin-inline-create {
  margin-bottom: 20px;
}

.admin-create-panel {
  border: 1px solid #e2e9f5;
  border-radius: 12px;
  background: #fbfdff;
}

.admin-create-panel summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #315dff;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.admin-create-panel summary::-webkit-details-marker {
  display: none;
}

.admin-create-panel summary::before {
  content: "+";
  width: 22px;
  margin-right: 8px;
  font-size: 20px;
}

.admin-create-collapsed {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto auto;
  gap: 12px;
  padding: 0 16px 16px;
  background: #fff;
}

.admin-create-collapsed input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  background: #fff;
}

.admin-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.admin-users-table td:nth-child(7),
.admin-users-table td:nth-child(9),
.admin-plans-table td:last-child {
  white-space: nowrap;
}

.admin-users-table .table-action,
.admin-plans-table .table-action {
  margin: 3px 5px 3px 0;
}

.table-action.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #3d7bff, #7657ff);
}

.table-action.muted {
  color: #55627d;
  border-color: transparent;
  background: #f1f4fa;
}

.table-action.warn {
  color: #f08a24;
  border-color: #ffd69a;
  background: #fff9ef;
}

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

.admin-gift-form select,
.admin-gift-form input {
  height: 36px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  padding: 0 10px;
  color: #152447;
  background: #fff;
  font: inherit;
}

.admin-gift-form label {
  display: grid;
  gap: 8px;
  color: #657590;
  font-size: 12px;
}

.admin-table-action-cell {
  vertical-align: middle;
}

.admin-gift-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: linear-gradient(180deg, #f8faff 0%, #fff 48%);
  box-shadow: 0 22px 70px rgba(30, 43, 76, 0.22);
}

.admin-gift-dialog::backdrop {
  background: rgba(14, 22, 42, 0.26);
}

.admin-gift-panel {
  position: relative;
  padding: 18px;
}

.admin-gift-panel header {
  padding: 16px;
  border-radius: 16px;
  color: #17233f;
  background: transparent;
}

.admin-gift-panel header small {
  display: block;
  margin-bottom: 4px;
  color: #71809c;
}

.admin-gift-panel header strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.admin-gift-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  z-index: 2;
}

.admin-gift-current {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #e6edf8;
  border-radius: 14px;
  background: #fff;
}

.admin-gift-current > span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #5941d2;
  background: #f0edff;
  font-size: 12px;
}

.admin-gift-current b,
.admin-gift-current small {
  display: block;
}

.admin-gift-current b {
  color: #17233f;
  font-size: 14px;
}

.admin-gift-current small {
  margin-top: 3px;
  color: #71809c;
}

.admin-gift-panel nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 10px;
  background: #f3f6fb;
}

.admin-gift-panel nav button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: #657590;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.admin-gift-panel nav button.active {
  color: #182849;
  background: #fff;
}

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

.admin-gift-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.admin-gift-form footer button {
  min-width: 92px;
}

@media (max-width: 640px) {
  .admin-gift-panel nav,
  .admin-gift-grid {
    grid-template-columns: 1fr;
  }
}

.mail-template-card {
  margin-top: 22px;
}

.mail-template-card header {
  align-items: flex-start;
}

.mail-template-card header p {
  max-width: 760px;
  margin: 0;
  color: #6b7898;
  line-height: 1.7;
  font-size: 13px;
}

.mail-template-row {
  display: grid;
  grid-template-columns: minmax(240px, .45fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #edf2fa;
}

.mail-template-row label {
  display: grid;
  gap: 10px;
}

.mail-template-row span {
  color: #2e3b60;
  font-size: 14px;
  font-weight: 850;
}

.mail-template-row input,
.mail-template-row textarea {
  width: 100%;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  color: #152447;
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.mail-template-row input {
  height: 44px;
  padding: 0 14px;
}

.mail-template-row textarea {
  min-height: 108px;
  padding: 14px;
  resize: vertical;
}

.chip.status-info {
  color: #2870e8;
  background: #e8f2ff;
}

.token-pill,
.sub-link {
  display: inline-flex;
  align-items: center;
  max-width: 420px;
  min-height: 34px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid #cfdcf5;
  border-radius: 7px;
  color: #2d6df6;
  background: #f5f8ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-link {
  color: #46577a;
  background: #fff;
}

.copy-mini {
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border: 0;
  color: #6f7fa0;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.token-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.token-actions button {
  height: 32px;
  padding: 0 14px;
  border: 1px solid #cfd8ff;
  border-radius: 7px;
  color: #315dff;
  background: #fff;
  font-weight: 850;
}

.admin-orders-table th,
.admin-redeem-table th,
.admin-token-table th {
  height: 64px;
}

.admin-token-table .inline-action {
  display: inline-block;
  margin-right: 8px;
}

.admin-table-pager {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid #e2e9f5;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #283761;
  font-weight: 850;
  box-shadow: 0 18px 48px rgba(45,64,110,.06);
}

.admin-table-pager nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-table-pager button,
.admin-table-pager b,
.admin-table-pager select {
  min-width: 42px;
  height: 42px;
  border: 1px solid #dbe4f3;
  border-radius: 8px;
  background: #fff;
  color: #536383;
  font: inherit;
  font-weight: 850;
}

.admin-table-pager b {
  display: grid;
  place-items: center;
  color: #315dff;
  background: #eef1ff;
}

.admin-table-pager label {
  justify-self: end;
}

.admin-table-pager select {
  min-width: 118px;
  padding: 0 14px;
}

.admin-node-groups-table td:last-child,
.admin-relays-table td:nth-child(6) {
  white-space: nowrap;
}

.admin-nodes-table .chip,
.admin-node-ops-table .chip,
.admin-relays-table .chip {
  margin: 3px 5px 3px 0;
}

.admin-nodes-table code.token-pill {
  margin-top: 8px;
  max-width: 180px;
}

.admin-node-ops-table td {
  vertical-align: top;
}

.admin-node-ops-table small,
.admin-nodes-table small {
  line-height: 1.7;
}

.node-ops-page {
  display: grid;
  gap: 22px;
}

.node-ops-hero,
.node-ops-kpis article,
.node-ops-ranks article,
.node-ops-matrix {
  border: 1px solid #e2e9f5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(45,64,110,.06);
}

.node-ops-hero {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #fff, #faf7ff);
}

.node-ops-hero small {
  color: #4d63ff;
  letter-spacing: 4px;
  font-weight: 900;
}

.node-ops-hero h2 {
  margin: 12px 0 10px;
  color: #091342;
  font-size: 28px;
}

.node-ops-hero p {
  margin: 0;
  color: #536383;
  font-weight: 750;
}

.node-ops-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.node-ops-kpis article {
  min-height: 116px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-content: center;
  gap: 4px 14px;
  padding: 20px 22px;
}

.node-ops-kpis i {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #315dff;
  background: #eef4ff;
  font-style: normal;
  font-size: 24px;
}

.node-ops-kpis article:nth-child(1) i { color: #15b879; background: #eafbf3; }
.node-ops-kpis article:nth-child(2) i { color: #f08a24; background: #fff3e5; }
.node-ops-kpis article:nth-child(3) i { color: #eb4664; background: #ffecef; }
.node-ops-kpis article:nth-child(5) i { color: #7b4dff; background: #f3edff; }

.node-ops-kpis strong {
  color: #315dff;
  font-size: 28px;
}

.node-ops-kpis span {
  color: #27375f;
  font-weight: 850;
}

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

.node-ops-ranks article {
  min-height: 160px;
  padding: 24px;
}

.node-ops-ranks h3,
.node-ops-matrix h3 {
  margin: 0;
  color: #14234b;
}

.node-ops-ranks p {
  min-height: 92px;
  display: grid;
  place-items: center;
  margin: 18px 0 0;
  border-top: 1px solid #e7edf7;
  color: #91a0bc;
  font-weight: 850;
}

.node-ops-matrix {
  padding: 24px;
}

.node-ops-matrix > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.node-ops-matrix > header span {
  color: #60708f;
  font-weight: 800;
}

.admin-settings-form {
  margin-top: 0;
}

.admin-config-page {
  display: grid;
  gap: 26px;
}

.admin-config-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: -10px;
}

.admin-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .96fr);
  gap: 22px;
}

.admin-config-card,
.admin-list-card {
  border: 1px solid #e1e8f5;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(45,64,110,.08);
}

.admin-config-card {
  padding: 28px 30px;
}

.admin-config-card header,
.admin-list-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-config-card h2,
.admin-list-card h2 {
  margin: 0;
  color: #091342;
  font-size: 20px;
}

.admin-config-card header small {
  color: #4b5cff;
  font-weight: 850;
}

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

.admin-field-grid label,
.rules-card label {
  display: grid;
  gap: 10px;
}

.admin-field-grid .full-row {
  grid-column: 1 / -1;
}

.admin-field-grid span,
.rules-card label span {
  color: #2e3b60;
  font-size: 14px;
  font-weight: 850;
}

.admin-field-grid input,
.admin-field-grid textarea,
.rules-card textarea,
.sub-preview-card textarea,
.admin-log-filters input,
.admin-log-filters select {
  width: 100%;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  color: #152447;
  background: #fff;
  font: inherit;
  font-weight: 750;
}

.admin-field-grid input,
.admin-log-filters input,
.admin-log-filters select {
  height: 44px;
  padding: 0 16px;
}

.admin-field-grid textarea,
.rules-card textarea,
.sub-preview-card textarea {
  min-height: 118px;
  padding: 16px;
  resize: vertical;
}

.admin-field-grid small,
.rules-card p {
  color: #6b7898;
  line-height: 1.7;
  font-size: 13px;
  font-weight: 700;
}

.admin-switch-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e6edf8;
}

.admin-switch-list label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px 20px;
  align-items: center;
}

.admin-switch-list span {
  color: #253459;
  font-weight: 850;
}

.admin-switch-list small {
  color: #6b7898;
  font-weight: 700;
}

.admin-switch-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-switch-list i {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 50px;
  height: 26px;
  border-radius: 999px;
  background: #dbe3f2;
  position: relative;
}

.admin-switch-list i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(35,48,90,.18);
  transition: transform .18s ease;
}

.admin-switch-list input:checked + i {
  background: linear-gradient(135deg, #3d7bff, #7657ff);
}

.admin-switch-list input:checked + i::after {
  transform: translateX(22px);
}

.sub-preview-card textarea {
  min-height: 260px;
  color: #14234b;
  background: #fbfdff;
  line-height: 1.85;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.rule-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.rule-chip-list span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #ccd8ff;
  border-radius: 7px;
  color: #365dff;
  background: #f6f8ff;
  font-weight: 800;
}

.rules-card textarea {
  min-height: 170px;
  color: #162857;
  line-height: 1.8;
}

.sales-copy-card {
  max-width: none;
}

.sales-config-tabs {
  display: flex;
  gap: 34px;
  border-bottom: 1px solid #dfe7f4;
}

.sales-config-tabs span {
  padding: 0 0 14px;
  color: #536383;
  font-weight: 850;
}

.sales-config-tabs .active {
  color: #315dff;
  border-bottom: 3px solid #315dff;
}

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

.admin-list-card {
  padding: 22px;
}

.admin-list-card header {
  margin-bottom: 16px;
}

.admin-list-card button {
  height: 34px;
  padding: 0 16px;
  border: 1px solid #cfd8ff;
  border-radius: 7px;
  color: #315dff;
  background: #fff;
  font-weight: 850;
}

.admin-list-card p {
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(110px, 1fr) minmax(0, 1.3fr) 52px;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e1e8f5;
  border-bottom-width: 0;
  color: #223153;
  font-weight: 800;
}

.admin-list-card p:last-child {
  border-bottom-width: 1px;
  border-radius: 0 0 8px 8px;
}

.admin-list-card p:first-of-type {
  border-radius: 8px 8px 0 0;
}

.admin-list-card b {
  color: #536dca;
  font-weight: 900;
}

.admin-list-card code {
  overflow: hidden;
  color: #506080;
  font-family: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-card em {
  color: #f25474;
  font-style: normal;
  font-weight: 850;
}

.sales-config-footer {
  min-height: 92px;
  display: grid;
  place-items: end center;
  margin-top: 24px;
  padding-bottom: 18px;
  color: #526486;
  background:
    radial-gradient(120% 70% at 22% 110%, rgba(65, 111, 255, .10), transparent 42%),
    radial-gradient(120% 70% at 82% 110%, rgba(133, 92, 246, .10), transparent 42%);
  font-weight: 750;
}

.admin-log-page {
  display: grid;
  gap: 24px;
}

.admin-log-tabs {
  display: flex;
  gap: 48px;
  border-bottom: 1px solid #dfe7f4;
}

.admin-log-tabs a {
  padding: 0 0 18px;
  color: #536383;
  font-weight: 900;
}

.admin-log-tabs .active {
  color: #315dff;
  border-bottom: 3px solid #315dff;
}

.admin-log-filters {
  display: grid;
  grid-template-columns: 180px 180px minmax(260px, 1fr) 92px;
  gap: 16px;
}

.admin-log-wrap {
  min-height: 620px;
}

.admin-logs-table td,
.admin-logs-table th {
  height: 54px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.log-level {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: #2f66df;
  background: #edf4ff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: relative;
    height: auto;
  }
  .admin-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-kpi-grid,
  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-page-title {
    align-items: start;
    flex-direction: column;
  }
}

.admin-table th {
  color: #5c6a89;
  background: #fff;
  text-align: left;
  font-weight: 900;
}

.admin-table strong {
  color: #14234b;
}

.admin-table small {
  display: block;
  margin-top: 5px;
  color: #6a7795;
}

/* Admin flow final alignment */
.admin-flow-page {
  min-height: calc(100vh - 92px);
  padding: 34px;
}

.admin-flow-card {
  padding: 24px 26px 20px;
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(45,64,110,.08);
}

.admin-flow-card .section-head {
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid #e7edf7;
}

.admin-flow-card .section-head h2 {
  font-size: 26px;
}

.flow-ok {
  min-width: 320px;
  text-align: center;
}

.flow-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.flow-form label,
.flow-form.compact label {
  min-height: 52px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid #e7edf7;
  color: #18254d;
  font-weight: 850;
}

.flow-form.compact label {
  grid-template-columns: 138px minmax(0, 1fr);
}

.flow-form label > input,
.flow-form label > select,
.flow-form label > textarea,
.flow-form label > div {
  grid-column: 2;
}

.flow-form input,
.flow-form select,
.flow-form textarea,
.tag-input {
  min-height: 40px;
  border: 1px solid #d7e2f2;
  border-radius: 7px;
  background: #fff;
  color: #152447;
  font-weight: 750;
}

.flow-form textarea {
  min-height: 70px;
  padding: 12px;
}

.flow-form label > div:not(.stepper):not(.tag-input) {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.flow-form span,
.flow-form b {
  color: #5d6d8f;
}

.tag-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
}

.tag-input span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d8e2f4;
  border-radius: 7px;
  background: #f9fbff;
  color: #435274;
  font-weight: 800;
}

.flow-mini-table {
  margin: 10px 0 18px 190px;
  width: calc(100% - 190px);
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.flow-mini-table th,
.flow-mini-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #e7edf7;
}

.flow-checks {
  display: grid;
  margin: 18px 0;
  border: 1px solid #dfe7f4;
  border-radius: 8px;
  background: #fff;
}

.flow-checks p {
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid #e7edf7;
  color: #233153;
  font-weight: 850;
}

.flow-checks p:last-child {
  border-bottom: 0;
}

.flow-checks span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2fcf8b;
  font-size: 12px;
}

.flow-checks em {
  color: #60708f;
  font-style: normal;
  font-weight: 750;
}

.flow-footer {
  align-items: center;
  padding-top: 8px;
}

.flow-footer div {
  display: grid;
  gap: 14px;
  color: #566684;
  font-weight: 800;
}

.flow-modal-wrap {
  position: relative;
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: start center;
  padding: 0;
}

.flow-modal-wrap::before {
  content: "";
  position: fixed;
  inset: 0;
  left: 230px;
  background: rgba(226,232,244,.62);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.flow-modal {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 320px));
  padding: 0 30px 22px;
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(36,48,90,.16);
}

.flow-modal.relay {
  width: min(860px, calc(100vw - 320px));
}

.flow-modal header {
  min-height: 66px;
  border-bottom: 1px solid #e7edf7;
}

.flow-modal header h2 {
  color: #091342;
  font-size: 22px;
}

.flow-hint {
  margin: 18px 0 8px;
  border: 1px solid #d7e2f2;
  border-radius: 7px;
  background: #f8fbff;
  color: #657391;
}

.flow-modal footer {
  align-items: center;
  margin: 18px -30px -22px;
  padding: 18px 30px;
  border-top: 1px solid #e7edf7;
  background: #fbfcff;
}

.generated-panel {
  width: min(720px, 100%);
  justify-self: center;
  border: 1px solid #bcebd5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5fff9, #fff);
  box-shadow: 0 18px 48px rgba(45,64,110,.08);
}

.generated-panel h2 {
  color: #14ad70;
}

.generated-panel h2 span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  margin-right: 12px;
  border-radius: 50%;
  color: #fff;
  background: #34d399;
}

.deploy-hero-v2 {
  min-height: 210px;
  display: flex;
  align-items: center;
  padding: 34px 44px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(237,244,255,.9)),
    radial-gradient(circle at 78% 38%, rgba(98,115,255,.22), transparent 28rem);
  box-shadow: 0 18px 50px rgba(45,64,110,.08);
}

.deploy-hero-v2 h1 {
  margin: 6px 0 12px;
  color: #091342;
  font-size: 42px;
  line-height: 1.08;
}

.deploy-hero-v2 span {
  color: #5b6b8b;
  font-size: 17px;
  font-weight: 750;
}

.simple-deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 20px;
}

.simple-deploy-form {
  display: grid;
  gap: 18px;
}

.simple-deploy-form label {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.simple-deploy-form .full-row {
  grid-column: 1 / -1;
}

.simple-deploy-form input,
.simple-deploy-form select {
  min-height: 48px;
  border: 1px solid #d7e2f2;
  border-radius: 8px;
  padding: 0 14px;
  color: #152447;
  background: #fff;
  font-weight: 750;
}

.deploy-auto-mode {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 6px 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,248,255,.94)),
    radial-gradient(circle at 92% 18%, rgba(89,37,171,.16), transparent 15rem);
}

.deploy-auto-mode span {
  color: #647290;
  font-size: 13px;
  font-weight: 700;
}

.deploy-auto-mode strong {
  color: #17244a;
  font-size: 16px;
  font-weight: 760;
}

.deploy-auto-mode small {
  grid-column: 2;
  color: #65738f;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 600;
}

.deploy-hint {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  color: #43577e;
  background: #f7f9ff;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 650;
}

.deploy-checklist {
  display: grid;
  align-content: start;
  gap: 0;
}

.deploy-checklist p {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0;
  border-bottom: 1px solid #e7edf7;
  color: #18254d;
  font-weight: 850;
}

.deploy-checklist p:last-child {
  border-bottom: 0;
}

.deploy-checklist p span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #3156ff;
  background: #eef4ff;
}

.deploy-checklist em,
.deploy-result em {
  color: #60708f;
  font-style: normal;
  font-weight: 750;
}

.deploy-result.failed {
  border-color: #ffd0da;
}

.deploying-note {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  color: #3156ff;
  background: #f4f7ff;
  font-weight: 800;
}

.deploying-note strong {
  display: block;
  margin-bottom: 6px;
  color: #18254d;
}

.deploying-note p {
  margin: 0 0 10px;
  color: #60708f;
  font-size: 13px;
  font-weight: 650;
}

.deploying-note ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: #3156ff;
  font-size: 13px;
}

.simple-deploy-form.deploying .deploying-note {
  display: block;
}

.simple-deploy-form.deploying button[type="submit"] {
  opacity: .65;
  pointer-events: none;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.admin-kpi {
  position: relative;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  padding: 24px 26px;
}

.admin-kpi::before,
.admin-kpi::after {
  display: none;
  content: none;
}

.admin-kpi span,
.admin-kpi strong,
.admin-kpi small {
  position: relative;
  z-index: 1;
  grid-row: auto;
  grid-column: auto;
  width: auto;
  height: auto;
  display: block;
  color: inherit;
  background: none;
  border-radius: 0;
}

.admin-kpi span {
  color: #5f6f8f;
  font-size: 14px;
  font-weight: 850;
}

.admin-kpi strong {
  color: #1f49d8;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.admin-kpi small {
  color: #7b88a6;
  font-size: 13px;
  font-weight: 750;
}

.admin-kpi small::after {
  content: none;
}

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

@media (max-width: 640px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px 16px;
  }
  .admin-top-title {
    min-width: 0;
    width: 100%;
  }
  .admin-top-tools,
  .admin-page-tools,
  .admin-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .admin-search,
  .admin-search input {
    width: 100%;
  }
  .admin-create-collapsed,
  .admin-log-filters,
  .ticket-reply-form,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }
  .flow-form label,
  .flow-form.compact label {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }
  .flow-form label > input,
  .flow-form label > select,
  .flow-form label > textarea,
  .flow-form label > div {
    grid-column: 1;
  }
}

/* ponytail: user pages should read lighter; keep the logo area out of this blanket override. */
.user-home-page :where(*:not(.home-logo):not(.home-logo *)) {
  font-weight: 400 !important;
}

.user-home-page :where(h1, h2, h3, h4, strong, b, dt, dd, button, a, small, em):not(.home-logo):not(.home-logo *) {
  font-weight: 400 !important;
}

@media (max-width: 900px) {
  .home-topbar {
    grid-template-columns: 132px minmax(0, 1fr) auto;
    height: auto;
    min-height: 64px;
    gap: 10px;
    padding: 8px 12px;
  }
  .home-topbar > *,
  .home-body > * {
    min-width: 0;
  }
  .home-logo img {
    width: 112px;
    height: 46px;
  }
  .home-topnav {
    justify-self: stretch;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .home-topnav a {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
    border-bottom-width: 2px;
  }
  .home-top-actions button {
    white-space: nowrap;
    font-size: 13px;
  }
  .home-body {
    grid-template-columns: 1fr;
    min-width: 0;
    overflow-x: hidden;
  }
  .home-sidebar {
    position: static;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    min-height: 0;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid #e1e9f8;
    overflow: hidden;
  }
  .home-sidebar nav {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
  }
  .home-sidebar nav p,
  .home-side-plan {
    display: none;
  }
  .home-sidebar nav a {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 12px;
    white-space: nowrap;
    font-size: 13px;
  }
  .home-main {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding: 14px 12px 36px;
  }
  .home-grid-v2 {
    grid-template-columns: 1fr;
  }
  .home-welcome-v2,
  .home-metric-v2,
  .home-current-v2,
  .home-table-v2,
  .home-quick-v2 {
    grid-column: 1;
  }
  .home-welcome-v2 {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px;
  }
  .home-welcome-v2 h1 {
    white-space: normal;
    font-size: 26px;
  }
  .home-cube-v2 {
    display: none;
  }
  .home-profile-v2 {
    grid-column: 1;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .home-metric-v2 h3 {
    white-space: normal;
  }
  .current-layout-v2 {
    grid-template-columns: 1fr;
  }
  .sub-hex-v2 {
    width: 84px;
    height: 84px;
  }
  .current-layout-v2 section h2 {
    white-space: normal;
  }
  .current-layout-v2 section p,
  .current-layout-v2 section div {
    flex-wrap: wrap;
  }
  .sub-qr-v2,
  .current-layout-v2 aside {
    grid-column: 1;
    grid-row: auto;
    border-left: 0;
    padding-left: 0;
  }
  .sub-qr-v2 {
    align-items: flex-start;
  }
  .home-table-v2 {
    overflow-x: auto;
  }
  .home-table-v2 table,
  .design-table {
    min-width: 680px;
  }
  .home-quick-v2 > div {
    grid-template-columns: 1fr;
  }
  .home-main .design-page {
    width: 100%;
  }
  .home-main .plan-hero-v2 {
    min-height: 0;
    padding: 26px 18px;
  }
  .home-main .plan-hero-v2 h1 {
    font-size: 28px;
  }
  .plan-shop-actions-v2 {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .plan-period-grid-v2,
  .feature-strip,
  .overview-board,
  .usage-metrics {
    grid-template-columns: 1fr;
  }
  .plan-period-card-v2 h2 {
    font-size: 30px;
  }
  .plan-level-tabs-v2 {
    padding: 22px 18px 10px;
  }
  .plan-period-price-v2,
  .plan-unlimited-v2,
  .plan-card-line-v2 {
    margin-left: 18px;
    margin-right: 18px;
  }
  .plan-period-card-v2 dl,
  .plan-period-card-v2 section,
  .plan-period-card-v2 form {
    padding-left: 18px;
    padding-right: 18px;
  }
  .ticket-form .btn {
    justify-self: stretch;
    width: 100%;
  }
  .growth-grid-v2 {
    grid-template-columns: 1fr;
  }
  .growth-code-list-v2 label {
    grid-template-columns: 1fr;
  }
  .growth-code-list-v2 button {
    width: 100%;
  }
  .admin-create-collapsed,
  .admin-field-grid,
  .admin-log-filters {
    grid-template-columns: 1fr;
  }
  .admin-table-pager {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-nodes-table .node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-nodes-table .node-actions form {
  display: contents;
  margin: 0;
}

.admin-nodes-table .node-actions .table-action {
  min-width: 72px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d7e2ff;
  border-radius: 7px;
  color: #2458e8;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.admin-nodes-table .node-actions .table-action.danger {
  color: #d92d45;
  border-color: #ffd4dc;
  background: #fff7f9;
}

.bulk-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.bulk-delete-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #ffd4dc;
  border-radius: 7px;
  color: #d92d45;
  background: #fff7f9;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

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

.admin-kpi {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid #e2e9f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 16px 42px rgba(45, 64, 110, .07);
}

.admin-kpi div {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-kpi span,
.admin-kpi small,
.admin-kpi strong {
  width: auto;
  height: auto;
  margin: 0;
  display: block;
  background: none;
}

.admin-kpi span {
  color: #1d2b55;
  font-size: 15px;
  font-weight: 900;
}

.admin-kpi small {
  color: #72809b;
  font-size: 13px;
  font-weight: 750;
}

.admin-kpi strong {
  min-width: 54px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #123fc6;
  background: #f1f5ff;
  font-size: 30px;
  line-height: 1;
  text-align: center;
}

.admin-kpi::before,
.admin-kpi::after,
.admin-kpi small::after {
  display: none !important;
  content: none !important;
}

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

@media (max-width: 640px) {
  .admin-shell,
  .admin-main,
  .admin-page-stack,
  .admin-table-card,
  .admin-card,
  .admin-dashboard,
  .admin-content {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
  }
  .admin-page-stack {
    padding-left: 12px;
    padding-right: 12px;
  }
  .table-wrap,
  .design-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin backend-a final overrides */
body:has(.admin-shell) {
  background: #f6f9ff;
}

.admin-shell {
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: 236px minmax(0, 1fr) !important;
  color: #07133d !important;
  background: #f6f9ff !important;
}

.admin-sidebar {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  padding: 26px 18px 22px !important;
  border-right: 1px solid #e6ecf7 !important;
  background: #fff !important;
  box-shadow: 16px 0 44px rgba(31, 48, 92, .04) !important;
  overflow-y: auto !important;
}

.admin-brand {
  min-height: 50px !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 26px !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 0 34px !important;
  color: #07133d !important;
}

.admin-brand .brand-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2d7dff, #8157ff) !important;
  box-shadow: 0 12px 22px rgba(54, 91, 255, .25) !important;
  font-size: 20px !important;
}

.admin-brand span:last-of-type {
  display: grid !important;
  gap: 2px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

.admin-brand small {
  color: #6e7d9c !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.admin-nav-list {
  display: grid !important;
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
}

.admin-nav-list p {
  margin: 20px 10px 10px !important;
  color: #1f2f5f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.admin-nav-list a {
  min-height: 48px !important;
  gap: 14px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  color: #54637f !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

.admin-nav-list a::after {
  content: "›";
  margin-left: auto;
  color: #b6c1d5;
  font-size: 20px;
}

.admin-nav-list a:hover,
.admin-nav-list a.active {
  color: #fff !important;
  background: linear-gradient(135deg, #2f73ff, #527bff) !important;
  box-shadow: 0 12px 22px rgba(47, 115, 255, .22) !important;
}

.admin-nav-list a:hover::after,
.admin-nav-list a.active::after {
  color: rgba(255,255,255,.72);
}

.admin-nav-list a:hover .admin-nav-icon,
.admin-nav-list a.active .admin-nav-icon {
  filter: brightness(0) invert(1);
}

.admin-main {
  padding: 0 !important;
  background: radial-gradient(circle at 80% -10%, rgba(47,115,255,.08), transparent 34rem), #f6f9ff !important;
}

.admin-topbar {
  min-height: 76px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) auto auto !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 0 40px !important;
  border-bottom: 1px solid #e6ecf7 !important;
  background: rgba(255,255,255,.9) !important;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 !important;
  color: #0f6bff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.admin-breadcrumb a {
  color: #0f6bff;
}

.admin-breadcrumb span {
  color: #acb8cc;
}

.admin-breadcrumb b {
  color: #111d44;
}

.admin-top-title h1 {
  margin: 30px 0 8px !important;
  color: #07133d !important;
  font-size: 30px !important;
  font-weight: 800 !important;
}

.admin-top-title small {
  display: block;
  color: #61708d !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.admin-actions {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
}

.admin-front-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px !important;
  padding: 0 12px !important;
  border: 1px solid #dbe4f2 !important;
  border-radius: 8px !important;
  color: #315dff !important;
  background: #fff !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none;
  white-space: nowrap;
}

.admin-actions form {
  margin: 0;
}

.admin-user-dot {
  display: grid !important;
  grid-template-columns: 42px auto !important;
  align-items: center !important;
  gap: 10px !important;
  color: #101d43 !important;
}

.admin-user-dot em {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #d8e4ff, #8ca7e8);
  font-style: normal;
  font-weight: 800;
}

.admin-user-dot span {
  display: grid;
  gap: 2px;
}

.admin-user-dot small {
  color: #7a8aa6;
  font-size: 12px;
}

.admin-page-stack {
  gap: 22px !important;
  padding: 28px 40px 46px !important;
}

.admin-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.admin-card,
.admin-kpi,
.table-wrap,
.admin-flow-card {
  border: 1px solid #e3eaf5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(31, 48, 92, .06) !important;
}

.admin-kpi {
  min-height: 176px !important;
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 26px 28px !important;
}

.admin-kpi > i {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eef4ff;
}

.admin-kpi > i::before {
  color: #2f73ff;
  font-size: 31px;
  font-style: normal;
  font-weight: 800;
}

.admin-kpi.users > i::before { content: "👥"; }
.admin-kpi.nodes > i { background: #e9f9f2; }
.admin-kpi.nodes > i::before { content: "▦"; color: #18b980; }
.admin-kpi.plans > i { background: #f4ecff; }
.admin-kpi.plans > i::before { content: "▤"; color: #8d55f6; }
.admin-kpi.active > i { background: #fff1e6; }
.admin-kpi.active > i::before { content: "◔"; color: #ff8b2d; }

.admin-kpi span,
.admin-kpi small,
.admin-kpi strong,
.admin-kpi em {
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.admin-kpi span {
  color: #111d44 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.admin-kpi small {
  color: #5e6f8e !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.admin-kpi strong {
  color: #07133d !important;
  font-size: 34px !important;
  font-weight: 800 !important;
}

.admin-kpi em {
  color: #71809b !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

.quick-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.quick-action-grid a {
  min-height: 88px !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 42px !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f3f7ff, #fff) !important;
}

.quick-action-grid a:nth-child(2) { background: linear-gradient(135deg, #eafaf3, #fff) !important; }
.quick-action-grid a:nth-child(3) { background: linear-gradient(135deg, #f4ecff, #fff) !important; }
.quick-action-grid a:nth-child(4) { background: linear-gradient(135deg, #fff1e6, #fff) !important; }

.quick-action-grid img {
  width: 42px !important;
  height: 42px !important;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}

.quick-action-grid span {
  display: grid;
  gap: 7px;
}

.quick-action-grid small {
  color: #657590;
  font-size: 13px;
  font-weight: 500;
}

.quick-action-grid em {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2f73ff;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31,48,92,.1);
  font-size: 26px;
  font-style: normal;
  font-weight: 500;
}

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

.admin-line-chart {
  height: 245px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(#e9eef8 1px, transparent 1px) 0 0 / 100% 48px;
}

.admin-line-chart::before,
.admin-line-chart::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 34px;
  left: 5%;
  height: 120px;
  border-bottom: 4px solid #2f73ff;
  border-radius: 0 0 70% 30%;
  transform: skewY(-11deg);
}

.admin-line-chart::after {
  bottom: 24px;
  height: 56px;
  border-bottom-color: #19b980;
  transform: skewY(-7deg);
}

.admin-status-card p,
.admin-activity-list p {
  display: grid;
  align-items: center;
  margin: 0;
  border-bottom: 1px solid #edf2f8;
}

.admin-status-card p {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 54px;
}

.admin-block-list p {
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px 12px;
  min-height: 48px;
}

.admin-block-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6b942;
}

.admin-block-list p.ok i { background: #19b980; }
.admin-block-list p.bad i { background: #e95656; }

.admin-block-list span {
  min-width: 0;
  color: #1d2b48;
  font-size: 14px;
}

.admin-block-list small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7d8ba5;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-status-card b {
  padding: 4px 9px;
  border-radius: 999px;
  color: #16a86e;
  background: #e9fbf3;
  font-size: 12px;
}

.admin-activity-list p {
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 6px 12px;
  min-height: 58px;
}

.admin-activity-list i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19b980;
}

.admin-activity-list em {
  grid-column: 2 / -1;
  color: #7d8ba5;
  font-size: 13px;
  font-style: normal;
}

@media (max-width: 1100px) {
  .admin-kpi-grid,
  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .admin-dashboard-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .admin-dashboard-panels {
    grid-template-columns: 1fr !important;
  }
}
