:root {
  --bg-main: #07111c;
  --bg-deep: #030812;
  --bg-grid: rgba(87, 225, 255, 0.08);
  --panel: rgba(9, 17, 31, 0.78);
  --panel-strong: rgba(7, 14, 26, 0.92);
  --panel-border: rgba(100, 208, 255, 0.14);
  --panel-border-strong: rgba(116, 236, 255, 0.24);
  --text-main: #ecf7ff;
  --text-soft: #8ea7bc;
  --text-dim: #67809a;
  --accent-cyan: #53eaff;
  --accent-cyan-deep: #14b8d4;
  --accent-lime: #90ff5d;
  --accent-red: #ff537c;
  --accent-amber: #ffd24a;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  --glow-cyan: 0 0 0 1px rgba(83, 234, 255, 0.12), 0 0 28px rgba(83, 234, 255, 0.18);
  --glow-lime: 0 0 0 1px rgba(144, 255, 93, 0.16), 0 0 28px rgba(144, 255, 93, 0.2);
  --glow-red: 0 0 0 1px rgba(255, 83, 124, 0.18), 0 0 28px rgba(255, 83, 124, 0.2);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font-body: "Trebuchet MS", "Lucida Sans", "Aptos", sans-serif;
  --font-heading: "Avenir Next Condensed", "Bahnschrift", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    radial-gradient(circle at 15% 15%, rgba(83, 234, 255, 0.16), transparent 22%),
    radial-gradient(circle at 85% 10%, rgba(144, 255, 93, 0.12), transparent 18%),
    radial-gradient(circle at 50% 85%, rgba(255, 83, 124, 0.1), transparent 20%),
    linear-gradient(180deg, #081422 0%, #050b14 38%, var(--bg-deep) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 96%);
}

body::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(83, 234, 255, 0.08), transparent 44%),
    radial-gradient(circle at 50% 100%, rgba(144, 255, 93, 0.06), transparent 34%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  background: rgba(8, 16, 29, 0.76);
  color: var(--text-soft);
  backdrop-filter: blur(18px);
  box-shadow: var(--glow-cyan), var(--shadow);
}

.topbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-width: 0;
}

.topbar__identity {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.topnav__link:hover {
  color: var(--text-main);
  border-color: rgba(83, 234, 255, 0.18);
  background: rgba(83, 234, 255, 0.05);
}

.topnav__link.is-active {
  color: #041018;
  background: linear-gradient(135deg, rgba(83, 234, 255, 0.95), rgba(144, 255, 93, 0.85));
  border-color: transparent;
  box-shadow: 0 0 22px rgba(83, 234, 255, 0.22);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.78fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero__content,
.hero__side,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero__content::before,
.hero__side::before,
.panel::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(83, 234, 255, 0.08), transparent 38%),
    linear-gradient(320deg, rgba(144, 255, 93, 0.06), transparent 34%);
}

.hero__content {
  padding: 34px;
  background:
    linear-gradient(140deg, rgba(12, 24, 43, 0.96), rgba(6, 13, 24, 0.94)),
    var(--panel);
  box-shadow: var(--glow-cyan), var(--shadow);
}

.hero__content h1 {
  position: relative;
  margin: 14px 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero__content h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
  box-shadow: 0 0 18px rgba(83, 234, 255, 0.42);
}

.hero__content p,
.panel__header p,
.device-card__hint,
.device-card__description,
.tip-card p,
.empty-state p,
.auth-note {
  position: relative;
  color: var(--text-soft);
  line-height: 1.68;
}

.hero__content strong,
.panel strong,
.tip-card code,
code {
  color: var(--text-main);
}

.hero__eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(83, 234, 255, 0.16);
  border-radius: 999px;
  background: rgba(83, 234, 255, 0.08);
  color: #d1f8ff;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(83, 234, 255, 0.05);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.badge--online {
  color: #c8ffd9;
  box-shadow: inset 0 0 0 1px rgba(144, 255, 93, 0.08);
}

.badge--offline {
  color: #ffd4de;
  box-shadow: inset 0 0 0 1px rgba(255, 83, 124, 0.08);
}

.badge--pending {
  color: #fff0b8;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 74, 0.08);
}

.hero__side {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 15% 20%, rgba(83, 234, 255, 0.14), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(144, 255, 93, 0.12), transparent 20%),
    linear-gradient(160deg, rgba(4, 10, 18, 0.98), rgba(8, 20, 35, 0.94));
  box-shadow: inset 0 0 0 1px rgba(83, 234, 255, 0.08), var(--shadow);
}

.signal-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(83, 234, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(83, 234, 255, 0.04);
}

.signal-card__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.9rem;
  background: radial-gradient(circle at 35% 35%, rgba(83, 234, 255, 0.24), rgba(83, 234, 255, 0.05));
  box-shadow: var(--glow-cyan);
}

