/* New screens only: wallet, referrals, notifications, settings, terms, admin tools and calls. */
:root {
  --nx-accent: #E8590C;
  --nx-bg: #F7F4EF;
  --nx-card: #ffffff;
  --nx-text: #1C1C1C;
  --nx-muted: #6B6660;
  --nx-line: rgba(60, 60, 67, 0.14);
  --nx-green: #2F7D4F;
  --nx-red: #B3412B;
  --nx-amber: #b26a00;
  --nx-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.dark {
  --nx-bg: #000000;
  --nx-card: #1c1c1e;
  --nx-text: #f5f5f7;
  --nx-muted: #a1a1a6;
  --nx-line: rgba(235, 235, 245, 0.16);
  --nx-green: #66bb6a;
  --nx-red: #ef5350;
  --nx-amber: #ffb74d;
}

.nx-page, .nx-sheet, .nx-call, .nx-admin {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--nx-text);
}
.nx-page { max-width: 640px; margin: 0 auto; padding: 8px 0 48px; }
.nx-page h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 8px 4px 16px; line-height: 1.15; }
.nx-section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; color: var(--nx-muted); margin: 24px 16px 8px; }
.nx-card { background: var(--nx-card); border-radius: 18px; box-shadow: var(--nx-shadow); padding: 16px; margin-bottom: 12px; }
.nx-hero { text-align: left; }
.nx-hero .nx-label { font-size: 15px; color: var(--nx-muted); }
.nx-hero .nx-amount { font-size: 42px; font-weight: 700; letter-spacing: -1px; margin: 2px 0 12px; }
.nx-balances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.nx-balances div { background: var(--nx-bg); border-radius: 14px; padding: 10px; min-width: 0; }
.nx-balances span { display: block; font-size: 13px; color: var(--nx-muted); }
.nx-balances strong { font-size: 18px; }

.nx-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--nx-accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.nx-btn:active { transform: scale(0.97); }
.nx-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.nx-btn.nx-quiet { background: var(--nx-bg); color: var(--nx-accent); }
.nx-btn.nx-danger { background: transparent; color: var(--nx-red); box-shadow: inset 0 0 0 1px var(--nx-line); }
.nx-btn.nx-small { width: auto; min-height: 44px; display: inline-flex; font-size: 15px; }
.nx-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.nx-list { background: var(--nx-card); border-radius: 18px; box-shadow: var(--nx-shadow); overflow: hidden; }
.nx-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-height: 44px; border-bottom: 1px solid var(--nx-line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: inherit; font: inherit; }
.nx-item:last-child { border-bottom: 0; }
button.nx-item { cursor: pointer; }
.nx-item-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nx-item-title { font-weight: 600; }
.nx-item-sub { font-size: 14px; color: var(--nx-muted); margin-top: 2px; }
.nx-item-end { font-weight: 600; white-space: nowrap; }
.nx-plus { color: var(--nx-green); }
.nx-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--nx-accent); flex: none; }
.nx-dot.nx-read { background: transparent; }

.nx-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--nx-bg); color: var(--nx-muted); }
.nx-pill.good { color: var(--nx-green); }
.nx-pill.warn { color: var(--nx-amber); }
.nx-pill.bad { color: var(--nx-red); }

.nx-empty { text-align: center; padding: 36px 20px; color: var(--nx-muted); }
.nx-empty i { display: block; font-size: 34px; margin-bottom: 10px; color: var(--nx-accent); }
.nx-skeleton { height: 64px; border-radius: 14px; background: linear-gradient(90deg, var(--nx-bg), var(--nx-line), var(--nx-bg)); background-size: 200% 100%; animation: nx-shimmer 1.2s infinite; margin-bottom: 8px; }
@keyframes nx-shimmer { to { background-position: -200% 0; } }

.nx-field { display: block; margin-bottom: 14px; }
.nx-field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.nx-field input, .nx-field select, .nx-field textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-bg); color: var(--nx-text); font: inherit; font-size: 16px; box-sizing: border-box; }
.nx-field small { display: block; color: var(--nx-muted); margin-top: 4px; font-size: 13px; }
.nx-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; min-height: 44px; }
.nx-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--nx-accent); }

