/* ============================================================
   NXRENT Marketplace — market.css
   Aesthetic: editorial black. Sparse. Premium. Salon-industry.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --ink:      #0a0a0a;
  --ink2:     #111111;
  --ink3:     #1a1a1a;
  --line:     rgba(255,255,255,0.08);
  --line2:    rgba(255,255,255,0.13);
  --white:    #ffffff;
  --off:      #e8e8e8;
  --muted:    #888888;
  --muted2:   #555555;
  --accent:   #ffffff;
  --green:    #22d98a;
  --amber:    #f5a623;
  --red:      #ef4444;
  --radius:   10px;
  --radius-lg:16px;
  --font:     'DM Sans', system-ui, -apple-system, sans-serif;
  --serif:    'DM Serif Display', Georgia, serif;
}

/* ── Reset ── */
.nxm-wrap *, .nxm-dash * { box-sizing: border-box; }
.nxm-wrap { font-family: var(--font); color: var(--off); }

/* ── Shared buttons ── */
.nxm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px;
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--off);
  white-space: nowrap;
}
.nxm-btn:hover  { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); }
.nxm-btn-primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.nxm-btn-primary:hover { background: var(--off); color: var(--ink); border-color: var(--off); }
.nxm-btn-full { width: 100%; justify-content: center; padding: 14px 22px; font-size: 14px; }

/* ── Shared fields ── */
.nxm-field { margin-bottom: 16px; }
.nxm-label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.nxm-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted2); }
.nxm-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--ink3);
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.nxm-input::placeholder { color: var(--muted2); }
.nxm-input:focus { border-color: rgba(255,255,255,0.35); }
.nxm-form { max-width: 100%; }
.nxm-msg { margin-top: 12px; font-size: 13px; color: var(--red); min-height: 20px; }
.nxm-msg.is-ok { color: var(--green); }
.nxm-muted { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* ══════════════════════════════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════════════════════════════ */
.nxm-pricing-hero {
  text-align: center;
  padding: 72px 20px 56px;
  max-width: 680px;
  margin: 0 auto;
}
.nxm-pricing-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.nxm-pricing-h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.nxm-pricing-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Plans grid */
.nxm-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto 48px;
}
.nxm-plan {
  position: relative;
  background: var(--ink2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--line);
}
.nxm-plan:last-child { border-right: none; }
.nxm-plan.is-featured { background: var(--ink3); }

.nxm-ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line2);
  border-radius: 99px;
  color: var(--white);
}

.nxm-plan-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.nxm-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.nxm-price-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}
.nxm-price-unit {
  font-size: 13px;
  color: var(--muted);
}
.nxm-plan-tag {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.nxm-plan .nxm-btn { margin-bottom: 28px; }
.nxm-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nxm-bullets li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}
.nxm-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--muted2);
  font-size: 11px;
}