.signal-card__title {
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.signal-card__meta {
  margin-top: 4px;
  color: var(--text-dim);
}

.signal-lines {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 138px;
  margin-top: 24px;
}

.signal-lines span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(83, 234, 255, 1), rgba(20, 184, 212, 0.22)),
    linear-gradient(180deg, rgba(144, 255, 93, 0.4), transparent);
  box-shadow: 0 0 18px rgba(83, 234, 255, 0.34);
  animation: pulse 2.4s ease-in-out infinite;
}

.signal-lines span:nth-child(1) {
  height: 40%;
}

.signal-lines span:nth-child(2) {
  height: 72%;
  animation-delay: 0.25s;
}

.signal-lines span:nth-child(3) {
  height: 96%;
  animation-delay: 0.5s;
}

.alerts {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.flash {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  font-weight: 700;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.flash--success {
  background: rgba(144, 255, 93, 0.08);
  color: #dbffc9;
  border-color: rgba(144, 255, 93, 0.18);
}

.flash--error {
  background: rgba(255, 83, 124, 0.08);
  color: #ffd2dd;
  border-color: rgba(255, 83, 124, 0.18);
}

.flash--info {
  background: rgba(83, 234, 255, 0.08);
  color: #d4fbff;
  border-color: rgba(83, 234, 255, 0.18);
}

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

.panel {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7, 15, 27, 0.94), rgba(7, 12, 22, 0.9)),
    var(--panel);
  border-color: var(--panel-border);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel__header h2,
.empty-state h3,
.device-card h3,
.auth-card h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.panel__header h2,
.empty-state h3,
.device-card h3 {
  font-size: 1.55rem;
}

.panel__header p {
  margin: 8px 0 0;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.device-grid--viewer {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.device-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 20, 36, 0.96), rgba(5, 11, 21, 0.94)),
    var(--panel-strong);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.device-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(83, 234, 255, 0.34), transparent);
}

.device-card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 234, 255, 0.2);
  box-shadow: var(--glow-cyan), var(--shadow);
}

.status-online {
  box-shadow: var(--glow-lime), var(--shadow);
}

.status-offline {
  box-shadow: var(--glow-red), var(--shadow);
}

.status-pending {
  box-shadow: 0 0 0 1px rgba(255, 210, 74, 0.16), 0 0 24px rgba(255, 210, 74, 0.12), var(--shadow);
}

.device-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: start;
}

.device-card--viewer {
  min-height: 100%;
}