.nx-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 44px; border-bottom: 1px solid var(--nx-line); }
.nx-toggle-row:last-child { border-bottom: 0; }
.nx-toggle { position: relative; width: 51px; height: 31px; flex: none; }
.nx-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.nx-toggle i { position: absolute; inset: 0; border-radius: 999px; background: var(--nx-line); transition: background 0.2s; }
.nx-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.25); transition: transform 0.2s; }
.nx-toggle input:checked + i { background: var(--nx-green); }
.nx-toggle input:checked + i::after { transform: translateX(20px); }
.nx-toggle input:disabled + i { opacity: 0.5; }

.nx-segments { display: flex; gap: 2px; padding: 3px; margin-bottom: 16px; border-radius: 12px; background: var(--nx-line); overflow-x: auto; }
.nx-segments button { flex: 1 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--nx-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.nx-segments button.active { background: var(--nx-card); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

.nx-backdrop { position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.25s; }
.nx-backdrop.open { opacity: 1; }
.nx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001; max-width: 560px; max-height: 88vh; margin: 0 auto; overflow-y: auto; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; border-radius: 20px 20px 0 0; background: var(--nx-card); transform: translateY(100%); transition: transform 0.28s ease; }
.nx-sheet.open { transform: translateY(0); }
.nx-grabber { width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: var(--nx-line); }
.nx-sheet h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.nx-sheet p { line-height: 1.45; }
.nx-error { color: var(--nx-red); font-size: 14px; margin-bottom: 10px; }

.nx-bell { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 1.2rem; cursor: pointer; }
.nx-bell span { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--nx-red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

.nx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.nx-stat { background: var(--nx-card); border-radius: 16px; box-shadow: var(--nx-shadow); padding: 14px; }
.nx-stat span { display: block; font-size: 13px; color: var(--nx-muted); }
.nx-stat strong { font-size: 22px; }
.nx-admin { margin-top: 24px; }
.nx-admin h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.nx-code { font-size: 28px; font-weight: 700; letter-spacing: 3px; text-align: center; padding: 10px 0; overflow-wrap: anywhere; }
.nx-terms h2 { font-size: 18px; margin: 20px 0 6px; }
.nx-terms p, .nx-terms li { line-height: 1.5; margin-bottom: 8px; }
.nx-terms ul { padding-left: 20px; }

.nx-call-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--nx-bg); color: var(--nx-accent); font-size: 16px; cursor: pointer; }
.nx-call { position: fixed; inset: 0; z-index: 9500; display: flex; flex-direction: column; background: #101418; color: #fff; }
.nx-call video.nx-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #101418; }
.nx-call video.nx-local { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; width: 104px; height: 150px; object-fit: cover; border-radius: 16px; background: #222; z-index: 2; transform: scaleX(-1); }
.nx-call-info { position: relative; z-index: 2; text-align: center; padding: calc(64px + env(safe-area-inset-top)) 20px 16px; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.nx-call-info h2 { font-size: 30px; font-weight: 700; margin: 0 0 6px; }
.nx-call-info p { font-size: 17px; opacity: 0.85; margin: 0; }
.nx-call-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: auto; padding: 20px 20px calc(30px + env(safe-area-inset-bottom)); }
.nx-round { width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.2); color: #fff; font-size: 20px; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.2s; }
.nx-round:active { transform: scale(0.94); }
.nx-round.on { background: #fff; color: #101418; }
.nx-round.end { background: #B3412B; }
.nx-round.accept { background: #2F7D4F; }

@media (prefers-reduced-motion: reduce) {
  .nx-sheet, .nx-backdrop, .nx-btn, .nx-round, .nx-toggle i, .nx-toggle i::after { transition: none; }
  .nx-skeleton { animation: none; }
}

/* Marketplace screens, using the site's existing colours and components. */
.mk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mk-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #fff; }
.mk-sell { background: #B3412B; }
.mk-hire { background: #2F7D4F; }
.mk-buy { background: #1C1C1C; }
.mk-off { background: #5f6b7a; }
.mk-note { background: var(--orange); }
.mk-card { cursor: pointer; }
.mk-card .product-body h4 { margin-bottom: 4px; }
.mk-unavailable .product-img, .mk-unavailable .mk-my-image { opacity: 0.55; filter: grayscale(0.6); }
.mk-noimage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; color: var(--text-muted); font-size: 2.2rem; background: var(--bg); }
.mk-empty { padding: 56px 20px; text-align: center; color: var(--text-muted); font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.mk-loading { padding: 48px 20px; text-align: center; color: var(--text-muted); }
.mk-page { max-width: 1100px; margin: 0 auto; }
.mk-link { background: none; border: 0; color: var(--orange); font: inherit; font-weight: 600; cursor: pointer; padding: 10px 0; min-height: 44px; }
.mk-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-bottom: 20px; }
.mk-title { font-size: 1.8rem; font-weight: 700; line-height: 1.2; margin: 4px 0 8px; overflow-wrap: anywhere; }
.mk-price { font-size: 1.6rem; margin-bottom: 8px; }
.mk-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.mk-gallery img, .mk-gallery video { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; cursor: zoom-in; background: var(--bg); }
.mk-gallery-main { border-radius: 16px; overflow: hidden; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.mk-actions .btn { min-height: 44px; justify-content: center; }
.mk-seller { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; min-height: 44px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mk-seller img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.mk-seller span { flex: 1; min-width: 0; }
.mk-seller small { display: block; color: var(--text-muted); }
.mk-section { margin-bottom: 20px; padding: 20px; }
.mk-section h3 { font-weight: 600; margin-bottom: 10px; }
.mk-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mk-section-head h3 { margin: 0; }
.mk-description { white-space: pre-line; line-height: 1.55; overflow-wrap: anywhere; }
.mk-stars { color: #E8590C; margin: 6px 0; }
.mk-stars span { color: var(--text-muted); font-size: 0.9rem; }
.mk-review { padding: 12px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.mk-review .mk-stars { margin: 0 0 2px; }
.mk-review p { margin-top: 4px; }
.mk-map { height: 300px; border-radius: 16px; overflow: hidden; background: var(--bg); margin-bottom: 8px; }
.mk-map-search { display: flex; gap: 8px; margin-bottom: 10px; }
.mk-map-search input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg); color: var(--input-text); font-size: 16px; }
.mk-owner { padding: 16px; margin: 14px 0; }
.mk-owner label, .mk-my label { display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 600; }
.mk-owner select, .mk-my select, #page-wanted select, #page-hire select, #mkHomeFilters select { min-height: 44px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--input-bg); color: var(--input-text); font: inherit; max-width: 100%; }
.mk-owner select, .mk-my select { display: block; width: 100%; margin-top: 4px; }
.mk-my { padding: 16px; }
.mk-my h4 { font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.mk-my-image { height: 150px; border-radius: 12px; overflow: hidden; margin-bottom: 10px; cursor: pointer; }
.mk-my-image img { width: 100%; height: 100%; object-fit: cover; }
.mk-profile { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.mk-profile > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.mk-profile > div { flex: 1; min-width: 200px; overflow-wrap: anywhere; }
.mk-profile p { margin: 8px 0; }
.mk-help { padding: 24px; max-width: 760px; margin: 0 auto; }
.mk-help h3 { font-weight: 600; margin: 14px 0 8px; }
.mk-help details { padding: 12px 0; border-top: 1px solid var(--border); }
.mk-help summary { font-weight: 600; cursor: pointer; min-height: 24px; }
.mk-help details p { margin-top: 8px; }
.mk-help a:not(.btn) { color: var(--orange); font-weight: 600; }
.mk-help-button { position: fixed; right: 30px; bottom: 160px; z-index: 999; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 60px; background: var(--card); color: var(--orange); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 1.1rem; }
.dark-toggle { right: 30px; }
.mk-chat-popup { position: fixed; right: 100px; bottom: 24px; z-index: 1000; display: flex; gap: 12px; align-items: center; width: 320px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); color: inherit; font: inherit; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,0.18); cursor: pointer; }
.mk-chat-popup i { color: var(--orange); font-size: 1.4rem; }
.mk-chat-popup span { min-width: 0; }
.mk-chat-popup small { display: block; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
@media (max-width: 768px) {
  .mk-layout { grid-template-columns: minmax(0, 1fr); }
  .mk-title { font-size: 1.5rem; }
  .mk-actions .btn { flex: 1 1 calc(50% - 8px); }
  #cityFilter { max-width: 130px; }
}
/* ---------- Invite friends ---------- */
#page-referrals .nx-page { max-width: 1040px; }
.nx-ref-hero { position: relative; overflow: hidden; margin: 8px 0 24px; padding: 56px 40px; border-radius: 14px; background: radial-gradient(ellipse 60% 90% at 88% 10%, rgba(232, 89, 12, 0.3), rgba(232, 89, 12, 0) 70%), #1C1C1C; color: #F7F4EF; }
.nx-ref-art { position: absolute; right: 24px; bottom: -8px; width: min(420px, 60%); color: #F7F4EF; opacity: 0.09; pointer-events: none; }
.nx-ref-hero > * { position: relative; }
.nx-ref-hero .nx-ref-art { position: absolute; }
.nx-ref-hero .nx-eyebrow { color: #F0702A; }
.nx-page .nx-ref-hero h1 { max-width: 720px; margin: 12px 0; font-family: var(--nx-display); font-weight: 600; font-size: clamp(36px, 5vw, 60px); letter-spacing: 0; line-height: 1.08; color: #F7F4EF; }
.nx-ref-hero h1 span { color: #F0702A; }
.nx-ref-hero p { max-width: 560px; margin: 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.5; color: rgba(247, 244, 239, 0.88); }
.nx-ref-card { padding: 24px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); }
.nx-ref-grid { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 16px; margin-bottom: 16px; }
.nx-ref-label { display: block; margin: 16px 0 8px; font-size: 13px; font-weight: 600; color: var(--nx-muted); }
.nx-ref-card > .nx-ref-label:first-child { margin-top: 0; }
.nx-ref-linkrow { display: flex; gap: 8px; }
.nx-ref-link { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-offwhite); color: var(--nx-ink); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.nx-ref-link:focus { outline: none; border-color: var(--nx-orange); box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.2); }
.nx-ref-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 1px solid #C94D0A; border-radius: 999px; background: #C94D0A; color: #FFFFFF; font-family: var(--nx-ui); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 200ms, border-color 200ms, color 200ms; }
.nx-ref-btn:hover { border-color: #B34408; background: #B34408; }
.nx-ref-copied, .nx-ref-copied:hover { border-color: #2F7D4F; background: #2F7D4F; }
.nx-ref-quiet { min-height: 44px; padding: 0 16px; border-color: var(--nx-line); background: transparent; color: var(--nx-ink); font-size: 14px; }
.nx-ref-quiet:hover { border-color: var(--nx-orange); background: transparent; color: var(--nx-orange); }
.nx-ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: 0.1em; overflow-wrap: anywhere; color: var(--nx-ink); }
.nx-ref-shares { display: flex; flex-wrap: wrap; gap: 8px; }
.nx-ref-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; height: 48px; border: 1px solid var(--nx-line); border-radius: 999px; background: transparent; color: var(--nx-ink); font-size: 18px; text-decoration: none; cursor: pointer; transition: border-color 200ms, color 200ms, background-color 200ms; }
.nx-ref-share:hover { border-color: var(--nx-orange); color: var(--nx-orange); }
.nx-ref-whatsapp, .nx-ref-whatsapp:hover { flex: 1 1 180px; padding: 0 24px; border-color: #1F7A4A; background: #1F7A4A; color: #FFFFFF; font-size: 15px; font-weight: 600; }
.nx-ref-whatsapp:hover { border-color: #19633C; background: #19633C; color: #FFFFFF; }
.nx-ref-btn:focus-visible, .nx-ref-share:focus-visible, .nx-ref-faq summary:focus-visible, .nx-ref-terms a:focus-visible { outline: 2px solid var(--nx-orange); outline-offset: 2px; }
.nx-ref-qr { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nx-ref-qr[hidden] { display: none; }
.nx-ref-qr canvas { display: block; width: 100%; max-width: 200px; height: auto; border-radius: 10px; }
.nx-ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.nx-ref-stats > div { padding: 20px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); }
.nx-ref-stats span { display: block; margin-bottom: 8px; font-size: 13px; color: var(--nx-muted); }
.nx-ref-stats strong { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--nx-ink); }
.nx-ref-total strong { color: var(--nx-orange); }
.nx-page .nx-ref-title { margin: 40px 0 16px; font-family: var(--nx-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--nx-ink); }
.nx-ref-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.nx-ref-steps::before { content: ''; position: absolute; left: 16.66%; right: 16.66%; top: 20px; height: 1px; background: var(--nx-line); }
.nx-ref-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; text-align: center; color: var(--nx-ink); }
.nx-ref-step { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #C94D0A; color: #FFFFFF; font-weight: 700; }
.nx-ref-none { text-align: center; }
.nx-ref-none p { margin: 0 0 16px; color: var(--nx-ink); }
.nx-ref-table { width: 100%; overflow: hidden; border: 1px solid var(--nx-line); border-radius: 14px; border-collapse: separate; border-spacing: 0; background: var(--nx-surface); }
.nx-ref-table th { padding: 12px 16px; font-size: 13px; font-weight: 600; text-align: left; color: var(--nx-muted); }
.nx-ref-table td { padding: 16px; border-top: 1px solid var(--nx-line); font-size: 15px; color: var(--nx-ink); overflow-wrap: anywhere; }
.nx-ref-money { font-variant-numeric: tabular-nums; }
.nx-ref-status { display: inline-block; padding: 4px 12px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nx-ref-joined { background: var(--nx-sand); color: var(--nx-ink); }
.nx-ref-pending { border-color: #C94D0A; color: #C94D0A; }
.dark .nx-ref-pending { border-color: #F0702A; color: #F0702A; }
.nx-ref-earned { background: #2F7D4F; color: #FFFFFF; }
.nx-ref-reversed { border-color: var(--nx-line); color: var(--nx-muted); }
.nx-ref-faq { overflow: hidden; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); }
.nx-ref-faq details + details { border-top: 1px solid var(--nx-line); }
.nx-ref-faq summary { padding: 16px 24px; font-weight: 600; color: var(--nx-ink); cursor: pointer; }
.nx-ref-faq p { margin: 0; padding: 0 24px 16px; line-height: 1.55; color: var(--nx-muted); }
.nx-ref-terms { margin: 16px 0 0; }
.nx-ref-terms a { color: var(--nx-orange); font-weight: 600; }
@media (max-width: 768px) {
  .nx-ref-hero { padding: 32px 24px; }
  .nx-ref-grid { grid-template-columns: minmax(0, 1fr); }
  .nx-ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nx-ref-stats strong { font-size: 26px; }
  .nx-ref-linkrow { flex-direction: column; }
  .nx-ref-card { padding: 16px; }
  .nx-ref-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nx-ref-steps::before { left: 20px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; }
  .nx-ref-steps li { flex-direction: row; text-align: left; }
  .nx-ref-step { flex: none; }
  .nx-ref-table, .nx-ref-table tbody, .nx-ref-table tr, .nx-ref-table td { display: block; }
  .nx-ref-table { border: 0; background: transparent; }
  .nx-ref-table thead { display: none; }
  .nx-ref-table tr { margin-bottom: 8px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); }
  .nx-ref-table td { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 0; }
  .nx-ref-table td::before { content: attr(data-label); font-size: 13px; color: var(--nx-muted); }
}

.nx-handoff { align-items: flex-start; gap: 12px; }
.nx-handoff-question { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nx-handoff select { flex: none; min-height: 40px; padding: 0 8px; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--input-bg); color: var(--nx-ink); }

/* ---------- Chat ---------- */
.nx-card-message { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--nx-line); border-radius: 999px; background: transparent; color: var(--nx-ink); font-family: var(--nx-ui); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 200ms, color 200ms; }
.nx-card-message:hover, .nx-card-message:focus-visible { border-color: var(--nx-orange); color: var(--nx-orange); outline: none; }
.nx-card-buttons { display: flex; flex-wrap: wrap; gap: 0 8px; }
.nx-card-cart { border-color: var(--nx-orange); color: var(--nx-orange); }
.nx-card-cart:hover, .nx-card-cart:focus-visible { background: var(--nx-orange); color: #FFFFFF; }
.nx-cart-thumb { width: 80px; height: 80px; flex-shrink: 0; overflow: hidden; border-radius: 12px; background: var(--nx-line); }
.nx-cart-thumb img, .nx-cart-thumb video, .nx-cart-thumb .mk-noimage { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cart-page-item .remove-btn { border: 0; background: transparent; min-width: 40px; min-height: 40px; }
.nx-cart-gone .nx-cart-thumb { opacity: 0.55; filter: grayscale(0.6); }
.cart-page-item.nx-cart-gone .price { text-decoration: line-through; color: var(--nx-muted); }
/* The floating chat, help and theme buttons sit on the right edge; keep the total clear of them. */
#page-cart .cart-total { padding-right: 72px; }
/* Phone: picture and name on top, price and remove on the line below, and room under the cart for the floating buttons. */
@media (max-width: 600px) {
  #page-cart { padding-bottom: 120px; }
  #page-cart #cartPageContent { padding: 16px !important; }
  #page-cart .cart-page-item { flex-wrap: wrap; gap: 8px 12px; }
  #page-cart .nx-cart-thumb { width: 64px; height: 64px; }
  #page-cart .cart-page-item .info { min-width: 0; flex: 1 1 calc(100% - 76px); }
  #page-cart .cart-page-item .price { margin-left: 76px; flex: 1; }
  #page-cart .cart-total { padding-right: 0; justify-content: flex-start; }
}
.nx-inbox-search { position: relative; margin: 8px 12px; }
.nx-inbox-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--nx-muted); font-size: 13px; }
.nx-inbox-search input { width: 100%; min-height: 40px; padding: 0 12px 0 34px; box-sizing: border-box; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--input-bg); color: var(--nx-ink); font-size: 16px; }
.nx-inbox-search input:focus { outline: none; border-color: var(--nx-orange); }
.nx-inbox-empty { padding: 32px 16px; text-align: center; color: var(--nx-muted); }
.nx-inbox-empty i { display: block; margin-bottom: 8px; font-size: 28px; }
.chat-user-item .info { flex: 1; min-width: 0; }
.nx-inbox-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nx-inbox-top .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-inbox-time { flex: none; font-size: 12px; color: var(--nx-muted); }
.nx-inbox-listing { overflow: hidden; font-size: 12px; font-weight: 600; color: var(--nx-orange); text-overflow: ellipsis; white-space: nowrap; }
.chat-user-item .last-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-chat-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--nx-ink); cursor: pointer; transition: background-color 200ms; }
.nx-chat-icon:hover { background: var(--hover-bg); }
.nx-chat-icon:focus-visible { outline: 2px solid var(--nx-orange); outline-offset: 1px; }
.nx-chat-icon:disabled { opacity: 0.5; cursor: default; }
#nxChatBack { display: none; }
#page-contact:not(.nx-in-thread) .nx-chat-more { display: none; }
.nx-chat-more { position: relative; display: inline-block; }
.nx-chat-menu { position: absolute; right: 0; top: 44px; z-index: 5; display: flex; flex-direction: column; min-width: 200px; overflow: hidden; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-surface); box-shadow: 0 10px 28px rgba(28, 28, 28, 0.18); }
.nx-chat-menu[hidden] { display: none; }
.nx-chat-menu button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; color: var(--nx-ink); font-family: var(--nx-ui); font-size: 14px; text-align: left; cursor: pointer; }
.nx-chat-menu button:hover { background: var(--hover-bg); }
.nx-typing { color: var(--nx-field-green) !important; font-style: italic; }
.nx-thread-listing { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--nx-line); background: var(--nx-sand); color: var(--nx-ink); text-decoration: none; }
.nx-thread-listing[hidden], .nx-thread-blocked[hidden] { display: none; }
.nx-thread-listing img, .nx-thread-noimage { flex: none; width: 48px; height: 36px; border-radius: 6px; object-fit: cover; background: var(--nx-line); }
.nx-thread-listing > span:not(.nx-thread-noimage) { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 13px; }
.nx-thread-listing strong { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nx-thread-price { font-weight: 700; color: var(--nx-orange); font-variant-numeric: tabular-nums; }
.dark .nx-thread-price, body.dark .nx-thread-price { color: #F0702A; }
.nx-thread-blocked { margin: 0; padding: 8px 16px; background: var(--nx-sand); color: var(--nx-ink); font-size: 13px; text-align: center; }
.nx-tick { margin-left: 4px; font-size: 10px; opacity: 0.75; }
.nx-tick-read { color: #7CE0A3; opacity: 1; }
.message.received .nx-tick { display: none; }
.nx-chat-photo { display: block; margin-bottom: 4px; }
.nx-chat-photo img { display: block; max-width: 240px; width: 100%; border-radius: 10px; }
.nx-call-event { align-self: center; margin: 8px auto; padding: 4px 14px; border-radius: 999px; background: var(--nx-sand); color: var(--nx-ink); font-size: 13px; text-align: center; }
.nx-call-event .time { margin-left: 8px; color: var(--nx-muted); font-size: 11px; }
.chat-input { align-items: center; }
.nx-chat-disabled { opacity: 0.55; pointer-events: none; }
@media (max-width: 768px) {
  #nxChatBack { display: inline-flex; }
  #page-contact .chat-box { display: none; }
  #page-contact.nx-in-thread .chat-box { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
  #page-contact.nx-in-thread .chat-messages { flex: 1; height: auto; min-height: 0; }
  #page-contact .chat-users { width: 100%; }
  .chat-header .actions > button[onclick="endChat()"] { display: none; }
}
/* ---------- Call screen additions ---------- */
.nx-call-avatar { display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin: 0 auto 12px; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #FFFFFF; font-size: 36px; }
.nx-call-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nx-call-video.nx-call-live .nx-call-avatar { display: none; }
.nx-call-about { margin: 4px 0; font-size: 14px; opacity: 0.85; }
.nx-call-timer { margin: 4px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; opacity: 0.9; }
.nx-call-text { min-height: 48px; padding: 0 24px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 999px; background: transparent; color: #FFFFFF; font-family: var(--nx-ui); font-size: 15px; font-weight: 600; cursor: pointer; }
.nx-call-primary { border-color: #C94D0A; background: #C94D0A; }

/* ---------- Support chat in the admin dashboard ---------- */
.nx-support { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.nx-support-list { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.nx-support-row { width: 100%; text-align: left; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--nx-surface); cursor: pointer; }
.nx-support-active { border-color: var(--nx-orange); }
.nx-support-unread { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #C94D0A; color: #FFFFFF; font-size: 12px; text-align: center; }
.nx-support-thread { display: flex; flex-direction: column; min-height: 360px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-surface); overflow: hidden; }
.nx-support-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--nx-line); }
.nx-support-head select { min-height: 40px; padding: 0 8px; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--input-bg); color: var(--nx-ink); }
.nx-support-messages { display: flex; flex: 1; flex-direction: column; gap: 8px; max-height: 50vh; min-height: 200px; padding: 16px; overflow-y: auto; }
.nx-support-message { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nx-support-message span { display: block; margin-top: 4px; font-size: 11px; opacity: 0.8; }
.nx-support-person { align-self: flex-start; background: var(--nx-sand); color: var(--nx-ink); }
.nx-support-team { align-self: flex-end; background: #C94D0A; color: #FFFFFF; }
.nx-support-reply { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--nx-line); }
.nx-support-reply textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--nx-line); border-radius: 10px; background: var(--input-bg); color: var(--nx-ink); font-family: var(--nx-ui); font-size: 16px; resize: vertical; }
.nx-support-reply .nx-btn { width: auto; flex: none; }
@media (max-width: 768px) { .nx-support { grid-template-columns: minmax(0, 1fr); } .nx-support-list { max-height: 240px; } }

/* Plan ending or ended, and dispute links */
.nx-plan-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 16px; padding: 12px 16px; border-radius: 14px; background: #fff4e5; border: 1px solid #f3c98b; color: #6b3d00; font-weight: 600; }
.nx-plan-banner > i { font-size: 1.1rem; }
.nx-plan-banner > span { flex: 1 1 220px; }
.nx-plan-close { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; padding: 0 4px; }
body.dark .nx-plan-banner { background: #3a2a12; border-color: #7a5520; color: #ffd9a3; }
.nx-dispute-link { margin-top: 12px; font-size: 0.85rem; opacity: 0.8; display: inline-flex; gap: 6px; align-items: center; }
.nx-dispute-payment { text-align: center; margin: 18px 0 0; }

/* Google page translation: keep its bar and pop-ups out of the way. The language button stays the only control. */
iframe.goog-te-banner-frame, .goog-te-banner-frame, body > .skiptranslate, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }
font[style] { background: none !important; box-shadow: none !important; }
#nxTranslateEl { display: none; }

/* Messages on phones: full width below the header, so they never cover the header's buttons. */
@media (max-width: 600px) {
  .toast-container { left: 12px; right: 12px; width: auto; max-width: none; }
}

/* A seller's listing taken down by Nexcha */
.mk-mod-note { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #fbe8e5; color: #8f2a20; font-size: 0.85rem; }
.mk-mod-note strong { font-size: 0.9rem; }
body.dark .mk-mod-note { background: rgba(229, 87, 74, 0.17); color: #ffb3aa; }

/* Paying online through Pesepay */
.nx-pay-online { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 18px; padding: 16px; border-radius: 16px; border: 1px solid rgba(47, 125, 79, 0.35); background: linear-gradient(135deg, rgba(47, 125, 79, 0.10), rgba(232, 89, 12, 0.06)); }
.nx-pay-online > div:first-child { flex: 1 1 260px; }
.nx-pay-online strong { color: #26653f; }
.nx-pay-online p { margin: 4px 0 0; font-size: 0.88rem; opacity: 0.85; }
.nx-pay-online .btn { flex-shrink: 0; }
.nx-pay-or { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; font-size: 0.8rem; opacity: 0.7; }
.nx-pay-or::before, .nx-pay-or::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.25; }
.nx-pay-banner.nx-pay-ok { background: #e5f2ea; border-color: #9ccbb0; color: #1f5a37; }
.nx-pay-banner.nx-pay-bad { background: #fbe8e5; border-color: #f0b7ae; color: #8f2a20; }
body.dark .nx-pay-online strong { color: #7fd1a1; }
body.dark .nx-pay-banner.nx-pay-ok { background: rgba(62, 157, 101, 0.18); color: #a6e3bf; }
body.dark .nx-pay-banner.nx-pay-bad { background: rgba(229, 87, 74, 0.17); color: #ffb3aa; }

/* Notification settings: this device's push state and the help list. */
.nx-push-device .nx-row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nx-push-help { margin-top: 12px; font-size: 0.9rem; }
.nx-push-help summary { cursor: pointer; font-weight: 600; }
.nx-push-help ul { margin: 8px 0 0; padding-left: 18px; }
.nx-push-help li { margin: 6px 0; line-height: 1.45; }

/* "Show more" under a listings grid. */
.mk-more { display: flex; justify-content: center; padding: 8px 0 4px; }
.mk-more .btn { min-width: 220px; }
