:root {
  --ink: #195287;
  --subtle: #9cb2c5;
  --panel: #111319;
  --line: #195287;
  --muted-bg: #0f1116;
  --accent: #195287;
  --chip: #111319;
  --bg: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.04), transparent 32%),
    radial-gradient(circle at 82% 0, rgba(255, 255, 255, 0.03), transparent 30%),
    #282e30;
  --row-accent: #2371bb;
  --row-neon: #3f90db;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

.shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: 6px;
}

.site-logo img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chip);
  display: block;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  justify-content: flex-start;
  margin-left: 14px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: var(--subtle);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active {
  color: var(--ink);
  background: #2a2d2f;
}

.header-menu {
  margin-left: 0;
  margin-right: 6px;
  justify-self: end;
}

.icon-btn {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -18px rgba(0, 0, 0, 0.55);
}

.icon-btn.ghost {
  background: var(--chip);
}

.icon-lines,
.icon-plus {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
}

.icon-lines::before,
.icon-lines::after,
.icon-lines span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.icon-lines::before {
  top: 2px;
}

.icon-lines span {
  top: 8px;
}

.icon-lines::after {
  top: 14px;
}

.icon-plus::before,
.icon-plus::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
  background: currentColor;
}

.icon-plus::after {
  transform: rotate(90deg);
}

.icon-plus.rotated {
  transform: rotate(45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pill {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: #3b4146;
  box-shadow: 0 10px 30px -24px rgba(0, 0, 0, 0.65);
}

.pill.ghost {
  background: var(--chip);
  border-color: var(--line);
  color: var(--ink);
}

.profile-card {
  margin: 20px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px -65px rgba(0, 0, 0, 0.75);
  position: relative;
}

.cover {
  position: relative;
  height: 380px;
  padding-top: 40px;
  background-image: url("../images/banner.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.12) 0%, rgba(20, 20, 22, 0.82) 100%);
  mix-blend-mode: multiply;
}

.avatar-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 20px 30px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.follow-spot {
  margin-left: auto;
  align-self: flex-start;
  padding-top: 6px;
}

.avatar-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -90px;
  flex: 1 1 auto;
  width: 100%;
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, #25292b, #30363a);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity {
  padding-bottom: 10px;
}

.label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
  display: none;
}

.ens-name {
  margin: 0 0 2px;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ens-bio {
  margin: 0 0 12px;
  color: #ced5de;
  max-width: 740px;
}
.ens-nick {
  margin: 0;
  color: var(--subtle);
  font-size: 0.95rem;
}

.avatar-col .ens-bio {
  margin: 0;
  max-width: 100%;
}

.avatar-col .ens-name {
  margin: 0;
}

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

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink);
}

.meta-chip.muted {
  color: var(--subtle);
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  text-decoration: none;
  min-width: 170px;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.45);
  font-weight: 700;
}

.follow-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.profile-body {
  padding: 10px 30px 28px;
}

.section-head {
  padding: 18px 30px 6px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.timestamp {
  color: var(--subtle);
  font-size: 10px;
  margin-left: auto;
  font-weight: 500;
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.production-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 12px;
}

.production-tab {
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  border-radius: 15px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.production-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16) inset;
}

.production-pane {
  min-width: 0;
}

.block-bricks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.info-block.block-brick {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas: "cover main actions";
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #111319, #0f1116);
}

.block-brick-meta {
  display: none;
}

.block-brick-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.block-brick-subrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-brick-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--muted-bg);
}

.block-brick-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.block-brick-status {
  color: var(--subtle);
  font-size: 12px;
}

.block-brick-media {
  grid-area: cover;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-brick-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.block-brick-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}

.block-brick-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}