.device-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.device-heading h3 {
  color: var(--text-main);
  min-width: 0;
  font-size: clamp(1.22rem, 2.1vw, 1.55rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-dot {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.status-dot--online {
  background: radial-gradient(circle at 35% 35%, #b7ff86, #28d942 64%, #0f8d31 100%);
  box-shadow: 0 0 18px rgba(144, 255, 93, 0.55);
}

.status-dot--offline {
  background: radial-gradient(circle at 35% 35%, #ff9cb4, #ff537c 62%, #a41242 100%);
  box-shadow: 0 0 18px rgba(255, 83, 124, 0.45);
}

.status-dot--pending {
  background: radial-gradient(circle at 35% 35%, #ffe17d, #ffbf2f 62%, #a56f00 100%);
  box-shadow: 0 0 18px rgba(255, 210, 74, 0.42);
}

.device-card__hint,
.device-card__description {
  margin: 14px 0 0;
}

.status-pill {
  max-width: 100%;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  justify-self: end;
}

.status-pill--online {
  color: #bfffc4;
  background: rgba(144, 255, 93, 0.1);
  border: 1px solid rgba(144, 255, 93, 0.2);
}

.status-pill--offline {
  color: #ffd3dc;
  background: rgba(255, 83, 124, 0.1);
  border: 1px solid rgba(255, 83, 124, 0.2);
}

.status-pill--pending {
  color: #ffe99f;
  background: rgba(255, 210, 74, 0.1);
  border: 1px solid rgba(255, 210, 74, 0.18);
}

.device-meta {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.device-meta div {
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(142, 167, 188, 0.18);
}

.device-meta dt {
  font-size: 0.84rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.device-meta dd {
  margin: 8px 0 0;
  color: var(--text-main);
  font-weight: 800;
}

.ether-device-list {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.ether-device-panel {
  padding: 20px;
  border: 1px solid rgba(83, 234, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(83, 234, 255, 0.03);
}

.ether-device-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.ether-device-panel__header h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.ether-device-panel__header p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.ether-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.ether-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(9, 18, 32, 0.96), rgba(5, 11, 21, 0.94)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.ether-card--up {
  box-shadow: var(--glow-lime), var(--shadow);
}

.ether-card--down {
  box-shadow: var(--glow-red), var(--shadow);
}

.ether-card--disabled {
  box-shadow: 0 0 0 1px rgba(255, 210, 74, 0.16), 0 0 24px rgba(255, 210, 74, 0.1), var(--shadow);
}

.ether-card[open] {
  border-color: rgba(83, 234, 255, 0.2);
}

.ether-card__summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
}

.ether-card__summary::-webkit-details-marker {
  display: none;
}

.ether-card__main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.ether-card__title-row {
  display: flex;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.ether-card__title-row h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text-main);
}

.ether-card__title-row p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.ether-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ether-quick-stat {
  padding: 12px 12px 10px;
  border: 1px solid rgba(83, 234, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.ether-quick-stat span {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ether-quick-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--text-main);
  font-size: 1rem;
}

.ether-card__body {
  padding: 0 18px 18px;
}

.ether-meta {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px 14px;
}

.ether-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.ether-meta dt {
  font-size: 0.76rem;
}

.ether-chart-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.ether-chart-card {
  padding: 16px;
  border: 1px solid rgba(83, 234, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.ether-chart-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.ether-chart-card__head strong {
  color: var(--text-main);
}

.ether-chart-card__head span {
  color: var(--text-dim);
  font-size: 0.84rem;
}

.ether-chart {
  width: 100%;
  height: auto;
  display: block;
}

.ether-chart--status {
  min-height: 56px;
}

.empty-state--compact {
  margin-top: 0;
}

.endpoint-label,
.stack-form span {
  display: block;
  margin-bottom: 8px;
  color: #d9f7ff;
  font-weight: 700;
}

.endpoint-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.endpoint-input,
.stack-form input,
.stack-form textarea {
  width: 100%;
  border: 1px solid rgba(83, 234, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.endpoint-input:focus,
.stack-form input:focus,
.stack-form textarea:focus {
  border-color: rgba(83, 234, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(83, 234, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.endpoint-input {
  font-size: 0.92rem;
}

.stack-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.stack-form label {
  display: block;
}

.toggle-row {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(83, 234, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(83, 234, 255, 0.04);
}

.toggle-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent-cyan);
}

.toggle-row span {
  margin: 0;
}

.stack-form textarea {
  resize: vertical;
}

.primary-button,
.copy-button,
.ghost-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.primary-button {
  color: #001017;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
  box-shadow: 0 0 24px rgba(83, 234, 255, 0.22);
}

.copy-button {
  color: #dffcff;
  background: rgba(83, 234, 255, 0.08);
  border-color: rgba(83, 234, 255, 0.18);
}

.ghost-button {
  margin-top: 16px;
  color: #d8f9ff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.copy-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  box-shadow: 0 0 28px rgba(83, 234, 255, 0.34);
}

.copy-button:hover,
.ghost-button:hover {
  border-color: rgba(83, 234, 255, 0.24);
  box-shadow: 0 0 20px rgba(83, 234, 255, 0.12);
}

.inline-form {
  margin: 0;
}

.code-card {
  margin-top: 20px;
  border: 1px solid rgba(83, 234, 255, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(3, 10, 18, 0.98), rgba(8, 18, 32, 0.94)),
    var(--panel-strong);
  color: #d9fbff;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(83, 234, 255, 0.04);
}

.code-card pre {
  margin: 0;
  padding: 18px;
}

.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tip-card,
.empty-state {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.tip-card strong {
  display: block;
  margin-bottom: 8px;
  color: #dcfbff;
}

.empty-state {
  text-align: center;
  margin-top: 16px;
}

.empty-state__emoji {
  font-size: 3rem;
}

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

.auth-card {
  position: relative;
  width: min(100%, 480px);
  padding: 30px;
  border: 1px solid var(--panel-border-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(9, 18, 33, 0.96), rgba(5, 11, 21, 0.94)),
    var(--panel-strong);
  box-shadow: var(--glow-cyan), var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.95rem, 4vw, 2.8rem);
  line-height: 1.03;
}

.auth-card__accent {
  position: relative;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(83, 234, 255, 0.18);
  border-radius: 20px;
  font-size: 2rem;
  background: radial-gradient(circle at 35% 35%, rgba(83, 234, 255, 0.22), rgba(83, 234, 255, 0.05));
  box-shadow: var(--glow-cyan);
}

.auth-note {
  margin: 0 0 18px;
}

code {
  font-family: "Courier New", Courier, monospace;
}

@keyframes pulse {
  0%,
  100% {
    transform: scaleY(0.95);
    opacity: 0.76;
  }
  50% {
    transform: scaleY(1.05);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__left {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav {
    width: 100%;
  }

  .topnav__link {
    justify-content: center;
    flex: 1 1 auto;
  }

  .hero__content,
  .hero__side,
  .panel,
  .auth-card {
    padding: 20px;
  }

  .hero__content h1 {
    max-width: none;
  }

  .device-card__top {
    grid-template-columns: 1fr;
  }

  .device-heading {
    align-items: start;
  }

  .status-pill {
    justify-self: start;
  }

  .endpoint-row {
    grid-template-columns: 1fr;
  }

  .ether-device-panel__header,
  .ether-card__main,
  .ether-chart-card__head {
    flex-direction: column;
    align-items: start;
  }

  .ether-quick-stats,
  .ether-chart-stack {
    grid-template-columns: 1fr;
  }
}
