:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-deep: #02040a;
  --panel: rgba(12, 20, 37, 0.78);
  --panel-strong: rgba(10, 18, 32, 0.94);
  --line: rgba(146, 189, 255, 0.16);
  --line-bright: rgba(113, 240, 255, 0.42);
  --text: #f1f6ff;
  --muted: #91a1bb;
  --cyan: #71ecff;
  --mint: #8affc1;
  --violet: #a98bff;
  --amber: #ffd27c;
  --danger: #ff8096;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 5%, rgba(74, 157, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 90% 13%, rgba(167, 113, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 55% 75%, rgba(36, 228, 181, 0.07), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(131, 173, 231, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 173, 231, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.app-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  margin-bottom: 46px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(113, 236, 255, 0.5);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(113, 236, 255, 0.22), rgba(169, 139, 255, 0.12));
  box-shadow: 0 0 30px rgba(113, 236, 255, 0.16), inset 0 0 20px rgba(113, 236, 255, 0.1);
}

.brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 10px;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.18em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.topbar-actions,
.hero-actions,
.hero-meta,
.panel-header,
.panel-heading,
.panel-actions,
.input-label-row,
.result-actions,
.modal-header,
.modal-actions,
.footer-row {
  display: flex;
  align-items: center;
}

.topbar-actions {
  justify-content: flex-end;
  gap: 20px;
}

.live-indicator,
.panel-live,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(138, 255, 193, 0.09), 0 0 20px rgba(138, 255, 193, 0.75);
}

.live-dot.is-warning,
.status-dot.is-warning {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 210, 124, 0.09), 0 0 20px rgba(255, 210, 124, 0.75);
}

.live-dot.is-danger,
.status-dot.is-danger {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 128, 150, 0.09), 0 0 20px rgba(255, 128, 150, 0.75);
}

.header-link,
.text-link {
  color: var(--muted);
  font-size: 12px;
  transition: color 180ms ease;
}

.header-link:hover,
.text-link:hover {
  color: var(--cyan);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
  align-items: stretch;
  gap: 28px;
  margin-bottom: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 14px 6px 18px;
}

.eyebrow,
.panel-kicker,
.section-kicker {
  margin: 0 0 15px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 720px;
  margin: 0;
  color: #f7fbff;
  font-size: clamp(44px, 6.7vw, 84px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-title .gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--cyan), var(--mint) 47%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-2px);
}

.primary-button {
  color: #031018;
  background: linear-gradient(110deg, var(--cyan), var(--mint));
  box-shadow: 0 12px 28px rgba(88, 234, 220, 0.18);
}

.primary-button:hover {
  box-shadow: 0 16px 34px rgba(88, 234, 220, 0.3);
}

.secondary-button,
.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--line-bright);
  background: rgba(113, 236, 255, 0.08);
}

.ghost-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 10px;
}

.icon-button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  line-height: 1;
}

.button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.hero-meta {
  flex-wrap: wrap;
  gap: 9px 20px;
  margin-top: 34px;
  color: #6e809d;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 14px var(--violet);
}

.glass-panel,
.hero-visual,
.status-card,
.link-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17, 30, 52, 0.8), rgba(8, 14, 27, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  width: 320px;
  height: 320px;
  top: -90px;
  right: -40px;
  border: 1px solid rgba(113, 236, 255, 0.2);
  box-shadow: 0 0 80px rgba(113, 236, 255, 0.1);
}

.hero-visual::after {
  width: 520px;
  height: 520px;
  bottom: -310px;
  left: -250px;
  border: 1px solid rgba(169, 139, 255, 0.17);
}

