:root {
  --accent: #3478f6;
  --accent-2: #10c8b0;
  --ink: #172033;
  --muted: #7b879d;
  --line: #e7ebf2;
  --page: #f5f7fb;
  --card: #fff;
  --sidebar: 208px;
  --topbar: 54px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(37, 52, 78, .07);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
svg { display: inline-block; vertical-align: middle; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: radial-gradient(circle at 50% 30%, #fff 0, #f5f8ff 54%, #eef2f9 100%);
}

.boot-spinner,
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #dfe7f6;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffdf7d 0 54%, #ff9e49 55% 100%);
  box-shadow: 0 8px 20px rgba(255, 169, 73, .23);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 13px;
  height: 7px;
  background: #7ab66b;
  border-radius: 100% 0 100% 0;
}

.brand-mark::before { left: 10px; transform: rotate(18deg); }
.brand-mark::after { right: 8px; transform: scaleX(-1) rotate(18deg); }

.brand-mark i {
  position: absolute;
  left: 19px;
  top: 14px;
  width: 3px;
  height: 19px;
  border-radius: 4px;
  background: rgba(255,255,255,.95);
  transform: rotate(-7deg);
}

.brand-mark b {
  position: absolute;
  left: 8px;
  bottom: 7px;
  width: 25px;
  height: 12px;
  border: 3px solid rgba(255,255,255,.9);
  border-top: 0;
  border-radius: 0 0 50% 50%;
  transform: rotate(-7deg);
}

.shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.98);
  border-right: 1px solid #edf0f5;
  transition: transform .25s ease, width .25s ease;
}

.sidebar-head {
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 23px;
}

.sidebar-head .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
.brand-word { margin-left: 11px; font-size: 16px; font-weight: 800; letter-spacing: .2px; }

.nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 18px;
  scrollbar-width: thin;
}

.nav-group { margin-top: 17px; }
.nav-label {
  padding: 0 11px 7px;
  color: #253047;
  font-size: 10px;
  font-weight: 800;
}

.nav-item {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  margin: 3px 0;
  color: #77849a;
  border-radius: 9px;
  font-size: 13px;
  transition: .18s ease;
}