.block-track-main {
  grid-area: main;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.block-track-source {
  display: none !important;
}

.block-track-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-track-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.block-track-btn {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.block-track-btn-buy {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.block-track-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16) inset;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.channel-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #111319, #0f1116);
}

.channel-media {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-media img,
.channel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.channel-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.channel-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.channel-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-url {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-open-btn {
  min-width: 72px;
  justify-content: center;
  border-radius: 15px;
}

[data-channel-empty] {
  margin: 12px 2px 0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .info-block.block-brick {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "cover main"
      "cover actions";
    align-items: start;
  }

  .block-track-actions {
    margin-top: 2px;
    justify-content: flex-end;
    justify-self: end;
  }

  .channel-card {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "media main"
      "media action";
    align-items: start;
  }

  .channel-media {
    grid-area: media;
  }

  .channel-main {
    grid-area: main;
  }

  .channel-open-btn {
    grid-area: action;
    justify-self: start;
    margin-top: 2px;
  }
}

@media (max-width: 520px) {
  .block-track-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .block-track-btn {
    min-width: 64px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

.rss-feed {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.rss-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #111319, #0f1116);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  align-items: center;
  min-width: 0;
}

.rss-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #0d0f10;
  flex: 0 0 64px;
}

.rss-thumb-placeholder {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(25, 82, 135, 0.16), rgba(255, 255, 255, 0.05));
}

.rss-item-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}

.rss-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
}

.rss-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.rss-copy-btn {
  margin-left: 0;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rss-copy-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16) inset;
}

.rss-copy-btn.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.floating-menu {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(25, 82, 135, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.75);
  z-index: 50;
}

.floating-menu .icon-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.floating-menu .icon-btn.ghost {
  background: transparent;
  border-color: var(--accent);
  color: #fff;
}

.floating-menu .icon-btn:hover {
  border-color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 60;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: 90%;
  max-width: 90%;
  margin: 120px auto;
  background: #1e2122;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 80px -50px rgba(0, 0, 0, 0.9);
  z-index: 1;
  max-height: 80vh;
  overflow: hidden;
}

.modal.modal-instructions .modal-dialog {
  width: min(100% - 48px, 880px);
  max-width: 880px;
  margin: 24px auto;
  height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.modal.modal-instructions .modal-body {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
}

.modal.modal-invoice .modal-dialog {
  width: min(100% - 48px, 560px);
  max-width: 560px;
  margin: 70px auto;
}

.invoice-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #111319, #0f1116);
  padding: 14px;
}

.invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.invoice-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
}

.invoice-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(25, 82, 135, 0.5);
  background: rgba(25, 82, 135, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.invoice-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  margin-top: 8px;
}

.invoice-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
}

.invoice-value {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.invoice-wallet {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.invoice-wallet .wallet-value {
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
}

.invoice-copy-btn {
  justify-self: start;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-head h3 {
  margin: 0;
}

.modal-body {
  color: var(--ink);
  line-height: 1.6;
  max-height: calc(80vh - 70px);
  overflow-y: auto;
}

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

/* Modal-only CTA styles */
.modal-actions .pill {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  font-size: 1rem;
  text-align: center;
  min-height: 52px;
}

.modal-actions .ens-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}

.modal-actions .ens-cta:hover {
  border-color: var(--accent);
}

.modal-actions .efp-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}

.modal-actions .efp-cta:hover {
  border-color: var(--accent);
}

.modal-actions .spasm-cta {
  background: #f321ae;
  border-color: #f321ae;
  color: #fff;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}

.modal-actions .spasm-cta:hover {
  border-color: #c1178a;
  background: #c1178a;
}

.modal-actions .pinata-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}

.modal-actions .pinata-cta:hover {
  border-color: var(--accent);
}

.instructions-modal .profile-card {
  margin: 12px 0;
}

.instructions-modal .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px 6px;
}

.instructions-modal .section-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.instructions-modal .accordion {
  border: 0;
}

.instructions-modal .accordion > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.instructions-modal .accordion > summary::-webkit-details-marker {
  display: none;
}

.instructions-modal .accordion > summary.section-head::after {
  content: "+";
  color: var(--subtle);
  font-size: 1.1rem;
  line-height: 1;
  margin-left: 10px;
}

.instructions-modal .accordion[open] > summary.section-head::after {
  content: "-";
}

.instructions-modal .profile-body {
  padding: 10px 16px 18px;
}

.instructions-modal .info-block {
  padding: 12px 14px;
}

.instructions-modal .theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.instructions-modal .theme-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.instructions-modal .theme-control label {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
}