.visual-caption {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 28px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-grid {
  position: absolute;
  inset: 86px 38px 58px;
  background-image:
    linear-gradient(rgba(113, 236, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 236, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 44%, black 0%, transparent 72%);
}

.signal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 218px;
  height: 218px;
  border: 1px solid rgba(113, 236, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 70px rgba(113, 236, 255, 0.12), inset 0 0 44px rgba(113, 236, 255, 0.05);
}

.signal-ring::before,
.signal-ring::after {
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(138, 255, 193, 0.28);
  border-radius: 50%;
  content: "";
}

.signal-ring::after {
  inset: 58px;
  border-style: solid;
  border-color: rgba(169, 139, 255, 0.4);
}

.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(138, 255, 193, 0.7);
  border-radius: 24px;
  background: radial-gradient(circle at 35% 30%, rgba(138, 255, 193, 0.6), rgba(113, 236, 255, 0.1) 58%, rgba(5, 9, 20, 0.78));
  box-shadow: 0 0 60px rgba(138, 255, 193, 0.22), inset 0 0 28px rgba(138, 255, 193, 0.12);
  transform: translate(-50%, -50%) rotate(45deg);
}

.signal-core span {
  color: #eafff7;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.1em;
  transform: rotate(-45deg);
}

.signal-line {
  position: absolute;
  top: 52%;
  left: 6%;
  width: 88%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(113, 236, 255, 0.65), transparent);
  box-shadow: 0 0 16px rgba(113, 236, 255, 0.55);
  transform: rotate(-20deg);
}

.signal-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(113, 236, 255, 0.08), 0 0 20px var(--cyan);
}

.node-a { top: 27%; left: 22%; }
.node-b { top: 73%; right: 19%; background: var(--violet); box-shadow: 0 0 0 6px rgba(169, 139, 255, 0.08), 0 0 20px var(--violet); }
.node-c { top: 20%; right: 28%; background: var(--mint); box-shadow: 0 0 0 6px rgba(138, 255, 193, 0.08), 0 0 20px var(--mint); }

.visual-footer {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #7185a4;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.status-card {
  min-height: 126px;
  padding: 20px;
  border-radius: var(--radius-md);
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-card-value {
  display: block;
  margin-top: 15px;
  color: var(--text);
  font-size: 32px;
  font-weight: 710;
  letter-spacing: -0.055em;
}

.status-card-detail {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #6f83a2;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-card:first-child .status-card-value {
  color: var(--mint);
}

.status-card:nth-child(2) .status-card-value {
  color: var(--cyan);
}

.status-card:nth-child(3) .status-card-value {
  color: var(--violet);
}

.status-card:nth-child(4) .status-card-value {
  color: var(--amber);
  font-size: 22px;
  letter-spacing: 0.03em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
  gap: 28px;
  margin-bottom: 52px;
}

.glass-panel {
  border-radius: var(--radius-lg);
}

.session-panel,
.activity-panel {
  min-height: 570px;
  padding: 26px;
}

.panel-header {
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(146, 189, 255, 0.1);
}

.panel-heading {
  gap: 11px;
}

.panel-index {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 740;
  letter-spacing: -0.02em;
}

.panel-live {
  color: var(--mint);
}

.method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 23px 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 5, 13, 0.43);
}