.nav-item:hover { color: var(--accent); background: #f6f8fc; }
.nav-item.active { color: var(--accent); background: #f1f3f7; font-weight: 700; }
.nav-item svg { width: 16px; height: 16px; stroke-width: 1.8; }

.new-badge {
  padding: 2px 7px;
  margin-left: auto;
  color: #fff;
  background: #0fb4c6;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
}

.sidebar-foot {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #95a0b3;
  border-top: 1px solid #f0f2f6;
}

.sidebar-foot button { padding: 7px; color: inherit; background: transparent; cursor: pointer; }
.lang-dot { font-size: 16px; }

.topbar {
  position: fixed;
  inset: 0 0 auto var(--sidebar);
  z-index: 40;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px 0 0;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #edf0f5;
  backdrop-filter: blur(16px);
}

.menu-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-left: -16px;
  color: #8290a4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.top-actions { display: flex; align-items: center; gap: 9px; }
.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #8b99ae;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
}
.icon-button:hover { color: var(--accent); background: #f4f7fc; }

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #8cc8ee, #3b78be);
  border: 2px solid #e8eef8;
  border-radius: 50%;
  cursor: pointer;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.online-dot {
  width: 8px;
  height: 8px;
  margin-left: -14px;
  margin-bottom: -27px;
  background: #09c99b;
  border: 2px solid #fff;
  border-radius: 50%;
}

.user-menu {
  position: fixed;
  z-index: 90;
  top: 48px;
  right: 16px;
  width: 232px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 15px 45px rgba(35,50,75,.15);
}
.user-menu-head { padding: 9px 10px 12px; border-bottom: 1px solid var(--line); }
.user-menu-email { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.user-menu small { display: block; margin-top: 4px; color: var(--muted); }
.user-menu button, .user-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  margin-top: 4px;
  color: #677489;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}
.user-menu button:hover, .user-menu a:hover { color: var(--accent); background: #f5f7fb; }

.main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding-top: var(--topbar);
  background:
    linear-gradient(180deg, rgba(233,241,255,.85) 0, rgba(245,247,251,0) 250px),
    var(--page);
}

.page {
  width: 100%;
  min-height: calc(100vh - var(--topbar));
  padding: 26px 22px 22px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 67px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(220,227,239,.72);
}

.page-title {
  position: relative;
  margin: 0;
  padding-bottom: 17px;
  font-size: 23px;
  line-height: 1.2;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
}

.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  color: #65728a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(31,54,91,.1); }
.btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn-danger { color: #fff; background: #ef4774; border-color: #ef4774; }
.btn-success { color: #fff; background: #1bc88b; border-color: #1bc88b; }
.btn-purple { color: #fff; background: #7739e8; border-color: #7739e8; }
.btn-orange { color: #fff; background: #ff7a18; border-color: #ff7a18; }
.btn-gold { color: #fff; background: #e5a900; border-color: #e5a900; }
.btn-block { width: 100%; }
.btn-small { min-height: 29px; padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .55; transform: none; box-shadow: none; cursor: not-allowed; }

.page-body { padding-top: 18px; }

.card {
  background: var(--card);
  border: 1px solid rgba(228,233,241,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.card-body { padding: 18px; }

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

.stat-card {
  min-height: 104px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 18px;
}
.stat-label { color: #69768c; font-size: 12px; font-weight: 700; }
.stat-value { margin-top: 9px; font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.stat-meta { margin-top: 8px; color: #9aa5b6; font-size: 11px; }
.stat-meta strong {
  padding: 2px 5px;
  margin-right: 5px;
  color: #11b89e;
  background: #e4faf6;
  border-radius: 5px;
}
.stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #edf4ff;
  border-radius: 50%;
}
.stat-card:nth-child(2) .stat-icon { color: #08a8d5; background: #e9f8fd; }
.stat-card:nth-child(3) .stat-icon { color: #11b89e; background: #e8fbf7; }
.stat-card:nth-child(4) .stat-icon { color: #e4a349; background: #fff7eb; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(520px, 1.35fr);
  gap: 18px;
  margin-top: 19px;
}
.accent-top { position: relative; overflow: hidden; }
.accent-top::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.plan-summary { padding: 18px; }
.plan-summary h3 { margin: 0 0 8px; font-size: 16px; }
.plan-summary p { margin: 0; color: var(--muted); }
.quick-title { margin: 21px 0 8px; font-size: 12px; font-weight: 800; }
.quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.quick-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #8b52ff);
  border-radius: 10px;
}
.quick-row:nth-of-type(2) .quick-symbol { background: linear-gradient(145deg,#ffd54a,#f19c22); }
.quick-row:nth-of-type(3) .quick-symbol { background: linear-gradient(145deg,#30d09b,#159e7b); }
.quick-copy { min-width: 0; flex: 1; }
.quick-copy b { display: block; margin-bottom: 3px; font-size: 13px; }
.quick-copy small { display: block; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

.subscribe-box {
  margin: 16px;
  padding: 15px;
  background: #f6f8fc;
  border: 1px solid #e9edf5;
  border-radius: 13px;
}
.subscribe-box h4 { margin: 0 0 13px; color: #6e7b90; font-size: 12px; }
.client-grid { display: grid; grid-template-columns: repeat(6, minmax(80px,1fr)); gap: 10px; }
.client-card {
  min-height: 80px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: #4e5a70;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}
.client-card svg { color: var(--accent); }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-note {
  max-width: 1350px;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  margin: 0 auto 30px;
  background: linear-gradient(105deg, #fff 0, #fff 75%, #edf4ff 100%);
}
.hero-art {
  position: relative;
  width: 54px;
  height: 44px;
  flex: 0 0 auto;
  color: #7a8ca8;
}
.hero-art svg { width: 54px; height: 44px; }
.hero-note h3 { margin: 0 0 5px; font-size: 17px; }
.hero-note p { margin: 0; color: var(--muted); }

.section-kicker { max-width: 1360px; margin: 0 auto 14px; color: #525e73; font-size: 12px; font-weight: 800; }

.list-stack {
  max-width: 1370px;
  display: grid;
  gap: 14px;
  margin: 0 auto;
}
.list-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 270px minmax(200px,1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 15px 18px;
}
.list-card h4 { margin: 0 0 8px; font-size: 15px; }
.list-card p { margin: 0; color: #69768a; }
.list-card-side { display: flex; align-items: center; gap: 7px; color: #f4b35f; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  color: var(--accent);
  background: #edf4ff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.tag-success { color: #0cae92; background: #e5faf6; }
.tag-warn { color: #d69000; background: #fff5dc; }
.tag-danger { color: #e94d64; background: #ffebef; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px,1fr));
  gap: 18px;
}
.price-card { position: relative; overflow: hidden; }
.price-card.featured { border-color: #ffcfc5; }
.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  background: linear-gradient(100deg, #f7f9fe, #edf3ff);
}
.price-card.featured .price-card-head { color: #d84830; background: linear-gradient(100deg,#fff8f4,#ffebe6); }
.price-card-title { font-size: 15px; font-weight: 800; }
.price-wrap { padding: 15px 17px 18px; }
.price { margin: 0 0 14px; text-align: center; font-size: 38px; font-weight: 900; letter-spacing: -1.5px; }
.price small { color: #7a879c; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.feature-box {
  min-height: 132px;
  padding: 12px 14px;
  margin: 13px 0;
  color: #5d697d;
  background: #f8f9fc;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
}
.feature-line { display: flex; gap: 8px; margin: 9px 0; line-height: 1.45; }
.feature-line svg { flex: 0 0 auto; color: var(--accent-2); margin-top: 2px; }
.plan-metric { padding: 7px 0; text-align: center; font-size: 16px; font-weight: 800; }
.plan-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
.plan-line { height: 6px; margin-top: 8px; background: var(--accent); border-radius: 6px; }

.server-grid { max-width: 1380px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 10px; margin: 0 auto; }
.server-card { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 15px 19px; }
.server-name { overflow: hidden; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.protocol { margin-left: 8px; color: #a0a9b8; font-size: 10px; font-weight: 700; }

.data-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 15px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #7c899e; background: #f4f6fa; font-size: 11px; font-weight: 800; }
td { color: #677489; }
tbody tr:last-child td { border-bottom: 0; }
.table-actions { min-width: 180px; display: flex; gap: 7px; }

.invite-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-bottom: 18px;
}
.invite-stat { position: relative; padding: 17px 18px; }
.invite-stat + .invite-stat::before { content: ""; position: absolute; inset: 13px auto 13px 0; width: 1px; background: var(--line); }
.invite-stat b { display: block; margin-top: 10px; font-size: 20px; }
.invite-stat small { display: block; margin-top: 4px; color: var(--muted); }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack { display: grid; gap: 18px; }
.security-visual { min-height: 201px; display: grid; place-content: center; justify-items: center; padding: 24px; text-align: center; }
.security-visual .big-icon { color: #7487a5; }
.security-visual h3 { margin: 15px 0 5px; }
.security-visual p { margin: 0 0 15px; color: var(--muted); }

.form-grid { display: grid; gap: 13px; }
.field label { display: block; margin-bottom: 7px; color: #637087; font-size: 12px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dde4ef;
  border-radius: 8px;
  outline: none;
  transition: .18s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,120,246,.1); }
.textarea { min-height: 110px; resize: vertical; }
.form-footer { display: flex; justify-content: flex-end; margin-top: 16px; }
.helper { margin: 6px 0 0; color: #9aa5b5; font-size: 11px; line-height: 1.6; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-top: 1px solid var(--line); }
.switch { position: relative; width: 40px; height: 22px; display: inline-block; }
.switch input { width: 0; height: 0; opacity: 0; }
.switch span { position: absolute; inset: 0; background: #ccd4e1; border-radius: 20px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.16); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::before { transform: translateX(18px); }

.empty {
  min-height: 200px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 25px;
  color: #9aa5b5;
  text-align: center;
}
.empty svg { color: #bdc7d6; }
.loading-row { min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 3px 0;
  color: #adb5c2;
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26,35,52,.42);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(620px,100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 25px 80px rgba(23,34,54,.28);
  animation: modal-in .18s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); background: #f3f5f8; border-radius: 8px; cursor: pointer; }
.modal-body { padding: 19px; line-height: 1.75; }
.modal-body img { max-width: 100%; height: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }

.subscription-view {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}
.subscription-qr {
  width: 230px;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 8px 25px rgba(31,54,91,.08);
}
.subscription-qr img {
  display: block;
  width: 220px !important;
  height: 220px !important;
  image-rendering: pixelated;
}
.subscription-qr-wrap {
  display: grid;
  justify-items: center;
  gap: 9px;
}
.subscription-qr-label {
  color: var(--muted);
  font-size: 12px;
}
.subscription-qr-error {
  padding: 20px;
  color: #e94d64;
  text-align: center;
}
.subscription-link-box {
  display: block;
  width: 100%;
  min-height: 86px;
  box-sizing: border-box;
  padding: 12px;
  color: #536177;
  background: #f6f8fc;
  border: 1px solid #e4e9f1;
  border-radius: 9px;
  outline: none;
  resize: none;
  font: inherit;
  line-height: 1.55;
  overflow-wrap: anywhere;
  user-select: all;
}
.subscription-link-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54, 125, 255, .12);
}
.subscription-link-help {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.subscription-hint {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  color: #9a6a12;
  font-size: 12px;
  line-height: 1.6;
}

.toast-wrap { position: fixed; z-index: 130; right: 18px; top: 68px; display: grid; gap: 8px; }
.toast {
  min-width: 250px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #334057;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(31,44,68,.16);
  animation: toast-in .25s ease;
}
.toast.error { border-left-color: #ef4774; }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px,.9fr) minmax(520px,1.2fr);
  background: #fff;
}
.auth-panel { display: grid; place-items: center; padding: 36px; }
.auth-card { width: min(420px,100%); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.auth-brand strong { font-size: 21px; }
.auth-title { margin: 0 0 8px; font-size: 30px; letter-spacing: -.6px; }
.auth-subtitle { margin: 0 0 28px; color: var(--muted); }
.auth-card .field { margin-bottom: 16px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 17px; color: var(--accent); font-size: 12px; }
.auth-links button { padding: 0; color: inherit; background: transparent; cursor: pointer; }
.auth-art {
  position: relative;
  display: grid;
  place-content: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(145deg, #377cf5, #6b70ee 55%, #31b9d8);
}
.auth-art::before, .auth-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.auth-art::before { width: 580px; height: 580px; right: -180px; top: -210px; }
.auth-art::after { width: 370px; height: 370px; left: -100px; bottom: -160px; }
.auth-art-inner { position: relative; z-index: 1; width: min(560px,78%); }
.auth-art h2 { margin: 0 0 12px; font-size: 39px; line-height: 1.2; }
.auth-art p { max-width: 470px; margin: 0; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.7; }
.auth-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 38px;
}
.auth-preview-card { min-height: 105px; padding: 18px; color: #294264; background: rgba(255,255,255,.93); border-radius: 16px; box-shadow: 0 20px 50px rgba(26,48,96,.18); }
.auth-preview-card b { display: block; margin-top: 12px; font-size: 22px; }

.sidebar-overlay { display: none; }
.mobile-only { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 190px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(3,1fr); }
  .plan-grid { grid-template-columns: repeat(2,minmax(230px,1fr)); }
}

@media (max-width: 900px) {
  :root { --sidebar: 240px; }
  .sidebar { transform: translateX(-102%); box-shadow: 18px 0 45px rgba(26,41,67,.12); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 45; display: none; background: rgba(31,42,61,.35); }
  .sidebar-overlay.open { display: block; }
  .topbar { left: 0; padding-left: 14px; }
  .menu-toggle { margin-left: 0; }
  .main { margin-left: 0; }
  .mobile-only { display: inline-flex; }
  .account-grid { grid-template-columns: 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

@media (max-width: 680px) {
  .page { padding: 20px 13px 16px; }
  .page-header { min-height: 58px; }
  .page-title { font-size: 20px; }
  .page-actions .btn span { display: none; }
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { min-height: 92px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: repeat(2,1fr); }
  .hero-note { padding: 15px; margin-bottom: 20px; }
  .list-card { grid-template-columns: 1fr auto; gap: 10px; }
  .list-card > p { grid-column: 1 / -1; grid-row: 2; }
  .list-card-side { grid-column: 2; grid-row: 1; }
  .plan-grid { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: 1fr; gap: 10px; }
  .invite-stats { grid-template-columns: 1fr 1fr; }
  .invite-stat:nth-child(3)::before { display: none; }
  .subscription-view { grid-template-columns: 1fr; justify-items: center; }
  .subscription-copy { width: 100%; }
  .auth-panel { padding: 28px 20px; }
  .auth-title { font-size: 27px; }
  .footer { flex-direction: column; gap: 6px; }
  .toast-wrap { left: 12px; right: 12px; }
  .toast { min-width: 0; max-width: none; }
}