.nxm-pricing-footer {
  text-align: center;
  padding: 0 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nxm-pricing-note {
  font-size: 13px;
  color: var(--muted2);
}
.nxm-pricing-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ══════════════════════════════════════════════════════════════
   SIGNUP PAGE
   ══════════════════════════════════════════════════════════════ */
.nxm-signup-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 20px;
  align-items: start;
}
@media (max-width: 700px) {
  .nxm-signup-layout { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px; }
}
.nxm-signup-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.nxm-signup-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}
.nxm-signup-checks {
  list-style: none;
  padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.nxm-signup-checks li {
  font-size: 14px; color: var(--muted); padding-left: 20px; position: relative;
}
.nxm-signup-checks li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-weight: 800; font-size: 12px;
}
.nxm-signup-ref-note {
  font-size: 12.5px; color: var(--muted2); line-height: 1.6;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.nxm-signup-right {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* Plan picker */
.nxm-plan-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nxm-plan-pick {
  position: relative;
  padding: 14px 12px;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: center;
}
.nxm-plan-pick:hover { border-color: rgba(255,255,255,0.2); }
.nxm-plan-pick.is-selected {
  border-color: var(--white);
  background: rgba(255,255,255,0.04);
}
.nxm-pick-name { font-size: 12px; font-weight: 700; color: var(--off); }
.nxm-pick-price { font-size: 11px; color: var(--muted); margin-top: 3px; }
.nxm-pick-ribbon {
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  margin-top: 5px;
}

/* ══════════════════════════════════════════════════════════════
   THANK YOU
   ══════════════════════════════════════════════════════════════ */
.nxm-thankyou {
  max-width: 500px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}
.nxm-ty-mark {
  width: 60px; height: 60px;
  background: rgba(34,217,138,0.1);
  border: 1px solid rgba(34,217,138,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 24px;
  color: var(--green);
}
.nxm-ty-h1 {
  font-family: var(--serif);
  font-size: 48px; font-weight: 400;
  color: var(--white); margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.nxm-ty-sub {
  font-size: 15px; color: var(--muted); line-height: 1.65;
  margin: 0 0 32px;
}

/* ══════════════════════════════════════════════════════════════
   OWNER DASHBOARD
   ══════════════════════════════════════════════════════════════ */
.nxm-dash { padding: 0 0 80px; }

.nxm-dash-auth {
  max-width: 440px; margin: 80px auto; padding: 0 20px;
  text-align: center;
}
.nxm-dash-auth-logo {
  font-family: var(--serif); font-size: 28px;
  color: var(--white); margin-bottom: 24px; letter-spacing: -0.02em;
}
.nxm-dash-auth h2 { font-size: 20px; color: var(--white); margin: 0 0 12px; font-weight: 700; }
.nxm-dash-auth p  { font-size: 14px; color: var(--muted); margin: 0 0 28px; line-height: 1.6; }

/* Dash header */
.nxm-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.nxm-dash-biz {
  font-size: 22px; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
}
.nxm-dash-meta {
  font-size: 13px; color: var(--muted); margin-top: 4px;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.nxm-status-dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.nxm-status-dot.active    { background: var(--green); }
.nxm-status-dot.trialing  { background: var(--amber); }
.nxm-status-dot.expired,
.nxm-status-dot.suspended { background: var(--red); }

.nxm-trial-badge {
  padding: 8px 16px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  color: var(--amber);
}
.nxm-trial-badge span { font-size: 18px; font-weight: 900; }

/* Alert */
.nxm-alert {
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 20px;
}
.nxm-alert-warn {
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.18);
  color: var(--amber);
}

/* Tabs */
.nxm-dash-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.nxm-dash-tab {
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.nxm-dash-tab:hover { color: var(--off); }
.nxm-dash-tab.is-active { color: var(--white); border-bottom-color: var(--white); }

/* Tab panes */
.nxm-tab-pane { display: none; }
.nxm-tab-pane.is-active { display: block; }

/* KPI grid */
.nxm-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.nxm-dash-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.nxm-dash-card-action { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.nxm-dash-kpi-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.nxm-dash-kpi-val {
  font-size: 26px; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em; line-height: 1;
}
.nxm-dash-kpi-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* Section title */
.nxm-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Plans compact (in dashboard) */
.nxm-plans-compact { margin: 0 0 20px; border-radius: var(--radius-lg); max-width: 100%; }
.nxm-plan.is-current { border-top: 1.5px solid rgba(255,255,255,0.25); }
.nxm-plan-current-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line2); border-radius: 99px;
  color: var(--white); margin-top: auto;
}
.nxm-plan-msg { font-size: 13px; color: var(--green); min-height: 20px; margin-top: 10px; }

/* Portal link */
.nxm-portal-link {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 14px 0;
  flex-wrap: wrap;
}
.nxm-portal-link code {
  flex: 1; font-size: 13px; color: var(--muted);
  background: none; font-family: 'DM Mono', 'Courier New', monospace;
}

/* Empty state */
.nxm-empty-state {
  text-align: center; padding: 48px 20px;
}
.nxm-empty-icon { font-size: 36px; margin-bottom: 14px; }
.nxm-empty-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }

/* ── Referral section ── */
.nxm-ref-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}
@media (max-width: 600px) { .nxm-ref-hero { grid-template-columns: 1fr; } }
.nxm-ref-hero-kicker {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.nxm-ref-hero-headline {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400; color: var(--white);
  line-height: 1.2; margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.nxm-ref-hero-body { font-size: 13.5px; color: var(--muted); line-height: 1.65; max-width: 460px; }
.nxm-ref-stats { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.nxm-ref-stat { text-align: center; }
.nxm-ref-stat-num {
  font-family: var(--serif);
  font-size: 44px; font-weight: 400;
  color: var(--white); line-height: 1;
  letter-spacing: -0.04em;
}
.nxm-ref-stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

.nxm-ref-link-section { margin-bottom: 28px; }
.nxm-ref-link-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nxm-ref-link-row code {
  flex: 1; font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-family: 'DM Mono', 'Courier New', monospace;
  background: none;
  word-break: break-all;
}