.method-tab {
  min-height: 42px;
  color: var(--muted);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.method-tab:hover,
.method-tab.is-active {
  color: var(--text);
  background: rgba(113, 236, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(113, 236, 255, 0.19);
}

.method-panel {
  display: none;
}

.method-panel.is-active {
  display: block;
  animation: rise-in 240ms ease both;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.method-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.input-label-row {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.input-label,
.form-hint {
  color: #d8e5f7;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-hint {
  color: #627796;
  font-size: 9px;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(146, 189, 255, 0.17);
  border-radius: 15px;
  background: rgba(2, 6, 15, 0.56);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.input-shell:focus-within {
  border-color: rgba(113, 236, 255, 0.64);
  background: rgba(5, 14, 26, 0.82);
  box-shadow: 0 0 0 4px rgba(113, 236, 255, 0.07), 0 0 28px rgba(113, 236, 255, 0.09);
}

.input-prefix {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.input-shell input::placeholder {
  color: #4f6381;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.form-actions .primary-button {
  flex: 1 1 210px;
}

.form-note {
  margin: 18px 0 0;
  color: #7184a2;
  font-size: 11px;
  line-height: 1.6;
}

.loading-state {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 11px;
}

.loading-state.is-visible {
  display: flex;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(113, 236, 255, 0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

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

.inline-alert {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  color: var(--danger);
  border: 1px solid rgba(255, 128, 150, 0.2);
  border-radius: 12px;
  background: rgba(255, 128, 150, 0.07);
  font-size: 11px;
  line-height: 1.5;
}

.inline-alert.is-visible {
  display: block;
}

.code-result {
  display: none;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(138, 255, 193, 0.3);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(138, 255, 193, 0.1), rgba(113, 236, 255, 0.04));
}

.code-result.is-visible {
  display: block;
  animation: rise-in 260ms ease both;
}

.code-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code-box {
  margin: 13px 0;
  padding: 17px 14px;
  color: #eafff7;
  border: 1px dashed rgba(138, 255, 193, 0.44);
  border-radius: 13px;
  background: rgba(2, 10, 13, 0.65);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 780;
  letter-spacing: 0.2em;
  text-align: center;
}

.code-instructions {
  margin: 0;
  color: #a4b6c9;
  font-size: 11px;
  line-height: 1.65;
}

.qr-method-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 210px;
  padding: 21px;
  border: 1px solid rgba(169, 139, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(169, 139, 255, 0.11), rgba(113, 236, 255, 0.05));
}

.qr-method-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 730;
}

.qr-method-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.qr-symbol {
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  border: 1px solid rgba(113, 236, 255, 0.36);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(113, 236, 255, 0.52) 8px, transparent 8px) 0 0 / 20px 20px,
    linear-gradient(rgba(113, 236, 255, 0.52) 8px, transparent 8px) 0 0 / 20px 20px,
    rgba(5, 12, 25, 0.65);
  box-shadow: inset 0 0 28px rgba(113, 236, 255, 0.08);
}

.qr-symbol span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--bg-deep);
  border-radius: 12px;
  background: var(--cyan);
  font-size: 18px;
  font-weight: 900;
}

.activity-panel {
  display: flex;
  flex-direction: column;
}

.activity-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.activity-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: start;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(146, 189, 255, 0.09);
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-bullet {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(113, 236, 255, 0.4);
}

.activity-item.is-success .activity-bullet {
  border-color: var(--mint);
  box-shadow: 0 0 10px rgba(138, 255, 193, 0.4);
}

.activity-item.is-warning .activity-bullet {
  border-color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 210, 124, 0.4);
}

.activity-copy {
  color: #bdcbe0;
  font-size: 11px;
  line-height: 1.55;
}

.activity-time {
  color: #5e7190;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  white-space: nowrap;
}

.activity-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.summary-box {
  padding: 14px;
  border: 1px solid rgba(146, 189, 255, 0.12);
  border-radius: 14px;
  background: rgba(2, 6, 15, 0.3);
}

.summary-label {
  display: block;
  color: #657895;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-value {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.link-section {
  margin-bottom: 44px;
}

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

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 730;
  letter-spacing: -0.03em;
}

