*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #173746;
  --deep: #214d5c;
  --soft-ink: #566a73;
  --muted: #87959b;
  --line: #e3eaed;
  --wash: #f7fafa;
  --copper: #c9872f;
  --copper-soft: #f6ead9;
  --green: #149660;
  --amber: #b87920;
  --red: #c94b4b;
  --shadow: 0 22px 70px rgba(23, 55, 70, 0.08);
  --gold: var(--copper);
  --gold-deep: #9c671f;
  --cyan: var(--deep);
  --orange: var(--copper);
  --white: #ffffff;
  --dim: var(--soft-ink);
  --border: var(--line);
}
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(227, 234, 237, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 820; letter-spacing: -0.02em; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark img { width: 40px; height: 40px; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; color: var(--soft-ink); font-size: 14px; font-weight: 720; }
.nav-links a { padding: 9px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links .active { color: var(--ink); background: var(--wash); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  padding: 8px 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn, .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover, .nav-cta:hover { transform: translateY(-1px); border-color: #cbd9dd; box-shadow: 0 12px 28px rgba(23, 55, 70, 0.08); }
.btn-primary, .nav-cta {
  color: #ffffff !important;
  background: var(--deep) !important;
  border-color: var(--deep) !important;
  box-shadow: 0 16px 32px rgba(33, 77, 92, 0.16);
}
.btn-ghost { background: transparent; }
.btn-small { min-height: 38px; padding: 0 14px; }

.home-hero { padding: 92px 0 64px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr); gap: 64px; align-items: center; }
.home-copy h1 {
  max-width: 820px;
  font-size: clamp(50px, 7vw, 98px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 890;
}
.lead { margin-top: 26px; max-width: 650px; color: var(--soft-ink); font-size: clamp(18px, 2vw, 22px); line-height: 1.62; }
.number-desk {
  margin-top: 36px;
  max-width: 760px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.desk-label { display: block; margin: 0 4px 10px; color: var(--muted); font-size: 12px; font-weight: 820; letter-spacing: 0.08em; text-transform: uppercase; }
.desk-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.desk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.search-input {
  min-height: 56px;
  border: 1px solid var(--line);
  outline: 0;
  background: var(--wash);
  color: var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 720;
}
.search-input::placeholder { color: #9aa7ac; }
.search-input:focus { border-color: var(--copper); background: #fff; box-shadow: 0 0 0 3px rgba(201, 135, 47, 0.13); }
.wallet-mini { margin-top: 16px; color: var(--muted); font-size: 13px; }

.number-preview, .panel, .profile-card, .market-card, .search-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.number-preview { padding: 26px; overflow: hidden; }
.preview-head, .console-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.console-number { font-size: clamp(44px, 5vw, 78px); line-height: 1; letter-spacing: -0.055em; font-weight: 890; color: var(--deep); }
.preview-body, .console-main { display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: center; }
.avatar {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--deep);
  font-size: 27px;
  font-weight: 850;
}
.avatar-large { width: 128px !important; height: 128px !important; font-size: 34px !important; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-name { margin-top: 10px; font-size: 20px; font-weight: 820; letter-spacing: -0.02em; }
.profile-bio { margin-top: 8px; color: var(--soft-ink); }
.wallet-line { margin-top: 16px; color: var(--soft-ink); font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; line-height: 1.55; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; }
.status.dormant, .status-dormant { color: var(--amber); }
.status.sale { color: var(--copper); }
.preview-actions { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

.home-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--wash); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.workflow-item { display: block; min-height: 210px; padding: 30px; background: var(--paper); }
.workflow-item span { color: var(--copper); font-size: 12px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.workflow-item strong { display: block; margin-top: 22px; font-size: 24px; line-height: 1.08; letter-spacing: -0.035em; }
.workflow-item p { margin-top: 12px; color: var(--soft-ink); font-size: 14px; line-height: 1.65; }
.logo-story-band { background: #fbfcfc; }
.story-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 46px; align-items: center; }
.story-mark { width: 160px; display: block; }

.section { padding: 74px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section h2, .section-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.05em; font-weight: 880; }
.section-copy { max-width: 660px; color: var(--soft-ink); font-size: 17px; }
.number { font-size: clamp(42px, 6vw, 70px); line-height: 1; letter-spacing: -0.055em; font-weight: 890; color: var(--deep); }
.small { color: var(--soft-ink); font-size: 13px; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, monospace; }

.profile-layout { display: grid; grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; padding: 50px 0 84px; }
.profile-card { padding: 28px; }
.profile-hero { display: flex; gap: 22px; align-items: flex-start; }
.profile-title { flex: 1; min-width: 0; }
.action-stack { display: grid; gap: 10px; margin-top: 24px; }
.claim-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #ead7ba;
  border-radius: 8px;
  background: #fff8ee;
  color: #7a551f;
  font-size: 13px;
}
.sale-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #d7e4e8;
  border-radius: 8px;
  background: #f7fbfc;
  color: var(--deep);
  font-size: 14px;
}
.data-list { display: grid; gap: 1px; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--line); }
.data-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; padding: 14px 16px; background: var(--paper); }
.data-key { color: var(--muted); font-size: 13px; font-weight: 760; }
.data-val { color: var(--ink); font-weight: 760; word-break: break-all; }
.send-panel { display: none; margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.send-panel.visible { display: block; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.input, .textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
}
.input:focus, .textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(201, 135, 47, 0.13); }
.textarea { min-height: 96px; resize: vertical; }
.amount-input { max-width: 170px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-weight: 760; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--deep); }
.alert { display: none; margin-top: 12px; padding: 11px 12px; border-radius: 8px; font-size: 13px; }
.alert.visible { display: block; }
.alert-error { color: #8f1e1e; background: #fff0ed; border: 1px solid #f0c5bd; }
.alert-success { color: #09633f; background: #effbf5; border: 1px solid #bbe9cf; }
.thread { display: grid; gap: 12px; margin-top: 18px; }
.message { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 15px; }
.message.reply { margin-left: 34px; background: var(--wash); }
.message-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.message-body { color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.reply-btn { margin-top: 10px; border: 0; background: transparent; color: var(--copper); font-weight: 800; cursor: pointer; }
.empty { color: var(--soft-ink); padding: 18px; border: 1px dashed var(--line); border-radius: 8px; background: rgba(255,255,255,0.55); }

.market-hero { padding: 70px 0 28px; }
.search-card { padding: 12px; display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-bottom: 24px; }
.market-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 24px 0; }
.toggle-group { display: inline-flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.toggle-group button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--soft-ink); font-weight: 760; cursor: pointer; }
.toggle-group button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(23, 55, 70, 0.06); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.market-card { padding: 22px; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.card-meta { flex: 1; min-width: 0; }
.insc-thumb {
  width: 82px;
  height: 82px;
  min-width: 82px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wash);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--deep);
  font-size: 22px;
  font-weight: 850;
}
.insc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.market-card .number { font-size: clamp(26px, 3vw, 42px); }
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── RECENTLY CLAIMED STRIP ── */
.recent-strip { border-top: 1px solid var(--line); padding: 14px 0; background: var(--wash); }
.recent-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recent-label { font-size: 12px; font-weight: 760; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; flex-shrink: 0; }
.recent-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.recent-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 13px; font-weight: 760; background: var(--paper);
  transition: border-color 0.14s, background 0.14s;
}
.recent-pill:hover { border-color: var(--gold); background: #fffaf0; }
.pill-num { color: var(--gold-deep); }
.pill-name { color: var(--soft-ink); font-weight: 720; }

/* ── SOCIAL LINK ROWS (Linktree style) ── */
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: border-color 0.16s, background 0.16s, transform 0.12s;
  text-decoration: none;
  color: var(--ink);
}
.social-row:hover { border-color: var(--gold); background: #fffaf0; transform: translateY(-1px); }
.social-icon-wrap {
  width: 32px; height: 32px; border-radius: 7px;
  display: grid; place-items: center; flex-shrink: 0;
}
.social-platform { font-size: 13px; font-weight: 760; color: var(--muted); min-width: 72px; flex-shrink: 0; }
.social-handle { flex: 1; font-size: 14px; font-weight: 780; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-arrow { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 13px; }
.footer .shell { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.mobile-only { display: none; }

@media (max-width: 1100px) {
  .shell { width: min(100% - 28px, 1160px); }
  .home-hero { padding-top: 58px; }
  .home-grid, .profile-layout, .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-copy { margin-top: 12px; }
  .home-copy h1 { font-size: clamp(40px, 7vw, 62px); }
  .preview-head { display: grid; gap: 10px; }
  .preview-body { grid-template-columns: 1fr; }
  .story-mark { width: 130px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav { height: 62px; position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 12px 14px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(16,32,51,0.10);
    z-index: 40;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .btn { justify-content: flex-start; width: 100%; padding: 11px 14px; font-size: 15px; }
  .desk-row, .search-card { grid-template-columns: 1fr; }
  .desk-actions .btn, .number-desk .btn, .search-card .btn { width: 100%; }
  .profile-hero { flex-direction: column; }
  .data-row { grid-template-columns: 1fr; gap: 4px; }
  .card-actions .btn, .form-row .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
  .home-copy h1 { font-size: 40px; overflow-wrap: anywhere; }
  .number { font-size: 40px; }
  .console-number { font-size: 46px; }
  .message.reply { margin-left: 16px; }
}
