:root {
  --navy: #0d1b3e;
  --navy-2: #16295a;
  --blue: #2b4fd8;
  --blue-dark: #1f3cb0;
  --blue-soft: #e8edff;
  --gold: #f2b01e;
  --gold-soft: #fff4d6;
  --gold-ink: #8a5a00;
  --green: #16a36a;
  --green-soft: #e3f7ee;
  --red: #d83a3a;
  --red-soft: #fdeaea;
  --bg: #f3f4f7;
  --card: #ffffff;
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #8a93a3;
  --line: #e3e6ec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(13, 27, 62, .06), 0 4px 14px rgba(13, 27, 62, .05);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--sans); overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .dollar { color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 12px; border-radius: 8px;
  color: var(--ink-2); font-size: 12.5px; font-weight: 500;
}
.nav a svg { width: 22px; height: 22px; }
.nav a:hover { color: var(--ink); text-decoration: none; background: var(--bg); }
.nav a.active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover:not(:disabled) { background: var(--blue-soft); }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover:not(:disabled) { background: #e4a30f; }
.btn-danger { border-color: var(--red); color: var(--red); background: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--red-soft); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 16px; }

.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 5px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13.5px;
}
.wallet-chip:hover { border-color: var(--ink-3); }

.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 12px 32px rgba(13, 27, 62, .16); padding: 6px; display: none;
}
.menu.open .menu-pop { display: block; }
.menu-pop a, .menu-pop button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none;
  color: var(--ink); font-size: 14px; cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--bg); text-decoration: none; }
.menu-pop .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-pop .meta { padding: 8px 12px; font-size: 12.5px; color: var(--ink-3); }

.mobile-nav { display: none; }

/* ---------- ticker ---------- */
.ticker { background: var(--navy); color: #cdd6f4; font-size: 13px; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 42px; padding: 8px 0; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker b { color: #fff; font-weight: 600; }
.ticker .g { color: var(--gold); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- cards / layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 22px; }
.page { padding: 28px 0 60px; }
.grid-side { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.sticky { position: sticky; top: 80px; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--navy); }
.page-title p { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; font-size: 13px;
}
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 68px); color: var(--navy); margin: 18px 0 16px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { font-size: 18.5px; color: var(--ink-2); max-width: 540px; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ca-box {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px;
  background: var(--bg); border: 1px dashed var(--ink-3); max-width: 100%;
}
.ca-box .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-cards { position: relative; min-height: 420px; }
.hero-cards .card { position: absolute; width: 330px; padding: 16px; }
.hero-cards .hc1 { top: 0; left: 10px; transform: rotate(-3deg); }
.hero-cards .hc2 { top: 150px; right: 0; transform: rotate(2.5deg); z-index: 2; }
.hero-cards .hc3 { top: 285px; left: 30px; transform: rotate(-1deg); }
.offer-letter { border-top: 4px solid var(--gold) !important; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -32px; position: relative; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 18px 20px; }
.stat b { display: block; font-size: 26px; color: var(--navy); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--ink-2); font-size: 13.5px; }