.section-description {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

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

.link-card {
  position: relative;
  min-height: 156px;
  padding: 21px;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.link-card::after {
  position: absolute;
  right: -30px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(113, 236, 255, 0.17);
  border-radius: 50%;
  content: "";
}

.link-card:hover {
  border-color: var(--line-bright);
  background: linear-gradient(145deg, rgba(20, 39, 62, 0.92), rgba(10, 20, 36, 0.88));
  transform: translateY(-3px);
}

.link-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  margin-bottom: 22px;
  color: var(--cyan);
  border: 1px solid rgba(113, 236, 255, 0.28);
  border-radius: 11px;
  background: rgba(113, 236, 255, 0.08);
  font-size: 16px;
  font-weight: 800;
}

.link-card:nth-child(2) .link-icon {
  color: var(--mint);
  border-color: rgba(138, 255, 193, 0.28);
  background: rgba(138, 255, 193, 0.08);
}

.link-card:nth-child(3) .link-icon {
  color: var(--violet);
  border-color: rgba(169, 139, 255, 0.28);
  background: rgba(169, 139, 255, 0.08);
}

.link-title {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.link-copy {
  display: block;
  max-width: 240px;
  margin-top: 7px;
  color: #7689a5;
  font-size: 11px;
  line-height: 1.5;
}

.link-arrow {
  position: absolute;
  top: 21px;
  right: 21px;
  color: #647997;
  font-size: 15px;
}

.footer-row {
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(146, 189, 255, 0.1);
  color: #627492;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(1, 4, 10, 0.82);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.scanner-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 25px;
  border: 1px solid rgba(113, 236, 255, 0.28);
  border-radius: 25px;
  background: linear-gradient(145deg, rgba(15, 29, 49, 0.98), rgba(5, 11, 23, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62), 0 0 80px rgba(113, 236, 255, 0.08);
}

.modal-header {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.03em;
}

.modal-copy {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.scanner-frame {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(113, 236, 255, 0.28);
  border-radius: 18px;
  background: #02060e;
}

.scanner-frame video {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.scanner-frame canvas {
  display: none;
}

.scanner-frame.is-idle::before {
  position: absolute;
  width: 164px;
  height: 164px;
  border: 1px dashed rgba(113, 236, 255, 0.52);
  border-radius: 24px;
  content: "";
  box-shadow: 0 0 40px rgba(113, 236, 255, 0.08);
}

.scanner-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--cyan);
  border-style: solid;
}

.scanner-corner.top-left { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.scanner-corner.top-right { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.scanner-corner.bottom-left { bottom: 18px; left: 18px; border-width: 0 0 2px 2px; }
.scanner-corner.bottom-right { right: 18px; bottom: 18px; border-width: 0 2px 2px 0; }

.scanner-line {
  position: absolute;
  top: 50%;
  left: 11%;
  width: 78%;
  height: 1px;
  display: none;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  animation: scan-line 1.65s ease-in-out infinite alternate;
}

.scanner-frame.is-scanning .scanner-line {
  display: block;
}

@keyframes scan-line {
  from { transform: translateY(-58px); }
  to { transform: translateY(58px); }
}

.scanner-placeholder {
  position: relative;
  z-index: 1;
  max-width: 280px;
  color: #7185a4;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.scanner-frame.is-scanning .scanner-placeholder {
  display: none;
}

.modal-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions .secondary-button,
.modal-actions .primary-button {
  flex: 1 1 180px;
}

.file-input {
  display: none;
}

.scan-result {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(138, 255, 193, 0.26);
  border-radius: 13px;
  background: rgba(138, 255, 193, 0.07);
}

.scan-result.is-visible {
  display: block;
}

.scan-result-label {
  display: block;
  color: var(--mint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scan-result-value {
  display: block;
  max-height: 80px;
  margin-top: 8px;
  overflow: auto;
  color: #e8fff4;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 15px;
  color: #dffcf4;
  border: 1px solid rgba(138, 255, 193, 0.28);
  border-radius: 13px;
  background: rgba(7, 22, 25, 0.95);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-copy {
    min-height: 0;
    padding-top: 0;
  }

  .hero-visual {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 28px, 620px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .topbar-actions {
    gap: 0;
  }

  .header-link {
    display: none;
  }

  .hero-title {
    font-size: clamp(42px, 14vw, 66px);
  }

  .hero-description {
    font-size: 14px;
  }

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

  .session-panel,
  .activity-panel {
    min-height: 0;
    padding: 19px;
  }

  .links-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-description {
    margin-top: 10px;
    text-align: left;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .scanner-modal {
    padding: 18px;
  }
}

@media (max-width: 470px) {
  .brand-name {
    font-size: 13px;
  }

  .brand-subtitle {
    font-size: 8px;
  }

  .hero-actions,
  .hero-actions > * {
    width: 100%;
  }

  .status-card {
    min-height: 116px;
    padding: 16px;
  }

  .status-card-value {
    font-size: 27px;
  }

  .qr-method-card {
    grid-template-columns: 1fr;
  }

  .qr-symbol {
    display: none;
  }
}
