.sb-network-discord { --sb-brand: #8992ff; --sb-tile: #5865e8; }
.sb-network-telegram { --sb-brand: #58b9f4; --sb-tile: #1689c6; }
.sb-network-vk { --sb-brand: #5aa7ff; --sb-tile: #246cda; }
.sb-network-max { --sb-brand: #bd91ff; --sb-tile: #8538dc; }

.sb-trigger {
  position: relative;
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #3b354c;
  border-radius: 9px;
  background: #222032;
  text-decoration: none;
}
.sb-trigger:hover { border-color: #9a8eea; background: #30294a; }
.sb-trigger .feature-new-dot { position: absolute; top: -3px; right: -3px; z-index: 1; margin: 0; }
.sb-trigger:focus-visible, .sb-page :focus-visible { outline: 2px solid #fca65f; outline-offset: 3px; }
.sb-trigger-icon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  opacity: 0;
  color: var(--sb-brand);
  animation: sb-icon-cycle 10s -.4s ease-in-out infinite;
}
.sb-trigger-icon:nth-child(2) { animation-delay: -7.9s; }
.sb-trigger-icon:nth-child(3) { animation-delay: -5.4s; }
.sb-trigger-icon:nth-child(4) { animation-delay: -2.9s; }
.sb-trigger-icon i { font-size: 17px; line-height: 1; }
.sb-trigger-icon img { width: 16px; height: 16px; }
@keyframes sb-icon-cycle {
  0% { opacity: 0; transform: translateY(7px) scale(.86); }
  4%, 25% { opacity: 1; transform: none; }
  29% { opacity: 0; transform: translateY(-7px) scale(.86); }
  30%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sb-trigger-icon { animation: none; }
  .sb-trigger-icon:first-child { opacity: 1; }
}
.sb-menu-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  border-radius: 50%;
  background: #ff8d79;
  box-shadow: 0 0 9px #ff8d7970;
}
body .sb-menu-count { color: #ffad9e; }
.sb-page [hidden], .sb-menu-dot[hidden], .sb-menu-count[hidden] { display: none !important; }

.sb-page {
  --sb-border: #323039;
  --sb-muted: #b8b1ba;
  --sb-orange: #ffab70;
  width: min(1120px, 100%);
  min-height: 65vh;
  margin: 0 auto;
  padding: 42px 24px 54px;
  color: #f5f1f4;
}
.sb-page h1, .sb-page h2, .sb-page h3 { margin: 0; }
.sb-page h1, .sb-page h2 { font-family: var(--rd-font-head, inherit); }
.sb-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.03; }
.sb-page h2 { font-size: clamp(1.25rem, 3vw, 1.55rem); font-weight: 750; }
.sb-page h3 { font-size: 1.12rem; font-weight: 750; }
.sb-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  min-height: 292px;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 4.5vw, 48px);
  border: 1px solid #573e35;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 82% 55%, #964e2c65, transparent 43%),
    linear-gradient(115deg, #231e24, #2e2124 66%, #302228);
}
.sb-hero-copy { position: relative; z-index: 1; }
.sb-reward {
  display: flex;
  align-items: center;
  gap: .17em;
  margin: 12px 0 0;
  color: var(--sb-orange);
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 850;
  line-height: 1;
}
.sb-coin-icon { display: block; flex: none; width: .76em; height: .76em; object-fit: contain; }
.sb-caption { margin: 10px 0 0; color: var(--sb-muted); font-size: .95rem; }
.sb-coin-art {
  position: relative;
  display: grid;
  min-height: 185px;
  place-items: center;
}
.sb-coin-art img {
  z-index: 1;
  width: clamp(110px, 18vw, 224px);
  transform: rotate(-12deg);
  filter: drop-shadow(0 18px 21px #170e10ac);
}
.sb-orbit {
  position: absolute;
  width: min(305px, 102%);
  aspect-ratio: 1;
  border: 1px solid #e892584d;
  border-radius: 50%;
  box-shadow: 0 0 0 18px #ee9d5e0c, 0 0 0 44px #ee9d5e09, inset 0 0 38px #ff8d4920;
}
.sb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sb-hero + section { margin-top: 30px; }
.sb-section-head > span { color: var(--sb-muted); font-size: .875rem; white-space: nowrap; }
.sb-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.sb-card, .sb-admin-panel {
  padding: 17px;
  border: 1px solid var(--sb-border);
  border-radius: 13px;
  background: #1d1b22;
}
.sb-card { background: linear-gradient(138deg, color-mix(in srgb, var(--sb-tile) 13%, #1d1b22), #1d1b22 78%); }
.sb-card-top, .sb-service-name { display: flex; align-items: center; gap: 10px; }
.sb-page .sb-card-top { width: fit-content; max-width: 100%; border-radius: 9px; color: inherit; text-decoration: none; }
.sb-page .sb-card-top[href]:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.sb-brand-icon, .sb-server-icon {
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--sb-tile);
  color: white;
  font-size: 22px;
}
.sb-brand-icon img { width: 23px; height: 23px; }
.sb-card-action { width: 100%; margin-top: 14px; }
.sb-page .sb-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 7px 12px;
  border: 1px solid #494452;
  border-radius: 8px;
  background: #2a2731;
  color: #fcf7fb;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.sb-page .sb-button:hover { background: #37313e; border-color: #776b7c; color: #fff; }
.sb-page .sb-primary { background: #ff9b58; border-color: #ff9b58; color: #23130c; }
.sb-page .sb-primary:hover { background: #ffb481; border-color: #ffb481; color: #23130c; }
.sb-page .sb-danger { background: #4b252e; border-color: #854653; color: #ffc0c5; }
.sb-page .sb-button:disabled { opacity: .5; }
.sb-page .sb-steam { margin-top: 17px; }
.sb-page .sb-steam-note { margin-top: 8px; font-size: .85rem; }
.sb-page .sb-card-action[aria-disabled="true"] { background: #20372e; border-color: #335647; color: #acf1cd; cursor: default; }
.sb-card-action .sb-coin-icon { width: 18px; height: 18px; }
.sb-claimed { border-color: #355347; }

.sb-page .sb-dialog {
  width: min(480px, calc(100% - 26px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 20px;
  border: 1px solid #514452;
  border-radius: 15px;
  color: #faf5f8;
  background: #232029;
}
.sb-dialog::backdrop { background: #0a080dd1; }
.sb-dialog-head, .sb-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sb-dialog-actions { justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sb-close { display: grid; width: 34px; height: 34px; place-items: center; border: 0; border-radius: 7px; color: #f5eff4; background: #332d38; }
.sb-admin-head { margin-bottom: 20px; }
.sb-admin-head h1 { font-size: clamp(1.85rem, 4vw, 2.85rem); }
.sb-admin-notice { margin: 0 0 14px; color: #acf1cd; }
.sb-admin-service-actions { display: flex; align-items: end; flex-direction: column; gap: 6px; }
.sb-tabs { display: flex; gap: 5px; width: fit-content; padding: 4px; margin-bottom: 16px; border: 1px solid var(--sb-border); border-radius: 10px; background: #1c1920; }
.sb-tabs a { padding: 7px 13px; color: var(--sb-muted); text-decoration: none; border-radius: 6px; font-weight: 650; }
.sb-tabs a[aria-current] { color: #ffb888; background: #3d2b28; }
.sb-alert { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; padding: 13px 16px; border: 1px solid #684136; border-radius: 10px; background: #312521; color: #ffbf98; }
.sb-alert p { margin: 2px 0 0; color: #edc5b2; font-size: .85rem; }
.sb-proxy-row, .sb-service-row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--sb-border); }
.sb-service-row { grid-template-columns: 1fr auto; }
.sb-service-name div { min-width: 0; overflow-wrap: anywhere; }
.sb-service-name div > span, .sb-proxy-health small { color: var(--sb-muted); font-size: .81rem; }
.sb-server-icon { background: #302833; color: #e9afd4; }
.sb-proxy-health { display: flex; flex-direction: column; align-items: start; gap: 4px; }
.sb-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: #22392f; color: #acf1cd; font-size: .78rem; font-weight: 650; }
.sb-badge-down { background: #4a2c2d; color: #ffb4a9; }
.sb-badge-off, .sb-badge-muted { background: #36323b; color: #d2cbd5; }
.sb-proxy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sb-page .sb-icon-button { padding-inline: 10px; }
.sb-empty { margin: 12px 0 4px; color: var(--sb-muted); }
.sb-fields { display: grid; gap: 10px; margin: 15px 0; }
.sb-address-fields { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.sb-admin label { display: grid; gap: 5px; min-width: 0; color: #e8dee7; font-size: .86rem; }
.sb-admin input { width: 100%; min-height: 40px; padding: 8px 9px; border: 1px solid #4b4350; border-radius: 7px; color: #fff; background: #151219; }
.sb-max-form { display: flex; align-items: end; gap: 8px; margin-top: 12px; }
.sb-max-form label { flex: 1; max-width: 450px; }

@media (max-width: 850px) {
  .sb-page { padding: 24px 16px 40px; }
  .sb-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sb-proxy-row { grid-template-columns: 1fr auto; }
  .sb-proxy-actions { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .sb-hero { grid-template-columns: 1fr; min-height: 221px; padding: 22px 15px; }
  .sb-hero h1 { max-width: 250px; }
  .sb-hero-copy { padding-right: 32px; }
  .sb-hero .sb-caption { max-width: 180px; }
  .sb-coin-art { position: absolute; right: -9px; top: 62%; width: 119px; min-height: 0; transform: translateY(-50%); }
  .sb-coin-art img { width: 88px; }
  .sb-card { padding: 11px; }
  .sb-card h3 { font-size: .94rem; }
  .sb-card-top { gap: 7px; }
  .sb-brand-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 18px; border-radius: 8px; }
  .sb-brand-icon img { width: 19px; height: 19px; }
  .sb-page .sb-card-action { padding-inline: 5px; font-size: .77rem; }
  .sb-proxy-row { gap: 9px; }
  .sb-proxy-health { max-width: 118px; }
  .sb-admin .sb-service-row { grid-template-columns: 1fr; }
  .sb-admin-service-actions { align-items: start; }
  .sb-admin .sb-max-form { flex-wrap: wrap; align-items: stretch; }
  .sb-admin .sb-max-form label { flex-basis: 100%; }
}
@media (max-width: 360px) {
  .sb-coin-art { opacity: .42; right: -25px; }
  .sb-page .sb-button { padding-inline: 8px; }
  .sb-cards { gap: 8px; }
}