/* ---------- sections ---------- */
.section { padding: 64px 0 0; }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; color: var(--navy); margin-bottom: 8px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 16.5px; }
.utility { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.utility .card { padding: 22px; }
.utility .ico {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
  background: var(--blue-soft);
}
.utility h3 { font-size: 17px; margin-bottom: 6px; }
.utility p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.utility .price { margin-top: 12px; font-weight: 700; color: var(--gold-ink); font-size: 13.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote { padding: 22px; }
.quote p { font-family: var(--serif); font-size: 21px; color: var(--navy); margin: 0 0 14px; line-height: 1.35; }

.safety {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid #f3d98f; color: #5f4300; font-size: 14px;
}
.safety b { color: #3d2b00; }

/* ---------- listings ---------- */
.filters .card { padding: 18px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 16px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.search {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 44px; margin-bottom: 14px;
}
.search input { border: 0; outline: 0; flex: 1; height: 100%; background: transparent; min-width: 0; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 14px; padding: 16px 18px; position: relative; color: inherit; transition: border-color .15s, transform .15s; }
.item:hover { border-color: #c5cddd; text-decoration: none; }
.item.boosted { border-color: #f0cf7a; background: linear-gradient(90deg, #fffaf0, #fff 40%); }
.item.featured { border-color: var(--blue); }
.item-body { flex: 1; min-width: 0; }
.item h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 2px; }
.item:hover h3 { color: var(--blue); }
.item .sub { color: var(--ink-2); font-size: 14px; }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--ink-3); font-size: 13px; }
.item .right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.logo-tile {
  width: 52px; height: 52px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 19px; letter-spacing: -.02em;
}
.avatar { border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; }
.avatar.lg { width: 112px; height: 112px; font-size: 40px; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar.md { width: 56px; height: 56px; font-size: 21px; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.b-gold { background: var(--gold-soft); color: var(--gold-ink); }
.b-blue { background: var(--blue-soft); color: var(--blue-dark); }
.b-green { background: var(--green-soft); color: #0d7a4e; }
.b-gray { background: var(--bg); color: var(--ink-2); }
.b-red { background: var(--red-soft); color: #a52222; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 0 3px rgba(22, 163, 106, .18); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 6px; background: var(--bg); font-size: 13px; color: var(--ink-2); }

/* ---------- detail ---------- */
.profile-cover { height: 150px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(120deg, var(--navy), var(--blue) 70%, #6b8cff); position: relative; overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 18px 18px; }
.profile-head { padding: 0 24px 22px; }
.profile-head .avatar { margin-top: -56px; position: relative; z-index: 1; }
.profile-head h1 { font-size: 26px; margin-top: 12px; color: var(--navy); }
.profile-head .headline { font-size: 16.5px; margin: 4px 0 8px; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; color: #1f2937; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.side-title { font-size: 15px; margin-bottom: 12px; color: var(--navy); }
.bonus-card { background: linear-gradient(135deg, #fff8e6, #fff); border: 1px solid #f0cf7a; }
.bonus-card .amt { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.link-list a { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; overflow-wrap: anywhere; }
.link-list a:last-child { border-bottom: 0; }

/* ---------- feed ---------- */
.feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed-item:last-child { border-bottom: 0; }
.feed-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 16px; background: var(--bg); }
.feed-ico.hire { background: var(--green-soft); }
.feed-ico.tip { background: var(--gold-soft); }
.feed-ico.boost { background: #fde9df; }
.feed-ico.job, .feed-ico.profile { background: var(--blue-soft); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid #cfd5df; border-radius: 8px; padding: 10px 12px; background: #fff; outline: 0; font-size: 15px;
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; }
.link-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; margin-bottom: 8px; }

.gate { text-align: center; padding: 48px 24px; }
.gate .big { font-size: 46px; margin-bottom: 10px; }
.gate h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; color: var(--navy); margin-bottom: 8px; }
.gate p { color: var(--ink-2); max-width: 460px; margin: 0 auto 20px; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty .big { font-size: 38px; margin-bottom: 8px; }

/* ---------- modal + toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(13, 27, 62, .5); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; color: var(--navy); }
.modal-body { padding: 20px 22px 22px; }
.x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 4px; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; margin-bottom: 10px; }
.plan:hover { border-color: var(--gold); background: #fffcf3; }
.plan b { display: block; }
@keyframes fade { from { opacity: 0; } }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 480px; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; animation: fade .2s; }
.toast.err { background: #a52222; }
.toast.ok { background: #0d7a4e; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.loading { display: grid; place-items: center; padding: 60px; color: var(--ink-3); }
.loading .spinner { border-color: var(--line); border-top-color: var(--blue); width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--navy); }
.admin-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-row .grow { flex: 1; min-width: 200px; }
.admin-row .btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #aab4d4; margin-top: 70px; padding: 40px 0; font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .logo { color: #fff; }
.footer a { color: #dbe2ff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; }
  .hero-cards { display: none; }
  .utility { grid-template-columns: 1fr 1fr; }
  .grid-side, .grid-main { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .top-actions .hide-sm { display: none; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; font-size: 11px; color: var(--ink-2); gap: 2px; }
  .mobile-nav a svg { width: 22px; height: 22px; }
  .mobile-nav a.active { color: var(--navy); font-weight: 600; }
  .mobile-nav a:hover { text-decoration: none; }
  body { padding-bottom: 64px; }
  .utility, .split, .form .two { grid-template-columns: 1fr; }
  .item { flex-wrap: wrap; }
  .item .right { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; }
  .logo-tile { width: 44px; height: 44px; font-size: 16px; }
  .page-title h1 { font-size: 30px; }
  .section-head h2 { font-size: 30px; }
  .link-row { grid-template-columns: 1fr; }
  .wallet-chip .addr { display: none; }
  .wallet-chip { padding: 0 5px; }
}
