:root {
  --rbs-blue: #2f8cff;
  --rbs-gold: #d7a441;
  --rbs-green: #19c875;
  --rbs-red: #ff5b78;
  --rbs-ink: #f4f7ff;
  --rbs-muted: rgba(244, 247, 255, 0.72);
  --rbs-panel: rgba(6, 8, 18, 0.78);
  --rbs-panel-strong: rgba(4, 6, 14, 0.92);
  --rbs-border: rgba(167, 189, 255, 0.2);
  --rbs-radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  color: var(--rbs-ink);
  font-family: "Golos Text", Arial, sans-serif;
  background: #05070d;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.rbs-home-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(4, 6, 14, 0.74);
  border: 1px solid rgba(167, 189, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.rbs-home-link:hover,
.rbs-home-link:focus-visible {
  color: #ffffff;
  background: rgba(47, 140, 255, 0.2);
  border-color: rgba(47, 140, 255, 0.72);
  outline: none;
  transform: translateY(-1px);
}

.rbs-home-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.rbs-status-notice {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 70;
  max-width: min(560px, calc(100vw - 104px));
  padding: 10px 14px;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  background: rgba(4, 6, 14, 0.76);
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -10px);
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.rbs-status-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rbs-status-notice.is-danger {
  background: rgba(255, 79, 108, 0.16);
  border-color: rgba(255, 79, 108, 0.54);
}

.rbs-status-notice.is-success {
  background: rgba(25, 200, 117, 0.16);
  border-color: rgba(25, 200, 117, 0.56);
}

.rbs-copyright {
  margin-top: 18px;
  padding: 12px 0 0;
  color: rgba(244, 247, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.rbs-page {
  min-height: 100vh;
}

.rbs-hero {
  position: relative;
  min-height: 100vh;
  padding: 34px 18px;
  isolation: isolate;
}

.rbs-hero::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(2, 4, 12, 0.9), rgba(21, 13, 42, 0.62) 46%, rgba(4, 5, 12, 0.78)),
    url("../assets/images/bg-robbie-buybot-nft-tracker-wide.png?v=20260519-bg2"),
    url("../assets/images/bg-robbi-wallet-inspector.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.rbs-hero::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.12), rgba(5, 7, 13, 0.7));
  pointer-events: none;
}

.rbs-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rbs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
}

.rbs-kicker {
  margin: 0 0 4px;
  color: var(--rbs-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rbs-head h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Dela Gothic One", Impact, sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.42);
}

.rbs-scope {
  max-width: min(48vw, 420px);
  padding: 8px 12px;
  overflow: hidden;
  color: rgba(244, 247, 255, 0.84);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(4, 6, 14, 0.72);
  border: 1px solid var(--rbs-border);
  border-radius: 999px;
}

.rbs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: 18px;
  padding: 18px;
  background: var(--rbs-panel);
  border: 1px solid var(--rbs-border);
  border-radius: var(--rbs-radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.rbs-tabs,
.rbs-toolbar,
.rbs-daily-status,
.rbs-form,
.rbs-statusbar {
  grid-column: 1;
}

.rbs-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(167, 189, 255, 0.16);
}

.rbs-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  color: var(--rbs-muted);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(167, 189, 255, 0.14);
  border-radius: 6px;
}

.rbs-tab.is-active {
  color: #ffffff;
  background: rgba(47, 140, 255, 0.22);
  border-color: rgba(47, 140, 255, 0.72);
}

.rbs-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(167, 189, 255, 0.16);
}

.rbs-daily-status {
  padding: 16px 0 18px;
  border-bottom: 1px solid rgba(167, 189, 255, 0.16);
}

.rbs-daily-status .rbs-section-note {
  margin: 0 0 12px;
}

.rbs-daily-status-controls {
  align-items: end;
}

.rbs-target {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px);
  align-items: center;
  gap: 10px;
  min-width: min(100%, 560px);
  color: var(--rbs-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.rbs-form {
  min-width: 0;
}

.rbs-grid,
.rbs-info-grid,
.rbs-media-grid {
  display: grid;
  gap: 14px;
}

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

.rbs-field-wide {
  grid-column: 1 / -1;
}

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

.rbs-media-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 132px;
  align-items: end;
}

.rbs-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--rbs-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rbs-label-row,
.rbs-title-with-info,
.rbs-switch-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.rbs-switch-copy {
  max-width: calc(100% - 50px);
}

.rbs-switch-state {
  color: var(--rbs-muted);
  font-size: 11px;
  font-weight: 900;
}

.rbs-switch.is-on .rbs-switch-state {
  color: var(--rbs-green);
}

.rbs-info {
  position: relative;
  z-index: 6;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #06101d;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: none;
  background: rgba(215, 164, 65, 0.95);
  border: 1px solid rgba(255, 234, 177, 0.58);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(215, 164, 65, 0.2);
}

.rbs-info::before,
.rbs-info::after {
  position: absolute;
  left: 50%;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.rbs-info::before {
  top: calc(100% + 3px);
  width: 9px;
  height: 9px;
  content: "";
  background: rgba(3, 7, 17, 0.96);
  border-left: 1px solid rgba(167, 189, 255, 0.22);
  border-top: 1px solid rgba(167, 189, 255, 0.22);
  transform: translate(-50%, 6px) rotate(45deg);
}

.rbs-info::after {
  top: calc(100% + 8px);
  width: max-content;
  max-width: min(280px, 72vw);
  padding: 9px 10px;
  color: rgba(244, 247, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  content: attr(data-tip);
  background: rgba(3, 7, 17, 0.96);
  border: 1px solid rgba(167, 189, 255, 0.22);
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.rbs-info:hover::before,
.rbs-info:hover::after,
.rbs-info:focus-visible::before,
.rbs-info:focus-visible::after,
.rbs-switch:focus-visible .rbs-info::before,
.rbs-switch:focus-visible .rbs-info::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rbs-info:hover::before,
.rbs-info:focus-visible::before,
.rbs-switch:focus-visible .rbs-info::before {
  transform: translate(-50%, 0) rotate(45deg);
}

.rbs-info:focus-visible {
  outline: 2px solid rgba(47, 140, 255, 0.82);
  outline-offset: 2px;
}

.rbs-toolbar-info {
  margin-left: -6px;
}

.rbs-action-with-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rbs-input {
  width: 100%;
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  outline: none;
}

select.rbs-input {
  color-scheme: dark;
}

.rbs-textarea {
  min-height: 86px;
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.35;
  resize: vertical;
}

.rbs-file {
  padding-top: 8px;
}

.rbs-input::placeholder {
  color: rgba(244, 247, 255, 0.5);
}

.rbs-input:focus {
  border-color: rgba(47, 140, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.2);
}

.rbs-btn,
.rbs-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.rbs-btn:hover,
.rbs-toggle:hover {
  transform: translateY(-1px);
}

.rbs-btn-primary {
  background: linear-gradient(180deg, #386bb7, #2e4f8f);
  border-color: rgba(131, 180, 255, 0.6);
}

.rbs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(169, 45, 76, 0.5);
}

.rbs-toggle span {
  width: 12px;
  height: 12px;
  background: var(--rbs-red);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 91, 120, 0.4);
}

.rbs-toggle.is-on {
  background: rgba(25, 200, 117, 0.28);
  border-color: rgba(132, 255, 193, 0.6);
}

.rbs-toggle.is-on span {
  background: var(--rbs-green);
  box-shadow: 0 0 18px rgba(25, 200, 117, 0.5);
}

.rbs-switch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rbs-media-switches {
  grid-template-columns: minmax(0, 1fr);
}

.rbs-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  color: #ffffff;
  font-weight: 800;
  text-align: left;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(167, 189, 255, 0.16);
  border-radius: 6px;
}

.rbs-switch > * {
  pointer-events: none;
}

.rbs-switch > .rbs-switch-copy,
.rbs-switch .rbs-info {
  pointer-events: auto;
}

.rbs-switch i {
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
  background:
    radial-gradient(circle at 11px 50%, #ffffff 0 6px, transparent 7px),
    rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.rbs-switch.is-on {
  background: rgba(25, 200, 117, 0.14);
  border-color: rgba(132, 255, 193, 0.44);
}

.rbs-switch.is-on i {
  background:
    radial-gradient(circle at 27px 50%, #ffffff 0 6px, transparent 7px),
    rgba(25, 200, 117, 0.78);
}

.rbs-inline {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) auto;
  gap: 10px;
}

.rbs-emoji-editor {
  grid-template-columns: minmax(96px, 0.6fr) minmax(0, 0.8fr) minmax(0, 0.8fr) auto;
  margin-top: 14px;
}

.rbs-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.rbs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(167, 189, 255, 0.16);
  border-radius: var(--rbs-radius);
}

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

.rbs-row small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--rbs-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rbs-remove {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(244, 247, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

.rbs-empty {
  min-height: 92px;
  padding: 18px;
  display: grid;
  align-items: center;
  color: rgba(244, 247, 255, 0.58);
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(167, 189, 255, 0.24);
  border-radius: var(--rbs-radius);
}

.rbs-section-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rbs-muted);
  font-size: 13px;
  font-weight: 800;
}

.rbs-section-note strong {
  color: #ffffff;
}

.rbs-section-note > span:not(.rbs-info) {
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(47, 140, 255, 0.18);
  border: 1px solid rgba(47, 140, 255, 0.42);
  border-radius: 999px;
}

.rbs-message-grid,
.rbs-alert-grid {
  display: grid;
  gap: 14px;
}

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

.rbs-editor-block,
.rbs-alert-card {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(167, 189, 255, 0.16);
  border-radius: var(--rbs-radius);
}

.rbs-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.rbs-mini-head span {
  color: var(--rbs-muted);
  font-size: 12px;
}

.rbs-mini-head .rbs-info,
.rbs-title-with-info .rbs-info,
.rbs-section-note .rbs-info {
  color: #06101d;
  font-size: 11px;
}

.rbs-message-input {
  min-height: 74px;
  margin-bottom: 10px;
}

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

.rbs-alert-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rbs-alert-card-head strong {
  color: #ffffff;
  font-size: 14px;
}

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

.rbs-core-fields {
  margin-top: 14px;
}

.rbs-wallet-editor {
  margin-top: 14px;
}

.rbs-media-preview {
  width: 132px;
  height: 132px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(167, 189, 255, 0.16);
  border-radius: var(--rbs-radius);
}

.rbs-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.rbs-note {
  margin: 10px 0 0;
  color: var(--rbs-muted);
  font-size: 13px;
}

.rbs-note .rbs-info {
  margin-left: 4px;
  vertical-align: text-bottom;
}

.rbs-preview {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
  min-width: 0;
  padding: 16px;
  background: var(--rbs-panel-strong);
  border: 1px solid rgba(167, 189, 255, 0.2);
  border-radius: var(--rbs-radius);
}

.rbs-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--rbs-muted);
  font-size: 13px;
  font-weight: 800;
}

.rbs-preview h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.18;
}

