/* Brand: text only for now. */
.brand { display: flex; align-items: center; white-space: nowrap; }
.brand .wordmark { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: #fff; }

/* ---- liquid glass navbar (after the 21st.dev "Liquid Glass Navbar"): brand left, items centred,
   the active item is a water drop that stretches between items and snaps back ---- */
.nav { position: sticky; display: flex; align-items: center; gap: var(--s2); }
.nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; display: flex; gap: 2px; }
.nav-signin { margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13.5px; color: rgba(255,255,255,.62); border-radius: 999px; transition: color .2s; }
.nav-links a:hover, .nav-links a.on { color: #fff; background: none; }
.nv-ic { width: 15px; height: 15px; flex: none; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.nav-links a:hover .nv-ic { transform: translateY(-1px) scale(1.12) rotate(-6deg); }
.nav-links a.on .nv-ic { transform: scale(1.05); }

/* the drop */
.nav-pill { position: absolute; top: 50%; height: 36px; margin-top: -18px; left: 0; width: 0; border-radius: 999px; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(120% 140% at 30% 15%, rgba(255,255,255,.22), rgba(255,255,255,.05) 55%, rgba(140,160,255,.08));
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.42),
    inset 2px 3px 5px rgba(255,255,255,.32),
    inset -3px -4px 8px rgba(130,150,255,.28),
    0 6px 18px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(3px) saturate(1.6);
  backdrop-filter: url(#lg-refract) blur(2px) saturate(1.7) brightness(1.1);
  transition: left .5s cubic-bezier(.34,1.45,.64,1), width .5s cubic-bezier(.34,1.45,.64,1), height .5s, margin-top .5s, opacity .2s; }
/* stretching: thinner and longer, like a drop pulled between two points */
.nav-pill.stretch { height: 26px; margin-top: -13px; transition: left .17s cubic-bezier(.5,0,.75,0), width .17s cubic-bezier(.5,0,.75,0), height .17s, margin-top .17s; }
/* snapping onto the new item: overshoot, then settle with a ripple */
.nav-pill.snap { animation: drop-ripple .55s ease-out; }
@keyframes drop-ripple { 0% { transform: scale(1.12, .86); } 45% { transform: scale(.94, 1.08); } 100% { transform: none; } }

/* mid widths: icons only so everything stays centred and on one line */
@media (min-width: 941px) and (max-width: 1240px) {
  .nav-links a span { display: none; }
  .nav-links a { padding: 9px 11px; }
}
@media (max-width: 940px) {
  .nav-links { position: absolute; left: 0; right: 0; top: calc(100% + 8px); transform: none; }
  .nav-links a span { display: inline; }
  .nav-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-pill, .nav-pill.stretch { transition: none; animation: none; } .nv-ic { transition: none; } }

/* nav: frosted, not see-through, always on top */
.nav.glass { z-index: 100;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 55%, rgba(255,255,255,.035)), rgba(12,12,16,.78);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }

/* calmer drop: no overshoot, no ripple, barely any stretch */
.nav-pill { transition: left .38s cubic-bezier(.16,1,.3,1), width .38s cubic-bezier(.16,1,.3,1), opacity .2s; }
.nav-pill.stretch { height: 36px; margin-top: -18px; transition: left .14s ease-in, width .14s ease-in; }
.nav-pill.snap { animation: none; }
.nav-links a:hover .nv-ic { transform: translateY(-1px); }
.nv-ic { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.auth-brand-sm { display: none; }
@media (max-width: 960px) { .auth-brand-sm { display: flex; } }

/* logo mark */
.brand { gap: 9px; }
.brand-logo { width: 28px; height: 28px; flex: none; display: block; }

/* featured listing: one highlighted row per group */
.grp-row.featured { position: relative; border-radius: 14px;
  background: linear-gradient(100deg, rgba(124,92,255,.16), rgba(64,140,255,.08) 55%, rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(150,132,255,.38), 0 8px 30px -12px rgba(110,90,255,.45); }
.grp-row.featured .t { color: #fff; }
.feat-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: .02em; vertical-align: 2px; color: #fff; background: linear-gradient(90deg, #7c5cff, #3d8bff); }

/* admin: original listing next to each order */
.src-box { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.75); }
.src-box b { color: #fff; font-weight: 600; }
.src-line { margin: 4px 0; }
.src-line span { display: block; color: rgba(255,255,255,.5); font-size: 12px; }

/* inbox */
.inbox { display: grid; grid-template-columns: 1fr; gap: 16px; }
.inbox:has(.inbox-threads:not([hidden])) { grid-template-columns: minmax(220px, 300px) 1fr; }
.inbox-threads { max-height: 70vh; overflow: auto; }
.thread { width: 100%; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; }
.thread.on { background: rgba(255,255,255,.05); }
.unread, .nav-badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; font-size: 11px; line-height: 18px; text-align: center; color: #fff; background: #3d8bff; }
.inbox-main { display: flex; flex-direction: column; gap: 14px; min-height: 420px; }
.inbox-msgs { flex: 1; overflow: auto; max-height: 55vh; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.msg.mine { align-self: flex-end; background: rgba(61,139,255,.14); border-color: rgba(61,139,255,.3); }
.msg-meta { font-size: 11px; color: rgba(255,255,255,.45); margin-bottom: 4px; }
.msg-body { white-space: pre-wrap; word-break: break-word; }
.inbox-form textarea, .inline-form textarea { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: inherit; font: inherit; resize: vertical; }
.inbox-form .row-flex { margin-top: 10px; justify-content: space-between; }
@media (max-width: 760px) { .inbox:has(.inbox-threads:not([hidden])) { grid-template-columns: 1fr; } }

/* checkout */
.co { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 16px; align-items: start; }
.co-sum { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.co-line { display: flex; gap: 8px; align-items: center; }
.co-plat { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); }
.co-title { font-size: 19px; line-height: 1.3; }
.co-kv dd { text-align: right; }
.co-total { font-size: 22px; font-weight: 700; color: #fff; }
.co-hold b { color: #fff; font-variant-numeric: tabular-nums; }
.co-pay { display: flex; flex-direction: column; gap: 16px; }
.co-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); align-self: flex-start; }
.co-tab { padding: 8px 18px; border-radius: 9px; border: 0; background: none; color: rgba(255,255,255,.6); font: inherit; font-weight: 600; cursor: pointer; }
.co-tab.on { background: rgba(255,255,255,.1); color: #fff; }
.co-p { margin: 6px 0 14px; max-width: 560px; }
.co-list { margin: 0 0 18px; padding-left: 18px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.co-go { min-width: 220px; }
.co-coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.co-coin { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; text-align: left; cursor: pointer; font: inherit;
  color: #fff; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); transition: border-color .2s, background .2s; }
.co-coin span { font-size: 12px; color: rgba(255,255,255,.55); }
.co-coin:hover { border-color: rgba(255,255,255,.2); }
.co-coin.on { border-color: rgba(61,139,255,.7); background: rgba(61,139,255,.12); }
.co-coin:disabled { opacity: .5; cursor: wait; }
.co-crypto { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.co-qr img { width: 200px; height: 200px; border-radius: 12px; background: #fff; padding: 8px; image-rendering: pixelated; }
.co-send { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.co-send label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px; }
.co-copy { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }
.co-copy b { font-size: 18px; color: #fff; }
.co-copy code { font-size: 13px; word-break: break-all; color: #fff; }
.co-net { color: #fff; font-weight: 600; }
.co-wait { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #fff; }
.co-dot { width: 8px; height: 8px; border-radius: 50%; background: #3d8bff; box-shadow: 0 0 0 0 rgba(61,139,255,.6); animation: coPing 1.6s infinite; }
@keyframes coPing { 0% { box-shadow: 0 0 0 0 rgba(61,139,255,.55); } 100% { box-shadow: 0 0 0 10px rgba(61,139,255,0); } }
@media (prefers-reduced-motion: reduce) { .co-dot { animation: none; } }
.co-done { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 4px; }
.co-check { width: 44px; height: 44px; border-radius: 50%; background: rgba(52,199,89,.15); border: 1px solid rgba(52,199,89,.5); position: relative; }
.co-check::after { content: ''; position: absolute; left: 15px; top: 10px; width: 10px; height: 18px; border: solid #34c759; border-width: 0 3px 3px 0; transform: rotate(45deg); }
@media (max-width: 860px) { .co { grid-template-columns: 1fr; } .co-sum { position: static; } .co-crypto { grid-template-columns: 1fr; } }

/* signed-in links sit together on the right */
.nav-signin ~ .nav-signin { margin-left: 16px; }

/* nav: label sits above the glass pill so it never gets blurred */
.nav-links a { position: relative; z-index: 1; }

/* inner spacing for inbox + checkout cards (base .card has none) */
.inbox-main, .co-sum, .co-pay { padding: 24px 26px; }
.inbox { align-items: start; }
.inbox-threads { padding: 8px; }
.inbox-threads .empty { padding: 28px 16px; }
.inbox-threads .thread { padding: 12px 14px; border-radius: 12px; }
.inbox-main { min-height: 0; }
.inbox-head { padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.inbox-msgs { min-height: 220px; }
.inbox-msgs:empty::before { content: 'Messages show up here.'; color: rgba(255,255,255,.4); font-size: 14px; margin: auto; }
.co-done { padding: 8px 0; }
@media (max-width: 640px) { .inbox-main, .co-sum, .co-pay { padding: 18px; } }

@media (min-width: 941px) { .nav.tight .nav-links a span { display: none; } .nav.tight .nav-links a { padding: 8px 10px; } }
.co-kv { grid-template-columns: 1fr auto !important; align-items: baseline; }
.co-kv dt { margin: 0; }

.co-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.07); }
.co-brand img { width: 28px; height: 28px; border-radius: 8px; }
.co-brand span { font-weight: 700; color: #fff; letter-spacing: -.01em; }
.co-brand em { margin-left: auto; font-style: normal; font-size: 12px; color: rgba(255,255,255,.5); display: inline-flex; align-items: center; gap: 6px; }
.co-brand em::before { content: ''; width: 10px; height: 12px; border: 1.6px solid rgba(255,255,255,.5); border-radius: 2px; border-top-width: 5px; }