.instructions-modal select,
.instructions-modal .key-input,
.instructions-modal .theme-reset {
  width: 100%;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--muted-bg);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.instructions-modal .key-input {
  cursor: default;
  font-weight: 500;
}

.instructions-modal .key-input::selection {
  background: var(--accent);
  color: #fff;
}

.instructions-modal select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.instructions-modal .theme-reset {
  background: transparent;
  border-color: var(--line);
}

.instructions-modal .theme-key {
  margin-top: 4px;
}

.instructions-modal .key-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.instructions-modal .copy-btn {
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.instructions-modal .copy-btn:hover {
  border-color: var(--accent);
}

.instructions-modal .install-card {
  margin: 12px 0;
}

.instructions-modal .install-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.55);
}

.instructions-modal .install-cta:hover {
  border-color: var(--accent);
}

.instructions-modal .install-cta[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.instructions-modal .install-note {
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  .modal-actions .pill {
    flex: 1 1 180px;
    padding: 16px 20px;
    font-size: 1.05rem;
  }
}

.info-block {
  padding: 14px 16px;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.info-value {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
  text-decoration: none;
}

.instructions-modal .theme-control .info-value.muted,
.instructions-modal .theme-grid + .info-value.muted {
  font-size: 14px;
}

.info-value a {
  color: #3f90db;
  text-decoration: none;
}

.info-value a.auto-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-value a:hover {
  text-decoration: underline;
}

.ens-bio a {
  color: #3f90db;
  text-decoration: none;
}

.ens-bio a:hover {
  text-decoration: underline;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--chip);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 15px;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -18px rgba(0, 0, 0, 0.55);
}

.market-button {
  display: none;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1 1 50%;
  text-align: center;
}

.market-button.ghost {
  background: var(--chip);
  color: var(--ink);
  border-color: var(--line);
}

.market-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -18px rgba(0, 0, 0, 0.55);
}

.support-button {
  display: inline-flex;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  flex: 1 1 100%;
  text-align: center;
}

.support-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px -18px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.helper {
  margin-top: 16px;
}

.muted {
  color: var(--subtle);
}

.error {
  color: #c0392b;
}

.site-footer {
  margin: 40px 0 20px;
  text-align: center;
  color: var(--subtle);
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  .shell {
    padding: 0 12px;
  }

  .cover {
    height: 240px;
  }

  .site-header .shell {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .nav-links {
    width: auto;
    justify-content: flex-start;
    margin: 0 0 0 8px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .site-logo {
    order: 0;
    margin-left: 4px;
  }

  .site-logo img {
    width: 46px;
    height: 46px;
  }

  .header-menu {
    display: none;
  }

  .avatar-row {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -30px;
    padding: 0 12px 16px;
  }

  .avatar-col {
    margin-top: -30px;
  }

  .follow-spot {
    margin-left: 0;
    padding-top: 0;
    width: 100%;
  }

  .follow-btn {
    width: 100%;
    justify-content: center;
  }

  .ens-name {
    font-size: 1.7rem;
  }

  .profile-body {
    padding: 8px 12px 16px;
  }

  .section-head {
    padding: 12px 12px 6px;
  }

  .info-block {
    padding: 12px;
  }

  .floating-menu {
    display: inline-flex;
  }

  /* Ensure Block Bricks stays visible on mobile */
  #block-bricks {
    display: block !important;
  }

  .block-brick-media img,
  .block-brick-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .rss-item {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "thumb body"
      "btn btn";
    align-items: start;
  }

  .rss-thumb {
    grid-area: thumb;
    width: 64px;
    height: 64px;
  }

  .rss-item-body {
    grid-area: body;
  }

  .rss-copy-btn {
    grid-area: btn;
    justify-self: end;
    margin-top: 4px;
  }
}

@media (max-width: 720px) {
  .modal.modal-instructions .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .modal.modal-instructions .modal-body {
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
  }

  .instructions-modal .section-head {
    padding: 12px 12px 6px;
  }

  .instructions-modal .profile-body {
    padding: 10px 12px 16px;
  }

  .instructions-modal .info-block {
    padding: 10px 12px;
  }

  .instructions-modal .theme-grid {
    grid-template-columns: 1fr;
  }
}