.rbs-preview-body {
  display: grid;
  gap: 8px;
  color: var(--rbs-muted);
  font-size: 14px;
  line-height: 1.42;
}

.rbs-preview-body strong {
  color: #ffffff;
}

.rbs-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-top: 14px;
  object-fit: cover;
  border: 1px solid rgba(167, 189, 255, 0.18);
  border-radius: var(--rbs-radius);
}

.rbs-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: var(--rbs-muted);
  font-size: 13px;
  border-top: 1px solid rgba(167, 189, 255, 0.16);
}

.rbs-tab-panel[hidden],
[data-group-settings][hidden] {
  display: none;
}

@media (max-width: 900px) {
  .rbs-panel {
    grid-template-columns: 1fr;
  }

  .rbs-preview {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 1280px) {
  .rbs-hero {
    padding-top: 82px;
  }
}

@media (max-width: 680px) {
  .rbs-home-link {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
  }

  .rbs-hero {
    padding: 70px 12px 24px;
  }

  .rbs-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rbs-scope {
    max-width: 100%;
  }

  .rbs-grid,
  .rbs-info-grid,
  .rbs-message-grid,
  .rbs-switch-list,
  .rbs-media-grid,
  .rbs-inline,
  .rbs-emoji-editor,
  .rbs-alert-card-grid,
  .rbs-target {
    grid-template-columns: 1fr;
  }

  .rbs-media-preview {
    width: 112px;
    height: 112px;
  }

  .rbs-statusbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
